/* =============================================================================
   r/guh: old Reddit, 2019, on a phone first.
   Written mobile-first. The two-column desktop layout only appears at 940px,
   which is the narrowest width where a 640px feed and a 312px sidebar both fit
   without either one being a lie.
   ========================================================================== */

:root {
  --bg:         #DAE0E6;
  --card:       #FFFFFF;
  --border:     #CCCCCC;
  --border-soft:#EDEFF1;
  --text:       #1A1A1B;
  --meta:       #787C7E;
  --green:      #00C805;   /* fills: header bar, buttons, active upvote      */
  --green-dark: #1EA815;   /* the logo's own green: banner, admin bar        */
  --green-ink:  #0B7A05;   /* text on white, the fill green fails contrast */
  --red:        #FF453A;
  --red-ink:    #C4271D;   /* same problem, same fix                         */
  --votebg:     #F8F9FA;

  --radius: 4px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.45 var(--sans);
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, iframe { max-width: 100%; }
a { color: var(--green-ink); }

.mono { font-family: var(--mono); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skiplink {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--text); padding: 10px 14px;
  font-weight: 700; border-radius: 0 0 var(--radius) 0;
}
.skiplink:focus { left: 0; }

:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 2px; }

/* =============================================================================
   HEADER: sticky, 48px, green
   ========================================================================== */

.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--green);
  color: #fff;
}

.topbar__inner {
  max-width: 1000px; margin: 0 auto;
  height: 48px; padding: 0 10px;
  display: flex; align-items: center; gap: 10px;
}

.topbar__logo { display: block; flex: 0 0 auto; line-height: 0; }
.topbar__logo img { height: 30px; width: auto; display: block; }

/* Contract address in the bar. Desktop only: on a phone it moves to its own
   strip directly under the header so it is never below the fold. */
.topbar__ca {
  display: none;
  align-items: center; gap: 6px;
  margin-right: auto;
  padding: 4px 6px;
  background: rgba(0, 0, 0, .16);
  border-radius: var(--radius);
}
.ca-label {
  font-size: 9px; font-weight: 800; letter-spacing: .09em;
  opacity: .85;
}
.topbar__ca code { font-size: 11.5px; letter-spacing: -.01em; }
.ca-full  { display: none; }
.ca-short { display: inline; }

