/* Bedford Vets — mobile first */
:root {
  --blue: #14284b;
  --blue-2: #1e3a66;
  --blue-ink: #0e1d38;
  --red: #bf2433;
  --red-dark: #9c1b28;
  --brass: #b08a3e;
  --brass-soft: #f3ead6;
  --mist: #edf1f6;
  --line: #d7deE8;
  --ink: #18202e;
  --muted: #536074;
  --white: #fff;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 6px;
  --r: 12px;
  --wrap: 1180px;
  --tabbar: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body { font-size: 1.125rem; padding-bottom: 0; } }
img { max-width: 100%; display: block; }
a { color: var(--blue-2); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: .005em; color: var(--blue); margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 9vw, 5rem); }
h2 { font-size: clamp(2rem, 6vw, 3.1rem); }
h3 { font-size: 1.55rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.lede { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); }
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brass); color: var(--blue-ink); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 0; }

/* Ribbon bar — the site's signature stripe */
.ribbon { height: 8px; background: linear-gradient(90deg, var(--blue) 0 34%, var(--white) 34% 37%, var(--red) 37% 63%, var(--white) 63% 66%, var(--blue) 66% 100%); border-top: 2px solid var(--brass); border-bottom: 2px solid var(--brass); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--r-sm); border: 2px solid transparent; font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-2); color: #fff; }
.btn-line { border-color: currentColor; color: var(--blue); background: transparent; }
.btn-line:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--blue); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--blue); }
.brand img { width: 46px; height: 46px; }
.brand b { font-family: var(--display); font-size: 1.65rem; font-weight: 800; line-height: 1; display: block; }
.brand small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .02em; line-height: 1.2; }
.nav { display: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem .1rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--red); }
.hdr-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 2px solid var(--line); border-radius: var(--r-sm); min-height: 44px; padding: 0 .8rem; font: 700 .95rem var(--body); color: var(--blue); cursor: pointer; }
@media (min-width: 1200px) {
  .nav { display: flex; gap: 1rem; align-items: center; }
  .hdr-cta { white-space: nowrap; }
  .hdr-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(14,29,56,.55); display: none; }
.drawer.open { display: block; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 380px); background: var(--white); padding: 1.25rem 1.25rem 2rem; overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: .4; } }
.drawer-panel a.dl { display: block; padding: .9rem .25rem; font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--blue); text-decoration: none; border-bottom: 1px solid var(--mist); }
.drawer-panel a.dl[aria-current="page"] { color: var(--red); }
.drawer-close { align-self: flex-end; background: none; border: 0; font: 700 1rem var(--body); color: var(--muted); min-height: 44px; cursor: pointer; }

