/* The Coutu Team — Extended Editorial SEO, AEO & Interactive Hub System
 * Native extension of /home.css & /loan-programs.css (--ink, --body, --paper, --sand, --rule, --gold, --ochre, --night).
 */

/* Photographic Twilight Hero matching live .program-hero */
.hub-hero {
  background-color: #18231d;
  background-image: linear-gradient(
      100deg,
      rgba(23, 23, 19, 0.92) 14%,
      rgba(23, 23, 19, 0.72) 44%,
      rgba(23, 23, 19, 0.28) 74%,
      rgba(23, 23, 19, 0.08) 100%
    ),
    var(--hub-hero-image, url("/public/coutu-sunset-home.jpg"));
  background-position: center, right center;
  background-size: cover;
  color: #fff8ed;
  padding-block: clamp(2.85rem, 5.8vw, 5.2rem) clamp(2.5rem, 5vw, 4.25rem);
  border-bottom: 1px solid #3c3123;
}

.hub-breadcrumbs {
  margin-bottom: 1.1rem;
  color: #e6d5bb;
  font-size: 0.8rem;
}

.hub-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hub-breadcrumbs li + li::before {
  content: "›";
  padding-right: 0.45rem;
  color: var(--gold);
}

.hub-breadcrumbs a {
  color: #efe2cb;
  text-decoration: none;
}

.hub-breadcrumbs a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.92fr);
  gap: clamp(1.75rem, 5.5vw, 4.5rem);
  align-items: center;
}

.hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  letter-spacing: 0.035em;
  color: #f4d8a5;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hub-eyebrow span {
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hub-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.45rem, 5.1vw, 4.45rem);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.045em;
  color: #fff9ee;
  text-wrap: balance;
}

.hub-hero h1 em {
  color: #ffdda0;
  font-style: italic;
}

.hub-lede {
  margin-top: 1.05rem;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.62;
  color: #eee5d6;
  max-width: 56ch;
  text-wrap: pretty;
}

.hub-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hub-hero-disclosure {
  margin-top: 1.15rem;
  color: #e6d5ba;
  font-size: 0.8rem;
  line-height: 1.5;
}

.hub-hero-disclosure a {
  color: var(--gold);
  text-underline-offset: 3px;
}

/* Signature Translucent Numbered Shortcuts Panel (deep forest pine + gold matching live .contact & .program-shortcuts) */
.hub-shortcuts {
  padding: 1.35rem 1.5rem;
  border: 1px solid #d7b78766;
  border-radius: 7px;
  background: linear-gradient(155deg, rgba(24, 43, 36, 0.94), rgba(20, 29, 25, 0.92));
  backdrop-filter: blur(4px);
  color: #fff8ed;
}

.hub-shortcuts-label {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #f4d8a5;
  margin-bottom: 0.55rem;
}

.hub-shortcuts a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding-block: 0.82rem;
  text-decoration: none;
  color: inherit;
}

.hub-shortcuts a + a {
  border-top: 1px solid #b593635c;
}

.hub-shortcuts a:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hub-shortcuts strong {
  display: block;
  font: 400 1.2rem/1.2 var(--serif);
  color: #fff9ee;
}

.hub-shortcuts small {
  display: block;
  margin-top: 0.2rem;
  color: #e3d5c0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.hub-shortcuts .path-number {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.hub-shortcuts .path-arrow {
  color: var(--gold);
  font-size: 1rem;
}

.hub-shortcuts-foot {
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid #b5936345;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.78rem;
}

.hub-shortcuts-foot a {
  display: inline;
  padding: 0;
  border: none;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Answer-First AEO Band with Signature Sage Stat Cards */
.aeo-section {
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2rem, 4.2vw, 3.25rem);
}

.aeo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: start;
}

.aeo-label {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ochre);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.aeo-answer {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 64ch;
  text-wrap: pretty;
}

.aeo-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0;
}

.aeo-fact {
  background: #fffaf3;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.95rem 1.05rem;
}

.aeo-fact--sage {
  background: #e7ebde;
  border-color: #c2c9b6;
}

.aeo-fact dt {
  font-size: 0.74rem;
  color: var(--body);
  font-weight: 600;
}

.aeo-fact dd {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.aeo-fact--sage dd {
  color: #25372b;
}

/* Editorial Content Bands (matches live .program-section rhythm) */
.hub-band {
  padding-block: clamp(2.6rem, 5.5vw, 4.65rem);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.hub-band--sand {
  background: var(--sand);
}

.hub-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.85rem;
}

.hub-section-eyebrow {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ochre);
  letter-spacing: 0.03em;
  margin-bottom: 0.45rem;
}

