/* MacGameTorrent — shelf layout
   colors, type, then the pieces of the page */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2212, U+FEFF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2212, U+FEFF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2212, U+FEFF;
}

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2212, U+FEFF;
}

:root {
  --bg: #0f1726;
  --ink: #dfe6f1;
  --accent: #5aa2ff;
  --paper: #162033;
  --paper-2: #1c2940;
  --line: #2a3b58;
  --muted: #8fa3bf;
  --soft: #c5d2e4;
  --ink-dim: #9bb4d4;
  --mast: #101a2c;
  --chip: #24344e;
  --lead-a: #1a2942;
  --deep: #07101c;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color-scheme: dark;
}

img { max-width: 100%; height: auto; }

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a { color: var(--accent); }

a:hover { color: #7eb0ff; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: #24344e;
  color: var(--ink);
}

.a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.skp {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 60;
  background: var(--accent);
  color: var(--deep);
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 700;
}

.skp:focus { top: 10px; }

/* header */

.hd {
  background: var(--mast);
  border-bottom: 1px solid var(--line);
}

.hd-row,
.nav-m,
.shlf {
  width: min(1120px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

.hd-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 0;
}

.wm {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.wm:hover { color: var(--ink); }

.lg-mk { display: block; }

.lg-nm { font-size: 1.12rem; line-height: 1; }

.slgn {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brgr {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 4px;
}

.usbx {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 auto;
}

.sgnl {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.belw { position: relative; }

.belb,
.lout {
  background: transparent;
  border: 0;
  padding: 4px;
  color: var(--ink);
  cursor: pointer;
}

.belb { position: relative; display: inline-flex; }

.beln {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--deep);
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.bdrp {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: min(320px, 78vw);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 0 0;
  z-index: 30;
}

.belw:hover .bdrp,
.belw:focus-within .bdrp { display: block; }

.bdrp ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bdrp li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.bdrp li a:hover { background: var(--paper-2); }

.bdrp .is-new a { box-shadow: inset 3px 0 0 var(--accent); }

.bdrp time {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.8rem;
}

.bdrp-all {
  display: block;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.whol {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.avat {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.avlg { width: 56px; height: 56px; font-size: 1rem; }

.lout { font-weight: 700; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 3px; }

.nav-m ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}

.nav-m a {
  display: inline-block;
  color: var(--soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 6px 10px 8px;
  border-bottom: 2px solid transparent;
}

.nav-m a:hover { color: var(--ink); }

.nav-m a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* magazine */

.lede { padding: 28px 0 8px; max-width: 42rem; }

.lede h1 {
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 700;
}

.lede p { margin: 0 0 12px; color: var(--soft); }

.slab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.slab h2,
.rail h2,
.cbar h2,
.simr h2,
.qas h2 {
  font-size: 1.25rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.slab p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

.slab-a {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.95rem;
}

.feat {
  margin: 8px 0 16px;
  background: linear-gradient(165deg, var(--lead-a) 0%, var(--bg) 72%);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.feat a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  align-items: center;
}

.feat h2 {
  margin: 2px 0 6px;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ldek { margin: 0 0 10px; color: var(--soft); max-width: 40rem; }

.ld-meta { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.ld-ic {
  width: 96px;
  height: 96px;
  border-radius: 8px;
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 156px), 1fr));
  gap: 12px;
}

.club .deck {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* tile */

.tl {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 12px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.tl:hover { border-color: #3a4e6e; background: var(--paper-2); }

.tl-ic {
  width: 56px;
  height: 56px;
  border-radius: 6px;
}

.tl-nm {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.tl-vr {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.tl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}

.tl-rb {
  color: var(--ink-dim);
  font-size: 0.78rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tl-sz {
  flex: 0 0 auto;
  background: var(--chip);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.tl-up {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--accent);
  padding: 2px 5px;
  border-radius: 2px;
}

/* program */

.bcrm { padding-top: 18px; font-size: 0.9rem; }

.bcrm ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
}

.bcrm li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }

.bcrm a { color: var(--soft); text-decoration: none; }

.phed {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 12px;
}

.ph-ic { width: 64px; height: 64px; border-radius: 8px; }

.phed h1 {
  margin: 0;
  font-size: 1.85rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.kcat {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
}

.when { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.dlgo,
.prev,
.favb,
.fpan button,
.hunt button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 3px;
  padding: 9px 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.dlgo {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--deep);
}

.dlgo:hover { color: var(--deep); background: #7eb0ff; }

.favb[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.favb .favon { display: none; }

.favb[aria-pressed="true"] .favoff { display: none; }

.favb[aria-pressed="true"] .favon { display: inline; }

.spst {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.spst div {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 8px 10px 9px;
  min-width: 0;
  flex: 1 1 148px;
}

.spst dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spst dd {
  margin: 2px 0 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.play { min-width: 0; }

.split { min-width: 0; }

.flm { min-width: 0; }

.fbig {
  margin: 0;
  background: var(--deep);
  border: 1px solid var(--line);
}

.fbig img { display: block; width: 100%; height: auto; }

.fcap {
  margin: 0;
  padding: 8px 12px 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.ftools {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin: 8px 0;
}

.ftools button {
  width: 36px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
}

/* safari: a border that appears on :current shifts the thumb row */
.fthb {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.fth {
  padding: 0;
  border: 1px solid var(--line);
  background: var(--deep);
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
}

.fth[aria-current="true"] { border-color: var(--accent); }

.fth img { display: block; width: 100%; height: auto; }

.chap { margin-top: 8px; }

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.tabb {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 14px 10px;
  margin-bottom: -1px;
  cursor: pointer;
}

.tabb[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* no-js: every panel is readable, in order */
.tpan[hidden] { display: block !important; }

.js .tpan[hidden] { display: none !important; }

.read {
  max-width: 68ch;
  padding-top: 6px;
}

.read h2 {
  font-size: 1.45rem;
  margin: 1.6em 0 0.4em;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.read h3 { font-size: 1.12rem; margin: 1.3em 0 0.3em; }

.read p,
.read li { color: var(--soft); }

.read strong,
.read em { color: var(--ink); }

.read ul,
.read ol { padding-left: 1.2em; }

.read li { margin: 0.3em 0; }

.read table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1em 0;
}

.read th,
.read td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 7px 8px 7px 0;
  vertical-align: top;
}

.read th { color: var(--ink); font-size: 0.82rem; letter-spacing: 0.03em; }

.read code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--chip);
  padding: 1px 5px;
  border-radius: 2px;
}

.qas { margin: 22px 0; max-width: 68ch; }

.qas details {
  border-top: 1px solid var(--line);
  padding: 8px 0;
}

.qas summary {
  cursor: pointer;
  font-weight: 700;
  padding: 4px 0;
}

.qas details p { margin: 6px 0 10px; color: var(--soft); }

.rail {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 14px 16px;
  border-radius: 4px;
}

.authx {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
}

.auav { width: 48px; height: 48px; font-size: 0.9rem; }

.aunm { margin: 0; font-weight: 700; }

.aubio { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }

.rail p:last-child { margin-bottom: 0; }

.simr { margin: 8px 0 20px; }

.simr ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin: 10px 0 0;
  padding: 0;
}

.simi {
  width: 76px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  color: var(--soft);
  text-decoration: none;
  font-size: 0.75rem;
  line-height: 1.25;
}

.simi img { width: 40px; height: 40px; border-radius: 5px; }

.csec { max-width: 68ch; margin-bottom: 12px; }

.cbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.ccnt { color: var(--muted); font-weight: 600; }

.csrt { display: flex; gap: 6px; }

.csrt button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
}

.csrt .is-on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

.cinv { color: var(--soft); }

.cbox { display: grid; gap: 6px; margin: 10px 0 16px; }

.cbox textarea,
.fld input {
  width: 100%;
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 10px;
}

.chint { margin: 0; color: var(--muted); font-size: 0.88rem; }

.cerr { margin: 0; color: var(--accent); font-weight: 700; }

.hpny {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.clist { list-style: none; margin: 0; padding: 0; }

.clist > li,
.repl li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.is-held { opacity: 0.55; }

.cmt header { font-size: 0.92rem; }

.cmt header strong { margin-right: 6px; }

.cmt time,
.cbdg { color: var(--muted); font-size: 0.82rem; }

.cbdg {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0 5px;
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
}

.cmt p { margin: 6px 0; }

.ctools { display: flex; gap: 12px; align-items: center; }

.likb,
.repb {
  background: transparent;
  border: 0;
  color: var(--soft);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.likb[aria-pressed="true"] { color: var(--accent); }

.repl { list-style: none; margin: 8px 0 0; padding: 0 0 0 8px; }

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

.blank {
  border: 1px dashed var(--line);
  padding: 18px 14px;
  color: var(--muted);
  margin: 8px 0 14px;
}

/* forms, account, errors */

.fpan {
  max-width: 28rem;
  padding-bottom: 28px;
}

.fpan h1 { margin: 22px 0 8px; font-size: 1.8rem; }

.fld { margin: 0 0 12px; }

.fld label,
.cbox label { display: block; font-weight: 700; margin-bottom: 4px; }

.flde { margin: 4px 0 0; color: var(--accent); font-size: 0.88rem; }

.badr,
.okbn {
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  margin: 0 0 12px;
}

.okbn { border-left: 3px solid var(--accent); }

.chk { display: flex; gap: 8px; align-items: center; margin: 8px 0 14px; }

.fnote { color: var(--muted); font-size: 0.92rem; }

.idhd {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 20px;
}

.idhd h1 { margin: 0; font-size: 1.6rem; }

.idhd p { margin: 2px 0 0; color: var(--muted); }

.atab {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 14px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.atab a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.atab a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nlst { list-style: none; margin: 0; padding: 0; }

.nrow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.nrow a { color: var(--ink); text-decoration: none; }

.nrow time { color: var(--muted); flex: 0 0 auto; font-size: 0.85rem; }

.nrow.is-new { box-shadow: inset 3px 0 0 var(--accent); padding-left: 10px; }

.cmy { padding: 12px 0; border-bottom: 1px solid var(--line); }

.cmy h3 { margin: 0 0 4px; font-size: 1.05rem; }

.cmy h3 a { color: var(--ink); text-decoration: none; }

.empt {
  border: 1px dashed var(--line);
  padding: 16px;
  color: var(--muted);
  margin: 12px 0 20px;
}

.pgn {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 18px 0 28px;
  align-items: center;
}

.pgn a,
.pgn span {
  min-width: 36px;
  text-align: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border-radius: 2px;
}

.pgn span[aria-current="page"] {
  background: var(--accent);
  color: var(--deep);
  border-color: var(--accent);
  font-weight: 700;
}

.pgn-gap {
  border: 0;
  background: transparent;
  min-width: 0;
  color: var(--muted);
}

.miss { padding: 28px 0 36px; max-width: 36rem; }

.miss h1 { font-size: 2rem; margin-bottom: 8px; }

.hunt { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.hunt input {
  flex: 1 1 180px;
  background: var(--deep);
  border: 1px solid var(--line);
  padding: 8px 10px;
  border-radius: 3px;
}

.rubs { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; margin: 8px 0 0; list-style: none; }

.toc {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin: 8px 0 18px;
}

.toc ol { margin: 0; padding-left: 1.1em; }

.toc a { text-decoration: none; }

.doc h1 { margin: 22px 0 10px; font-size: 2rem; letter-spacing: -0.03em; }

.colp {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding: 16px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
}

.colp nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }

.colp a { color: var(--soft); text-decoration: none; }

.colp a:hover { color: var(--ink); }

.cpyr { margin: 0; }

.totp.is-on { border-color: var(--accent); }

.totp {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 10px;
  border-radius: 3px;
}

.dlg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
}

.dlg:target { display: grid; }

.dlgbg {
  position: absolute;
  inset: 0;
  background: rgba(7, 16, 28, 0.72);
}

.dlgbox {
  position: relative;
  width: min(36rem, calc(100% - 24px));
  margin: 8vh auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 18px 16px;
  max-height: 82vh;
  overflow: auto;
  z-index: 1;
}

.dlgx {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.dlgbox h2 { margin: 0 36px 10px 0; font-size: 1.35rem; }

.dlgbox ol,
.dlgbox ul { color: var(--soft); }

.mirr h3 { margin: 14px 0 6px; font-size: 1rem; }

.mirr p { display: flex; flex-wrap: wrap; gap: 8px; }

.vold { list-style: none; padding: 0; margin: 0; }

.vold li { border-top: 1px solid var(--line); }

.vold a { display: block; padding: 8px 0; text-decoration: none; }

/* narrow screens */

@media (max-width: 640px) {
  .usbx {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .slgn { display: none; }

  .lede h1 { font-size: 1.65rem; }

  .feat a { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 14px; }

  .ld-ic { width: 72px; height: 72px; }

  .feat h2,
  .phed h1 { font-size: 1.4rem; }

  .fthb { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .wh-nm { display: none; }

  .lg-nm { font-size: 0.98rem; }
}

@media (max-width: 760px) {
  .js .brgr { display: inline-flex; }

  .js .nav-m { display: none; padding-bottom: 10px; }

  .js .nav-m.is-open { display: block; }

  .js .nav-m ul { flex-direction: column; gap: 0; }
}

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

@media (min-width: 960px) {
  .split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: start;
  }

  .rail { position: sticky; top: 12px; }

  .club .deck { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .lede h1 { font-size: 2.35rem; }
}

/* сеть: липкая шапка с поиском (DOCS §4.3), вход акцентом, высоты 36px, заглушки иконок, окно установки без :target */
.hd { position: sticky; top: 0; z-index: 35; }
.lg-mk { border-radius: 8px; }
.slgn { flex: 1 1 140px; }
.hd-find { position: relative; flex: 0 1 300px; margin: 0; }
.hd-find__ico { position: absolute; left: 10px; top: 10px; color: var(--muted); pointer-events: none; }
.hd-find input {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}
.hd-find input::placeholder { color: var(--muted); }
.hd-find input:focus { border-color: var(--accent); outline: none; }
.sgnl {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: var(--deep);
}
.sgnl:hover { color: var(--deep); background: #7eb0ff; }
.belb, .lout { height: 36px; align-items: center; }
.belb { width: 36px; justify-content: center; }
.lout { display: inline-flex; }
.bdrp:not([hidden]) { display: block; }
.bdrp[hidden] { display: none; }
.belw:hover .bdrp[hidden], .belw:focus-within .bdrp[hidden] { display: none; }
.tl-ph {
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}
.ld-ic.tl-ph { font-size: 1.6rem; }
.ph-ic.tl-ph { width: 64px; height: 64px; border-radius: 8px; font-size: 1.2rem; }
.tl-ph--sm { width: 40px; height: 40px; border-radius: 6px; font-size: 0.8rem; }
.tl-ic, .ld-ic, .ph-ic, .simi img { object-fit: contain; }
.kcat-intel { margin-left: 8px; color: var(--accent); }
#sheet:not([hidden]) { display: grid; }
.home-note { margin: 28px 0 8px; max-width: 46rem; }
.inst { margin-top: 26px; }
[id] { scroll-margin-top: 130px; }
@media (max-width: 760px) {
  .slgn { display: none; }
  .hd-row { gap: 8px 10px; }
  .hd-find { order: 5; flex: 1 0 100%; }
  .usbx { width: auto; margin-left: auto; }
}
.dlgbox { align-self: start; max-height: 84vh; overflow: auto; }