/* Mobile tab bar */
.tabbar { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--blue); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 3px solid var(--red); }
.tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #c9d4e6; text-decoration: none; font: 600 .72rem var(--body); background: none; border: 0; cursor: pointer; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: #fff; }
.tabbar a.help { color: #fff; }
.tabbar a.help svg { color: #ff9aa4; }
@media (min-width: 900px) { .tabbar { display: none; } }

/* Announcement */
.announce { background: var(--blue); color: #fff; border-bottom: 3px solid var(--brass); }
.announce-inner { position: relative; max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .6rem 3.25rem; text-align: center; }
.announce p { margin: 0; font: 600 1rem/1.4 var(--body); color: #fff; }
.announce a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; white-space: nowrap; }
.announce-star { flex: none; color: var(--brass); font-size: 1.05rem; line-height: 1; }
.announce-x { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: rgba(255,255,255,.8); font-size: 1rem; cursor: pointer; border-radius: 50%; }
.announce-x:hover { color: #fff; background: rgba(255,255,255,.1); }
@media (max-width: 600px) { .announce-inner { justify-content: flex-start; text-align: left; padding: .55rem 3rem .55rem 1rem; } .announce p { font-size: .95rem; } }
.announce:empty { display: none; }

/* Hero — phones: photo on top, text on a navy panel. Desktop: text over the photo. */
.hero { position: relative; background: var(--blue-ink); color: #fff; overflow: hidden; }
.hero-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: 0; transition: opacity 1.2s ease; }
.hero-img.is-on { opacity: 1; }
.hero-media::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 35%; background: linear-gradient(180deg, rgba(14,29,56,0), var(--blue-ink)); }
.hero-inner { position: relative; z-index: 1; padding: .5rem 0 2.25rem; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .3em; font-size: clamp(2.5rem, 11vw, 5rem); }
.hero p { font-size: 1.1rem; color: #e3e9f3; max-width: 46ch; }
@media (min-width: 900px) {
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-media::after { top: 0; height: auto; background: linear-gradient(180deg, rgba(14,29,56,.15) 0%, rgba(14,29,56,.55) 45%, rgba(14,29,56,.96) 100%); }
  .hero-img { object-position: 50% 35%; }
  .hero-img.is-on { opacity: .94; }
  .hero-inner { padding: 16rem 0 3.5rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
  .hero p { font-size: 1.25rem; }
}
.next-card { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 1.25rem; margin-top: 1.75rem; border-top: 6px solid var(--red); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.next-card h2 { font-size: 1.1rem; font-family: var(--body); font-weight: 700; color: var(--muted); margin: 0 0 .6rem; letter-spacing: 0; }
@media (min-width: 900px) { .next-card { margin-top: 0; } }

/* Sections */
.section { padding: 3.5rem 0; }
.section-mist { background: var(--mist); }
.section-blue { background: var(--blue); color: #e3e9f3; }
.section-blue h2, .section-blue h3 { color: #fff; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.sec-head h2 { margin: 0; }
.sec-head a { font-weight: 700; }
.page-head { padding: 2.75rem 0 2rem; background: var(--mist); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.6rem, 8vw, 4.25rem); margin-bottom: .2em; }
.page-head .lede { margin: 0; }
.page-head .lede-wide { max-width: none; }

/* Date block (event) */
.event { display: grid; grid-template-columns: 64px 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.dblock { background: var(--blue); color: #fff; border-radius: var(--r-sm); text-align: center; padding: .4rem 0 .5rem; line-height: 1; }
.dblock .mo { display: block; font: 700 .8rem var(--body); color: #ffb3ba; text-transform: uppercase; letter-spacing: .06em; }
.dblock .dy { display: block; font: 800 2rem var(--display); }
.dblock .wd { display: block; font: 600 .72rem var(--body); color: #c9d4e6; margin-top: 2px; }
.event h3 { font-family: var(--body); font-size: 1.12rem; font-weight: 700; color: var(--ink); margin: .1rem 0 .2rem; line-height: 1.3; }
.event .meta { color: var(--muted); font-size: .97rem; margin: 0; }
.event .desc { margin: .35rem 0 0; font-size: .98rem; }
.event .acts { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem; font-size: .92rem; }
.event .acts a, .event .acts button { font: 600 .92rem var(--body); color: var(--blue-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-block; font: 700 .72rem var(--body); padding: .15rem .5rem; border-radius: 999px; background: var(--mist); color: var(--blue); vertical-align: 2px; margin-left: .35rem; }
.tag-ceremony { background: #fde7e9; color: var(--red-dark); }
.tag-community { background: var(--brass-soft); color: #6d531c; }
.tag-volunteer { background: #e3f1e8; color: #1f5b36; }

/* Help tiles */
.tiles { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.tile { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-height: 150px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-2px); }
.tile svg { width: 30px; height: 30px; color: var(--red); }
.tile b { font-family: var(--display); font-size: 1.45rem; color: var(--blue); line-height: 1.05; }
.tile span { font-size: .93rem; color: var(--muted); line-height: 1.4; }

/* Updates list */
.updates { display: grid; gap: 1rem; }
@media (min-width: 760px) { .updates.cards { grid-template-columns: repeat(3, 1fr); } }
/* Phones: the email cards scroll sideways, with the next card peeking in so it's clear there's more */
@media (max-width: 759px) {
  .updates.cards { display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1.25rem; margin: 0 calc(-1 * 1.25rem); padding: .2rem 1.25rem .9rem; scrollbar-width: none; overscroll-behavior-x: contain; }
  .updates.cards::-webkit-scrollbar { display: none; }
  .updates.cards > .upd { flex: 0 0 82%; scroll-snap-align: start; }
}
.upd { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); }
.upd:hover { border-color: var(--blue); color: var(--ink); }
.upd img { aspect-ratio: 16/9; object-fit: cover; width: 100%; background: var(--mist); }
.upd .body { padding: 1rem 1.1rem 1.2rem; }
.upd time { font-size: .85rem; color: var(--muted); font-weight: 600; }
.upd h3 { font-family: var(--body); font-size: 1.1rem; font-weight: 700; color: var(--blue); line-height: 1.3; margin: .2rem 0 .4rem; }
.upd p { font-size: .95rem; color: var(--muted); margin: 0; }
.archive-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); align-items: baseline; }
.archive-row:hover h3 { color: var(--red); }
.archive-row time { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.archive-row h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 600; color: var(--blue); margin: 0; line-height: 1.35; }
.archive-row p { margin: .25rem 0 0; font-size: .93rem; color: var(--muted); }
.year { font-family: var(--display); font-size: 2rem; color: var(--blue); margin: 2rem 0 .25rem; padding-bottom: .25rem; border-bottom: 3px solid var(--blue); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip { min-height: 40px; padding: .35rem .95rem; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font: 600 .93rem var(--body); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.search { width: 100%; min-height: 50px; padding: .6rem 1rem; border: 2px solid var(--line); border-radius: var(--r-sm); font: 1rem var(--body); margin-bottom: 1rem; }
.search:focus { border-color: var(--blue); outline: none; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form .row2 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .88rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .65rem .85rem; border: 2px solid var(--line); border-radius: var(--r-sm); font: 1rem var(--body); background: var(--white); color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(30,58,102,.15); }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem; }
.radios label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .3rem .9rem; border: 2px solid var(--line); border-radius: 999px; font-weight: 600; cursor: pointer; margin: 0; }
.radios input { width: 18px; height: 18px; min-height: 0; accent-color: var(--blue); }
.radios label:has(input:checked) { border-color: var(--blue); background: var(--mist); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); margin-top: 2px; flex: none; }
.hp { position: absolute; left: -5000px; }
.form-msg { padding: .9rem 1rem; border-radius: var(--r-sm); font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e3f1e8; color: #1f5b36; }
.form-msg.err { display: block; background: #fde7e9; color: var(--red-dark); }
.photo-drop { display: grid; place-items: center; gap: .4rem; border: 2px dashed var(--line); border-radius: var(--r); padding: 1.5rem; text-align: center; cursor: pointer; color: var(--muted); }
.photo-drop:hover { border-color: var(--blue); }
.photo-drop img { max-height: 220px; border-radius: var(--r-sm); }

/* Signup band */
.signup { background: var(--blue); color: #e3e9f3; border-radius: var(--r); padding: 1.75rem 1.25rem; position: relative; overflow: hidden; }
.signup h2 { color: #fff; }
.signup .field label { color: #fff; }
.signup .field input { border-color: transparent; }
.signup .check { color: #e3e9f3; }
@media (min-width: 900px) { .signup { padding: 2.5rem; display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: center; } }

/* Resource guide */
.crisis { background: var(--red); color: #fff; border-radius: var(--r); padding: 1.25rem; display: grid; gap: .9rem; }
.crisis h2 { color: #fff; font-size: 2rem; margin: 0; text-wrap: pretty; }
.crisis p { margin: 0; color: #ffe3e6; }
.crisis .btn { background: #fff; color: var(--red-dark); }
.crisis .btn:hover { background: var(--blue-ink); color: #fff; }
@media (min-width: 900px) { .crisis { grid-template-columns: 1fr auto; align-items: center; padding: 1.5rem 2rem; } }
.needs { display: grid; gap: .75rem; }
.need { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.need summary { list-style: none; display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; cursor: pointer; font-weight: 700; font-size: 1.08rem; color: var(--blue); min-height: 64px; }
.need summary::-webkit-details-marker { display: none; }
.need summary svg.ic { width: 28px; height: 28px; color: var(--red); flex: none; }
.need summary .chev { margin-left: auto; transition: transform .2s; width: 20px; height: 20px; color: var(--muted); }
.need[open] summary .chev { transform: rotate(180deg); }
.need .contacts { padding: 0 1.1rem 1.1rem; display: grid; gap: .75rem; }
.contact { background: var(--mist); border-radius: var(--r-sm); padding: .9rem 1rem; }
.contact b { display: block; font-size: 1.02rem; }
.contact .who { display: block; color: var(--muted); font-size: .93rem; margin-bottom: .6rem; }
.contact .btn-row .btn { min-height: 46px; padding: .5rem 1rem; font-size: .98rem; }

/* People */
.people { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .people { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { display: flex; gap: .9rem; align-items: center; padding: .9rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--blue); color: #fff; font: 800 1.35rem var(--display); object-fit: cover; }
.person b { display: block; font-size: 1.05rem; }
.person span { display: block; font-size: .9rem; color: var(--muted); }
.person.chair { border: 2px solid var(--brass); }

/* Programs */
.programs { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .programs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .programs { grid-template-columns: repeat(3, 1fr); } }
.program { border-top: 4px solid var(--blue); padding-top: 1rem; }
.program h3 { margin-bottom: .3rem; }
.program p { font-size: .98rem; color: var(--muted); }

/* Honor banners — modeled on Bedford's Military Service Banners */
.banners { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .banners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .banners { grid-template-columns: repeat(3, 1fr); } }
.banner { position: relative; padding-top: 14px; }
.banner::before { content: ''; position: absolute; top: 0; left: -10px; right: -10px; height: 10px; border-radius: 5px; background: linear-gradient(180deg, #d9bd7c, var(--brass) 60%, #7d6026); }
.banner-body { background: var(--blue); color: #fff; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 26px), 0 100%); padding-bottom: 46px; }
.banner-photo { aspect-ratio: 4/5; background: var(--blue-2); position: relative; overflow: hidden; }
.banner-photo img { width: 100%; height: 100%; object-fit: cover; }
.banner-photo .seal { position: absolute; inset: 0; display: grid; place-items: center; font: 800 5rem var(--display); color: rgba(255,255,255,.18); }
.banner-photo .seal img { width: 55%; height: auto; opacity: .9; }
.banner-year { position: absolute; top: .75rem; left: .75rem; background: var(--red); color: #fff; font: 800 1.2rem var(--display); padding: .15rem .6rem; border-radius: 3px; }
.banner .ribbon { height: 7px; }
.banner-text { padding: 1rem 1.25rem 0; text-align: center; }
.banner-text h3 { color: #fff; font-size: 2.1rem; margin: 0 0 .1em; }
.banner-text .branch { color: #e8c983; font-weight: 700; font-size: .95rem; }
.banner-text p { font-size: .95rem; color: #cfd9ea; text-align: left; margin: .8rem 0 0; }
.banner-text a { color: #fff; font-weight: 600; font-size: .92rem; }
.honors-list { display: grid; gap: 1rem; }
@media (min-width: 760px) { .honors-list { grid-template-columns: 1fr 1fr; } }
.honor-item { border-left: 4px solid var(--brass); padding: .25rem 0 .25rem 1rem; }
.honor-item b { display: block; font-size: 1.08rem; color: var(--blue); }
.honor-item .award { font-weight: 600; font-size: .92rem; color: #6d531c; }
.honor-item p { font-size: .95rem; color: var(--muted); margin: .3rem 0 0; }

/* Gallery */
.albums { display: grid; gap: 2.5rem; }
.album h2 { font-size: 2rem; margin-bottom: .1em; }
.album .when { color: var(--muted); margin-bottom: 1rem; }
/* Photo carousels: one big photo per event, swipe or arrows (Instagram-style) */
@media (min-width: 900px) { .albums { grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; } }
.album { min-width: 0; }
.carousel { position: relative; border-radius: var(--r); overflow: hidden; background: var(--blue); box-shadow: 0 2px 10px rgba(20,40,75,.12); }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > button { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; padding: 0; border: 0; background: var(--blue); cursor: zoom-in; aspect-ratio: 4 / 3; }
.car-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--blue); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); transition: opacity .2s, background .15s; z-index: 2; }
.car-arrow:hover { background: #fff; }
.car-arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.car-arrow svg { width: 22px; height: 22px; }
.car-prev { left: .75rem; } .car-next { right: .75rem; }
.car-arrow[hidden] { display: grid; opacity: 0; pointer-events: none; }
.car-count { position: absolute; top: .75rem; right: .75rem; background: rgba(14,29,56,.75); color: #fff; font: 700 .8rem var(--body); padding: .25rem .6rem; border-radius: 999px; z-index: 2; font-variant-numeric: tabular-nums; }
.car-dots { position: absolute; left: 0; right: 0; bottom: .7rem; display: flex; justify-content: center; gap: 6px; z-index: 2; pointer-events: none; }
.car-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .2s, transform .2s; }
.car-dots i.on { background: #fff; transform: scale(1.25); }
@media (hover: hover) { .car-arrow { opacity: .85; } .carousel:hover .car-arrow:not([hidden]) { opacity: 1; } }
.grid-photos { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .grid-photos { grid-template-columns: repeat(4, 1fr); } }
.grid-photos button { padding: 0; border: 0; background: var(--mist); border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; aspect-ratio: 1; }
.grid-photos button:first-child { grid-column: span 2; grid-row: span 2; }
.grid-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid-photos button:hover img { transform: scale(1.04); }
.strip { display: flex; gap: .6rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.strip a { flex: 0 0 72%; scroll-snap-align: start; border-radius: var(--r-sm); overflow: hidden; }
.strip img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (min-width: 760px) { .strip a { flex-basis: 31%; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(8,16,32,.95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 80vh; border-radius: 4px; }
.lightbox .cap { position: absolute; bottom: 1.25rem; left: 0; right: 0; text-align: center; color: #c9d4e6; font-size: .95rem; padding: 0 4rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .75rem; top: 50%; transform: translateY(-50%); }

/* Calendar */
:root { --c-meeting: #1e3a66; --c-ceremony: #bf2433; --c-community: #8a6a28; --c-volunteer: #2b6e45; --c-holiday: #6b4fa0; }
.cal-bar { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.lg { --c: var(--blue); display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; padding: .3rem .95rem .3rem .75rem; border-radius: 999px; border: 2px solid var(--c); background: var(--white); color: var(--c); font: 700 .93rem var(--body); cursor: pointer; }
.lg::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.lg[aria-pressed="true"] { background: var(--c); color: #fff; }
.lg[aria-pressed="true"]::before { background: #fff; box-shadow: inset 0 0 0 3px var(--c); }
.lg[aria-pressed="false"] { background: var(--white); }
.lg-all { --c: var(--blue); }
.lg-all::before { display: none; }
.lg-meeting { --c: var(--c-meeting); } .lg-ceremony { --c: var(--c-ceremony); } .lg-community { --c: var(--c-community); } .lg-volunteer { --c: var(--c-volunteer); } .lg-holiday { --c: var(--c-holiday); }
.cal-hint { font-size: .9rem; margin: .6rem 0 1.25rem; }
.view-toggle { display: inline-flex; border: 2px solid var(--blue); border-radius: var(--r-sm); overflow: hidden; }
.view-toggle button { background: none; border: 0; min-height: 40px; padding: 0 1rem; font: 700 .93rem var(--body); color: var(--blue); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.tag-meeting { background: #e3e9f3; color: var(--c-meeting); }
.tag-holiday { background: #eee8f7; color: var(--c-holiday); }
.dblock.c-ceremony { background: var(--c-ceremony); } .dblock.c-community { background: var(--c-community); } .dblock.c-volunteer { background: var(--c-volunteer); } .dblock.c-holiday { background: var(--c-holiday); }
.dblock.c-ceremony .mo, .dblock.c-community .mo, .dblock.c-volunteer .mo, .dblock.c-holiday .mo { color: #fff; opacity: .85; }

/* Month view (Google Calendar style) */
.month-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.month-head h2 { margin: 0 auto 0 .25rem; font-size: clamp(1.8rem, 5vw, 2.4rem); order: -1; }
.month-head button { min-width: 44px; min-height: 44px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font: 700 1rem var(--body); cursor: pointer; color: var(--blue); padding: 0 .9rem; }
.month-head button:hover { border-color: var(--blue); }
.mcal { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--line); display: grid; gap: 1px; }
.mcal-dow, .mcal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.mcal-dow div { background: var(--mist); text-align: center; font: 700 .78rem var(--body); color: var(--muted); padding: .45rem 0; }
.mday { background: var(--white); min-width: 0; min-height: 64px; padding: .3rem; cursor: pointer; position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; font: inherit; text-align: left; }
.mday:focus-visible { outline: 3px solid var(--brass); outline-offset: -3px; }
.mday .dn { font: 600 .9rem var(--body); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); flex: none; }
.mday.out { background: #fafbfc; }
.mday.out .dn { color: #b3bccb; }
.mday.past { background: repeating-linear-gradient(135deg, #f6f7f9 0 6px, #f1f3f6 6px 12px); }
.mday.past .dn { color: #9aa5b5; }
.mday.today .dn { background: var(--red); color: #fff; font-weight: 800; }
.mday.sel { box-shadow: inset 0 0 0 2px var(--blue); }
.mday .dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.mday .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-meeting); }
.mday .evs { display: none; width: 100%; }
.c-meeting { --c: var(--c-meeting); } .c-ceremony { --c: var(--c-ceremony); } .c-community { --c: var(--c-community); } .c-volunteer { --c: var(--c-volunteer); } .c-holiday { --c: var(--c-holiday); }
.mday .dot { background: var(--c, var(--c-meeting)); }
.mday.past .dot { opacity: .45; }
@media (min-width: 760px) {
  .mday { min-height: 118px; align-items: stretch; padding: .35rem .35rem .45rem; }
  .mday .dn { margin-bottom: 2px; }
  .mday .dots { display: none; }
  .mday .evs { display: grid; gap: 3px; }
  .ev-chip { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; border: 0; border-radius: 4px; padding: 3px 6px; font: 600 .78rem/1.25 var(--body); color: #fff; background: var(--c, var(--c-meeting)); cursor: pointer; text-align: left; }
  .ev-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ev-chip b { font-weight: 700; flex: none; opacity: .9; }
  .ev-chip.c-holiday { background: #eee8f7; color: var(--c-holiday); }
  .mday.past .ev-chip { opacity: .55; }
  .mday.past .ev-chip span { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.7); }
  .mday.past .ev-chip.c-holiday span { text-decoration-color: rgba(107,79,160,.6); }
  .ev-more { border: 0; background: none; font: 700 .78rem var(--body); color: var(--blue-2); text-align: left; padding: 1px 6px; cursor: pointer; }
}
@media (min-width: 1100px) { .mday { min-height: 132px; } .ev-chip { font-size: .82rem; } }
.day-detail { margin-top: 1.25rem; }
.day-detail h3 { font-family: var(--body); font-size: 1.1rem; color: var(--ink); margin: 0 0 .25rem; }
.day-detail .past-note { color: var(--muted); font-size: .9rem; margin: 0 0 .5rem; }
.event.is-past { opacity: .6; }
.event.is-past h3 { text-decoration: line-through; text-decoration-color: rgba(24,32,46,.35); }
.cal-subscribe { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; padding: 1rem 1.1rem; background: var(--mist); border-radius: var(--r); margin-top: 1.5rem; font-size: .95rem; }
.cal-subscribe b { color: var(--blue); }
.empty { padding: 1.25rem; background: var(--mist); border-radius: var(--r); color: var(--muted); }

/* Article */
.article { padding: 2.5rem 0 4rem; }
.article h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); }
.article .byline { color: var(--muted); font-size: .95rem; margin-bottom: 2rem; }
.article-body { font-size: 1.12rem; line-height: 1.7; }
.article-body h2 { font-size: 1.9rem; margin-top: 2rem; }
.tip { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.tip .num { font: 800 2.6rem/1 var(--display); color: var(--red); }
.tip h3 { margin: 0 0 .3rem; font-size: 1.6rem; }
.tip p { margin: 0; }
.callout { background: var(--brass-soft); border-radius: var(--r); padding: 1.25rem 1.4rem; margin: 2rem 0; }
.story-card { display: grid; gap: 1rem; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--white); }
.story-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.story-card .body { padding: 0 1.25rem 1.25rem; }
.story-card h3 { margin-bottom: .3rem; }
@media (min-width: 760px) { .story-card { grid-template-columns: 1fr 1.2fr; align-items: center; } .story-card .body { padding: 1.5rem; } .story-card img { height: 100%; aspect-ratio: auto; } }

/* Split */
.split { display: grid; gap: 2rem; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; } .split.wide-left { grid-template-columns: 1.3fr 1fr; } }
.photo-frame { border-radius: var(--r); overflow: hidden; position: relative; }
.photo-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--blue) 0 34%, var(--white) 34% 37%, var(--red) 37% 63%, var(--white) 63% 66%, var(--blue) 66%); }
.facts { display: grid; gap: .75rem; margin: 1.5rem 0; }
.fact { display: flex; gap: .75rem; align-items: flex-start; }
.fact svg { width: 24px; height: 24px; color: var(--red); flex: none; margin-top: 3px; }

/* Footer */
.site-footer { background: var(--blue-ink); color: #b8c4d8; padding: 3rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .foot-grid > div:first-child { grid-column: auto; } }
.foot-social { margin-top: 1rem; }
.site-footer .fb-link { display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding: .35rem 1.1rem .35rem .4rem; border-radius: 999px; background: #1877f2; color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: background .15s, transform .15s; }
.site-footer .fb-link:hover { background: #166fe5; color: #fff; transform: translateY(-1px); }
.site-footer .fb-link:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fb-link .fb-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.fb-link .fb-ic svg { width: 22px; height: 22px; fill: #1877f2; color: #1877f2; }
.site-footer h2 { color: #fff; font-size: 1.5rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.foot-brand { display: flex; gap: .9rem; align-items: center; margin-bottom: 1rem; }
.foot-brand img { width: 64px; height: 64px; }
.foot-brand b { color: #fff; font: 800 1.8rem var(--display); display: block; line-height: 1; }
.foot-small { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer .seals { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.6rem; margin: 2rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.seals li { margin: 0; }
.seals img { display: block; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(176,138,62,.55), 0 4px 14px rgba(0,0,0,.35); transition: transform .2s ease; }
.seals img:hover { transform: translateY(-2px) scale(1.05); }
@media (max-width: 640px) { .site-footer .seals { flex-wrap: nowrap; gap: 0 .5rem; justify-content: space-between; } .site-footer .seals li { flex: 1 1 0; min-width: 0; max-width: 54px; } .seals img { width: 100%; height: auto; aspect-ratio: 1; } }
.seals + .foot-small { margin-top: 1.1rem; }

/* Event modal */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(14,29,56,.6); display: none; align-items: flex-end; justify-content: center; }
.modal.open { display: flex; }
.modal-card { background: var(--white); width: 100%; max-width: 560px; border-radius: var(--r) var(--r) 0 0; padding: 1.5rem 1.25rem 2rem; max-height: 85vh; overflow-y: auto; border-top: 6px solid var(--red); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@media (min-width: 640px) { .modal { align-items: center; } .modal-card { border-radius: var(--r); } }
.modal-card .x { float: right; background: none; border: 0; font: 700 1rem var(--body); color: var(--muted); min-height: 40px; cursor: pointer; }
.hero .next-card p { color: var(--muted); font-size: 1rem; }
.hero .next-card .desc { color: var(--ink); }
.banner-photo.no-photo { aspect-ratio: 3/2; }
.banner-photo.no-photo .seal img { width: 34%; }

.hq-lock { color: #6f7f99 !important; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.hq-lock:hover { color: #fff !important; background: rgba(255,255,255,.08); }
.foot-small { align-items: center; }

/* Military holidays in calendar */

/* Facebook tap-to-load */
.fb-embed { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; display: grid; gap: .75rem; justify-items: start; max-width: 520px; }
.fb-embed iframe { width: 100%; max-width: 500px; height: 640px; border: 0; border-radius: 8px; }
.fb-embed .fbicon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1877f2; color: #fff; }

.brand b { white-space: nowrap; } @media (max-width: 400px) { .brand b { font-size: 1.35rem; } } @media (max-width: 340px) { .brand b { font-size: 1.2rem; } } /* Brand name on one line on phones */ /* Facebook posts (homepage cards, filled from HQ's sync) */
.fb-feed { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.fb-feed > .fbicon, .fb-feed [data-fb-load] { display: none; }
.fb-head { display: flex; align-items: center; gap: .75rem; }
.fb-head .fbicon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #1877f2; color: #fff; flex: none; }
.fb-head b { display: block; font-size: 1.1rem; color: var(--blue); line-height: 1.2; }
.fb-head small { display: block; color: var(--muted); font-size: .95rem; }
.fb-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.fb-post a { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; align-items: start; height: 100%; padding: .75rem; border-radius: 10px; background: var(--mist); color: var(--ink); text-decoration: none; transition: background .15s; }
.fb-post a:hover { background: #e1e7f0; }
.fb-post a:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.fb-post a:not(:has(.fb-pic)) { grid-template-columns: 1fr; }
.fb-pic { display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--line); }
.fb-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-body { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.fb-body time { font-size: .9rem; font-weight: 700; color: var(--red); }
.fb-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere; }
.fb-more { margin-top: auto; font-size: .95rem; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.fb-all { align-self: flex-start; }
.fb-empty { display: grid; gap: .75rem; justify-items: start; }
.fb-empty p { margin: 0; }
@media (min-width: 640px) and (max-width: 899px) {
  .fb-posts { grid-template-columns: 1fr 1fr; }
  .fb-post a { grid-template-columns: 1fr; }
  .fb-pic { aspect-ratio: 16 / 10; }
}
@media (max-width: 420px) {
  .fb-feed { padding: 1rem; }
  .fb-post a { grid-template-columns: 92px 1fr; gap: .8rem; }
  .fb-all { align-self: stretch; text-align: center; justify-content: center; }
}

/* Committee members: one grid of photo cards (4 across on desktop, 3 on tablets, 2 on phones) */
.members { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .members { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1000px) { .members { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.member { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.member.is-chair { border: 2px solid var(--brass); }
.member-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--blue); }
.member-photo.is-initials { display: grid; place-items: center; color: rgba(255,255,255,.9); font: 800 clamp(2.4rem, 9vw, 3.6rem) var(--display); background: linear-gradient(160deg, var(--blue), var(--blue-2)); }
.member-body { display: flex; flex-direction: column; gap: .2rem; flex: 1; padding: .85rem 1rem 1rem; border-top: 4px solid var(--red); }
.member.is-chair .member-body { border-top-color: var(--brass); }
.member-title { font-size: .95rem; font-weight: 700; color: var(--red); }
.member.is-chair .member-title { color: #8a6a28; }
.member h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.member-meta { font-size: .95rem; color: var(--muted); }
@media (max-width: 420px) { .members { gap: .75rem; } .member-body { padding: .7rem .75rem .8rem; } .member h3 { font-size: 1.1rem; } }

/* Add to Calendar menu on event cards */
.addcal { flex-basis: 100%; }
.addcal summary { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem 1.05rem; border: 2px solid var(--blue); border-radius: 999px; font: 700 .95rem var(--body); color: var(--blue); background: var(--white); cursor: pointer; list-style: none; }
.addcal summary::-webkit-details-marker { display: none; }
.addcal summary::after { content: '\25BE'; }
.addcal[open] summary { background: var(--blue); color: #fff; }
.addcal[open] summary::after { content: '\25B4'; }
.addcal summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.addcal-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin-top: .6rem; padding: .6rem; background: var(--mist); border-radius: var(--r); }
.addcal-menu a, .event .acts .addcal-menu a { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: .45rem .75rem; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font: 700 1rem var(--body); color: var(--ink); text-decoration: none; }
.addcal-menu a:hover, .event .acts .addcal-menu a:hover { border-color: var(--blue); color: var(--blue); }
.addcal-menu small { font-weight: 400; font-size: .85rem; color: var(--muted); }

/* Mobile polish: header stripe, hero headline, swipeable hero photos, shorter menu */
.site-header .ribbon { height: 9px; border: 0; background: linear-gradient(180deg, var(--red) 0 33.4%, #fff 33.4% 66.6%, var(--blue) 66.6% 100%); }
.hero h1 .nw { white-space: nowrap; }
@media (max-width: 899px) {
  .hero h1 { max-width: none; font-size: min(2.65rem, 10.6vw); }
  .hero-media { touch-action: pan-y; }
  .hero-media .hero-dots { position: absolute; left: .35rem; bottom: .2rem; padding: 0; gap: 0; justify-content: flex-start; }
}
.drawer-panel a.dl { padding: .6rem .25rem; font-size: 1.4rem; }
.drawer-panel a[href^="tel:"] { white-space: nowrap; font-size: clamp(.82rem, 3.9vw, 1rem); padding-inline: .75rem; justify-content: center; }

/* Add to Calendar: red button; bottom sheet on phones, floating menu on desktop */
.addcal { position: relative; }
.addcal summary, .addcal[open] summary { background: var(--red); border-color: var(--red); color: #fff; }
.addcal summary:hover { background: #a51f2c; border-color: #a51f2c; }
.addcal-backdrop, .addcal-head, .addcal-cancel { display: none; }
@keyframes addcalUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 899px) {
  .addcal[open] .addcal-backdrop { display: block; position: fixed; inset: 0; z-index: 1000; background: rgba(10, 20, 40, .5); }
  .addcal-menu { position: fixed; left: .5rem; right: .5rem; bottom: calc(.5rem + env(safe-area-inset-bottom)); z-index: 1001; display: flex; flex-direction: column; gap: 0; margin: 0; padding: .35rem 0 .5rem; background: #fff; border-radius: 16px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); max-height: 82vh; overflow-y: auto; animation: addcalUp .22s ease-out; }
  .addcal-head { display: block; padding: .7rem 1.1rem .8rem; text-align: center; border-bottom: 1px solid var(--line); }
  .addcal-head b { display: block; font-size: 1.05rem; color: var(--ink); }
  .addcal-head span { display: block; font-size: .9rem; color: var(--muted); }
  .addcal-menu a, .event .acts .addcal-menu a { flex-direction: row; align-items: center; justify-content: space-between; gap: .75rem; min-height: 54px; padding: .75rem 1.15rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; font-size: 1.05rem; color: var(--blue); }
  .addcal-cancel { display: block; margin: .6rem .75rem 0; min-height: 50px; border: 0; border-radius: 12px; background: var(--mist); font: 700 1.05rem var(--body); color: var(--ink); cursor: pointer; }
}
@media (min-width: 900px) {
  .addcal-menu { position: absolute; left: 0; top: calc(100% + .4rem); z-index: 60; width: min(520px, 80vw); background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
}

/* Phone sheet is moved to .addcal-host at the top level of the page while open */
.addcal-host .addcal-backdrop { display: block; position: fixed; inset: 0; z-index: 2000; background: rgba(10, 20, 40, .5); }
.addcal-host .addcal-menu { z-index: 2001; }

/* Event location links to directions */
.meta .loc { color: inherit; text-decoration: underline; text-decoration-color: rgba(191, 36, 51, .45); text-underline-offset: 3px; }
.meta .loc:hover { color: var(--red); }
.meta .loc svg { display: inline-block; vertical-align: -2px; margin-right: .2rem; color: var(--red); }

/* Crisis line button in the menu: always solid blue */
.drawer-panel a[href^="tel:"], .drawer-panel a[href^="tel:"]:hover, .drawer-panel a[href^="tel:"]:active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Next on the Calendar: swipe through upcoming events on phones (next card peeks in), arrow on desktop */
.next-card { position: relative; overflow: hidden; }
.next-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-right: -1.25rem; padding-right: 1.25rem; }
.next-track::-webkit-scrollbar { display: none; }
.next-slide { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
.next-slide:only-child { flex-basis: 100%; }
.next-nav { display: flex; align-items: center; justify-content: space-between; margin-top: .65rem; }
.next-count { font-size: .85rem; font-weight: 700; color: var(--muted); }
.next-arrow { display: none; }
@media (min-width: 900px) {
  .next-card:has(.next-arrow) { padding-right: 3.75rem; }
  .next-track { gap: 0; margin-right: 0; padding-right: 0; }
  .next-slide { flex-basis: 100%; }
  .next-arrow { display: grid; place-items: center; position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--blue); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); transition: background .15s, color .15s; }
  .next-arrow:hover, .next-arrow:focus-visible { background: var(--blue); color: #fff; }
  .next-arrow.is-back svg { transform: scaleX(-1); }
}
/* On the homepage the venue sits on its own line and never wraps */
[data-next] .loc-sep, [data-upcoming] .loc-sep { display: none; }
[data-next] .meta .loc, [data-upcoming] .meta .loc { display: table; margin-top: .15rem; overflow-wrap: anywhere; }
.next-slide .event > div, [data-next] .event > div { min-width: 0; }

/* Next on the Calendar, round 2: no counter; on phones every event is its own card with the next one peeking in */
.next-count { display: none; }
.next-nav { margin: 0; }
@media (max-width: 899px) {
  .next-nav { display: none; }
  .next-card { overflow: visible; background: none; box-shadow: none; border-top: 0; padding: 0; }
  .next-card h2 { color: #c9d4e6; margin-bottom: .7rem; }
  .next-track { gap: .75rem; margin-right: calc(50% - 50vw); padding-right: calc(50vw - 50%); padding-bottom: .5rem; }
  .next-slide { flex-basis: calc(100vw - 3.75rem); background: var(--white); color: var(--ink); border-top: 6px solid var(--red); border-radius: var(--r); padding: 1.1rem 1.1rem 1.2rem; box-shadow: 0 18px 36px -20px rgba(0, 0, 0, .7); }
  .next-slide:only-child { flex-basis: 100%; }
}
@media (max-width: 389px) { .next-slide { padding: 1rem .85rem 1.1rem; } .next-slide .meta .loc { font-size: .88rem; } .next-slide .dblock { width: 48px; } }
@media (max-width: 350px) { [data-next] .meta .loc { white-space: normal; } }
/* Homepage event cards: same height, Add to Calendar lined up at the bottom */
.next-slide { display: flex; }
.next-slide > .event { flex: 1; align-content: stretch; align-items: stretch; grid-template-rows: 1fr; }
.next-slide > .event > div:last-child { display: flex; flex-direction: column; }
.next-slide > .event > .dblock { align-self: start; }
.next-slide .acts { margin-top: auto; padding-top: .6rem; }
/* Add to Calendar on desktop: even 3 x 2 grid, no subtext, Print centered below as a lighter link */
@media (min-width: 900px) {
  .addcal-menu { grid-template-columns: repeat(3, 1fr); }
  .addcal-menu small { display: none; }
  .addcal-menu a[data-print], .event .acts .addcal-menu a[data-print] { grid-column: 1 / -1; justify-self: center; min-height: 40px; padding: .35rem 1rem; border: 0; background: none; font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
  .addcal-menu a[data-print]:hover { color: var(--red); }
}

/* What We Do cards: inline text link with a small arrow */
.do-link { display: inline-flex; align-items: center; gap: .35rem; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.do-link::after { content: '\2192'; display: inline-block; transition: transform .15s; }
.do:hover .do-link, .do:focus-visible .do-link { text-decoration-color: currentColor; }
.do:hover .do-link::after, .do:focus-visible .do-link::after { transform: translateX(3px); }

/* Learn */
.learn-cards { display: grid; gap: 1rem; }
@media (min-width: 760px) { .learn-cards { grid-template-columns: repeat(3, 1fr); } }
.learn-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--blue); text-decoration: none; color: var(--ink); }
.learn-card:hover { border-color: var(--blue); color: var(--ink); }
.learn-card h3 { margin: 0; }
.learn-card p { margin: 0; color: var(--muted); font-size: .98rem; }
.branch-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: 1.5rem; scroll-snap-type: x proximity; }
.branch-tabs button { flex: none; scroll-snap-align: start; min-height: 46px; padding: .4rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--white); font: 700 .95rem var(--body); color: var(--blue); cursor: pointer; }
.branch-tabs button[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.branch { display: grid; gap: 1.5rem; }
.branch[hidden] { display: none; }
@media (min-width: 900px) { .branch { grid-template-columns: 300px 1fr; gap: 3rem; align-items: start; } }
.branch-card { background: var(--blue); color: #fff; border-radius: var(--r); overflow: hidden; }
.branch-card .top { padding: 1.5rem 1.4rem 1.25rem; }
.branch-card .mono { font: 800 4.5rem/1 var(--display); color: rgba(255,255,255,.95); }
.branch-card h2 { color: #fff; font-size: 2.2rem; margin: .4rem 0 0; }
.branch-card dl { margin: 0; padding: 1rem 1.4rem 1.4rem; display: grid; gap: .7rem; background: var(--blue-2); }
.branch-card dt { font-size: .82rem; color: #b9c6dc; font-weight: 600; }
.branch-card dd { margin: 0; font-weight: 700; }
.branch-body h3 { margin-top: 1.25rem; }
.values { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 0 0 1rem; }
.values li { background: var(--mist); color: var(--blue); font-weight: 700; padding: .35rem .8rem; border-radius: 999px; font-size: .93rem; }
.three-days { display: grid; gap: 1rem; }
@media (min-width: 760px) { .three-days { grid-template-columns: repeat(3, 1fr); } }
.day-card { border-radius: var(--r); padding: 1.4rem; background: var(--white); border: 1px solid var(--line); }
.day-card .when { font-weight: 700; color: var(--red); font-size: .95rem; }
.day-card h3 { margin: .2rem 0 .5rem; }
.day-card p { margin: 0; font-size: .98rem; }
.obs-month { font-family: var(--display); font-size: 1.9rem; color: var(--blue); margin: 2rem 0 .25rem; padding-bottom: .25rem; border-bottom: 3px solid var(--blue); }
.obs { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.obs .d { font: 800 1.6rem/1 var(--display); color: var(--blue); }
.obs .d small { display: block; font: 600 .78rem var(--body); color: var(--muted); margin-top: .2rem; }
.obs b { display: block; color: var(--ink); }
.obs p { margin: .2rem 0 0; font-size: .95rem; color: var(--muted); }

@media (min-width: 1200px) and (max-width: 1399px) { .brand small { display: none; } .hdr-cta svg { display: none; } }

/* Hero rotation */
.hero-cap { position: absolute; right: .75rem; bottom: .6rem; z-index: 2; font-size: .78rem; color: #dbe4f2; background: rgba(14,29,56,.55); padding: .15rem .55rem; border-radius: 999px; }
.hero-dots { position: relative; z-index: 2; display: flex; justify-content: center; gap: .5rem; padding: 0 0 1.25rem; }
.hero-dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .2s, transform .2s; }
.hero-dots button[aria-current="true"]::before { background: #fff; transform: scale(1.25); }
@media (min-width: 900px) {
  .hero-cap { top: 1rem; bottom: auto; right: 1.25rem; }
  .hero-dots { position: absolute; left: 0; right: 0; bottom: .75rem; padding: 0; }
  .hero-inner { padding-bottom: 4rem; }
}

/* What we do */
.dos { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .dos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .dos { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.do { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.do:hover { border-color: var(--blue); color: var(--ink); box-shadow: 0 10px 24px -16px rgba(20,40,75,.45); }
.do img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.do .body { padding: 1.1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; border-top: 4px solid var(--red); }
.do h3 { margin: 0; font-size: 1.6rem; }
.do p { margin: 0; color: var(--muted); font-size: .98rem; }
.do-link { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--blue-2); }
.do:hover .do-link { color: var(--red); }

/* Section CTAs */
.sec-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Veterans of the Year band */
.voty-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.voty-head p { margin: 0; color: #cfd9ea; }
.banners.mini { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 900px) { .banners.mini { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.banners.mini .banner-photo.no-photo { aspect-ratio: 4 / 5; }
.banners.mini .banner-text { padding-top: .75rem; }

/* Email card letterhead (no photo in the email) */
.upd-letter { aspect-ratio: 16 / 9; background: var(--blue); color: #fff; display: grid; place-content: center; justify-items: center; gap: .4rem; text-align: center; position: relative; }
.upd-letter::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--blue) 0 34%, var(--white) 34% 37%, var(--red) 37% 63%, var(--white) 63% 66%, var(--blue) 66%); border-top: 2px solid var(--brass); }
.upd-letter img { width: 54px; height: 54px; aspect-ratio: 1; }
.upd-letter b { font: 800 1.35rem/1 var(--display); letter-spacing: .01em; }
.upd-letter span { font-size: .85rem; color: #c9d4e6; }
.upd img.photo { object-position: 50% 30%; }
.upd .upd-letter img { width: 54px; height: 54px; aspect-ratio: 1; background: none; object-fit: contain; }
.banners.mini .banner::before { left: -4px; right: -4px; }

/* Coming Up: month calendar beside the list (desktop only) */
.mcal { display: none; }
@media (min-width: 1000px) {
  .up-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: start; }
  .mcal { display: block; margin-top: .4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem .85rem .85rem; box-shadow: 0 1px 2px rgba(20, 40, 75, .05); }
}
.mcal-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: .2rem; }
.mcal-head h3 { margin: 0; text-align: center; font: 800 1.2rem/1 var(--display); color: var(--blue); letter-spacing: .01em; }
.mcal-head button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--blue); display: grid; place-items: center; cursor: pointer; }
.mcal-head button:hover:not(:disabled) { background: var(--mist); }
.mcal-head button:disabled { color: var(--line); cursor: default; }
.mcal-dow, .mcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.mcal-dow span { font-size: .72rem; font-weight: 700; color: var(--muted); padding: .1rem 0 .2rem; }
.mcal-day { position: relative; height: 33px; display: grid; place-items: center; font-size: .9rem; color: var(--ink); border-radius: 10px; font-variant-numeric: tabular-nums; }
.mcal-day.past { color: #a3acba; }
.mcal-day.today { box-shadow: inset 0 0 0 1.5px var(--brass); font-weight: 700; }
button.mcal-day { border: 0; background: var(--mist); font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; margin: 1.5px; height: 30px; border-radius: 8px; }
button.mcal-day:hover { background: #dfe6f0; }
button.mcal-day.sel { background: var(--blue); color: #fff; }
button.mcal-day.past { background: none; color: #a3acba; font-weight: 600; }
.mcal-dots { position: absolute; bottom: 2px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.mcal-dots i, .mcal-legend i, .mcal-ev i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--blue)); }
.mcal-dots i.c-meeting, .mcal-legend i.c-meeting, .mcal-ev i.c-meeting { background: var(--c-meeting); }
.mcal-dots i.c-ceremony, .mcal-legend i.c-ceremony, .mcal-ev i.c-ceremony { background: var(--c-ceremony); }
.mcal-dots i.c-community, .mcal-legend i.c-community, .mcal-ev i.c-community { background: var(--c-community); }
.mcal-dots i.c-volunteer, .mcal-legend i.c-volunteer, .mcal-ev i.c-volunteer { background: var(--c-volunteer); }
.mcal-dots i.c-holiday, .mcal-legend i.c-holiday, .mcal-ev i.c-holiday { background: var(--c-holiday); }
button.mcal-day.sel .mcal-dots i { box-shadow: 0 0 0 1.5px #fff; }
.mcal-legend { display: flex; flex-wrap: wrap; gap: .25rem .9rem; justify-content: center; margin: .45rem 0 0; font-size: .8rem; color: var(--muted); }
.mcal-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.mcal-detail { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); min-height: 3.6rem; }
.mcal-when { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.mcal-ev { display: flex; gap: .6rem; align-items: flex-start; text-decoration: none; color: var(--ink); padding: .15rem 0; }
.mcal-ev i { width: 9px; height: 9px; margin-top: .45rem; flex: none; }
.mcal-ev b { display: block; color: var(--blue); font-size: .98rem; line-height: 1.3; }
.mcal-ev small { display: block; color: var(--muted); font-size: .85rem; margin-top: .1rem; }
.mcal-ev:hover b { text-decoration: underline; }
.mcal-none { margin: 0; color: var(--muted); font-size: .92rem; }

/* Comms: email-style graphic on every card */
.upd-mail { aspect-ratio: 16 / 9; background: var(--blue); position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 1.15rem 1.15rem 0; }
.upd-mail::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--blue) 0 34%, var(--white) 34% 37%, var(--red) 37% 63%, var(--white) 63% 66%, var(--blue) 66%); border-top: 2px solid var(--brass); z-index: 1; }
.mail-sheet { width: 100%; height: 100%; background: var(--white); border-radius: 8px 8px 0 0; padding: .8rem .9rem 0; box-shadow: 0 -2px 14px rgba(0, 0, 0, .18); display: flex; flex-direction: column; gap: .55rem; transition: transform .2s ease; }
.upd:hover .mail-sheet { transform: translateY(-3px); }
.mail-from { display: flex; align-items: center; gap: .55rem; padding-bottom: .55rem; border-bottom: 1px solid #e6ebf2; }
.upd .mail-from img { width: 30px; height: 30px; aspect-ratio: 1; flex: none; background: none; object-fit: contain; }
.mail-from .who { min-width: 0; flex: 1; line-height: 1.15; }
.mail-from b { display: block; font-size: .82rem; color: var(--ink); }
.mail-from .who span { display: block; font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-from .when { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.upd .mail-subj { margin: 0; font: 800 1.15rem/1.15 var(--display); color: var(--blue); letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-lines { display: grid; gap: .4rem; }
.mail-lines i { display: block; height: 6px; border-radius: 3px; background: #e8edf4; }
.mail-lines i:nth-child(2) { width: 88%; }
.mail-lines i:nth-child(3) { width: 64%; }


/* Photos & Posts: Follow button in the feed header; taller photo mosaic beside the feed on desktop */
.fb-head > div { flex: 1; min-width: 0; }
.fb-follow { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: #1877f2; color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; flex: none; }
.fb-follow:hover { background: #0f63d1; color: #fff; }
.fb-follow svg { fill: currentColor; }
.media-split { align-items: start; }
@media (min-width: 1000px) {
  .media-split { align-items: stretch; }
  .media-split > div:first-child { display: flex; flex-direction: column; }
  .strip.media-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; overflow: visible; padding-bottom: 0; min-height: 440px; }
  .media-grid a { display: block; min-height: 0; position: relative; overflow: hidden; border-radius: var(--r-sm); }
  .media-grid a:first-child { grid-column: 1 / -1; }
  .media-grid img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; transition: transform .3s ease; }
  .media-grid a:hover img { transform: scale(1.03); }
}


/* Veterans of the Year on the homepage: sideways swipe on phones and tablets (the next card peeks in) */
@media (max-width: 899px) {
  .banners.mini { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 6px 10px; margin: 0 -6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .banners.mini::-webkit-scrollbar { display: none; }
  .banners.mini > .banner { flex: 0 0 64%; scroll-snap-align: start; scroll-margin-left: 6px; }
}
@media (min-width: 600px) and (max-width: 899px) { .banners.mini > .banner { flex-basis: 40%; } }

/* Updates: latest cards show preview text; archive search snippets */
.upd .body { flex: 1; display: flex; flex-direction: column; }
.upd .body p { margin: .35rem 0 .6rem; color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.upd-more { margin-top: auto; }
.upd-more { font-weight: 700; color: var(--red); font-size: .95rem; }
.upd-hint { margin: .2rem 0 1rem; font-size: .93rem; }
.archive-row mark { background: #fbe7a6; color: inherit; border-radius: 2px; padding: 0 .1em; }
.archive-row p.snip { font-style: italic; }
/* Get Help: address with a tap-to-load map */
.place { display: flex; gap: .6rem; align-items: flex-start; margin: .2rem 0 .7rem; }
.place svg { width: 26px; height: 26px; color: var(--red); flex: none; margin-top: .1rem; }
.place b { display: inline; }
.map-btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 150px; margin-top: .6rem; border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--white) repeating-linear-gradient(45deg, transparent 0 14px, rgba(20,40,75,.035) 14px 28px); color: var(--blue); font: 700 1rem var(--body); cursor: pointer; }
.map-btn svg { width: 26px; height: 26px; color: var(--red); }
.map-btn:hover { border-color: var(--blue); }
.map-frame { display: block; width: 100%; height: 260px; border: 0; border-radius: var(--r-sm); margin-top: .6rem; }


/* Home › month calendar: the selected-day panel sits on a waving flag (desktop only, like the calendar itself) */
.mcal-detail { position: relative; isolation: isolate; overflow: hidden; border-top: 0; border-radius: 10px; padding: .6rem .8rem .65rem; box-shadow: inset 0 0 0 1px rgba(20,40,75,.12); }
.mcal-detail::before { content: ''; position: absolute; inset: -10% -8%; z-index: -2; background: url(/img/flag-wave.svg) left center / cover no-repeat; transform-origin: left center; animation: flag-sway 8s ease-in-out infinite alternate; }
.mcal-detail::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.82) 55%, rgba(255,255,255,.7) 100%); }
@keyframes flag-sway { from { transform: skewY(-1deg); } to { transform: skewY(1deg) scaleX(1.03); } }
@media (prefers-reduced-motion: reduce) { .mcal-detail::before { animation: none; } [data-cal-filters].legend.nudge { animation: none; } }

.archive-more { text-align: center; margin-top: 1.25rem; }

/* Updates › Facebook band: centered, dress blue, the site's own type */
.fb-band { text-align: center; position: relative; }
.fb-band-in { display: grid; justify-items: center; gap: .6rem; max-width: 640px; }
.fb-band-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px rgba(176,138,62,.7); }
.fb-band-ic svg { width: 26px; height: 26px; color: #fff; fill: currentColor; }
.fb-band h2 { margin: .3rem 0 0; }
.fb-band p { margin: 0 0 .6rem; font-size: 1.1rem; color: #d5deeb; }
.btn-white { background: #fff; color: var(--blue); border-color: #fff; }
.btn-white:hover { background: var(--mist); color: var(--blue); }
.btn-white svg { fill: currentColor; }

/* Get Help: crisis card sits right under the heading so it's above the fold on phones */
.crisis-top { margin: .9rem 0 1.1rem; }
.help-lede { margin-top: 0; }
@media (max-width: 640px) {
  .page-head:has(.crisis-top) { padding-top: 1.25rem; padding-bottom: 1.5rem; }
  .crisis-top { padding: 1rem 1rem 1.05rem; gap: .7rem; }
  .crisis-top h2 { font-size: 1.45rem; margin-bottom: .2rem; }
  .crisis-top p { font-size: 1rem; margin: 0; }
  .crisis-top .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; width: 100%; }
  .crisis-top .btn { justify-content: center; padding-left: .5rem; padding-right: .5rem; }
}

/* Calendar filters on phones: one row that scrolls sideways instead of wrapping */
@media (max-width: 759px) {
  [data-cal-filters].legend { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 1.25rem; scrollbar-width: none; margin: 0 -1.25rem; padding: .15rem 1.25rem .35rem; -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), rgba(0,0,0,.35)); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), rgba(0,0,0,.35)); }
  [data-cal-filters].legend::-webkit-scrollbar { display: none; }
  [data-cal-filters] .lg { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; min-height: 44px; padding: .3rem .62rem .3rem .52rem; gap: .35rem; font-size: .96rem; }
  [data-cal-filters].legend { gap: .4rem; }
  [data-cal-filters].legend.nudge { animation: pill-nudge 1.1s ease-in-out .6s 1; }
  @keyframes pill-nudge { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(-46px); } 70% { transform: translateX(0); } }
}

/* Home: section buttons centered on phones */
@media (max-width: 759px) { .sec-cta { justify-content: center; text-align: center; } }

.banners.mini .banner-award { text-align: center; font-size: .88rem; color: #c9d4e6; margin-top: .15rem; }

/* Calendar: Show Past Events toggle (centered on phones) */
.past-events { margin-top: 2rem; }
.past-events > summary { list-style: none; cursor: pointer; }
.past-events > summary::-webkit-details-marker { display: none; }
.past-events .pe-hide, .past-events[open] .pe-show { display: none; }
.past-events[open] .pe-hide { display: inline; }
.past-events > summary { display: flex; width: fit-content; margin-inline: auto; }
.cal-subscribe { justify-content: center; text-align: center; }
.nw { white-space: nowrap; }

/* Honor Wall: sideways scrollers with a peeking next card */
.hs-wrap { position: relative; }
.banners.hscroll { display: flex; align-items: flex-start; gap: 1.75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 12px 16px; margin: 0 -12px; scroll-padding-inline: 12px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.banners.hscroll::-webkit-scrollbar { display: none; }
.banners.hscroll > .banner { flex: 0 0 80%; min-width: 0; scroll-snap-align: start; }
@media (min-width: 640px) { .banners.hscroll > .banner { flex-basis: 44%; } }
@media (min-width: 1040px) { .banners.hscroll > .banner { flex-basis: calc((100% - 24px - 3 * 1.75rem) / 3.3); } }
.banners.hscroll .banner-photo.no-photo { aspect-ratio: 4 / 5; }
.banners.hscroll .banner-photo.no-photo .seal img { width: 50%; }
.banners.hscroll .banner-award { text-align: center; color: #e8c983; font-weight: 700; font-size: .95rem; margin: .1rem 0 .15rem; }
.hs-wrap.more-r .hscroll { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 70px), rgba(0,0,0,.35)); mask-image: linear-gradient(to right, #000 calc(100% - 70px), rgba(0,0,0,.35)); }
.hs-wrap.more-r.more-l .hscroll { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.35), #000 70px, #000 calc(100% - 70px), rgba(0,0,0,.35)); mask-image: linear-gradient(to right, rgba(0,0,0,.35), #000 70px, #000 calc(100% - 70px), rgba(0,0,0,.35)); }
.hs-arrow { position: absolute; top: 34%; z-index: 2; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(10,20,40,.3); transition: opacity .2s, transform .15s; }
.hs-arrow:hover { transform: scale(1.06); background: var(--red-dark); }
.hs-arrow:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.hs-arrow.prev { left: -18px; } .hs-arrow.next { right: -18px; }
.hs-arrow[hidden] { display: grid; opacity: 0; pointer-events: none; }
@media (max-width: 759px) { .hs-arrow { display: none !important; } }

/* Footer link columns: no underlines (they read as links already); underline on hover/focus */
.site-footer .foot-grid ul a { text-decoration: none; }
.site-footer .foot-grid ul a:hover, .site-footer .foot-grid ul a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* About › members: text-only cards while photos are switched off (SHOW_MEMBER_PHOTOS in site.js) */
.member.no-photo .member-body { padding: 1rem 1.1rem 1.1rem; }

/* Get Help crisis card: keep "Call 988" / "Text 838255" on one line on narrow phones */
.crisis-top .btn { white-space: nowrap; }
@media (max-width: 400px) {
  .crisis-top .btn-row { gap: .4rem; }
  .crisis-top .btn { gap: .35rem; padding-left: .35rem; padding-right: .35rem; font-size: 1rem; }
  .crisis-top .btn svg { width: 18px; height: 18px; flex: none; }
}
@media (max-width: 340px) { .crisis-top .btn { font-size: .92rem; } }

/* About › members: associate members get dress blue instead of red (Chair brass, Members red) */
.member.is-associate .member-body { border-top-color: var(--blue); }
.member.is-associate .member-title { color: var(--blue-2); }
.member.is-associate { background: #f6f8fb; }

/* Honor Wall cards: on phones the bio and announcement link fold behind Read More */
.banner-toggle { display: none; }
@media (max-width: 759px) {
  .banner-more { display: none; }
  .banner.open .banner-more { display: block; }
  .banner-toggle { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; margin: .7rem auto 0; padding: .45rem 1.1rem; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; background: transparent; color: #fff; font: 700 .95rem var(--body); cursor: pointer; }
  .banner-text:has(.banner-toggle) { display: flex; flex-direction: column; align-items: center; }
  .banner-text:has(.banner-toggle) > * { align-self: stretch; }
  .banner-text > .banner-toggle { align-self: center; }
  .banner-toggle .bt-close, .banner.open .banner-toggle .bt-open { display: none; }
  .banner.open .banner-toggle .bt-close { display: inline; }
  .banner.open .banner-toggle svg { transform: rotate(180deg); }
  .banner-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
}

/* Learn › Branches: the branch seal sits at the top of each card */
.branch-card .branch-seal { display: block; width: 112px; height: 112px; object-fit: contain; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 6px 16px rgba(0,0,0,.35); background: #fff; }
@media (max-width: 899px) { .branch-card .top { display: flex; align-items: center; gap: 1rem; } .branch-card .branch-seal { width: 84px; height: 84px; flex: none; } .branch-card .top h2 { margin: 0; font-size: 1.9rem; } }

/* Breadcrumbs (built by scripts/build.mjs on pages one level down) */
.crumbs { margin: 0 0 .75rem; font-size: .95rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .45rem; }
.crumbs li { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.crumbs li + li::before { content: '›'; opacity: .6; font-weight: 700; }
.crumbs a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.crumbs [aria-current] { color: var(--muted); }
@media (max-width: 640px) { .crumbs li:last-child { flex: 1 1 0; } .crumbs [aria-current] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } }

/* Learn › Bedford's Own History: memorials by hamlet */
.memorials { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.memorials li { background: var(--white); border-left: 4px solid var(--red); border-radius: 8px; padding: .7rem .9rem; line-height: 1.5; }
.memorials b { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--blue); letter-spacing: .01em; }

/* Mobile menu: Veterans Crisis Line call + text buttons, one line each */
.drawer-crisis { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.drawer-crisis p { margin: 0 0 .1rem; font-weight: 700; font-size: .95rem; color: var(--muted); }
.drawer-panel .drawer-crisis a.btn { display: flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; font-size: 1.05rem; padding-inline: .9rem; min-height: 48px; }

/* Email card header: room for "to Bedford Vets" on the narrowest phones */
@media (max-width: 359px) { .mail-from { gap: .4rem; } .mail-from img { width: 24px; height: 24px; } .mail-from .when { font-size: .68rem; } }

/* Mobile menu: tightened so the whole menu fits a ~640px-tall phone screen without scrolling */
.drawer-panel { padding: .5rem 1.1rem 1rem; }
.drawer-close { min-height: 44px; margin-bottom: .1rem; }
.drawer-panel a.dl { padding: .45rem .25rem; min-height: 46px; display: flex; align-items: center; font-size: 1.35rem; line-height: 1.1; }
.drawer-panel > a.btn-red { margin-top: .85rem !important; min-height: 46px; }
.drawer-crisis { margin-top: .75rem; padding-top: .65rem; gap: .4rem; }
.drawer-crisis p { font-size: .9rem; }
.drawer-panel .drawer-crisis a.btn { min-height: 46px; }
@media (max-height: 600px) { .drawer-panel a.dl { min-height: 44px; padding: .35rem .25rem; font-size: 1.25rem; } }

/* About: committee seal in place of a photo */
.photo-frame.logo-frame { background: radial-gradient(circle at 50% 45%, #fff 0, var(--mist) 70%); aspect-ratio: 4/3; display: grid; place-items: center; }
.photo-frame.logo-frame img { width: min(62%, 340px); height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(20,40,75,.18)); }

/* Bedford's Veterans gallery (Honor Wall): search, branch pills, A–Z list, viewer */
.gal-intro { margin-bottom: 1.4rem; }
.gal-tools { display: flex; gap: .75rem; align-items: stretch; flex-wrap: wrap; }
.gal-search { flex: 1 1 320px; display: flex; align-items: center; gap: .6rem; background: #fff; color: var(--muted); border-radius: 999px; padding: 0 1.1rem; min-height: 56px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.gal-search:focus-within { outline: 3px solid var(--brass); outline-offset: 2px; }
.gal-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--ink); padding: .8rem 0; }
.gal-search input::placeholder { color: #6b7688; }
.gal-play { background: var(--red); color: #fff; border: 0; border-radius: 999px; min-height: 56px; padding: 0 1.5rem; font-weight: 700; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; white-space: nowrap; }
.gal-play:hover { background: var(--red-dark); }
.gal-play:disabled { opacity: .5; cursor: default; }
.gal-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.gal-count { color: #c9d4e6; font-size: .98rem; margin: .5rem 0 .6rem; min-height: 1.5em; }
.gal-group { scroll-margin-top: calc(var(--hdr, 0px) + 84px); }
.gal-letter { font: 800 2rem/1 var(--display); color: var(--brass) !important; margin: 1.2rem 0 .7rem; border-bottom: 2px solid rgba(255,255,255,.14); padding-bottom: .35rem; }
.gal-grid { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .gal-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gal-card { display: flex; flex-direction: column; text-align: left; background: #fff; color: var(--ink); border: 0; padding: 0; border-radius: var(--r); overflow: hidden; cursor: pointer; font: inherit; box-shadow: 0 3px 12px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s; scroll-margin-top: calc(var(--hdr, 0px) + 92px); }
.gal-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.32); }
.gal-card:focus-visible { outline: 4px solid var(--brass); outline-offset: 2px; }
.gal-thumb { position: relative; display: block; aspect-ratio: 352/432; background: var(--blue-ink); }
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-n { position: absolute; top: .5rem; right: .5rem; display: inline-flex; align-items: center; gap: .25rem; background: rgba(14,29,56,.88); color: #fff; font-size: .85rem; font-weight: 700; padding: .2rem .5rem; border-radius: 999px; }
.gal-meta { display: block; padding: .65rem .75rem .8rem; border-top: 4px solid var(--red); }
.gal-meta b { display: block; font-size: 1.05rem; line-height: 1.25; }
.gal-sub { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; color: var(--muted); font-size: .92rem; line-height: 1.3; }
.gal-sub img { flex: 0 0 auto; border-radius: 50%; }
.gal-none { background: rgba(255,255,255,.08); border-radius: var(--r); padding: 1.5rem; text-align: center; }
.gal-none a, .gal-add a { color: #fff; font-weight: 700; }
.gal-add { margin-top: 1.6rem; text-align: center; color: #c9d4e6; }
.gal .placeholder { display: grid; place-items: center; gap: .6rem; text-align: center; color: #c9d4e6; padding: 3rem 1rem; }
.gal .placeholder img { width: 72px; }

/* viewer */
.gv { position: fixed; inset: 0; z-index: 1000; background: #070f1f; color: #fff; display: grid; grid-template-rows: 1fr auto; }
.gv[hidden] { display: none; }
.gv-stage { position: relative; min-height: 0; overflow: hidden; }
.gv-img { position: absolute; top: 4rem; left: 5.5rem; right: 5.5rem; bottom: 1rem; width: calc(100% - 11rem); height: calc(100% - 5rem); object-fit: contain; opacity: 0; transition: opacity .35s; }
.gv-img.in { opacity: 1; }
.gv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.45); }
.gv-nav:hover { background: var(--red-dark); }
.gv-prev { left: 1rem; } .gv-next { right: 1rem; }
.gv.single .gv-nav, .gv.single .gv-count { display: none; }
.gv-close { position: absolute; top: .6rem; right: .6rem; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.gv-close:hover { background: rgba(255,255,255,.26); }
.gv button:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.gv-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; padding: .9rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); background: var(--blue); border-top: 4px solid var(--red); }
.gv-cap { min-width: 0; }
.gv-name { display: block; font: 800 1.7rem/1.1 var(--display); }
.gv-sub { color: #c9d4e6; font-size: 1rem; }
.gv-ctl { display: flex; align-items: center; gap: .6rem; }
.gv-count { color: #c9d4e6; font-size: .98rem; margin-right: .3rem; white-space: nowrap; }
.gv-btn { min-height: 48px; padding: 0 1.1rem; border-radius: 999px; border: 2px solid rgba(255,255,255,.4); background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: .98rem; display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; white-space: nowrap; }
.gv-btn:hover { border-color: #fff; }
.gv-pp .i-pause { display: none; }
.gv.playing .gv-pp .i-pause { display: inline; } .gv.playing .gv-pp .i-play { display: none; }
.gv-prog { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: rgba(255,255,255,.1); }
.gv-prog i { display: block; height: 100%; width: 0; background: var(--brass); }
.gv:not(.playing) .gv-prog { display: none; }
@media (max-width: 759px) {
  .gv-img { top: 4rem; left: 0; right: 0; bottom: 4.6rem; width: 100%; height: calc(100% - 8.6rem); }
  .gv-nav { top: auto; bottom: .75rem; transform: none; width: 52px; height: 52px; }
  .gv-prev { left: .75rem; } .gv-next { right: .75rem; }
  .gv-bar { padding: .75rem 1rem calc(.9rem + env(safe-area-inset-bottom)); }
  .gv-name { font-size: 1.45rem; }
  .gv-ctl { width: 100%; }
  .gv-count { margin-right: auto; }
}

/* Gallery filters: two dropdowns (branch, jump to letter), sticky under the site header */
.gal-filters { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .75rem; position: sticky; top: var(--hdr, 0px); z-index: 3; background: var(--blue); padding: .6rem 0; }
.gal-select { position: relative; display: block; }
.gal-select::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: 10px; height: 10px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.gal-select select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; font-size: 1.05rem; font-weight: 600; padding: 0 2.8rem 0 1.1rem; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.18); text-overflow: ellipsis; }
.gal-select select:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.gal-select select:disabled { opacity: .6; cursor: default; }
@media (min-width: 760px) { .gal-filters { grid-template-columns: minmax(0, 340px) minmax(0, 260px); } }
@media (max-width: 759px) { .gal-filters { gap: .6rem; } .gal-select select { font-size: 1rem; padding-left: .9rem; padding-right: 2.4rem; } .gal-select::after { right: .9rem; } }

/* Viewer on a phone turned sideways: the slide fills the screen, controls float over it */
@media (orientation: landscape) and (max-height: 560px) {
  .gv { display: block; }
  .gv-stage { position: absolute; inset: 0; }
  .gv-img { top: 0; left: env(safe-area-inset-left); right: env(safe-area-inset-right); bottom: 0; width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right)); height: 100%; }
  .gv-nav { top: 50%; bottom: auto; transform: translateY(-50%); width: 48px; height: 48px; opacity: .85; }
  .gv-prev { left: calc(.5rem + env(safe-area-inset-left)); } .gv-next { right: calc(.5rem + env(safe-area-inset-right)); }
  .gv-close { top: .5rem; right: calc(.5rem + env(safe-area-inset-right)); width: 46px; height: 46px; background: rgba(7,15,31,.6); }
  .gv-bar { position: absolute; left: 0; right: 0; bottom: 0; flex-wrap: nowrap; border-top: 0; background: linear-gradient(to top, rgba(7,15,31,.92), rgba(7,15,31,.55) 70%, transparent); padding: 1.6rem calc(1rem + env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) calc(1rem + env(safe-area-inset-left)); transition: opacity .25s; }
  .gv-name { font-size: 1.25rem; }
  .gv-sub { font-size: .9rem; }
  .gv-ctl { width: auto; }
  .gv-count { display: none; }
  .gv-btn { min-height: 44px; padding: 0 .85rem; font-size: .9rem; background: rgba(7,15,31,.5); }
  .gv.chrome-off .gv-bar, .gv.chrome-off .gv-nav, .gv.chrome-off .gv-close { opacity: 0; pointer-events: none; }
}

/* Honor Wall: Submit Your Veteran starts as one button; the form opens below it */
.submit-open { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.25rem; min-height: 56px; padding: 0 1.6rem; font-size: 1.1rem; }
.submit-open[hidden], #submit-form[hidden] { display: none; }
#submit-form:not([hidden]) { animation: submit-in .3s ease-out; }
@keyframes submit-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* Gallery search: smaller placeholder on phones so the hint fits */
@media (max-width: 759px) { .gal-search input::placeholder { font-size: .9rem; } }

/* Home › Coming Up (desktop): the month calendar fills its column, top to bottom, in a dress-blue framed card */
@media (min-width: 1000px) {
  .up-split { grid-template-columns: minmax(0, 1fr) minmax(360px, 34%); gap: 3.5rem; align-items: stretch; }
  .mcal { display: flex; flex-direction: column; margin-top: 0; padding: 0; overflow: hidden; border: 0; border-radius: 14px; box-shadow: 0 6px 24px rgba(20, 40, 75, .12), 0 1px 2px rgba(20, 40, 75, .08); }
  .mcal-head { grid-template-columns: 44px 1fr 44px; margin: 0; padding: .7rem .7rem .8rem; background: var(--blue); position: relative; }
  .mcal-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(180deg, var(--red) 0 33.4%, #fff 33.4% 66.6%, var(--red) 66.6% 100%); }
  .mcal-head h3 { color: #fff; font-size: 1.55rem; }
  .mcal-head button { width: 44px; height: 44px; color: #fff; }
  .mcal-head button:hover:not(:disabled) { background: rgba(255,255,255,.14); }
  .mcal-head button:disabled { color: rgba(255,255,255,.3); }
  .mcal-dow { padding: .9rem 1.1rem .2rem; }
  .mcal-dow span { font-size: .8rem; }
  .mcal-grid { padding: 0 1.1rem; row-gap: 2px; }
  .mcal-day { height: 44px; font-size: 1rem; }
  button.mcal-day { height: 40px; margin: 2px 3px; border-radius: 12px; font-size: 1.02rem; }
  .mcal-dots { bottom: 4px; }
  .mcal-legend { margin: .7rem 1.1rem 0; font-size: .85rem; }
  .mcal-detail { flex: 1 1 auto; margin: .9rem 1.1rem 1.1rem; padding: .85rem 1rem; min-height: 5.5rem; display: flex; flex-direction: column; justify-content: center; }
  .mcal-when { font-size: .85rem; }
  .mcal-ev b { font-size: 1.05rem; }
}
