/* freenode news — professional news design
   Light-first, typographic, hairline rules. Dark mode via media query. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --text: #141414;
  --muted: #6b6b6b;
  --faint: #969696;
  --hair: #dcdad5;
  --rule: #141414;
  --accent: #067c4a;
  --accent-soft: #e7f3ee;
  --danger: #b3261e;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-soft: #070707;
    --text: #d6d6d6;
    --muted: #8a8a8a;
    --faint: #626262;
    --hair: #141414;
    --rule: #bfbfbf;
    --accent: #2fd583;
    --accent-soft: #0c1f16;
    --danger: #ff6b61;
  }
}

:root[data-theme="dark"] {
    --bg: #000000;
    --bg-soft: #070707;
    --text: #d6d6d6;
    --muted: #8a8a8a;
    --faint: #626262;
    --hair: #141414;
    --rule: #bfbfbf;
    --accent: #2fd583;
    --accent-soft: #0c1f16;
    --danger: #ff6b61;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 26px; padding-bottom: 64px; }

/* ---------- header ---------- */
.topbar { border-top: 3px solid var(--accent); }
.brandrow {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 20px; padding-bottom: 14px;
}
.brand { font-family: var(--mono); font-size: 22px; font-weight: 800; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 7px; }

.utilnav { display: flex; align-items: center; gap: 18px; }
.utilnav a {
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.utilnav a:hover { color: var(--accent); }

.sectionnav { border-top: 1px solid var(--hair); border-bottom: 2px solid var(--rule); }
.sectionnav .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
.sectionnav .wrap::-webkit-scrollbar { display: none; }
.sectionnav a {
  font-size: 12.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text); white-space: nowrap;
  padding: 11px 13px 9px; border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.sectionnav a:hover { color: var(--accent); }
.sectionnav a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- shared meta ---------- */
.meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
a.chip:hover { text-decoration: underline; }
.chip-breaking { color: var(--danger); }
.chip-type { color: var(--muted); font-weight: 700; }
.age { font-size: 12.5px; color: var(--faint); }
.dek { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; }
.empty { color: var(--muted); }
.empty a { color: var(--accent); }

.pagetitle { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 18px; }
.pagetitle .sub { font-size: 14px; font-weight: 400; color: var(--muted); margin-left: 10px; }
.sectiontitle {
  border-bottom: 1px solid var(--hair); padding-bottom: 12px; margin-bottom: 4px;
}
.subhead { font-size: 15px; font-weight: 800; margin: 30px 0 10px; }

/* ---------- homepage ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.mainstack { min-width: 0; }

.hero { display: block; padding: 20px 0 24px; border-bottom: 2px solid var(--rule); }
.herotitle a:hover { color: var(--accent); }
.hero .dek { font-size: 18px; max-width: 60ch; }

.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.card { display: block; min-width: 0; }
.cardtitle { font-size: 19.5px; font-weight: 800; line-height: 1.18; letter-spacing: -0.018em; margin: 8px 0 6px; }
.card:hover .cardtitle { color: var(--accent); }
.card .dek { font-size: 14px; }

.storylist { }
.listrow { display: block; padding: 17px 0; border-bottom: 1px solid var(--hair); }
.listtitle { font-size: 20px; font-weight: 800; line-height: 1.18; letter-spacing: -0.018em; margin: 7px 0 6px; }
.listtitle a:hover { color: var(--accent); }
.listrow .dek { font-size: 14.5px; }

/* ---------- sidebar ---------- */
.side { min-width: 0; }
.mod { border-top: 3px solid var(--rule); padding: 12px 0 10px; margin-bottom: 26px; }
.modtitle {
  font-size: 12.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.09em; margin: 0 0 4px; color: var(--text);
}
.modrow { display: block; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.modrow:last-of-type { border-bottom: none; }
.modsubject {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 600; line-height: 1.4;
}
.modrow:hover .modsubject { color: var(--accent); }
.modmeta { display: block; font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.modempty { color: var(--faint); font-size: 13.5px; }
.modmore { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-top: 8px; }

/* ---------- article page ---------- */
.story { max-width: 700px; margin: 0 auto; }
.storytitle { font-size: 38px; font-weight: 900; line-height: 1.08; letter-spacing: -0.028em; margin: 12px 0 14px; }
.storydek { font-size: 19px; color: var(--muted); line-height: 1.45; margin: 0 0 16px; }
.storydate { font-size: 12.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
.storyimg { width: 100%; border-radius: 2px; margin: 6px 0 24px; }
.storybody { font-family: var(--serif); font-size: 18px; line-height: 1.75; }
.storybody p { margin: 0 0 20px; }
.storybody p:first-of-type { font-size: 18px; }
.storybody h2 { font-family: var(--sans); font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 30px 0 10px; }
.storybody a { color: var(--accent); }
.storybody a:hover { text-decoration: underline; }

/* ---------- prose pages (about, digests) ---------- */
.prose { max-width: 660px; }
.prose p { margin: 0 0 16px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose h2 { font-size: 18px; font-weight: 800; margin: 30px 0 10px; }
.prose code {
  font-family: var(--mono); font-size: 13.5px;
  background: var(--bg-soft); border: 1px solid var(--hair);
  border-radius: 2px; padding: 1px 6px;
}
.digestbody { margin-top: 12px; max-width: none; }
.digestbody h2 { font-size: 17px; margin: 20px 0 6px; }
.digestbody p { margin: 6px 0 14px; }

/* ---------- radar & thread pages ---------- */
.radar { list-style: none; margin: 0; padding: 0; }
.item { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.itemhead { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--hair); align-self: center; }
.heat-warm .dot { background: #e8a13c; }
.heat-hot .dot { background: var(--danger); }
.subject { font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.subject:hover { color: var(--accent); }
.why { margin: 6px 0 0 19px; font-size: 14px; color: var(--muted); font-style: italic; }
.item .meta { margin-top: 7px; font-size: 12.5px; color: var(--faint); }
.item .meta span { font-size: 12.5px; }
.item .meta .chip { font-size: 11px; }
.meta-lg { margin-bottom: 24px; }
.age { margin-left: auto; }
.crumb { font-size: 13px; margin: 0 0 14px; }
.crumb a { color: var(--muted); font-weight: 600; }
.crumb a:hover { color: var(--accent); }

.msgs { list-style: none; margin: 0; padding: 0; }
.msg { padding: 16px 0; border-bottom: 1px solid var(--hair); }
.msghead { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }
.author { color: var(--accent); font-weight: 700; }
.excerpt {
  margin: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text);
  max-height: 420px; overflow-y: auto;
  background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 2px; padding: 12px 14px;
}

/* ---------- status & review ---------- */
.tablewrap { overflow-x: auto; }
.statustable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.statustable th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--rule);
}
.statustable td { padding: 7px 10px; border-bottom: 1px solid var(--hair); }
.mono { font-family: var(--mono); font-size: 13px; }
.dim { color: var(--faint); font-size: 12px; margin-left: 6px; }
.badge {
  font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px;
  background: var(--bg-soft); border: 1px solid var(--hair); color: var(--muted);
}
.badge-active { color: var(--accent); border-color: var(--accent); }
.badge-requested, .badge-confirm_replied { color: #a06b12; }
tr.stale td { color: var(--danger); }
.btn {
  font-size: 13.5px; font-weight: 700; border-radius: 2px; padding: 8px 18px;
  margin: 12px 10px 0 0; cursor: pointer; border: 1px solid var(--hair);
  background: var(--bg-soft); color: var(--text);
}
.btn-go { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-no { background: none; border-color: var(--danger); color: var(--danger); }

/* ---------- footer ---------- */
footer { border-top: 2px solid var(--rule); margin-top: 30px; background: var(--bg-soft); }
footer .wrap { padding-top: 26px; padding-bottom: 44px; }
footer p { color: var(--muted); font-size: 13px; margin: 0; }
footer p a { color: var(--accent); }
.footnav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 16px; }
.footnav a { color: var(--text); font-size: 13px; font-weight: 600; }
.footnav a:hover { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .layout { grid-template-columns: 1fr; }
  .herotitle { font-size: 27px; }
  .featured { grid-template-columns: 1fr; gap: 20px; }
  .storytitle { font-size: 29px; }
}

/* ticker pages */
.tickerlist { max-width: 760px; }
.tickerrow { display: block; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.tickersubject { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.tickerrow:hover .tickersubject { color: var(--accent); }
.pager { display: flex; justify-content: space-between; max-width: 760px; padding: 18px 0; font-weight: 700; }
.pager a { color: var(--accent); }

/* footer, news-site grade */
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--hair); }
.footcol h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; margin: 0 0 12px; color: var(--text); }
.footlinks { display: flex; flex-direction: column; gap: 8px; }
.footlinks.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.footlinks a { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.footlinks a:hover { color: var(--accent); }
.fineprint { padding-top: 18px; }
.fineprint p { color: var(--faint); font-size: 11.5px; line-height: 1.6; margin: 0 0 8px; max-width: 940px; }
.fineprint a { color: var(--faint); text-decoration: underline; }
.fineprint a:hover { color: var(--accent); }
.legal h2 { font-size: 15px; }
.legal p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 760px) { .footgrid { grid-template-columns: 1fr 1fr; } }

/* forms */
.siteform { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin-top: 10px; }
.siteform label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 700; }
.siteform .opt { font-weight: 400; color: var(--faint); }
.siteform input, .siteform textarea {
  font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--hair); border-radius: 2px; padding: 10px 12px;
}
.siteform input:focus, .siteform textarea:focus { outline: none; border-color: var(--accent); }
.siteform button { align-self: flex-start; margin-top: 4px; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.formok { color: var(--accent); font-weight: 700; }

/* v3: brand block, wire, section blocks, bolder display */
.brandbox { background: var(--accent); color: #fff; font-weight: 900; font-size: 24px; letter-spacing: -0.02em; padding: 3px 10px 4px; border-radius: 2px; }
.brandword { font-weight: 300; font-size: 24px; letter-spacing: 0.01em; margin-left: 7px; color: var(--text); }
.wire { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--hair); padding: 9px 0; margin-bottom: 4px; overflow: hidden; }
.wireitems { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.wireitems::-webkit-scrollbar { display: none; }
.wireitem { font-size: 13.5px; font-weight: 600; color: var(--text); flex: none; max-width: 480px; overflow: hidden; text-overflow: ellipsis; }
a.wireitem:hover { color: var(--accent); }
.wiretime { color: var(--accent); font-weight: 800; font-size: 11.5px; margin-right: 7px; text-transform: uppercase; }
.herotitle { font-size: 40px; font-weight: 900; line-height: 1.06; letter-spacing: -0.03em; margin: 8px 0 12px; max-width: 24ch; }
.cardtitle, .listtitle { font-weight: 800; }
.secblocks { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.secblock { border-top: 3px solid var(--rule); padding-top: 10px; }
.secblocktitle { font-size: 15px; font-weight: 800; margin: 0 0 10px; }
.secblocktitle a:hover { color: var(--accent); }
.secblockrow { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.4; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.secblockrow:hover { color: var(--accent); }
@media (max-width: 700px) { .secblocks { grid-template-columns: 1fr; } .herotitle { font-size: 29px; } }


/* theme toggle */
.themetoggle { background: none; border: 1px solid var(--hair); border-radius: 2px; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 4px 10px; cursor: pointer; margin-left: 20px; font-family: var(--sans); }
.themetoggle:hover { color: var(--accent); border-color: var(--accent); }

.bylinetag { font-size: 13px; font-weight: 700; color: var(--muted); }
.siteform select { font-family: var(--sans); font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--hair); border-radius: 2px; padding: 10px 12px; }


/* text-first bylines under titles */
.herotext .bylinetag, .cardtext .bylinetag, .listrow .bylinetag { display: inline-block; margin-top: 6px; }

/* newsroom / author */
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.teamcard { display: flex; flex-direction: column; gap: 4px; border-top: 3px solid var(--rule); padding: 12px 0; }
.teamhandle { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.teamcard:hover .teamhandle { color: var(--accent); }
.teamdesk { font-size: 13.5px; color: var(--muted); }
.teamcount { font-size: 12px; color: var(--faint); font-weight: 600; }
a.bylinetag:hover { color: var(--accent); }


/* ===== IRC network page (faithful freenode.net) ===== */
.ircpage { --fg: #00e07a; margin: 0 -24px; }
.ircpage a { color: inherit; }
.irc-hero { padding: 40px 24px 56px; }
.irc-hero-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.irc-h1 { font-family: var(--mono); font-size: clamp(40px, 6vw, 64px); font-weight: 800; line-height: 1.1; color: #fff; margin: 0 0 20px; }
.irc-h1 span { color: var(--fg); }
.irc-hero-sub { font-size: 18px; color: #a1a1aa; margin: 0 0 12px; }
.irc-hero-detail { font-size: 14px; color: #71717a; margin: 0 0 32px; max-width: 46ch; }
.irc-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.irc-btn { display: inline-block; font-family: var(--mono); font-size: 13px; font-weight: 600; padding: 11px 24px; border-radius: 3px; }
.irc-btn-green { background: var(--fg); color: #000; }
.irc-btn-green:hover { background: #00ff88; box-shadow: 0 2px 8px rgba(0,224,122,.3); }
.irc-btn-outline { background: transparent; color: #a1a1aa; border: 1px solid #2e2e2e; }
.irc-btn-outline:hover { border-color: #555; color: #fff; }
.irc-btn-full { width: 100%; text-align: center; margin-top: 16px; }
.term { background: #111; border: 1px solid #1e1e1e; border-radius: 4px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.term-bar { background: #181818; padding: 10px 16px; display: flex; gap: 7px; border-bottom: 1px solid #1e1e1e; }
.tdot { width: 10px; height: 10px; border-radius: 50%; }
.tdot.r { background: #ff5f57; } .tdot.y { background: #ffbd2e; } .tdot.g { background: #28ca42; }
.term-body { padding: 20px; font-family: var(--mono); font-size: 13px; line-height: 1.9; }
.term-body .cmd { color: var(--fg); }
.term-body .out { color: #52525b; }
.tcur { animation: ircblink 1s step-end infinite; }
@keyframes ircblink { 0%,50%{opacity:1} 51%,100%{opacity:0} }
.irc-sec { max-width: 1100px; margin: 0 auto; padding: 72px 24px; }
.irc-sec-top { border-top: 1px solid #1a1a1a; }
.irc-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--fg); margin-bottom: 12px; }
.irc-title { font-size: 32px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.irc-desc { font-size: 15px; color: #71717a; max-width: 520px; margin: 0 0 44px; }
.irc-g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.irc-card { background: #111; border-radius: 4px; padding: 30px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.irc-card h3 { font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.irc-card p { font-size: 14px; color: #71717a; line-height: 1.6; margin: 0; }
.irc-connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.irc-server { width: 100%; font-family: var(--mono); font-size: 13px; border-collapse: collapse; }
.irc-server td { padding: 12px 0; border-bottom: 1px solid #1a1a1a; }
.irc-server td:first-child { color: #52525b; }
.irc-server td:last-child { color: #e4e4e7; text-align: right; }
.irc-server tr:last-child td { border-bottom: none; }
.irc-server a { color: var(--fg); }
.irc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.irc-chip { font-family: var(--mono); font-size: 12px; padding: 5px 12px; background: #181818; color: #a1a1aa; border-radius: 3px; }
.irc-chip:hover { color: #fff; background: #222; }
.irc-chan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 8px; }
.irc-chan { background: #111; padding: 14px 18px; border-radius: 3px; border-left: 2px solid transparent; }
.irc-chan:hover { border-left-color: var(--fg); background: #151515; }
.irc-chan-name { font-family: var(--mono); font-size: 13px; color: #e4e4e7; }
.irc-chan-desc { font-size: 11px; color: #52525b; margin-top: 2px; }
.irc-listnote { margin-top: 24px; font-size: 13px; color: #52525b; font-family: var(--mono); }
.irc-listnote code { background: #151515; padding: 2px 8px; border-radius: 3px; color: var(--fg); }
.irc-staff-group { margin-bottom: 30px; }
.irc-staff-label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #52525b; margin-bottom: 12px; }
.irc-staff-list { display: flex; flex-wrap: wrap; gap: 6px; }
.irc-nick { font-family: var(--mono); font-size: 13px; padding: 8px 16px; background: #111; color: #d4d4d8; border-radius: 3px; }
.irc-helpbox { background: #111; border-left: 2px solid var(--fg); border-radius: 3px; padding: 24px; margin-top: 36px; max-width: 480px; }
.irc-helpbox h4 { font-size: 14px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.irc-helpbox p { font-size: 13px; color: #71717a; margin: 0 0 12px; }
.irc-helpcmds { display: flex; gap: 8px; }
.irc-helpcmd { font-family: var(--mono); font-size: 12px; padding: 6px 12px; background: #181818; color: var(--fg); border-radius: 3px; }
.irc-credits { border-top: 1px solid #1a1a1a; padding: 56px 24px; text-align: center; }
.irc-credits-text { font-size: 13px; color: #52525b; margin: 0 0 26px; }
.irc-credits-row { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.irc-credits-link { font-family: var(--mono); font-size: 15px; font-weight: 600; color: #52525b; }
.irc-credits-link:hover { color: var(--fg); }
.irc-credits-sep { width: 1px; height: 20px; background: #262626; }
@media (max-width: 900px) { .irc-hero-inner { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 768px) { .irc-g3, .irc-connect-grid { grid-template-columns: 1fr; } .irc-credits-sep { display: none; } }

/* The IRC page is always dark (network identity), regardless of site theme */
.ircpage { background: #0a0a0a; color: #e4e4e7; }

.brandmark { color: var(--text); }
.brandnode { color: #00e07a; }
.brandword { font-weight: 300; font-size: 20px; color: var(--muted); }
.irc-wiki { font-size: 13px; color: #71717a; margin: 14px 0 0; }
.irc-wiki a { color: #00e07a; }

/* tags, search, related */
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--hair); }
.tag { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 2px; padding: 4px 10px; }
.tag:hover { color: var(--accent); border-color: var(--accent); }
.related { max-width: 700px; margin: 40px auto 0; padding-top: 20px; border-top: 2px solid var(--rule); }
.relatedtitle { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
.related .listrow { padding: 12px 0; }
.related .listtitle { font-size: 17px; margin: 4px 0 0; }
.utilsearch { font-size: 13px; font-weight: 600; color: var(--muted); }
.utilsearch:hover { color: var(--accent); }
.searchform { display: flex; gap: 10px; max-width: 560px; margin: 4px 0 20px; }
.searchform input { flex: 1; font-family: var(--sans); font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--rule); border-radius: 2px; padding: 11px 14px; }
.searchform input:focus { outline: none; border-color: var(--accent); }
.searchform button { font-family: var(--sans); font-size: 14px; font-weight: 700; background: var(--accent); color: #fff; border: none; border-radius: 2px; padding: 0 22px; cursor: pointer; }
.searchmeta { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* self-hosted software directory */
.swtags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.swtag { font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 2px; padding: 4px 10px; }
.swtag span { color: var(--faint); font-size: 11px; }
.swtag:hover, .swtag.on { color: var(--accent); border-color: var(--accent); }
.swgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.swcard { border: 1px solid var(--hair); border-radius: 3px; padding: 15px 16px; }
.swcard:hover { border-color: var(--accent-dim); }
.swhead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.swname { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.swname:hover { color: var(--accent); }
.swstars { font-size: 12px; color: var(--faint); white-space: nowrap; }
.swdesc { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 7px 0 10px; }
.swmeta { display: flex; gap: 12px; font-family: var(--mono); font-size: 11.5px; }
.swmeta a { color: var(--faint); }
.swmeta a:hover { color: var(--accent); }

/* header search box */
.navsearch { margin: 0; display: flex; }
.navsearch input { font-family: var(--sans); font-size: 13px; color: var(--text); background: var(--bg-soft); border: 1px solid var(--hair); border-radius: 2px; padding: 6px 12px; width: 150px; transition: width .15s, border-color .15s; }
.navsearch input:focus { outline: none; border-color: var(--accent); width: 210px; }
.navsearch input::placeholder { color: var(--faint); }
@media (max-width: 700px) { .navsearch input { width: 110px; } .navsearch input:focus { width: 140px; } }

/* article share buttons */
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; }
.sbtn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hair); border-radius: 3px; background: var(--bg); color: var(--muted); cursor: pointer; padding: 0; }
.sbtn svg { width: 17px; height: 17px; fill: currentColor; }
.sbtn:hover { color: var(--text); border-color: var(--accent); }
.sbtn.copied { color: var(--accent); border-color: var(--accent); }

/* newsroom desk (admin) */
.desk { max-width: 900px; }
.statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 4px 0 24px; }
.stat { border: 1px solid var(--hair); border-radius: 3px; padding: 12px 14px; }
.statn { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.statl { display: block; font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--rule); margin-bottom: 22px; overflow-x: auto; }
.tab { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted); background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: 10px 16px; cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tabbadge { display: inline-block; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.tabpanel { display: none; }
.tabpanel.on { display: block; }
.qcard { border: 1px solid var(--hair); border-radius: 4px; padding: 16px 18px; margin-bottom: 14px; }
.qhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.qbadge { font-family: var(--mono); font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
.qbadge-article { color: var(--accent); }
.qbadge-tip { color: var(--danger); }
.qtitle { font-size: 19px; font-weight: 800; margin: 0 0 4px; line-height: 1.25; }
.qbody { margin: 10px 0; }
.qbody summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--accent); }
.qbody .digestbody { margin-top: 12px; padding: 14px; border: 1px solid var(--hair); border-radius: 3px; background: var(--bg-soft); max-height: 400px; overflow-y: auto; }
.qactions { display: flex; gap: 10px; margin-top: 12px; }
.qactions form { margin: 0; }
.deskhint { color: var(--muted); font-size: 14px; max-width: 60ch; margin: 0 0 16px; }
.desksub { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin: 24px 0 10px; color: var(--muted); }
.commlist { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.commlist li { padding: 7px 0; border-bottom: 1px solid var(--hair); }
.commstatus { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 2px; margin-right: 8px; background: var(--bg-soft); border: 1px solid var(--hair); }
.commstatus-written { color: var(--accent); border-color: var(--accent); }
.commstatus-queued { color: #a06b12; }
.formrow { display: flex; gap: 14px; }
.formrow label { flex: 1; }

/* review edit forms */
.qpreview { margin-bottom: 12px; }
.qpreview summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.qpreview .digestbody { margin-top: 10px; padding: 14px; border: 1px solid var(--hair); border-radius: 3px; background: var(--bg-soft); max-height: 340px; overflow-y: auto; }
.editform { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.edit-title { font-family: var(--sans); font-size: 18px; font-weight: 800; color: var(--text); background: var(--bg); border: 1px solid var(--hair); border-radius: 2px; padding: 8px 10px; }
.edit-dek { font-family: var(--sans); font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--hair); border-radius: 2px; padding: 7px 10px; }
.edit-body { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text); background: var(--bg); border: 1px solid var(--hair); border-radius: 2px; padding: 10px 12px; resize: vertical; }
.edit-title:focus, .edit-dek:focus, .edit-body:focus { outline: none; border-color: var(--accent); }
.chip-analysis { color: #fff; background: var(--danger); padding: 1px 7px; border-radius: 2px; }

/* ---- accounts: login / register / account ---- */
.authcard { max-width: 440px; margin: 48px auto; padding: 0 16px; }
.authtitle { font-family: var(--sans); font-weight: 900; font-size: 28px; margin: 0 0 12px; }
.authlede { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 20px; }
.authform { display: flex; flex-direction: column; gap: 14px; }
.authform label { display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-size: 13px; font-weight: 600; }
.authform input, .siteform input, .siteform select, .siteform textarea { font-family: var(--sans); font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--hair); border-radius: 2px; padding: 9px 11px; }
.authform input:focus { outline: none; border-color: var(--accent); }
.authform .btn-go { margin-top: 6px; }
.authalt { margin-top: 20px; font-size: 13px; color: var(--muted); }
.authmsg { background: rgba(0,160,90,0.12); border: 1px solid rgba(0,160,90,0.4); color: var(--text); padding: 10px 12px; border-radius: 2px; font-size: 13px; }
.autherr { background: rgba(200,40,40,0.10); border: 1px solid rgba(200,40,40,0.45); color: var(--text); padding: 10px 12px; border-radius: 2px; font-size: 13px; }
.opt { font-weight: 400; color: var(--muted); }
.linkbtn { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }

/* ---- desk (writer + shared) ---- */
.deskbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.deskbaracts { display: flex; align-items: center; gap: 10px; }
.deskbaracts form { display: inline; }
.deskwho { font-family: var(--sans); font-weight: 700; font-size: 14px; }
.banner { padding: 10px 14px; border-radius: 2px; font-size: 14px; margin: 4px 0 18px; }
.banner-wait { background: rgba(210,150,0,0.12); border: 1px solid rgba(210,150,0,0.45); }
.banner-no { background: rgba(200,40,40,0.10); border: 1px solid rgba(200,40,40,0.45); }
.deskitems { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.deskitem { border: 1px solid var(--hair); border-radius: 2px; padding: 14px 16px; }
.deskitem-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deskitem-title { font-family: var(--sans); font-weight: 700; font-size: 16px; }
.deskitem-acts { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.deskitem-acts form { display: inline; }
.muted { color: var(--muted); font-size: 13px; }
.editornote { margin: 10px 0; padding: 9px 12px; border-left: 3px solid var(--accent); background: var(--panel); font-size: 13.5px; line-height: 1.5; }

/* ---- status pills ---- */
.pill { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 2px; border: 1px solid var(--hair); color: var(--muted); }
.pill-draft { color: var(--muted); }
.pill-submitted { color: #b06a00; border-color: rgba(210,150,0,0.5); }
.pill-changes { color: var(--accent); border-color: var(--accent); }
.pill-published { color: #0a8a4a; border-color: rgba(10,160,90,0.5); }
.pill-rejected { color: #b33; border-color: rgba(200,40,40,0.5); }
.pill-active { color: #0a8a4a; border-color: rgba(10,160,90,0.5); }
.pill-pending { color: #b06a00; border-color: rgba(210,150,0,0.5); }
.pill-suspended { color: #b33; border-color: rgba(200,40,40,0.5); }
.pill-role { color: var(--text); }

/* ---- review: contributor cards + writers table ---- */
.qcard-contrib { border-left: 3px solid var(--accent); }
.qbadge-contrib { color: var(--accent); font-weight: 700; }
.notewrap { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.notewrap .btn-no { align-self: flex-start; }
.writers { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.writers th { text-align: left; font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--hair); padding: 8px 10px; }
.writers td { padding: 10px; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.wacts { display: flex; gap: 6px; flex-wrap: wrap; }
.wacts form { display: inline; }

/* ---- about + newsroom contributors ---- */
.aboutprose { max-width: 68ch; }
.aboutlede { font-size: 18px; line-height: 1.6; }
.aboutprose h2 { font-family: var(--sans); font-weight: 800; font-size: 19px; margin: 30px 0 8px; }
.aboutcontact { list-style: none; padding: 0; margin: 8px 0 0; }
.aboutcontact li { padding: 3px 0; }
.teamsub { font-family: var(--sans); font-weight: 800; font-size: 20px; margin: 34px 0 14px; }
