/* Vista Ridge Residents. Design tokens and layout from the Claude Design export in /design. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/atkinson-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/atkinson-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/atkinson-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/atkinson-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #F5F1E8;
  --surface: #FFFFFF;
  --ink: #1C2620;
  --ink-muted: #4E5A52;
  --ink-soft: #5A655E;
  --forest: #24453A;
  --forest-dark: #16302A;
  --sky: #DCE6EA;
  --sage: #6A8A7E;
  --sage-light: #A9BDB8;
  --sun: #EDB77A;
  --line: #E2DBCB;
  --line-strong: #C9C1AF;
  --input-border: #8A968E;
  --accent: #B5561E;
  --accent-dark: #9A4715;
  --kicker: #8C4318;
  --on-dark: #E4ECE8;
  --footer-ink: #D5DDD8;

  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: Fraunces, Georgia, serif;

  --gutter: 20px;
  --radius: 16px;
  --radius-sm: 14px;
  --tabbar-h: 84px;
  --max-w: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
}
a { color: var(--forest); }
a:hover { color: var(--forest-dark); }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; overflow-wrap: break-word; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--forest); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--ink-muted); }
.only-desktop { display: none; }

/* ---------- Header ---------- */
.site-header { background: var(--bg); }
.site-header .wrap { height: 72px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-grow: 1; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-title { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.brand-tagline { font-size: 15px; color: var(--ink-muted); padding-top: 3px; }

.top-nav { display: none; gap: 8px; }
.top-nav a {
  min-height: 48px; padding: 0 18px; display: flex; align-items: center;
  border-radius: 999px; color: var(--ink); font-weight: 700; text-decoration: none;
}
.top-nav a:hover { background: var(--sky); }
.top-nav a[aria-current="page"] { background: var(--forest); color: #fff; }

/* ---------- Bottom tab bar (phone) ---------- */
.tab-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
}
.tab-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: var(--ink-soft); font-size: 14px; min-width: 0;
  border-top: 4px solid transparent;
}
.tab-bar a[aria-current="page"] { color: var(--forest); font-weight: 700; border-top-color: var(--forest); }
.tab-bar svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; background: var(--ink); color: var(--footer-ink); font-size: 17px; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 10px; }
.site-footer .footer-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  min-height: 56px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--radius-sm); font: inherit; font-size: 19px; font-weight: 700; text-decoration: none;
  cursor: pointer; border: 2px solid transparent;
}
.btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); color: #fff; }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--forest); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--sky); color: var(--forest-dark); }
.btn-block { display: flex; width: 100%; }

