/* ==============================
   FONT & RENDER STABILITY
   ============================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  line-height: 1.55;
  letter-spacing: 0.02em;
  word-spacing: 0.06em;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--site-bg-photo, url("../loring_park_1280.webp"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter:
    blur(14px)
    contrast(var(--image-contrast, 1.12))
    saturate(var(--image-saturate, 1.06));
  transform: scale(1.06);
  transform-origin: center;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(248, 248, 248, 0.4), rgba(248, 248, 248, 0.4)),
    var(--site-bg-photo, url("../loring_park_1280.webp"));
  background-size: cover, contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: contrast(var(--image-contrast, 1.12)) saturate(var(--image-saturate, 1.06));
}

body > * {
  position: relative;
  z-index: 1;
}

main.wrap {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-v57-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Maitree";
  src: url("../fonts/maitree-v11-latin-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Intel One Mono";
  src:
    url("../fonts/IntelOneMono-Regular.woff2") format("woff2"),
    url("../fonts/IntelOneMono-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ITC Kabel";
  src:
    url("../fonts/ITCKabelStdBook.woff2") format("woff2"),
    url("../fonts/ITCKabelStdBook.TTF") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "ITC Kabel";
  src:
    url("../fonts/ITCKabelStdBold.woff2") format("woff2"),
    url("../fonts/ITCKabelStdBold.TTF") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src:
    url("../fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2"),
    url("../fonts/AtkinsonHyperlegibleNext-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src:
    url("../fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2"),
    url("../fonts/AtkinsonHyperlegibleNext-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font-body: "Atkinson Hyperlegible", "Lexend", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "ITC Kabel", "Atkinson Hyperlegible", system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Intel One Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", monospace;
  --bg: #a4bcc2;
  --text: #222;
  --muted: #4b4b4b;
  --border: #d2d2d2;
  --surface: #fafafa;
  --card-surface: #d9d9d6;
  --card-border: #003865;
  --focus: #0a5bd3;
  --gap: 0.75rem;
  --brand-size: 96px;
  --image-contrast: 1.12;
  --image-saturate: 1.06;
  --site-bg-photo: url("../loring_park_1280.webp");
  --site-bg-photo-set: image-set(
    url("../loring_park_1280.avif") type("image/avif"),
    url("../loring_park_1280.webp") type("image/webp")
  );
}

@media (min-width: 900px) {
  :root {
    --site-bg-photo: url("../loring_park_1920.webp");
    --site-bg-photo-set: image-set(
      url("../loring_park_1920.avif") type("image/avif"),
      url("../loring_park_1920.webp") type("image/webp")
    );
  }
}

@media (min-width: 1400px) {
  :root {
    --site-bg-photo: url("../loring_park_2560.webp");
    --site-bg-photo-set: image-set(
      url("../loring_park_2560.avif") type("image/avif"),
      url("../loring_park_2560.webp") type("image/webp")
    );
  }
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  letter-spacing: 0.01em;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-mono);
}

a:hover,
a:focus-visible,
a:active {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  transform: translateY(-150%);
  z-index: 10;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.muted {
  color: var(--muted);
}

.orientation {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  /* Keep the orientation bar compact; the logo sets the height. */
  --brand-size: 72px;
}

.orientation .wrap {
  max-width: 1100px;
}

.orientation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.7rem;
  margin: 0;
  padding: 0.25rem 0;
  align-items: center;
}

.orientation-grid > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.orientation-grid dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.orientation-grid dd {
  margin: 0.25rem 0 0;
  font-weight: 700;
  font-size: 1rem;
  overflow: hidden;
}

.orientation-grid dd .muted {
  font-weight: 400;
}

.orientation-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.orientation-logo dd {
  margin: 0;
  overflow: visible;
}

.orientation-sun dd,
.orientation-utc__value {
  white-space: nowrap;
}

.orientation-utc dt,
.orientation-utc dd {
  text-align: right;
}

.orientation-utc dd {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem;
}

.brand img {
  display: block;
  width: var(--brand-size);
  height: var(--brand-size);
}

@media (min-width: 860px) {
  .orientation-grid {
    grid-template-columns:
      var(--brand-size)
      minmax(7.5rem, 1fr)
      minmax(12.75rem, 1.35fr)
      minmax(7rem, 1fr)
      minmax(0, 2.2fr)
      minmax(9.25rem, 1.1fr)
      minmax(5.25rem, 0.75fr);
    gap: 0.55rem;
  }

  .orientation-grid > div:nth-child(2) dd,
  .orientation-grid > div:nth-child(3) dd,
  .orientation-grid > div:nth-child(4) dd,
  .orientation-grid > div:nth-child(6) dd,
  .orientation-grid > div:nth-child(7) dd {
    white-space: nowrap;
  }
}