.hub-section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.9vw, 3.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-wrap: balance;
}

.hub-section-head h2 em {
  color: var(--ochre);
  font-style: italic;
}

.hub-section-head p {
  color: var(--body);
  font-size: 0.96rem;
  max-width: 62ch;
  margin-top: 0.65rem;
  text-wrap: pretty;
}

/* Flagship Photographic Market Showcase Cards (MN & GA on /states/) */
.hub-flagship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.hub-flagship-card {
  background: #fffaf3;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hub-flagship-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #18231d;
}

.hub-flagship-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-flagship-body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 0.9rem;
}

.hub-flagship-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hub-flagship-body p {
  color: var(--body);
  font-size: 0.93rem;
  line-height: 1.6;
}

.hub-flagship-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
}

.hub-flagship-meta strong {
  display: block;
  color: var(--ochre);
  font-size: 0.74rem;
  font-weight: 650;
}

.hub-flagship-meta span {
  color: var(--ink);
  font-weight: 550;
}

/* Native Sage & Ivory Interactive Scenario Estimator (matches live .tool-form / .tool-results) */
.estimator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.8vw, 1.75rem);
  align-items: start;
}

.estimator-inputs {
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fffaf3;
  display: grid;
  gap: 1.1rem;
}

.estimator-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.88rem;
  font-weight: 680;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.estimator-field output {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
}

.estimator-field input[type="range"] {
  width: 100%;
  accent-color: var(--ochre);
  cursor: pointer;
}

.estimator-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.estimator-select {
  width: 100%;
  min-height: 44px;
  padding: 0.45rem 0.65rem;
  border: 1px solid #a8967e;
  border-radius: 4px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

.estimator-results {
  background: #eef0e5;
  border: 1px solid #c4cab8;
  border-radius: 6px;
  color: var(--ink);
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
}

.estimator-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.estimator-metric-card {
  padding: 0.8rem 0.9rem;
  border: 1px solid #c4cab8;
  border-radius: 4px;
  background: #fcfbf2;
}

.estimator-metric-label {
  font-size: 0.74rem;
  color: var(--body);
  font-weight: 600;
}

.estimator-metric-val {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  color: #25372b;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.12;
  margin-top: 0.2rem;
}

.estimator-checks {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid #c4cab8;
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink);
}

.estimator-checks strong {
  color: #25372b;
}

.estimator-disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--body);
  padding-top: 0.85rem;
  border-top: 1px solid #c4cab8;
}

/* Warm Ivory Editorial Cards (matches live .program-card) */
.hub-editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.hub-card {
  background: #fffaf3;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hub-card--sage {
  background: #e7ebde;
  border-color: #c2c9b6;
}

.hub-card-index {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
}

.hub-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.32rem, 2.1vw, 1.62rem);
  font-weight: 400;
  line-height: 1.14;
  color: var(--ink);
}

.hub-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--body);
}

.hub-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--body);
}

.hub-card .hub-big-stat {
  margin: 0.35rem 0;
  color: #25372b;
  font: 400 clamp(2.1rem, 4.5vw, 3.2rem)/1 var(--serif);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* GEO Comparison Tables (matches live .program-table) */
.hub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: #fffaf3;
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.hub-table caption {
  text-align: left;
  padding: 0.85rem 1.05rem;
  font-size: 0.8rem;
  color: var(--body);
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
}

.hub-table th,
.hub-table td {
  padding: 0.88rem 1.05rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
}

.hub-table thead th {
  background: var(--sand);
  color: var(--ochre);
  font-size: 0.8rem;
  font-weight: 700;
}

.hub-table tbody th {
  color: var(--ink);
  font-weight: 680;
  width: 24%;
}

.hub-table tbody tr:last-child th,
.hub-table tbody tr:last-child td {
  border-bottom: none;
}

.hub-col-highlight {
  background: #f5f2e6;
  color: var(--ink);
  font-weight: 550;
}

/* Meet Your Brokers Split (matches live .story-hero / .about split) */
.hub-broker-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4.5vw, 3.75rem);
  align-items: center;
}

.hub-broker-photo {
  margin: 0;
}

.hub-broker-photo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--rule);
  display: block;
}

.hub-broker-photo figcaption {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--body);
}

/* Local Markets & Resource Grid */
.hub-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
}

.hub-city-cell {
  background: #fffaf3;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.9rem 1.05rem;
}

.hub-city-cell strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  color: var(--ink);
}

.hub-city-cell span {
  display: block;
  font-size: 0.8rem;
  color: var(--body);
  margin-top: 0.2rem;
}

.hub-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.hub-resource-link {
  display: block;
  background: #fffaf3;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hub-resource-link:hover {
  border-color: var(--ochre);
  background: #fffdf8;
}

