/* GU Headlines: frosted glass, soft curves, readable text. One file, no build step. */

/* Dark is the default theme. A small script in base.html sets data-theme on
   <html>: the visitor's choice from the switch in the top bar, else their
   device's light/dark setting, else dark. */
:root {
  color-scheme: dark;
  --bg: #0a1020;
  --text: #e8edf5;
  --text-soft: #c9d2e0;
  --muted: #97a3b6;
  --line: rgba(255, 255, 255, .08);
  --accent: #6ea8ff;
  --accent-2: #38bdf8;
  --link: #9cc3ff;
  --mark: #7c5e10;
  --focus: #8fb8ff;
  --error: #fca5a5;
  --field-bg: rgba(255, 255, 255, .06);  /* search box, the light/dark switch */
  --input-bg: rgba(255, 255, 255, .05);  /* search page fields */
  --backdrop-opacity: .55;               /* the soft colours behind the glass */

  /* Glass surfaces. Cards carrying body text are nearly opaque for contrast. */
  --glass: rgba(22, 30, 50, .50);
  --glass-strong: rgba(20, 28, 46, .74);
  --glass-border: rgba(255, 255, 255, .09);
  --glass-edge: rgba(0, 0, 0, .25);
  --gloss: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 40%);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -18px rgba(0, 0, 0, .7);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 52px -18px rgba(0, 0, 0, .85);
  --blur: blur(22px) saturate(170%);

  --tag-local: #5eead4;     --tag-local-bg: rgba(45, 212, 191, .13);
  --tag-military: #bef264;  --tag-military-bg: rgba(163, 230, 53, .12);
  --tag-business: #93c5fd;  --tag-business-bg: rgba(96, 165, 250, .14);
  --tag-labor: #fcd34d;     --tag-labor-bg: rgba(251, 191, 36, .13);
  --tag-community: #c4b5fd; --tag-community-bg: rgba(167, 139, 250, .14);
  --tag-tourism: #67e8f9;   --tag-tourism-bg: rgba(34, 211, 238, .13);
  --tag-sports: #fca5a5;    --tag-sports-bg: rgba(248, 113, 113, .14);
  --tag-food: #fdba74;      --tag-food-bg: rgba(251, 146, 60, .14);
  --tag-cnmi: #f9a8d4;      --tag-cnmi-bg: rgba(244, 114, 182, .14);
  --tag-obituaries: #cbd5e1; --tag-obituaries-bg: rgba(148, 163, 184, .16);

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* Light theme: a plain white page with white cards set off by thin borders. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #5b6b82;
  --line: rgba(15, 23, 42, .09);
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --link: #1d4ed8;
  --mark: #fde68a;
  --focus: #2563eb;
  --error: #b91c1c;
  --field-bg: #f1f5f9;
  --input-bg: #ffffff;
  --backdrop-opacity: 0;
  --glass: rgba(255, 255, 255, .86);
  --glass-strong: #ffffff;
  --glass-border: rgba(15, 23, 42, .10);
  --glass-edge: rgba(15, 23, 42, .04);
  --gloss: none;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -14px rgba(15, 23, 42, .18);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, .06), 0 16px 36px -16px rgba(15, 23, 42, .26);
  --tag-local: #0f766e;     --tag-local-bg: rgba(20, 184, 166, .14);
  --tag-military: #4d7c0f;  --tag-military-bg: rgba(132, 204, 22, .16);
  --tag-business: #1d4ed8;  --tag-business-bg: rgba(59, 130, 246, .13);
  --tag-labor: #b45309;     --tag-labor-bg: rgba(245, 158, 11, .16);
  --tag-community: #6d28d9; --tag-community-bg: rgba(139, 92, 246, .13);
  --tag-tourism: #0e7490;   --tag-tourism-bg: rgba(6, 182, 212, .13);
  --tag-sports: #b91c1c;    --tag-sports-bg: rgba(239, 68, 68, .12);
  --tag-food: #c2410c;      --tag-food-bg: rgba(249, 115, 22, .14);
  --tag-cnmi: #be185d;      --tag-cnmi-bg: rgba(236, 72, 153, .12);
  --tag-obituaries: #475569; --tag-obituaries-bg: rgba(100, 116, 139, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