.copybtn {
  border: 0; cursor: pointer;
  background: #fff; color: var(--green-ink);
  font: 800 10px/1 var(--sans);
  letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 7px; border-radius: 3px;
  min-width: 46px;
}
.copybtn:hover { background: #F0F0F0; }
.copybtn.is-copied { background: var(--text); color: #fff; }

.topbar__links { display: none; gap: 2px; flex: 0 0 auto; }
.topbar__links a {
  color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 800; letter-spacing: .06em;
  padding: 6px 7px; border-radius: 3px;
}
.topbar__links a:hover { background: rgba(0, 0, 0, .14); }

.topbar__guhs {
  display: none;
  font-size: 12px; font-weight: 700; white-space: nowrap;
  color: #fff;
}
.guh-count { font-family: var(--mono); font-weight: 800; }
.guh-count.is-bumped { animation: pop .28s ease-out; }

@keyframes pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}

.hamburger {
  margin-left: auto;
  width: 38px; height: 38px;
  display: grid; align-content: center; gap: 4px;
  padding: 0 8px;
  background: none; border: 0; cursor: pointer;
}
.hamburger span { display: block; height: 2px; background: #fff; border-radius: 2px; }

.navdrawer {
  background: var(--green-dark);
  padding: 4px 10px 10px;
  display: flex; flex-direction: column;
}
.navdrawer[hidden] { display: none; }
.navdrawer a {
  color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.navdrawer__guhs { color: #fff; font-size: 12px; padding: 11px 2px; opacity: .95; }

/* --- the mobile contract strip. Sticks under the header, always visible. --- */
.castrip {
  position: sticky; top: 48px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 7px 10px;
}
.castrip__label {
  font-size: 9px; font-weight: 800; letter-spacing: .09em;
  color: var(--meta); flex: 0 0 auto;
}
.castrip__value {
  flex: 1 1 auto; min-width: 0;
  font-size: 10.5px; letter-spacing: -.02em;
  overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.copybtn--strip { background: var(--green); color: #0F3400; }
.copybtn--strip:hover { background: var(--green-dark); color: #fff; }

@media (max-width: 419px) {
  .castrip__label { display: none; }
}

/* =============================================================================
   SUBREDDIT BANNER
   ========================================================================== */

.subbanner {
  background: var(--green-dark);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.subbanner__inner {
  max-width: 1000px; margin: 0 auto;
  padding: 10px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.subbanner__icon {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px #fff;
}
.subbanner__id { display: flex; flex-direction: column; min-width: 0; }
.subbanner__name { font-size: 18px; font-weight: 800; line-height: 1.15; }
.subbanner__tag  { font-size: 11.5px; opacity: .93; }

.subbanner__stats {
  display: flex; gap: 8px;
  width: 100%;
}
.bstat {
  flex: 1 1 0;
  background: rgba(255, 255, 255, .17);
  border-radius: var(--radius);
  padding: 5px 8px;
  text-align: center;
}
.bstat b {
  display: block;
  font: 800 14px/1.2 var(--mono);
}
.bstat span { font-size: 10px; opacity: .92; letter-spacing: .02em; }

/* =============================================================================
   LAYOUT
   ========================================================================== */

.container {
  max-width: 1000px; margin: 0 auto;
  padding: 10px 8px 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.card__head {
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 7px;
}
.card__head h2 {
  font-size: 11px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--meta);
}
.card__icon { width: 22px; height: 22px; border-radius: 50%; }
.card__body { padding: 10px; }
.card__body--tight { padding: 10px; }

.crumb { font-size: 12px; margin-bottom: 8px; }
.crumb a { color: var(--meta); text-decoration: none; font-weight: 700; }
.crumb a:hover { text-decoration: underline; }

/* =============================================================================
   SORT TABS
   ========================================================================== */

.sorts {
  display: flex;
  padding: 0 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sorts::-webkit-scrollbar { display: none; }
.sorts__tab {
  flex: 0 0 auto;
  padding: 11px 13px;
  font-size: 12px; font-weight: 800; letter-spacing: .07em;
  color: var(--meta); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.sorts__tab:hover { color: var(--text); }
.sorts__tab.is-active {
  color: var(--text);
  border-bottom-color: var(--green);
}

/* =============================================================================
   POST CARD
   ========================================================================== */

.post {
  display: grid;
  grid-template-columns: 34px 70px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 8px;
}
/* Both of these drop the thumbnail column: the detail view and the modqueue
   preview render votes + body only, so the grid must be two columns wide or
   the text ends up squeezed into the 70px thumbnail slot. */
.post--detail  { grid-template-columns: 34px minmax(0, 1fr); border: 0; margin: 0; padding: 10px 10px 4px; }
.post--preview { grid-template-columns: 34px minmax(0, 1fr); border: 0; margin: 0; padding: 0; }

.post--pinned { border-left: 3px solid var(--green); }

.votes {
  display: flex; flex-direction: column; align-items: center;
  background: var(--votebg);
  border-radius: 3px;
  padding: 3px 0;
}
.votes__form { display: contents; }

.vote {
  width: 28px; height: 26px;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0;
  color: #C6C9CB; cursor: pointer;
  border-radius: 3px;
}
.vote svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.vote--up:hover   { color: var(--green-ink); background: rgba(0, 200, 5, .12); }
.vote--down:hover { color: var(--red-ink);   background: rgba(255, 69, 58, .12); }
.vote--up.is-on   { color: var(--green); }
.vote--down.is-on { color: var(--red); }

.votes__score {
  font: 800 12px/1.2 var(--mono);
  color: var(--text);
  padding: 1px 0;
  text-align: center;
}
.votes__score.is-bumped { animation: pop .28s ease-out; }
.votes:has(.vote--up.is-on) .votes__score   { color: var(--green-ink); }
.votes:has(.vote--down.is-on) .votes__score { color: var(--red-ink); }

.thumb {
  width: 70px; height: 70px;
  display: block; overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--votebg);
  position: relative;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb--self, .thumb--video { display: grid; place-items: center; color: #B4B9BC; }
.thumb--self svg, .thumb--video svg { width: 28px; height: 28px; fill: currentColor; }
.thumb--video { background: var(--text); color: #fff; border-color: var(--text); }
.thumb--play::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0, 0, 0, .34);
  clip-path: none;
}
.thumb--play::before {
  content: ""; position: absolute; z-index: 2;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.post__main { min-width: 0; }

.post__titleline {
  font-size: 18px; font-weight: 500; line-height: 1.25;
  margin: 0 0 3px;
}
.post__title { color: var(--text); text-decoration: none; }
.post__title:visited { color: var(--meta); }
.post__title:hover { text-decoration: underline; }
.post--pinned .post__title { color: var(--green-ink); font-weight: 600; }

.pin {
  width: 12px; height: 12px;
  fill: var(--green-ink);
  margin-right: 3px;
  vertical-align: baseline;
}

.flair {
  display: inline-block;
  font: 800 10.5px/1 var(--sans);
  letter-spacing: .02em;
  padding: 4px 7px;
  border-radius: 10px;
  background: var(--border-soft);
  color: #3D4144;
  vertical-align: 2px;
  white-space: nowrap;
}
.flair--meme       { background: #E7EFFD; color: #14488F; }
.flair--loss-porn  { background: #FFE9E7; color: var(--red-ink); }
.flair--dd         { background: #E4F6E5; color: #10621A; }
.flair--yolo       { background: #FFF0D6; color: #855000; }
.flair--discussion { background: #EDEFF1; color: #3D4144; }
.flair--archive    { background: var(--text); color: #fff; }
.flair--official   { background: var(--green); color: #0C3400; }

.post__meta {
  font-size: 12px; color: var(--meta);
  margin: 0 0 5px;
}
.post__author { color: var(--meta); }
.post__author.is-mod { color: var(--green-ink); font-weight: 700; }
.tag-m { color: var(--green-ink); font-weight: 800; font-size: 11px; }

/* Tight enough that all five actions stay on one line next to a 70px
   thumbnail at 375px. They get their normal spacing back at 768px. */
.post__actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 11px; font-weight: 700; color: var(--meta);
}
.post__actions a { color: var(--meta); text-decoration: none; }
.post__actions a:hover { text-decoration: underline; }
.fakelink { color: var(--meta); cursor: default; }

/* --- inline promoted card ------------------------------------------------- */
.inlinepromo { border-color: var(--border); }
.inlinepromo__body { padding: 10px 12px; }
.inlinepromo__kicker {
  display: block;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: var(--meta); text-transform: uppercase;
  margin-bottom: 4px;
}
.inlinepromo p { font-size: 13px; color: var(--text); }

/* =============================================================================
   POST DETAIL
   ========================================================================== */

.postcard__body { padding: 0 10px 12px 52px; }

.usertext { font-size: 14px; line-height: 1.55; }
.usertext p { margin: 0 0 9px; }
.usertext ol, .usertext ul { margin: 0 0 9px; padding-left: 22px; }
.usertext ol { list-style: decimal; }
.usertext ul { list-style: disc; }
.usertext li { margin-bottom: 5px; }
.usertext a { color: var(--green-ink); }
.usertext code, .ca-inline {
  font-family: var(--mono); font-size: 12.5px;
  background: #F2F3F4;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 1px 4px;
  word-break: break-all;
}
.usertext blockquote {
  margin: 0 0 9px; padding: 2px 0 2px 10px;
  border-left: 3px solid var(--border);
  color: var(--meta);
}

.postimage { margin-bottom: 10px; }
.postimage img {
  display: block; width: auto; max-width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
}

.videobox { margin-bottom: 10px; }
.videobox__player {
  display: block;
  width: 100%; max-width: 320px;
  aspect-ratio: 404 / 720;
  height: auto;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.videobox__source {
  font-size: 11.5px; color: var(--meta);
  margin-top: 6px;
}
.videobox__source a { color: var(--meta); }

/* =============================================================================
   GUH Simulator: the game post
   A dark brokerage panel dropped into a light Reddit page, on purpose: it
   should read as a screenshot of an app, not as part of the site.
   ========================================================================== */

.guhgame {
  background: #0B0E11;
  border: 1px solid #1F2429;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 12px;
  color: #E8EAED;
  max-width: 460px;
}

.guhgame__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid #1F2429;
}
.guhgame__id { display: flex; flex-direction: column; }
.guhgame__tick { font: 800 13px/1.2 var(--mono); letter-spacing: .02em; }
.guhgame__exp { font-size: 10px; color: #8A9198; }

.guhgame__headright { display: flex; align-items: center; gap: 10px; }

.guhgame__mute {
  width: 30px; height: 30px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: none; border: 0; padding: 0;
  color: #8A9198; cursor: pointer; border-radius: 4px;
}
.guhgame__mute:hover { color: #E8EAED; background: rgba(255, 255, 255, .07); }
.guhgame__mute svg { width: 19px; height: 19px; }
.guhgame__mute .spk { fill: currentColor; }
.guhgame__mute .wave {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.guhgame__mute .cross { display: none; }
.guhgame__mute.is-muted { color: #5E656B; }
.guhgame__mute.is-muted .wave { display: none; }
.guhgame__mute.is-muted .cross {
  display: block;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
}

.guhgame__bank { text-align: right; }
.guhgame__bank span { display: block; font-size: 9px; letter-spacing: .09em; color: #8A9198; text-transform: uppercase; }
.guhgame__bank b { font: 800 14px/1.2 var(--mono); }

.guhgame__screen { position: relative; background: #0B0E11; }
.guhgame__screen canvas { display: block; width: 100%; height: 210px; }

/* The facecam bubble, cropped straight out of the original video. Top left,
   opposite the price HUD, sized like the stream overlay it is imitating. */
.guhgame__cam {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  width: 54px; height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .16);
  pointer-events: none;
  transition: box-shadow .18s ease, transform .18s ease;
}
.guhgame__cam-v {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
}
.guhgame__cam-v--guh {
  position: absolute; inset: 0;
  opacity: 0;
}
.guhgame__cam.is-guh {
  box-shadow: 0 0 0 2px #FF5000, 0 0 18px rgba(255, 80, 0, .5);
  transform: scale(1.14);
}
.guhgame__cam.is-guh .guhgame__cam-v--guh { opacity: 1; }

.guhgame__hud {
  position: absolute; top: 8px; right: 10px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
  pointer-events: none;
  /* The chart draws under these, so the numbers carry their own background. */
  text-shadow: 0 1px 4px #0B0E11, 0 0 10px #0B0E11, 0 0 2px #0B0E11;
}
.guhgame__price { font: 800 20px/1.1 var(--mono); }
.guhgame__pl { font: 800 13px/1.2 var(--mono); color: #8A9198; }
.guhgame__pl.is-up { color: var(--green); }
.guhgame__pl.is-down { color: #FF5000; }

.guhgame__overlay {
  position: absolute; inset: 0;
  display: none; place-items: center;
  font: 900 54px/1 var(--sans); letter-spacing: .04em;
  color: #FF5000;
  background: rgba(11, 14, 17, .74);
}
.guhgame__overlay.is-guh { display: grid; animation: guhslam .32s ease-out; }

@keyframes guhslam {
  0%   { transform: scale(1.5); opacity: 0; }
  60%  { transform: scale(.94); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.guhgame__panel { padding: 11px; border-top: 1px solid #1F2429; }

.gg-lev {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #C6CCD2;
  margin-bottom: 12px; cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.gg-lev input { width: 15px; height: 15px; margin: 0; accent-color: #FF5000; flex: 0 0 auto; }
.gg-lev em { font-style: normal; color: #8A9198; }

.gg-slider__top, .gg-slider__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.gg-slider__top span { font-size: 9px; letter-spacing: .09em; text-transform: uppercase; color: #8A9198; }
.gg-slider__top b { font: 800 22px/1.1 var(--mono); }
.gg-slider__top b.is-max { color: #FF5000; }
.gg-slider__foot { margin-top: 5px; font: 400 11px/1.3 var(--mono); color: #8A9198; }
.gg-slider__foot .is-warn { color: #FF5000; }

.gg-slider input[type="range"] {
  width: 100%; margin: 7px 0 0; accent-color: var(--green);
  background: transparent;
}

.gg-btn {
  display: block; width: 100%; margin-top: 12px;
  padding: 14px; border: 0; border-radius: var(--radius);
  font: 900 15px/1 var(--sans); letter-spacing: .1em;
  cursor: pointer;
}
.gg-btn--buy { background: var(--green); color: #06280A; }
.gg-btn--buy:hover { background: #00E006; }
.gg-btn--sell { background: #FF5000; color: #2A0C00; padding: 20px; font-size: 20px; }
.gg-btn--sell:hover { background: #FF6A22; }
.gg-btn--sell:active { transform: translateY(1px); }
.gg-btn--again { background: #262B31; color: #E8EAED; }
.gg-btn--again:hover { background: #333940; }

.gg-note { margin-top: 9px; font-size: 11.5px; line-height: 1.45; color: #8A9198; }
.gg-note.is-warn { color: #FFA071; }
.gg-note b { color: #C6CCD2; }

.gg-result__pl { font: 900 30px/1.1 var(--mono); }
.gg-result__pl.is-up { color: var(--green); }
.gg-result__pl.is-down { color: #FF5000; }
.gg-result__verdict { margin-top: 7px; font-size: 13px; line-height: 1.5; color: #C6CCD2; }
.gg-result--top .gg-result__verdict { color: var(--green); }

.gg-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 12px; padding-top: 11px; border-top: 1px solid #1F2429;
}
.gg-stats span { display: block; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: #8A9198; }
.gg-stats b { font: 800 12px/1.3 var(--mono); }

.guhgame__foot { padding: 0 11px 11px; font-size: 10.5px; line-height: 1.45; color: #666D74; }

.thumb--game { background: var(--text); color: var(--green); border-color: var(--text); }

@media (min-width: 768px) {
  .guhgame__screen canvas { height: 240px; }
  .guhgame__price { font-size: 22px; }
  .guhgame__cam { width: 62px; height: 62px; }
}

/* =============================================================================
   COMMENTS
   ========================================================================== */

.commentcard__head {
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.commentcard__head h2 { font-size: 14px; font-weight: 700; }
.commentcard__sort { font-size: 12px; color: var(--meta); }

.locknote {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 10px;
  padding: 9px 10px;
  background: #FFF8E1;
  border: 1px solid #F0DFA8;
  border-radius: var(--radius);
  font-size: 12.5px;
}
.locknote svg { width: 16px; height: 16px; fill: #8A6D1F; flex: 0 0 auto; margin-top: 1px; }
.locknote p { color: #6C551A; }
.locknote__aside { display: block; color: #8A7433; margin-top: 3px; }
.locknote a { color: #6C551A; }

/* Comments switched off entirely: no thread was ever written for this post. */
.locknote--off { background: var(--votebg); border-color: var(--border); }
.locknote--off svg { fill: var(--meta); }
.locknote--off p { color: #4A4E50; }
.locknote--off .locknote__aside { color: var(--meta); }

.comments { padding: 0 10px 10px; }
.comments--nested {
  padding: 0 0 0 10px;
  margin-left: 4px;
  border-left: 2px solid var(--border-soft);
}
.comment { padding: 7px 0 0; }
.comment__inner { padding-bottom: 3px; }
.comment__meta { font-size: 12px; color: var(--meta); margin-bottom: 3px; }
.comment__author { font-weight: 700; color: var(--meta); }
.comment__author.is-mod { color: var(--green-ink); }
.dot { opacity: .6; }
.usertext--comment { font-size: 13.5px; }
.usertext--comment p { margin-bottom: 6px; }
.comment__actions {
  display: flex; gap: 11px;
  font-size: 11px; font-weight: 700; color: var(--meta);
}
.comment--automod { padding-top: 0; }
.nocomments { padding: 0 10px 14px; color: var(--meta); font-size: 13px; }

/* =============================================================================
   SIDEBAR
   ========================================================================== */

.about__blurb { font-size: 13px; color: var(--text); margin-bottom: 10px; }

.about__ca { margin-bottom: 10px; }
.about__ca-label {
  display: block;
  font-size: 9px; font-weight: 800; letter-spacing: .09em;
  color: var(--meta); margin-bottom: 4px;
}
.about__ca-row {
  display: flex; align-items: stretch; gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  background: var(--votebg);
}
.about__ca-value {
  flex: 1 1 auto; min-width: 0;
  font-size: 11px; line-height: 1.35;
  word-break: break-all;
  color: var(--text);
}
.copybtn--block { align-self: center; }

.about__stats { margin-bottom: 10px; }
.about__stats > div {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.about__stats dt { color: var(--meta); }
.about__stats dd { font-weight: 700; }

.about__warn {
  font-size: 11px; color: var(--meta);
  margin-top: 9px;
}

.side-submit__note { font-size: 11.5px; color: var(--meta); margin-top: 8px; }

.rules { counter-reset: rule; }
.rules li {
  counter-increment: rule;
  display: flex; gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.rules li:last-child { border-bottom: 0; }
.rules li::before {
  content: counter(rule) ".";
  color: var(--meta); font-weight: 800;
  flex: 0 0 auto; min-width: 14px;
}

.modlist li { padding: 3px 0; font-size: 13px; }
.modlist a { color: var(--green-ink); text-decoration: none; font-weight: 700; }
.modlist a:hover { text-decoration: underline; }
.modlinks { display: flex; align-items: stretch; gap: 6px; margin-top: 8px; }
.modlinks .btn { flex: 1 1 0; }
/* `.btn + .btn` gives stacked buttons a 7px top margin, and it is declared
   later in this file with the same specificity. In a flex row that margin made
   Telegram stretch exactly 7px shorter than X, so this has to out-specify it
   rather than merely repeat it. */
.modlinks .btn + .btn { margin-top: 0; }
.modnote { font-size: 11px; color: var(--meta); margin-top: 8px; }

.related li {
  display: flex; justify-content: space-between; gap: 8px; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
}
.related li:last-child { border-bottom: 0; }
.related a { text-decoration: none; font-weight: 700; }
.related a:hover { text-decoration: underline; }
.related span { color: var(--meta); font-size: 11px; }

/* =============================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: block; width: 100%;
  padding: 9px 12px;
  text-align: center; text-decoration: none;
  font: 800 12px/1.2 var(--sans);
  letter-spacing: .05em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn + .btn { margin-top: 7px; }
.btn--fill  { background: var(--green); color: #0C3400; border-color: var(--green); }
.btn--fill:hover { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.btn--ghost { background: #fff; color: var(--green-ink); border-color: var(--green-ink); }
.btn--ghost:hover { background: #F1FAF0; }
.btn--danger { background: #fff; color: var(--red-ink); border-color: var(--red-ink); }
.btn--danger:hover { background: #FFF3F2; }
.btn--big { padding: 12px; font-size: 13px; }
.btn--sm {
  display: inline-block; width: auto;
  padding: 7px 11px; font-size: 11px;
}
.is-sending .btn, .is-sending button[type="submit"] { opacity: .55; pointer-events: none; }

.linkbtn {
  background: none; border: 0; padding: 0;
  color: inherit; font: inherit; cursor: pointer;
  text-decoration: underline;
}
.inlineform { display: inline; }

/* =============================================================================
   CHART TAB
   ========================================================================== */

.chartcard__frame {
  border-bottom: 1px solid var(--border-soft);
  background: var(--votebg);
}
.chartcard__frame iframe {
  display: block; width: 100%; height: 420px; border: 0;
}
.chartcard__note { font-size: 12.5px; color: var(--text); }
.chartcard__note + .chartcard__note { margin-top: 7px; }
.chartcard__note--small { font-size: 11.5px; color: var(--meta); }

/* =============================================================================
   EMPTY STATE / 404
   ========================================================================== */

.empty .card__body { text-align: center; padding: 34px 18px 30px; }
.empty img { opacity: .5; margin-bottom: 12px; }
.empty__line { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.empty__sub { font-size: 13px; color: var(--meta); margin-bottom: 16px; }
.empty .btn { max-width: 260px; margin: 0 auto; }
.empty__links { margin-top: 12px; font-size: 12px; color: var(--meta); }
.empty__links a { color: var(--meta); }

.pager { display: flex; gap: 8px; justify-content: center; padding: 4px 0 10px; }

/* =============================================================================
   SUBMIT FORM
   ========================================================================== */

.submitform { padding: 0 10px 12px; }

.tabradio { position: absolute; opacity: 0; pointer-events: none; }
.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border);
  margin: 0 -10px 14px;
  padding: 0 10px;
}
.tabs__tab {
  padding: 10px 13px;
  font-size: 12.5px; font-weight: 700;
  color: var(--meta); cursor: pointer;
  -webkit-user-select: none; user-select: none;
  border: 1px solid transparent; border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -1px;
}
#tab-text:checked  ~ .tabs .tabs__tab--text,
#tab-image:checked ~ .tabs .tabs__tab--image {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
  border-bottom: 1px solid #fff;
}
.panel { display: none; }
#tab-text:checked  ~ .panel--text  { display: block; }
#tab-image:checked ~ .panel--image { display: block; }

.field { margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 11px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--meta);
  margin-bottom: 5px;
}
.req { color: var(--red-ink); }
.opt { font-weight: 600; text-transform: none; letter-spacing: 0; }

.field__input,
.modfield input:not([type="checkbox"]),
.modfield textarea,
.modfield select {
  display: block; width: 100%;
  padding: 9px 10px;
  font: 400 14px/1.4 var(--sans);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.field__input:focus { border-color: var(--green-ink); outline: none; box-shadow: 0 0 0 1px var(--green-ink); }
.field__input--title { font-size: 16px; resize: vertical; }
.field__input--body  { font-family: var(--sans); resize: vertical; }
.has-error { border-color: var(--red-ink); }

.field__foot { display: flex; justify-content: flex-end; margin-top: 4px; }
.counter { font-size: 11px; color: var(--meta); font-family: var(--mono); }
.counter.is-low { color: var(--red-ink); font-weight: 700; }

.field__prefixed { display: flex; align-items: stretch; }
.field__prefix {
  display: flex; align-items: center;
  padding: 0 9px;
  background: var(--votebg);
  border: 1px solid var(--border); border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  font-family: var(--mono); font-size: 13px; color: var(--meta);
}
.field__prefixed .field__input { border-radius: 0 var(--radius) var(--radius) 0; }

.field__file { display: block; width: 100%; font-size: 13px; }
.field__hint { font-size: 11.5px; color: var(--meta); margin-top: 6px; }

.preview {
  margin-top: 10px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px; background: var(--votebg);
}
.preview[hidden] { display: none; }
.preview img { display: block; max-width: 100%; max-height: 260px; border-radius: 3px; }
.preview__clear {
  margin-top: 7px;
  background: none; border: 0; padding: 0;
  color: var(--red-ink); font: 700 11px var(--sans);
  cursor: pointer; text-decoration: underline;
}

/* Honeypot: off-screen, never focusable, never announced. */
.hp {
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
}

.submitform__foot { border-top: 1px solid var(--border-soft); padding-top: 12px; }
.submitform__foot .btn { max-width: 200px; }
.submitform__note { font-size: 11.5px; color: var(--meta); margin-top: 9px; }

.formerror {
  font-size: 12.5px; font-weight: 600;
  color: var(--red-ink);
  margin-top: 6px;
}
.formerror--top {
  margin: 10px 10px 0;
  padding: 9px 10px;
  background: #FFF3F2;
  border: 1px solid #F3C4C0;
  border-radius: var(--radius);
}

.thanks__actions { display: flex; gap: 8px; margin-top: 14px; }
.thanks__actions .btn { flex: 1 1 0; margin-top: 0; }

/* =============================================================================
   SITE FOOTER
   ========================================================================== */

.sitefoot {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 18px 0 34px;
}
.sitefoot__inner {
  max-width: 1000px; margin: 0 auto; padding: 0 12px;
  font-size: 11.5px; color: var(--meta);
}
.sitefoot p + p { margin-top: 7px; }
.sitefoot strong { color: var(--text); }
.sitefoot__meta a { color: var(--meta); }

/* =============================================================================
   ADMIN
   ========================================================================== */

.admin { background: var(--bg); }

.adminbar { background: var(--green-dark); color: #fff; }
.adminbar__inner {
  max-width: 940px; margin: 0 auto;
  height: 48px; padding: 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.adminbar__logo { line-height: 0; }
.adminbar__logo img { height: 28px; width: auto; display: block; }
.adminbar__title {
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
}
.adminbar__links {
  margin-left: auto;
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700;
}
.adminbar__links a, .adminbar__links button { color: #fff; text-decoration: underline; }

.adminwrap { max-width: 940px; margin: 0 auto; padding: 12px 10px 40px; }

.flash {
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
  border: 1px solid;
}
.flash--ok  { background: #ECF9EC; border-color: #B7E2B5; color: #14601B; }
.flash--err { background: #FFF3F2; border-color: #F3C4C0; color: var(--red-ink); }

.admintabs {
  display: flex; gap: 4px; margin-bottom: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 3px;
}
.admintabs__tab {
  flex: 1 1 0; text-align: center;
  padding: 9px 6px; border-radius: 3px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--meta); text-decoration: none;
}
.admintabs__tab.is-active { background: var(--green); color: #0C3400; }
.admintabs__n { font-family: var(--mono); opacity: .8; }

.bulkbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px; margin-bottom: 12px;
}
.bulkbar__all { font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.bulkbar__note { font-size: 11.5px; color: var(--meta); flex: 1 1 200px; }

.queueitem {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.queueitem--flagged { border-color: var(--red); border-width: 2px; }

.flagbox {
  background: #FFF3F2;
  border-bottom: 1px solid #F3C4C0;
  padding: 9px 10px;
  font-size: 12.5px; color: var(--red-ink);
}
.flagbox strong { display: block; margin-bottom: 4px; }
.flagbox ul { list-style: disc; padding-left: 20px; }
.flagbox li { word-break: break-all; }

.queueitem__preview {
  display: flex; gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.queueitem__check { flex: 0 0 auto; padding-top: 10px; }
.queueitem__card { flex: 1 1 auto; min-width: 0; }
.queueitem__body {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px dashed var(--border-soft);
  font-size: 13px; color: #3D4144;
}

.modform { padding: 10px; background: var(--votebg); }
.modform__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.modfield { display: block; }
.modfield > span {
  display: block;
  font-size: 10px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--meta);
  margin-bottom: 4px;
}
.modfield > span em { font-weight: 600; text-transform: none; letter-spacing: 0; font-style: normal; }
.modfield textarea { resize: vertical; font-family: var(--sans); }
.modfield--check { display: flex; align-items: center; gap: 8px; }
.modfield--check input[type="checkbox"] { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; }
.modfield--check > span { margin: 0; text-transform: none; letter-spacing: 0; font-size: 12.5px; }

.modform__foot {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.modform__meta { font-size: 11px; color: var(--meta); flex: 1 1 200px; word-break: break-all; }
.missing { color: var(--red-ink); }
.modform__buttons { display: flex; gap: 6px; flex-wrap: wrap; }

.loginbox {
  max-width: 340px; margin: 12vh auto 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.loginbox__logo { height: 42px; width: auto; margin-bottom: 12px; }
.loginbox h1 {
  font-size: 12px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--meta);
  margin-bottom: 16px;
}
.loginbox .field { text-align: left; }
.loginbox__foot { margin-top: 14px; font-size: 12px; }
.loginbox__foot a { color: var(--meta); }

/* =============================================================================
   >= 768px: the header stops hiding things
   ========================================================================== */

@media (min-width: 768px) {
  .hamburger, .navdrawer, .castrip { display: none !important; }
  .topbar__ca, .topbar__links { display: flex; }
  .topbar__guhs { display: block; }
  .topbar__inner { padding: 0 12px; gap: 14px; }
  .topbar__logo img { height: 32px; }

  .subbanner__stats { width: auto; margin-left: auto; }
  .bstat { min-width: 96px; flex: 0 0 auto; }
  .subbanner__icon { width: 52px; height: 52px; }
  .subbanner__name { font-size: 20px; }

  .container { padding: 12px; }
  .post__actions { gap: 12px; font-size: 12px; }
  .post { grid-template-columns: 40px 70px minmax(0, 1fr); gap: 10px; }
  .post--detail, .post--preview { grid-template-columns: 40px minmax(0, 1fr); }
  .postcard__body { padding: 0 12px 14px 60px; }
  .videobox__player { max-width: 340px; }
  .chartcard__frame iframe { height: 500px; }
  .modform__grid { grid-template-columns: 1fr 1fr; }
  .modfield--wide { grid-column: 1 / -1; }
}

@media (min-width: 1060px) {
  .ca-full  { display: inline; }
  .ca-short { display: none; }
}

/* =============================================================================
   >= 940px: two columns.
   The ABOUT box is printed before the feed in the HTML so it lands above the
   feed on a phone. Explicit grid placement puts it back at the top of the
   sidebar here, with no duplicated markup.
   ========================================================================== */

@media (min-width: 940px) {
  .container {
    display: grid;
    grid-template-columns: minmax(0, 640px) 312px;
    /* auto 1fr, not auto auto. The feed spans both rows, and against two auto
       rows the grid algorithm distributes the feed's full height across them,
       which inflates row 1 and drops the rest of the sidebar hundreds of pixels
       below the ABOUT box. A flexible second row is excluded from that
       distribution, so row 1 sizes to the ABOUT box and nothing else. */
    grid-template-rows: auto 1fr;
    gap: 16px;
    justify-content: center;
    align-items: start;
  }
  .col-main   { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
  .side-about { grid-column: 2; grid-row: 1; }
  .col-side   { grid-column: 2; grid-row: 2; }
}

/* Below the two-column breakpoint the ABOUT box is hoisted above the feed, so
   trim it to the part that matters: the address and the two buttons. */
@media (max-width: 939px) {
  .about__blurb { display: none; }
  .about__stats > div:nth-child(n+3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
