/* IndieFounder 2.0 — unified application-wide design layer
   Additive overrides: preserves existing Jekyll templates, data, forms and interactions. */
:root {
  --if-bg: #fbfaf8;
  --if-surface: #ffffff;
  --if-surface-soft: #f5f3ef;
  --if-ink: #191919;
  --if-muted: #696761;
  --if-line: #e8e5df;
  --if-line-strong: #d8d3ca;
  --if-accent: #84cc16;
  --if-accent-hover: #65a30d;
  --if-accent-soft: #f7fee7;
  --if-radius-sm: 10px;
  --if-radius-md: 16px;
  --if-radius-lg: 24px;
  --if-shadow-soft: 0 8px 30px rgba(28, 25, 23, .045);
  --if-shadow-hover: 0 16px 42px rgba(28, 25, 23, .085);
  --if-content: 1180px;
}
html { scroll-behavior: smooth; }
body {
  background: var(--if-bg);
  color: var(--if-ink);
  font-family: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: #d9f99d; color: #1a2e05; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--if-accent-hover); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, [type="button"], [type="submit"], .button, .btn, a.button, a.btn {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
:where(button, [type="button"], [type="submit"], .button, .btn, a.button, a.btn):focus-visible,
:where(a, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(132, 204, 22, .38);
  outline-offset: 3px;
}
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border: 1px solid var(--if-line-strong);
  border-radius: 12px;
  background: var(--if-surface);
  color: var(--if-ink);
  min-height: 44px;
  padding: 10px 13px;
  box-shadow: none;
}
:where(input, select, textarea):focus {
  border-color: var(--if-accent);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, .14);
  outline: none;
}
:where(h1, h2, h3, h4) { color: var(--if-ink); letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 650; }
p, li { text-wrap: pretty; }
hr, .divider { border-color: var(--if-line); }
:where(.wrap, .container, .site-wrap, .page-wrap) { width: min(var(--if-content), calc(100% - 40px)); margin-inline: auto; }

/* Navigation and global chrome */
.site-header, .header, header.site-header, .site-nav-wrap {
  border-color: var(--if-line);
}
.site-header, .site-nav-wrap { backdrop-filter: saturate(150%) blur(14px); }
.site-header a, .site-nav a, .nav a { text-decoration: none; }
.site-nav a, .nav a, .header-nav a {
  border-radius: 9px;
  transition: background-color .18s ease, color .18s ease;
}
.site-nav a:hover, .nav a:hover, .header-nav a:hover { background: var(--if-surface-soft); }
.skip { z-index: 1000; }
footer, .site-footer { border-color: var(--if-line); }

/* Page titles, heroes and section rhythm */
.page, .page-content, .content-wrap { min-width: 0; }
.page-head, .page-header, .section-head, .section-heading {
  margin-bottom: clamp(20px, 3vw, 34px);
}
.page-title, .page-head h1, .hero h1, .home-hero h1 {
  letter-spacing: -.055em;
  line-height: 1.04;
}
.lead, .page-head .lead, .hero p, .home-hero p {
  color: var(--if-muted);
  max-width: 68ch;
  line-height: 1.75;
}
section + section { margin-top: clamp(30px, 5vw, 58px); }

/* Reusable surface language across products, articles, makers, tools and dashboard */
:where(.card, .panel, .product-card, .article-card, .story-card, .tool-card, .maker-card, .feature-card, .stat-card, .dash-card, .launch-card) {
  border-color: var(--if-line);
  border-radius: var(--if-radius-md);
  box-shadow: none;
}
:where(.card, .panel, .product-card, .article-card, .story-card, .tool-card, .maker-card, .feature-card, .stat-card, .dash-card, .launch-card):hover {
  border-color: var(--if-line-strong);
}
:where(.product-card, .article-card, .story-card, .tool-card, .maker-card, .feature-card) a { text-decoration: none; }
:where(.tag, .chip, .badge, .pill, .category-pill, .topic-pill) {
  border-radius: 999px;
  font-weight: 550;
}

