/* ============================================================
   FIND A HOME . Explore page visual layer (all 55 states)
   CHANGE-ORDER-02 item 4: the Explore and resources pages carry
   their own stylesheet, the same design tokens as the leaf layer,
   scoped under the .fah-explore wrapper. The leaf layer
   (find-a-home-state.scoped.css) stays frozen and byte-identical.
   Once Tennessee's Explore page is approved, THIS file freezes for
   all 55 states: state instances change config and imagery only.
   No em dashes anywhere in this file.
   ============================================================ */

.fah-explore {
  --fx-rust: #C04E2F; --fx-rust-dark: #A82A19; --fx-rust-soft: #C45228;
  --fx-ink: #2C354A; --fx-body: #222222; --fx-muted: #545454;
  --fx-gold: #D8B868; --fx-line: #E4E0D8; --fx-paper: #FFFFFF;
  --fx-bg: #FCFCFC; --fx-cream: #F7F1EA; --fx-band: #F5F3EF;
  --fx-serif: 'Fraunces', Georgia, serif;
  --fx-sans: 'DM Sans', system-ui, sans-serif;
}

/* ---- hero band (photography-led, per the mockup) ---- */
:where(.fah-explore) .fx-hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  background:
    linear-gradient(90deg, #FBF6F0 0%, rgba(251,246,240,.94) 34%, rgba(251,246,240,.42) 55%, rgba(251,246,240,0) 78%),
    var(--fx-hero-image) #FBF6F0;
  background-size: cover; background-position: center right;
}
:where(.fah-explore) .fx-hero-inner { max-width: 1120px; margin: 0 auto; padding: 72px 32px; width: 100%; }
:where(.fah-explore) .fx-hero-rule {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--fx-rust);
}
:where(.fah-explore) .fx-hero-rule::before { content: ""; width: 34px; height: 2px; background: var(--fx-rust); }
:where(.fah-explore) .fx-h1 {
  margin: 18px 0 0; font-family: var(--fx-serif); font-weight: 500;
  font-size: clamp(44px, 5.6vw, 72px); line-height: 1.02; color: var(--fx-ink);
}
:where(.fah-explore) .fx-h1 em { display: block; color: var(--fx-rust-dark); font-style: italic; }
:where(.fah-explore) .fx-hero-copy { max-width: 420px; margin-top: 20px; font-size: 17px; line-height: 1.55; color: var(--fx-body); font-family: var(--fx-sans); }
:where(.fah-explore) .fx-pinline {
  display: flex; align-items: center; gap: 8px; margin-top: 22px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--fx-rust-dark);
}
:where(.fah-explore) .fx-pinline svg { width: 18px; height: 18px; color: var(--fx-rust); flex: 0 0 auto; }

/* ---- icon stat band ---- */
:where(.fah-explore) .fx-statband { background: var(--fx-band); border-top: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); }
:where(.fah-explore) .fx-statband-inner {
  max-width: 1120px; margin: 0 auto; padding: 40px 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); text-align: center;
}
:where(.fah-explore) .fx-stat { padding: 0 18px; border-right: 1px solid var(--fx-line); }
:where(.fah-explore) .fx-stat:last-child { border-right: 0; }
:where(.fah-explore) .fx-stat-icon svg { width: 30px; height: 30px; color: var(--fx-rust-soft); }
:where(.fah-explore) .fx-stat-value { font-family: var(--fx-serif); font-size: 36px; color: var(--fx-rust); line-height: 1.05; margin-top: 10px; }
:where(.fah-explore) .fx-stat-label { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--fx-ink); margin-top: 6px; }
:where(.fah-explore) .fx-stat-sub { font-size: 12.5px; color: var(--fx-muted); font-style: italic; margin-top: 3px; }