@media (min-width: 560px) {
  /* Keep the orientation bar to a single line where possible. */
  .orientation-grid > div:nth-child(5) dd {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.orientation__line {
  margin: 0;
  padding-block: 0.4rem;
}

.orientation__strong {
  font-weight: 700;
}

.top-nav {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #444;
}

.top-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
}

.top-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.top-nav__links--alt {
  margin-left: auto;
  white-space: nowrap;
}

.top-nav__more {
  display: inline-block;
  position: relative;
}

.top-nav__more summary {
  display: inline;
  cursor: pointer;
  list-style: none;
}

.top-nav__more summary::-webkit-details-marker {
  display: none;
}

.top-nav__more summary:hover,
.top-nav__more summary:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.top-nav__more-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--border);
  background: #fff;
}

@media (min-width: 820px) {
  .top-nav__more-links {
    position: absolute;
    right: 0;
    top: 1.35rem;
    margin-top: 0;
    white-space: nowrap;
    z-index: 10;
  }
}

@media (min-width: 820px) {
  /* Keep Tor/IPNS pinned upper-right without wrapping under the nav. */
  .top-nav__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.5rem 1.5rem;
  }

  .top-nav__links--alt {
    justify-self: end;
    align-self: start;
    margin-left: 0;
  }
}

.top-nav a {
  text-decoration: none;
  color: inherit;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.status {
  margin-top: 1.15rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.status__line {
  margin: 0;
  color: var(--muted);
}

.status__label {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
}

.archive-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: baseline;
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.archive-nav a {
  color: inherit;
  text-decoration: none;
}

.archive-nav a:hover,
.archive-nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.archive-nav__center {
  margin-inline: auto;
}

.archive-nav__label {
  font-weight: 700;
  color: var(--text);
}

.archive-nav__right {
  margin-left: auto;
}

.archive-nav__right a {
  color: var(--text);
}

.alerts {
  margin-block: 1.25rem 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
}

.feature {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
}

.feature__hed {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.feature__dek {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.intel-feed {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
}

.intel-page {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
}

.intel-grid {
  display: grid;
  gap: var(--gap);
  margin-top: 0.75rem;
}

.intel-scope {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #f7f7f7;
}

.intel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.intel-list li {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.intel-headline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.intel-scope-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  opacity: 0.9;
}

.intel-actions {
  margin: 0.65rem 0 0;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.intel-actions a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: transparent;
}

.intel-actions a:hover,
.intel-actions a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.intel-time {
  white-space: nowrap;
}

.intel-item {
  --intel-scope-marker: #6b6b6b;
}

.intel-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--intel-scope-marker);
  pointer-events: none;
  z-index: 2;
}

.intel-scope-local {
  --intel-scope-marker: #3a4b5a;
}

.intel-scope-regional {
  --intel-scope-marker: #6b6b6b;
}

.intel-scope-global {
  --intel-scope-marker: #9a9a9a;
}

.intel-card.intel-trust-official {
  border: 2px solid #39444d;
}

.intel-card.intel-trust-news {
  border: 1px solid #3a5b74;
}

.intel-card.intel-trust-firsthand {
  border: 1px dashed #7a6238;
}

.intel-state-breaking .intel-time::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.55;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.intel-state-context .intel-time,
.intel-state-archive .intel-time {
  opacity: 0.85;
}

.intel-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--source-logo, none);
  background-repeat: no-repeat;
  background-size: var(--source-logo-size, 96px 96px);
  background-position: var(--source-logo-position, right 14px bottom 14px);
  opacity: var(--source-logo-opacity, 0.08);
  filter: grayscale(1) contrast(1.12);
  pointer-events: none;
  z-index: 0;
}

.intel-list li > * {
  position: relative;
  z-index: 1;
}

.intel-list .dek {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.intel-note,
.scope-note {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 70ch;
}

.intel-lead {
  margin-top: 0.4rem;
}

.intel-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #f7f7f7;
}

