:root {
  --bg: #0b0d14;
  --bg-elevated: #131724;
  --bg-card: #161b2b;
  --bg-hover: #1d2438;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5fc;
  --text-muted: #9aa5c4;
  --magenta: #ff2e93;
  --cyan: #00e5ff;
  --amber: #ff9e2c;
  --gradient: linear-gradient(135deg, #ff2e93 0%, #ff9e2c 52%, #00e5ff 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 46, 147, 0.14), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(0, 229, 255, 0.12), transparent 34%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--cyan);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #09101a;
  font-weight: 700;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 8px;
}

.container {
  width: min(1220px, 100% - 2rem);
  margin: 0 auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 20, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--text);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--gradient);
  color: #0b0d14;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand__text small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.header-search {
  display: flex;
  flex: 1;
  max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.3rem 0.25rem 0.95rem;
}

.header-search:focus-within {
  border-color: var(--cyan);
}

.header-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  outline: none;
  min-width: 0;
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search button {
  background: var(--bg-hover);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.header-search button:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.section-ribbon {
  border-top: 1px solid var(--border);
  background: rgba(19, 23, 36, 0.75);
}

.section-ribbon__inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  scrollbar-width: none;
}

.section-ribbon__inner::-webkit-scrollbar {
  display: none;
}

.ribbon-link {
  white-space: nowrap;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.ribbon-link:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.ribbon-link.is-active {
  color: #0b0d14;
  background: var(--cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.58rem 1.05rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--gradient);
  color: #0b0d14;
}

.btn--primary:hover {
  color: #0b0d14;
  opacity: 0.95;
}

.btn--ghost {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
}

.btn--full {
  width: 100%;
}

.btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Layout Grid */
.top-ad-wrap {
  margin-top: 1.1rem;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.5rem;
  padding: 1.25rem 0 3rem;
  align-items: start;
}

.main-col {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  position: sticky;
  top: 7.5rem;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.8rem 1.8rem;
  margin-bottom: 1.5rem;
  background:
    linear-gradient(125deg, rgba(255, 46, 147, 0.2), rgba(255, 158, 44, 0.12) 45%, rgba(0, 229, 255, 0.16)),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
}

.hero-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 0.45rem;
}

.hero-banner h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-banner p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  max-width: 62ch;
}

.hero-banner__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Section Headers & Grid */
.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.85rem;
}

.block-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.block-header > span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sections-block {
  margin-bottom: 1.8rem;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 0.85rem;
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--section-accent, var(--cyan));
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.section-card:hover {
  transform: translateY(-2px);
  background: var(--bg-hover);
  border-color: var(--section-accent, var(--cyan));
  color: var(--text);
}

.section-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.section-card__icon {
  font-size: 1.35rem;
}

.section-card__count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.section-card h3 {
  margin: 0;
  font-size: 1rem;
}

.section-card p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Sort Tabs */
.sort-tabs {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.sort-tab {
  padding: 0.32rem 0.72rem;
  border-radius: 7px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sort-tab.is-active {
  background: var(--bg-hover);
  color: var(--cyan);
}

/* Thread Cards */
.thread-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.thread-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1.05rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.thread-card:hover {
  border-color: var(--border-strong);
  background: #181e30;
}

.thread-card__vote {
  display: flex;
  justify-content: center;
}

.vote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 48px;
  height: 54px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.vote-btn:hover,
.vote-btn.is-voted {
  border-color: var(--magenta);
  color: var(--magenta);
  background: rgba(255, 46, 147, 0.1);
}

.vote-btn--inline {
  flex-direction: row;
  width: auto;
  height: auto;
  padding: 0.35rem 0.75rem;
  gap: 0.35rem;
}

.thread-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.76rem;
}

.badge--pinned {
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 158, 44, 0.16);
  color: var(--amber);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.thread-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  line-height: 1.32;
}

.thread-card__title a:hover {
  color: var(--cyan);
}

.thread-card__excerpt {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.91rem;
}

.thread-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.thread-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag-pill {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.tag-pill:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.thread-card__stats {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.stat-pill {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Section Page Header */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.section-header-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--section-accent, var(--cyan));
  margin-bottom: 1.35rem;
}

.section-header-card__top {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.section-header-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.section-header-card h1 {
  margin: 0 0 0.3rem;
  font-size: 1.55rem;
}

.section-header-card p {
  margin: 0;
  color: var(--text-muted);
}

.section-header-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

/* Thread OP & Replies */
.thread-op {
  padding: 1.45rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--section-accent, var(--cyan));
  margin-bottom: 1.15rem;
}

.thread-op__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.thread-op__title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
}