/* Product discovery: prioritise readable rows and useful voting controls */
.product-row, .launch-row, .product-list-item, .launch-item, .product-result {
  border-bottom: 1px solid var(--if-line);
  padding-block: 17px;
}
.product-row:hover, .launch-row:hover, .product-list-item:hover, .launch-item:hover, .product-result:hover {
  background: rgba(245, 243, 239, .62);
}
:where(.upvote, .vote-button, .product-vote, .vote-btn, .upvote-button) {
  border: 1px solid var(--if-line-strong);
  border-radius: 12px;
  background: var(--if-surface);
  color: var(--if-ink);
  min-width: 48px;
  min-height: 44px;
}
:where(.upvote, .vote-button, .product-vote, .vote-btn, .upvote-button):hover {
  border-color: #bef264;
  background: var(--if-accent-soft);
  color: #3f6212;
}
:where(.upvote.is-active, .vote-button.is-active, .product-vote.is-active, .vote-btn.is-active, .upvote-button.is-active, [aria-pressed="true"].upvote) {
  background: var(--if-accent-soft);
  border-color: #a3e635;
  color: #3f6212;
}
:where(.search, .search-box, .search-form, .product-search, .directory-search) input[type="search"],
:where(input[type="search"]) {
  border-radius: 14px;
  min-height: 48px;
}

