/* ==========================================================================
   CryptoCoinForum.org — stylesheet
   Palette borrowed from the Robinhood cat mural: mint, cream, coral, deep navy.
   ========================================================================== */

/* ------------------------------------------------------------- variables */

:root {
  --mint: #1f9d76;
  --mint-dark: #17795b;
  --mint-light: #d8f0e6;
  --coral: #e8664b;
  --coral-dark: #c94b31;
  --gold: #e0a53c;
  --navy: #17263a;
  --navy-2: #1f3350;

  --bg: #eceff3;
  --bg-alt: #e2e7ed;
  --panel: #ffffff;
  --panel-2: #f7f9fb;
  --panel-3: #eef2f6;
  --border: #d3dae2;
  --border-strong: #bcc6d1;
  --text: #1d2733;
  --text-soft: #5a6875;
  --text-mute: #8894a2;
  --link: #14664f;
  --link-hover: #0e4a39;

  --head-bg: linear-gradient(178deg, #1b2c44 0%, #16243a 100%);
  --nav-bg: #22374f;
  --nav-active: var(--mint);

  --radius: 5px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 48, .07);
  --shadow: 0 2px 8px rgba(20, 32, 48, .10);
  --shadow-lg: 0 12px 44px rgba(14, 24, 38, .26);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Semibold", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --wrap: 1220px;
}

