/* Layout: one phone-width column (wider for the calendar) under a fixed icon bar and a scrolling
   category strip, following the AFN mockup: lilac fields, grey line icons, photo-led story cards. */
/* Fonts are served from this site (fonts/ folder), not from Google, so no visitor
   details go to a third party. If the files aren't there, a system font is used. */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: local("Source Sans 3"), url("fonts/SourceSans3-VariableFont_wght.ttf") format("truetype"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap;
  src: local("Source Sans 3 Italic"), url("fonts/SourceSans3-Italic-VariableFont_wght.ttf") format("truetype"); }
:root {
  --bg: #ffffff;
  --ink: #141414;
  --muted: #7a7a7a;
  --icon: #6f6f6f;
  --rule: #9b9b9b;
  --hair: #e6e6e6;
  --lilac: #d29cf7;
  --lilac-field: #e3c6fb;
  --lilac-ink: #ffffff;
  --brand-grey: #6b6b6b;
  --box: #cfcfcf;
  --orange-bg: #fcd6c0; --orange-ink: #e2600f;
  --green-bg: #c9e4da; --green-ink: #1c6b4f;
  --purple-bg: #ecd9fb; --purple-ink: #8a3fc7;
  --blue-bg: #d4e4fb; --blue-ink: #1f56a8;
  --danger: #c0352b;
  --ok: #1c6b4f;
  --font: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, sans-serif;
  --brand: "Arial Black", Impact, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151317; --ink: #f1eef3; --muted: #a39ea8; --icon: #b5b0ba; --rule: #5a5560; --hair: #2c2830;
    --lilac: #c98af2; --lilac-field: #3b2c48; --lilac-ink: #ffffff; --brand-grey: #b9b4be; --box: #4a4550;
    --orange-bg: #4a2a17; --orange-ink: #ffa36b; --green-bg: #173a2f; --green-ink: #7fd1ad;
    --purple-bg: #35234a; --purple-ink: #d4a5ff; --blue-bg: #1c2d4a; --blue-ink: #92b9ff; --danger: #ff7a6e; --ok: #7fd1ad;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #151317; --ink: #f1eef3; --muted: #a39ea8; --icon: #b5b0ba; --rule: #5a5560; --hair: #2c2830;
  --lilac: #c98af2; --lilac-field: #3b2c48; --lilac-ink: #ffffff; --brand-grey: #b9b4be; --box: #4a4550;
  --orange-bg: #4a2a17; --orange-ink: #ffa36b; --green-bg: #173a2f; --green-ink: #7fd1ad;
  --purple-bg: #35234a; --purple-ink: #d4a5ff; --blue-bg: #1c2d4a; --blue-ink: #92b9ff; --danger: #ff7a6e; --ok: #7fd1ad;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.45; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 2px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.bar { max-width: 860px; margin: 0 auto; padding-inline: 16px; padding-block: 12px 8px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.bar .left, .bar .right { display: flex; gap: 6px; align-items: center; }
.bar .right { justify-content: flex-end; }
.ib { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--icon); cursor: pointer; border-radius: 10px; padding: 0; position: relative; }
.ib:hover { background: var(--hair); }
.ib svg { width: 30px; height: 30px; }
.logo { display: block; border: 0; background: none; cursor: pointer; padding: 0; line-height: 0; min-width: 0; }
/* Sized by width with a fixed aspect ratio so no browser can stretch it. */
.logo img { display: block; width: 136px; max-width: 100%; height: auto; aspect-ratio: 429 / 168; object-fit: contain; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--lilac); color: #fff; font: 700 11px/18px var(--font); padding: 0 5px; }

.chips { max-width: 860px; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; padding-inline: 12px; padding-block: 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: none; color: var(--muted); font-size: 17px; padding: 5px 16px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--lilac); color: var(--lilac-ink); }

main { max-width: 640px; margin: 0 auto; padding-inline: 16px; padding-block: 12px 24px; }
main.wide { max-width: 860px; }

