/* Carrollton Community Care. The rule book is docs/STYLE_GUIDE.md; colours and sizes come from tokens.css
   (the Christmas look on Giving Tree pages is a token override there). No colour values here, only tokens. */
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body); }
button { font-family: inherit; font-size: inherit; }
code { font-family: var(--font-mono); }
a { color: var(--primary); }
a:hover { color: var(--primary-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-halo); }
@media (forced-colors: active) { :focus-visible { outline-color: Highlight; } }
h1, h2, h3 { font-family: var(--font-head); line-height: var(--leading-tight); color: var(--ink); }
h1 { font-size: var(--text-2xl); margin: .2em 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--text-xl); margin: 1.2em 0 .5em; font-weight: 700; }
h3 { font-size: var(--text-lg); margin: .8em 0 .4em; font-weight: 600; }
p { margin: .4em 0 .8em; }
.muted { color: var(--muted); }
.code { font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em; }
.code.big { font-size: var(--text-2xl); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: var(--text-xs); font-weight: 600; color: var(--muted); margin: 0; }
.lede { font-size: var(--text-lg); color: var(--muted); max-width: 42rem; }

.review-bar { background: var(--review); color: var(--review-ink); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; font-size: var(--text-help); }
.review-bar select { width: auto; min-height: 30px; padding: 2px 6px; font-size: var(--text-help); }
.review-bar a { color: var(--review-link); }
.draft-banner { background: var(--warn-tint); color: var(--ink); text-align: center; font-size: var(--text-xs); padding: 4px 8px; border-bottom: 1px solid var(--line); }

.skip { position: absolute; left: var(--space-2); top: var(--space-2); z-index: var(--z-dialog); display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--space-4); background: var(--surface); color: var(--primary); border-radius: var(--radius); font-weight: 600; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: var(--z-header); background: var(--header); color: var(--header-ink); display: flex; align-items: center; gap: var(--space-4); min-height: 60px; padding: 4px 24px; border-bottom: 4px solid var(--program); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; min-height: var(--tap); flex: none; font-family: var(--font-head); font-size: var(--text-lg); font-weight: 700; line-height: 1.2; }
.brand .mark { flex: none; width: 22px; height: 22px; background: linear-gradient(90deg, var(--header-ink) 50%, var(--primary) 50%); clip-path: circle(50%); }