.thread-op__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 1rem;
  margin-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.thread-op__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.prose p {
  margin: 0 0 0.85rem;
}

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

.prose ul {
  margin: 0.4rem 0 0.85rem;
  padding-left: 1.35rem;
}

.prose code {
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  font-size: 0.9em;
}

/* Replies */
.replies-section {
  margin-top: 1.35rem;
}

.composer-card {
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  margin-bottom: 1.2rem;
}

.composer-card--page h1 {
  margin: 0 0 0.35rem;
}

.composer-subtitle {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  gap: 0.9rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.form-group label {
  font-size: 0.86rem;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.reply-target-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
}

.reply-target-banner button {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-weight: 700;
  cursor: pointer;
}

.replies-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.reply-card {
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.reply-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
}

.reply-card__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.reply-card__author strong {
  color: var(--text);
}

.avatar-dot {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--gradient);
  color: #0b0d14;
  font-weight: 900;
  font-size: 0.78rem;
}

.reply-card__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reply-quote-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 0.28rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.reply-quote-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.reply-context {
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

/* Related Threads */
.related-block {
  margin-top: 1.8rem;
}

.related-block h3 {
  margin: 0 0 0.75rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.75rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.related-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sidebar Panels */
.panel {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.panel--accent {
  background: linear-gradient(155deg, rgba(255, 46, 147, 0.14), rgba(0, 229, 255, 0.08)), var(--bg-card);
  border-color: rgba(255, 46, 147, 0.35);
}

.panel__header h3,
.panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
}

.panel p {
  margin: 0 0 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sidebar-section-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebar-section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: 9px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sidebar-section-link:hover,
.sidebar-section-link.is-active {
  background: var(--bg-hover);
  color: var(--cyan);
}

.sidebar-section-link-_left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-section-link__count {
  font-size: 0.76rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 0;
}

.stats-grid div {
  padding: 0.6rem;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.stats-grid dt {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.stats-grid dd {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
}

/* CLS-Safe Ad Slots */
.ad-slot {
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 158, 44, 0.42);
  background: linear-gradient(135deg, rgba(255, 158, 44, 0.06), rgba(0, 229, 255, 0.04)), var(--bg-elevated);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.ad-slot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ad-slot__badge {
  background: rgba(255, 158, 44, 0.2);
  color: var(--amber);
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 5px;
  letter-spacing: 0.06em;
}

.ad-slot__name {
  font-weight: 700;
  color: var(--text);
}

.ad-slot__dims {
  margin-left: auto;
}

.ad-slot__placeholder {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.45rem;
  border-radius: 8px;
  background: rgba(11, 13, 20, 0.45);
}

.ad-slot--header {
  min-height: 90px;
}

.ad-slot--sidebar {
  min-height: 250px;
}

.ad-slot--infeed {
  min-height: 100px;
}

.ad-slot--thread {
  min-height: 96px;
}

.ad-slot--anchor {
  display: none;
}

.ad-slot__dismiss {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 6px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  line-height: 1;
}

/* Prose static pages & alerts */
.prose-page {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.prose-page h1 {
  margin-top: 0;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert--error {
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(244, 63, 94, 0.45);
  color: #fda4af;
}

.empty-state {
  text-align: center;
  padding: 2.2rem 1.2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.empty-state--compact {
  padding: 1.2rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
}

.pagination__info {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 13, 20, 0.9);
  padding: 1.4rem 0 2.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 960px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .hide-sm {
    display: none;
  }

  .form-row--two {
    grid-template-columns: 1fr;
  }

  .thread-card {
    grid-template-columns: 1fr;
  }

  .thread-card__vote {
    justify-content: flex-start;
  }

  .vote-btn {
    flex-direction: row;
    width: auto;
    height: auto;
    padding: 0.3rem 0.7rem;
  }

  .ad-slot--header {
    min-height: 64px;
  }

  .ad-slot--anchor {
    display: flex;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 60;
    min-height: 54px;
    box-shadow: var(--shadow);
  }

  body {
    padding-bottom: 5rem;
  }
}
