/* Neuron UZ — minimal light theme (clean white, large type, pastel accents) */
:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-2: #f0f0f2;
  --border: #ececec;
  --border-hi: #dcdcdf;
  --text: #0d0d0d;
  --muted: #5d5d5d;
  --dim: #8e8e93;
  --accent: #0d0d0d;
  --pastel: linear-gradient(135deg, #f0d9ff 0%, #c7e0ff 50%, #fde2c8 100%);
  --pastel-2: linear-gradient(135deg, #d9f5e6 0%, #d6e4ff 55%, #f4dcff 100%);
  --header-bg: rgba(255, 255, 255, .88);
  --btn-bg: #0d0d0d;
  --btn-fg: #ffffff;
  --btn-hover: #333333;
  --noimg-text: rgba(13, 13, 13, .55);
  --mark: #f0d9ff;
  --radius: 16px;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
/* Dark mode: follows the OS setting unless the header toggle picked a theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --header-bg: rgba(11, 11, 11, .85);
    --bg: #0b0b0b;
    --surface: #161616;
    --surface-2: #202020;
    --border: #262626;
    --border-hi: #3a3a3a;
    --text: #ececec;
    --muted: #a3a3a3;
    --dim: #6f6f6f;
    --accent: #ececec;
    --btn-bg: #ececec;
    --btn-fg: #0b0b0b;
    --btn-hover: #ffffff;
    --noimg-text: rgba(255, 255, 255, .6);
    --mark: #3b2a55;
    --pastel: linear-gradient(135deg, #3a2753 0%, #1f3354 50%, #4a3322 100%);
    --pastel-2: linear-gradient(135deg, #1d3d30 0%, #1f2f55 55%, #3d2552 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --header-bg: rgba(11, 11, 11, .85);
  --bg: #0b0b0b;
  --surface: #161616;
  --surface-2: #202020;
  --border: #262626;
  --border-hi: #3a3a3a;
  --text: #ececec;
  --muted: #a3a3a3;
  --dim: #6f6f6f;
  --accent: #ececec;
  --btn-bg: #ececec;
  --btn-fg: #0b0b0b;
  --btn-hover: #ffffff;
  --noimg-text: rgba(255, 255, 255, .6);
  --mark: #3b2a55;
  --pastel: linear-gradient(135deg, #3a2753 0%, #1f3354 50%, #4a3322 100%);
  --pastel-2: linear-gradient(135deg, #1d3d30 0%, #1f2f55 55%, #3d2552 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Footer sits at the bottom of the window on short pages. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-hi); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.muted { color: var(--muted); }
.label { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0; }
.kicker { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.kicker .src { color: var(--text); font-weight: 500; }
.kicker .sep { color: var(--dim); }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo .logo-uz { color: var(--dim); font-weight: 600; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; border-radius: 50%; display: block; flex: none; }
.logo-sm .logo-mark { width: 26px; height: 26px; }
/* Light logo by default; dark logo in dark mode (OS setting or toggle). */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.logo-sm { font-size: 17px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--muted); font-size: 14.5px; padding: 7px 13px; border-radius: 999px; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.nav .short { display: none; }
@media (max-width: 960px) { .nav .full { display: none; } .nav .short { display: inline; } }
.header-actions .nav-tg { color: #fff; background: #0a84ff; font-size: 14.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px; text-decoration: none; margin-left: 4px; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(90, 200, 255, .55), 0 0 12px rgba(10, 132, 255, .75), 0 0 28px rgba(10, 132, 255, .45);
  text-shadow: 0 0 8px rgba(255, 255, 255, .45); animation: tg-glow 2.6s ease-in-out infinite; }
.header-actions .nav-tg:hover { color: #fff; background: #1a8fff; box-shadow: 0 0 0 1px rgba(120, 215, 255, .8), 0 0 16px rgba(10, 132, 255, .95), 0 0 40px rgba(10, 132, 255, .6); }
@keyframes tg-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(90, 200, 255, .55), 0 0 12px rgba(10, 132, 255, .75), 0 0 28px rgba(10, 132, 255, .45); }
  50% { box-shadow: 0 0 0 1px rgba(120, 215, 255, .8), 0 0 18px rgba(10, 132, 255, .95), 0 0 42px rgba(10, 132, 255, .6); }
}
@media (prefers-reduced-motion: reduce) { .header-actions .nav-tg { animation: none; } }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; margin-left: 2px; }
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.nav { margin-left: auto; }
/* Phones/small tablets: logo + actions on the first line, menu links on their own line. */
@media (max-width: 760px) {
  .header-row { gap: 4px 8px; padding-top: 10px; padding-bottom: 6px; }
  .header-actions { margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: -9px; flex-wrap: nowrap; }
  .nav a { padding: 6px 9px; font-size: 14px; white-space: nowrap; }
  .theme-toggle { width: 34px; height: 34px; }
  /* Links row scrolls sideways instead of overflowing on very narrow phones. */
  .nav { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
}
/* Small phones (≤400px): keep logo + actions on one line. */
@media (max-width: 400px) {
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .header-actions { gap: 2px; }
  .header-actions .nav-tg { font-size: 14px; padding: 6px 13px; margin-left: 2px; }
  .theme-toggle { width: 32px; height: 32px; }
}
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: none; }
}

