/*
 * Generated place pages: /states, /{state}, /{state}/units/{unit}, /rut/{state},
 * and the tools. Light, earthy, topo-lined; blaze orange is the accent.
 * Markup comes from website/site/gen.mjs.
 */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/assets/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/assets/fonts/barlow-condensed-700.woff2) format("woff2"); }

.pl {
    --paper: #F5F1E8;
    --card: #FFFDF8;
    --ink: #1E271D;
    --muted: #535C4D;
    --line: #DCD3C1;
    --blaze: #E8590C;
    --blaze-ink: #B8420A;
    --olive: #5F6F3A;
    --display: "Barlow Condensed", "Arial Narrow", -apple-system, sans-serif;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 24px;
}
.pl * { box-sizing: border-box; }
.pl a { color: var(--blaze-ink); }
.pl a:focus-visible, .pl button:focus-visible, .pl summary:focus-visible { outline: 2px solid var(--blaze); outline-offset: 2px; border-radius: 4px; }
.pl h1, .pl h2, .pl h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0; line-height: 1.05; margin: 0; }
.pl h1 { font-size: clamp(38px, 6vw, 60px); }
.pl h2 { font-size: clamp(28px, 4vw, 36px); margin-bottom: 12px; }
.pl h3 { font-size: 22px; margin-bottom: 6px; }
.pl p { margin: 0 0 12px; }

/* Topo contour band behind the page head. */
.pl-head {
    position: relative;
    padding: 112px 24px 36px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='300' viewBox='0 0 600 300'%3E%3Cg fill='none' stroke='%238A9A6B' stroke-opacity='.28' stroke-width='1.2'%3E%3Cpath d='M-20 220c80-40 140-30 210 0s150 40 230 0 140-30 200 0'/%3E%3Cpath d='M-20 190c80-40 140-30 210 0s150 40 230 0 140-30 200 0'/%3E%3Cpath d='M-20 160c90-50 150-40 220-5s150 35 230-5 130-35 190 0'/%3E%3Cpath d='M-20 128c90-55 160-45 230-10s140 35 220-10 130-35 190 0'/%3E%3Cpath d='M60 90c40-40 120-50 170-20s50 60 0 70-130 0-170-50z'/%3E%3Cpath d='M95 88c25-22 80-28 112-10s30 36 0 42-86 0-112-32z'/%3E%3Cpath d='M380 70c50-30 130-30 160 0s0 60-60 60-130-30-100-60z'/%3E%3Cpath d='M415 75c30-15 80-15 98 2s0 34-36 34-80-18-62-36z'/%3E%3C/g%3E%3C/svg%3E") center/600px 300px repeat,
        var(--paper);
    border-bottom: 1px solid var(--line);
}
.pl .pl-head > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.pl-crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.pl-crumbs a { color: var(--muted); text-decoration: none; }
.pl-crumbs a:hover { color: var(--blaze-ink); text-decoration: underline; }
.pl-crumbs span[aria-hidden] { margin: 0 6px; }
.pl-kicker { display: block; font: 700 15px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--blaze-ink); margin-bottom: 8px; }
/* .pl p zeroes the top margin, so this needs the extra class to win. */
.pl .pl-answer { font-size: 19px; max-width: 760px; margin-top: 16px; color: var(--ink); }
.pl-updated { font-size: 13px; color: var(--muted); margin-top: 10px; }

.pl-wrap { max-width: 1088px; margin: 0 auto; padding: 0 24px; }
.pl-section { padding: 36px 0 8px; }
.pl-section > p.pl-sub { color: var(--muted); max-width: 720px; }

/* Stats strip */
.pl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.pl-stats li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.pl-stats b { display: block; font: 700 34px/1 var(--display); color: var(--ink); }
.pl-stats span { font-size: 14px; color: var(--muted); }

