/* ==========================================================================
   Search and answer pages
   Shared components for the location pages, the building page, the guides
   and the 404. Layered on styles.css tokens only — no external requests.
   ========================================================================== */

/* ---------- breadcrumb ---------- */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  font: 650 10.5px/1.2 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.crumb a:hover {
  color: var(--clay);
  border-bottom-color: currentColor;
}

.crumb__sep {
  opacity: 0.45;
}

.switcher {
  margin-top: 16px;
}

/* ---------- page hero ---------- */
.g-hero {
  padding: clamp(92px, 11vh, 124px) 0 clamp(52px, 7vw, 86px);
}

.g-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4.4vw, 64px);
  align-items: end;
}

.g-hero h1 {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  max-width: 16ch;
}

.g-hero h1 em {
  font-style: italic;
  color: var(--clay);
}

.g-hero__sub {
  max-width: 56ch;
  margin: 22px 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
}

.g-hero__sub strong {
  color: var(--ink);
  font-weight: 600;
}

.g-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 30px;
}

.g-hero__note {
  margin: 18px 0 0;
  font: 600 11px/1.5 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* "At a glance" card */
.glance {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  padding: clamp(22px, 2.6vw, 30px);
}

.glance__label {
  margin: 0 0 18px;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.glance dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.glance dl > div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.glance dl > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.glance dt {
  font: 650 10px/1.5 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}

.glance dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
}

.glance dd b {
  font-weight: 650;
}

/* ---------- the short answer ---------- */
.answer {
  margin: 0 0 clamp(34px, 4.6vw, 54px);
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 40px);
  background: var(--paper-2);
  border-left: 3px solid var(--clay);
  border-radius: 0 18px 18px 0;
}

.answer__label {
  display: block;
  margin: 0 0 10px;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}

.answer p {
  margin: 0;
  max-width: 74ch;
  font-size: clamp(1.04rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.answer p + p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
}

.answer a {
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.facts > div {
  background: var(--paper);
  padding: 20px 22px;
}

.facts dt {
  font: 650 9.5px/1.3 var(--sans);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.facts dd small {
  display: block;
  margin-top: 6px;
  font: 400 12.5px/1.4 var(--sans);
  letter-spacing: 0;
  color: var(--muted);
}

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: clamp(22px, 2.6vw, 30px);
}

.card__num {
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--clay);
}

.card h3 {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 1.7vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.card__list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 14px;
}

.card__list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.45;
}

.card__list .icon {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--clay);
  flex: none;
}

.card__link {
  margin-top: 18px;
  font: 650 12px/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--clay);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__link:hover {
  color: var(--clay-deep);
}

.card__link .icon {
  width: 14px;
  height: 14px;
}

/* ---------- comparison table ---------- */
.cmp {
  margin: clamp(22px, 3vw, 34px) 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cmp table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.45;
}

.cmp caption {
  caption-side: top;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font: 650 11px/1.5 var(--sans);
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--paper);
}

.cmp thead th {
  padding: 12px 18px;
  text-align: left;
  vertical-align: bottom;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font: 650 9.5px/1.4 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.cmp tbody th,
.cmp tbody td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.cmp tbody th {
  font-weight: 600;
  color: var(--ink);
}

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
  border-bottom: 0;
}

.cmp td.num {
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
}

.cmp .is-us {
  background: var(--paper-2);
}

.cmp__note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- numbered steps ---------- */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.steps > li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.steps > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--clay);
  padding-top: 5px;
}

.steps h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.steps p {
  margin: 0;
  max-width: 62ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- callout ---------- */
.callout {
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 16px 16px 0;
  background: var(--paper);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 78ch;
}

.callout b {
  font-weight: 650;
}

.callout a {
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- checklist ---------- */
.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 11px 30px;
}

.checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.5;
}

.checks .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex: none;
  color: var(--clay);
}

/* ---------- prose ---------- */
.prose {
  max-width: 68ch;
}

.prose p {
  margin: 0 0 1.05em;
  font-size: 15.5px;
  line-height: 1.65;
}

.prose h3 {
  margin: 1.9em 0 0.5em;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.prose a {
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 1.1em;
}

.prose li {
  margin-bottom: 0.45em;
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- link list / related ---------- */
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.related a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper);
  padding: 20px 22px;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}

.related a:hover {
  background: var(--paper-2);
}

.related b {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.related span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- small print / sources ---------- */
.fineprint {
  margin: 26px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 78ch;
}

.fineprint a {
  color: inherit;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding: clamp(60px, 10vw, 120px) 0;
}

.notfound h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 14px 0 0;
  max-width: 18ch;
}

.notfound p {
  max-width: 54ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .g-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .g-hero h1 {
    max-width: 20ch;
  }

  .glance {
    max-width: 520px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cards,
  .cards--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .glance dl > div {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .steps > li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }
}