/* Desktop header (761px and up): one row; dropdowns float over the page */
.desk-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-1); flex: 1 1 auto; min-width: 0; }
.desk-nav > a:not(.btn), .desk-nav > details > summary { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; color: var(--header-ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.desk-nav > a:not(.btn):hover, .desk-nav > details > summary:hover { text-decoration: underline; }
.desk-nav .spacer { flex: 1; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: "\25BE"; margin-left: var(--space-1); font-size: .75em; }
.menu-items { position: absolute; z-index: var(--z-dropdown); top: 100%; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; min-width: 200px; padding: var(--space-1) 0; }
.account-menu .menu-items { left: auto; right: 0; }
.account-menu .who { display: inline-block; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-items a, .menu-items button.link { display: flex; align-items: center; width: 100%; min-height: var(--tap); padding: 0 var(--space-4); color: var(--ink); text-decoration: none; text-align: left; white-space: nowrap; }
.menu-items a:hover, .menu-items button.link:hover { background: var(--surface-sunk); color: var(--ink); }
.menu-items hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: var(--space-1) 0; }

/* Phone header (760px and below): brand, Search, Menu; the menu is a panel under the header */
.site-header .phone-only { display: none; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: var(--tap); min-height: var(--tap); padding: 0 var(--space-3); color: var(--header-ink); border-radius: var(--radius); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
a.nav-icon { padding: 0; }
.nav-icon::-webkit-details-marker { display: none; }
.nav-icon:hover { color: var(--header-ink); background: rgba(255, 255, 255, .12); }
.nav-panel-body { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: var(--z-menu-panel); display: flex; flex-direction: column; max-height: calc(100dvh - 64px); overflow-y: auto; padding: 0 0 var(--space-4); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.nav-panel-body a, .nav-panel-body button.link, .nav-prog > summary { display: flex; align-items: center; width: 100%; min-height: var(--tap); padding: 0 var(--gutter); color: var(--ink); font-size: var(--text-lg); text-decoration: none; text-align: left; border-bottom: 1px solid var(--line); }
.nav-group { margin: var(--space-4) var(--gutter) var(--space-1); font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.nav-panel-body .nav-user { margin: 0; padding: var(--space-2) var(--gutter); font-weight: 600; }
.nav-prog > summary { justify-content: space-between; cursor: pointer; list-style: none; }
.nav-prog > summary::-webkit-details-marker { display: none; }
.nav-prog > summary::after { content: "+"; color: var(--primary); }
.nav-prog[open] > summary::after { content: "\2212"; }
.nav-prog > a { padding-left: calc(var(--gutter) * 2); }
.nav-panel-body hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: var(--space-3) 0 0; }
@media (max-width: 760px) {
  .desk-nav { display: none; }
  .site-header .phone-only { display: flex; }
  .site-header { gap: 0; padding: 4px 4px 4px var(--gutter); }
  .brand { flex: 1 1 auto; min-width: 0; font-size: var(--text-base); }
}

main { max-width: 1040px; margin: 0 auto; padding: 24px 20px 48px; }
main.wide { max-width: 1500px; }
/* Staff pages (docs/STYLE_GUIDE.md 4.2): 1440px, or the full width for grid pages */
main.staff { max-width: 1440px; padding: var(--space-5) var(--space-6) var(--space-7); }
main.staff.full { max-width: none; }
.staff-nav > a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.desk-nav .nav-user { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; color: var(--header-ink); white-space: nowrap; max-width: 22ch; overflow: hidden; text-overflow: ellipsis; }
.desk-nav form.inline button.link { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px; color: var(--header-ink); white-space: nowrap; }
/* Program tab bar (4.3) */
.program-bar { background: var(--surface); border-top: 4px solid var(--program); border-bottom: 1px solid var(--line); }
.site-header:has(+ .program-bar) { border-bottom-width: 0; }
.program-bar-in { position: relative; display: flex; align-items: stretch; max-width: 1440px; margin: 0 auto; padding: 0 var(--space-6); overflow-x: auto; scroll-snap-type: x proximity; }
.program-bar-name { display: inline-flex; flex: none; align-items: center; gap: var(--space-2); padding-right: var(--space-4); font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }
.program-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--program); flex: none; }
.program-bar a { display: inline-flex; flex: none; align-items: center; min-height: var(--tap); padding: 0 var(--space-3); color: var(--muted); font-size: var(--text-sm); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; scroll-snap-align: start; }
.program-bar a:hover { color: var(--ink); text-decoration: underline; }
.program-bar a[aria-current="page"] { color: var(--ink); font-weight: 600; background: var(--primary-tint); border-bottom-color: var(--primary); }
.site-footer { border-top: 1px solid var(--line); padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: var(--text-help); color: var(--muted); justify-content: center; }
.site-footer a:not(.btn) { display: inline-flex; align-items: center; min-height: var(--tap); }

.hero { padding: 24px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.hero h1 { font-size: var(--text-3xl); margin-bottom: .3em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 12px 0 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; display: block; color: inherit; }
a.card { text-decoration: none; transition: border-color .15s; }
a.card:hover { border-color: var(--primary); }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.card .more { color: var(--primary); font-weight: 600; font-size: var(--text-help); }
.program { border-top: 6px solid var(--program); }
.narrow { max-width: 440px; }

.subnav { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.subnav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 16px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.subnav a.active, .subnav a:hover { color: var(--ink); border-bottom-color: var(--program); }
main > p, .prose { max-width: var(--measure); }
.prose h3 { margin-top: 1.2em; }
.faq { border-bottom: 1px solid var(--line); padding: 0 0 4px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--tap); font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: var(--text-lg); color: var(--primary); }
.faq[open] summary::after { content: "\2212"; }
.dates { list-style: none; padding: 0; }
.dates li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.all-dates { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }

.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-h); background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary); border-radius: var(--radius); padding: 0 20px; font: inherit; font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--primary-strong); color: var(--on-primary); }
.btn.secondary { background: var(--surface); color: var(--primary); }
.btn.secondary:hover { background: var(--primary-tint); color: var(--primary); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn:disabled, .btn:disabled:hover, .btn[aria-disabled="true"] { background: var(--surface-sunk); color: var(--muted); border: 1px dashed var(--field-border); cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.area-staff .btn.compact { min-height: var(--control-h-compact); padding: 0 12px; font-size: var(--text-sm); }
@media (max-width: 760px) { .area-staff .btn.compact { min-height: var(--control-h); padding: 0 20px; font-size: var(--text-base); } }
.btn.drive { width: 100%; min-height: 56px; font-size: var(--text-lg); }
.actions.stack { flex-direction: column; align-items: stretch; gap: var(--space-3); }
@media (max-width: 480px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn, form:not(.inline-form):not(.inline) > .btn, form > .wide > .btn, form > p > .btn { width: 100%; }
}
button.link { background: none; border: 0; color: var(--primary); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.area-public main button.link { min-height: var(--tap); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
form.inline { display: inline; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form input[type=text], .inline-form input:not([type]) { flex: 1; min-width: 180px; }
.grow { flex: 1; min-width: 200px; }

.badge { display: inline-block; font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; padding: 2px 10px; border-radius: var(--radius-pill); background: var(--neutral-tint); color: var(--ink); vertical-align: middle; }
.badge.ok { background: var(--ok-tint); color: var(--ok); }
.badge.off { background: var(--neutral-tint); color: var(--neutral); }
.badge.warn { background: var(--warn-tint); color: var(--warn); }
.badge.info { background: var(--info-tint); color: var(--info); }
.badge.danger { background: var(--danger-tint); color: var(--danger); }
.badge.danger::before { content: "! "; }

.flash { padding: 12px 16px; border-radius: var(--radius); margin: 0 0 16px; border-left: 6px solid var(--line); background: var(--surface-sunk); color: var(--ink); }
.flash.ok { background: var(--ok-tint); border-color: var(--ok); }
.flash.warn { background: var(--warn-tint); border-color: var(--warn); }
.flash.info { background: var(--info-tint); border-color: var(--info); }
.flash.danger { background: var(--danger-tint); border-color: var(--danger); }
.error { color: var(--danger); font-weight: 600; margin: 4px 0; }
div.error.wide, form > .error { background: var(--danger-tint); border-left: 6px solid var(--danger); padding: 8px 12px; border-radius: var(--radius); }
.notice { background: var(--surface-sunk); border-left: 4px solid var(--program); padding: 10px 14px; }

/* Forms: clean, light, Excel-adjacent */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 18px; align-items: start; }
.form-grid .wide, .form-grid fieldset.wide { grid-column: 1 / -1; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 16px; }
legend { font-family: var(--font-body); font-weight: 600; padding: 0 6px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.form-grid > * { min-width: 0; }
select { max-width: 100%; text-overflow: ellipsis; }
.field-label { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; color: var(--ink); }
.sign-in-choice h2 { margin-top: 0; }
.sign-in-choice .btn { margin-top: var(--space-4); }
.req { color: var(--danger); }
.help { font-size: var(--text-help); color: var(--muted); }
:where(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  font: inherit; font-size: var(--field-font); color: var(--ink); background: var(--surface); border: 1px solid var(--field-border); border-radius: var(--radius-sm); padding: 0 12px; width: 100%; min-height: var(--control-h);
}
textarea { padding: 10px 12px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
.inline-form select, .inline-form input { width: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--field-border); border-radius: 999px; padding: 5px 12px; cursor: pointer; background: var(--surface); font-size: var(--text-help); user-select: none; }
.area-public .chip { min-height: 44px; }
.chip input { accent-color: var(--primary); margin: 0; }
.chip:has(input:checked) { background: var(--primary-tint); border-color: var(--primary); font-weight: 600; }
.chip:has(input:disabled) { background: var(--surface-sunk); color: var(--muted); cursor: not-allowed; }
a.chip { color: var(--ink); text-decoration: none; }
a.chip[aria-current="true"] { background: var(--primary-tint); border-color: var(--primary); font-weight: 600; }
.area-public .filter-chips .chip { min-height: var(--tap); padding: 0 18px; font-size: var(--text-base); }
.vol-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 12px 0 16px; }
.vol-filters .inline-form { flex-wrap: nowrap; }
.vol-cards { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.vol-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.vol-card p { margin: 0; }
.vol-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.vol-card-head .code { font-size: var(--text-lg); white-space: nowrap; }
.vol-card-head span:last-child { color: var(--muted); font-size: var(--text-help); text-align: right; }
.vol-card-item { font-weight: 600; }
.vol-card-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.vol-card .btn { margin-top: auto; width: 100%; min-height: 48px; justify-content: center; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 24px; }
.pager .btn { min-height: 48px; }
.pager .inline-form { flex-wrap: nowrap; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--field-border); display: inline-block; }
.cat { margin: 4px 0 10px; }
.cat-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.segmented { display: inline-flex; border: 1px solid var(--field-border); border-radius: var(--radius); overflow: hidden; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 16px; border-right: 1px solid var(--field-border); background: var(--surface); }
.segmented label:last-child span { border-right: 0; }
.segmented input:checked + span { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; box-shadow: inset 0 0 0 5px var(--focus-halo); }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: var(--field-border); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); transition: left .15s; }
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { left: 21px; }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-halo); }
select.need-size { border-color: var(--program); box-shadow: 0 0 0 2px color-mix(in srgb, var(--program) 25%, transparent); }