/* hero & page heads */
.hero, .page-head { padding: 64px 0 36px; }
.hero h1, .page-head h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; margin: 12px 0 16px; max-width: 16em; }
.page-sub { color: var(--muted); font-size: 18px; max-width: 38em; margin: 0; }
.label a { color: var(--muted); text-decoration: none; }
.label a:hover { color: var(--text); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 28px; }
.card { display: flex; flex-direction: column; }
.card-media { display: block; text-decoration: none; }
.media { aspect-ratio: 16 / 10; background: var(--pastel); border-radius: var(--radius); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .media img { transform: scale(1.03); }
@media (hover: none) { .card:hover .media img { transform: none; } }
.noimg { display: flex; align-items: flex-end; padding: 16px; }
.grid .card:nth-child(even) .noimg { background: var(--pastel-2); }
.noimg span { font-size: 13px; font-weight: 600; color: var(--noimg-text); }
.card-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; margin: 0; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-decoration-color: var(--text); }
.card-lead { color: var(--muted); font-size: 15.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured { margin-bottom: 56px; }
.card-featured { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.card-featured .media { aspect-ratio: 4 / 3; }
.card-featured .card-body { padding: 0; }
.card-featured .card-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.03em; }
.card-featured .card-lead { font-size: 17px; -webkit-line-clamp: 4; }
@media (max-width: 900px) {
  .card-featured { grid-template-columns: 1fr; gap: 16px; }
  .card-featured .media { aspect-ratio: 16 / 10; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.chip { font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 4px 12px; border-radius: 999px; text-decoration: none; }
.chip:hover { color: var(--text); background: var(--border); }
.chip b { color: var(--dim); font-weight: 500; margin-left: 3px; }
.chip-co { color: var(--text); background: transparent; border: 1px solid var(--border-hi); }

.btn { display: inline-block; font-size: 15px; font-weight: 500; color: var(--btn-fg); background: var(--btn-bg); padding: 11px 22px; border-radius: 999px; text-decoration: none; }
.btn:hover { background: var(--btn-hover); color: var(--btn-fg); }
.more { text-align: center; margin: 56px 0; }
.taxo { margin: 36px 0; }
.taxo .label { margin-bottom: 12px; }
.empty { color: var(--muted); font-size: 18px; padding: 24px 0 80px; }

/* article */
.article { max-width: 720px; margin: 0 auto; padding: 56px 0 10px; }
.article h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; margin: 14px 0 18px; }
.lead { font-size: 21px; line-height: 1.5; color: var(--muted); margin: 0 0 20px; }
.article > .chips { margin-bottom: 32px; }
.hero-img { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; background: var(--pastel); }
.hero-img img { width: 100%; max-height: 480px; object-fit: cover; }
.hero-img figcaption { font-size: 13px; color: var(--dim); padding: 10px 4px 0; background: var(--bg); }
.prose p { margin: 0 0 1.2em; font-size: 18px; line-height: 1.7; }
.prose.narrow { max-width: 720px; padding-bottom: 40px; }
.box { background: var(--surface); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.box .label { margin-bottom: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.box p { margin: 0; }
.facts ul { margin: 0; padding: 0; list-style: none; }
.facts li { position: relative; padding-left: 20px; margin: 8px 0; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.why { background: var(--pastel); }
.source { background: transparent; border: 1px solid var(--border); }
.source-name { font-weight: 600; }
.source-title { color: var(--muted); font-style: italic; margin: 4px 0 16px !important; }
.fine { font-size: 13px; color: var(--dim); margin-top: 16px !important; line-height: 1.55; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0; }
.share a, .share button { font: 14px var(--sans); color: var(--text); background: var(--surface-2); border: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.share a:hover, .share button:hover { background: var(--border); }
.related { max-width: 1160px; margin: 56px auto 64px; }
.related > .label { margin-bottom: 20px; color: var(--text); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }

/* archive */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.month { display: flex; justify-content: space-between; align-items: center; background: var(--surface); border-radius: 14px; padding: 18px 20px; text-decoration: none; font-weight: 500; }
.month:hover { background: var(--surface-2); }
.month b { color: var(--dim); font-weight: 500; }
.month-chips { margin: 0 0 28px; }
.day { margin: 0 0 44px; }
.day-title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.day-title .muted { font-size: 15px; font-weight: 400; letter-spacing: 0; margin-left: 6px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); align-items: center; }
.row-thumb { display: block; text-decoration: none; }
.thumb { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--pastel); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.noimg { padding: 8px; }
.thumb.noimg span { font-size: 11px; }
.row-title { display: block; font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.row-title:hover { text-decoration: underline; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.row-meta time { font-variant-numeric: tabular-nums; }
.row-meta .sep { color: var(--dim); }
@media (max-width: 640px) {
  .rows li { grid-template-columns: 96px 1fr; gap: 14px; }
  .row-title { font-size: 16px; }
}

/* search: one rounded bar — query | company | topic | from | to */
.search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin-bottom: 18px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--border-hi); box-shadow: 0 0 0 4px var(--surface-2); }
.s-field { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; flex: none; }
.s-field + .s-field::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 1px; background: var(--border-hi); }
.s-query { flex: 1 1 auto; min-width: 0; padding-left: 14px; }
.s-query svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; }
.search input, .search select { font: 14.5px var(--sans); color: var(--text); background: transparent; border: 0; outline: none; padding: 0; height: 100%; min-width: 0; }
.s-query input { width: 100%; font-size: 15.5px; }
.s-query input::placeholder { color: var(--dim); }
/* Narrower screens: the bar becomes a card, query on its own row. */
@media (max-width: 1000px) {
  .search { flex-wrap: wrap; border-radius: 22px; padding: 4px; }
  .s-query { flex-basis: 100%; border-bottom: 1px solid var(--border); }
  .s-field:not(.s-query) { flex: 1 1 auto; }
  .s-query + .s-field::before { display: none; }
}
@media (max-width: 640px) {
  .s-field::before { display: none; }
  /* Phones: a clean stacked list, one field per row. */
  .s-field:not(.s-query) { flex: 1 1 100%; }
  .s-field + .s-field:not(.s-query + .s-field) { border-top: 1px solid var(--border); }
  .s-date span { min-width: 44px; }
}
/* custom dropdowns (search.js) */
.search { position: relative; }
.s-select { padding: 0 6px; }
.dd-native, .dt-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dd-btn { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 14.5px var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s; }
.dd-btn:hover, .dd-open .dd-btn { background: var(--surface-2); }
.dd-btn.dd-set .dd-label { font-weight: 600; }
.dd-label { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.dd-chev { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.dd-open .dd-chev { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; min-width: 260px; max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 18px 48px rgba(0,0,0,.16);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top left; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s; }
.dd-open .dd-menu { opacity: 1; transform: none; visibility: visible; }
:root[data-theme="dark"] .dd-menu { background: #151515; border-color: #2a2a2a; box-shadow: 0 18px 48px rgba(0,0,0,.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dd-menu { background: #151515; border-color: #2a2a2a; box-shadow: 0 18px 48px rgba(0,0,0,.6); } }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 10px; border-radius: 10px; font-size: 14.5px; color: var(--text); cursor: pointer; }
.dd-item.focus { background: var(--surface-2); }
.dd-item.empty .dd-text { color: var(--dim); }
.dd-check { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.dd-item.selected { font-weight: 600; }
.dd-item.selected .dd-check { opacity: 1; color: #0a84ff; }
.dd-text { flex: 1; }
.dd-count { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; background: var(--surface); padding: 1px 8px; border-radius: 999px; }
.dd-menu::-webkit-scrollbar { width: 10px; }
.dd-menu::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
@media (prefers-reduced-motion: reduce) { .dd-menu, .dd-chev { transition: none; } }

/* date buttons */
.s-date span { font-size: 12.5px; color: var(--dim); }
.dt-btn { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font: 14.5px var(--sans); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.dt-btn:hover { background: var(--surface-2); color: var(--text); }
.dt-set .dt-btn { color: var(--text); font-weight: 600; }
.dt-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.dt-clear { display: none; width: 22px; height: 22px; margin-left: -6px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.dt-clear:hover { color: var(--text); background: var(--border-hi); }
.dt-set .dt-clear { display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 1000px) {
  .s-select .dd-btn { width: 100%; justify-content: space-between; }
  .dd-label { max-width: none; }
}
@media (max-width: 640px) {
  .s-select { padding: 0 6px; }
  .dd-menu { left: 6px; right: 6px; min-width: 0; }
  .s-date .dt-btn { flex: 1; }
}
.results { list-style: none; margin: 0 0 64px; padding: 0; }
.results li { padding: 20px 0; border-bottom: 1px solid var(--border); }
.results h3 { margin: 6px 0 4px; font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
.results h3 a { text-decoration: none; }
.results p { margin: 0; color: var(--muted); font-size: 15.5px; }
mark { background: var(--mark); color: var(--text); border-radius: 4px; padding: 0 2px; }

/* footer: one compact line */
.site-footer { border-top: 1px solid var(--border); margin-top: 48px; padding: 18px 0; }
.footer-row { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.footer-note { flex: 1 1 auto; margin: 0; font-size: 13px; color: var(--dim); }
.footer-links { display: flex; gap: 18px; font-size: 13.5px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.site-footer .logo { text-decoration: none; }
@media (max-width: 640px) { .footer-note { order: 3; flex-basis: 100%; } .footer-links { margin-left: auto; } }

/* archive filters */
.filters { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; margin: 0 0 32px; background: var(--surface); border-radius: 18px; }
.filter-group { display: flex; align-items: baseline; gap: 14px; }
.filter-label { flex: none; width: 78px; font-size: 13px; font-weight: 600; color: var(--muted); }
.filters .chips { margin: 0; padding: 0; }
.filters .chip { background: var(--bg); }
.filters .chip.active { background: var(--btn-bg); color: var(--btn-fg); }
.filters .chip.active b { color: inherit; opacity: .7; }
.filter-reset { align-self: flex-start; font: 13px var(--sans); color: var(--muted); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.filter-reset:hover { color: var(--text); }
@media (max-width: 640px) { .filter-group { flex-direction: column; gap: 8px; } .filters { padding: 16px; } }
.rows li[hidden], .day[hidden] { display: none; }

/* dark mode: fine stone grain over the background */
:root[data-theme="dark"] body::before { content: ""; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { content: ""; } }
body::before {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* about page: text left, dark banner right */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 72px; }
.about-text p:last-child { margin-bottom: 0; }
.about-banner { margin: 0; position: sticky; top: 96px; }
.about-banner img { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 16px 48px rgba(0,0,0,.14); }
@media (max-width: 960px) { .about { gap: 36px; } }
@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-banner { position: static; max-width: 480px; }
  .about-banner img { border-radius: 18px; }
}

/* tablets */
@media (max-width: 1000px) {
  .hero, .page-head { padding: 48px 0 28px; }
  .article { padding-top: 44px; }
}
/* phones: tighter spacing and body sizes */
@media (max-width: 640px) {
  .hero, .page-head { padding: 28px 0 22px; }
  .hero h1, .page-head h1 { margin: 8px 0 12px; }
  .page-sub { font-size: 16.5px; }
  .featured { margin-bottom: 40px; }
  .grid { gap: 36px 0; }
  .card-title { font-size: 19.5px; }
  .card-featured .card-lead { font-size: 16px; }
  .more { margin: 40px 0; }
  .article { padding-top: 24px; }
  .article h1 { margin: 10px 0 14px; }
  .lead { font-size: 18px; }
  .article > .chips { margin-bottom: 24px; }
  .hero-img { margin-bottom: 26px; border-radius: 14px; }
  .prose p { font-size: 17px; line-height: 1.68; }
  .box { padding: 18px; margin: 22px 0; border-radius: 14px; }
  .related { margin: 40px auto 48px; }
  .related > .label { font-size: 20px; }
  .day-title { font-size: 20px; }
  .site-footer { margin-top: 32px; }
}
/* iOS Safari zooms into inputs smaller than 16px on focus. */
@media (pointer: coarse) {
  .search input, .s-query input { font-size: 16px; }
}