.hub-resource-link strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 400;
  color: var(--ink);
}

.hub-resource-link span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--body);
  line-height: 1.5;
}

/* Calculators 2x2 Showcase Grid */
.hub-calc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.hub-calc-card {
  background: #fffaf3;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.3rem, 2.6vw, 1.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.hub-calc-card--sage {
  background: #e7ebde;
  border-color: #c2c9b6;
}

.hub-calc-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin-top: 0.35rem;
}

.hub-calc-card p {
  color: var(--body);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.hub-calc-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--body);
  font-size: 0.87rem;
  display: grid;
  gap: 0.35rem;
}

/* Native FAQ Accordions (matches live .program-questions) */
.hub-faq-list {
  display: grid;
  gap: 0.55rem;
}

.hub-faq-item {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fffaf3;
}

.hub-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.98rem;
  font-weight: 680;
  color: var(--ink);
}

.hub-faq-item summary::-webkit-details-marker {
  display: none;
}

.hub-faq-item summary::after {
  content: "+";
  font-size: 1.15rem;
  color: var(--ochre);
  font-weight: 400;
  flex-shrink: 0;
}

.hub-faq-item[open] summary::after {
  content: "−";
}

.hub-faq-item p {
  padding: 0 1.1rem 1rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--body);
  max-width: 74ch;
}

/* Remaining Licensed States Grid */
.hub-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
}

.hub-state-card {
  background: #fffaf3;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hub-state-card-media {
  aspect-ratio: 16 / 9;
  background: #18231d;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.hub-state-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-state-card-body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.7rem;
  flex: 1;
}

.hub-state-card h3 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--ink);
}

.hub-state-meta {
  font-size: 0.76rem;
  color: var(--ochre);
  font-weight: 650;
}

.hub-state-copy {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--body);
}

.hub-state-broker {
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink);
}

