/* Poplar Ponderosa — site styles */
:root {
  --paper: #F5F1E8;
  --linen: #EAE3D3;
  --card: #FCFAF5;
  --line: #E2DACB;
  --ink: #2E3A3F;
  --ink-soft: #46555B;
  --slate: #4E6878;
  --slate-dark: #3F5765;
  --mist: #A9C1CC;
  --mist-soft: #DCE7EB;
  --sage: #8FA58A;
  --moss: #586D52;
  --sand: #C8A96A;
  --viewer: #E3E9E7;
  --serif: 'Young Serif', Georgia, serif;
  --sans: Inter, Arial, Helvetica, sans-serif;
  --radius: 12px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--slate); }
a:hover { color: var(--slate-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 21px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--moss); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 12px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 8px;
  font: 600 15px var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--slate); color: var(--paper); }
.btn-primary:hover { background: var(--slate-dark); color: var(--paper); }
.btn-secondary { border-color: var(--slate); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--mist-soft); color: var(--ink); }
.btn-moss { background: var(--moss); color: var(--paper); }
.btn-moss:hover { background: #4A5D45; color: var(--paper); }
.btn-block { display: flex; width: 100%; }
.btn svg { flex: none; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
.nav a:hover { background: var(--linen); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--slate); border-radius: 0; }
.support-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--slate); color: var(--paper); text-decoration: none; font-weight: 500; white-space: nowrap; }
.support-link:hover { background: var(--slate-dark); color: var(--paper); }
/* home: brand left, nav centred, support right */
.header-home .side { flex: 1 1 0; display: flex; }
.header-home .side-end { justify-content: flex-end; }
/* inner pages: brand left, everything else right */
.header-inner-page .nav { margin-left: auto; }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .header-home .side { flex: 1 1 auto; }
  .header-home .nav, .header-inner-page .nav { order: 3; width: 100%; justify-content: center; margin-left: 0; border-top: 1px solid var(--line); padding-top: 6px; }
  .header-inner-page .support-link { margin-left: auto; }
  .brand span { font-size: 20px; }
  .support-link { padding: 0 14px; }
}

/* hero */
.hero { position: relative; overflow: hidden; }
.hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 64px; }
.hero-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hero-text p { font-size: 17px; color: var(--ink-soft); max-width: 500px; }
.pill-3d { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--mist-soft); border: 1px solid var(--mist); font-size: 15px; font-weight: 600; }
.pill-3d .ico { width: 28px; height: 28px; border-radius: 50%; background: var(--slate); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-feature { flex: 1 1 460px; min-width: 0; background: var(--viewer); border: 1px solid #D3DCD8; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.hero-feature:hover { color: var(--ink); border-color: var(--mist); }
.hero-feature .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.hero-feature .cover { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--linen); }
.hero-feature .cover img { width: 100%; height: 100%; object-fit: cover; }
.open-link { font-weight: 600; font-size: 14px; }

/* sections */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head > div { display: flex; flex-direction: column; gap: 6px; }
.section-head > .filters { flex-direction: row; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #CFC6B4; background: transparent; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.filters button:hover { background: var(--linen); }
.filters button[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--paper); }

/* map cards */
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.map-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.map-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46,58,63,0.12); }
.map-card[hidden] { display: none; }
.map-card .thumb { aspect-ratio: 16 / 10; background: var(--linen); overflow: hidden; }
.map-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.map-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.map-card .body p { font-size: 14px; color: var(--ink-soft); }
.map-card .foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.tag { display: inline-flex; padding: 2px 10px; border-radius: 999px; background: var(--linen); font-size: 12px; font-weight: 500; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.view-link { font-weight: 600; color: var(--slate); }

/* video */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.video-layout .video-frame { flex: 2 1 520px; min-width: 0; }
.video-layout .video-text { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* support */
.support-panel { margin: 0 auto 64px; max-width: calc(var(--wrap) - 48px); padding: 40px; border-radius: 16px; background: var(--linen); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.support-panel > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) { .support-panel { margin: 0 16px 48px; padding: 28px 22px; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 40px; }
.footer-inner .brand-small { font-family: var(--serif); font-size: 20px; }
.footer-inner small { display: block; font-size: 13px; color: var(--ink-soft); max-width: 420px; margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

/* map page */
.map-main { padding-top: 24px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.crumbs { font-size: 14px; color: var(--ink-soft); }
.title-block { display: flex; flex-direction: column; gap: 10px; }
.title-block h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; }
.map-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.map-left { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.map-right { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.viewer { position: relative; background: var(--viewer); border: 1px solid #D3DCD8; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; touch-action: none; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer .cover-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer-tools { position: absolute; right: 12px; top: 12px; display: flex; gap: 8px; }
.viewer-tools button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #D3DCD8; background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.viewer-tools button:hover { background: #fff; }
.viewer-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(252,250,245,0.92); font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.viewer-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(252,250,245,0.94); font-size: 13px; font-weight: 600; }
.viewer-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 14px; }
.viewer:fullscreen { border-radius: 0; aspect-ratio: auto; }
.layers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.layers button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid #CFC6B4; background: transparent; color: var(--ink); font: 500 14px var(--sans); cursor: pointer; }
.layers button[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: var(--paper); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.card .divider { border-top: 1px solid var(--line); padding-top: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.facts .v { font-weight: 500; }
.res-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.res-row .lbl { width: 96px; flex: none; }
.res-row .track { flex: 1; height: 10px; border-radius: 5px; background: var(--linen); overflow: hidden; }
.res-row .fill { display: block; height: 100%; }
.res-row .val { width: 64px; text-align: right; color: var(--ink-soft); }
.conn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.conn { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 10px; border-radius: 8px; background: var(--paper); }
.details { margin: 0; padding: 20px 24px; border-radius: 16px; background: var(--linen); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; font-size: 14px; }
.details dt { color: var(--ink-soft); }
.details dd { margin: 0; font-weight: 500; }
.note { font-size: 14px; color: var(--ink-soft); background: var(--paper); border-radius: 10px; padding: 12px 14px; }
.update-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--mist-soft); font-size: 12px; font-weight: 600; color: var(--ink); }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 12px; color: #3A484E; }

/* 404 */
.center-page { min-height: 50vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding-top: 64px; padding-bottom: 64px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