.step h2 { display: flex; align-items: center; gap: 10px; }
.step .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--font-body); font-size: var(--text-help); }
.step.done .num { background: var(--ok); }
ul.rows { list-style: none; padding: 0; margin: 0 0 8px; }
ul.rows li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.problems li { color: var(--warn); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
dl.stamps { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0; font-size: var(--text-help); }
dl.stamps dt { color: var(--muted); }
dl.stamps dd { margin: 0; }
.confidential { border-top: 1px dashed var(--danger); margin-top: 10px; padding-top: 8px; }
.confidential .field-label { color: var(--danger); }
.doc { border-bottom: 1px solid var(--line); padding: 6px 0 10px; }
.pass { max-width: 520px; border-top: 8px solid var(--program); }
.pass-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pass-top .qr { width: 180px; height: 180px; }
.scan-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; color: var(--header-ink); }
.scan-overlay video { width: min(92vw, 520px); max-height: 70vh; border: 3px solid var(--header-ink); border-radius: 8px; background: var(--ink); }
.scan-overlay p { max-width: 520px; text-align: center; }
.tag-preview { max-width: 520px; border-top: 8px solid var(--program); }
.stats .card { margin: 0; text-align: center; padding: 12px; }
.stats .stat { font-family: var(--font-head); font-size: var(--text-2xl); font-weight: 700; margin: 0; color: var(--primary); line-height: 1.1; }
.stats p:last-child { margin: 0; color: var(--muted); font-size: var(--text-help); }
table.roster td { vertical-align: middle; }
table.roster form.inline { margin-right: 4px; }
.stop h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.stop .num { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--font-body); font-size: var(--text-base); }
.stop.done { background: var(--surface-sunk); }
.stop.done .num { background: var(--ok); }
.stop .find { margin: 4px 0; }
.no-answer { border: 1px solid var(--line); background: var(--warn-tint); border-radius: var(--radius); padding: 6px 12px; margin: 8px 0; }
.no-answer summary { font-weight: 700; color: var(--warn); cursor: pointer; padding: 4px 0; }
.no-answer ul { margin: 6px 0; padding-left: 20px; }
table.tracker td.tk { text-align: center; }
table.tracker td.tk.yes { background: var(--info-tint); color: var(--info); }
table.tracker td.tk.ok { background: var(--ok-tint); color: var(--ok); font-weight: 600; }
table.tracker td.tk.off, table.tracker td.tk.closed { background: var(--neutral-tint); color: var(--neutral); }
table.tracker td.tk.warn { background: var(--warn-tint); color: var(--warn); }
table.tracker tr.route th { background: var(--surface-sunk); font-weight: 600; text-align: left; }
.keypad { display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; margin: 8px 0; }
.keypad .btn { padding: 10px 0; text-align: center; }
.bubble.caller { margin-left: 40px; background: var(--info-tint); border-radius: 16px 16px 4px 16px; }
.alert-card { border-left: 6px solid var(--danger); }
details > summary.btn { list-style: none; display: inline-flex; margin: 6px 0; }
.phone-thread { display: flex; flex-direction: column; gap: 10px; max-width: 460px; padding: 14px; background: var(--surface-sunk); border-radius: 18px; border: 1px solid var(--line); margin: 12px 0; }
.bubble { background: var(--surface); border-radius: 16px 16px 16px 4px; padding: 8px 12px; box-shadow: var(--shadow-sm); font-size: var(--text-base); }
.bubble.failed { border: 1px solid var(--danger); }
.bubble-meta { font-size: var(--text-xs); color: var(--muted); margin-bottom: 2px; }
.log pre { white-space: pre-wrap; font-family: var(--font-mono); font-size: var(--text-xs); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--danger); padding: 8px 10px; margin: 0 0 8px; border-radius: 4px; }
.studio-filter { max-width: 28rem; margin: 0 0 var(--space-4); }
.studio-filter .help:empty { display: none; }
.studio-filter[hidden], .reason-box[hidden] { display: none; }
/* Hub pages (/staff, /admin): one compact column per program or group */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5) var(--space-6); align-items: start; }
.hub-col h2 { font-size: var(--text-lg); margin: 0 0 var(--space-2); padding-bottom: var(--space-1); border-bottom: 2px solid var(--line); }
.hub-links { list-style: none; margin: 0; padding: 0; }
.hub-links li { padding: var(--space-2) 0; border-bottom: 1px solid var(--line); }
.hub-links a { font-weight: 600; }
.hub-links span { display: block; color: var(--muted); font-size: var(--text-sm); }
.hub-stats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0 0 var(--space-5); }
/* Admin settings: a section list beside the form from 1100px, a jump list above it below that */
.settings-nav { margin: 0 0 var(--space-4); }
.settings-nav-title { margin: 0 0 var(--space-1); font-weight: 600; }
.settings-nav ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); list-style: none; margin: 0; padding: 0; }
.settings-nav a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--text-sm); }
.settings-form fieldset { scroll-margin-top: var(--space-4); }
@media (min-width: 1100px) {
  .settings-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
  .settings-nav { position: sticky; top: var(--space-4); max-height: calc(100vh - 2 * var(--space-4)); overflow-y: auto; margin: 0; }
  .settings-nav ul { display: block; }
  .settings-nav a { display: flex; min-height: 32px; line-height: 1.3; }
}
.studio { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.studio ul.links { padding-left: 18px; }

/* Reason for this change (docs/STYLE_GUIDE.md 5.4): a dialog for one-click record actions, the save bar on edit pages (5.5) */
.reason-box { min-width: 0; }
.inline-form .reason-box { flex: 1 1 260px; }
.reason-dialog { width: min(34rem, calc(100vw - 32px)); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); z-index: var(--z-dialog); }
.reason-dialog::backdrop { background: rgba(21, 23, 28, .45); }
.reason-dialog h2 { margin: 0 0 var(--space-3); font-size: var(--text-lg); }
.reason-dialog .actions { margin: var(--space-4) 0 0; }
.save-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 2px var(--space-3); margin: var(--space-4) 0 0; padding: var(--space-3) var(--space-6); background: var(--surface); border-top: 1px solid var(--line); box-shadow: var(--shadow-up); }
.form-grid > .save-bar { grid-column: 1 / -1; }
.card > .save-bar { margin: var(--space-4) -18px -16px; border-radius: 0 0 var(--radius) var(--radius); }
.save-bar .field { display: contents; }
.save-bar .field-label { grid-row: 1; grid-column: 1; }
.save-bar .help { grid-row: 1; grid-column: 2 / -1; }
.save-bar textarea { grid-row: 2; grid-column: 1 / 3; align-self: center; min-height: 0; padding: 6px 12px; }
.save-bar .error { grid-row: 3; grid-column: 1 / -1; }
.save-bar-actions { grid-row: 2; grid-column: 3; align-self: center; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding-left: var(--space-2); }
@media (max-width: 760px) {
  .save-bar { grid-template-columns: minmax(0, 1fr); padding: var(--space-3) var(--space-4); }
  .save-bar .field-label, .save-bar .help, .save-bar textarea, .save-bar .error, .save-bar-actions { grid-row: auto; grid-column: 1; padding-left: 0; }
}
.save-bar-state { color: var(--warn); font-weight: 600; }
.save-bar-state:empty { display: none; }
@media (min-width: 761px) { .save-bar { position: sticky; bottom: 0; z-index: var(--z-sticky-bar); } }