/* ---------- feed ---------- */
.card { display: grid; gap: 10px; padding-block: 0 18px; margin-bottom: 22px; border-bottom: 1.5px solid var(--rule); }
.card:last-child { border-bottom: 0; }
.photo { width: 100%; max-width: 100%; aspect-ratio: 1.93 / 1; object-fit: cover; border-radius: 9px; background: var(--hair); display: block; }
.card .open { border: 0; background: none; padding: 0; text-align: left; color: inherit; cursor: pointer; display: grid; gap: 10px; }
.card h2 { font-size: 1.55rem; font-weight: 400; line-height: 1.22; margin: 0; text-wrap: balance; }
.metaRow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.date { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 13px; padding: 1px 8px; border-radius: 6px; background: var(--purple-bg); color: var(--purple-ink); }
.more { position: relative; }
.more > .ib svg { width: 26px; height: 26px; }
.menu { position: absolute; right: 0; top: 40px; background: var(--bg); border: 1px solid var(--hair); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.14); display: grid; min-width: 180px; z-index: 5; overflow: hidden; }
.menu button { border: 0; background: none; text-align: left; padding: 12px 16px; font-size: 16px; color: var(--ink); cursor: pointer; }
.menu button:hover { background: var(--hair); }
.menu button.danger { color: var(--danger); }

.empty { text-align: center; color: var(--muted); padding: 48px 12px; display: grid; gap: 8px; justify-items: center; }
.empty strong { color: var(--ink); font-size: 1.3rem; font-weight: 600; }

/* ---------- article ---------- */
.article { display: grid; gap: 12px; }
.article h1 { font-size: 1.75rem; font-weight: 400; line-height: 1.2; margin: 4px 0 0; text-wrap: balance; }
.standfirst { font-weight: 700; margin: 6px 0 0; }
.prose p { margin: 0 0 1em; max-width: 65ch; overflow-wrap: anywhere; }
.meet { color: var(--muted); font-size: 16px; }
.meet b { color: var(--muted); font-weight: 700; }
.poster { width: 100%; max-width: 100%; border-radius: 9px; display: block; }

/* bottom bar */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--hair); padding-bottom: env(safe-area-inset-bottom, 0px); z-index: 10; }
.bottom .inner { max-width: 640px; margin: 0 auto; padding-inline: 12px; padding-block: 4px; display: flex; justify-content: space-between; }

