/* frostbyte look for the copied news app (style.css is news-sources/web's, without the parts of the rating, the Update
   button and the message popup, which the public page does not have; this file overrides it). */
:root:root {
  --bg: #050c17;
  --panel: rgba(139, 224, 255, .045);
  --panel-solid: #0a1626;
  --panel-2: #08121f;
  --text: #eef8ff;
  --muted: #7d95b0;
  --line: rgba(139, 224, 255, .14);
  --accent: #8be0ff;
  --accent-ink: #050c17;
  --accent-soft: rgba(139, 224, 255, .12);
  --ice: #8be0ff;
  --new: #ff8a5c;
  --mark: rgba(139, 224, 255, .3);
  --shadow: none;
  --k-article: #8be0ff;
  --k-model: #6dffc9;
  --k-paper: #c9b4ff;
  --k-code: #b4c6d8;
  --k-discussion: #ffb37a;
  --f-head: "Barlow Condensed", Bahnschrift, "Arial Narrow", sans-serif;
  --f-body: Inter, system-ui, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", Consolas, monospace;
  color-scheme: dark;
}
body {
  font-family: var(--f-body);
  background: radial-gradient(1100px 700px at 85% -10%, #0c1d33, transparent 65%), var(--bg) fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(225, 245, 255, .06) 1.2px, transparent 1.6px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
code { font-family: var(--f-mono); }

/* header */
.top { background: rgba(5, 12, 23, .82); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ice); white-space: nowrap; text-decoration: none; }
.brand .mark { display: grid; filter: drop-shadow(0 0 8px rgba(139, 224, 255, .5)); }
.brand b { font: 700 22px/1 var(--f-head); color: var(--text); letter-spacing: .01em; }
.brand .slash { font: 500 18px var(--f-mono); color: rgba(139, 224, 255, .4); }
.brand .page { font: 700 22px/1 var(--f-head); color: var(--ice); }
.brand:hover b { color: #fff; }
.search input { background: rgba(5, 12, 23, .6); }
.search input:focus { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(139, 224, 255, .15); }
.lang { display: flex; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(5, 12, 23, .6); }
.lang button { font: 700 12px var(--f-mono); letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; color: var(--muted); border: 0; background: none; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ice); color: var(--bg); }
.seg { background: rgba(5, 12, 23, .6); }
.sort select, .filters select { background: var(--panel-solid); }
.btn { border-radius: 10px; }

/* filters column */
.about { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.filters h3 { font: 700 11px var(--f-mono); letter-spacing: .18em; color: var(--ice); }
.chip { background: rgba(5, 12, 23, .5); }

/* list */
.day { font: 700 11.5px var(--f-mono); letter-spacing: .18em; color: var(--ice); display: flex; align-items: center; gap: 10px; }
.day::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--ice); }
.card { border-radius: 14px; backdrop-filter: blur(3px); transition: border-color .2s, background .2s; }
.card:hover { background: rgba(139, 224, 255, .07); border-color: rgba(139, 224, 255, .4); }
.card.active, .card:focus-visible { box-shadow: 0 0 0 3px rgba(139, 224, 255, .15); }
.card h2 a:hover { text-decoration: none; color: #fff; }
.kind { font-family: var(--f-mono); font-weight: 700; letter-spacing: .1em; }
.tag { background: rgba(139, 224, 255, .1); }
.thumb { background: #0a1626; }

/* drawer */
.drawer { background: #07111e; border-left-color: var(--line); box-shadow: -20px 0 60px rgba(0, 0, 0, .5); }
.drawer > .close { background: #07111e; }
.drawer h2 { font-family: var(--f-body); }
.backdrop { background: rgba(2, 6, 12, .55); backdrop-filter: blur(2px); }
.fulltext-h { font-family: var(--f-mono); letter-spacing: .16em; color: var(--ice); }
.loading-text { background: linear-gradient(90deg, #08121f, rgba(139, 224, 255, .1), #08121f); background-size: 200% 100%; }

@media (max-width: 860px) {
  .top-row:first-child { flex-wrap: wrap; }
  .brand { order: 0; }
  .lang { order: 1; margin-left: auto; }
  .search { order: 2; flex-basis: 100%; }
  #filters-toggle { order: 1; }
  :root:root { --header-h: 190px; }
}
html, .filters, .drawer { scrollbar-color: rgba(139, 224, 255, .22) transparent; }

/* footer: exactly the landing page footer (landing.css), always at the bottom of the window */
body { display: flex; flex-direction: column; min-height: 100vh; }
.layout { flex: 1 0 auto; width: 100%; }
.foot { width: 100%; max-width: 1320px; margin: 70px auto 0; padding: 0 20px 28px; overflow: hidden; line-height: 1.6; }   /* same width as .layout */
@media (max-width: 860px) { .foot { padding: 0 12px 24px; } }
.foot-word {
  font: 800 clamp(90px, 20vw, 250px)/.8 var(--f-head); text-align: center; letter-spacing: -.01em;
  background: linear-gradient(180deg, rgba(139, 224, 255, .16), rgba(139, 224, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none;
}
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ice); }