.link-arrow { min-height: 48px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.link-arrow svg { width: 20px; height: 20px; }

/* ---------- Page intro ---------- */
.page-intro { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.page-intro h1 { font-size: 40px; line-height: 1.1; }
.page-intro p { color: var(--ink-muted); }

.section { padding-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.section-title { font-size: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head a { font-size: 18px; font-weight: 700; }

/* ---------- Hero (home) ---------- */
.hero-art { display: block; width: 100%; height: auto; }
.hero-art-desktop { display: none; }
.hero-art-mobile { margin-bottom: -1px; }
@media (max-width: 400px) { .brand-title { font-size: 19px; } }
.hero-body { background: var(--forest); color: #fff; }
.hero-body .wrap { padding-top: 8px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: 40px; line-height: 1.1; }
.hero p { font-size: 20px; color: var(--on-dark); }
.hero-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.hero-actions .btn-outline-desktop { display: none; }

/* ---------- Callouts ---------- */
.callout { border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.callout svg { width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px; }
.callout-body { display: flex; flex-direction: column; gap: 4px; font-size: 18px; }
.callout-notice { background: #FFF4E6; border: 1px solid #EDCFA8; color: #3B2A1E; }
.callout-notice strong { color: #7A3810; font-size: 19px; }
.callout-alert { background: #FBE9E4; border: 1px solid #E8BFB3; color: #4A1A12; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.kicker { font-size: 15px; font-weight: 700; color: var(--kicker); letter-spacing: 0.06em; text-transform: uppercase; }
.news-card { display: flex; flex-direction: column; gap: 8px; }
.news-card h3 { font-size: 22px; line-height: 1.3; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p { color: var(--ink-muted); font-size: 18px; }
.news-grid { display: flex; flex-direction: column; gap: 16px; }

.quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quick-card {
  min-height: 124px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px; text-decoration: none; color: var(--ink);
  font-size: 19px; font-weight: 700;
}
.quick-card:hover { border-color: var(--forest); color: var(--ink); }
.quick-card svg { width: 30px; height: 30px; stroke: var(--forest); }

.panel-sky { background: var(--sky); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel-sky h2 { font-size: 26px; }
.panel-forest { background: var(--forest); color: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel-forest h2 { font-size: 24px; }
.panel-forest p { font-size: 18px; color: var(--on-dark); }
.panel-forest a:not(.btn) { color: #fff; }
.icon-row { display: flex; gap: 12px; align-items: center; }
.icon-row svg { width: 24px; height: 24px; flex-shrink: 0; stroke: currentColor; }
.panel-sky .icon-row svg { stroke: var(--forest); }

.link-list { display: flex; flex-direction: column; gap: 4px; }
.link-list h2 { font-size: 26px; margin-bottom: 8px; }
.link-list a { min-height: 44px; display: flex; align-items: center; font-weight: 700; }

/* ---------- News page ---------- */
.chips { padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 48px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  background: var(--surface); color: var(--forest); border: 2px solid var(--line-strong);
}
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { background: var(--forest); color: #fff; border-color: var(--forest); }

.featured { margin-top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.featured svg { display: block; width: 100%; height: auto; }
.featured-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.featured-body h2 { font-size: 28px; line-height: 1.2; }
.featured-body p { color: var(--ink-muted); font-size: 18px; }

.post-list { padding-top: 28px; display: flex; flex-direction: column; }
.post { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.post h3 { font-size: 22px; line-height: 1.3; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.post p { color: var(--ink-muted); font-size: 18px; }
.post-list .btn { margin-top: 24px; }
.empty { padding: 24px 0; color: var(--ink-muted); }

.article { padding-top: 16px; max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.article h1 { font-size: 40px; line-height: 1.1; }
.article-body { display: flex; flex-direction: column; gap: 14px; }
.article-body p, .article-body ul, .article-body ol { margin: 0; }
.back-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; }

/* ---------- Documents page ---------- */
.search-field { padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.search-field label { font-size: 18px; font-weight: 700; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; stroke: var(--ink-muted); pointer-events: none; }
.input, .search-box input, select.input, textarea.input {
  width: 100%; min-height: 56px; padding: 0 16px; border: 2px solid var(--input-border); border-radius: 12px;
  font: inherit; font-size: 19px; background: var(--surface); color: var(--ink);
}
.search-box input { padding-left: 52px; }
textarea.input { padding: 14px 16px; resize: vertical; min-height: 140px; }
.input:focus, .search-box input:focus { border-color: var(--forest); outline: 3px solid rgba(36, 69, 58, 0.25); outline-offset: 0; }
.search-status { font-size: 16px; color: var(--ink-muted); min-height: 24px; }

.doc-group { padding-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.doc-group h2 { font-size: 26px; display: flex; align-items: baseline; gap: 10px; }
.doc-count { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: var(--ink-muted); }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.doc {
  min-height: 76px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
}
.doc:hover { border-color: var(--forest); color: var(--ink); }
.doc-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-icon svg { width: 24px; height: 24px; }
.tone-0 .doc-icon { background: #F3E3D6; stroke: #8C4318; }
.tone-1 .doc-icon { background: #DCE6EA; stroke: #24453A; }
.tone-2 .doc-icon { background: #E1EADF; stroke: #24453A; }
.tone-3 .doc-icon { background: #EFE6F3; stroke: #5A3C6E; }
.doc-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-name { font-size: 19px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.doc-meta { font-size: 16px; color: var(--ink-muted); }
.doc-file { overflow-wrap: anywhere; }
.doc-empty { padding-top: 24px; }

/* Folder cards (/documents) */
.folder-list { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.folder-card {
  min-height: 88px; padding: 16px 16px 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink);
}
.folder-card:hover { border-color: var(--forest); color: var(--ink); }
.folder-card .doc-icon { width: 52px; height: 52px; border-radius: 14px; }
.folder-card .doc-icon svg { width: 28px; height: 28px; }
.folder-card.tone-0 .doc-icon { background: #F3E3D6; stroke: #8C4318; }
.folder-card.tone-1 .doc-icon { background: #DCE6EA; stroke: #24453A; }
.folder-card.tone-2 .doc-icon { background: #E1EADF; stroke: #24453A; }
.folder-card.tone-3 .doc-icon { background: #EFE6F3; stroke: #5A3C6E; }
.folder-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; }
.folder-subs { font-size: 15px; }
.chevron { flex-shrink: 0; color: var(--ink-soft); display: flex; }
.chevron svg { width: 24px; height: 24px; }

/* Folder page: sort + jump links */
.page-intro-tight { padding-top: 4px; }
.sort-bar { padding-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sort-label { font-size: 17px; font-weight: 700; }
.segmented { display: inline-flex; background: var(--surface); border: 2px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 2px; }
.segmented button {
  min-height: 44px; min-width: 72px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent;
  font: inherit; font-size: 17px; font-weight: 700; color: var(--forest); cursor: pointer;
}
.segmented button[aria-pressed="true"] { background: var(--forest); color: #fff; }
.jump { padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.jump .chip { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; font-size: 16px; }
.doc-group-loose { padding-top: 24px; }
.doc-group { scroll-margin-top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Projects ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px;
  background: var(--sky); color: var(--forest); font-size: 14px; font-weight: 700; letter-spacing: 0.02em;
}
.badge-active { background: #E1EADF; color: #1F4D2E; }
.badge-completed { background: #ECE7DC; color: var(--ink-muted); }
.project-list { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.project-card {
  padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink);
}
.project-card:hover { border-color: var(--forest); color: var(--ink); }
.project-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
.project-summary { color: var(--ink-muted); font-size: 18px; }
.project-page .page-intro { gap: 12px; }
.facts { margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.facts dt { font-size: 15px; color: var(--ink-muted); }
.facts dd { margin: 0; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.project-overview { padding-top: 28px; max-width: 760px; }
.project-overview h2 { font-size: 26px; }
.project-overview h3 { font-size: 21px; }
.project-overview ul, .project-overview ol { padding-left: 1.3em; }
.project-section { padding-top: 36px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dash-card {
  min-height: 88px; padding: 16px 18px; background: var(--forest); color: #fff; border-radius: var(--radius);
  display: flex; align-items: center; gap: 14px; text-decoration: none;
}
.dash-card:hover { background: var(--forest-dark); color: #fff; }
.dash-card .doc-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,0.14); stroke: #fff; }
.dash-card .doc-icon svg { width: 28px; height: 28px; }
.dash-card .doc-meta { color: var(--on-dark); }
.dash-card .chevron { color: #fff; }

/* Dashboard frame page */
.frame-page { padding: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.frame-bar {
  flex-shrink: 0; min-height: 60px; padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top));
  display: flex; align-items: center; gap: 12px; background: var(--forest); color: #fff;
}
.frame-back, .frame-open {
  min-height: 48px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 12px;
  color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; flex-shrink: 0;
}
.frame-back:hover, .frame-open:hover { background: rgba(255,255,255,0.14); color: #fff; }
.frame-back svg { width: 22px; height: 22px; }
.frame-title { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.frame-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-project { font-size: 14px; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame { flex-grow: 1; width: 100%; border: 0; background: #fff; }
@media (max-width: 560px) {
  .frame-back span, .frame-open { display: none; }
  .frame-back { padding: 0 8px; }
}

/* ---------- Contact page ---------- */
.contact-cards { padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  min-height: 88px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink);
}
a.contact-card:hover { border-color: var(--forest); color: var(--ink); }
.contact-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--forest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 26px; height: 26px; stroke: #fff; }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-label { font-size: 16px; color: var(--ink-muted); }
.contact-value { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }

.form-card { margin-top: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.form-card h2 { font-size: 28px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 18px; font-weight: 700; }
.field .optional { font-weight: 400; color: var(--ink-muted); }
.form-card .btn { min-height: 60px; font-size: 20px; }
.form-note { font-size: 16px; color: var(--ink-muted); }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  body { font-size: 20px; padding-bottom: 0; }
  .only-desktop { display: block; }
  .only-mobile { display: none !important; }
  .tab-bar { display: none; }
  .site-header .wrap { height: auto; min-height: 88px; gap: 14px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-title { font-size: 26px; }
  .brand-tagline { font-size: 16px; }
  .top-nav { display: flex; }

  .site-footer { margin-top: 64px; }
  .site-footer .wrap { flex-direction: row; justify-content: space-between; align-items: center; padding-top: 36px; padding-bottom: 36px; }
  .site-footer .footer-name { font-size: 24px; }

  .page-intro { padding-top: 32px; }
  .page-intro h1 { font-size: 54px; line-height: 1.05; }
  .page-intro p { font-size: 22px; max-width: 760px; }
  .section-title { font-size: 34px; }

  /* Hero: art fills the band, copy overlays it */
  .hero { position: relative; height: 520px; background: var(--sky); overflow: hidden; }
  .hero-art-mobile { display: none; }
  .hero-art-desktop { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .hero-body { position: relative; background: transparent; color: var(--ink); }
  .hero-body .wrap { padding-top: 56px; padding-bottom: 0; gap: 18px; }
  .hero-copy { max-width: 700px; display: flex; flex-direction: column; gap: 18px; }
  .hero h1 { font-size: 54px; line-height: 1.05; }
  .hero p { font-size: 22px; color: #2E3A33; }
  .hero-actions { flex-direction: row; padding-top: 6px; }
  .hero-actions .btn-outline-light { display: none; }
  .hero-actions .btn-outline-desktop { display: inline-flex; background: var(--bg); }
  .hero-actions .btn-outline-desktop:hover { background: var(--forest); }

  .callout { padding: 18px 24px; align-items: center; }
  .callout-body { flex-direction: row; gap: 6px; font-size: 20px; }
  .callout-notice strong { font-size: 20px; }
  .callout-notice strong::after { content: ':'; }

  .home-grid { padding-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: start; }
  .home-grid > .section { grid-column: span 2; padding-top: 0; }
  .home-grid aside { display: flex; flex-direction: column; gap: 16px; }
  .news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-card { padding: 24px; }
  .news-card h3 { font-size: 24px; }

  .news-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .news-layout aside { position: sticky; top: 24px; margin-top: 24px; }
  .featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .featured svg { height: 100%; object-fit: cover; }
  .featured-body { padding: 28px; justify-content: center; }

  .docs-layout .search-field { max-width: 640px; }
  .doc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 960px; }
  .dash-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folder-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .folder-card { min-height: 104px; padding: 20px 22px; }

  .contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
  .contact-layout .form-card { margin-top: 24px; padding: 32px; }
  .article h1 { font-size: 48px; }
}

/* Small laptops: five menu items plus the name need to share the row */
@media (min-width: 900px) and (max-width: 1140px) {
  .site-header .wrap { gap: 10px; }
  .brand-title { font-size: 21px; white-space: nowrap; }
  .brand-tagline { font-size: 14px; white-space: nowrap; }
  .top-nav { gap: 2px; }
  .top-nav a { padding: 0 12px; font-size: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .tab-bar, .top-nav, .chips, .search-field, .skip-link { display: none !important; }
  body { padding: 0; background: #fff; }
}
