/* Napa Reach Trade Index: hub, issue pages, methodology and category callouts. Uses the shared palette from styles.css. */
.index-hero { padding-bottom: 8px; }
.index-hero h1 { font-size: clamp(36px, 4.4vw, 58px); max-width: 980px; line-height: 1.08; }
/* styles.css fixes every <nav> to the top as the site header; reset that for in-page navs */
nav.crumbs, nav.index-toc { position: static; display: block; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto; flex-wrap: nowrap; }
nav.index-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1120px; margin: 36px auto 0; padding: 0 56px; }
nav.crumbs { margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; font-size: 13px; letter-spacing: 0.4px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(168,163,154,0.5); }
.crumbs a { color: var(--gold); text-decoration: none; }
.crumbs a:hover { color: var(--gold-soft); text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--text); }
.index-disclaimer {
  display: inline-block; margin: 26px auto 0; padding: 10px 20px; border-radius: 999px; font-size: 15px;
  color: var(--gold-soft); background: rgba(201,169,110,0.08); border: 1px solid rgba(201,169,110,0.35);
}
.index-hero .hero-sub + .index-disclaimer { margin-top: 28px; }
.issue-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 36px; margin: 28px 0 0; }
.issue-meta div { text-align: center; }
.issue-meta dt { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.issue-meta dd { margin: 0; font-size: 16px; color: var(--text); }
.issue-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.issue-actions a { font-size: 15px; padding: 12px 24px; }
.index-banner {
  max-width: 720px; margin: 26px auto 0; padding: 14px 22px; border-radius: 16px; font-size: 15px; color: var(--emerald);
  background: var(--emerald-dim); border: 1px solid rgba(45,212,191,0.3);
}
.index-toc a {
  font-size: 13px; color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
}
.index-toc a:hover { color: var(--text); border-color: rgba(201,169,110,0.5); }

main section.tight.index-section { padding-top: 48px; padding-bottom: 8px; scroll-margin-top: 90px; }
.index-section h2 { font-size: clamp(30px, 3.6vw, 42px); text-align: left; margin-bottom: 6px; }
.index-section h2 a { color: inherit; text-decoration: none; }
.as-of { font-size: 13px; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 18px; }
.as-of time { color: var(--gold-soft); }
.index-kicker { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--emerald); margin-bottom: 14px; }
.index-note { color: var(--text); opacity: 0.88; font-size: 16px; max-width: 800px; }
.index-note a, .index-sources a, .index-section-links a, .index-notes a, .index-footer a, .index-callout a, .archive-list a { color: var(--gold); text-decoration: none; }
.index-note a:hover, .index-sources a:hover, .index-section-links a:hover, .index-notes a:hover, .index-footer a:hover, .index-callout a:hover, .archive-list a:hover { color: var(--gold-soft); text-decoration: underline; }

/* Summary cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { background: rgba(255,255,255,0.025); border: 1px solid var(--border); border-radius: 18px; padding: 22px 22px 18px; }
.stat-label { font-size: 13px; line-height: 1.45; color: var(--muted); min-height: 2.9em; }
.stat-value { font-family: "Cormorant Garamond", serif; font-size: 40px; line-height: 1.1; color: var(--gold); margin: 8px 0 10px; }
.stat-value.pending { font-size: 30px; color: var(--gold-soft); opacity: 0.85; }
.stat-date { font-size: 12px; color: var(--muted); }

/* Summary tables */
.index-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,0.015); }
.index-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.index-table th, .index-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.index-table tbody tr:last-child th, .index-table tbody tr:last-child td { border-bottom: 0; }
.index-table thead th { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 400; line-height: 1.35; }
.index-table tbody th { color: var(--text); font-weight: 400; }
.index-table td { color: var(--text); }
.index-table td { white-space: nowrap; }
.index-table td:first-child { white-space: normal; min-width: 76px; }
.index-table td.pending { color: var(--muted); }
.index-table td.price-na { color: var(--muted); font-style: italic; white-space: normal; text-align: center; }
.index-level-h { font-family: "Outfit", sans-serif; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 22px 0 10px; }
.index-level-note { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 800px; padding: 12px 16px; border: 1px dashed var(--border); border-radius: 12px; }
.index-table-note { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 10px; max-width: 800px; }
.archive-hero .index-banner { margin-top: 22px; }
.archive-date { color: var(--muted); font-size: 14px; margin-top: 14px; }
.index-sources { font-size: 14px; color: var(--muted); margin-top: 16px; }
.index-sources span { color: var(--text); }
.index-section-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 16px; font-size: 15px; }
.index-search-link { font-weight: 500; }
.index-search-link::after, .index-cat-link::after { content: " \2192"; }
.index-soon { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--emerald); background: var(--emerald-dim); border-radius: 999px; padding: 4px 10px; margin-left: -12px; }
.index-notes { list-style: none; padding: 0; max-width: 820px; }
.index-notes li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--border); font-size: 16px; color: var(--text); opacity: 0.92; }
.index-notes li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* Issue footer */
main section.tight.index-footer { padding-top: 56px; padding-bottom: 72px; }
.index-footer { border-top: 1px solid var(--border); margin-top: 48px; }
.index-footer p { color: var(--muted); font-size: 15px; max-width: 820px; }
.index-footer p + p { margin-top: 10px; }
.index-corrections { margin: 18px 0; }
.index-corrections h2 { font-size: 26px; text-align: left; margin-bottom: 8px; }
.index-corrections ul { padding-left: 18px; color: var(--text); font-size: 15px; }