/* Buttons */
:where(.button-primary, .btn-primary, .button--primary, .primary-button, button.primary, a.primary) {
  background: var(--if-accent);
  border-color: var(--if-accent);
  color: #fff;
  font-weight: 650;
  border-radius: 12px;
}
:where(.button-primary, .btn-primary, .button--primary, .primary-button, button.primary, a.primary):hover {
  background: var(--if-accent-hover);
  border-color: var(--if-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(132, 204, 22, .20);
}
:where(.button-secondary, .btn-secondary, .button--secondary, .secondary-button) {
  border: 1px solid var(--if-line-strong);
  background: var(--if-surface);
  color: var(--if-ink);
  border-radius: 12px;
}

/* Leaderboards, admin tables and data views */
:where(table, .table, .dash-table) { border-collapse: separate; border-spacing: 0; }
:where(th, .table th, .dash-table th) {
  background: var(--if-surface-soft);
  color: #57534e;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}
:where(td, th) { border-color: var(--if-line); }
:where(tbody tr:hover) { background: rgba(245, 243, 239, .65); }
:where(.rank, .rank-number, .leaderboard-rank) { font-variant-numeric: tabular-nums; font-weight: 750; }
:where(.status, .status-badge, .dash-status) { border-radius: 999px; }

/* Articles and learning */
.prose, .article-body, .post-content, .docs-content {
  line-height: 1.82;
}
.prose :where(h2, h3), .article-body :where(h2, h3), .post-content :where(h2, h3), .docs-content :where(h2, h3) {
  scroll-margin-top: 100px;
  margin-top: 1.8em;
}
.prose blockquote, .article-body blockquote, .post-content blockquote {
  border-left: 3px solid var(--if-accent);
  background: var(--if-surface-soft);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
}
:where(.toc, .table-of-contents, .article-toc) {
  border-color: var(--if-line);
  border-radius: 14px;
}

/* Forms and maker/admin workflows */
:where(.form-card, .submit-form, .dash-panel, .admin-panel, .dashboard-panel) {
  border: 1px solid var(--if-line);
  border-radius: var(--if-radius-md);
  background: var(--if-surface);
}
:where(.form-help, .help-text, .muted, .fine, .meta, .eyebrow + p) { color: var(--if-muted); }
:where(.alert, .notice, .flash) { border-radius: 12px; }

/* Avoid motion where requested; retain useful hover feedback otherwise */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 760px) {
  :where(.wrap, .container, .site-wrap, .page-wrap) { width: min(100% - 28px, var(--if-content)); }
  body { font-size: 14px; }
  .page-title, .page-head h1, .hero h1, .home-hero h1 { letter-spacing: -.045em; }
  :where(.product-row, .launch-row, .product-list-item, .launch-item, .product-result) { padding-block: 13px; }
  :where(.card, .panel, .product-card, .article-card, .story-card, .tool-card, .maker-card, .feature-card, .stat-card, .dash-card, .launch-card) { border-radius: 13px; }
  :where(table, .table, .dash-table) { font-size: .84rem; }
}


/* Mobile layout corrections from real-device review (2026-10-24) */
.launches-main-col,
.launches-feed,
.launches-main-col .launch-card,
.launches-main-col .launch-content {
  min-width: 0;
}
.launches-main-col .launch-card {
  grid-template-columns: 38px 52px minmax(0, 1fr) 48px !important;
  align-items: start !important;
  gap: 10px !important;
  padding: 16px 12px !important;
}
.launches-main-col .launch-rank {
  width: auto !important;
  min-width: 0 !important;
  padding-top: 8px !important;
  white-space: nowrap;
  font-size: 1rem !important;
}
.launches-main-col .launch-icon-box {
  width: 52px !important;
  min-width: 52px !important;
  height: 52px !important;
  margin: 0 !important;
}
.launches-main-col .launch-content {
  width: 100%;
  overflow-wrap: anywhere;
}
.launches-main-col .launch-title-row {
  min-width: 0;
}
.launches-main-col .launch-name-link,
.launches-main-col .launch-name {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.launches-main-col .launch-cat-pill {
  max-width: 100%;
  white-space: normal;
}
.launches-main-col .launch-vote-box {
  min-width: 0;
  justify-self: end;
}
.launches-main-col .launch-upvote-btn {
  min-width: 44px !important;
  width: 44px;
  min-height: 54px !important;
  padding: 6px 4px !important;
}
.launches-pagination[hidden] { display: none !important; }

/* Keep the newsletter form inside its card on narrow screens. */
.foot-news, .foot-news form, .foot-news-row, .newsletter-form {
  min-width: 0;
  max-width: 100%;
}
.foot-news-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}
.foot-news-row input,
.foot-news-row input[type="email"] {
  flex: 1 1 220px;
  width: 100%;
  min-width: 0;
}
.foot-news-row button {
  flex: 0 0 auto;
  max-width: 100%;
}
@media (max-width: 760px) {
  .launches-main-col .launch-card {
    grid-template-columns: 30px 44px minmax(0, 1fr) 44px !important;
    gap: 8px !important;
    padding: 13px 10px !important;
  }
  .launches-main-col .launch-rank {
    font-size: .88rem !important;
    padding-top: 8px !important;
  }
  .launches-main-col .launch-icon-box {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
  }
  .launches-main-col .launch-name { font-size: 1rem !important; line-height: 1.25 !important; }
  .launches-main-col .launch-description { font-size: .82rem !important; line-height: 1.45 !important; }
  .launches-main-col .launch-meta-row { font-size: .74rem !important; }
  .foot-news { padding: 16px !important; }
  .foot-news-row button { min-height: 44px; }
}
@media (max-width: 390px) {
  .launches-main-col .launch-card {
    grid-template-columns: 26px 38px minmax(0, 1fr) 40px !important;
    gap: 6px !important;
    padding: 12px 7px !important;
  }
  .launches-main-col .launch-icon-box {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }
  .launches-main-col .launch-name { font-size: .94rem !important; }
  .launches-main-col .launch-upvote-btn { width: 40px; min-width: 40px !important; }
}


/* --------------------------------------------------------------------------
   IndieFounder Premium Refresh — real component redesign
   Focus: editorial hero, product discovery feed, category rail, search,
   footer/newsletter and mobile hierarchy. Keep existing markup and behavior.
   -------------------------------------------------------------------------- */
html body {
  --if-lime: #84cc16;
  --if-lime-deep: #4d7c0f;
  --if-lime-wash: #f1f9df;
}
html:root:root:root body .editorial-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 92px) 0 clamp(36px, 5vw, 64px) !important;
  background:
    radial-gradient(ellipse at 82% 8%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 36%),
    linear-gradient(135deg, var(--bg) 0%, var(--surface) 72%, var(--bg) 100%) !important;
  border-bottom: 1px solid var(--line) !important;
}
html:root:root:root body .editorial-hero-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr) !important;
  align-items: center !important;
  gap: clamp(28px, 5vw, 72px) !important;
  width: min(1180px, calc(100% - 48px)) !important;
  padding: 0 !important;
}
html:root:root:root body .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--accent-text) !important;
  letter-spacing: .025em !important;
  text-transform: none !important;
  font-size: .84rem !important;
}
html:root:root:root body .hero-kicker::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
html:root:root:root body .editorial-hero h1 {
  max-width: 12ch !important;
  margin: 22px 0 18px !important;
  font-size: clamp(2.8rem, 6.3vw, 5.5rem) !important;
  line-height: .99 !important;
  letter-spacing: -.065em !important;
}
html:root:root:root body .editorial-hero h1 em {
  color: var(--accent-text) !important;
}
html:root:root:root body .editorial-hero p {
  max-width: 58ch;
  font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
  line-height: 1.75 !important;
}
html:root:root:root body .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px !important;
}
html:root:root:root body .editorial-hero .button:not(.ghost) {
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 13px !important;
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--accent-ink) !important;
}
html:root:root:root body .editorial-hero .button.ghost {
  min-height: 50px;
  padding-inline: 22px;
  border-radius: 13px !important;
  background: transparent !important;
  border: 1px solid var(--line-strong) !important;
}
html:root:root:root body .status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
html:root:root:root body .status-bar span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  margin-right: 26px;
  color: var(--muted);
  font-size: .88rem;
}
html:root:root:root body .status-bar b {
  color: var(--ink);
  font: 650 1.55rem/1 var(--font-serif);
  letter-spacing: -.04em;
}
html:root:root:root body .hero-board {
  padding: 22px !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%) !important;
  box-shadow: 0 24px 70px rgba(20, 20, 10, .08) !important;
}
html:root:root:root body .hero-board-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 17px; border-bottom: 1px solid var(--line);
}
html:root:root:root body .hero-board-title { font-size: 1.3rem !important; font-weight: 700; }
html:root:root:root body .hero-board-sub {
  color: var(--muted); font: 650 .68rem var(--font-text);
  text-transform: uppercase; letter-spacing: .09em;
}
html:root:root:root body .hero-board ol { margin: 0; padding: 0; list-style: none; }
html:root:root:root body .hero-board li {
  display: grid !important;
  grid-template-columns: 28px minmax(0,1fr) auto !important;
  align-items: center; gap: 12px !important;
  padding: 17px 0 !important; border-bottom: 1px solid var(--line) !important;
}
html:root:root:root body .hero-board li:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
html:root:root:root body .hb-rank { color: var(--accent-text) !important; font-size: 1.15rem; font-weight: 750; }
html:root:root:root body .hb-name { display: block; color: var(--ink) !important; font-weight: 700; text-decoration: none; }
html:root:root:root body .hb-cat { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
html:root:root:root body .hb-votes {
  padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 11px;
  color: var(--ink); font-size: .82rem; font-weight: 700; white-space: nowrap;
}

/* Discovery area becomes a composed product directory, not a stack of old boxes. */
html:root:root:root body .launches-shell { background: var(--bg) !important; }
html:root:root:root body .launches-cat-nav-wrap {
  background: color-mix(in srgb, var(--bg) 92%, transparent) !important;
  border-bottom: 1px solid var(--line) !important;
}
html:root:root:root body .launches-cat-nav {
  display: flex !important; gap: 7px !important; padding-block: 12px !important;
}
html:root:root:root body .lcat-pill {
  min-height: 39px !important; padding: 0 14px !important;
  border: 1px solid transparent !important; border-radius: 11px !important;
  background: transparent !important; color: var(--muted) !important;
  font-size: .88rem !important; font-weight: 600 !important;
}
html:root:root:root body .lcat-pill:hover {
  background: var(--surface-2) !important; color: var(--ink) !important;
}
html:root:root:root body .lcat-pill.is-active {
  background: var(--accent-soft) !important; color: var(--accent-text) !important;
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line)) !important;
}
html:root:root:root body .launches-cat-hero {
  padding: 34px 0 18px !important;
  background: transparent !important;
}
html:root:root:root body .launches-cat-hero-inner { gap: 14px !important; }
html:root:root:root body .launches-cat-time-row { margin-bottom: 12px !important; }
html:root:root:root body .lcat-time-btn {
  min-height: 34px; padding: 0 13px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-size: .8rem; font-weight: 650;
}
html:root:root:root body .lcat-time-btn.is-active {
  color: var(--ink); border-color: var(--line-strong); background: var(--surface-2);
}
html:root:root:root body .launches-cat-heading {
  margin: 0 !important; font-size: clamp(2rem, 4vw, 3rem) !important;
  letter-spacing: -.055em !important;
}
html:root:root:root body .launches-cat-sub { margin-top: 9px !important; color: var(--muted); }
html:root:root:root body .launches-container { padding-top: 18px !important; }
html:root:root:root body .launches-search-wrap { margin-bottom: 20px !important; }
html:root:root:root body .launches-search-bar .launches-search-input {
  min-height: 52px !important; padding-left: 48px !important;
  border-radius: 14px !important; background: var(--surface) !important;
}
html:root:root:root body .launches-split {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 290px !important;
  gap: 24px !important; align-items: start;
}
html:root:root:root body .launches-top20-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 12px !important; margin: 0 0 3px !important;
  border-bottom: 1px solid var(--line) !important;
}
html:root:root:root body .launches-top20-label {
  font-size: .76rem !important; letter-spacing: .1em !important;
  color: var(--muted) !important;
}
html:root:root:root body .launches-main-col .launches-feed {
  display: flex !important; flex-direction: column; gap: 0 !important;
  overflow: hidden; border: 1px solid var(--line) !important;
  border-radius: 18px !important; background: var(--surface) !important;
}
html:root:root:root body .launches-main-col .launch-card {
  display: grid !important;
  grid-template-columns: 34px 58px minmax(0,1fr) 52px !important;
  gap: 15px !important; align-items: center !important;
  padding: 20px 18px !important; margin: 0 !important;
  border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; background: transparent !important;
  box-shadow: none !important; transform: none !important;
}
html:root:root:root body .launches-main-col .launch-card:last-child { border-bottom: 0 !important; }
html:root:root:root body .launches-main-col .launch-card:hover {
  background: color-mix(in srgb, var(--accent) 4%, var(--surface)) !important;
}
html:root:root:root body .launches-main-col .launch-rank {
  width: auto !important; padding: 0 !important; text-align: center;
  color: var(--muted) !important; font: 600 1rem var(--font-serif) !important;
}
html:root:root:root body .launches-main-col .launch-card.is-top-rank .launch-rank {
  color: var(--accent-text) !important;
}
html:root:root:root body .launches-main-col .launch-icon-box {
  width: 58px !important; min-width: 58px !important; height: 58px !important;
  margin: 0 !important; border-radius: 15px !important;
  border: 1px solid var(--line) !important; background: var(--bg) !important;
}
html:root:root:root body .launches-main-col .launch-content { min-width: 0; }
html:root:root:root body .launches-main-col .launch-title-row {
  display: flex !important; flex-wrap: wrap; align-items: center !important;
  flex-direction: row !important; gap: 7px 10px !important;
}
html:root:root:root body .launches-main-col .launch-name {
  margin: 0 !important; font-size: 1.12rem !important; line-height: 1.25 !important;
  letter-spacing: -.035em !important;
}
html:root:root:root body .launches-main-col .launch-cat-pill {
  padding: 4px 8px !important; border-radius: 7px !important;
  font-size: .65rem !important; letter-spacing: .06em;
}
html:root:root:root body .launches-main-col .launch-description {
  margin: 7px 0 9px !important; max-width: 68ch;
  color: var(--muted) !important; font-size: .9rem !important; line-height: 1.5 !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html:root:root:root body .launches-main-col .launch-meta-row {
  display: flex !important; flex-wrap: wrap; gap: 5px 9px !important;
  font-size: .78rem !important; line-height: 1.5 !important; color: var(--muted);
}
html:root:root:root body .launches-main-col .launch-maker-link { color: var(--accent-text) !important; font-weight: 650; }
html:root:root:root body .launches-main-col .launch-vote-box { justify-self: end; align-self: center; }
html:root:root:root body .launches-main-col .launch-upvote-btn {
  display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important;
  gap: 4px !important; width: 52px !important; min-width: 52px !important; min-height: 58px !important;
  padding: 8px 4px !important; border: 1px solid var(--line-strong) !important;
  border-radius: 13px !important; background: var(--surface) !important;
  color: var(--ink) !important; font-size: .85rem; font-weight: 750;
}
html:root:root:root body .launches-main-col .launch-upvote-btn:hover,
html:root:root:root body .launches-main-col .launch-upvote-btn[aria-pressed="true"] {
  border-color: var(--accent) !important; background: var(--accent-soft) !important;
  color: var(--accent-text) !important;
}
html:root:root:root body .launches-ranking-sidebar {
  position: sticky; top: 130px;
}
html:root:root:root body .launches-ranking-sidebar > * {
  border-radius: 18px !important; border-color: var(--line) !important;
}
html:root:root:root body .launches-pagination { padding: 20px 0 !important; }
html:root:root:root body .launch-page-btn {
  min-height: 42px !important; padding-inline: 15px !important;
  border-radius: 11px !important; font-size: .85rem !important;
}

/* Footer: align columns, give newsletter a clear standalone panel. */
html:root:root:root body .site-footer,
html:root:root:root body footer.site-footer {
  margin-top: 0 !important;
  background: var(--surface-2) !important;
  border-top: 1px solid var(--line) !important;
}
html:root:root:root body .foot-news {
  padding: 22px !important; border-radius: 20px !important;
  background: var(--surface) !important; border: 1px solid var(--line) !important;
  box-shadow: 0 12px 32px rgba(20,20,10,.04) !important;
}
html:root:root:root body .foot-news-row { display: flex !important; gap: 10px !important; }
html:root:root:root body .foot-news-row input { min-height: 48px !important; border-radius: 12px !important; }
html:root:root:root body .foot-news-row button { min-height: 48px !important; border-radius: 12px !important; }

/* Responsive: intentionally redesign the composition, not just shrink desktop. */
@media (max-width: 900px) {
  html:root:root:root body .editorial-hero-inner { grid-template-columns: minmax(0,1fr) minmax(250px,.8fr) !important; gap: 24px !important; }
  html:root:root:root body .launches-split { grid-template-columns: minmax(0,1fr) 250px !important; gap: 16px !important; }
  html:root:root:root body .launches-main-col .launch-card { grid-template-columns: 28px 48px minmax(0,1fr) 46px !important; gap: 10px !important; padding: 16px 12px !important; }
  html:root:root:root body .launches-main-col .launch-icon-box { width: 48px !important; min-width: 48px !important; height: 48px !important; }
  html:root:root:root body .launches-main-col .launch-upvote-btn { width: 46px !important; min-width: 46px !important; min-height: 52px !important; }
}
@media (max-width: 700px) {
  html:root:root:root body .editorial-hero { padding: 34px 0 28px !important; }
  html:root:root:root body .editorial-hero-inner { width: calc(100% - 32px) !important; grid-template-columns: minmax(0,1fr) !important; gap: 26px !important; }
  html:root:root:root body .editorial-hero h1 { max-width: 11ch !important; margin: 18px 0 14px !important; font-size: clamp(2.6rem, 12vw, 4rem) !important; }
  html:root:root:root body .editorial-hero p { font-size: 1rem !important; }
  html:root:root:root body .hero-cta { display: grid !important; grid-template-columns: minmax(0,1fr) !important; gap: 9px !important; margin-top: 22px !important; }
  html:root:root:root body .hero-cta .button { width: 100%; box-sizing: border-box; }
  html:root:root:root body .status-bar { margin-top: 24px !important; padding-top: 17px; }
  html:root:root:root body .status-bar span { margin-right: 18px; font-size: .78rem; }
  html:root:root:root body .status-bar b { font-size: 1.3rem; }
  html:root:root:root body .hero-board { padding: 17px !important; border-radius: 18px !important; }
  html:root:root:root body .launches-cat-nav { padding-block: 9px !important; }
  html:root:root:root body .launches-cat-hero { padding: 25px 0 10px !important; }
  html:root:root:root body .launches-container { padding-top: 12px !important; }
  html:root:root:root body .launches-split { grid-template-columns: minmax(0,1fr) !important; }
  html:root:root:root body .launches-ranking-sidebar { position: static; }
  html:root:root:root body .launches-main-col .launches-feed { border-radius: 15px !important; }
  html:root:root:root body .launches-main-col .launch-card {
    grid-template-columns: 24px 42px minmax(0,1fr) 42px !important;
    gap: 8px !important; padding: 14px 10px !important; align-items: start !important;
  }
  html:root:root:root body .launches-main-col .launch-rank { padding-top: 7px !important; font-size: .86rem !important; }
  html:root:root:root body .launches-main-col .launch-icon-box { width: 42px !important; min-width: 42px !important; height: 42px !important; border-radius: 11px !important; }
  html:root:root:root body .launches-main-col .launch-title-row { align-items: flex-start !important; gap: 6px !important; }
  html:root:root:root body .launches-main-col .launch-name { font-size: .98rem !important; }
  html:root:root:root body .launches-main-col .launch-cat-pill { font-size: .6rem !important; max-width: 100%; }
  html:root:root:root body .launches-main-col .launch-description { font-size: .8rem !important; margin: 6px 0 !important; }
  html:root:root:root body .launches-main-col .launch-meta-row { font-size: .7rem !important; gap: 4px 6px !important; }
  html:root:root:root body .launches-main-col .launch-upvote-btn { width: 42px !important; min-width: 42px !important; min-height: 50px !important; }
  html:root:root:root body .foot-news { padding: 15px !important; }
  html:root:root:root body .foot-news-row { flex-wrap: wrap !important; }
  html:root:root:root body .foot-news-row input { flex: 1 1 100% !important; }
  html:root:root:root body .foot-news-row button { width: 100%; }
}