/* Land managers: one stacked bar + legend */
.pl-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: #E9E2D3; border: 1px solid var(--line); margin: 6px 0 14px; }
.pl-bar i { display: block; height: 100%; }
.pl-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 6px 18px; padding: 0; margin: 0; list-style: none; font-size: 15px; }
.pl-legend li { display: flex; align-items: center; gap: 8px; }
.pl-legend i { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.pl-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* Two columns: facts + map */
.pl-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.pl-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.pl-map svg { display: block; width: 100%; height: auto; }
.pl-map figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.pl-map a path { transition: fill-opacity .15s; }
.pl-map a:hover path, .pl-map a:focus path { fill-opacity: .95; stroke: var(--ink); }
.pl-live { margin-top: 12px; }
.pl-live-frame { position: relative; height: 420px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #DDE3D2; margin-top: 12px; }
.pl-live-frame[hidden] { display: none; }
.pl-live-frame > div { position: absolute; inset: 0; }

.pl-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px -apple-system, BlinkMacSystemFont, sans-serif; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.pl-btn:hover { background: var(--ink); color: var(--paper); }
.pl-btn.solid { background: var(--blaze); border-color: var(--blaze); color: #fff; }
.pl-btn.solid:hover { background: var(--blaze-ink); border-color: var(--blaze-ink); }

/* Tables */
.pl-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.pl table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pl th, .pl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pl tr:last-child td { border-bottom: 0; }
.pl th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #F1EBDD; white-space: nowrap; }
.pl th button { all: unset; cursor: pointer; }
.pl th button::after { content: " ↕"; color: #A39A86; }
.pl th[aria-sort="ascending"] button::after { content: " ↑"; color: var(--blaze-ink); }
.pl th[aria-sort="descending"] button::after { content: " ↓"; color: var(--blaze-ink); }
.pl td.num, .pl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl td small { display: block; color: var(--muted); font-size: 13px; }
.pl .pct { display: inline-block; min-width: 3.2em; }
.pl .pct-bar { display: inline-block; width: 60px; height: 8px; border-radius: 4px; background: #E9E2D3; vertical-align: middle; margin-left: 8px; overflow: hidden; }
.pl .pct-bar i { display: block; height: 100%; background: var(--olive); }

/* Chips (neighbours, states) */
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.pl-chips a { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; }
.pl-chips a small { color: var(--muted); margin-left: 4px; }
.pl-chips a:hover { border-color: var(--blaze); }

/* App gate */
.pl-gate { margin: 40px 0 8px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; background: var(--ink); color: var(--paper); border-radius: 20px; padding: 28px; }
.pl-gate h2 { color: #fff; }
.pl-gate p { color: #D9D3C4; margin: 0 0 14px; max-width: 620px; }
.pl-gate a { color: #FFB27A; }
.pl-gate .pl-gate-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pl-gate .appstore-badge img { height: 46px; width: auto; display: block; }
.pl-gate .wh-qr { color: #D9D3C4; }

/* FAQ */
.pl-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.pl-faq summary { cursor: pointer; font-weight: 700; }
.pl-faq details p { margin: 10px 0 0; color: var(--muted); }

.pl-sources { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; }
.pl-sources h2 { font-size: 22px; color: var(--ink); }
.pl-sources li { margin-bottom: 6px; }

.pl-note { font-size: 14px; color: var(--muted); }
.pl-callout { border-left: 4px solid var(--blaze); background: var(--card); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 14px 0; }

/* Rut rows (from the /rut page) */
.pl .rows { display: grid; gap: 10px; }
.pl .row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pl .row .where { font-weight: 700; }
.pl .row .when { font-weight: 800; color: var(--blaze-ink); text-align: right; white-space: nowrap; }
.pl .row .note, .pl .row .src { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.pl .badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 100px; margin-left: 6px; vertical-align: 2px; }
.pl .badge.primary { background: #E3EBD3; color: #3D5420; }
.pl .badge.secondary { background: #F6E3CF; color: #8A4B12; }
.pl .none { color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; }
.pl .species { color: var(--muted); }

/* Gentle reveal; nothing moves for people who asked for less motion. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .pl-reveal { animation: pl-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    }
}
/* Never fully transparent: content stays readable if the timeline never runs (print, crawlers, screenshots). */
@keyframes pl-rise { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
    .pl-grid { grid-template-columns: 1fr; }
    .pl-gate { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .pl-head { padding: 96px 16px 28px; }
    .pl-wrap { padding: 0 16px; }
    .pl .pl-answer { font-size: 17px; margin-top: 14px; }
    .pl .row { grid-template-columns: 1fr; }
    .pl .row .when { text-align: left; white-space: normal; }
    .pl-live-frame { height: 340px; }
}
