/*
Theme Name: Mystery Watch HQ
Description: Cinematic mystery-and-exploration theme based on the supplied woodland/lake reference. Editable homepage, responsive navigation, and optional HQ Site Tools integration.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 8.0
Author: Mystery Watch HQ
License: GPL-2.0-or-later
Text Domain: mystery-watch-hq
*/

/* Foundation: system fonts only. No font files, trackers or third-party assets. */
:root {
    --night: #02090d;
    --panel: #041217;
    --ink: #edf3f4;
    --muted: #bdd0d4;
    --green: #67f393;
    --blue: #8fcafa;
    --teal: #39e5c4;
    --amber: #fdb845;
    --line: #275754;
    --body: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --condensed: "Arial Narrow", "Liberation Sans Narrow", "Franklin Gothic Medium", Arial, sans-serif;
    --hand: "Segoe Print", "Comic Neue", "Comic Sans MS", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; position: relative; min-width: 280px; background: var(--night); color: var(--ink); font: 17px/1.55 var(--body); isolation: isolate; }
body, button, input, textarea, select { -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-underline-offset: .22em; }
a:hover { color: #fff; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; vertical-align: middle; }
svg { vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; }
p { margin-bottom: 1em; }
:focus-visible { outline: 3px solid #ffdd88; outline-offset: 5px; }
.wrap { width: min(1450px, calc(100% - 88px)); margin-inline: auto; }
.icon { display: inline-block; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 99; left: 16px; top: -100px; padding: 12px 20px; background: var(--green); color: #022514; font-weight: 700; }
.skip-link:focus { top: 12px; }
.scene-backdrop { position: absolute; z-index: -2; pointer-events: none; left: 0; top: 0; width: 100%; height: max(810px, 52.735vw); background: url('assets/scene-top.webp') center top / max(1536px, 100vw) auto no-repeat; }
.no-scenery .scene-backdrop, .no-scenery .footer-panorama { display: none; }

/* Image wordmark; navigation and every other heading are live HTML. */
.site-header { position: relative; z-index: 3; padding: 16px 24px 0; }
.brand-block { text-align: center; margin-inline: auto; max-width: 920px; }
.brand { display: block; width: fit-content; max-width: 100%; margin-inline: auto; text-decoration: none; }
.wordmark { width: 727px; max-width: 100%; height: auto; filter: drop-shadow(0 3px 12px #031919); }
.brand-text { display: block; font-family: var(--condensed); font-size: clamp(38px, 5.2vw, 80px); font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: 3px; color: #edf5f7; }
.custom-logo-link { display: inline-block; max-width: 727px; }
.custom-logo { width: auto; max-height: 110px; object-fit: contain; }
.brand-tagline { text-transform: uppercase; color: #e4edef; font-size: 14px; line-height: 1.5; letter-spacing: 4.4px; margin: 5px 0 15px; }
.navigation-shell { max-width: 808px; margin-inline: auto; border: 1px solid #387f74; border-radius: 14px; overflow: hidden; background: linear-gradient(110deg, #021c1bd9, #010a0cd9 45%, #08171bd9); box-shadow: 0 0 24px #00111133, inset 0 0 12px #15353626; }
.main-menu { list-style: none; display: flex; align-items: stretch; justify-content: center; padding: 0; margin: 0; }
.main-menu li { flex: 1 1 0; min-width: 0; }
.main-menu li + li { border-left: 1px solid #0c2726; }
.main-menu a { display: flex; align-items: center; justify-content: center; min-height: 49px; padding: 11px 16px; text-align: center; text-transform: uppercase; text-decoration: none; font: 700 17px/1.3 var(--condensed); letter-spacing: 1.8px; color: #f1f4f5; transition: background .18s, color .18s; overflow-wrap: anywhere; }
.main-menu a[aria-current="page"], .main-menu .current-menu-item > a, .main-menu .current_page_item > a { color: var(--green); background: #00302233; }
.main-menu a:hover { color: var(--green); background: #11443277; }
.main-menu a:focus-visible { outline-offset: -5px; border-radius: 10px; }
.menu-toggle { display: none; }

/* Field notes sit around, not inside, the reading surface. */
.field-note { background: #e7d7b8 url('assets/paper-texture.svg') center / 190px; color: #121711; font: 700 20px/1.35 var(--hand); letter-spacing: .8px; text-transform: uppercase; padding: 22px 19px 23px; width: 207px; clip-path: polygon(2% 2%, 8% 3%, 13% 1%, 21% 2%, 32% 0, 43% 2%, 56% 1%, 68% 3%, 76% 1%, 87% 2%, 97% 0, 99% 12%, 98% 24%, 100% 39%, 98% 50%, 100% 62%, 98% 74%, 100% 88%, 97% 100%, 86% 98%, 74% 100%, 65% 98%, 54% 100%, 46% 98%, 35% 100%, 27% 97%, 15% 99%, 3% 100%, 2% 91%, 0 83%, 2% 70%, 0 59%, 2% 48%, 0 33%, 2% 22%, 0 12%); overflow-wrap: anywhere; }
.field-note-left { position: absolute; top: 36px; left: max(36px, calc((100% - 1464px)/2)); transform: rotate(-8deg); }
.corner-motto { position: absolute; right: max(40px, calc((100% - 1456px)/2)); top: 54px; margin: 0; text-align: center; font: 20px/1.45 var(--condensed); text-transform: uppercase; letter-spacing: 3px; }
.field-scribble { position: absolute; top: 439px; left: max(59px, calc((100% - 1418px)/2)); width: 295px; font: 21px/1.34 var(--hand); letter-spacing: 1.4px; text-transform: uppercase; transform: rotate(-5deg); margin: 0; }
.pencil-line { display: block; width: 100px; height: 3px; margin-top: 10px; background: linear-gradient(90deg, #64f77b 20%, #27ca72 75%, transparent); transform: rotate(-3deg); }
.field-note-right { position: absolute; width: 160px; top: 446px; right: max(41px, calc((100% - 1454px)/2)); padding: 18px 17px 20px; font-size: 17px; transform: rotate(-7deg); }
.field-note-right .pencil-line { width: 86px; }

/* Welcome surface. */
.home-main { position: static; padding-top: 1px; }
.welcome-panel { width: min(792px, calc(100% - 48px)); margin: 32px auto 0; padding: 0 28px 24px; text-align: center; position: relative; background: linear-gradient(160deg, #01090ce3, #01090cef 60%, #011a1b6b); border: 1px solid #17403d; border-top-color: #0b211f; border-radius: 11px; box-shadow: 0 18px 60px #0006; }
.welcome-eyebrow { display: table; margin: -18px auto 1px; padding-inline: 20px; background: #02090d; font: 400 46px/1.15 var(--condensed); text-transform: uppercase; letter-spacing: 2px; }
.welcome-panel h1 { margin: 0; font: 800 51px/1.13 var(--condensed); color: var(--green); text-transform: uppercase; letter-spacing: 1.6px; text-shadow: 0 3px 20px #16774344; }
.welcome-intro { max-width: 670px; margin: 9px auto 0; font-size: 19px; line-height: 1.27; letter-spacing: .1px; }
.welcome-invitation { font-size: 23px; line-height: 1.28; font-weight: 700; margin: 10px 0 5px; }
.welcome-details { font-size: 17px; line-height: 1.42; margin: 0; }
.hero-actions { display: flex; gap: 32px; margin: 20px auto 0; max-width: 665px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 49px; border: 1px solid var(--green); border-radius: 28px; padding: 12px 26px; color: var(--green); background: #06281b55; text-decoration: none; font-family: var(--condensed); font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: 1.2px; text-align: center; transition: background .18s, box-shadow .18s, transform .18s; }
.btn:hover { color: #fff; background: #143b2cbf; box-shadow: 0 0 24px #56fa8622; transform: translateY(-2px); }
.btn .icon { width: 21px; height: 21px; }
.hero-actions .btn { flex: 1 1 0; border-width: 2px; text-transform: uppercase; font-size: 21px; min-height: 51px; padding: 10px 20px; }
.btn-join { box-shadow: inset 0 0 20px #123a1322, 0 0 24px #0f552326; }
.btn-report { color: #abd7ff; border-color: #568db9; background: #07172655; }
.btn-report:hover { background: #15354ab3; box-shadow: 0 0 24px #509cd82e; }
.btn.secondary, .btn.outline { background: transparent; border-color: #709296; color: #d9e6e9; }
.btn.small { font-size: 16px; min-height: 42px; padding: 8px 18px; }
.btn.yellow { color: #ffe0a5; border-color: var(--amber); background: #32221166; }

/* Four links: entire cards are interactive and keyboard accessible. */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.16fr; gap: 15px; margin-top: 19px; position: relative; z-index: 1; }
.feature-card { display: grid; grid-template-columns: 62px minmax(0,1fr); column-gap: 22px; align-content: start; padding: 23px 20px; min-height: 175px; position: relative; border: 1px solid #2a615e; border-radius: 9px; text-decoration: none; color: var(--ink); background: linear-gradient(150deg, #001217de, #01090ce8 70%, #15343c91); box-shadow: 0 8px 25px #0003; transition: border-color .18s, background .18s, transform .18s; }
.tone-green { --accent: var(--green); }
.tone-blue { --accent: #65bdfc; }
.tone-amber { --accent: var(--amber); }
.tone-purple { --accent: #c7a0ff; }
.tone-teal { --accent: var(--teal); }
.feature-card:hover { color: var(--ink); transform: translateY(-4px); border-color: var(--accent); background: linear-gradient(150deg, #05282ae8, #041315f2); }
.feature-icon { color: var(--accent); padding-top: 0; filter: drop-shadow(0 0 9px #4cffbc12); }
.feature-icon .icon { width: 62px; height: 62px; }
.feature-card h2 { font: 700 19px/1.2 var(--condensed); text-transform: uppercase; letter-spacing: .4px; margin: 1px 0 8px; }
.feature-card p { font-size: 16px; line-height: 1.47; margin: 0; }
.feature-arrow { position: absolute; right: 10px; top: 6px; color: var(--accent); font-size: 18px; opacity: 0; transition: opacity .18s; }
.feature-card:hover .feature-arrow, .feature-card:focus-visible .feature-arrow { opacity: 1; }

/* Valley footer, with small utility links kept outside the main navigation. */
.site-footer { position: relative; min-height: 226px; margin-top: 16px; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; padding: 79px 225px 24px; background: #030b10; }
.footer-panorama { position: absolute; inset: 0; pointer-events: none; background: url('assets/scene-footer.webp') center top / max(1536px, 100vw) auto no-repeat; }
.footer-core { position: relative; text-align: center; width: 750px; max-width: 100%; }
.footer-brand { color: #eef3f6; text-decoration: none; text-transform: uppercase; font: 700 23px/1.3 var(--condensed); letter-spacing: 10px; }
.footer-motto { display: flex; align-items: center; justify-content: center; gap: 24px; font: 15px/1.4 var(--condensed); letter-spacing: 7px; text-transform: uppercase; margin: 6px 0 18px; }
.footer-motto::before, .footer-motto::after { content: ''; height: 2px; width: 90px; flex-shrink: 1; background: linear-gradient(90deg, transparent, #7de5c7); }
.footer-motto::after { transform: rotate(180deg); }
.footer-motto span { flex-shrink: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 16px; }
.footer-links a { color: #d0e1e3; font-size: 12px; text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.footer-small { font-size: 10px; letter-spacing: .2px; color: #b6c9ce; margin: 8px 0 0; }
.footer-small span { display: inline-block; margin-left: 8px; }
.footer-scribble { position: absolute; left: max(49px, calc((100% - 1438px)/2)); top: 22px; transform: rotate(-11deg); font: 23px/1.24 var(--hand); text-transform: uppercase; letter-spacing: 2px; margin: 0; }
.footer-scribble .pencil-line { width: 150px; }
.field-note-footer { position: absolute; right: max(53px, calc((100% - 1430px)/2)); top: 21px; width: 151px; font-size: 18px; line-height: 1.33; padding: 20px 16px 24px; transform: rotate(-9deg); }
.field-note-footer .pencil-line { width: 95px; }

/* Supporting WordPress pages. */
.page-banner { text-align: center; padding: 49px 0 18px; position: relative; }
.page-banner .wrap { max-width: 950px; }
.eyebrow { color: var(--green); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 13px; }
.page-banner h1 { font: 700 clamp(34px,4.3vw,60px)/1.1 var(--condensed); margin: 0; letter-spacing: 1px; color: #f1f5f5; }
.page-wrap, .content-extra { max-width: 1000px; margin: 12px auto 38px; padding: 34px 40px; background: #051217f2; border: 1px solid #2a514f; border-radius: 12px; box-shadow: 0 14px 60px #0004; }
.content-extra { margin-top: 26px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h2 { font: 700 29px/1.2 var(--condensed); color: #f3f7f6; margin: 1.3em 0 .55em; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { font-size: 21px; margin: 1.1em 0 .6em; }
.entry-content p { font-size: 17px; line-height: 1.65; }
.entry-content ul, .entry-content ol { padding-left: 25px; }
.entry-content li { margin: .6em 0; }
.entry-content strong { color: #f0f5f6; }
.entry-content blockquote { margin: 24px 0; border-left: 3px solid var(--green); padding: 8px 0 8px 24px; color: #cde0db; }
.entry-content pre { overflow-x: auto; background: #0009; padding: 18px; border-radius: 7px; }
.entry-content iframe { max-width: 100%; }
.entry-content img { border-radius: 8px; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid #43615f; padding: 10px; text-align: left; }
.wp-block-table { overflow-x: auto; }
.wp-block-button__link { background: #124330; border: 1px solid var(--green); color: #dcfce5; border-radius: 28px; }
.roles-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-block: 25px; }
.role-card { padding: 23px; background: linear-gradient(130deg,#0b2528,#051116); border: 1px solid #335650; border-radius: 9px; }
.role-icon { color: var(--accent); margin-bottom: 13px; }
.role-icon .icon { width: 43px; height: 43px; }
.entry-content .role-card h3 { font: 700 23px/1.2 var(--condensed); margin: 0 0 10px; }
.entry-content .role-card p { font-size: 15px; line-height: 1.55; margin: 0; }
.story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-block: 20px; }
.story-card { border: 1px solid #325653; padding: 23px; border-radius: 9px; background: linear-gradient(145deg,#092225,#040e14); overflow-wrap: anywhere; }
.entry-content .story-card h2 { font-size: 27px; margin: 8px 0 12px; }
.story-card h2 a { text-decoration: none; }
.story-card img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 13px; border-radius: 6px; }
.entry-content .story-date, .story-date { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: #bad0d1; }
.entry-content .story-card p { font-size: 15px; }
.search-form { display: flex; gap: 12px; margin-block: 23px; }
.search-form label { flex: 1; min-width: 0; }
.pagination { margin-top: 25px; display: flex; flex-wrap: wrap; gap: 10px; }
.pagination .page-numbers { padding: 7px 13px; border: 1px solid #3b6d63; border-radius: 5px; text-decoration: none; }
.pagination .current { background: #1a4936; color: #effff5; }

/* Companion plugin: forms, private report dashboard and operational notices. */
.notice { border: 1px solid #41716a; border-left: 3px solid #77bcb0; border-radius: 7px; padding: 21px; background: #0b292a88; margin: 0 0 23px; }
.notice.success { background: #13392299; border-color: #69af7c; }
.notice.warning { background: #342b1688; border-color: #a08d56; }
.notice p { margin: .35em 0 .7em; }
.notice p:last-child { margin-bottom: 0; }
.notice .btn { margin: 6px 12px 6px 0; }
.mwhq-form { max-width: 720px; }
.mwhq-form label { display: block; font-weight: 700; margin-bottom: 7px; }
.mwhq-form input[type=text], .mwhq-form textarea, .search-form input[type=search] { width: 100%; padding: 12px 15px; border: 1px solid #577b77; border-radius: 6px; background: #031117; color: #f3f8f7; min-height: 48px; }
.mwhq-form input::placeholder, .mwhq-form textarea::placeholder, .search-form input::placeholder { color: #9fb8bd; opacity: 1; }
.mwhq-form textarea { resize: vertical; min-height: 190px; }
.mwhq-form .field { margin-bottom: 23px; }
.mwhq-form .hint { display: block; font-size: 13px; line-height: 1.55; color: #bfd0d1; margin-top: 7px; }
.mwhq-form .check-field { display: flex; align-items: flex-start; gap: 12px; margin: 23px 0; }
.mwhq-form .check-field input, .report-content input[type=checkbox] { margin-top: 5px; accent-color: #65db8b; flex: 0 0 18px; width: 18px; height: 18px; }
.mwhq-form .check-field label { font-weight: 400; font-size: 14px; margin: 0; }
.mwhq-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.dashboard-top h2 { margin-top: 0; }
.dashboard-top p { margin-bottom: 0; }
.report-list { display: grid; gap: 12px; margin-top: 25px; }
.report-item { border: 1px solid #3d675f; border-radius: 8px; overflow: hidden; }
.report-item summary { cursor: pointer; padding: 17px 20px; font-weight: 700; background: #0c2829; }
.report-item[open] summary { border-bottom: 1px solid #2d5950; color: var(--green); }
.report-content { padding: 20px; }
.report-content .report-meta { font-size: 12px; color: #b3cacb; }
.report-content form { border-top: 1px solid #304a47; margin-top: 20px; padding-top: 18px; font-size: 14px; }
.report-content .btn { margin-top: 10px; }

/* The scene is reframed, rather than shrinking the desktop screenshot. */
@media (min-width: 1650px) {
    .site-header { padding-top: 27px; }
    .welcome-panel { margin-top: 40px; }
    .feature-grid { margin-top: 27px; }
    .scene-backdrop { background-size: 1650px auto; }
}
@media (max-width: 1390px) {
    .wrap { width: calc(100% - 58px); }
    .field-scribble { font-size: 18px; left: 24px; width: 230px; }
    .field-note-left { left: 26px; width: 188px; font-size: 18px; }
    .field-note-right { right: 26px; width: 150px; font-size: 16px; }
    .corner-motto { right: 30px; font-size: 18px; }
    .feature-card { grid-template-columns: 51px minmax(0,1fr); padding: 22px 17px; gap: 16px; }
    .feature-icon .icon { width: 51px; height: 51px; }
    .feature-card h2 { font-size: 18px; }
    .feature-card p { font-size: 15px; }
    .site-footer { padding-inline: 207px; }
    .footer-scribble { left: 32px; font-size: 20px; }
    .field-note-footer { right: 35px; }
}
@media (max-width: 1190px) {
    .field-note-left, .field-note-right, .field-scribble, .corner-motto { display: none; }
    .scene-backdrop { opacity: .7; background-size: 1330px auto; }
    .welcome-panel { width: min(792px, calc(100% - 70px)); }
    .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 920px; gap: 16px; }
    .feature-card { grid-template-columns: 62px minmax(0,1fr); padding: 24px; column-gap: 24px; min-height: 153px; }
    .feature-icon .icon { width: 62px; height: 62px; }
    .feature-card h2 { font-size: 21px; }
    .feature-card p { font-size: 16px; }
    .site-footer { padding-inline: 170px; }
    .field-note-footer { right: 20px; width: 128px; font-size: 16px; padding: 17px 14px; }
    .footer-scribble { left: 24px; font-size: 18px; }
    .footer-scribble .pencil-line { width: 125px; }
    .footer-brand { font-size: 21px; letter-spacing: 7px; }
    .footer-motto { gap: 16px; font-size: 13px; letter-spacing: 5px; }
}
@media (max-width: 900px) {
    .brand-block { max-width: 690px; }
    .wordmark { width: 630px; }
    .brand-tagline { font-size: 12px; letter-spacing: 3px; }
    .navigation-shell { max-width: 700px; }
    .main-menu a { font-size: 16px; padding-inline: 10px; }
    .welcome-panel { padding: 0 25px 25px; margin-top: 38px; }
    .welcome-eyebrow { font-size: 41px; }
    .welcome-panel h1 { font-size: 47px; }
    .welcome-intro { font-size: 18px; line-height: 1.4; }
    .welcome-invitation { font-size: 21px; }
    .welcome-details { font-size: 16px; line-height: 1.5; }
    .hero-actions { gap: 20px; }
    .hero-actions .btn { font-size: 19px; }
    .feature-grid { width: calc(100% - 54px); }
    .feature-card { grid-template-columns: 49px minmax(0,1fr); gap: 19px; padding: 24px 20px; }
    .feature-icon .icon { width: 49px; height: 49px; }
    .feature-card h2 { font-size: 19px; }
    .feature-card p { font-size: 15px; }
    .site-footer { padding-inline: 60px; min-height: 235px; }
    .footer-scribble, .field-note-footer { display: none; }
    .page-wrap { width: calc(100% - 54px); padding: 30px; }
    .roles-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    body { font-size: 16px; }
    .wrap { width: calc(100% - 32px); }
    .scene-backdrop { height: 750px; opacity: 1; background: linear-gradient(180deg,#02090d44,#02090d11 160px,#02090d66 360px,#02090d 700px), url('assets/jungle-mobile.webp') right top / 82% auto no-repeat, url('assets/lake-mobile.webp') left 160px / 100% auto no-repeat; }
    .site-header { padding: 25px 16px 0; }
    .wordmark { width: 535px; }
    .brand-tagline { max-width: 410px; margin: 11px auto 18px; font-size: 10px; line-height: 1.9; letter-spacing: 2.1px; text-shadow: 0 1px 4px #000; }
    .brand-text { font-size: 42px; }
    .custom-logo { max-height: 85px; }
    .navigation-shell { background: #031819df; border-color: #467c70; border-radius: 9px; }
    .js .menu-toggle { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 49px; padding: 10px 17px; border: 0; background: transparent; color: #f2f6f5; font: 700 16px/1.3 var(--condensed); text-transform: uppercase; letter-spacing: 1.6px; text-align: left; }
    .menu-toggle .icon { width: 23px; height: 23px; color: var(--green); }
    .menu-toggle .menu-chevron { margin-left: auto; width: 17px; height: 17px; transform: rotate(90deg); transition: transform .18s; }
    .menu-toggle[aria-expanded="true"] .menu-chevron { transform: rotate(-90deg); }
    .js .site-nav:not(.is-open) { display: none; }
    .main-menu { display: block; padding: 4px 8px 8px; }
    .main-menu li + li { border-left: 0; border-top: 1px solid #284b433e; }
    .main-menu a { min-height: 47px; border-radius: 5px; font-size: 16px; justify-content: flex-start; padding-left: 18px; }
    .welcome-panel { width: calc(100% - 32px); margin: 43px auto 0; padding: 0 25px 27px; background: linear-gradient(150deg,#010c10eb,#020d11ef 75%,#083033ae); border-color: #365a54; border-radius: 10px; }
    .welcome-eyebrow { font-size: 32px; letter-spacing: 2px; margin-top: -17px; padding-inline: 12px; background: #071218; }
    .welcome-panel h1 { font-size: 42px; line-height: 1.06; letter-spacing: 1.2px; margin: 9px 0 15px; text-wrap: balance; }
    .welcome-intro { font-size: 16px; line-height: 1.55; margin-top: 0; }
    .welcome-invitation { font-size: 20px; line-height: 1.4; margin: 18px 0 12px; text-wrap: balance; }
    .welcome-details { font-size: 15px; line-height: 1.65; color: #dae6e7; }
    .hero-actions { flex-direction: column; gap: 13px; margin-top: 25px; max-width: 420px; }
    .hero-actions .btn { flex-basis: auto; min-height: 49px; font-size: 20px; }
    .feature-grid { width: calc(100% - 32px); grid-template-columns: 1fr; gap: 12px; margin-top: 17px; }
    .feature-card { grid-template-columns: 54px minmax(0,1fr); column-gap: 22px; padding: 22px; min-height: 134px; background: linear-gradient(130deg,#071c21e8,#031015ed); }
    .feature-icon .icon { width: 54px; height: 54px; }
    .feature-card h2 { font-size: 20px; margin-bottom: 7px; }
    .feature-card p { font-size: 15px; line-height: 1.55; }
    .site-footer { margin-top: 24px; padding: 83px 24px 29px; min-height: 245px; }
    .footer-panorama { background: linear-gradient(180deg,#02090d00 0%,#02090d44 32%,#02090d 78%), url('assets/valley-detail.webp') 35% top / auto 123px no-repeat; }
    .footer-brand { font-size: 21px; letter-spacing: 5px; }
    .footer-motto { letter-spacing: 4px; font-size: 12px; gap: 12px; margin: 9px 0 14px; }
    .footer-motto::before, .footer-motto::after { width: 28px; }
    .footer-links { gap: 3px 15px; }
    .footer-links a { font-size: 12px; min-height: 34px; }
    .footer-small { font-size: 10px; line-height: 1.6; margin-top: 14px; }
    .footer-small span { display: block; margin: 3px 0 0; }
    .page-banner { padding: 34px 0 12px; }
    .page-banner h1 { font-size: 37px; }
    .page-wrap, .content-extra { width: calc(100% - 32px); padding: 24px 21px; margin-top: 14px; margin-bottom: 24px; }
    .entry-content p { font-size: 16px; }
    .entry-content h2 { font-size: 27px; }
    .roles-grid, .story-grid { grid-template-columns: 1fr; }
    .role-card { padding: 23px; }
    .role-icon { float: left; margin: 0 20px 20px 0; }
    .entry-content .role-card p { clear: both; }
    .dashboard-top { flex-direction: column; align-items: flex-start; }
    .notice { padding: 17px; }
    .search-form { flex-wrap: wrap; }
    .search-form label { flex-basis: 100%; }
}
@media (max-width: 370px) {
    .site-header { padding-inline: 13px; }
    .brand-tagline { font-size: 9px; letter-spacing: 1.7px; }
    .welcome-panel { padding-inline: 20px; }
    .welcome-panel h1 { font-size: 36px; }
    .welcome-eyebrow { font-size: 29px; }
    .welcome-intro { font-size: 15px; }
    .welcome-invitation { font-size: 19px; }
    .welcome-details { font-size: 14px; }
    .feature-card { grid-template-columns: 45px minmax(0,1fr); gap: 17px; padding: 21px 18px; }
    .feature-icon .icon { width: 45px; height: 45px; }
    .feature-card h2 { font-size: 19px; }
    .feature-card p { font-size: 14px; }
    .footer-brand { font-size: 19px; letter-spacing: 3.5px; }
    .footer-motto { letter-spacing: 2.4px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .btn:hover, .feature-card:hover { transform: none; }
}
@media print {
    body { background: #fff; color: #111; }
    .scene-backdrop, .footer-panorama, .field-note, .field-scribble, .corner-motto, .footer-scribble, .site-nav, .menu-toggle, .hero-actions, .footer-links { display: none !important; }
    .brand-tagline, .welcome-panel h1, .footer-brand, .footer-motto, .footer-small, .entry-content strong, .entry-content h2, .page-banner h1 { color: #111; text-shadow: none; }
    .welcome-panel, .feature-card, .page-wrap, .site-footer, .notice, .story-card, .role-card { color: #111; background: #fff; box-shadow: none; border-color: #888; break-inside: avoid; }
    .welcome-eyebrow { background: #fff; }
    .feature-grid { grid-template-columns: repeat(2,1fr); }
    .site-footer { padding: 25px; min-height: 0; }
    .entry-content a { color: #123b27; }
}
