/* Dahlia Pages — Shared Stylesheet
   Used by all 254 variety pages + the index page.
   Cached once, reused across all dahlia page navigations. */

@font-face { font-family:'VS Trailbum'; src:url('/fonts/VSTrailbum.woff2') format('woff2'), url('/fonts/VSTrailbum.woff') format('woff'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'National Park'; src:url('/fonts/NationalPark-Variable.ttf') format('truetype'); font-weight:100 900; font-display:swap; }
* { box-sizing: border-box; margin: 0; }
body { font-family:'National Park', system-ui, sans-serif; color:#2B484D; background:#F9F1E1; }
a { color:#994E36; }

/* ── Navigation ── */
.nav { background:#98CED8; padding:10px 20px; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:50; }
.nav a { color:#2B484D; text-decoration:none; font-size:13px; font-weight:500; }
.nav a:hover { color:#F9F1E1; }
.nav-links { display:flex; gap:16px; }

/* ── Hero ── */
.hero { background:linear-gradient(180deg,#2B484D,#3A6B6E); text-align:center; padding:36px 20px 28px; }
.hero h1 { font-family:'VS Trailbum', serif; font-size:34px; color:#F9F1E1; margin-bottom:6px; line-height:1.1; }
.hero .sub { font-family:'National Park', sans-serif; font-size:15px; color:#EAB23A; font-weight:600; }
.hero .count { font-size:13px; color:#98CED8; margin-top:6px; }
.breadcrumbs { font-size:12px; color:#6B9EA0; margin-bottom:6px; }
.breadcrumbs a { color:#98CED8; }

/* ── Main content area ── */
.main { max-width:700px; margin:0 auto; padding:28px 20px 48px; }
.page-index .main { max-width:900px; padding:24px 20px 48px; }

/* ── Cards (variety pages) ── */
.card { background:#fff; border:1.5px solid #98CED8; border-radius:10px; padding:20px 24px; margin-bottom:18px; }
.card h2 { font-family:'VS Trailbum', serif; font-size:18px; color:#2B484D; margin:0 0 12px; }
.card h3 { font-size:14px; font-weight:700; color:#2B484D; margin:0 0 8px; }
.code-badge { display:inline-block; background:#f0f8f8; border:1.5px solid #98CED8; border-radius:6px; padding:4px 12px; font-family:monospace; font-size:18px; font-weight:700; color:#994E36; letter-spacing:1px; }
.classification-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }
.classification-grid .item { background:#FAFAF7; border-radius:6px; padding:10px 14px; }
.classification-grid .item .label { font-size:10px; text-transform:uppercase; letter-spacing:1px; color:#6B9EA0; margin-bottom:2px; }
.classification-grid .item .value { font-size:14px; font-weight:600; color:#2B484D; }

/* ── Growing info ── */
.growing-list { list-style:none; padding:0; }
.growing-list li { padding:6px 0; border-bottom:1px solid #f0f0f0; font-size:13px; line-height:1.6; }
.growing-list li:last-child { border-bottom:none; }

/* ── Images / illustrations ── */
.illustration { text-align:center; margin:16px 0; }
.photo-container { text-align:center; margin:16px 0; }
.photo-container img { width:100%; max-width:500px; border-radius:10px; border:1.5px solid #98CED8; height:auto; }
.photo-credit { font-size:10px; color:#6B9EA0; margin-top:6px; text-align:center; }
.photo-credit a { color:#994E36; }
.color-swatch { display:inline-block; width:20px; height:20px; border-radius:4px; border:1.5px solid #98CED8; vertical-align:middle; margin-right:6px; }

/* ── CTA / product tie-in ── */
.cta { background:#2B484D; border-radius:10px; padding:18px 22px; margin-top:18px; text-align:center; }
.cta p { color:#98CED8; font-size:13px; line-height:1.6; }
.cta a.btn { display:inline-block; margin-top:10px; padding:10px 22px; background:#EAB23A; color:#2B484D; border-radius:8px; text-decoration:none; font-weight:700; font-size:13px; }

/* ── Prev/next navigation ── */
.prev-next { display:flex; justify-content:space-between; margin-top:24px; font-size:13px; }
.prev-next a { color:#994E36; text-decoration:none; }
.prev-next a:hover { text-decoration:underline; }

/* ── Tuber search links ── */
.search-links { display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.search-links a { display:inline-block; padding:6px 14px; border:1.5px solid #98CED8; border-radius:6px; font-size:12px; font-weight:600; text-decoration:none; color:#2B484D; background:#fff; }
.search-links a:hover { background:#f0f8f8; }

/* ── Index page: filters & table ── */
.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:16px; }
.filters input, .filters select { padding:8px 12px; border:1.5px solid #98CED8; border-radius:6px; font-family:'National Park', sans-serif; font-size:13px; color:#2B484D; background:#fff; outline:none; }
.filters input { flex:1; min-width:200px; }
.filters select { min-width:140px; }
.letter-nav { display:flex; gap:4px; flex-wrap:wrap; margin-bottom:16px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1.5px solid #98CED8; border-radius:10px; overflow:hidden; }
th { text-align:left; padding:10px 8px; border-bottom:2px solid #2B484D; font-size:11px; text-transform:uppercase; letter-spacing:1px; color:#6B9EA0; background:#f0f8f8; }
td { border-bottom:1px solid #f0f0f0; font-size:13px; }
tr:hover td { background:#FAFAF7; }
.hidden { display:none; }

/* ── Footer ── */
footer { text-align:center; padding:28px 20px 40px; border-top:1px solid #98CED8; max-width:700px; margin:0 auto; }
.page-index footer { max-width:900px; }
footer p { font-size:11px; color:#6B9EA0; line-height:1.6; }

/* ── Responsive ── */
@media (max-width:600px) {
  .hero h1 { font-size:26px; }
  .classification-grid { grid-template-columns:1fr; }
  .nav-links { gap:8px; flex-wrap:wrap; justify-content:center; }
  .nav-links a { font-size:11px; }
  .filters { flex-direction:column; }
  .filters input, .filters select { width:100%; }
}