/* Soft ocean-coloured light behind the glass. Fixed, so it never scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: -10vh -10vw;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 8% 6%, rgba(56, 189, 248, .38), transparent 70%),
    radial-gradient(34vw 34vw at 92% 4%, rgba(99, 102, 241, .26), transparent 70%),
    radial-gradient(42vw 42vw at 88% 78%, rgba(20, 184, 166, .24), transparent 70%),
    radial-gradient(36vw 36vw at 6% 92%, rgba(244, 114, 182, .16), transparent 70%);
  opacity: var(--backdrop-opacity);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; }
code { background: var(--line); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
mark { background: var(--mark); color: inherit; padding: 0 .15em; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; padding: 10px 14px; background: var(--glass-strong); border-radius: 12px; }

/* ---------- glass ---------- */
.glass,
.story,
.panel,
.search-form,
.tips,
.empty,
.site-note,
.table-wrap,
.month-grid a,
.day-list,
.pagination a,
.pagination .current,
.day-label {
  position: relative;
  background-color: var(--glass);
  background-image: var(--gloss); /* the glossy sheen along the top edge */
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 var(--glass-edge);
}
.story, .search-form, .tips, .empty, .site-note, .table-wrap, .day-list { background-color: var(--glass-strong); }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; padding: 14px 0 6px; }
/* Two rows: brand, search and the theme switch on top, the sections below.
   The sections wrap onto more lines rather than scroll, so every link
   (Archive, Jobs, Sources at the end) stays visible at any width. */
.bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-xl);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: 42px; height: 42px; border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, #38bdf8, #1e40af 70%);
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  box-shadow: 0 6px 16px -6px rgba(30, 64, 175, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 750; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-tagline { font-size: .74rem; color: var(--muted); }

.nav {
  order: 3; flex: 1 1 100%; min-width: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px;
  padding-top: 8px; border-top: 1px solid var(--line);
}
.nav a {
  padding: 7px 10px; border-radius: 999px; white-space: nowrap;
  color: var(--text-soft); font-weight: 600; font-size: .9rem;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(127, 140, 160, .14); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px rgba(37, 99, 235, .8);
}

.search {
  display: flex; align-items: center; flex: 1 1 190px; min-width: 170px; max-width: 360px; margin-left: auto;
  padding: 4px 4px 4px 12px; border-radius: 999px;
  background: var(--field-bg); border: 1px solid var(--line);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }

/* The light/dark switch. Its look follows aria-checked (on = dark). */
.theme-toggle {
  flex: none; display: inline-flex; align-items: center;
  width: 52px; height: 30px; padding: 3px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--field-bg);
  transition: border-color .15s ease;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--accent); }
.theme-knob {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #ffffff; color: #b45309; box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
  transition: transform .2s ease, background-color .2s ease;
}
.theme-knob svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle[aria-checked="true"] .theme-knob { transform: translateX(22px); background: #1e293b; color: #fde68a; }
.theme-toggle[aria-checked="true"] .icon-sun { display: none; }
.theme-toggle[aria-checked="true"] .icon-moon { display: block; }
.search-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 8px 8px; font: inherit; font-size: .95rem; color: var(--text);
}
.search input::placeholder { color: var(--muted); }
.btn,
.search button,
.search-form button {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 9px 18px; font: 650 .9rem var(--font); color: #fff;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -8px rgba(37, 99, 235, .9);
  transition: filter .15s ease, transform .15s ease;
}
.search button:hover, .search-form button:hover { filter: brightness(1.08); }
.search button:active, .search-form button:active { transform: translateY(1px); }

/* The tagline is in the footer; the bar needs the room for the menu. */
.bar .brand-tagline { display: none; }
@media (max-width: 1200px) {
  .topbar { position: static; }
}
@media (max-width: 640px) {
  .bar { gap: 8px; padding: 10px; border-radius: var(--r-lg); }
  .search { order: 2; flex: 1 1 100%; max-width: none; min-width: 0; }
  .theme-toggle { margin-left: auto; }
  .nav { gap: 2px; padding-top: 6px; }
  .nav a { padding: 6px 9px; font-size: .85rem; }
}

/* ---------- layout ---------- */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px;
  padding-top: 18px; padding-bottom: 48px;
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}

.page-head { margin: 6px 4px 18px; }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 0 0 6px; }
.page-head p { margin: 2px 0; }
.crumbs { font-size: .85rem; color: var(--muted); }
.section-title { font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; margin: 34px 4px 12px; }
.section-note { margin: -4px 4px 14px; max-width: 70ch; }
/* The Sources page's "Why this site exists" and "Disclaimer". */
.site-note { padding: 20px 24px; margin: 0 0 22px; border-radius: var(--r-xl); }
.site-note h2 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 750; letter-spacing: -.02em; }
.site-note p { margin: 10px 0 0; max-width: 75ch; color: var(--text-soft); }
.site-note.legal { margin-top: 34px; }
.site-note.legal p { font-size: .9rem; }