/* Hub */
.latest-issue { background: rgba(255,255,255,0.025); border: 1px solid rgba(201,169,110,0.35); border-radius: 20px; padding: 32px 34px 30px; }
.latest-issue h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 6px; }
.latest-issue h2 a { color: var(--gold); }
.latest-title { color: var(--text); font-size: 17px; margin-bottom: 6px; }
.latest-issue .as-of { margin-bottom: 12px; }
.latest-issue p:not(.as-of):not(.latest-title) { color: var(--muted); font-size: 16px; max-width: 760px; }
.latest-issue .issue-actions { justify-content: flex-start; }
.archive-list { list-style: none; padding: 0; margin-top: 16px; border-top: 1px solid var(--border); }
.archive-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.archive-title { font-family: "Cormorant Garamond", serif; font-size: 26px; }
.archive-status { color: var(--muted); font-size: 14px; flex: 1; }
.archive-csv { margin-left: auto; font-size: 13px; letter-spacing: 1px; border: 1px solid rgba(201,169,110,0.45); border-radius: 999px; padding: 4px 12px; }

/* Methodology */
.methodology-copy { max-width: 760px; }
.methodology-copy p { font-size: 18px; }
main section.tight.methodology-links { padding-top: 8px; padding-bottom: 72px; max-width: 760px; }
.methodology-links .index-section-links { margin: 0; padding-top: 22px; border-top: 1px solid var(--border); }

/* Category page callout */
main section.tight.index-callout-wrap { padding-top: 8px; padding-bottom: 8px; }
.index-callout { max-width: 800px; background: rgba(201,169,110,0.06); border: 1px solid rgba(201,169,110,0.3); border-radius: 18px; padding: 22px 26px; }
.index-callout .index-callout-kicker { font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--emerald); margin-bottom: 6px; }
.index-callout .index-callout-title { font-family: "Cormorant Garamond", serif; font-size: 26px; color: var(--gold); margin-bottom: 6px; }
.index-callout p { color: var(--text); opacity: 0.92; font-size: 16px; }
.index-callout .index-callout-title { opacity: 1; line-height: 1.2; }
.index-callout-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }

@media (max-width: 1000px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .index-hero h1 { font-size: 32px; }
  nav.index-toc { padding: 0 20px; margin-top: 28px; }
  main section.tight.index-section { padding-top: 36px; }
  .issue-meta { gap: 10px 24px; }
  .index-disclaimer { border-radius: 16px; font-size: 14px; }
  .latest-issue { padding: 24px 20px; }
  .methodology-copy p { font-size: 17px; }
}
@media (max-width: 700px) {
  /* Tables become one compact card per row */
  .index-table-wrap { border: 0; background: none; overflow: visible; }
  .index-table, .index-table tbody { display: block; width: 100%; }
  .index-table thead { display: none; }
  .index-table tr {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; margin-bottom: 10px; padding: 14px 16px 14px;
    border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,0.02);
  }
  .index-table th, .index-table td { display: block; padding: 0; border: 0 !important; font-size: 14px; min-width: 0; white-space: normal; }
  .index-table td::before { content: attr(data-label); display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; line-height: 1.3; white-space: normal; }
  .index-table tbody th { grid-column: 1 / -1; order: -3; font-family: "Cormorant Garamond", serif; font-size: 22px; color: var(--gold); line-height: 1.15; margin-bottom: -6px; }
  .index-table td:first-child, .index-table td.unit { order: -2; grid-column: span 1; }
  .index-table td:first-child::before, .index-table td.unit::before { display: none; }
  .index-table td:first-child { grid-column: 1 / 3; color: var(--muted); font-size: 13px; }
  .index-table td.price-na { grid-column: 1 / -1; text-align: left; }
  .index-table td.unit { color: var(--muted); font-size: 13px; text-align: right; }
  .index-table td:first-child, .index-table td:first-child { min-width: 0; }
  .stat-card { padding: 16px 14px 14px; }
  .stat-value { font-size: 32px; }
  .stat-value.pending { font-size: 24px; }
  .index-soon { margin-left: 0; }
  .issue-actions a { width: 100%; text-align: center; }
  .latest-issue .issue-actions a { width: 100%; }
  .archive-status { flex-basis: 100%; order: 3; }
}
.index-corrections-none { font-size: 14px !important; }