/* Record and edit pages (docs/STYLE_GUIDE.md 4.2) */
.record { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.record-panel { margin: 0; }
.record-panel h2 { font-size: var(--text-lg); margin: var(--space-3) 0 var(--space-2); }
.record-status { margin: 0 0 var(--space-2); }
.record-facts { margin: 0 0 var(--space-3); font-size: var(--text-base); }
.record-actions { margin: var(--space-3) 0; }
.record-links { margin: var(--space-3) 0 0; font-size: var(--text-sm); }
@media (min-width: 1100px) {
  .record { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }
  .record-main { grid-column: 1; grid-row: 1; min-width: 0; }
  .record-panel { grid-column: 2; grid-row: 1; position: sticky; top: var(--space-4); z-index: var(--z-sticky-bar); max-height: calc(100vh - 2 * var(--space-4)); overflow-y: auto; }
}

/* Excel-style grid */
.grid { font-size: var(--text-sm); }
.grid-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.grid-toolbar input[type=search] { width: 220px; min-height: var(--control-h-compact); padding: 4px 8px; font-size: var(--text-sm); }
.grid-toolbar select { width: auto; min-height: var(--control-h-compact); padding: 3px 6px; font-size: var(--text-sm); }
.area-staff .grid-toolbar .btn { min-height: var(--control-h-compact); padding: 0 12px; font-size: var(--text-sm); }
.grid-toolbar label { display: inline-flex; gap: 6px; align-items: center; font-size: var(--text-sm); }
.colmenu { position: relative; }
.colmenu > div { position: absolute; z-index: var(--z-dropdown); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 10px; box-shadow: var(--shadow-lg); max-height: 360px; overflow: auto; min-width: 220px; }
.colmenu label { display: flex; padding: 2px 0; }
.grid-scroll { overflow: auto; border: 1px solid var(--line); background: var(--surface); max-height: 72vh; }
table.xl { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
table.xl th, table.xl td { box-sizing: border-box; height: var(--row-h); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px 8px; line-height: 1.4; white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis; text-align: left; font-weight: 400; background: var(--surface); }
table.xl thead th { position: sticky; top: 0; background: var(--surface-sunk); font-weight: 600; color: var(--ink); z-index: var(--z-table-head); user-select: none; }
table.xl thead tr.filters th { top: var(--row-h); padding: 2px 4px; }
table.xl thead tr.filters input, table.xl thead tr.filters select { min-height: 24px; height: 24px; padding: 1px 4px; font-size: var(--text-sm); border-radius: var(--radius-sm); width: 100%; min-width: 4ch; }
table.xl tr > :first-child { position: sticky; left: 0; z-index: var(--z-sticky-col); }
table.xl thead tr > :first-child { z-index: calc(var(--z-sticky-col) + 1); }
table.xl tbody tr:hover td { background: var(--row-hover); }
table.xl tbody tr.clickable { cursor: pointer; }
table.xl th.num, table.xl td.num { text-align: right; }
table.xl tr.group td { background: var(--surface-sunk); font-weight: 600; }
table.xl tr.voided td { color: var(--neutral); text-decoration: line-through; }
.sort-ind { color: var(--primary); margin-left: 4px; }
table.xl th > button.sort, table.xl tr.group button { display: block; width: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: inherit; color: inherit; text-align: inherit; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.xl th > button.sort:focus-visible, table.xl tr.group button:focus-visible, table.xl td > a:focus-visible { outline-offset: 0; box-shadow: none; }
.grid-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 6px 0; font-size: var(--text-sm); color: var(--muted); }
.grid-foot select { width: auto; min-height: 28px; padding: 2px 6px; font-size: var(--text-sm); }
.grid-foot button { font-size: var(--text-sm); padding: 3px 10px; }
table.mini { border-collapse: collapse; width: 100%; font-size: var(--text-base); }
.area-staff table.mini { font-size: var(--text-sm); }
table.mini th, table.mini td { border-bottom: 1px solid var(--line); padding: 5px 8px; text-align: left; vertical-align: top; }
table.mini th { background: var(--surface-sunk); font-weight: 600; }
td.diff { font-family: var(--font-mono); font-size: var(--text-xs); white-space: normal; }

@media (max-width: 640px) {
  main, main.staff { padding: 16px 12px 40px; }
  .program-bar-in { padding: 0 12px; }
}

/* Program calendar */
.cal-controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.cal-controls .wide { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cal-controls .cal-tabs { flex-basis: 100%; margin: 0 0 4px; }
.cal-auto-list { display: none; }
.badge.closed { background: var(--neutral-tint); color: var(--neutral); }
.cal-agenda h3 { font-size: var(--text-base); margin: 16px 0 6px; }
.cal-agenda ul { list-style: none; margin: 0; padding: 0; }
.agenda-row { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 48px; padding: 6px 10px; margin: 0 0 6px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ev); border-radius: var(--radius); }
.agenda-time { color: var(--muted); font-size: var(--text-help); }
.agenda-title { font-weight: 600; overflow-wrap: anywhere; }
.agenda-place, .agenda-note { color: var(--muted); font-size: var(--text-help); }
.agenda-row.is-closed { border-left-color: var(--neutral); background: var(--neutral-tint); }
.cal-month { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--surface); }
.cal-month th { font-size: var(--text-xs); text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.cal-month td { vertical-align: top; height: 96px; border: 1px solid var(--line); padding: 3px 4px; overflow: hidden; }
.cal-month td.other { background: var(--surface-sunk); color: var(--muted); }
.cal-month td.today, .cal-wday.today { box-shadow: inset 0 0 0 2px var(--primary); }
.daynum { display: block; font-size: var(--text-xs); font-weight: 700; color: inherit; text-decoration: none; margin-bottom: 2px; }
.ev { display: block; font-size: var(--text-xs); line-height: 1.25; padding: 1px 4px; margin: 1px 0; border-left: 4px solid var(--ev); background: color-mix(in srgb, var(--ev) 12%, var(--surface));
  border-radius: 3px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-time { color: var(--muted); }
.ev-aud { font-size: var(--text-xs); background: none; border: 1px solid var(--field-border); border-radius: var(--radius-pill); padding: 0 6px; color: var(--ink); }
.cal-more { font-size: var(--text-xs); }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wday { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 6px; min-height: 160px; }
.cal-wday .ev { white-space: normal; }
.cal-day { list-style: none; padding: 0; }
.ev-detail { border-left: 5px solid var(--ev); background: var(--surface); padding: 8px 10px; margin: 6px 0; border-radius: 4px; }
.cal-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cal-mini { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.mini-title { font-weight: 700; text-decoration: none; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: var(--text-xs); margin-top: 4px; }
.mini-dow { color: var(--muted); font-weight: 600; }
.mini-day { padding: 2px 0; border-radius: 4px; }
.mini-day.has { background: var(--ev); color: var(--ev-ink); font-weight: 700; text-decoration: none; }
.extra-meals { font-weight: 700; color: var(--warn); background: var(--warn-tint); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 8px; }
@media (max-width: 760px) {
  .cal-week { grid-template-columns: 1fr; }
  .cal-month td { height: 64px; }
  .cal-month .ev-time, .cal-month .ev-aud { display: none; }
}
@media screen and (max-width: 760px) {
  .cal-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; }
  .cal-tabs a { flex: none; scroll-snap-align: start; }
  .cal-tabs a.auto-desk { color: var(--muted); border-bottom-color: transparent; font-weight: inherit; }
  .cal-tabs a.auto-phone { color: var(--ink); border-bottom-color: var(--program); }
  .cal-controls > a.btn.secondary { flex: 1 1 0; width: auto; padding: 0 8px; }
  .cal-auto-grid { display: none; }
  .cal-auto-list { display: block; }
  .cal-month th { text-align: center; padding: 4px 0; }
  .cal-month td { height: auto; padding: 0 0 4px; text-align: center; }
  .cal-month .day-head { justify-content: center; }
  .cal-month .daynum { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: 0; font-size: var(--text-help); }
  .cal-month .add-day, .cal-month .cal-more, .cal-month .ev-cancel-line { display: none; }
  .cal-month .ev { display: inline-block; width: 10px; height: 10px; padding: 0; margin: 1px; border: 0; border-radius: 50%; background: var(--ev); font-size: 0; vertical-align: middle; }
  .cal-month .ev > * { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cal-month .ev.ev-cancel { background: transparent; box-shadow: inset 0 0 0 2px var(--neutral); }
}
.ev-closed { text-decoration: line-through; }
.day-head { display: flex; justify-content: space-between; align-items: center; }
.add-day { display: inline-flex; align-items: center; justify-content: center; min-width: var(--control-h-compact); min-height: var(--control-h-compact); font-weight: 700; text-decoration: none; border-radius: 4px; color: var(--primary); }
td:hover .add-day, .cal-wday:hover .add-day, .add-day:focus { background: var(--primary-tint); }
.dots { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0 3px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--ev); border: 2px solid var(--ev); vertical-align: middle; }
.dot-closed { background: transparent; border-color: var(--neutral); }
.dot-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--text-help); color: var(--muted); margin: 0 0 6px; }
.mini-day.dotted { position: relative; text-decoration: none; color: inherit; }
.mini-day.dotted::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ev); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ev-cancel { background: var(--neutral-tint); border-left-color: var(--neutral); }
.ev-cancel-line { display: block; color: var(--neutral); font-weight: 600; font-size: var(--text-xs); }
.ev-detail .ev-cancel-line { font-size: var(--text-help); }
.cal-legend { font-size: var(--text-help); color: var(--muted); margin: 0 0 6px; }
.ev.ev-cancel { white-space: normal; }
.mini-day.has.cancel { background: var(--surface); color: var(--neutral); box-shadow: inset 0 0 0 2px var(--neutral); }
/* Reports */
.report-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.report-period { color: var(--muted); margin: 6px 0 10px; }
.report-totals { border-collapse: collapse; width: 100%; max-width: 980px; background: var(--surface); margin-bottom: 18px; }
.report-totals th { text-align: left; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); width: 34%; }
.report-totals td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.report-totals td.v { font-size: var(--text-lg); font-weight: 700; white-space: nowrap; width: 16%; }
.report-table { margin-bottom: 18px; break-inside: avoid; }
.report-table h2 { font-size: var(--text-lg); }
.report-table h2 a { font-size: var(--text-xs); font-weight: 400; margin-left: 8px; }
table.mini th.num, table.mini td.num { text-align: right; }
.code-block { background: var(--surface-sunk); border: 1px solid var(--line); padding: 10px; border-radius: 6px; overflow-x: auto; font-size: var(--text-help); }
.care-contact + .care-contact { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.care-contact .new-contact { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.notices { display: grid; gap: 10px; margin: 0 0 18px; }
.notice-banner { border-left: 6px solid; border-radius: var(--radius); padding: 10px 14px; }
.notice-banner h2 { font-size: var(--text-lg); margin: 0 0 4px; }
.notice-banner .prose p { margin: 4px 0; }
.notices.compact { gap: 8px; margin: 0 0 12px; }
.notices.compact .notice-banner { padding: 8px 12px; }
.notices.compact .notice-banner h2 { font-size: var(--text-base); margin: 0 0 2px; }
.notice-banner { color: var(--ink); }
.notice-banner.info { background: var(--info-tint); border-color: var(--info); }
.notice-banner.info h2 { color: var(--info); }
.notice-banner.warn { background: var(--warn-tint); border-color: var(--warn); }
.notice-banner.urgent { background: var(--danger-tint); border-color: var(--danger); }
tr.voided td { color: var(--neutral); text-decoration: line-through; }
/* Program photos */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 24px; }
.photos figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.photos figure.lead { grid-column: span 2; grid-row: span 2; }
.photos img { display: block; width: 100%; height: 100%; min-height: 0; aspect-ratio: 3 / 2; object-fit: cover; flex: 1; }
.photos figcaption { padding: 6px 10px 8px; font-size: var(--text-help); line-height: 1.35; }
.photos figcaption span { display: block; color: var(--ink); }
.photos figcaption small { color: var(--muted); font-size: var(--text-xs); }
.photos figcaption small a { color: inherit; }
@media (max-width: 760px) {
  .photos { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--space-2); }
  .photos figure { scroll-snap-align: start; }
  .photos figure.lead { grid-column: auto; grid-row: auto; }
  .photos img { height: auto; flex: none; }
}
/* Senior care, resources and interests */
.resource-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.resource-toc .card { margin: 0; }
.resource-toc h2 { font-size: var(--text-lg); }
.resource-toc ul.links { margin: 6px 0 0; padding-left: 18px; }
.resource-toc h2 a { display: inline-flex; align-items: center; min-height: var(--tap); }
.resource-toc ul.links a { display: inline-block; padding: 10px 0; }
.resource-section > h2 { border-bottom: 3px solid var(--primary); padding-bottom: 4px; margin-top: 1.6em; }
.resource-group { margin: 0; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.resource-group > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--tap); cursor: pointer; list-style: none; }
.resource-group > summary::-webkit-details-marker { display: none; }
.resource-group > summary::after { content: "+"; flex: none; font-size: var(--text-lg); color: var(--primary); }
.resource-group[open] > summary::after { content: "\2212"; }
.resource-group > summary h3 { margin: var(--space-2) 0; }
.resource-group[open] { padding-bottom: var(--space-4); }
.resource { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 10px; max-width: 52rem; }
.resource h4 { margin: 0 0 2px; font-size: var(--text-base); }
.resource-meta { margin: 0 0 4px; font-weight: 600; }
.resource .prose p { margin: 4px 0; }
.resource-group .back { font-size: var(--text-help); margin: 2px 0 0; }
.resource-group .back a, .resource-meta a[href^="tel:"] { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
.resource h4 a { display: inline-block; padding: 12px 0; margin: -12px 0; }
.card p > a[href^="tel:"]:only-child, .card p > a[href^="mailto:"]:only-child { display: inline-flex; align-items: center; min-height: var(--tap); }
/* Site map and site guide */
.sitemap { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sitemap .card { margin: 0; }
.sitemap h2 { font-size: var(--text-lg); }
.sitemap ul.links { margin: 6px 0 0; padding-left: 18px; }
.role-tag { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; padding: 1px 9px; border-radius: var(--radius-pill); vertical-align: middle; border: 1px solid var(--field-border); background: none; color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
dl.legend { display: grid; grid-template-columns: minmax(180px, 16rem) 1fr; gap: 6px 18px; margin: 0 0 20px; max-width: 60rem; }
dl.legend dt { font-weight: 600; }
dl.legend dd { margin: 0; color: var(--ink); }
@media (max-width: 600px) { dl.legend { grid-template-columns: 1fr; } dl.legend dd { margin-bottom: 8px; } }
/* Search */
.search-form { display: flex; gap: 8px; max-width: 40rem; }
.search-form input[type=search] { flex: 1; min-width: 0; }
.hero .search-form { margin-top: 12px; }
.search-group h2 { font-size: var(--text-lg); margin: 1.2em 0 .3em; }
ul.search-results { list-style: none; padding: 0; margin: 0; max-width: 52rem; }
ul.search-results li { padding: 8px 0; border-bottom: 1px solid var(--line); }
ul.search-results li a { font-weight: 600; }
ul.search-results p { margin: 2px 0 0; color: var(--ink); font-size: var(--text-base); }
.resource:target { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Giving Tree item lists */
ul.item-pick, ul.item-mine { list-style: none; padding: 0; margin: 6px 0 12px; }
ul.item-pick li, ul.item-mine li { padding: 4px 0; }
ul.item-pick label { display: inline-flex; gap: 8px; align-items: baseline; cursor: pointer; }
.address-table td { vertical-align: top; }
.address-table .small, .small { font-size: var(--text-xs); }
/* Home page program cards: two photos across the top */
.card-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: -16px -18px 14px; overflow: hidden; border-radius: 0; }
.card-photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.card-photos:has(img:only-child) { grid-template-columns: 1fr; }

/* Printing an app page (section 8): content only, ink on white, web addresses written out after links in prose. */
@media print {
  .review-bar, .draft-banner, .site-header, .site-footer, .program-bar, .tabs, .photos, .btn:not([href^="tel:"]), button, .save-bar, .no-print { display: none !important; }
  body { background: var(--surface); color: var(--ink); }
  .report-totals, .report-table table { font-size: var(--text-xs); }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
