:root {
  color: #111;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #111;
}

.shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.hero {
  max-width: 700px;
}

.eyebrow,
.panel-kicker {
  color: #666;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pulse {
  display: none;
}

h1 {
  margin: 12px 0;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

h1 span {
  color: #111;
}

.lede {
  margin: 0 0 24px;
  color: #666;
  font-size: 15px;
  line-height: 1.5;
}

.search-box {
  display: flex;
  gap: 8px;
  padding: 0;
  border: 1px solid #bbb;
  border-radius: 4px;
  background: #fff;
}

textarea {
  flex: 1;
  min-width: 0;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 12px;
  color: #111;
  background: #fff;
  font: inherit;
  line-height: 1.4;
}

.search-box button {
  align-self: stretch;
  min-width: 90px;
  border: 0;
  border-left: 1px solid #bbb;
  border-radius: 0 3px 3px 0;
  color: #fff;
  background: #111;
  font-weight: 600;
}

.search-box button:hover {
  background: #333;
}

.button-arrow {
  display: none;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suggestions button {
  border: 0;
  padding: 0;
  color: #666;
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
}

.suggestions button:hover {
  color: #111;
}

.status {
  margin: 28px 0 0;
  color: #666;
  font-size: 14px;
}

.status.error {
  color: #a00;
}

.results {
  margin-top: 40px;
}

.panel {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.answer-panel,
.evidence-panel {
  padding: 20px;
}

.answer-copy {
  margin-top: 16px;
  color: #222;
  font-size: 15px;
  line-height: 1.6;
}

.answer-copy h1,
.answer-copy h2,
.answer-copy h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.answer-copy p {
  margin: 0 0 12px;
}

.answer-copy a {
  color: #0645ad;
}

.answer-copy ul,
.answer-copy ol {
  padding-left: 22px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.answer-copy table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

.answer-copy th,
.answer-copy td {
  padding: 9px 10px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}

.answer-copy th {
  background: #f5f5f5;
  font-weight: 600;
}

.evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

h2 {
  margin: 5px 0 0;
  font-size: 18px;
}

.count {
  color: #666;
  font-size: 13px;
}

.query-list,
.source-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.query-list {
  padding-left: 20px;
  color: #444;
  font-size: 14px;
}

.source {
  display: flex;
  gap: 8px;
  font-size: 14px;
}

.source-icon {
  display: none;
}

.source a {
  overflow: hidden;
  color: #0645ad;
  text-overflow: ellipsis;
  white-space: nowrap;
}

footer {
  padding: 0 16px 24px;
  color: #888;
  text-align: center;
  font-size: 11px;
}

footer span {
  margin: 0 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 650px) {
  .shell {
    width: calc(100% - 24px);
    padding: 32px 0;
  }

  h1 {
    font-size: 34px;
  }

  .search-box {
    display: block;
  }

  .search-box button {
    width: 100%;
    height: 42px;
    border-top: 1px solid #bbb;
    border-left: 0;
    border-radius: 0 0 3px 3px;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }
}
