/* ==========================================================================
   Prescott Central: shared stylesheet (2026 redesign)
   Warm high-desert palette: pine, granite, sunset, Prescott-blue sky
   ========================================================================== */
:root {
    --pine: #2f5d50;
    --pine-d: #1d3d34;
    --pine-l: #e5efe9;
    --sky: #0071bc;            /* the blue in the logo's map pin */
    --sky-l: #e3f1fb;
    --sun: #f2a541;
    --sunset: #d9693a;
    --sunset-d: #b8522a;
    --sand: #faf5ec;
    --cream: #fffdf9;
    --granite: #4b4a4f;
    --ink: #1e1d1f;
    --muted: #6a6a70;
    --line: #e9e0d1;
    --ok: #2e8b57;
    --bad: #c0392b;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(40, 30, 20, .06), 0 8px 24px rgba(40, 30, 20, .08);
    --shadow-lg: 0 2px 6px rgba(40, 30, 20, .08), 0 18px 48px rgba(40, 30, 20, .16);
    --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink);
    background: var(--sand);
}
img { max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sunset-d); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.site-main { flex: 1 0 auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
svg.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons & forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    font: inherit; font-weight: 700; padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
    background: var(--pine); color: #fff; text-decoration: none; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--pine-d); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-sun { background: var(--sunset); }
.btn-sun:hover { background: var(--sunset-d); }
.btn-ghost { background: transparent; color: var(--pine); border-color: currentColor; }
.btn-ghost:hover { background: var(--pine-l); color: var(--pine-d); }
.btn-light { background: #fff; color: var(--pine-d); }
.btn-light:hover { background: var(--sand); color: var(--pine-d); }
.btn-danger { background: var(--bad); }
.btn-danger:hover { background: #962d22; }
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--sky); cursor: pointer; text-decoration: underline; }

.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); }
.form-narrow { max-width: 480px; margin: 0 auto; }
.form-wide { max-width: 900px; margin: 0 auto; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--granite); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=search], input[type=number], select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #d9cfbf; border-radius: 12px; padding: .75em .9em;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(47, 93, 80, .15); }
textarea { resize: vertical; min-height: 110px; }
input[type=file] { font: inherit; width: 100%; padding: 12px; border: 2px dashed #d9cfbf; border-radius: 12px; background: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.span-2 { grid-column: 1 / -1; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; font-size: 1.1rem; padding: 6px; }
.form-foot { text-align: center; margin-top: 18px; color: var(--muted); }
.previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.previews img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; border: 2px solid var(--line); }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; color: var(--pine-d); }
.section-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-size: 1.1rem; color: var(--pine-d); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.notice { border-radius: 14px; padding: 14px 18px; margin: 0 0 18px; border: 1px solid; }
.notice-ok { background: #e8f6ee; border-color: #b9e2c9; color: #185c37; }
.notice-error { background: #fdecea; border-color: #f5c2bd; color: #8a2219; }
.notice-info { background: var(--sky-l); border-color: #bcdcf3; color: #0b4a77; }
.notice-warn { background: #fff5e0; border-color: #f4d9a2; color: #7a5208; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 249, .92);
    backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: block; flex: none; line-height: 0; }
.brand-logo { width: clamp(170px, 20vw, 250px); height: auto; }
.header-search { flex: 1; max-width: 460px; display: flex; align-items: center; background: #fff; border: 1.5px solid #ded4c4; border-radius: 999px; padding: 4px 4px 4px 14px; transition: box-shadow .15s, border-color .15s; }
.header-search:focus-within { border-color: var(--pine); box-shadow: 0 0 0 4px rgba(47, 93, 80, .12); }
.header-search svg { color: var(--muted); }
.header-search input { border: 0; padding: 8px 10px; background: transparent; box-shadow: none !important; min-width: 0; }
.header-search button { border: 0; background: var(--pine); color: #fff; font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.header-search button:hover { background: var(--pine-d); }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { text-decoration: none; color: var(--granite); font-weight: 600; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.site-nav a:hover, .site-nav a.is-active { background: var(--pine-l); color: var(--pine-d); }
.site-nav a.nav-cta { background: var(--sunset); color: #fff; }
.site-nav a.nav-cta:hover { background: var(--sunset-d); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; border-radius: 12px; }
.burger { display: grid; gap: 5px; width: 24px; }
.burger i { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-open .burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .burger i:nth-child(2) { opacity: 0; }
.nav-open .burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
    .header-inner { flex-wrap: wrap; gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
    .nav-toggle { display: block; }
    .header-search { order: 3; flex: 1 0 100%; max-width: none; }
    .site-nav {
        order: 4; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
        max-height: 0; overflow: hidden; transition: max-height .3s ease;
    }
    .nav-open .site-nav { max-height: 420px; padding-bottom: 8px; }
    .site-nav a { padding: 12px 14px; border-radius: 12px; }
    .site-nav a.nav-cta { text-align: center; margin-top: 6px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--pine-d); color: #dfe9e4; position: relative; }
.footer-ridge { position: absolute; top: -40px; left: 0; right: 0; height: 41px; line-height: 0; }
.footer-ridge svg { width: 100%; height: 100%; fill: var(--pine-d); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 26px; }
.footer-logo { width: 220px; background: #fff; padding: 10px 14px; border-radius: 12px; }
.footer-brand p { margin-top: 12px; color: #c4d6cd; max-width: 380px; }
.footer-h { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: #fff; text-decoration: none; opacity: .9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; color: var(--sun); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 24px; font-size: .88rem; color: #b6c9bf; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Page band (inner pages) ---------- */
.page-band { background: linear-gradient(135deg, var(--pine-d), var(--pine) 60%, #3d7a67); color: #fff; padding: 34px 0 40px; position: relative; overflow: hidden; }
.page-band::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 165, 65, .45), transparent 70%); }
.page-band h1 { color: #fff; margin: 6px 0 4px; position: relative; z-index: 1; }
.band-sub { color: #d7e6df; margin: 0; position: relative; z-index: 1; font-size: 1.05rem; }
.crumbs { font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; position: relative; z-index: 1; }
.crumbs a { color: #fff; opacity: .85; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; color: #fff; }
.crumbs span { opacity: .75; }
.page-body { padding: 32px 0; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; color: var(--pine-d); font-size: 1.35rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; overflow: hidden; color: #fff; padding: clamp(46px, 8vw, 96px) 0 clamp(120px, 15vw, 190px); background: var(--hero-bg, linear-gradient(180deg, #4aa3df 0%, #8cc7ec 45%, #f8d9a8 100%)); }
.hero.t-dawn  { --hero-bg: linear-gradient(180deg, #6c7fc4 0%, #e9a6a1 55%, #fbd7a3 100%); }
.hero.t-day   { --hero-bg: linear-gradient(180deg, #2f8fd3 0%, #7cc0ea 50%, #f6dcae 100%); }
.hero.t-dusk  { --hero-bg: linear-gradient(180deg, #3b3f7a 0%, #c0627a 50%, #f2a541 100%); }
.hero.t-night { --hero-bg: linear-gradient(180deg, #0d1b33 0%, #1d3557 55%, #4b4f7e 100%); }
.hero-scene { position: absolute; inset: auto 0 0 0; height: clamp(120px, 18vw, 230px); pointer-events: none; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero-sun { position: absolute; width: clamp(80px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%; right: 12%; top: 18%; background: radial-gradient(circle, #fff6d5 0%, #ffd27a 45%, rgba(255, 210, 122, 0) 70%); animation: glow 6s ease-in-out infinite; }
.hero.t-night .hero-sun { background: radial-gradient(circle, #ffffff 0%, #e6ecff 35%, rgba(230, 236, 255, 0) 68%); }
.hero-stars { position: absolute; inset: 0; display: none; }
.hero.t-night .hero-stars, .hero.t-dusk .hero-stars { display: block; }
.hero-stars i { position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; animation: twinkle 3s ease-in-out infinite; }
.hero-cloud { position: absolute; top: 22%; left: -20%; width: 200px; height: 60px; background: rgba(255, 255, 255, .55); border-radius: 60px; filter: blur(2px); animation: drift 70s linear infinite; }
.hero-cloud::before, .hero-cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.hero-cloud::before { width: 90px; height: 90px; top: -45px; left: 30px; }
.hero-cloud::after { width: 70px; height: 70px; top: -30px; left: 100px; }
.hero-cloud.c2 { top: 40%; width: 140px; height: 42px; animation-duration: 95s; animation-delay: -40s; opacity: .7; }
.hero.t-night .hero-cloud { opacity: .15; }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero-kicker { display: inline-flex; gap: 8px; align-items: center; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; backdrop-filter: blur(6px); }
.hero h1 { color: #fff; font-size: clamp(2rem, 5.4vw, 3.6rem); margin: 18px auto 10px; max-width: 900px; text-shadow: 0 2px 18px rgba(0, 0, 0, .18); }
.hero p.lead { font-size: clamp(1.02rem, 2vw, 1.25rem); max-width: 640px; margin: 0 auto 26px; color: rgba(255, 255, 255, .95); text-shadow: 0 1px 8px rgba(0, 0, 0, .2); }
.hero-search { display: flex; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg); }
.hero-search input { border: 0; font-size: 1.1rem; padding: 12px 18px; background: transparent; box-shadow: none !important; }
.hero-search button { flex: none; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--pine-d); text-decoration: none; font-weight: 700; font-size: .92rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: transform .15s; }
.chip:hover { transform: translateY(-2px); color: var(--sunset-d); }
.hero-now { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; background: rgba(0, 0, 0, .18); padding: 6px 14px 6px 8px; border-radius: 999px; color: #fff; text-decoration: none; }
.hero-now:hover { color: #fff; background: rgba(0, 0, 0, .28); }
.hero-now .wx-icon { width: 34px; height: 34px; }

.section { padding: 46px 0 10px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sunset-d); margin-bottom: 6px; }

/* ---------- Weather ---------- */
.wx-panel { position: relative; margin-top: -110px; z-index: 3; background: var(--cream); border-radius: 26px; box-shadow: var(--shadow-lg); padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); }
.wx-top > * { min-width: 0; }
.wx-top { display: grid; grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2fr); gap: 26px; align-items: stretch; }
.wx-now { border-radius: 20px; padding: 20px 22px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(150deg, #2d8fd5, #64b5e8); display: flex; flex-direction: column; }
.wx-now.wx-bg-partly { background: linear-gradient(150deg, #3e86c0, #8fc2e6); }
.wx-now.wx-bg-cloudy, .wx-now.wx-bg-fog, .wx-now.wx-bg-haze { background: linear-gradient(150deg, #5d6d7e, #93a3b3); }
.wx-now.wx-bg-rain, .wx-now.wx-bg-sleet { background: linear-gradient(150deg, #34506b, #5f7f9e); }
.wx-now.wx-bg-thunder { background: linear-gradient(150deg, #2a2340, #4f4a72); }
.wx-now.wx-bg-snow { background: linear-gradient(150deg, #7d9cc0, #c9d9ec); }
.wx-now.wx-bg-wind { background: linear-gradient(150deg, #3f8c84, #7cc4b5); }
.wx-now.is-night { background: linear-gradient(150deg, #13213d, #34466e); }
.wx-now-label { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.wx-now-main { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.wx-now-main .wx-icon { width: 110px; height: 110px; flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .18)); }
.wx-temp { font-size: 4.2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.wx-temp sup { font-size: .4em; vertical-align: top; position: relative; top: .35em; margin-left: 2px; }
.wx-cond { font-size: 1.2rem; font-weight: 700; }
.wx-quip { margin: 8px 0 12px; opacity: .95; font-size: .98rem; }
.wx-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.wx-pill { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 5px 12px; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.wx-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.wx-day { position: relative; text-align: center; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 6px 12px; cursor: pointer; font: inherit; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wx-day:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.wx-day[aria-pressed="true"] { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(47, 93, 80, .15); }
.wx-day .dname { font-weight: 800; font-size: .95rem; }
.wx-day .ddate { font-size: .75rem; color: var(--muted); }
.wx-day .wx-icon { width: 54px; height: 54px; margin: 2px 0; }
.wx-day .hi { font-weight: 800; font-size: 1.15rem; }
.wx-day .lo { color: var(--muted); font-weight: 600; }
.wx-day .short { font-size: .74rem; color: var(--granite); line-height: 1.2; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wx-pop { display: inline-flex; align-items: center; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--sky); }
.wx-pop.zero { visibility: hidden; }
.wx-range { width: 80%; height: 5px; border-radius: 4px; background: #eee5d6; position: relative; margin: 6px auto 2px; overflow: hidden; }
.wx-range span { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #6bb6e8, #f2a541, #d9693a); }
.wx-detail { margin-top: 16px; background: #fff; border-radius: 16px; border: 1.5px solid var(--line); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; animation: popIn .3s ease; }
.wx-detail .wx-icon { width: 70px; height: 70px; }
.wx-detail h3 { margin: 0 0 4px; }
.wx-detail p { margin: 0 0 6px; color: var(--granite); }
.wx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.wx-empty { text-align: center; padding: 30px 10px; color: var(--granite); }
.wx-empty .wx-icon { width: 90px; height: 90px; }
@media (max-width: 960px) {
    .wx-top { grid-template-columns: minmax(0, 1fr); }
    .wx-days { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 112px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .wx-day { scroll-snap-align: start; }
}
@media (max-width: 560px) {
    .wx-panel { margin-top: -90px; border-radius: 22px; }
    .wx-now-main .wx-icon { width: 88px; height: 88px; }
    .wx-temp { font-size: 3.4rem; }
}

/* Weather icon art + animation */
.wx-icon { overflow: visible; }
.wx-icon .wx-sun circle { fill: #ffc93c; }
.wx-icon .wx-rays rect { fill: #ffb21e; }
.wx-icon .wx-rays { transform-origin: 32px 32px; animation: spin 18s linear infinite; }
.wx-icon .wx-moon path { fill: #f4e7b8; }
.wx-icon .wx-stars circle { fill: #fff6c8; animation: twinkle 2.6s ease-in-out infinite; }
.wx-icon .wx-stars circle:nth-child(2) { animation-delay: .8s; }
.wx-icon .wx-stars circle:nth-child(3) { animation-delay: 1.6s; }
.wx-icon .wx-cloud { fill: #ffffff; stroke: #b9c6d3; stroke-width: 1.5; }
.wx-icon .wx-cloud-back { fill: #e6edf4; }
.wx-icon .wx-cloud-dark { fill: #8f9db0; stroke: #6c7a8d; }
.wx-icon .wx-cloud-fog { fill: #eef2f5; }
.wx-icon .wx-drift { animation: drift-sm 5s ease-in-out infinite alternate; }
.wx-icon .wx-back { animation-duration: 7s; animation-direction: alternate-reverse; }
.wx-icon .wx-drop { stroke: #3c9ae0; stroke-width: 3; stroke-linecap: round; animation: rain 1.1s linear infinite; }
.wx-icon .wx-drop.d1 { animation-delay: .35s; } .wx-icon .wx-drop.d2 { animation-delay: .7s; }
.wx-icon .wx-bolt { fill: #ffd23f; stroke: #e6a800; stroke-width: 1; animation: flash 2.4s steps(1) infinite; }
.wx-icon .wx-flake path { stroke: #7fb3e6; stroke-width: 2; stroke-linecap: round; }
.wx-icon .wx-flake { animation: snow 2.6s linear infinite; transform-box: fill-box; transform-origin: center; }
.wx-icon .wx-flake.f1 { animation-delay: .9s; } .wx-icon .wx-flake.f2 { animation-delay: 1.7s; }
.wx-icon .wx-wind path { fill: none; stroke: #6aa9a0; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 60; animation: wind 2.8s ease-in-out infinite; }
.wx-icon .wx-wind .w1 { animation-delay: .4s; stroke: #4f8f87; } .wx-icon .wx-wind .w2 { animation-delay: .8s; }
.wx-icon .wx-fog path { stroke: #a3b1bf; stroke-width: 3.5; stroke-linecap: round; animation: fog 3.5s ease-in-out infinite alternate; }
.wx-icon .wx-fog .g1 { animation-delay: .7s; } .wx-icon .wx-fog .g2 { animation-delay: 1.4s; }
.wx-now .wx-icon .wx-cloud { stroke: rgba(255, 255, 255, .6); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-card { position: relative; display: flex; gap: 14px; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dccfb9; }
.cat-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem; border-radius: 16px; background: hsl(var(--h, 30) 70% 92%); transition: transform .25s; }
.cat-card:hover .cat-ico { transform: rotate(-8deg) scale(1.08); }
.cat-card h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.cat-card h3 a { color: var(--ink); text-decoration: none; }
.cat-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cat-card h3 a:hover { color: var(--pine); }
.cat-subs { font-size: .88rem; color: var(--muted); margin: 0; position: relative; z-index: 1; }
.cat-subs a { color: var(--granite); text-decoration: none; }
.cat-subs a:hover { color: var(--sunset-d); text-decoration: underline; }

/* ---------- Daily fun (trivia / fact / quote) ---------- */
.fun-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: start; }
.fun-side { display: grid; gap: 20px; }
@media (max-width: 900px) { .fun-grid { grid-template-columns: 1fr; } }
.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.fact-card { position: relative; overflow: hidden; }
.fact-card .tag { display: inline-flex; gap: 6px; align-items: center; font-weight: 800; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--pine); background: var(--pine-l); padding: 4px 10px; border-radius: 999px; }
.fact-card p.big { font-size: 1.08rem; margin: 12px 0 10px; }
.fact-card .src { font-size: .82rem; color: var(--muted); }
.fact-card .src a { color: var(--muted); }
.quote-card blockquote { margin: 12px 0 8px; font-size: 1.15rem; font-style: italic; line-height: 1.45; position: relative; padding-left: 18px; border-left: 4px solid var(--sun); }
.quote-card cite { font-style: normal; font-weight: 700; color: var(--granite); }

.trivia { position: relative; overflow: hidden; background: linear-gradient(160deg, #fffaf0, #fff3df); border: 2px solid #f0d9b0; border-radius: 24px; padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }
.trivia::before { content: "🌵"; position: absolute; right: -6px; bottom: -14px; font-size: 7rem; opacity: .1; transform: rotate(-12deg); pointer-events: none; }
.trivia-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.trivia-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--sunset); color: #fff; font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: .85rem; letter-spacing: .02em; }
.trivia-score { font-weight: 700; color: var(--granite); font-size: .92rem; display: flex; gap: 12px; }
.trivia-score b { color: var(--pine-d); }
.trivia-q { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 800; margin: 16px 0 16px; line-height: 1.3; min-height: 2.6em; }
.trivia-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 560px) { .trivia-choices { grid-template-columns: 1fr; } }
.choice { text-align: left; font: inherit; font-weight: 700; padding: 13px 14px; border-radius: 14px; border: 2px solid #ead7b6; background: #fff; cursor: pointer; transition: transform .12s, border-color .15s, background .15s; display: flex; gap: 10px; align-items: center; color: var(--ink); }
.choice:hover:not([disabled]) { transform: translateY(-2px); border-color: var(--sun); }
.choice .letter { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-size: .85rem; color: var(--granite); }
.choice.is-right { border-color: var(--ok); background: #eaf7ef; }
.choice.is-right .letter { background: var(--ok); color: #fff; }
.choice.is-wrong { border-color: var(--bad); background: #fdeeee; animation: shake .4s; }
.choice.is-wrong .letter { background: var(--bad); color: #fff; }
.choice[disabled] { cursor: default; }
.trivia-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trivia-answer { perspective: 800px; }
.trivia-answer .reveal-card { margin-top: 16px; background: #fff; border-radius: 18px; border: 2px dashed var(--sun); padding: 16px 18px; transform-origin: top center; animation: flipDown .55s cubic-bezier(.2, .8, .3, 1.2); }
.reveal-card .ans { font-size: 1.15rem; font-weight: 800; color: var(--pine-d); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.reveal-card .fun { margin: 0 0 8px; }
.reveal-card .src { font-size: .82rem; color: var(--muted); margin: 0; }
.reveal-card .src a { color: var(--muted); }
.trivia-hint { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti span { position: absolute; top: 40%; font-size: 1.4rem; animation: confetti 1.2s ease-out forwards; }

/* ---------- CTA band ---------- */
.cta-band { margin-top: 46px; background: linear-gradient(120deg, var(--sunset), #e89a4a); color: #fff; border-radius: 26px; padding: clamp(24px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #fff3e6; max-width: 560px; }
.cta-band::after { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .14); }

/* ==========================================================================
   DIRECTORY LISTINGS
   ========================================================================== */
.sub-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.sub-pill { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; background: #fff; border: 1.5px solid var(--line); color: var(--granite); font-weight: 700; padding: 8px 14px; border-radius: 999px; transition: all .15s; }
.sub-pill:hover { border-color: var(--pine); color: var(--pine-d); background: var(--pine-l); transform: translateY(-1px); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 22px 0 18px; }
.toolbar .count { font-weight: 700; color: var(--granite); }
.toolbar-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar input[type=search] { width: 220px; padding: 9px 14px; border-radius: 999px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--granite); cursor: pointer; user-select: none; background: #fff; border: 1.5px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.toggle input { accent-color: var(--ok); width: 18px; height: 18px; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.seg a { text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 700; color: var(--granite); font-size: .9rem; }
.seg a.is-on { background: var(--pine); color: #fff; }

.biz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
@media (max-width: 420px) { .biz-grid { grid-template-columns: 1fr; } }
.biz-card { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); transition: transform .2s, box-shadow .2s; position: relative; scroll-margin-top: 110px; }
.biz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.biz-card.is-featured { border: 2px solid var(--sun); box-shadow: 0 0 0 4px rgba(242, 165, 65, .15), var(--shadow); }
.biz-card.is-highlight { animation: pulse 1.6s ease 2; }
.biz-card[hidden] { display: none; }
.biz-media { position: relative; aspect-ratio: 16 / 9; background: #eadfcd; overflow: hidden; }
.biz-cover { position: absolute; inset: 0; z-index: 1; display: block; }
.biz-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.biz-card:hover .biz-cover img { transform: scale(1.05); }
.biz-media.img-broken .biz-cover { display: none; }
.biz-monogram { position: absolute; inset: 0; display: grid; place-items: center; background:
    radial-gradient(circle at 30% 20%, hsl(var(--hue) 70% 78%), transparent 60%),
    linear-gradient(135deg, hsl(var(--hue) 45% 45%), hsl(calc(var(--hue) + 40) 50% 35%)); }
.biz-monogram span { font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, .92); letter-spacing: .04em; text-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
.biz-badges { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.badge-open { color: #17663a; }
.badge-open i { width: 8px; height: 8px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 0 rgba(34, 163, 90, .6); animation: ping 1.8s infinite; }
.badge-closed { color: #8a2219; }
.badge-featured { background: var(--sun); color: #4a2a00; }
.badge-new { background: var(--sky); color: #fff; }
.badge-special { background: var(--sunset); color: #fff; }
.biz-photos { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; pointer-events: none; }
.biz-body { padding: 16px 18px 6px; flex: 1; display: flex; flex-direction: column; }
.biz-cat { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sunset-d); text-decoration: none; }
.biz-name { margin: 2px 0 6px; font-size: 1.25rem; }
.biz-name a { color: var(--ink); text-decoration: none; }
.biz-name a:hover { color: var(--pine); }
.biz-addr { display: flex; gap: 6px; align-items: flex-start; color: var(--granite); font-size: .92rem; margin: 0 0 8px; }
.biz-addr svg { margin-top: 3px; color: var(--sunset); }
.biz-desc { color: #3a3a3e; font-size: .95rem; margin: 0 0 4px; }
.biz-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.biz-more { align-self: flex-start; font-size: .88rem; margin-bottom: 8px; }
.biz-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .9rem; color: var(--granite); margin: 6px 0 8px; }
.biz-hours > svg { color: var(--pine); }
.biz-hours details { width: 100%; }
.biz-hours summary { cursor: pointer; color: var(--sky); font-weight: 700; font-size: .86rem; list-style: none; display: inline-flex; gap: 4px; align-items: center; }
.biz-hours summary::-webkit-details-marker { display: none; }
.biz-hours summary::after { content: "▾"; transition: transform .2s; }
.biz-hours details[open] summary::after { transform: rotate(180deg); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .88rem; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.hours-table th, .hours-table td { padding: 6px 10px; text-align: left; border-bottom: 1px solid #f1eadd; }
.hours-table th { width: 64px; color: var(--muted); font-weight: 700; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table tr.is-today { background: var(--pine-l); font-weight: 700; }
.hours-table tr.is-today th { color: var(--pine-d); }
.biz-special { background: #fff4e6; border: 1px dashed #f0c48a; border-radius: 12px; padding: 8px 12px; font-size: .9rem; margin: 4px 0 10px; color: #6b3d0d; }
.biz-social { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 2px 0 10px; }
.biz-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); transition: transform .15s; color: var(--granite); }
.biz-social a:hover { transform: translateY(-2px) scale(1.06); }
.biz-social img { width: 18px; height: 18px; object-fit: contain; }
.biz-social a.owner-edit { width: auto; border-radius: 999px; padding: 0 12px; display: inline-flex; gap: 6px; font-size: .82rem; font-weight: 700; text-decoration: none; background: var(--pine-l); color: var(--pine-d); }
.biz-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); border-top: 1px solid var(--line); background: #fff; }
.act { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 4px; font: inherit; font-size: .8rem; font-weight: 700; color: var(--pine-d); text-decoration: none; background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; transition: background .15s, color .15s; }
.act:last-child { border-right: 0; }
.act svg { width: 20px; height: 20px; }
.act:hover { background: var(--pine-l); color: var(--pine-d); }
.act-call { color: #fff; background: var(--pine); }
.act-call:hover { background: var(--pine-d); color: #fff; }
.act.is-disabled { color: #b5b0a8; cursor: default; }
.act.is-disabled:hover { background: none; color: #b5b0a8; }
.biz-phone-line { margin: 0; padding: 6px 12px 8px; text-align: center; font-size: .82rem; color: var(--muted); background: #fff; border-top: 1px dashed var(--line); }
.load-more { text-align: center; margin: 28px 0 0; }
.empty-state { text-align: center; background: var(--cream); border: 2px dashed var(--line); border-radius: 22px; padding: 40px 20px; }
.empty-state .big-emoji { font-size: 3rem; display: block; margin-bottom: 8px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(15, 12, 10, .92); display: grid; place-items: center; animation: fadeIn .2s; }
.lb[hidden] { display: none; }
.lb img { max-width: 92vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: popIn .25s; }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }
.lb button { position: absolute; background: rgba(255, 255, 255, .14); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; opacity: 0; transition: all .25s; z-index: 300; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Plans / checkout ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--cream); border: 2px solid var(--line); border-radius: 22px; padding: 26px 22px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.is-best { border-color: var(--sun); box-shadow: 0 0 0 5px rgba(242, 165, 65, .15), var(--shadow-lg); }
.plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--sun); color: #4a2a00; font-weight: 800; padding: 5px 14px; border-radius: 999px; font-size: .82rem; white-space: nowrap; }
.plan h2 { font-size: 1.3rem; margin: 6px 0; }
.plan .price { font-size: 2.8rem; font-weight: 800; color: var(--pine-d); line-height: 1; margin: 10px 0 4px; }
.plan .price small { font-size: 1.2rem; vertical-align: top; }
.plan .period { color: var(--muted); }
.plan .save { margin: 10px 0 16px; font-weight: 700; color: var(--ok); }
.plan .pp-btn { margin-top: auto; min-height: 50px; }
.perks { list-style: none; padding: 0; margin: 0 auto 26px; max-width: 760px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.perks li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-weight: 600; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; gap: 18px; }
.dash-card { display: grid; grid-template-columns: 150px 1fr; gap: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.dash-card img, .dash-card .dash-ph { width: 150px; height: 150px; object-fit: cover; border-radius: 14px; }
.dash-ph { display: grid; place-items: center; background: #eee4d3; color: var(--muted); font-weight: 700; }
.dash-card h2 { font-size: 1.3rem; margin: 0 0 6px; }
.meta { margin: 2px 0; color: var(--granite); font-size: .94rem; }
.status { display: inline-block; font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; margin: 0 6px 8px 0; letter-spacing: .04em; }
.status-active { background: #dff3e7; color: #17663a; }
.status-pending { background: #fff1cf; color: #7a5208; }
.status-inactive { background: #fbe0dd; color: #8a2219; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 600px) { .dash-card { grid-template-columns: 1fr; } .dash-card img, .dash-card .dash-ph { width: 100%; height: 190px; } .grid-2 { grid-template-columns: 1fr; } }

.edit-layout { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.edit-side { position: sticky; top: 90px; }
.edit-side a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--granite); margin-bottom: 4px; }
.edit-side a.is-on { background: var(--pine); color: #fff; }
.edit-side a:not(.is-on):hover { background: var(--pine-l); }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.img-box { position: relative; }
.img-box img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.img-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 860px) { .edit-layout { grid-template-columns: 1fr; } .edit-side { position: static; } }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(20, 16, 12, .6); z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 420px; animation: popIn .25s; }

/* Success page */
.big-check { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #dff3e7; font-size: 3rem; animation: popIn .5s; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(150vw); } }
@keyframes drift-sm { from { transform: translateX(-2px); } to { transform: translateX(3px); } }
@keyframes rain { 0% { transform: translateY(-4px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
@keyframes snow { 0% { transform: translateY(-4px) rotate(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(8px) rotate(90deg); opacity: 0; } }
@keyframes flash { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: .15; } 55% { opacity: 1; } 60% { opacity: .3; } }
@keyframes wind { 0% { stroke-dashoffset: 60; } 50% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -60; } }
@keyframes fog { from { transform: translateX(-3px); } to { transform: translateX(4px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 163, 90, .6); } 80%, 100% { box-shadow: 0 0 0 7px rgba(34, 163, 90, 0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes flipDown { from { opacity: 0; transform: rotateX(-80deg); } to { opacity: 1; transform: rotateX(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: var(--shadow); } 50% { box-shadow: 0 0 0 6px rgba(242, 165, 65, .55), var(--shadow-lg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   News (home section, archive, story pages)
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-grid .news-lead { grid-column: span 2; }
.news-grid .news-lead .news-sum { font-size: 1.02rem; }
.news-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.news-card .news-title { margin: 2px 0 0; font-size: 1.08rem; line-height: 1.3; }
.news-card .news-title a { color: var(--ink); text-decoration: none; }
.news-card .news-title a:hover { color: var(--sunset-d); text-decoration: underline; }
.news-card .news-sum { margin: 0; color: var(--granite); font-size: .95rem; }
.news-lead { background: linear-gradient(160deg, #fff, var(--cream) 55%, var(--pine-l)); border-color: #d6e4dc; padding: 24px 26px; }
.news-lead .news-title { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.news-lead .news-sum { font-size: 1.04rem; color: var(--ink); }
.news-compact { padding: 14px 16px; box-shadow: none; }
.news-compact .news-title { font-size: 1rem; }
.news-compact .news-sum { font-size: .9rem; }
.news-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.news-region, .news-topic, .news-place { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; text-decoration: none; line-height: 1.4; }
.news-region.r-local { background: var(--pine); color: #fff; }
.news-region.r-az { background: var(--sunset); color: #fff; }
.news-topic { background: var(--sky-l); color: #0b4a77; }
.news-topic:hover { background: var(--sky); color: #fff; }
.news-place { background: transparent; color: var(--muted); padding-left: 2px; text-transform: none; letter-spacing: 0; font-weight: 700; font-size: .82rem; }
.news-src { margin: auto 0 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.news-src a { font-weight: 700; color: var(--pine); }
.news-src a:hover { color: var(--sunset-d); }
.news-home .section-head .btn { flex: none; }
.news-stale { background: #fff5e0; border: 1px solid #f4d9a2; color: #7a5208; border-radius: 12px; padding: 10px 14px; font-size: .95rem; }
.news-more { margin: 14px 0 0; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.news-more a { font-weight: 700; }
.news-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.news-chips a { padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--pine-d); font-weight: 700; font-size: .88rem; text-decoration: none; }
.news-chips a span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.news-chips a:hover, .news-chips a[aria-current="page"] { background: var(--pine); color: #fff; border-color: var(--pine); }
.news-chips a[aria-current="page"] span, .news-chips a:hover span { color: #dbe9e2; }
.news-feeds { margin: -10px 0 18px; font-size: .88rem; }
.news-day { margin: 0 0 34px; }
.news-day-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; border-bottom: 2px solid var(--line); margin-bottom: 16px; padding-bottom: 6px; }
.news-day-h { font-size: 1.25rem; margin: 18px 0 10px; }
.news-day-head .news-day-h { margin: 0; }
.news-day-h a { color: var(--pine-d); text-decoration: none; }
.news-day-h a:hover { color: var(--sunset-d); text-decoration: underline; }
.news-day-all { font-weight: 700; font-size: .9rem; }
.page-news .news-compact + .news-compact { margin-top: 10px; }
.news-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 30px 0; flex-wrap: wrap; }
.news-empty { color: var(--muted); font-size: 1.05rem; }
.news-about { margin-top: 34px; background: #fff; }
.news-about h2 { font-size: 1.15rem; }
.news-about p { color: var(--granite); font-size: .95rem; }
.news-about p:last-child { margin: 0; }
/* story page */
.story-band .news-tags { margin: 12px 0 4px; position: relative; z-index: 1; }
.news-tags.on-dark .news-topic { background: rgba(255, 255, 255, .92); }
.news-tags.on-dark .news-place { color: #e8f1ec; }
.story-band h1 { max-width: 920px; }
.story-band .band-sub { position: relative; z-index: 1; opacity: .9; }
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.story-body p { font-size: 1.16rem; line-height: 1.7; max-width: 720px; }
.story-source { margin: 24px 0 14px; max-width: 720px; }
.story-source-k { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sunset-d); }
.story-source-t { margin: 6px 0 2px; font-weight: 700; font-size: 1.08rem; }
.story-source-m { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.story-note { color: var(--muted); font-size: .9rem; max-width: 720px; }
.story-back a { font-weight: 700; }
.story-side { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 90px; }
.story-side-h { font-size: 1.02rem; margin: 0 0 10px; }
.story-list { list-style: none; margin: 0 0 14px; padding: 0; }
.story-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; justify-items: start; }
.story-list li a { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.3; }
.story-list li a:hover { color: var(--sunset-d); text-decoration: underline; }
.story-list .news-region { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; }
.story-list small { color: var(--muted); }
@media (max-width: 960px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-grid .news-lead { grid-column: 1 / -1; grid-row: auto; }
    .story-layout { grid-template-columns: 1fr; }
    .story-side { position: static; }
}
@media (max-width: 620px) {
    .news-grid, .news-grid.is-compact { grid-template-columns: 1fr; }
    .news-lead { padding: 20px; }
    .news-src { flex-direction: column; }
    .story-body p { font-size: 1.08rem; }
}
