/* Dashboard-specific composition; portable components live in ui.css. */
:root {
  --space-1: .5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --hatch-a: #ece8de;
  --hatch-b: #f8f6f0;
}
:root[data-theme="dark"] { --hatch-a: #2a2a2a; --hatch-b: #343434; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --hatch-a: #2a2a2a; --hatch-b: #343434; }
}
[hidden] { display: none !important; }
body { overflow-x: visible; }
img, svg { max-width: 100%; }
h1 { line-height: 1.2; overflow-wrap: anywhere; }
p { margin: 0; }
p + p { margin-top: .8rem; }
a { overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
main:focus { outline: none; }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 10; padding: .75rem 1rem; border: 2px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 700; }
.skip-link:focus { top: 1rem; }
.site-header { padding-top: 1.25rem; }
.header-inner, .site-nav, .hero-actions, .section-heading, .card-top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.header-inner, .section-heading, .card-top { justify-content: space-between; }
.brand { font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.site-nav { gap: .5rem; }
/* Adapted from the reference's .toc a pill navigation. */
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); padding: .3rem .85rem; text-decoration: none; box-shadow: 1px 1px 0 var(--line); font-size: .93rem; }
.site-nav a[aria-current="page"] { background: repeating-linear-gradient(-45deg, var(--hatch-a), var(--hatch-a) 4px, var(--hatch-b) 4px, var(--hatch-b) 8px); font-weight: 700; }
.hero { padding: 1.5rem 0 1.6rem; }
.hero-top { flex-wrap: wrap; gap: 1rem; align-items: center; }
.theme-toggle__button { min-width: 44px; min-height: 44px; }
.hero h1 { margin-top: 1rem; margin-bottom: 1rem; }
.subtitle { max-width: 70ch; }
.hero-description { margin-top: .75rem; max-width: 70ch; color: var(--muted); }
.hero-actions { margin-top: 1.2rem; }
.btn { min-height: 44px; }
.section-heading { margin-bottom: 1rem; }
.section-heading h2 { margin: 0; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .03em; }
.section-heading p { color: var(--muted); font-size: .92rem; }
.dashboard-grid, .upcoming-stack { display: grid; gap: 1rem; min-width: 0; }
.card { min-width: 0; }
.featured-card { display: flex; flex-direction: column; gap: 1.2rem; padding: 1.3rem; }
.featured-card h3 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: .5rem 0 .9rem; }
.featured-card .hero-actions { margin-top: auto; padding-top: .5rem; }
.card-top { align-items: flex-start; }
/* Status labels adapt the reference's outlined .program surface. */
.badge { display: inline-block; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); padding: .3rem .65rem; box-shadow: 1px 1px 0 var(--line); font-size: .78rem; font-weight: 700; }
.card-number { font-size: .8rem; font-weight: 700; color: var(--muted); }
.upcoming-card h3 { margin-top: 1rem; }
.upcoming-card p { color: var(--muted); font-size: .92rem; }
.local-note { margin-top: 1.5rem; }
.local-note h2 { font-size: 1.1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; font-size: .92rem; }
.newsletter { margin-bottom: 1rem; }
.newsletter h2 { margin-top: 1.2rem; }
.newsletter-intro { max-width: 75ch; }
.note strong { display: block; color: var(--ink); margin-bottom: .3rem; }
.newsletter .hero-actions { margin-top: 1.5rem; }
details { margin-top: 1.2rem; }
summary { padding: .35rem 0; min-height: 44px; }
details p { margin: .6rem 0; color: var(--muted); }
.footer { padding: 1.6rem 0 2.2rem; }
.footer-inner { border-top: 2px dashed var(--line); padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer-brand { font-weight: 700; }
.disclaimer { max-width: 65ch; margin-top: .4rem; font-size: .85rem; }
.footer-location { font-size: .85rem; }
@media (min-width: 861px) {
  .dashboard-grid { grid-template-columns: 1.6fr 1fr; }
  .featured-card { padding: 1.5rem; }
  .featured-card p { max-width: 46ch; }
}
@media (max-width: 860px) {
  h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); line-height: 1.12; }
  .hero .container, .card { box-shadow: 0 3px 0 var(--line); }
}
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { background: var(--panel); text-decoration: underline; }
}
/* Keep hover feedback on touch devices free of movement. */
@media (hover: none) { .btn:hover { transform: none; box-shadow: var(--shadow-low); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