html[data-theme="dark"] {
  --bg: #12181f;
  --bg-alt: #0d1218;
  --panel: #1a222c;
  --panel-2: #202a36;
  --panel-3: #26313f;
  --border: #2c3844;
  --border-strong: #3a4856;
  --text: #dfe6ee;
  --text-soft: #a3b0bf;
  --text-mute: #7c8a9a;
  --link: #4ecfa4;
  --link-hover: #7fe0bd;
  --mint-light: #16342a;
  --head-bg: linear-gradient(178deg, #14202e 0%, #101a26 100%);
  --nav-bg: #1b2735;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow-lg: 0 14px 48px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------ base reset */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(31, 157, 118, .07), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(232, 102, 75, .05), transparent 40%);
  background-attachment: fixed;
}

img { max-width: 100%; border: 0; vertical-align: middle; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 600; margin: 0 0 .55em; line-height: 1.25; }
h1 { font-size: 24px; } h2 { font-size: 19px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 22px; }
li { margin-bottom: .35em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
small { font-size: 12px; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
code, kbd { font-family: var(--font-mono); font-size: .92em; }

::selection { background: rgba(31, 157, 118, .28); }

/* --------------------------------------------------------------- layout */

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.page-body { padding: 16px 0 40px; }

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.cols-narrow { grid-template-columns: minmax(0, 1fr) 260px; }
.col-main { min-width: 0; }
.col-side { min-width: 0; }

/* ------------------------------------------------------------ top header */

.site-head {
  background: var(--head-bg);
  color: #e8eef5;
  border-bottom: 3px solid var(--mint);
  position: relative;
  z-index: 40;
}

.head-strip {
  background: rgba(0, 0, 0, .22);
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.head-strip .wrap { display: flex; align-items: center; gap: 14px; height: 30px; }
.head-strip a { color: #9fb2c6; }
.head-strip a:hover { color: #fff; text-decoration: none; }
.strip-spacer { flex: 1; }
.strip-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.strip-sep { color: rgba(255, 255, 255, .16); }

.head-main .wrap {
  display: flex; align-items: center; gap: 18px;
  padding-top: 15px; padding-bottom: 15px;
}

.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px; flex: none;
  background: var(--mint); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .22);
}
.logo-mark svg { width: 27px; height: 27px; display: block; }
.logo-text { line-height: 1.05; }
.logo-name {
  font-family: var(--font-head); font-size: 24px; font-weight: 700;
  color: #fff; letter-spacing: -.4px;
}
.logo-name .tld { color: var(--mint); }
.logo-tag { font-size: 11px; color: #8ea3b9; letter-spacing: .3px; }

.head-search { margin-left: auto; position: relative; }
.head-search input {
  width: 250px; height: 34px; padding: 0 34px 0 12px;
  border-radius: 17px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .09); color: #fff; outline: none;
  transition: width .18s, background .18s;
}
.head-search input::placeholder { color: #8ea3b9; }
.head-search input:focus { width: 300px; background: rgba(255, 255, 255, .16); border-color: var(--mint); }
.head-search button {
  position: absolute; right: 3px; top: 3px; width: 28px; height: 28px;
  border: 0; background: none; color: #9fb2c6; cursor: pointer; border-radius: 50%;
}
.head-search button:hover { color: #fff; }

.head-cta { display: flex; gap: 8px; }

/* ------------------------------------------------------------------- nav */

.site-nav { background: var(--nav-bg); position: sticky; top: 0; z-index: 39; box-shadow: var(--shadow-sm); }
.site-nav .wrap { display: flex; align-items: stretch; }
.nav-list { display: flex; list-style: none; margin: 0; padding: 0; flex: 1; }
.nav-list > li { position: relative; margin: 0; }
.nav-list > li > a {
  display: flex; align-items: center; height: 40px; padding: 0 15px;
  color: #cfdae6; font-weight: 600; font-size: 13.5px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.nav-list > li > a:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.nav-list > li.active > a { color: #fff; border-bottom-color: var(--nav-active); background: rgba(255, 255, 255, .05); }
.nav-caret { margin-left: 5px; opacity: .6; font-size: 9px; }

.nav-drop {
  position: absolute; top: 100%; left: 0; min-width: 232px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px 0; display: none; z-index: 60;
}
.nav-list > li:hover .nav-drop, .nav-drop.open { display: block; }
.nav-drop a {
  display: block; padding: 7px 15px; color: var(--text); font-size: 13px;
}
.nav-drop a:hover { background: var(--panel-3); text-decoration: none; color: var(--link); }
.nav-drop .drop-sep { height: 1px; background: var(--border); margin: 6px 0; }
.nav-drop .drop-label {
  padding: 6px 15px 3px; font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .7px; color: var(--text-mute); font-weight: 700;
}

.nav-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-search, .mobile-search { display: none; }
.nav-tool {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 40px; color: #9fb2c6; background: none; border: 0; cursor: pointer;
}
.nav-tool:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------ news ticker */

.ticker {
  background: var(--panel); border-bottom: 1px solid var(--border);
  overflow: hidden; height: 34px; position: relative;
}
.ticker-inner { display: flex; align-items: center; height: 34px; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.ticker-label {
  flex: none; font-size: 10.5px; font-weight: 800; letter-spacing: .9px;
  text-transform: uppercase; color: #fff; background: var(--coral);
  padding: 3px 9px; border-radius: 3px; margin-right: 12px;
}
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 34px; }
.ticker-move {
  display: flex; align-items: center; gap: 26px; height: 34px;
  white-space: nowrap; position: absolute; left: 0;
  animation: tickerScroll 68s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tick-item { font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.tick-sym { font-weight: 700; color: var(--text); }
.tick-price { color: var(--text-soft); font-variant-numeric: tabular-nums; }
.up { color: #17915f; } .down { color: #cf4436; }
html[data-theme="dark"] .up { color: #3ecf92; }
html[data-theme="dark"] .down { color: #f2705e; }

/* ------------------------------------------------------------ breadcrumb */

.crumbs {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px; margin-bottom: 14px;
  font-size: 12.5px; color: var(--text-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.crumbs .sep { color: var(--text-mute); }
.crumbs a { color: var(--text-soft); }
.crumbs a:hover { color: var(--link); }

/* ---------------------------------------------------------------- blocks */

.block {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  margin-bottom: 16px; overflow: hidden;
}
.block-head {
  background: var(--panel-3); border-bottom: 1px solid var(--border);
  padding: 9px 14px; display: flex; align-items: center; gap: 10px;
}
.block-head h2, .block-head h3 {
  margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .1px;
}
.block-head .head-link { margin-left: auto; font-size: 12px; font-weight: 600; }
.block-body { padding: 14px; }
.block-body.flush { padding: 0; }
.block-foot {
  background: var(--panel-2); border-top: 1px solid var(--border);
  padding: 8px 14px; font-size: 12.5px; color: var(--text-soft);
}

/* category header bar */
.cat-head {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff; padding: 10px 14px; display: flex; align-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
}
html[data-theme="dark"] .cat-head { background: linear-gradient(180deg, #263548, #1b2735); }
.cat-head h2 { margin: 0; font-size: 14.5px; color: #fff; font-weight: 700; }
.cat-toggle {
  margin-left: auto; background: none; border: 0; color: #a9bbcd;
  cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 3px;
}
.cat-toggle:hover { color: #fff; background: rgba(255, 255, 255, .12); }

/* ----------------------------------------------------------- forum rows */

.node-list { list-style: none; margin: 0; padding: 0; }
.node {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 110px 240px;
  gap: 12px; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  background: var(--panel); margin: 0;
}
.node:last-child { border-bottom: 0; }
.node:hover { background: var(--panel-2); }

.node-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--panel-3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mute);
}
.node-icon svg { width: 19px; height: 19px; }
.node.unread .node-icon { background: var(--mint); border-color: var(--mint-dark); color: #fff; }

.node-title { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.node-title a { color: var(--text); }
.node.unread .node-title a { color: var(--link); }
.node-desc { font-size: 12.5px; color: var(--text-soft); margin: 0; }
.node-sub { font-size: 11.5px; color: var(--text-mute); margin-top: 4px; }
.node-sub a { color: var(--text-mute); }

.node-stats { font-size: 12px; color: var(--text-soft); text-align: right; }
.node-stats dt { display: inline; font-weight: 400; }
.node-stats dd { display: inline; margin: 0 0 0 4px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.node-stats div { white-space: nowrap; }

.node-last { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; min-width: 0; }
.node-last img { width: 32px; height: 32px; border-radius: 3px; flex: none; }
.node-last-body { min-width: 0; }
.node-last-title {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-weight: 600; max-width: 195px;
}
.node-last-meta { color: var(--text-mute); font-size: 11.5px; }

/* --------------------------------------------------------- thread lists */

.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 100px 210px;
  gap: 12px; align-items: center; padding: 10px 14px;
  border-bottom: 1px solid var(--border); margin: 0; background: var(--panel);
}
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: var(--panel-2); }
.thread-row.is-sticky { background: linear-gradient(90deg, rgba(224, 165, 60, .07), transparent 55%); }
html[data-theme="dark"] .thread-row.is-sticky { background: linear-gradient(90deg, rgba(224, 165, 60, .10), transparent 55%); }

.thread-avatar { width: 36px; height: 36px; border-radius: 3px; }
.thread-main { min-width: 0; }
.thread-title { font-size: 14.5px; margin: 0 0 3px; font-weight: 400; }
.thread-title a { color: var(--text-soft); }
.thread-row.unread .thread-title a { color: var(--link); font-weight: 700; }
.thread-row.unread .thread-title a:hover { color: var(--link-hover); }
.thread-meta { font-size: 12px; color: var(--text-mute); display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.thread-meta a { color: var(--text-mute); font-weight: 600; }
.thread-meta a:hover { color: var(--link); }
.thread-stats { font-size: 12px; color: var(--text-soft); text-align: right; font-variant-numeric: tabular-nums; }
.thread-stats b { display: block; color: var(--text); font-weight: 700; }
.thread-stats span { font-size: 11px; color: var(--text-mute); }
.thread-last { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.thread-last img { width: 30px; height: 30px; border-radius: 3px; flex: none; }
.thread-last-meta { min-width: 0; }
.thread-last-meta a { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-last-meta span { color: var(--text-mute); font-size: 11.5px; }

/* icons and badges on rows */
.t-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; color: var(--text-mute); vertical-align: -2px;
}
.t-icon svg { width: 13px; height: 13px; }

.prefix {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px;
  border-radius: 3px; margin-right: 6px; vertical-align: 1px;
  text-transform: uppercase; letter-spacing: .4px;
}
.px-news { background: #dfe9f6; color: #2d5a92; }
.px-discussion { background: #e2e8ee; color: #4b5b6d; }
.px-question { background: #e6e0f4; color: #5a3f97; }
.px-guide { background: var(--mint-light); color: var(--mint-dark); }
.px-warning { background: #fbe1dc; color: var(--coral-dark); }
.px-analysis { background: #fdeecf; color: #97671a; }
.px-official { background: var(--navy); color: #fff; }
.px-solved { background: #d7f0dc; color: #1f7a3a; }
.px-ann { background: #d9eef7; color: #1a6a89; }
.px-meta { background: #e8e4de; color: #6c6152; }
html[data-theme="dark"] .px-news { background: #21374f; color: #96c2f0; }
html[data-theme="dark"] .px-discussion { background: #2b3541; color: #a9bccd; }
html[data-theme="dark"] .px-question { background: #322a4d; color: #b8a2ee; }
html[data-theme="dark"] .px-guide { background: #17392c; color: #63d7a8; }
html[data-theme="dark"] .px-warning { background: #45231d; color: #f5917c; }
html[data-theme="dark"] .px-analysis { background: #43351a; color: #e5b662; }
html[data-theme="dark"] .px-official { background: #0f1a28; color: #cfe0f0; }
html[data-theme="dark"] .px-solved { background: #1b3a26; color: #6fd28d; }
html[data-theme="dark"] .px-ann { background: #14384a; color: #6fc6e6; }
html[data-theme="dark"] .px-meta { background: #38332c; color: #c4b8a4; }

.tag-new {
  background: var(--coral); color: #fff; font-size: 10px; font-weight: 800;
  padding: 1px 5px; border-radius: 3px; letter-spacing: .5px; margin-left: 6px;
  vertical-align: 1px; text-transform: uppercase;
}
.tag-hot { color: var(--coral); font-weight: 700; }

/* --------------------------------------------------------------- posts */

.post {
  display: grid; grid-template-columns: 190px minmax(0, 1fr);
  border-bottom: 1px solid var(--border); background: var(--panel);
}
.post:last-child { border-bottom: 0; }
.post:target { box-shadow: inset 4px 0 0 var(--gold); }

.post-user {
  padding: 16px 14px; text-align: center; border-right: 1px solid var(--border);
  background: var(--panel-2);
}
.post-user-avatar { width: 88px; height: 88px; border-radius: 4px; margin-bottom: 8px; }
.post-user-name { font-size: 14.5px; font-weight: 700; display: block; margin-bottom: 2px; word-break: break-word; }
.post-user-title { font-size: 11.5px; color: var(--text-soft); margin-bottom: 8px; }
.user-banner {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  padding: 2px 9px; border-radius: 3px; margin-bottom: 8px; text-transform: uppercase; color: #fff;
}
.ub-admin { background: var(--coral); }
.ub-mod { background: var(--mint); }
.ub-staff { background: #5a6d85; }
.post-user-stats { font-size: 11.5px; color: var(--text-mute); line-height: 1.7; }
.post-user-stats dl { display: flex; justify-content: space-between; margin: 0; gap: 8px; }
.post-user-stats dt { color: var(--text-mute); }
.post-user-stats dd { margin: 0; font-weight: 700; color: var(--text-soft); font-variant-numeric: tabular-nums; }

.post-main { display: flex; flex-direction: column; min-width: 0; }
.post-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-mute);
}
.post-head a { color: var(--text-mute); }
.post-num { margin-left: auto; font-weight: 700; }
.post-body { padding: 16px; flex: 1; font-size: 14.5px; line-height: 1.62; word-wrap: break-word; }
.post-body p { margin-bottom: 1.05em; }
.post-body ul, .post-body ol { margin-bottom: 1.05em; }
.post-body img { border-radius: 4px; }
.post-media { margin: 0 0 14px; }
.post-media img {
  max-height: 340px; border: 1px solid var(--border); border-radius: 4px; display: block;
}
.post-source { font-size: 13px; color: var(--text-soft); }
.post-edit-note { font-size: 12px; color: var(--text-mute); font-style: italic; margin-top: 12px; }

.bb-quote {
  margin: 0 0 14px; padding: 10px 14px; background: var(--panel-3);
  border-left: 3px solid var(--mint); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px;
}
.bb-quote-head { font-weight: 700; font-size: 12.5px; margin-bottom: 5px; color: var(--text-soft); }
.bb-quote-body { color: var(--text-soft); }
.bb-quote-foot { margin-top: 6px; font-size: 12px; }

.post-sig {
  border-top: 1px solid var(--border); margin: 14px 16px 0; padding: 10px 0 0;
  font-size: 12.5px; color: var(--text-mute); font-style: italic;
}
.post-foot {
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  border-top: 1px solid var(--border); font-size: 12.5px; background: var(--panel-2);
}
.post-actions { margin-left: auto; display: flex; gap: 10px; }
.post-actions button {
  background: none; border: 0; color: var(--text-mute); cursor: pointer;
  font-size: 12.5px; font-weight: 600; padding: 2px 4px; border-radius: 3px;
}
.post-actions button:hover { color: var(--link); background: var(--panel-3); }
.reaction-bar {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-soft);
}
.reaction-bar .rx { font-size: 14px; letter-spacing: -3px; }
.staff-note {
  background: rgba(224, 165, 60, .12); border-left: 3px solid var(--gold);
  padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 12px;
}
.staff-note-label {
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: #97671a; display: block; margin-bottom: 4px;
}
html[data-theme="dark"] .staff-note-label { color: var(--gold); }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--border-strong); background: var(--panel);
  color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background .13s, border-color .13s, color .13s;
}
.btn:hover { background: var(--panel-3); text-decoration: none; color: var(--text); }
.btn-primary { background: var(--mint); border-color: var(--mint-dark); color: #fff; }
.btn-primary:hover { background: var(--mint-dark); color: #fff; }
.btn-coral { background: var(--coral); border-color: var(--coral-dark); color: #fff; }
.btn-coral:hover { background: var(--coral-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .22); color: #dce6f0; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-sm { height: 27px; padding: 0 10px; font-size: 12px; }
.btn-lg { height: 40px; padding: 0 22px; font-size: 14.5px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* --------------------------------------------------------------- forms */

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 13px; }
.field .hint { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.input, select.input, textarea.input {
  width: 100%; padding: 8px 11px; border: 1px solid var(--border-strong);
  border-radius: var(--radius); background: var(--panel-2); color: var(--text);
  outline: none; transition: border-color .13s, box-shadow .13s;
}
.input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(31, 157, 118, .16); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
.input[disabled] { background: var(--panel-3); color: var(--text-mute); cursor: not-allowed; }

/* -------------------------------------------------------------- notices */

.notice {
  border: 1px solid var(--border); border-left: 4px solid var(--mint);
  background: var(--panel); border-radius: var(--radius);
  padding: 12px 15px; margin-bottom: 16px; font-size: 13.5px;
  display: flex; gap: 11px; align-items: flex-start;
}
.notice-warn { border-left-color: var(--coral); }
.notice-info { border-left-color: #3d7bc4; }
.notice-gold { border-left-color: var(--gold); }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--text-mute); }
.notice-body { min-width: 0; }
.notice-title { font-weight: 700; margin-bottom: 3px; }
.notice-close {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--text-mute); font-size: 16px; line-height: 1; padding: 0 2px;
}

/* ----------------------------------------------------------- pagination */

.pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: 14px 0; }
.pager a, .pager span {
  min-width: 30px; height: 30px; padding: 0 9px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--panel);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--text-soft);
}
.pager a:hover { background: var(--panel-3); text-decoration: none; color: var(--link); }
.pager .current { background: var(--mint); border-color: var(--mint-dark); color: #fff; }
.pager .gap { border: 0; background: none; color: var(--text-mute); min-width: 18px; padding: 0; }
.pager-info { margin-left: auto; font-size: 12.5px; color: var(--text-mute); }

/* -------------------------------------------------------------- sidebar */

.side-block { margin-bottom: 16px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li {
  display: flex; gap: 9px; padding: 9px 14px; border-bottom: 1px solid var(--border);
  font-size: 12.5px; margin: 0;
}
.side-list li:last-child { border-bottom: 0; }
.side-list img { width: 32px; height: 32px; border-radius: 3px; flex: none; }
.side-item-body { min-width: 0; flex: 1; }
.side-item-title {
  display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.side-item-meta { color: var(--text-mute); font-size: 11.5px; margin-top: 2px; }

.stat-grid { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 12.5px; padding: 12px 14px; }
.stat-grid dt { color: var(--text-soft); margin: 0; }
.stat-grid dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

.online-names { font-size: 12.5px; line-height: 1.85; padding: 12px 14px; }
.online-names a { font-weight: 600; }
.online-names .is-staff { color: var(--coral); }
.online-names .is-mod { color: var(--mint-dark); }
html[data-theme="dark"] .online-names .is-mod { color: var(--link); }

.member-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.member-strip img { width: 36px; height: 36px; border-radius: 3px; }

/* --------------------------------------------------------------- misc UI */

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a {
  padding: 8px 15px; font-size: 13.5px; font-weight: 600; color: var(--text-soft);
  border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--link); text-decoration: none; background: var(--panel-2); }
.tabs a.active {
  background: var(--panel); border-color: var(--border); color: var(--text);
  border-bottom: 1px solid var(--panel);
}

.page-head { margin-bottom: 16px; }
.page-head h1 { margin-bottom: 4px; }
.page-head .sub { color: var(--text-soft); font-size: 13.5px; }
.page-title-row { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.page-title-row .spacer { flex: 1; }

.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 12px; margin-bottom: 14px; font-size: 12.5px;
}
.filter-bar select { height: 28px; padding: 0 6px; border-radius: 3px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text); }
.filter-bar .spacer { flex: 1; }

.empty {
  padding: 44px 20px; text-align: center; color: var(--text-mute);
}
.empty svg { width: 40px; height: 40px; opacity: .4; margin-bottom: 10px; }

.skeleton {
  background: linear-gradient(90deg, var(--panel-3) 25%, var(--panel-2) 37%, var(--panel-3) 63%);
  background-size: 400% 100%; animation: shimmer 1.3s ease-in-out infinite;
  border-radius: 3px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.sk-row { display: grid; grid-template-columns: 40px 1fr 90px 190px; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.sk-line { height: 11px; }

/* new-content pill */
.new-pill {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(-70px);
  top: 88px; z-index: 55; background: var(--coral); color: #fff;
  border-radius: 20px; padding: 8px 18px; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-lg); cursor: pointer; border: 0;
  opacity: 0; transition: transform .3s cubic-bezier(.2,.9,.3,1.2), opacity .3s;
}
.new-pill.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ------------------------------------------------------------- markets */

.market-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.market-table th {
  text-align: right; padding: 9px 12px; background: var(--panel-3);
  border-bottom: 1px solid var(--border); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-soft); white-space: nowrap;
}
.market-table th:nth-child(1), .market-table th:nth-child(2) { text-align: left; }
.market-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.market-table td:nth-child(1), .market-table td:nth-child(2) { text-align: left; }
.market-table tbody tr:hover { background: var(--panel-2); }
.coin-cell { display: flex; align-items: center; gap: 9px; }
.coin-cell img { width: 22px; height: 22px; border-radius: 50%; }
.coin-name { font-weight: 600; }
.coin-sym { color: var(--text-mute); text-transform: uppercase; font-size: 12px; }
.spark { width: 108px; height: 30px; }

.gauge-wrap { text-align: center; padding: 18px 14px; }
.gauge { width: 170px; height: 96px; margin: 0 auto 6px; }
.gauge-value { font-size: 32px; font-weight: 800; line-height: 1; }
.gauge-label { font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }

.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.metric {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 15px;
}
.metric-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-mute); margin-bottom: 5px; }
.metric-value { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metric-sub { font-size: 12px; margin-top: 3px; }

/* -------------------------------------------------------------- members */

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.member-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px; display: flex; gap: 12px; align-items: flex-start;
}
.member-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.member-card img { width: 52px; height: 52px; border-radius: 4px; flex: none; }
.member-card-body { min-width: 0; }
.member-card-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 5px; overflow: hidden; text-overflow: ellipsis; }
.member-card-title { font-size: 12px; color: var(--text-soft); margin-bottom: 6px; }
.member-card-stats { font-size: 11.5px; color: var(--text-mute); }

.online-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #1fa96f; margin-right: 5px; vertical-align: 0;
  box-shadow: 0 0 0 2px rgba(31, 169, 111, .22);
}
.offline-dot { background: var(--text-mute); box-shadow: none; }

.profile-head {
  display: flex; gap: 20px; padding: 20px; align-items: flex-start; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-bottom: 1px solid var(--border);
}
.profile-avatar { width: 132px; height: 132px; border-radius: 6px; border: 3px solid var(--panel); box-shadow: var(--shadow); }
.profile-info { flex: 1; min-width: 220px; }
.profile-name { font-size: 25px; font-weight: 700; margin: 0 0 3px; display: flex; align-items: center; gap: 8px; }
.profile-title { color: var(--text-soft); margin-bottom: 12px; }
.profile-stats { display: flex; gap: 26px; flex-wrap: wrap; }
.profile-stat b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.profile-stat span { font-size: 11.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .5px; }

.trophy { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--border); align-items: center; }
.trophy:last-child { border-bottom: 0; }
.trophy-points {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none;
}
.trophy-name { font-weight: 700; }
.trophy-desc { font-size: 12.5px; color: var(--text-soft); }

.dl-info { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13px; padding: 14px; margin: 0; }
.dl-info dt { color: var(--text-soft); }
.dl-info dd { margin: 0; font-weight: 600; }

/* ---------------------------------------------------------------- polls */

.poll { padding: 16px; }
.poll-q { font-weight: 700; margin-bottom: 14px; font-size: 15px; }
.poll-opt { margin-bottom: 11px; }
.poll-opt-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.poll-bar { height: 9px; background: var(--panel-3); border-radius: 5px; overflow: hidden; }
.poll-bar span { display: block; height: 100%; background: var(--mint); border-radius: 5px; transition: width .8s cubic-bezier(.2,.8,.3,1); }
.poll-foot { font-size: 12px; color: var(--text-mute); margin-top: 12px; }

/* ---------------------------------------------------------- reply block */

.reply-locked {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--panel-2); padding: 24px; text-align: center;
}
.reply-locked h3 { margin-bottom: 6px; }
.reply-locked p { color: var(--text-soft); max-width: 560px; margin: 0 auto 14px; }

.fake-editor {
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--panel); overflow: hidden; opacity: .62;
}
.editor-toolbar {
  display: flex; gap: 3px; padding: 6px 8px; background: var(--panel-3);
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.editor-toolbar span {
  width: 26px; height: 24px; display: flex; align-items: center; justify-content: center;
  color: var(--text-mute); border-radius: 3px; font-size: 12px; font-weight: 700;
}
.editor-area { padding: 14px; min-height: 92px; color: var(--text-mute); font-size: 13.5px; }

/* -------------------------------------------------------------- footer */

.site-foot { background: var(--navy); color: #a5b6c8; margin-top: 40px; }
html[data-theme="dark"] .site-foot { background: #0d151f; }
.foot-top { padding: 34px 0 26px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
.foot-brand .logo-name { font-size: 20px; }
.foot-about { font-size: 12.5px; line-height: 1.7; margin-top: 12px; max-width: 330px; }
.foot-col h4 { color: #fff; font-size: 13px; margin-bottom: 12px; letter-spacing: .3px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; }
.foot-col a { color: #a5b6c8; font-size: 12.5px; }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  padding: 15px 0; font-size: 12px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.foot-bottom .spacer { flex: 1; }
.foot-select {
  height: 28px; background: rgba(255, 255, 255, .07); color: #cfdae6;
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 3px; padding: 0 7px;
}
.foot-disclaimer {
  background: rgba(0, 0, 0, .25); padding: 13px 0; font-size: 11.5px;
  color: #7d8ea1; line-height: 1.65;
}

/* ------------------------------------------------------- loading screen */

#loader {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity .38s ease, visibility .38s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 62px; height: 62px; border-radius: 15px; background: var(--mint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  animation: pulseMark 1.5s ease-in-out infinite;
  box-shadow: 0 8px 26px rgba(31, 157, 118, .34);
}
.loader-mark svg { width: 38px; height: 38px; }
@keyframes pulseMark {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.075); }
}
.loader-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-bottom: 16px; letter-spacing: -.2px; }
.loader-name .tld { color: var(--mint); }
.loader-bar { width: 210px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.loader-bar span {
  display: block; height: 100%; width: 0%; background: var(--mint);
  border-radius: 2px; transition: width .3s ease;
}
.loader-status { margin-top: 12px; font-size: 12px; color: var(--text-mute); height: 16px; }

/* top progress bar for in-page loads */
#progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--coral); z-index: 200; transition: width .25s ease, opacity .3s;
  box-shadow: 0 0 8px rgba(232, 102, 75, .7);
}

/* ------------------------------------------------------- cookie consent */

#cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 210;
  background: var(--panel); border-top: 3px solid var(--mint);
  box-shadow: 0 -6px 30px rgba(14, 24, 38, .2);
  transform: translateY(105%); transition: transform .42s cubic-bezier(.2,.9,.3,1);
}
#cookie-bar.show { transform: translateY(0); }
.cookie-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 18px 16px;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 260px; font-size: 13px; color: var(--text-soft); line-height: 1.6; }
.cookie-text strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 14.5px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cookie-prefs { display: none; width: 100%; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; }
.cookie-prefs.open { display: block; }
.pref-row { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.pref-row:last-child { border-bottom: 0; }
.pref-body { flex: 1; }
.pref-name { font-weight: 700; font-size: 13px; }
.pref-desc { font-size: 12.5px; color: var(--text-soft); }

.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; background: var(--border-strong); border-radius: 11px;
  cursor: pointer; transition: background .2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; transition: transform .2s;
}
.switch input:checked + .track { background: var(--mint); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:disabled + .track { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------------------- modals */

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(12, 20, 30, .58);
  backdrop-filter: blur(2px); z-index: 220;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.modal-backdrop.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--panel); border-radius: var(--radius-lg); width: 100%;
  max-width: 460px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(14px) scale(.98); transition: transform .24s cubic-bezier(.2,.9,.3,1.1);
  max-height: 90vh; display: flex; flex-direction: column;
}
.modal-backdrop.show .modal { transform: none; }
.modal-lg { max-width: 640px; }
.modal-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; background: var(--panel-3);
}
.modal-head h3 { margin: 0; font-size: 15.5px; }
.modal-close {
  margin-left: auto; background: none; border: 0; font-size: 20px; line-height: 1;
  color: var(--text-mute); cursor: pointer; padding: 0 3px;
}
.modal-close:hover { color: var(--text); }
.modal-body { padding: 18px; overflow-y: auto; font-size: 13.5px; }
.modal-foot {
  padding: 12px 18px; border-top: 1px solid var(--border); background: var(--panel-2);
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap;
}

/* --------------------------------------------------------------- toasts */

#toasts {
  position: fixed; right: 18px; bottom: 18px; z-index: 230;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-end;
  pointer-events: none;
}
.toast {
  background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--mint);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 11px 15px; font-size: 13px; max-width: 330px; pointer-events: auto;
  display: flex; gap: 10px; align-items: flex-start;
  transform: translateX(120%); transition: transform .32s cubic-bezier(.2,.9,.3,1.1), opacity .3s;
}
.toast.show { transform: none; }
.toast.hide { opacity: 0; transform: translateX(40%); }
.toast-coral { border-left-color: var(--coral); }
.toast-gold { border-left-color: var(--gold); }
.toast img { width: 30px; height: 30px; border-radius: 3px; flex: none; }
.toast-body { min-width: 0; }
.toast-title { font-weight: 700; margin-bottom: 2px; }
.toast-text { color: var(--text-soft); font-size: 12.5px; }
.toast a { font-weight: 600; }

/* ------------------------------------------------------------ scroll top */

#to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--panel); color: var(--text-soft); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .25s;
}
#to-top.show { opacity: 1; visibility: visible; }
#to-top:hover { color: var(--link); transform: translateY(-2px); }

/* -------------------------------------------------------------- helpers */

mark {
  background: rgba(224, 165, 60, .34); color: inherit;
  padding: 0 2px; border-radius: 2px;
}

.muted { color: var(--text-mute); }
.soft { color: var(--text-soft); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mb0 { margin-bottom: 0; }
.mt16 { margin-top: 16px; }
.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;
}
.prose { font-size: 14.5px; line-height: 1.72; }
.prose h2 { margin-top: 28px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.prose h3 { margin-top: 22px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: .5em; }
.prose blockquote {
  margin: 0 0 1em; padding: 10px 16px; border-left: 3px solid var(--mint);
  background: var(--panel-2); color: var(--text-soft);
}

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; padding: 13px 14px;
  font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
.faq-q:hover { background: var(--panel-2); }
.faq-q .chev { margin-left: auto; color: var(--text-mute); transition: transform .2s; }
.faq-item.open .faq-q .chev { transform: rotate(90deg); }
.faq-a { display: none; padding: 0 14px 15px; font-size: 13.5px; color: var(--text-soft); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ---------------------------------------------------------- magazine */

.head-account { display: flex; align-items: center; gap: 8px; }
.account-chip {
  display: flex; align-items: center; gap: 8px;
  color: #fff !important; text-decoration: none !important;
  font-size: 13px; font-weight: 600;
}
.account-chip img { width: 28px; height: 28px; border-radius: 50%; }
.account-chip:hover { opacity: .85; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.hero-no-media,
.hero:not(:has(.hero-media:not([hidden]))) { grid-template-columns: 1fr; }
.hero-no-media .hero-copy,
.hero:not(:has(.hero-media:not([hidden]))) .hero-copy { max-width: 820px; }
.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 280px;
  overflow: hidden;
  background: var(--navy);
}
.hero-media[hidden], .hero-media.is-broken { display: none !important; }
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-copy { padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { font-size: 30px; letter-spacing: -.4px; margin: 8px 0 12px; line-height: 1.2; }
.hero-copy h1 a { color: var(--text); text-decoration: none; }
.hero-copy h1 a:hover { color: var(--link); }
.hero-copy p { color: var(--text-soft); font-size: 15.5px; line-height: 1.55; }

.acard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
}
.acard-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acard-stack { display: flex; flex-direction: column; gap: 0; }
.acard-stack .acard { border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px solid var(--border); }
.acard-stack .acard:last-child { border-bottom: 0; }

.acard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
}
.acard-compact,
.acard-no-media { grid-template-columns: 1fr; }
.acard-stack .acard-has-media:not(.acard-no-media) {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
}
.acard-media { min-height: 0; background: none; }
.acard-media[hidden], .acard-media.is-broken { display: none !important; }
.acard-grid .acard-media img {
  width: 100%; height: 168px; object-fit: cover; display: block; min-height: 0;
}
.acard-stack .acard-has-media .acard-media img {
  width: 100%; height: 100%; min-height: 96px; max-height: 118px; object-fit: cover; display: block;
}
.acard-body { padding: 14px 16px 16px; min-width: 0; }
.acard-stack .acard-has-media:not(.acard-no-media) .acard-body { padding: 12px 14px 12px 0; }
.acard-compact .acard-body { padding: 14px; }
.acard-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mute); }
.acard-title { font-size: 17px; margin: 0 0 6px; }
.acard-title a { color: var(--text); text-decoration: none; }
.acard-title a:hover { color: var(--link); }
.acard-dek { font-size: 13.5px; color: var(--text-soft); margin: 0 0 10px; line-height: 1.5; }
.acard-meta { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-mute); flex-wrap: wrap; }
.acard-meta img { width: 22px; height: 22px; border-radius: 50%; }

.story { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 32px 36px; margin-bottom: 16px; }
.story-title { font-size: 32px; letter-spacing: -.5px; line-height: 1.22; margin: 8px 0 16px; }
.story-byline { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.story-byline img { width: 44px; height: 44px; border-radius: 50%; }
.article-body { font-size: 17px; line-height: 1.72; max-width: 680px; }
.article-body .lede { font-size: 19px; color: var(--text); font-weight: 500; line-height: 1.5; }
.article-hero { margin: 0 0 22px; }
.article-hero[hidden], .article-hero.is-broken { display: none !important; }
.article-hero img { width: 100%; border-radius: var(--radius); display: block; }
.article-hero figcaption { font-size: 12px; color: var(--text-mute); margin-top: 6px; }
.article-source { font-size: 13.5px; color: var(--text-soft); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 24px; }
.article-body h2 { font-size: 20px; margin: 28px 0 10px; letter-spacing: -.2px; }

.user-link { display: inline-flex; align-items: center; gap: 4px; }
.verified {
  display: inline-flex; color: #1d9bf0; flex: none; line-height: 0;
  vertical-align: -2px;
}
.verified svg { display: block; }
.account-chip .verified { color: #4db5ff; }

.tweet-cite {
  display: block; margin: 18px 0 22px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel-2); text-decoration: none; color: var(--text);
}
.tweet-cite:hover { border-color: var(--link); }
.tweet-cite-handle { font-size: 12.5px; color: var(--text-mute); font-weight: 600; }
.tweet-cite p { margin: 8px 0 6px; font-size: 16px; line-height: 1.45; }
.tweet-cite-link { font-size: 12.5px; color: var(--link); font-weight: 600; }

.comment-cta, .comment-form {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.comment-form-who { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.comment-form-who img { width: 28px; height: 28px; border-radius: 50%; }
.comment-form textarea { width: 100%; resize: vertical; margin-bottom: 10px; }
.comment-list { display: flex; flex-direction: column; gap: 0; }
.comment {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: 0; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; }
.comment-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.comment-body { font-size: 14.5px; line-height: 1.6; }
.comment-foot { display: flex; gap: 12px; margin-top: 8px; }
.comment-foot button {
  background: none; border: 0; padding: 0; color: var(--text-mute); cursor: pointer; font-size: 12.5px;
}
.comment-foot button:hover { color: var(--link); }

.writer-card { display: grid; grid-template-columns: 48px 1fr; gap: 10px 12px; align-items: center; }
.writer-card img { width: 48px; height: 48px; border-radius: 50%; }
.writer-card p { grid-column: 1 / -1; font-size: 13px; color: var(--text-soft); margin: 0; }

.also-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; }
.also-chip {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--panel-2); font-size: 13px; color: var(--text);
  text-decoration: none;
}
.also-chip:hover { border-color: var(--mint); color: var(--link); }

@media (max-width: 1080px) {
  .cols, .cols-narrow { grid-template-columns: minmax(0, 1fr); }
  .col-side { order: 2; }
  .node { grid-template-columns: 44px minmax(0, 1fr) 100px; }
  .node-last { display: none; }
  .thread-row { grid-template-columns: 40px minmax(0, 1fr) 90px; }
  .thread-last { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  html, body { overflow-x: clip; }
  body { background-attachment: scroll; }
  .wrap { padding: 0 14px; }

  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 200px; height: 220px; }
  .hero-copy { padding: 18px 16px 20px; }
  .hero-copy h1 { font-size: 22px; }
  .hero-copy p { font-size: 14.5px; }
  .acard-grid, .acard-grid-2 { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .acard-stack .acard-has-media:not(.acard-no-media) { grid-template-columns: 1fr; }
  .acard-stack .acard-has-media:not(.acard-no-media) .acard-body { padding: 14px 16px 16px; }
  .acard-body { padding: 14px 16px 16px; }
  .acard-title { font-size: 16px; }
  .story { padding: 18px 16px 24px; }
  .story-title { font-size: 24px; overflow-wrap: break-word; }
  .story-byline { flex-wrap: wrap; }
  .story-byline .spacer { display: none; }
  .article-body { font-size: 16px; overflow-wrap: break-word; }
  .article-body .lede { font-size: 17px; }
  .article-hero { margin-left: 0; margin-right: 0; }
  .article-hero img { border-radius: var(--radius); }
  .article-hero figcaption { padding: 0; }

  .head-search { display: none; }
  .head-main .wrap { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .logo { min-width: 0; flex: 1; }
  .logo-tag { display: none; }
  .logo-name { font-size: 17px; letter-spacing: -.6px; }
  .head-cta { flex: none; }
  .head-cta .btn { height: 30px; padding: 0 10px; font-size: 12.5px; }
  .head-strip .wrap { gap: 10px; overflow: hidden; }
  .strip-hide-sm { display: none !important; }

  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; color: #cfdae6; cursor: pointer;
    flex: none;
  }
  .site-nav .wrap {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 44px;
  }
  .nav-list {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--nav-bg); z-index: 60;
    box-shadow: var(--shadow-lg); max-height: min(74vh, 520px); overflow-y: auto;
    width: 100%;
  }
  .nav-list.open { display: flex; }
  .nav-list.open .nav-drop { display: block; }
  .nav-list > li > a { height: 44px; border-bottom: 1px solid rgba(255,255,255,.06); padding: 0 16px; }
  .nav-list > li.active > a { border-bottom-color: rgba(255,255,255,.06); box-shadow: inset 3px 0 0 var(--mint); }
  .nav-drop { position: static; box-shadow: none; border-radius: 0; border: 0; background: rgba(0,0,0,.22); display: none; min-width: 0; }
  .nav-drop a { color: #b9c8d8; padding-left: 28px; }
  .nav-drop a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .nav-drop .drop-label { color: #7f92a6; }
  .nav-tools { margin-left: auto; }
  .nav-search { display: flex; }
  .mobile-search {
    display: none;
    background: rgba(0, 0, 0, .28);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 10px 0 12px;
  }
  .mobile-search.open { display: block; }
  .mobile-search form { display: flex; align-items: center; gap: 8px; }
  .mobile-search input {
    flex: 1; min-width: 0; height: 38px; padding: 0 12px;
    border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .1); color: #fff; outline: none;
  }
  .mobile-search input::placeholder { color: #8ea3b9; }
  .mobile-search input:focus { border-color: var(--mint); background: rgba(255, 255, 255, .16); }
  .mobile-search button {
    flex: none; width: 38px; height: 38px; border: 0; border-radius: 8px;
    background: var(--mint); color: #fff; cursor: pointer;
  }

  .post { grid-template-columns: minmax(0, 1fr); }
  .post-user {
    display: flex; align-items: center; gap: 12px; text-align: left;
    border-right: 0; border-bottom: 1px solid var(--border); padding: 11px 14px;
  }
  .post-user-avatar { width: 44px; height: 44px; margin-bottom: 0; }
  .post-user-stats { display: none; }
  .post-user-title { margin-bottom: 0; }
  .user-banner { margin-bottom: 0; }
  .profile-head { padding: 16px; gap: 14px; }
  .profile-avatar { width: 82px; height: 82px; }
  .profile-info { min-width: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .foot-top { padding: 26px 0 20px; }
  .foot-about { max-width: none; }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0 18px;
  }
  .foot-bottom .spacer { display: none; }
  .foot-select { height: 36px; }
  .market-table .hide-sm { display: none; }
  .cookie-text { min-width: 0; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  #toasts { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .new-pill { max-width: calc(100vw - 28px); font-size: 12.5px; padding: 8px 14px; }
  .block, .story, .hero, .acard { max-width: 100%; }
  .comment-body, .acard-dek, .acard-title { overflow-wrap: break-word; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 12px; }
  .node { grid-template-columns: 36px minmax(0, 1fr); }
  .node-stats { display: none; }
  .node-icon { width: 32px; height: 32px; }
  .thread-row { grid-template-columns: 36px minmax(0, 1fr); }
  .thread-stats { display: none; }
  .logo-name { font-size: 18px; }
  .head-cta .btn { padding: 0 8px; }
  .profile-stats { gap: 16px; }
  .page-body { padding: 12px 0 24px; }
  .comment { grid-template-columns: 32px minmax(0, 1fr); gap: 8px; }
  .comment-avatar { width: 32px; height: 32px; }
  #to-top { right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-nav, .site-foot, #cookie-bar, #to-top, .ticker, .head-strip, #toasts { display: none !important; }
  body { background: #fff; }
}