/* ---- shared page scaffold ---- */
:where(.fah-explore) .fx-wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
:where(.fah-explore) .fx-3col { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; gap: 32px; align-items: start; margin: 48px 0; }
:where(.fah-explore) .fx-hv { padding: 24px; text-align: left; }
:where(.fah-explore) .fx-hv img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
:where(.fah-explore) .fx-hv-h { font-family: var(--fx-serif); font-size: 22px; color: var(--fx-ink); font-weight: 500; margin: 16px 0 8px; }
:where(.fah-explore) .fx-band { background: var(--fx-rust); border-radius: 12px; padding: 8px 24px 24px; margin: 24px 0 48px; color: #fff; }
:where(.fah-explore) .fx-band h2 { color: #fff !important; }
:where(.fah-explore) .fx-band .section-sub { color: rgba(255,255,255,.85) !important; }
:where(.fah-explore) .fx-band .v5-stat { background: #fff; border-radius: 10px; }
:where(.fah-explore) .fx-sec { position: relative; margin: 0 0 48px; }
:where(.fah-explore) .fx-sec-icon svg { width: 34px; height: 34px; color: var(--fx-rust-soft); display: block; margin-bottom: 10px; }

/* ---- Where to Look photo cards (CO-02 pattern; Phase A = card 1) ---- */
:where(.fah-explore) .fx-photo-card { overflow: hidden; border-radius: 12px; background: var(--fx-paper); }
:where(.fah-explore) .fx-card-photo { position: relative; margin: -18px -18px 14px; }
:where(.fah-explore) .fx-card-photo img { display: block; width: 100%; height: 170px; object-fit: cover; }
:where(.fah-explore) .fx-card-pin {
  position: absolute; left: 14px; bottom: -16px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--fx-rust); border: 3px solid var(--fx-paper);
  display: grid; place-items: center;
}
:where(.fah-explore) .fx-card-pin svg { width: 20px; height: 20px; color: #fff; }

/* ---- guidance tiles ---- */
:where(.fah-explore) .fx-guidance { margin: 56px 0; }
:where(.fah-explore) .fx-guidance-h { font-family: var(--fx-serif); font-size: 30px; color: var(--fx-ink); font-weight: 500; text-align: center; margin: 0 0 24px; }
:where(.fah-explore) .fx-guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
:where(.fah-explore) .fx-guide-tile { padding: 22px; text-align: left; }
:where(.fah-explore) .fx-tile-icon svg { width: 30px; height: 30px; color: var(--fx-rust-soft); }
:where(.fah-explore) .fx-tile-title { font-family: var(--fx-serif); font-size: 19px; color: var(--fx-ink); margin: 10px 0 6px; }
:where(.fah-explore) .fx-tile-blurb { font-size: 13px; color: var(--fx-muted); line-height: 1.5; margin-bottom: 12px; }
:where(.fah-explore) .fx-tile-soon { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9aa0a8; }

/* ---- footer strip ---- */
:where(.fah-explore-foot), .fx-foot { margin-top: 64px; border-top: 1px solid #E4E0D8; padding: 30px 24px 40px; text-align: center; color: #545454; font-size: 12px; line-height: 1.7; }
.fx-foot .links { margin-top: 8px; }
.fx-foot .links a { color: #545454; margin: 0 9px; }

/* ---- mobile pass baseline (Phase B extends; no horizontal scroll) ---- */
@media (max-width: 1000px) {
  :where(.fah-explore) .fx-statband-inner { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  :where(.fah-explore) .fx-stat:nth-child(2) { border-right: 0; }
  :where(.fah-explore) .fx-3col { grid-template-columns: 1fr; }
  :where(.fah-explore) .fx-guide-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  :where(.fah-explore) .fx-hero { min-height: 440px; }
  :where(.fah-explore) .fx-hero-inner { padding: 48px 20px; }
  :where(.fah-explore) .fx-statband-inner { grid-template-columns: 1fr; }
  :where(.fah-explore) .fx-stat { border-right: 0; border-bottom: 1px solid var(--fx-line); padding: 0 0 20px; }
  :where(.fah-explore) .fx-stat:last-child { border-bottom: 0; padding-bottom: 0; }
  :where(.fah-explore) .fx-guide-grid { grid-template-columns: 1fr; }
  :where(.fah-explore) .fx-wrap { padding: 0 20px; }
}

/* ============================================================
   CO-03: disclosure (fold, don't cut), summary tiles, rhythm.
   ============================================================ */

/* expanders */
:where(.fah-explore) .fx-fold { margin: 10px 0 0; }
:where(.fah-explore) .fx-fold > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 4px 2px;
  color: var(--fx-rust-dark); font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase;
}
:where(.fah-explore) .fx-fold > summary::-webkit-details-marker { display: none; }
:where(.fah-explore) .fx-fold > summary::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s; margin-top: -4px;
}
:where(.fah-explore) .fx-fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
:where(.fah-explore) .fx-fold-body { padding: 6px 0 2px; }
:where(.fah-explore) .fx-fold-body p { margin: 0 0 12px; }

/* FAQ: restyle the moved native accordion in the fx language */
:where(.fah-explore) .fx-faq .v5-faq-item {
  border-bottom: 1px solid var(--fx-line); padding: 4px 0;
}
:where(.fah-explore) .fx-faq .v5-faq-q {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  min-height: 48px; font-family: var(--fx-serif); font-size: 17px; color: var(--fx-ink); font-weight: 500;
}
:where(.fah-explore) .fx-faq .v5-faq-q::-webkit-details-marker { display: none; }
:where(.fah-explore) .fx-faq .v5-faq-q::after { content: "+"; color: var(--fx-rust); font-family: var(--fx-sans); font-size: 20px; flex: none; }
:where(.fah-explore) .fx-faq .v5-faq-item[open] .v5-faq-q::after { content: "\2212"; }

/* voice: photo + three columns */
:where(.fah-explore) .fx-voice-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 28px; align-items: start; }
:where(.fah-explore) .fx-voice-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 12px; display: block; }
:where(.fah-explore) .fx-voice-cols .v5-voice-block { border: 0; background: transparent; padding: 0; }

/* where-to-look: photo cards + branded color block */
:where(.fah-explore) .fx-card-photo { position: relative; margin: -18px -18px 18px; }
:where(.fah-explore) .fx-card-photo img { display: block; width: 100%; height: 150px; object-fit: cover; }
:where(.fah-explore) .fx-card-block { height: 150px; background: linear-gradient(135deg, #F6E7DE 0%, #EACDBB 55%, #DCA98D 100%); }
:where(.fah-explore) .fx-hook { font-size: 13.5px; line-height: 1.5; color: var(--fx-body); margin: 10px 0 12px; }

/* quirks: summary tile grid */
:where(.fah-explore) .fx-quirk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
:where(.fah-explore) .fx-quirk-tile { padding: 20px; }
:where(.fah-explore) .fx-quirk-tile h3 { font-family: var(--fx-serif); font-size: 18px; font-weight: 500; color: var(--fx-ink); margin: 10px 0 8px; }
:where(.fah-explore) .fx-quirk-tile p { font-size: 13.5px; color: var(--fx-muted); line-height: 1.55; margin: 0; }

/* rhythm: air between bands per the mockup */
:where(.fah-explore) .fx-sec { margin: 0 0 72px; }
:where(.fah-explore) .fx-3col { margin: 64px 0; }
:where(.fah-explore) .fx-band { margin: 32px 0 64px; }
:where(.fah-explore) .fx-guidance { margin: 72px 0 56px; }
:where(.fah-explore) .fx-whybuy { background: #F7F1EA; border-radius: 10px; padding: 6px 20px 14px; margin-top: 18px; }

@media (max-width: 768px) {
  :where(.fah-explore) .fx-voice-grid { grid-template-columns: 1fr; }
  :where(.fah-explore) .fx-quirk-grid { grid-template-columns: 1fr; }
  :where(.fah-explore) .fx-sec { margin-bottom: 52px; }
}

/* the wired Fello home-value anchor, styled as the platform's rust button
   (the leaf styles this class in its own head CSS, which does not travel) */
:where(.fah-explore) .fah-fello-btn {
  display: inline-flex; align-items: center; margin-top: 14px; padding: 13px 24px;
  background: var(--fx-rust); color: #fff; border-radius: 8px;
  font-family: var(--fx-sans); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
:where(.fah-explore) .fah-fello-btn:hover { background: var(--fx-rust-dark); }

/* ============================================================
   CO-05 (Jason review edits): band rebalance + branded title blocks.
   ============================================================ */
:where(.fah-explore) .fx-2col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: stretch; margin: 64px 0 28px; }
:where(.fah-explore) .fx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; margin: 0 0 64px; }
:where(.fah-explore) .fx-pair .fx-sec { margin: 0; }
:where(.fah-explore) .fx-whybuy { margin-top: 0; }

/* branded title blocks (all eight cards; photo-drop replaces per card) */
:where(.fah-explore) .fx-title-block { height: 150px; display: flex; align-items: center; justify-content: center; padding: 0 22px; background: linear-gradient(135deg, #C04E2F 0%, #A82A19 100%); }
:where(.fah-explore) .fx-title-block.fx-tb--b { background: linear-gradient(135deg, #C45228 0%, #C04E2F 100%); }
:where(.fah-explore) .fx-title-block.fx-tb--c { background: linear-gradient(135deg, #A82A19 0%, #8F2415 100%); }
:where(.fah-explore) .fx-card-title { font-family: var(--fx-serif); font-size: 21px; font-weight: 500; color: #fff; text-align: center; line-height: 1.2; }
:where(.fah-explore) .fx-card-title--overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; background: linear-gradient(180deg, rgba(44,53,74,0) 0%, rgba(44,53,74,.72) 100%); }
@media (max-width: 768px) {
  :where(.fah-explore) .fx-2col, :where(.fah-explore) .fx-pair { grid-template-columns: 1fr; }
}