.intel-card--thumb {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.intel-thumb {
  width: 92px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.intel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.intel-main {
  min-width: 0;
}

.intel-card--lead {
  background: #f4f4f4;
}

.intel-card--lead .intel-title {
  font-size: 1.2rem;
}

.intel-groups {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.intel-group {
  display: grid;
  gap: 0.6rem;
}

.intel-group__list {
  display: grid;
  gap: 0.7rem;
}

.intel-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.intel-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.intel-title a {
  text-decoration: none;
  color: inherit;
}

.intel-title a:hover,
.intel-title a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.intel-dek {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.intel-meta {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.scope {
  margin-top: 0.8rem;
}

.scope-head {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  background: #f6f6f6;
  margin-bottom: 0.6rem;
}

.scope-head .kicker {
  margin-bottom: 0.35rem;
}

.front-updates,
.front-briefs {
  display: grid;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
}

.front-briefs {
  margin-bottom: 0.8rem;
}

.front-updates .status,
.front-updates .alerts,
.front-briefs .glance,
.front-briefs .before {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

@media (min-width: 900px) {
  .intel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intel-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .front-updates {
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 2.05fr);
    align-items: start;
  }

  .front-briefs {
    grid-template-columns: 1fr 1fr;
  }
}

.empty-state {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.alert-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

.alert-list:not([hidden]) + .empty-state {
  display: none;
}

.alert-source {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.alert-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.05rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-right: 0.35rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
  justify-items: stretch;
  align-items: stretch;
}

#summary {
  margin-top: 0.8rem;
}

#summary .grid {
  grid-auto-rows: 1fr;
}

.card {
  width: 100%;
  padding: 1rem 1.05rem;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #111;
  --muted: #111;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-bg, linear-gradient(140deg, rgba(240, 242, 244, 0.7), rgba(214, 220, 225, 0.7)));
  background-size: cover;
  background-position: center;
  opacity: var(--card-bg-opacity, 0.28);
  filter: contrast(var(--image-contrast, 1.12)) saturate(var(--image-saturate, 1.06));
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.kicker a {
  text-decoration: none;
}

.kicker a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.glance,
.before {
  margin-block: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.briefing,
.watching {
  margin-block: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.status-line {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
}

.status-line__label {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
}

.subnav {
  margin: 0.75rem 0 0;
  color: #444;
  font-size: 0.95rem;
}

.subnav a {
  text-decoration: none;
  color: inherit;
}

.subnav a:hover,
.subnav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.metrics {
  margin-block: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.4rem 0 0;
}

.metric {
  margin: 0;
}

.metric dt {
  color: var(--muted);
  font-size: 0.95rem;
}

.metric dd {
  margin: 0;
  font-weight: 700;
}

.maps {
  margin-block: 1rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.maps details {
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.maps details:first-of-type {
  padding-top: 0;
  margin-top: 0.4rem;
  border-top: 0;
}

.maps summary {
  cursor: pointer;
  font-weight: 700;
}

.exceptions {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.25rem;
}

.neighborhood,
.county {
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.neighborhood:first-child,
.county:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.neighborhood h2,
.county h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.neighborhood-list,
.county-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.source-inline {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.1rem;
}

.brief-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.25rem;
}

.before-alerts {
  margin-top: 0.8rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.link-list a {
  display: inline;
  font-weight: 600;
}

.arrow {
  margin-left: 0.35em;
}

.see-all {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.card .see-all {
  margin-top: auto;
  padding-top: 0.85rem;
}

.see-all:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.link-list a:hover .arrow,
.link-list a:focus-visible .arrow,
.see-all:hover .arrow,
.see-all:focus-visible .arrow {
  transform: translateX(2px);
}

.sampling {
  margin-top: 1.1rem;
}

.pick-why {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.arrow {
  display: inline-block;
  transition: transform 120ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .arrow {
    transition: none;
  }
}

.what-changed {
  margin: 1rem 0 0;
  color: var(--muted);
}

.what-changed:empty {
  display: none;
}

.details {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1rem;
}

.details > .article-detail,
.details > .county,
.details > .neighborhood {
  margin: 0;
  padding: 1rem 1.05rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-surface);
}


.section-updated {
  margin: -0.55rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-label {
  font-weight: 700;
  color: var(--text);
}

.affects {
  color: var(--muted);
  font-size: 0.95rem;
}

.affects__label {
  font-weight: 700;
  color: var(--text);
}

.source {
  color: var(--muted);
  font-size: 0.95rem;
}

.source a {
  color: inherit;
}

.update-line {
  margin: 0.6rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8f8f8;
  color: var(--muted);
}

.correction {
  display: block;
  margin-top: 0.6rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 10px;
  background: #f8f8f8;
  color: var(--muted);
}

.index-block {
  margin-top: 1rem;
}

.article-index {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.article-index li {
  padding: 0.9rem 1rem;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.article-card--thumb {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.article-thumb {
  width: 112px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.article-main {
  min-width: 0;
}

.article-index li::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--source-logo, none);
  background-repeat: no-repeat;
  background-size: var(--source-logo-size, 110px 110px);
  background-position: var(--source-logo-position, right 16px bottom 16px);
  opacity: var(--source-logo-opacity, 0.09);
  filter: grayscale(1) contrast(1.12);
  pointer-events: none;
  z-index: 0;
}

.article-index li > * {
  position: relative;
  z-index: 1;
}

.article-index a {
  text-decoration: none;
  font-weight: 700;
}

.article-index a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.dek {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.meta-line {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.item-meta {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.article-detail {
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.article-detail:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.article-detail h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.section-header {
  margin: 1rem 0 0.75rem;
}

.section-header h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.section-meta {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.more {
  margin: 1rem 0 0;
}

.more a {
  text-decoration: none;
}

.more a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.breadcrumbs {
  margin-top: 1.25rem;
}

.breadcrumbs a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumbs a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.detail-section {
  max-width: 65ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.detail-section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.detail-section article {
  padding-top: 0.9rem;
  margin-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.detail-section article:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.detail-section h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.detail-section p {
  margin: 0.4rem 0;
}

.back {
  margin: 0.9rem 0 0;
}

.back a {
  text-decoration: none;
}

.back a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}

.prose {
  max-width: 65ch;
  margin: 1rem 0;
}

.prose--wide {
  max-width: 70ch;
}

.prose h2 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.prose p {
  margin: 0.5rem 0;
}

.prose ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.25rem;
}

.credit-panel {
  background: rgba(246, 246, 246, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  max-width: 70ch;
}

.credit-panel--wide {
  max-width: 85ch;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: #f6f6f6;
}

.footer .wrap {
  padding-block: 0.5rem;
}

.footer p {
  margin: 0.15rem 0;
  padding: 0;
  color: var(--muted);
  line-height: 1.35;
}

.footer-links {
  padding-top: 0;
}

.footer-build {
  padding-top: 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 0.12em;
}
.card--pick {
  --card-bg-opacity: 0.18;
}

#weather.card {
  --card-bg: url("../card-bg/weather.webp");
  --card-bg-set: image-set(
    url("../card-bg/weather.avif") type("image/avif"),
    url("../card-bg/weather.webp") type("image/webp")
  );
}

#metro.card {
  --card-bg: url("../downtown.webp");
  --card-bg-set: image-set(
    url("../downtown.avif") type("image/avif"),
    url("../downtown.webp") type("image/webp")
  );
}

#world.card {
  --card-bg: url("../card-bg/world.webp");
  --card-bg-set: image-set(
    url("../card-bg/world.avif") type("image/avif"),
    url("../card-bg/world.webp") type("image/webp")
  );
}

#neighbors.card {
  --card-bg: url("../neighbors.webp");
  --card-bg-set: image-set(
    url("../neighbors.avif") type("image/avif"),
    url("../neighbors.webp") type("image/webp")
  );
}

#transit.card {
  --card-bg: url("../metro_transit.webp");
  --card-bg-set: image-set(
    url("../metro_transit.avif") type("image/avif"),
    url("../metro_transit.webp") type("image/webp")
  );
}

#events.card {
  --card-bg: url("../card-bg/events.webp");
  --card-bg-set: image-set(
    url("../card-bg/events.avif") type("image/avif"),
    url("../card-bg/events.webp") type("image/webp")
  );
}

section.card--pick[aria-labelledby="pick-events-title"] {
  --card-bg: url("../fringe_festival.webp");
  --image-contrast: 1.2;
  --card-bg-set: image-set(
    url("../fringe_festival.avif") type("image/avif"),
    url("../fringe_festival.webp") type("image/webp")
  );
}

section.card--pick[aria-labelledby="pick-neighbors-title"] {
  --card-bg: url("../prince.webp");
  --card-bg-set: image-set(
    url("../prince.avif") type("image/avif"),
    url("../prince.webp") type("image/webp")
  );
}

section.card--pick[aria-labelledby="pick-world-title"] {
  --card-bg: url("../international.webp");
  --card-bg-set: image-set(
    url("../international.avif") type("image/avif"),
    url("../international.webp") type("image/webp")
  );
}

@supports (background-image: image-set(url("../loring_park_1280.avif") type("image/avif"))) {
  body::before {
    background-image: var(--site-bg-photo-set, var(--site-bg-photo, url("../loring_park_1280.webp")));
  }

  body::after {
    background-image:
      linear-gradient(rgba(248, 248, 248, 0.4), rgba(248, 248, 248, 0.4)),
      var(--site-bg-photo-set, var(--site-bg-photo, url("../loring_park_1280.webp")));
  }

  .card::before {
    background-image: var(--card-bg-set, var(--card-bg, linear-gradient(140deg, rgba(240, 242, 244, 0.7), rgba(214, 220, 225, 0.7))));
  }
}
