/* SNET Retirees Association — large, high-contrast, easy to read. Sizes in rem (1rem = 16px). */
:root {
  --navy: #273769;
  --navy-dark: #1b2750;
  --blue: #2b6a97;          /* darker than the old #418bbc so white text passes WCAG AA */
  --blue-light: #e8f1f8;
  --green: #81e021;         /* brand accent, decoration only */
  --text: #1f2328;
  --muted: #4a5260;
  --line: #c9d1dc;
  --bg-soft: #f4f6f9;
  --success: #2e7d32;
  --danger: #b3261e;
  --radius: 0.5rem;
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.1875rem; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
:focus-visible { outline: 0.1875rem solid #f2a900; outline-offset: 0.125rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: 1.625rem; margin-top: 2rem; }
h3 { font-size: 1.3125rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 40rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999rem; top: 0; background: var(--navy); color: #fff; padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 0.25rem solid var(--navy); background: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.75rem 1.5rem; border: 0.125rem solid var(--navy); border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; font-size: 1.0625rem; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-small { min-height: 2.75rem; padding: 0.5rem 1.125rem; font-size: 1rem; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--green); }
.btn-outline:hover { background: var(--blue-light); color: var(--navy); border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--blue-light); color: var(--navy); border-color: var(--blue-light); }
.btn-wide { width: 100%; margin-top: 0.75rem; }
.btn-approve { background: var(--success); border-color: var(--success); }
.btn-approve:hover { background: #1f5e23; border-color: #1f5e23; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #8c1d17; border-color: #8c1d17; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.link-button { background: none; border: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; padding: 0.75rem 0; }

/* ---------------------------------------------------------------- sections */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.hero-row { display: grid; grid-template-columns: 1fr minmax(0, 26rem); align-items: center; gap: 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.hero h1 { margin-bottom: 0.5rem; }
.lead { font-size: 1.3125rem; color: var(--muted); }
@media (max-width: 48rem) { .hero-row { grid-template-columns: 1fr; } .hero-row img { max-width: 20rem; } }
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 2rem 0 1.5rem; }
.page-head .lead { margin-bottom: 0.5rem; }
.section { padding-top: 2rem; padding-bottom: 2.5rem; }
.section-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.section-head h2 { margin: 0; }
.intro { padding-top: 2rem; }
.prose { max-width: 46rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.375rem; }
.prose img { border-radius: var(--radius); }
.two-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; padding-top: 1rem; }
.panel { border: 0.125rem solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: #fff; }
.panel h2 { margin-top: 0; font-size: 1.4375rem; }
.panel.info { background: var(--blue-light); border-color: #b8d3e8; margin-bottom: 1.5rem; }
.panel.success { border-color: var(--success); background: #eef7ee; }
.notice { background: var(--blue-light); padding: 1rem 1.25rem; border-radius: var(--radius); border-left: 0.375rem solid var(--blue); }
.badge { display: inline-flex; align-items: center; gap: 0.375rem; background: var(--navy); color: #fff; font-size: 0.9375rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; }
.address { font-weight: 700; }

/* ---------------------------------------------------------------- cards and lists */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.card { border: 0.125rem solid #d6e3ef; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-soft); }
.card > img.cover { aspect-ratio: 8.5 / 11; object-fit: cover; object-position: top; }
.card-body { padding: 1.125rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.1875rem; }
.card-body h3 a { color: var(--navy); text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.date { color: var(--muted); font-size: 1rem; margin: 0; }
.post-list { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; }
.post-list a { font-weight: 700; font-size: 1.1875rem; }
.post-list.big li { display: block; }
.post-list.big .date { display: block; margin: 0.25rem 0 0.5rem; }
.post-list.big p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- articles */
.article { padding-top: 1.5rem; padding-bottom: 3rem; max-width: 50rem; }
.article h1 { margin-top: 0.75rem; }
.article-image { display: block; margin: 1rem 0 1.5rem; border-radius: var(--radius); max-height: 28rem; width: 100%; object-fit: cover; }
.crumb { margin: 0.5rem 0 1rem; }
.crumb a { font-weight: 700; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; font-size: 1.1875rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }

/* ---------------------------------------------------------------- In Memory table */
.search-label { display: block; font-weight: 700; margin-bottom: 0.375rem; }
.table-wrap { overflow-x: auto; }
table.memory { width: 100%; border-collapse: collapse; font-size: 1.0625rem; }
table.memory th, table.memory td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line); }
table.memory th { background: var(--navy); color: #fff; position: sticky; top: 0; }
table.memory tr:nth-child(even) td { background: var(--bg-soft); }
.search-count { color: var(--muted); }

/* ---------------------------------------------------------------- forms */
.form { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.5rem; }
.field { margin: 0 0 1rem; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 0.375rem; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], input:not([type]), textarea {
  width: 100%; font: inherit; font-size: 1.1875rem; padding: 0.75rem 0.875rem; border: 0.125rem solid #8a94a3; border-radius: var(--radius); background: #fff; color: var(--text); min-height: 3.25rem;
}
input:focus, textarea:focus { border-color: var(--navy); }
.check { display: flex; align-items: flex-start; gap: 0.75rem; font-weight: 400; margin: 0.25rem 0 0.75rem; cursor: pointer; }
.check input { width: 1.5rem; height: 1.5rem; margin-top: 0.125rem; flex: none; accent-color: var(--navy); }
.check.strong { font-weight: 700; }
.hint { color: var(--muted); font-size: 1rem; margin: 0 0 0.375rem; }
.hp { position: absolute; left: -999rem; }
.form-message { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 700; }
.form-message.error { background: #fdecea; color: #7a1b14; border-left: 0.375rem solid var(--danger); }
.form-message.ok { background: #eef7ee; color: #1b4d1e; border-left: 0.375rem solid var(--success); }
.or { display: flex; align-items: center; gap: 1rem; color: var(--muted); margin: 1rem 0 0.25rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- admin */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.tab { font: inherit; font-weight: 700; font-size: 1rem; padding: 0.625rem 1rem; border-radius: 999px; border: 0.125rem solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; min-height: 2.75rem; }
.tab[aria-pressed="true"] { background: var(--navy); color: #fff; }
.admin-search label { font-weight: 700; display: block; margin-bottom: 0.375rem; }
.search-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.admin-list { display: grid; gap: 1rem; margin-bottom: 2rem; }
.member { border: 0.125rem solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; display: grid; grid-template-columns: 1fr auto; gap: 0.75rem 1.5rem; align-items: center; }
.member h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.member p { margin: 0; color: var(--muted); font-size: 1rem; }
.member .flag { color: #7a4b00; background: #fff4dc; display: inline-block; padding: 0.125rem 0.5rem; border-radius: 0.25rem; margin-top: 0.375rem; }
.member .actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.status { font-weight: 700; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.03em; }
.status.pending { color: #8a5a00; } .status.approved { color: var(--success); } .status.denied { color: var(--danger); }
@media (max-width: 40rem) { .member { grid-template-columns: 1fr; } .member .actions { justify-content: flex-start; } }
dialog { border: 0; border-radius: var(--radius); padding: 1.5rem; width: min(36rem, 94vw); box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3); }
dialog::backdrop { background: rgba(20, 28, 50, 0.55); }
dialog h2 { margin-top: 0; }
.dialog-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

/* ---------------------------------------------------------------- footer */

@media print {
  .site-header .account, .main-nav, .site-footer, .btn { display: none !important; }
}

/* fixes */

/* ---------------------------------------------------------------- v2: task-first home, year groups, text size */
html.big-text { font-size: 118.75%; }
.btn-ghost { background: transparent; color: var(--navy); border-color: transparent; text-decoration: underline; text-underline-offset: 0.2em; }
.btn-ghost:hover { background: var(--blue-light); color: var(--navy); border-color: var(--blue-light); }
.btn-ghost[aria-pressed="true"] { background: var(--blue-light); text-decoration: none; }
.aa { font-weight: 800; letter-spacing: -0.02em; text-decoration: none; display: inline-block; }
.aa span { font-size: 1.3em; }
.main-nav .lock, .tile .lock { width: 0.875rem; height: 0.875rem; margin-left: 0.3125rem; vertical-align: -0.0625rem; opacity: 0.7; }
.main-nav a[aria-current="page"] .lock { opacity: 1; }
@media (max-width: 40rem) {
  .ts-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.hero-row { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.hero-row img { max-height: 15rem; width: auto; justify-self: end; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
@media (max-width: 48rem) { .hero-row img { display: none; } }

.tiles-section { padding-bottom: 0.5rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.tile { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.125rem 1.25rem; border: 0.125rem solid #d6e3ef; border-left: 0.375rem solid var(--navy); border-radius: var(--radius); text-decoration: none; background: #fff; min-height: 5.5rem; }
.tile:hover { background: var(--blue-light); border-color: var(--navy); }
.tile-title { font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.tile-text { color: var(--muted); font-size: 1rem; }
.tiles-note { color: var(--muted); font-size: 1rem; margin-top: 1rem; }
.tiles-note .lock { width: 0.875rem; height: 0.875rem; vertical-align: -0.0625rem; }

.about { background: var(--bg-soft); border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 2rem 0 1rem; }
.about h2 { margin-top: 0; }

.card { position: relative; transition: border-color 0.15s; }
.card:hover { border-color: var(--navy); }
.card-img { display: block; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--bg-soft); display: block; }
.card-img img.cover { aspect-ratio: 8.5 / 11; object-position: top; }
.grid-covers { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.grid-covers .card-body h3 { font-size: 1.25rem; }

.year-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin: 0 0 1.5rem; padding: 0.75rem 1rem; background: var(--bg-soft); border-radius: var(--radius); }
.year-nav span { font-weight: 700; margin-right: 0.375rem; }
.year-nav a { display: inline-block; padding: 0.375rem 0.75rem; border-radius: 999px; font-weight: 700; background: #fff; border: 1px solid var(--line); text-decoration: none; min-height: 2.5rem; line-height: 1.6; }
.year-nav a:hover { border-color: var(--navy); }
.year { scroll-margin-top: 1rem; }
.year > h2 { margin: 1.5rem 0 1rem; padding-bottom: 0.375rem; border-bottom: 0.1875rem solid var(--navy); }
.year:first-of-type > h2 { margin-top: 0; }

.post-rows { list-style: none; margin: 0 0 1rem; padding: 0; }
.post-rows li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.25rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.post-rows img, .thumb-blank { width: 9rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); display: block; }
.post-rows a { font-weight: 700; font-size: 1.1875rem; }
.post-rows .date { display: block; margin: 0.25rem 0 0.375rem; }
.post-rows p { margin: 0; color: var(--muted); font-size: 1.0625rem; }
@media (max-width: 36rem) { .post-rows li { grid-template-columns: 5.5rem 1fr; gap: 0.875rem; } .post-rows img, .thumb-blank { width: 5.5rem; } .post-rows p { display: none; } }

.article-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { display: block; padding: 1rem 1.125rem; border: 0.125rem solid #d6e3ef; border-radius: var(--radius); text-decoration: none; font-weight: 700; color: var(--navy); }
.pager a:hover { border-color: var(--navy); background: var(--blue-light); }
.pager a span { display: block; font-size: 0.9375rem; color: var(--muted); font-weight: 700; margin-bottom: 0.25rem; }
.pager .older { text-align: right; grid-column: 2; }
@media (max-width: 36rem) { .pager { grid-template-columns: 1fr; } .pager .older { grid-column: 1; text-align: left; } }

.prose .byline { display: block; color: var(--muted); font-style: italic; }
.prose .fineprint { display: block; font-size: 0.9375rem; color: var(--muted); }
.prose mark { background: #fff1a8; color: inherit; padding: 0 0.125rem; }
.prose mark.bold { font-weight: 700; }
.prose mark.ital { font-style: italic; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { color: var(--muted); font-size: 1rem; }
.prose h2 { font-size: 1.5rem; }

@media print {
  .crumb, .pager, .article-meta .btn, .skip { display: none !important; }
  body { font-size: 12pt; }
  .article { max-width: none; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
.tile-title { display: flex; align-items: center; gap: 0.375rem; }
.tile-title .lock { margin-left: 0; flex: none; }

/* ================================================================ v3 */
:root { --wrap: 80rem; --blue-mid: #418bbc; --outline: #9fb6cf; }

/* ---- header: logo · nav · account on one row when there is room */
.site-header { position: relative; }
.header-row { display: flex; align-items: center; gap: 0.75rem 1rem; padding-top: 0.625rem; padding-bottom: 0.625rem; flex-wrap: wrap; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 4.75rem; height: auto; }
.main-nav { flex: 1 1 auto; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.125rem; }
.main-nav a { display: flex; align-items: center; padding: 0.5rem 0.75rem; font-weight: 700; color: var(--navy); text-decoration: none; border-radius: var(--radius); font-size: 1.0625rem; white-space: nowrap; min-height: 2.75rem; }
.main-nav a:hover { background: var(--blue-light); }
.main-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.main-nav .lock { margin-left: 0.3125rem; }
.account { display: flex; align-items: center; gap: 0.5rem; flex: none; margin-left: auto; }
.welcome { color: var(--navy); text-decoration: none; padding: 0.25rem 0.5rem; border-radius: var(--radius); line-height: 1.2; text-align: right; }
.welcome:hover { background: var(--blue-light); }
.welcome-hi { color: var(--muted); font-size: 0.9375rem; display: block; }
.welcome strong { font-size: 1.0625rem; }

/* phone menu */
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::before { content: "☰"; font-size: 1.125em; }
.menu[open] summary::before { content: "✕"; }
.menu ul { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; list-style: none; margin: 0; padding: 0.5rem 1.25rem 1rem; background: #fff; border-bottom: 0.25rem solid var(--navy); box-shadow: 0 1rem 1.5rem rgba(20, 28, 50, 0.15); }
.menu a { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1875rem; font-weight: 700; color: var(--navy); text-decoration: none; padding: 0.875rem 0.5rem; border-bottom: 1px solid var(--line); }
.menu a[aria-current="page"] { color: var(--blue); }
.menu .lock { width: 0.875rem; height: 0.875rem; opacity: 0.7; }

/* medium screens: nav drops to its own row under logo + account */
@media (max-width: 82rem) {
  .main-nav { order: 3; flex-basis: 100%; }
  .main-nav ul { margin-left: -0.75rem; }
}
/* phones and small tablets: menu button instead of the nav row */
@media (max-width: 56rem) {
  .main-nav { display: none; }
  .menu { display: block; }
  .brand img { width: 3.75rem; }
  .account { gap: 0.375rem; }
  .account .btn-small { padding: 0.5rem 0.875rem; }
  .welcome-hi { display: none; }
}
@media (max-width: 26rem) {
  .welcome { display: none !important; }
}

/* logged in: nothing is locked any more */
html.logged-in .lock, html.logged-in .lock-note, html.logged-in .tiles-note { display: none !important; }
html.logged-in [data-when="out"] { display: none !important; }
html:not(.logged-in) [data-when="in"] { display: none !important; }

/* ---- calmer buttons: one filled button per area, outlines and text links elsewhere */
.btn-outline { background: #fff; color: var(--navy); border-color: var(--outline); }
.btn-outline:hover { background: var(--blue-light); color: var(--navy); border-color: var(--navy); }
.more { font-weight: 700; color: var(--blue); text-decoration: none; margin-top: auto; align-self: flex-start; padding: 0.25rem 0; }
.more:hover { text-decoration: underline; color: var(--navy); }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .more { position: relative; z-index: 1; }
.card:hover { border-color: var(--blue-mid); box-shadow: 0 0.25rem 1rem rgba(39, 55, 105, 0.08); }
.card { border-color: #e1e8f0; }
.hero-actions .btn-outline { border-color: var(--green); }
.hello { font-weight: 700; color: var(--blue); font-size: 1.25rem; margin-bottom: 0.25rem; }

/* ---- tiles: soft blues, green and grey */
.tile { border: 0; border-left: 0.375rem solid var(--navy); box-shadow: inset 0 0 0 1px rgba(39, 55, 105, 0.08); }
.tile.t-blue { background: linear-gradient(135deg, #f2f8fd 0%, #deebf7 100%); border-left-color: var(--blue-mid); }
.tile.t-green { background: linear-gradient(135deg, #f6fcef 0%, #e2f3cf 100%); border-left-color: var(--green); }
.tile.t-grey { background: linear-gradient(135deg, #fafbfc 0%, #eceff4 100%); border-left-color: #8a94a3; }
.tile:hover { box-shadow: inset 0 0 0 0.125rem var(--navy); background: #fff; }
.tile-text { color: #3d4654; }

/* ---- In Memory: search + sort, table becomes stacked rows on phones */
.memory-tools { display: grid; grid-template-columns: 1fr minmax(12rem, 16rem); gap: 1rem; align-items: end; }
select { font: inherit; font-size: 1.1875rem; padding: 0.625rem 0.75rem; border: 0.125rem solid #8a94a3; border-radius: var(--radius); background: #fff; color: var(--text); min-height: 3.25rem; width: 100%; }
table.memory th { padding: 0; }
table.memory th button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 0.375rem; width: 100%; padding: 0.75rem; cursor: pointer; font-weight: 700; color: #fff; }
table.memory th button:focus-visible { outline: 0.1875rem solid #f2a900; outline-offset: -0.1875rem; }
table.memory th button:hover { background: var(--navy-dark); }
.sort-arrow::after { content: "↕"; opacity: 0.45; font-size: 0.875em; }
th[aria-sort="ascending"] .sort-arrow::after { content: "▲"; opacity: 1; }
th[aria-sort="descending"] .sort-arrow::after { content: "▼"; opacity: 1; }
@media (max-width: 40rem) {
  .memory-tools { grid-template-columns: 1fr; }
  table.memory thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.memory, table.memory tbody, table.memory tr, table.memory td { display: block; }
  table.memory tr { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  table.memory tr:nth-child(even) td { background: none; }
  table.memory td { border: 0; padding: 0.125rem 0; }
  table.memory td:first-child { font-size: 1.1875rem; font-weight: 700; }
  table.memory td:not(:first-child) { display: inline; color: var(--muted); }
  table.memory td[data-label="City"]:not(:empty)::after { content: ",\00a0"; }
  table.memory td[data-label="Date of death"]::before { content: " · Died "; }
}

/* ---- footer with site links */
.site-footer { background: var(--navy); color: #fff; margin-top: 3rem; padding: 2.5rem 0 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: 2rem 3rem; }
.footer-brand img { width: 5rem; background: #fff; border-radius: 0.5rem; padding: 0.375rem; }
.footer-brand p { color: #d6deea; margin-top: 0.75rem; }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem; }
.footer-links h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 0.75rem; opacity: 0.8; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.25rem; }
.footer-links a { display: inline-block; padding: 0.375rem 0; font-size: 1.0625rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 2rem; padding-top: 1rem; padding-bottom: 1.25rem; font-size: 0.9375rem; color: #c3cde0; }
.footer-bottom p { margin: 0; }
@media (max-width: 40rem) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- misc */
.website-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1rem 1.25rem !important; }
@media (max-width: 40rem) {
  .hero-actions .btn { flex: 1 1 auto; }
  .section-head { margin-top: 1.5rem; }
  .page-head { padding: 1.5rem 0 1.25rem; }
}
@media print {
  .site-header, .site-footer { display: none !important; }
}
.main-nav ul { gap: 0; }
.main-nav a { padding: 0.5rem 0.625rem; }
.account .btn-ghost { padding-left: 0.5rem; padding-right: 0.5rem; }
.header-row { gap: 0.75rem; }
.tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 56rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 36rem) { .tiles { grid-template-columns: 1fr; } }

/* Turnstile check above the send buttons */
.cf-turnstile { margin: 0.5rem 0 1rem; min-height: 4.0625rem; }
