/* THE COMMENT SECTION: modern feed. Dark, compact, three columns on desktop, one on mobile. */

:root {
  --bg: #111112;
  --surface: #18181a;
  --raised: #1f1f22;
  --line: #2a2a2e;
  --line-soft: #222225;
  --ink: #eceae4;
  --muted: #9a978f;
  --dim: #6c6a65;
  --up: #e0603f;
  --down: #7c8fd6;
  --accent: #d23b2a;
  --link: #e7e3d9;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --left: 232px;
  --right: 300px;
  --top: 52px;
  --strip: 0px; /* height of the ADH strip above the topbar, when shown */
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body { margin: 0; color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* Disclosure, always visible */

/* Top bar */
.topbar { position: sticky; top: var(--strip); z-index: 20; height: var(--top); display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand-logo { height: 30px; width: auto; display: block; flex: none; padding-right: 10px; border-right: 1px solid var(--line); box-sizing: content-box; }
.brand b { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.brand span { color: var(--dim); }
.topbar form { flex: 1; max-width: 520px; margin: 0 auto; }
.topbar input { width: 100%; height: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 0 14px; }
.topbar input::placeholder { color: var(--dim); }
.menu-btn { display: none; background: none; border: 0; padding: 6px; color: var(--ink); }
.fiction-mark { font: 11px var(--mono); letter-spacing: .06em; color: #fff; white-space: nowrap; }
.fiction-mark:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* The way back to the ADH website: a white strip above everything, on every page and screen size. */
body.has-adh { --strip: 36px; }
.adh-strip { position: sticky; top: 0; z-index: 25; height: var(--strip); display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; background: #fff; color: #111; border-bottom: 1px solid #111; }
.adh-strip[hidden] { display: none; }
.adh-strip a { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: #111; }
.adh-strip .adh-strip-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.adh-strip .adh-strip-shop { padding: 4px 12px; border-radius: 999px; background: #111; color: #fff; }
.adh-strip .adh-strip-shop:hover { background: #fff; color: #111; outline: 1px solid #111; }
@media (max-width: 380px) { .adh-strip a { letter-spacing: .08em; } .adh-strip .adh-strip-back span { display: none; } .adh-strip .adh-strip-back b { display: inline; font-weight: inherit; } }
/* Links back to the ADH website, mirroring its navigation: a plain link and a Shop pill. */
.adh-top { display: flex; align-items: center; gap: 12px; flex: none; }
.adh-top:empty { display: none; }
.adh-back, .adh-shop { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.adh-back { color: var(--muted); }
.adh-back:hover { color: var(--ink); }
.adh-shop { padding: 6px 14px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg); }
.adh-shop:hover { background: transparent; color: var(--ink); }
.i { flex: none; display: block; }
.pill .i { margin-right: -1px; }
.tag-fiction { font: 10px var(--mono); letter-spacing: .1em; border: 1px solid var(--line); padding: 2px 6px; color: var(--muted); white-space: nowrap; }

/* Layout */
/* Two columns by default; the contextual right column only where there's room for it. */
.layout { display: grid; grid-template-columns: var(--left) minmax(0, 760px); justify-content: center; max-width: 1360px; margin: 0 auto; }
.right { display: none; }
@media (min-width: 1280px) {
  .layout { grid-template-columns: var(--left) minmax(0, 760px) var(--right); }
  .right { display: block; }
}
.left { position: sticky; top: calc(var(--top) + var(--strip)); align-self: start; height: calc(100vh - var(--top) - var(--strip)); overflow-y: auto; padding: 14px 12px 40px; border-right: 1px solid var(--line); }
.centre { min-width: 0; padding: 16px 28px 80px; }
.right { padding: 14px 16px 40px; }

/* Left nav */
.nav a, .nav summary { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: var(--muted); }
.nav a:hover, .nav summary:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--raised); color: var(--ink); }
.nav a .i { color: var(--dim); }
.nav a[aria-current="page"] .i, .nav a:hover .i { color: var(--ink); }
.nav-sep { height: 1px; background: var(--line); margin: 10px 4px; }
.nav details summary { cursor: pointer; list-style: none; }
.nav details summary::-webkit-details-marker { display: none; }
.nav details summary::after { content: "▾"; margin-left: auto; font-size: 11px; }
.nav details:not([open]) summary::after { content: "▸"; }
.nav details summary { font-size: 13px; }
.nav details a { padding-left: 22px; font-size: 14px; }
.nav-label { font: 10px var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; padding: 4px 10px; }

/* Feed header */
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.feed-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.feed-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.sorts { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sorts a { padding: 5px 12px; border-radius: 15px; font-size: 13px; color: var(--muted); border: 1px solid transparent; }
.sorts a:hover { background: var(--surface); text-decoration: none; }
.sorts a[aria-current="true"] { background: var(--raised); color: var(--ink); border-color: var(--line); }
.notice { border: 1px solid var(--line); background: var(--surface); padding: 9px 12px; border-radius: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.notice b { color: var(--ink); }
.notice--warn { border-color: #5a3a2c; background: #20160f; }

/* Feed items */
.feed { border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; color: var(--muted); }
.item-meta .cat { color: var(--ink); font-weight: 600; }
.item-title { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 3px 0 4px; letter-spacing: -.005em; }
.item-title a:hover { text-decoration: none; color: #fff; }
.item-preview { color: #c9c6be; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item-photo { margin-top: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--dim); font: 11px var(--mono); padding: 22px 12px; border-radius: 6px; max-width: 520px; }
.item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; white-space: nowrap; min-height: 32px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); color: var(--muted); }
button.pill { border: 1px solid var(--line-soft); }
.pill:hover { color: var(--ink); text-decoration: none; }
.flag { font: 10px var(--mono); letter-spacing: .1em; padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.flag--locked { color: #e09a7f; border-color: #5a3a2c; }
.flag--sticky { color: var(--ink); }

/* Votes */
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vote button { background: none; border: 0; color: var(--dim); width: 28px; height: 22px; border-radius: 4px; font-size: 14px; line-height: 1; }
.vote button:hover { background: var(--raised); color: var(--ink); }
.vote button[aria-pressed="true"].up { color: var(--up); }
.vote button[aria-pressed="true"].down { color: var(--down); }
.vote .score { font-size: 13px; font-weight: 600; min-width: 2ch; text-align: center; }
.vote--row { flex-direction: row; gap: 0; }

/* Avatars */
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700;
  background: #3a3a3e; color: #ddd; flex: none; text-transform: uppercase; }
.av--lg { width: 72px; height: 72px; font-size: 26px; }
.av--none { background: #2c2c30; position: relative; overflow: hidden; }
.av--none::after { content: ""; position: absolute; left: 30%; top: 22%; width: 40%; height: 40%; border-radius: 50%; background: #55555a; box-shadow: 0 .9em 0 .35em #55555a; }
.role { font: 10px var(--mono); letter-spacing: .08em; color: #e7c27a; }
.status { font: 10px var(--mono); letter-spacing: .08em; color: #e09a7f; }

/* Right sidebar */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.panel h2 { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.panel li { padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 13px; }
.panel li:first-child { border-top: 0; }
.panel .small { font-size: 12px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.stats b { display: block; font-size: 17px; }
.stats span { font-size: 11px; color: var(--muted); }

/* Discussion */
.post-head h1 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; margin: 4px 0 10px; }
.op { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.body { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; color: #e2dfd8; }
.body p + p { margin-top: .7em; }
.body blockquote { margin: 6px 0 8px; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: 14px; }
.body blockquote cite { display: block; font: 11px var(--mono); letter-spacing: .06em; font-style: normal; color: var(--dim); margin-bottom: 2px; }
.body .post-photo { margin: 10px 0 14px; max-width: 560px; }
.body .post-photo img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); }
.body .post-photo figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; }
.body .post-photo .credit { display: block; margin-top: 2px; color: var(--dim); font: 10px var(--mono); }
.body .post-photo .credit a { color: inherit; text-decoration: underline; }
.body .photo { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--dim); font: 11px var(--mono); padding: 22px 12px; margin: 8px 0; max-width: 460px; }
.sig { margin-top: 10px; font-size: 12px; color: var(--dim); white-space: pre-line; border-top: 1px dashed var(--line); padding-top: 6px; }
.edited { font-size: 12px; color: var(--dim); margin-top: 6px; font-style: italic; }
.warning { margin-top: 8px; border: 1px solid #5a4a24; background: #1d1910; color: #e7c27a; font-size: 13px; padding: 6px 10px; border-radius: 6px; }
.comments-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0 6px; flex-wrap: wrap; }
.comments-bar select { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.closed { border: 1px dashed var(--line); border-radius: 6px; color: var(--muted); font-size: 13px; padding: 10px 12px; margin: 10px 0; }

.comment { position: relative; margin-top: 10px; }
.comment > .c-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.comment > .c-head a.name { color: var(--ink); font-weight: 600; }
.comment > .c-body { margin: 4px 0 0 28px; }
.c-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.c-actions button.link { background: none; border: 0; color: var(--muted); padding: 3px 6px; border-radius: 4px; }
.c-actions button.link:hover { background: var(--raised); color: var(--ink); }
.c-actions button.link:disabled { color: var(--dim); cursor: not-allowed; background: none; }
.children { margin-left: 10px; padding-left: 16px; position: relative; }
.thread-line { position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: none; border: 0; padding: 0; }
.thread-line::before { content: ""; position: absolute; left: 6px; top: 2px; bottom: 2px; width: 1px; background: var(--line); }
.thread-line:hover::before { background: var(--muted); width: 2px; }
.comment.collapsed > .c-body, .comment.collapsed > .children { display: none; }
.collapse { background: none; border: 0; color: var(--dim); font-size: 12px; width: 20px; padding: 0; }
.comment--deleted > .c-body { color: var(--dim); font-style: italic; font-size: 13px; }

/* Pager */
.pager { display: flex; justify-content: center; gap: 6px; margin: 18px 0; }
.pager a, .pager span { padding: 5px 11px; border-radius: 6px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pager span[aria-current] { background: var(--raised); color: var(--ink); }

/* Profile */
.profile-head { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.profile-head h1 { font-size: 24px; font-weight: 600; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.bio { margin-top: 12px; color: #d8d5cd; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0 12px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--muted); white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.cars { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.car { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.car-body { padding: 10px 12px 12px; }
.car-pic { aspect-ratio: 16 / 8; background: radial-gradient(120% 90% at 50% 100%, #2a2a2f 0%, #141416 70%); display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); }
.car-pic svg { width: 92%; height: auto; display: block; margin-bottom: 4%; }
.car-pic--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; display: block; }
.car--previous .car-pic, .car--wishlist .car-pic { filter: grayscale(.7); opacity: .75; }
.car .paint { display: flex; align-items: center; gap: 6px; }
.car .paint i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); flex: none; }
.car .mods b { font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 400; margin-right: 4px; }
.car .credit { font-size: 11px; color: var(--dim); margin-top: 8px; overflow-wrap: anywhere; }
.car .credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cars--mini { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.garage-note { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 14px; }
h2.sub { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
table.laps { width: 100%; border-collapse: collapse; font-size: 14px; }
table.laps th { text-align: left; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); font-weight: 400; padding: 4px 8px 6px 0; border-bottom: 1px solid var(--line); }
table.laps td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.laps td small { display: block; color: var(--dim); font-size: 12px; }
table.laps td.t { font-family: var(--mono); font-weight: 600; white-space: nowrap; text-align: right; padding-right: 0; }
table.laps th:last-child { text-align: right; padding-right: 0; }
ul.achievements { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 14px; }
ul.achievements li { display: flex; gap: 10px; align-items: baseline; }
ul.achievements .yr { font: 12px var(--mono); color: var(--dim); min-width: 78px; flex: none; }
.avw { position: relative; display: inline-flex; flex: none; }
.online-dot { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; min-width: 8px; min-height: 8px; border-radius: 50%; background: #3ccf6a; box-shadow: 0 0 0 2px var(--bg, #0f0f10); }
.profile-meta .online { color: #3ccf6a; }
.profile-meta .online::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ccf6a; margin-right: 6px; vertical-align: 1px; }
.profile-meta span { display: inline-flex; align-items: center; white-space: nowrap; }
.profile-meta svg.i { margin-right: 3px; flex: none; }
.car .st { font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.car h3 { font-size: 16px; font-weight: 600; margin-top: 4px; line-height: 1.25; }
.car .yr { color: var(--muted); font-weight: 400; }
.car p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.car a.owner { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th, .kv td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.kv th { width: 34%; color: var(--muted); font-weight: 400; }
.list-row { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.list-row small { display: block; color: var(--muted); font-size: 12px; }

/* Forms (search, filters) */
.field { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.field input, .field select { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; min-width: 0; }
.field input { flex: 1 1 220px; }
.btn { background: var(--ink); color: #111; border: 0; border-radius: 6px; padding: 7px 14px; font-weight: 600; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; border-bottom: 1px solid var(--line-soft); }

/* Bottom nav (mobile) */
.bottom { display: none; }

/* Profile stats, about page, first-vote dialog */
.pstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 14px; }
.pstats div { background: var(--surface); padding: 10px; text-align: center; }
.pstats b { display: block; font-size: 15px; }
.pstats span { font-size: 11px; color: var(--muted); }
.prose { max-width: 640px; }
.prose h1 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.prose h2 { font-size: 15px; font-weight: 600; margin: 20px 0 6px; }
.prose p { color: #d8d5cd; margin-bottom: 10px; }
.prose a, .profile-head + .bio a, .dim a, .muted a, .notice a, .small a { text-decoration: underline; text-underline-offset: 3px; }
dialog.explain { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; max-width: 420px; padding: 18px; }
dialog.explain::backdrop { background: rgba(0, 0, 0, .6); }
dialog.explain h2 { font-size: 16px; margin-bottom: 8px; }
dialog.explain p { color: #d8d5cd; font-size: 14px; }
.explain-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ghost { background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 7px 14px; }

.credits summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.credits h3 { font-size: 13px; margin: 14px 0 6px; color: var(--muted); }
.credits ul { padding-left: 18px; font-size: 12px; color: var(--muted); }
.credits li { margin: 3px 0; overflow-wrap: anywhere; }

/* After a thread, and in the narrow-screen feed: related and trending discussions. */
.more { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 4px 12px; margin-top: 16px; }
.more h2 { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 0 4px; }
.disc-row { display: block; padding: 10px 0; border-top: 1px solid var(--line-soft); color: var(--ink); }
.disc-row:hover { text-decoration: none; }
.disc-row:hover .disc-title { text-decoration: underline; text-underline-offset: 3px; }
.disc-title { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.disc-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.more--inline { margin: 4px 0 14px; }
.thread-exit { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.thread-exit a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); font-size: 13px; }
.thread-exit a:hover { color: var(--ink); text-decoration: none; background: var(--surface); }
.from-adh { margin-top: 10px; font-size: 13px; }
.from-adh a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1101px) { .more--inline { display: none; } }

@media (max-width: 1100px) {
  .layout { grid-template-columns: var(--left) minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --top: 48px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: block; }
  .topbar form { display: none; }
  .fiction-mark { margin-left: auto; }
  .adh-top { display: none; }
  .left { position: fixed; z-index: 30; top: calc(var(--top) + var(--strip)); left: 0; width: 82vw; max-width: 300px; background: var(--bg); transform: translateX(-102%); transition: transform .15s ease-out; }
  body.nav-open .left { transform: none; }
  .centre { padding: 10px 14px 90px; }
  .item { grid-template-columns: minmax(0, 1fr); }
  .item .vote { display: none; }
  .item-actions .vote--row { display: inline-flex; }
  .op { grid-template-columns: minmax(0, 1fr); }
  .op > .vote { flex-direction: row; order: 2; justify-content: flex-start; }
  .children { margin-left: 4px; padding-left: 12px; }
  /* Very deep reply chains stop indenting on phones so the text keeps a readable width. */
  .children .children .children .children .children { margin-left: 0; padding-left: 8px; }
  .children .children .children .children .children .children .children .children { padding-left: 0; }
  .children .children .children .children .children .children .children .children > .thread-line { display: none; }
  .bottom { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; height: 58px;
    background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bottom a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); }
  .bottom a[aria-current="page"] { color: var(--ink); }
  .pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .brand b { letter-spacing: .08em; font-size: 13px; }
  .fiction-mark { font-size: 10px; letter-spacing: .02em; }
  .brand { gap: 7px; }
  .brand-logo { height: 22px; padding-right: 7px; }
}
@media (max-width: 380px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .brand b { font-size: 12px; letter-spacing: .05em; }
}
@media (min-width: 761px) { .item-actions .vote--row { display: none; } }
@media (prefers-reduced-motion: reduce) { .left { transition: none; } }

/* Profile pictures */
.av--img { padding: 0; overflow: hidden; background: #2c2c30; }
.av--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