/* ---------- forms ---------- */
.formTitle { font-size: 1.65rem; font-weight: 400; margin: 6px 0 18px; }
form.up { display: grid; gap: 22px; }
.field { display: grid; gap: 7px; }
.field > .lbl { font-size: 17px; }
.inputs { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.pill, .pillSel { background: var(--lilac-field); border: 0; border-radius: 9px; padding: 9px 14px; font: 18px var(--font); color: var(--ink); min-width: 0; }
.pill::placeholder { color: #fff; opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill::placeholder { color: var(--muted); } }
:root[data-theme="dark"] .pill::placeholder { color: var(--muted); }
.pillSel { appearance: none; -webkit-appearance: none; padding-right: 38px; min-width: 104px;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 13px) 55%; background-size: 7px 7px; background-repeat: no-repeat; }
.pillSel.short { min-width: 96px; }
.pill.half { width: min(330px, 100%); }
.pill.full { width: 100%; }
.pill.grey { background: var(--box); }
.pill.grey::placeholder { color: #fff; }
textarea.pill { min-height: 300px; resize: vertical; line-height: 1.45; }
textarea.pill.mid { min-height: 220px; }
.count { justify-self: end; font-size: 14px; font-style: italic; color: var(--muted); }
.count.over { color: var(--danger); }
.checks { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px clamp(14px, 5vw, 40px); padding-left: clamp(0px, 5vw, 48px); }
.checkCol { display: grid; gap: 2px; align-content: start; }
.check { display: flex; align-items: center; gap: 10px; font-size: clamp(15px, 4.2vw, 18px); cursor: pointer; padding: 2px 0; }
.check input { appearance: none; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 6px; background: var(--box); margin: 0; flex: none; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--lilac); }
.check input:checked::after { content: ""; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translateY(-2px) rotate(45deg); }
.uploadRow { display: grid; justify-items: center; gap: 8px; text-align: center; }
.uploadBtn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; background: var(--box); color: #fff; font-weight: 700; font-size: 19px; border-radius: 10px; padding: 12px 22px; cursor: pointer; width: min(400px, 100%); border: 0; }
.uploadBtn svg { width: 30px; height: 30px; }
.thumb { width: min(400px, 100%); border-radius: 9px; display: block; }
.submit { background: var(--lilac); color: #fff; border: 0; border-radius: 10px; font-weight: 700; font-size: 19px; padding: 12px 22px; width: min(400px, 100%); cursor: pointer; }
.submit:disabled { opacity: .5; cursor: default; }
.note { font-size: 17px; }
.msg { font-size: 16px; min-height: 1.4em; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--ok); }
.linkBtn { border: 0; background: none; color: var(--purple-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 16px; padding: 0; }
.notice { background: var(--purple-bg); color: var(--ink); border-radius: 10px; padding: 12px 14px; font-size: 16px; }

/* ---------- calendar ---------- */
.monthNav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 4px 0 18px; }
.monthNav button { border: 0; background: none; color: var(--muted); font-size: 1.35rem; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.monthNav button:last-child { justify-self: end; }
.monthNav h2 { margin: 0; font-size: 1.5rem; font-weight: 400; text-align: center; }
.monthNav svg { width: 20px; height: 20px; }
.calWrap { overflow-x: auto; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 300px; }
.dow { text-align: center; font-size: 12px; font-weight: 600; padding-bottom: 6px; border-bottom: 1.5px solid var(--hair); }
.cell { border-bottom: 1.5px solid var(--hair); padding: 10px 2px 12px; min-height: 104px; display: grid; align-content: start; gap: 4px; min-width: 0; }
.cell .n { text-align: center; font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.cell.wkend .n { color: var(--muted); font-weight: 400; }
.cell.blank { border-bottom-color: transparent; }
.cell.today .n span { background: var(--lilac); color: #fff; border-radius: 50%; padding: 0 7px; }
.ev { border: 0; border-radius: 7px; font: 700 12px/1.5 var(--font); padding: 0 6px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; display: block; width: 100%; }
.ev.o { background: var(--orange-bg); color: var(--orange-ink); }
.ev.g { background: var(--green-bg); color: var(--green-ink); }
.ev.p { background: var(--purple-bg); color: var(--purple-ink); }
.ev.b { background: var(--blue-bg); color: var(--blue-ink); }
.monthList { margin-top: 28px; display: grid; gap: 0; }
.monthList h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 8px; }
.row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; padding-block: 12px; border-top: 1px solid var(--hair); border-left: 0; border-right: 0; border-bottom: 0; background: none; color: inherit; text-align: left; cursor: pointer; width: 100%; font-size: 16px; }
.row .d { font-variant-numeric: tabular-nums; color: var(--muted); }
.row .t { font-weight: 600; overflow-wrap: anywhere; }
.row .w { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }

/* ---------- review ---------- */
.rv { border: 1.5px solid var(--hair); border-radius: 12px; padding: 16px; display: grid; gap: 10px; margin-bottom: 18px; }
.rv .kind { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--purple-ink); }
.rv h3 { margin: 0; font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }
.rv .body { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow-y: auto; font-size: 16px; }
.rv .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { border: 0; border-radius: 9px; font-weight: 700; font-size: 16px; padding: 10px 18px; cursor: pointer; }
.btn.yes { background: var(--lilac); color: #fff; }
.btn.no { background: var(--hair); color: var(--ink); }
.btn.del { background: var(--danger); color: #fff; }
.btn:disabled { opacity: .5; }

.local { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; font-size: 15px; z-index: 20; max-width: calc(100% - 32px); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rise .2s ease-out; } @keyframes rise { from { transform: translate(-50%, 8px); opacity: 0; } } }

/* ---------- site-only additions ---------- */
.banner { max-width: 860px; margin: 0 auto 8px; padding-inline: 16px; }
.banner p { margin: 0; }
.login { display: grid; gap: 14px; max-width: 420px; }
.adminBar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
  .logo img { width: 120px; }
}
@media (max-width: 380px) {
  .bar { padding-inline: 8px; gap: 2px; }
  .ib { width: 38px; height: 38px; }
  .ib svg { width: 26px; height: 26px; }
  .logo img { width: 112px; }
}

/* ---------- media, locations, editing ---------- */
.hint { font-size: 15px; color: var(--muted); min-height: 1.2em; }
.hint.bad { color: var(--danger); }
.mediaGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(400px, 100%); }
.mthumb { position: relative; display: block; aspect-ratio: 1 / 1; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--hair); }
.mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mthumb .x { position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 20px; line-height: 30px; padding: 0; cursor: pointer; }
.vidBox { display: grid; gap: 6px; justify-items: center; width: min(400px, 100%); }
.vidBox:empty { display: none; }
.vidMeta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
video.thumb, video.video { width: 100%; max-width: 100%; border-radius: 9px; background: #000; display: block; }
.gallery { display: grid; gap: 12px; }
.gallery a { display: block; }
.vidWrap { position: relative; }
.playMark { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(0,0,0,.55); }
.playMark::after { content: ""; position: absolute; left: 26px; top: 20px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #fff; }
.submit.alt { background: var(--ink); color: var(--bg); }
.rv .acts .btn { display: inline-flex; align-items: center; }
.up > .pillSel { justify-self: start; }
.mediaGrid.single { grid-template-columns: minmax(0, 1fr); }
.mediaGrid.single .mthumb { aspect-ratio: auto; }
.mediaGrid.single .mthumb img { height: auto; }

/* ---------- calendar month / year switch ---------- */
.segWrap { display: flex; justify-content: center; margin: 2px 0 12px; }
.seg { display: inline-flex; background: var(--hair); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 15px var(--font); padding: 6px 18px; border-radius: 8px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--lilac); color: #fff; }
.monthNav h2 .yearLink { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.yearGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.monthCard { border: 1.5px solid var(--hair); border-radius: 12px; background: none; color: inherit; padding: 10px 10px 12px; text-align: left; cursor: pointer; display: grid; gap: 8px; min-width: 0; align-content: start; }
.monthCard:hover { border-color: var(--lilac); }
.mname { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.mname b { font-size: 16px; font-weight: 600; }
.mcount { font-size: 12px; color: var(--purple-ink); white-space: nowrap; }
.mini { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.mdow { color: var(--muted); font-weight: 600; font-size: 10px; }
.md { border-radius: 4px; line-height: 18px; }
.md.today { outline: 1.5px solid var(--lilac); }
.md.has { font-weight: 700; }
.md.has.o { background: var(--orange-bg); color: var(--orange-ink); }
.md.has.g { background: var(--green-bg); color: var(--green-ink); }
.md.has.b { background: var(--blue-bg); color: var(--blue-ink); }
.md.has.p { background: var(--purple-bg); color: var(--purple-ink); }
.notice.warn { background: var(--orange-bg); color: var(--ink); }
.extLink { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: baseline; align-self: start; justify-self: start; padding: 8px 14px; border-radius: 9px; background: var(--purple-bg); color: var(--purple-ink); text-decoration: none; font-size: 16px; overflow-wrap: anywhere; max-width: 100%; }
.extLink:hover { text-decoration: underline; }

/* ---------- news archive ---------- */
.archive { margin-top: 4px; display: grid; }
.archive h2 { font-size: 1.4rem; font-weight: 400; margin: 0 0 6px; }
.archive h3 { font-size: 1rem; font-weight: 600; color: var(--muted); margin: 18px 0 4px; }
.archRow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--hair); text-decoration: none; font-size: 18px; }
.archRow:hover span:first-child { color: var(--purple-ink); }

/* ---------- footer: donate + guides banner ---------- */
.siteFoot { max-width: 640px; margin: 0 auto; padding-inline: 16px; padding-block: 8px 96px; display: grid; gap: 18px; justify-items: center; }
.donateBtn { display: block; justify-self: center; margin: 0 auto; width: min(400px, 100%); border: 0; cursor: pointer; text-align: center; background: var(--lilac); color: #fff; font: 700 19px var(--font); padding: 15px 22px; border-radius: 12px; box-shadow: 0 3px 0 #a86fd4, 0 6px 14px rgba(150, 90, 200, .28); transition: transform .08s, box-shadow .08s; }
.donateBtn:hover { filter: brightness(1.05); }
.donateBtn:active { transform: translateY(2px); box-shadow: 0 1px 0 #a86fd4, 0 3px 8px rgba(150, 90, 200, .25); }
.guidesBanner { display: block; width: 100%; align-self: start; line-height: 0; border-radius: 10px; overflow: hidden; }
.guidesBanner img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 244; object-fit: cover; }

/* ---------- mirrored pages ---------- */
.mirror { display: grid; gap: 14px; overflow-wrap: anywhere; }
.mirror * { max-width: 100%; }
.mirror section, .mirror article, .mirror div { display: grid; gap: 12px; min-width: 0; }
.mirror h1, .mirror h2, .mirror h3, .mirror h4 { font-weight: 400; line-height: 1.2; margin: 0; text-wrap: balance; }
.mirror h1 { font-size: 1.75rem; } .mirror h2 { font-size: 1.5rem; } .mirror h3 { font-size: 1.25rem; }
.mirror p { margin: 0; max-width: 65ch; }
.mirror img { width: 100%; height: auto; border-radius: 9px; display: block; }
.mirror > img, .mirror > div > img { max-width: 560px; justify-self: center; }
.mirror img[data-bg] { max-height: 300px; object-fit: cover; }
.mirror iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 9px; }
.mirror a { color: var(--purple-ink); }
.mirror a[data-button] { justify-self: start; display: inline-block; background: var(--lilac); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 9px; text-decoration: none; }
.mirror ul, .mirror ol { margin: 0; padding-left: 1.3em; }
.mirrorSrc { font-size: 14px; color: var(--muted); margin-top: 8px; }
.mirrorSrc a { color: var(--muted); }

/* ---------- get the app ---------- */
.getApp { font-size: 15px; color: var(--purple-ink); text-underline-offset: 3px; }
.install { display: grid; gap: 16px; }
.install p { margin: 0; }
.ihead { display: flex; align-items: center; gap: 14px; }
.iapp { width: 72px; height: 72px; border-radius: 16px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ih2 { font-size: 1.2rem; font-weight: 600; margin: 6px 0 0; }
.isteps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.istep { display: grid; grid-template-columns: 32px 36px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--hair); border-radius: 12px; }
.istep:not(:has(.iicon)) { grid-template-columns: 32px minmax(0, 1fr); }
.inum { width: 32px; height: 32px; border-radius: 50%; background: var(--lilac); color: #fff; font-weight: 700; display: grid; place-items: center; }
.iicon { width: 36px; height: 36px; color: #1a73e8; display: grid; place-items: center; }
.iicon svg { width: 30px; height: 30px; }
.itext { font-size: 17px; }
.qrBox { width: min(260px, 70vw); justify-self: center; background: #fff; padding: 6px; border-radius: 12px; border: 1.5px solid var(--hair); }
.qrBox svg { display: block; width: 100%; height: auto; }
.install .submit { justify-self: center; }

/* mirrored pages: guide cards and the Donorbox form */
.mirror .mcards { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; margin-top: 6px; }
.mirror .mcard { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mcover { display: block !important; aspect-ratio: 1 / 1.414; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--hair); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.mcover img { width: 100% !important; max-width: none !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; }
.mbody { display: grid; gap: 4px; }
.mbody h3 { font-size: 16px !important; font-weight: 700 !important; line-height: 1.25; }
.mbody p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.mbody em { font-size: 13px; }
.mcardBtn { margin-top: auto; display: block; text-align: center; background: var(--lilac); color: #fff !important; font-weight: 700; font-size: 15px; padding: 9px 12px; border-radius: 9px; text-decoration: none; }
.mcardBtn:hover { filter: brightness(1.05); }
.mirror iframe.donorbox { aspect-ratio: auto; height: 900px; max-width: 500px; justify-self: center; border-radius: 12px; background: #fff; }
.nationalCheck { align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--lilac); border-radius: 10px; background: var(--purple-bg); }
.nationalCheck input { margin-top: 2px; }

/* ---------- confirmations, checklist, reports, legal pages ---------- */
.confirmBox { text-align: left; width: min(560px, 100%); align-items: flex-start; font-size: 15px !important; line-height: 1.45; padding: 12px 14px; border: 1.5px solid var(--hair); border-radius: 10px; }
.confirmBox input { margin-top: 2px; }
.confirmBox a { color: var(--purple-ink); }
.modList { text-align: left; width: min(560px, 100%) !important; border: 1.5px solid var(--lilac); border-radius: 10px; padding: 10px 12px; background: var(--purple-bg); width: 100%; }
.modList summary { font-weight: 700; cursor: pointer; font-size: 15px; }
.modItems { display: grid; gap: 4px; margin-top: 8px; }
.modItems .check { font-size: 15px; align-items: flex-start; }
.modItems .check input { width: 22px; height: 22px; margin-top: 1px; }
.reasons { display: grid; gap: 6px; }
.reasons .check { font-size: 16px; align-items: flex-start; }
.reasons input[type=radio] { appearance: auto; -webkit-appearance: auto; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--lilac); }
.rv.report { border-color: var(--orange-ink); }
.rv.report h3 a { color: inherit; }
.legalLinks { font-size: 14px; color: var(--muted); margin: 0; text-align: center; }
.legalLinks a { color: var(--muted); }
.legal { display: grid; gap: 12px; max-width: 65ch; }
.legal h1 { font-size: 1.75rem; font-weight: 400; margin: 0; }
.legal h2 { font-size: 1.2rem; font-weight: 700; margin: 10px 0 0; }
.legal p, .legal ul { margin: 0; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { color: var(--purple-ink); }
.legalMeta { color: var(--muted); font-size: 14px; }
.captcha { width: min(400px, 100%); display: flex; justify-content: center; }
.captcha:empty { display: none; }
main.roomForBar { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.sent { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 28px 8px; }
.sentTick { width: 72px; height: 72px; border-radius: 50%; background: var(--lilac); color: #fff; font-size: 40px; font-weight: 700; display: grid; place-items: center; }
.sentActs { display: grid; gap: 10px; justify-items: center; width: min(400px, 100%); }
.sentActs .submit { display: block; width: 100%; }
.modList > .check b { font-size: 16px; }
.modList details { margin-top: 6px; font-size: 14px; }
.modList details summary { font-weight: 400; font-size: 14px; color: var(--purple-ink); }
.modList details ul { margin: 6px 0; padding-left: 1.2em; display: grid; gap: 3px; }
.modList details a { color: var(--purple-ink); }

/* ---------- story cards: date and town, tags underneath ---------- */
.cardMeta { display: grid; gap: 6px; min-width: 0; }
.metaRow:has(> .cardMeta) { align-items: flex-start; }
.pinTag { background: var(--lilac); color: #fff; font-weight: 700; }
.schedTag { background: var(--orange-bg); color: var(--orange-ink); }

/* ---------- share sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.42); display: flex; align-items: flex-end; justify-content: center; }
.sheetBox { width: min(560px, 100%); background: var(--bg); border-radius: 16px 16px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; max-height: 90vh; overflow: auto; }
.sheetHead { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.shareField { font-size: 15px; padding: 8px 12px; }
.shareGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.shareItem { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 10px; border: 0; border-radius: 10px; background: var(--hair); color: var(--ink); font: 600 16px var(--font); text-decoration: none; cursor: pointer; text-align: center; }
.shareItem:hover { background: var(--purple-bg); }
@media (prefers-reduced-motion: no-preference) { .sheetBox { animation: sheetUp .18s ease-out; } @keyframes sheetUp { from { transform: translateY(24px); opacity: .4; } } }

/* ---------- add to calendar ---------- */
.calMenu { display: inline-block; margin: 6px 0 2px; }
.calMenu .menu { top: 48px; min-width: 240px; }
.menuLink { display: block; padding: 12px 16px; font-size: 16px; color: var(--ink); text-decoration: none; }
.menuLink:hover { background: var(--hair); }

/* ---------- map ---------- */
.mapBox { height: 60vh; min-height: 320px; border-radius: 12px; overflow: hidden; background: var(--hair); z-index: 0; position: relative; }
.mapPop { display: grid; gap: 2px; font: 15px/1.35 var(--font); min-width: 160px; }
.mapPop a { font-weight: 700; color: #141414; }
.mapPop span { color: #555; }

/* ---------- team history, scheduling, tools ---------- */
.history { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.history summary { cursor: pointer; }
.history ul { margin: 8px 0 0; padding-left: 20px; }
.schedRow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.schedRow input { font: 16px var(--font); padding: 7px 10px; border: 1px solid var(--hair); border-radius: 8px; background: var(--bg); color: var(--ink); }
.teamTools { margin-top: 28px; padding-top: 16px; border-top: 1.5px solid var(--hair); display: grid; gap: 10px; }

/* ---------- photo list in the forms ---------- */
.mediaList { display: grid; gap: 12px; }
.mediaList:empty { display: none; }
.mitem { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.mprev { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; background: var(--hair); }
.mside { display: grid; gap: 8px; min-width: 0; }
.altInput { font-size: 16px; padding: 8px 12px; }
.mbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.mbtns .btn { padding: 7px 14px; font-size: 15px; }

/* ---------- face-blur editor ---------- */
.blurEditor { position: fixed; inset: 0; z-index: 40; background: #111; color: #fff; display: grid; grid-template-rows: auto 1fr auto; }
.blurTop { padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px; display: grid; gap: 2px; font-size: 15px; }
.blurTop b { font-size: 18px; }
.blurTop span { color: #ccc; }
.blurStage { min-height: 0; display: grid; place-items: center; padding: 8px; overflow: hidden; }
.blurStage canvas { max-width: 100%; max-height: 100%; touch-action: none; cursor: crosshair; display: block; }
.blurBar { display: flex; gap: 10px; justify-content: flex-end; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); flex-wrap: wrap; }
.blurBar button { border: 0; border-radius: 9px; padding: 11px 18px; font: 700 16px var(--font); background: #333; color: #fff; cursor: pointer; }
.blurBar button.primary { background: var(--lilac); }
.blurBar button:disabled { opacity: .45; }
.blurBar [data-a="undo"] { margin-right: auto; }

/* ---------- phone alerts ---------- */
.alertOpts { display: grid; gap: 12px; margin: 14px 0 6px; }
.alertOpt { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.alertOpt input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lilac); }
.alertOpt span { display: grid; }
.alertOpt small { color: var(--muted); font-size: 15px; }
.keyBox { width: 100%; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; padding: 8px 10px; border: 1px solid var(--hair); border-radius: 8px; background: var(--bg); color: var(--ink); resize: vertical; overflow-wrap: anywhere; }
.alertsSetup .field { margin: 12px 0; }
.alertsSetup .field .btn { justify-self: start; }
.isteps.plain { list-style: decimal; padding-left: 22px; display: grid; gap: 8px; }