/* Native High-Contrast Footer Disclosure Band (matches live .site-footer dark ground) */
.footer-disclosure {
  padding-block: 1rem;
  border-top: 1px solid #3c3327;
  color: #cfc4b4;
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-disclosure strong {
  color: #f7dba5;
  font-weight: 650;
}

/* Wave 1 Program & Loan Estimate Page Component Parity */
.hub-shortcuts-title {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #f4d8a5;
  margin-bottom: 0.55rem;
}

.hub-shortcut-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.hub-shortcut-copy span {
  display: block;
  margin-top: 0.2rem;
  color: #e3d5c0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.hub-shortcut-arrow {
  color: var(--gold);
  font-size: 1rem;
}

.hub-shortcuts-footer {
  margin-top: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid #b5936345;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.78rem;
}

.hub-shortcuts-footer a {
  display: inline;
  padding: 0;
  border: none;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aeo-band {
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
  padding-block: clamp(2rem, 4.2vw, 3.25rem);
}

.aeo-eyebrow {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ochre);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.aeo-facts > div {
  background: #fffaf3;
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.95rem 1.05rem;
}

.aeo-facts > div:nth-child(2),
.aeo-facts > div:nth-child(3) {
  background: #e7ebde;
  border-color: #c2c9b6;
}

.aeo-facts > div dt {
  font-size: 0.74rem;
  color: var(--body);
  font-weight: 600;
}

.aeo-facts > div dd {
  margin: 0.25rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.aeo-facts > div:nth-child(2) dd,
.aeo-facts > div:nth-child(3) dd {
  color: #25372b;
}

.hub-section {
  padding-block: clamp(2.6rem, 5.5vw, 4.65rem);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.hub-section--sand {
  background: var(--sand);
}

.hub-section .hub-section-head {
  display: block;
  margin-bottom: 1.85rem;
}

.estimator-field input[type="number"],
.estimator-field input[type="text"],
.estimator-field select {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #a8967e;
  border-radius: 5px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.estimator-field input[type="number"]:focus,
.estimator-field select:focus {
  outline: 2px solid var(--ochre);
  outline-offset: 1px;
  border-color: var(--ochre);
}

.estimator-note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--body);
  padding-top: 0.65rem;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.estimator-note a {
  color: var(--ochre);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.estimator-output {
  background: #eef0e5;
  border: 1px solid #c4cab8;
  border-radius: 6px;
  color: var(--ink);
  padding: clamp(1.25rem, 2.5vw, 1.7rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.estimator-output-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #25372b;
  margin: 0;
}

.estimator-metric {
  padding: 0.85rem 0.95rem;
  border: 1px solid #c4cab8;
  border-radius: 5px;
  background: #fcfbf2;
}

.estimator-metric span {
  display: block;
  font-size: 0.74rem;
  color: var(--body);
  font-weight: 600;
  line-height: 1.35;
}

.estimator-metric strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 400;
  color: #25372b;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  margin-top: 0.25rem;
}

.estimator-guidance {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fffaf3;
  border: 1px solid #d5d8c8;
  border-radius: 5px;
  padding: 0.85rem 1rem;
  margin: 0;
}

.estimator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.25rem;
}

.estimator-actions .button-ghost {
  color: #25372b;
  border-color: #8f9a84;
  background: #fcfbf2;
}

.estimator-actions .button-ghost:hover {
  background: #fffaf3;
  border-color: #25372b;
}

.geo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #fffaf3;
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.geo-table th,
.geo-table td {
  padding: 0.9rem 1.05rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.55;
}

.geo-table thead th {
  background: var(--sand);
  color: var(--ochre);
  font-size: 0.8rem;
  font-weight: 700;
}

.geo-table tbody th {
  color: var(--ink);
  font-weight: 680;
  width: 22%;
}

.geo-table tbody td:nth-child(2) {
  background: #f5f2e6;
  color: var(--ink);
  font-weight: 520;
}

.geo-table tbody tr:last-child th,
.geo-table tbody tr:last-child td {
  border-bottom: none;
}

.hub-editorial-card {
  background: #fffaf3;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hub-card-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ochre);
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.hub-editorial-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.1vw, 1.58rem);
  font-weight: 400;
  line-height: 1.16;
  color: var(--ink);
  margin: 0;
}

.hub-editorial-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--body);
  margin: 0;
}

.hub-editorial-card ul {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.5;
}

/* Mobile Sticky Action Bar (strictly 54px, well under 15% mobile viewport cap) */
.hub-mobile-bar {
  display: none;
}

@media (max-width: 960px) {
  .hub-hero-grid,
  .aeo-grid,
  .estimator-shell,
  .hub-editorial-grid,
  .hub-flagship-grid,
  .hub-broker-split,
  .hub-calc-grid {
    grid-template-columns: 1fr;
  }
}

/* Branded Header & Mobile Dropdown hardening (mirrors live /home.css across tablet & phone) */
.site-header--branded {
  position: relative;
  z-index: 40;
}

.site-header--branded .header-apply {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .site-header--branded .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 60px;
    gap: 0.55rem;
  }

  .site-header--branded .desktop-nav,
  .site-header--branded .header-phone {
    display: none;
  }

  .site-header--branded .header-brand {
    width: clamp(4.75rem, 22vw, 5.75rem);
  }

  .site-header--branded .mobile-menu {
    display: block;
  }

  .site-header--branded .mobile-menu summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.5rem;
    color: #f6efe3;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 650;
    list-style: none;
    white-space: nowrap;
  }

  .site-header--branded .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .site-header--branded .menu-icon {
    position: relative;
    display: inline-block;
    width: 1rem;
    height: 0.66rem;
    border-block: 1.5px solid var(--gold);
    flex-shrink: 0;
  }

  .site-header--branded .menu-icon::after {
    position: absolute;
    top: 50%;
    inset-inline: 0;
    height: 1.5px;
    margin-top: -0.75px;
    background: var(--gold);
    content: "";
  }

  .site-header--branded .mobile-menu nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 45;
    display: grid;
    padding: 0.45rem 1.15rem 0.65rem;
    border-bottom: 1px solid #897453;
    background: var(--night);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  }

  .site-header--branded .mobile-menu nav a {
    display: flex;
    min-height: 46px;
    align-items: center;
    color: #f6efe3;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 560;
  }

  .site-header--branded .mobile-menu nav a:hover,
  .site-header--branded .mobile-menu nav a[aria-current="page"] {
    color: var(--gold);
  }

  .site-header--branded .mobile-menu nav a + a {
    border-top: 1px solid #3f352a;
  }

  .site-header--branded .header-apply {
    min-height: 40px;
    padding: 0.45rem 0.72rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 680px) {
  .frame {
    width: min(1160px, 100% - 2rem);
  }

  .aeo-facts,
  .estimator-row,
  .estimator-metric-grid,
  .hub-flagship-meta {
    grid-template-columns: 1fr;
  }

  body.has-hub-mobile-bar {
    padding-bottom: 60px;
  }

  .hub-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    height: 54px;
    background: var(--night);
    border-top: 1px solid #4c3d29;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 1px;
    background-color: #3b2f1f;
  }

  .hub-mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--night);
    color: #f6efe3;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 650;
  }

  .hub-mobile-bar a.hub-mobile-apply {
    background: var(--gold);
    color: #1f170e;
  }
}