/* ---------- story cards ---------- */
.day { margin-bottom: 10px; }
.day-label {
  display: inline-flex; margin: 18px 0 12px; padding: 6px 14px;
  border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-soft);
}
.story {
  display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 20px;
  padding: 14px; margin-bottom: 14px; border-radius: var(--r-xl);
  transition: transform .2s ease, box-shadow .2s ease;
  /* Cards are nearly opaque, so a blur behind them does not show, but a page of
     30 blurred cards makes the browser slow to draw and scroll. */
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.story:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover), inset 0 1px 0 rgba(255, 255, 255, .35); }
.thumb {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; align-self: start;
  border-radius: var(--r-lg); background: var(--line); isolation: isolate;
}
/* The article's own photo, shown whole ("contain"), never stretched or cropped;
   any space around it is filled by a blurred, enlarged copy of the same photo. */
.thumb-fill, .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.thumb-fill {
  object-fit: cover; transform: scale(1.25);
  filter: blur(18px) saturate(1.25) brightness(.95); opacity: .9;
}
.thumb-img { object-fit: contain; transition: transform .35s ease; }
.story:hover .thumb-img { transform: scale(1.02); }
.thumb::after {
  /* a faint glass rim over the photo */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.story.no-photo { grid-template-columns: minmax(0, 1fr); }
.story.no-photo .story-body { padding-left: 8px; }
.story-body { padding: 4px 6px 4px 0; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag {
  padding: 3px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: var(--line);
}
.tag:hover { text-decoration: none; filter: saturate(1.4); }
.tag-local { color: var(--tag-local); background: var(--tag-local-bg); }
.tag-military { color: var(--tag-military); background: var(--tag-military-bg); }
.tag-business { color: var(--tag-business); background: var(--tag-business-bg); }
.tag-labor { color: var(--tag-labor); background: var(--tag-labor-bg); }
.tag-community { color: var(--tag-community); background: var(--tag-community-bg); }
.tag-tourism { color: var(--tag-tourism); background: var(--tag-tourism-bg); }
.tag-sports { color: var(--tag-sports); background: var(--tag-sports-bg); }
.tag-food { color: var(--tag-food); background: var(--tag-food-bg); }
.tag-cnmi { color: var(--tag-cnmi); background: var(--tag-cnmi-bg); }
.tag-obituaries { color: var(--tag-obituaries); background: var(--tag-obituaries-bg); }
.headline { font-size: 1.2rem; line-height: 1.3; font-weight: 720; letter-spacing: -.015em; margin: 0 0 6px; }
.headline a { color: var(--text); }
.headline a:hover { color: var(--link); }
.intro { margin: 0 0 6px; color: var(--text-soft); font-size: .97rem; line-height: 1.62; }
.meta { margin: 8px 0 0; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 7px; }
.meta .source { font-weight: 700; color: var(--text); }
.meta a.source:hover { color: var(--link); }
.headline a { text-decoration-thickness: 2px; }
.headline a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* The article's own address, always visible and clickable. */
.read-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 6px 12px; border-radius: 999px;
  font-size: .82rem; font-weight: 650; color: var(--link);
  background: rgba(37, 99, 235, .08); border: 1px solid rgba(37, 99, 235, .16);
  transition: background-color .15s ease;
}
.read-link:hover { text-decoration: none; background: rgba(37, 99, 235, .15); }
.read-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.read-domain { font-weight: 750; }
.site-link { display: block; font-size: .78rem; color: var(--muted); }
.site-link:hover { color: var(--link); }
.external { font-weight: 650; }

@media (max-width: 640px) {
  .wrap { padding: 0 12px; }
  .brand-tagline { display: none; }
  /* Phones: the photo runs full width across the top of the card. */
  .story { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px; border-radius: var(--r-lg); }
  .thumb { aspect-ratio: 16 / 9; border-radius: var(--r-md); }
  .story-body { padding: 0 6px 4px; }
  .headline { font-size: 1.04rem; }
  .intro { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
  .intro + .intro { display: none; }
}

/* ---------- pagination ---------- */
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination .current, .pagination .disabled, .pagination .gap {
  padding: 8px 15px; border-radius: 999px; font-weight: 650; font-size: .9rem;
}
.pagination a { color: var(--text); }
.pagination a:hover { text-decoration: none; border-color: var(--accent); }
.pagination .current {
  color: #fff; border-color: transparent;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px -8px rgba(37, 99, 235, .9);
}
.pagination .disabled { color: var(--muted); opacity: .5; }
.pagination .pages { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- sidebar ---------- */
.sidebar .panel { padding: 16px 18px; margin-bottom: 16px; border-radius: var(--r-lg); }
.sidebar h2 { margin: 0 0 8px; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sidebar .panel-sub { margin: 16px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sidebar p { margin: 4px 0; }
/* The ad block (_ad.html). It folds away when Google has no ad to show. */
.ad-slot ins.adsbygoogle { display: block; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }
.facets { list-style: none; margin: 0; padding: 0; }
.facets li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.facet-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.facets li:last-child { border-bottom: 0; }
.facets a { color: var(--text-soft); }
.facets .count, .day-list .count {
  color: var(--muted); font-variant-numeric: tabular-nums; font-size: .8rem;
  padding: 1px 9px; border-radius: 999px; background: var(--line);
}
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; background: currentColor; }
.dot.tag-local { background: var(--tag-local); }
.dot.tag-military { background: var(--tag-military); }
.dot.tag-business { background: var(--tag-business); }
.dot.tag-labor { background: var(--tag-labor); }
.dot.tag-community { background: var(--tag-community); }
.dot.tag-tourism { background: var(--tag-tourism); }
.dot.tag-sports { background: var(--tag-sports); }
.dot.tag-food { background: var(--tag-food); }
.dot.tag-cnmi { background: var(--tag-cnmi); }
.dot.tag-obituaries { background: var(--tag-obituaries); }

/* ---------- search ---------- */
.search-form {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px 14px;
  padding: 18px; margin-bottom: 20px; border-radius: var(--r-xl);
}
.search-form .grow { grid-column: 1 / -1; }
.field { position: relative; display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .72rem; font-weight: 750; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.field input, .field select {
  font: inherit; padding: 10px 12px; border-radius: var(--r-sm); min-width: 0;
  border: 1px solid var(--line); color: var(--text);
  background: var(--input-bg);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .05);
}
.field input:focus, .field select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.field.actions { flex-direction: row; align-items: center; align-self: end; gap: 14px; min-height: 44px; }
.reset { font-size: .9rem; }
.result-count { color: var(--muted); margin: 6px 4px 12px; }
.tips { padding: 8px 22px 14px; border-radius: var(--r-xl); }
.tips h2 { font-size: 1.1rem; letter-spacing: -.01em; }
.tips li { margin: 5px 0; color: var(--text-soft); }

/* ---------- archive ---------- */
.archive-year h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 22px 4px 12px; }
.month-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.month-grid a {
  display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--r-lg);
  color: var(--text); transition: transform .2s ease, box-shadow .2s ease;
}
.month-grid a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.month-grid .month { font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; }
.month-grid .count { font-size: .85rem; color: var(--muted); }
.month-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-weight: 650; }
.day-list { list-style: none; padding: 6px 0; margin: 0; border-radius: var(--r-xl); overflow: hidden; }
.day-list li { display: flex; justify-content: space-between; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.day-list li:last-child { border-bottom: 0; }

/* ---------- status ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-xl); }
.status-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.status-table th, .status-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.status-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 750; }
.status-table tr:last-child td { border-bottom: 0; }
.status-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.status-table.compact td { padding: 8px 16px; }
.status-table tr.disabled { opacity: .55; }
.badge { font-size: .68rem; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); margin-left: 6px; font-weight: 650; }
.error { color: var(--error); }

/* ---------- misc ---------- */
.empty { padding: 26px 28px; margin-top: 12px; border-radius: var(--r-xl); }
.empty h1, .empty h2 { margin-top: 0; letter-spacing: -.02em; }
.footer { padding: 8px 0 40px; color: var(--muted); font-size: .84rem; }
.footer-inner { text-align: center; max-width: 720px; }

/* ---------- accessibility and fallbacks ---------- */
/* Without backdrop blur, translucent panels would show busy colour: go solid. */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root { --glass: rgba(18, 26, 44, .95); --glass-strong: rgba(18, 26, 44, .97); }
  :root[data-theme="light"] { --glass: #ffffff; --glass-strong: #ffffff; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  :root { --glass: #131b2e; --glass-strong: #131b2e; --gloss: none; --glass-border: rgba(255, 255, 255, .22); --muted: #b3bdcc; }
  :root[data-theme="light"] { --glass: #ffffff; --glass-strong: #ffffff; --glass-border: rgba(15, 23, 42, .18); --muted: #475569; }
  body::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .story:hover, .month-grid a:hover { transform: none; }
  .story:hover .thumb img { transform: none; }
}
@media print {
  body::before, .topbar, .sidebar, .pagination { display: none; }
  .story, .panel { box-shadow: none; background: #fff; border: 1px solid #ddd; }
}

/* ---------- jobs ---------- */
.job-filter .job-words { grid-column: span 2; }
.job-employer { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.job-employer strong { color: var(--text-soft); }
.job-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 16px;
  margin: 0 0 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--line);
}
.job-facts dt { font-size: .68rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.job-facts dd { margin: 2px 0 0; font-size: .92rem; color: var(--text); overflow-wrap: anywhere; }
.not-given { color: var(--muted); }
.job-description { white-space: pre-line; }
.job-links { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; }
@media (max-width: 640px) {
  .job-filter .job-words { grid-column: 1 / -1; }
  .job-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
