:root {
  --paper: #fbfaf8;
  --paper-bright: #ffffff;
  --paper-deep: #f3f1ee;
  --surface: #ffffff;
  --surface-muted: #f7f5f2;
  --surface-strong: #efede9;
  --ink: #202024;
  --ink-soft: #686870;
  --muted: #686870;
  --line: #e6e3df;
  --line-strong: #d4d0ca;
  --accent: #e9563f;
  --accent-strong: #c13b29;
  --accent-hover: #aa3222;
  --accent-soft: #fff1ed;
  --accent-line: #f4c9c0;
  --green: #187a4d;
  --green-soft: #e8f5ed;
  --green-line: #b8ddc7;
  --red: #9a3027;
  --red-soft: #fff0ee;
  --yellow: #ffe7a8;
  --lime: #dff2be;
  --coral: #ffc6b8;
  --violet: #e5ddff;
  --sky: #d9edff;
  --focus: #005fcc;
  --shadow-small: 0 1px 2px rgb(32 32 36 / 5%);
  --shadow: 0 2px 6px rgb(32 32 36 / 5%), 0 18px 40px rgb(32 32 36 / 6%);
  --radius: 12px;
  --radius-small: 8px;
  --shell: min(1180px, calc(100vw - 48px));
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: var(--sans);
  --serif: var(--sans);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
label {
  touch-action: manipulation;
}

button {
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
dl,
dd,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 760;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 740;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 720;
}

h4 {
  margin-bottom: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--paper-bright);
  background: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgb(230 227 223 / 92%);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  color: var(--paper-bright);
  background: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 5%);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 780;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.67rem;
}

.site-search {
  position: relative;
  display: flex;
  width: min(360px, 32vw);
  min-width: 190px;
  align-items: center;
  margin-right: auto;
}

.site-search input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 8px 44px 8px 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--paper);
  outline: 0;
  appearance: none;
}

.site-search input[type="search"]::placeholder {
  color: #85858c;
}

.site-search input[type="search"]:hover {
  border-color: var(--line-strong);
}

.site-search input[type="search"]:focus-visible {
  border-color: var(--focus);
  outline: 3px solid rgb(0 95 204 / 16%);
  outline-offset: 0;
  background: var(--surface);
}

.search-icon {
  position: absolute;
  z-index: 1;
  left: 14px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  pointer-events: none;
}

.search-icon::after {
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.5px;
  background: var(--ink-soft);
  content: "";
  transform: translateY(0) skew(45deg);
}

.site-search kbd {
  position: absolute;
  right: 8px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--surface);
  font-family: var(--sans);
  font-size: 0.65rem;
  line-height: 1.25;
  pointer-events: none;
}

.primary-nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.primary-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 670;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-muted);
}

.primary-nav .nav-submit {
  min-height: 40px;
  margin-left: 6px;
  padding-inline: 15px;
  border: 1px solid var(--accent-strong);
  color: var(--paper-bright);
  background: var(--accent-strong);
}

.primary-nav .nav-submit:hover,
.primary-nav .nav-submit[aria-current="page"] {
  border-color: var(--accent-hover);
  color: var(--paper-bright);
  background: var(--accent-hover);
}

.button-row,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  box-shadow: 0 2px 5px rgb(32 32 36 / 8%);
}

.button--primary {
  border-color: var(--accent-strong);
  color: var(--paper-bright);
  background: var(--accent-strong);
}

.button--primary:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
}

.button--paper {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.button--paper:hover {
  border-color: #bbb6af;
  background: var(--surface-muted);
}

.button--dark {
  border-color: var(--ink);
  color: var(--paper-bright);
  background: var(--ink);
}

.text-link,
.sidebar-link,
.card-link,
.subtle-link {
  color: var(--accent-hover);
  font-weight: 700;
}

.kicker,
.mini-label,
.feed-date {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 780;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kicker-dot,
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.live-dot {
  flex: 0 0 auto;
  margin-top: 5px;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.sample-pill,
.category-label,
.roast-level-pill,
.verified-label,
.time-pill,
.outcome-pill,
.fix-label,
.sample-only-label,
.status-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 0.66rem;
  font-weight: 730;
  letter-spacing: 0.015em;
  line-height: 1.2;
  white-space: nowrap;
}

.sample-pill {
  border-color: var(--accent-line);
  color: #9c3829;
  background: var(--accent-soft);
}

.welcome-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 17px;
  align-items: center;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.welcome-strip__icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent-hover);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  font-size: 0.82rem;
  font-weight: 820;
}

.welcome-strip__copy {
  min-width: 0;
}

.welcome-strip h1 {
  margin: 0 0 4px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  letter-spacing: -0.025em;
}

.welcome-strip__copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.welcome-strip__actions {
  display: grid;
  justify-items: end;
  gap: 7px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.discovery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-block: 34px 68px;
}

.launch-feed {
  min-width: 0;
}

.feed-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.feed-heading h2 {
  margin-bottom: 7px;
  font-size: clamp(1.45rem, 2.7vw, 2rem);
}

.feed-heading p:last-child {
  max-width: 610px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.87rem;
}

.feed-submit {
  flex: 0 0 auto;
}

.feed-toolbar,
.feedback-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.filter-group,
.choice-row,
.check-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter-button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 680;
}

.filter-button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-muted);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--accent-line);
  color: #983726;
  background: var(--accent-soft);
}

.load-status,
.result-count,
.board-window {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.result-count {
  margin: 0;
  white-space: nowrap;
}

.feed-status {
  margin: 10px 2px 0;
}

.launch-list,
.mini-ranking,
.sidebar-feed,
.ranking-list,
.tag-list,
.step-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.launch-list {
  overflow: clip;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.launch-list__item + .launch-list__item {
  border-top: 1px solid var(--line);
}

.launch-row {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 30px 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 19px 18px;
  background: var(--surface);
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.launch-row--open:hover,
.launch-row--open:focus-within {
  z-index: 1;
  background: #fffdfc;
  box-shadow: inset 3px 0 0 var(--accent);
}

.launch-row__rank {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-align: center;
}

.project-art,
.preview-art,
.ranking-row__art {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #963c2e;
  background: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 830;
  letter-spacing: -0.025em;
}

.project-art--feed {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(32 32 36 / 5%);
  font-size: 0.92rem;
}

.project-art--productivity,
.project-art--utility,
.project-art--education,
.project-art--creative,
.project-art--games,
.project-art--community,
.project-art--other {
  background: var(--accent-soft);
}

.project-art--creative,
.project-art--education {
  color: #4b4772;
  background: #f1edff;
}

.project-art--games,
.project-art--community {
  color: #2f664d;
  background: var(--green-soft);
}

.project-art--acid {
  border-color: #cfdfa2;
  color: #3e5a18;
  background: #e9f6bd;
}

.project-art--violet {
  border-color: #d7ccf7;
  color: #514182;
  background: #ede8ff;
}

.project-art--coral {
  border-color: #f2c8bc;
  color: #8f3528;
  background: #ffe2da;
}

.project-art--sky {
  border-color: #c5dfef;
  color: #285b78;
  background: #e1f1ff;
}

.project-art--amber {
  border-color: #e8d292;
  color: #705214;
  background: #fff0c2;
}

.project-art--pink {
  border-color: #efc8d8;
  color: #783352;
  background: #ffe4ef;
}

.launch-row__body {
  min-width: 0;
}

.launch-row__title-line {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.launch-row__title-line h3 {
  min-width: 0;
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.018em;
}

.launch-row__title-line a {
  text-decoration: none;
}

.launch-row__title-line a:hover {
  color: var(--accent-hover);
}

.status-chip {
  min-height: 21px;
  padding: 2px 7px;
  border-color: var(--line);
  font-size: 0.6rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.status-chip--trending {
  border-color: var(--accent-line);
  color: #983726;
  background: var(--accent-soft);
}

.status-chip--fix-confirmed {
  border-color: var(--green-line);
  color: var(--green);
  background: var(--green-soft);
}

.launch-row__pitch {
  overflow: hidden;
  margin: 3px 0 7px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-row__meta,
.launch-row__byline {
  overflow: hidden;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.launch-row__meta {
  color: #55555c;
}

.mission-label {
  color: var(--accent-hover);
  font-weight: 760;
}

.launch-row__byline {
  margin-top: 2px;
  color: var(--ink-soft);
}

.launch-row__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 7px;
}

.signal-control {
  display: grid;
  min-width: 46px;
  min-height: 42px;
  grid-template-columns: auto auto;
  place-content: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 0.72rem;
  line-height: 1;
  text-decoration: none;
}

.signal-control--roasts {
  color: var(--ink-soft);
  background: var(--surface);
}

.signal-control--vibes {
  border-color: var(--accent-line);
  color: #96382a;
  background: var(--accent-soft);
}

.signal-control:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.signal-control strong {
  font-variant-numeric: tabular-nums;
  font-weight: 780;
}

.signal-control__icon {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
}

.signal-control__icon--bubble {
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.signal-control__icon--bubble::after {
  position: absolute;
  bottom: -3px;
  left: 2px;
  width: 4px;
  height: 4px;
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  background: inherit;
  content: "";
}

.signal-control__icon--up::before,
.signal-control__icon--up::after {
  position: absolute;
  content: "";
}

.signal-control__icon--up::before {
  top: 2px;
  left: 5px;
  width: 1.5px;
  height: 9px;
  border-radius: 2px;
  background: currentColor;
}

.signal-control__icon--up::after {
  top: 0;
  left: 2px;
  width: 0;
  height: 0;
  border-right: 4px solid transparent;
  border-bottom: 5px solid currentColor;
  border-left: 4px solid transparent;
}

.discovery-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  min-width: 0;
  gap: 14px;
}

.sidebar-panel {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.sidebar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-heading .mini-label {
  margin-bottom: 4px;
}

.sidebar-heading h2,
.sidebar-panel--rules h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.018em;
}

.mini-ranking,
.sidebar-feed {
  margin-bottom: 13px;
}

.mini-ranking li,
.sidebar-feed li {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}

.project-art--sidebar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 0.66rem;
}

.sidebar-project {
  min-width: 0;
}

.sidebar-project a {
  color: var(--ink);
  text-decoration: none;
}

.sidebar-project a:hover {
  color: var(--accent-hover);
}

.mini-ranking__rank {
  color: var(--accent);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  text-align: center;
}

.mini-ranking li div,
.sidebar-feed li div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.mini-ranking li strong,
.sidebar-feed li strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-ranking li span:last-child,
.sidebar-feed li span,
.loading-row {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  text-decoration: none;
}

.sidebar-link:hover {
  text-decoration: underline;
}

.sidebar-panel--rules {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.kind-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  color: var(--accent-hover);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 820;
}

.sidebar-panel--rules p {
  margin: 5px 0 9px;
  color: #6f4a43;
  font-size: 0.74rem;
}

.sidebar-boundary {
  margin: 0;
  padding: 0 3px;
  color: var(--ink-soft);
  font-size: 0.66rem;
  line-height: 1.45;
}

.empty-state {
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state__mark {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 780;
}

.empty-state > p:not(.empty-state__mark) {
  color: var(--ink-soft);
}

/* Shared interior-page structure */

.section {
  padding-block: 64px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading--split,
.page-intro,
.policy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: 42px;
  align-items: end;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-note,
.section-heading--split > p,
.ranking-callout__copy,
.page-intro__copy {
  color: var(--ink-soft);
}

.section-note p:last-child,
.section-heading--split > p:last-child,
.page-intro__copy p:last-child {
  margin-bottom: 0;
}

.section--ink {
  border-block: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.section--ink h2,
.section-heading--light h2,
.section-heading--light,
.section-heading--light p {
  color: var(--ink);
}

.page-intro,
.rules-hero {
  padding-block: 58px 36px;
}

.page-intro h1,
.rules-hero h1 {
  margin-bottom: 0;
  font-size: clamp(2.25rem, 4.8vw, 3.75rem);
}

.page-intro__copy > p:first-child,
.rules-hero > p {
  max-width: 650px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.55;
}

.local-note,
.preview-boundary,
.safe-path-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 0.78rem;
}

.load-status--panel {
  margin-block: 22px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.boundary-copy {
  max-width: 610px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.eligibility-banner,
.rank-boundary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 28px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.eligibility-banner h2,
.rank-boundary h2 {
  margin-bottom: 2px;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.eligibility-banner p,
.rank-boundary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.79rem;
}

.eligibility-banner__mark,
.rank-boundary__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  color: var(--accent-hover);
  background: var(--accent-soft);
  font-weight: 820;
}

.submission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
  padding-bottom: 68px;
}

.form-panel,
.preview-card,
.mission-card,
.activity-card,
.share-card,
.test-form-card,
.feedback-card,
.local-feedback-preview,
.leaderboard-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.form-panel,
.preview-card,
.mission-card,
.activity-card,
.share-card,
.test-form-card {
  padding: 24px;
}

.panel-heading {
  margin-bottom: 22px;
}

.panel-heading h2,
.activity-card h2,
.share-card h2 {
  margin-bottom: 7px;
  font-size: 1.32rem;
}

.panel-heading > p:last-child,
.share-card > p {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

form > fieldset {
  margin: 0;
  padding: 0 0 28px;
  border: 0;
}

form > fieldset + fieldset {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

fieldset legend {
  width: 100%;
  margin-bottom: 18px;
  padding: 0;
  font-size: 1rem;
  font-weight: 750;
}

fieldset legend > span:first-child {
  margin-right: 8px;
  color: var(--accent-strong);
  font-size: 0.72rem;
}

.nested-fieldset {
  margin: 21px 0;
  padding: 0;
  border: 0;
}

.nested-fieldset legend {
  margin-bottom: 3px;
  font-size: 0.87rem;
}

.field,
.field-grid,
.nested-fieldset,
.agreement-list {
  margin-bottom: 19px;
}

.field-grid {
  display: grid;
  gap: 15px;
}

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

.field-grid .field {
  margin-bottom: 0;
}

.field label,
.confirmation,
.agreement-list label {
  font-size: 0.82rem;
  font-weight: 690;
}

.field label {
  display: inline-block;
  margin-bottom: 6px;
}

.optional {
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 520;
}

input[type="text"],
input[type="url"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1px 1px rgb(32 32 36 / 2%) inset;
}

input[type="text"],
input[type="url"],
select {
  min-height: 44px;
  padding: 9px 11px;
}

textarea {
  min-height: 94px;
  padding: 10px 11px;
  resize: vertical;
}

input[type="text"]:hover,
input[type="url"]:hover,
select:hover,
textarea:hover {
  border-color: #bcb7b0;
}

input[type="text"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  outline: 3px solid rgb(0 95 204 / 14%);
  outline-offset: 0;
}

.field-hint,
.fieldset-intro,
.form-actions > p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.73rem;
}

.choice-card,
.check-card,
.choice-stack label,
.agreement-list label,
.confirmation {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.choice-card:hover,
.check-card:hover,
.choice-stack label:hover,
.agreement-list label:hover,
.confirmation:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.choice-card:has(input:checked),
.check-card:has(input:checked),
.choice-stack label:has(input:checked),
.agreement-list label:has(input:checked),
.confirmation:has(input:checked) {
  border-color: var(--accent-line);
  color: #8e3528;
  background: var(--accent-soft);
}

.choice-card input,
.check-card input,
.choice-stack input,
.agreement-list input,
.confirmation input {
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--accent);
}

.choice-card span,
.choice-stack span {
  display: grid;
  gap: 1px;
}

.choice-card small,
.choice-stack small {
  color: var(--ink-soft);
  font-size: 0.69rem;
  font-weight: 520;
}

.choice-stack,
.agreement-list {
  display: grid;
  gap: 7px;
}

.check-row--wrap .check-card {
  flex: 1 1 128px;
}

.error-summary {
  margin-bottom: 21px;
  padding: 15px 17px;
  border: 1px solid #edbcb6;
  border-radius: 8px;
  color: var(--red);
  background: var(--red-soft);
}

.error-summary h3 {
  margin-bottom: 5px;
  color: inherit;
  font-size: 0.92rem;
}

.error-summary ul {
  margin: 0;
  padding-left: 19px;
  font-size: 0.79rem;
}

.form-actions {
  padding-top: 3px;
}

.form-actions--stacked {
  align-items: center;
}

.preview-column {
  position: sticky;
  top: 90px;
}

.preview-card__top,
.board-header,
.leaderboard-board__header,
.mission-card__header,
.feedback-card__header,
.feedback-card__footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.preview-card__top {
  margin-bottom: 17px;
}

.preview-art {
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
}

.preview-card h2 {
  margin-bottom: 7px;
  font-size: 1.35rem;
}

.preview-tagline {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.card-mission,
.preview-mission {
  margin-bottom: 17px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface-muted);
}

.card-mission p,
.preview-mission p,
.card-roast-prompt p {
  margin: 0;
  font-size: 0.85rem;
}

.card-roast-prompt,
.roast-prompt {
  margin: 17px 0;
  padding: 13px 14px;
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent-soft);
}

.preview-facts,
.mission-facts,
.activity-stats,
.card-metrics {
  display: grid;
  margin: 0;
}

.preview-facts,
.mission-facts {
  gap: 0;
  border-top: 1px solid var(--line);
}

.preview-facts div,
.mission-facts div {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 12px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
}

.card-metrics dt,
.activity-stats dt,
.preview-facts dt,
.mission-facts dt {
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 680;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.preview-facts dd,
.mission-facts dd {
  margin: 0;
  font-size: 0.79rem;
}

.tag-line,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-list li,
.tag-line:not(:empty) {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 0.67rem;
}

/* Project detail and feedback */

.breadcrumb {
  display: flex;
  gap: 8px;
  padding-top: 22px;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.project-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 38px 30px;
}

.project-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 17px;
}

.project-art--large {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  font-size: 1.05rem;
}

.badge-row {
  justify-content: flex-start;
}

.project-hero h1 {
  margin: 9px 0 6px;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
}

.project-tagline,
.maker-line {
  margin-bottom: 5px;
  color: var(--ink-soft);
}

.project-tagline {
  font-size: 0.96rem;
}

.maker-line {
  font-size: 0.77rem;
}

.project-actions {
  max-width: 240px;
  text-align: right;
}

.project-actions p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.67rem;
}

.project-subnav {
  position: sticky;
  z-index: 15;
  top: 68px;
  border-block: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(10px);
}

.project-subnav__inner {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 6px;
}

.project-subnav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 680;
  text-decoration: none;
}

.project-subnav a:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.project-subnav a span {
  display: inline-grid;
  min-width: 19px;
  min-height: 19px;
  place-items: center;
  padding-inline: 4px;
  border-radius: 999px;
  color: #96382a;
  background: var(--accent-soft);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 26px;
  align-items: start;
  padding-block: 30px 68px;
}

.project-main,
.project-side {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.project-side {
  position: sticky;
  top: 132px;
}

.mission-card,
.feedback-section,
.feedback-list {
  min-width: 0;
}

.mission-card__header {
  align-items: center;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.mission-card__header h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.mission-task {
  margin: 19px 0;
  font-size: 1.08rem;
  font-weight: 670;
  line-height: 1.48;
}

.success-box,
.private-disclosure,
.owner-response,
.feedback-detail {
  margin-block: 15px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.success-box {
  border-color: var(--green-line);
  background: var(--green-soft);
}

.success-box p,
.private-disclosure p,
.owner-response p,
.feedback-detail p {
  margin-bottom: 0;
}

.safe-path-note {
  margin: 17px 0 0;
}

.project-about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.75fr);
  gap: 24px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.project-about p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.feedback-section {
  padding-top: 24px;
  scroll-margin-top: 130px;
}

.section-heading--compact {
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading--compact h2 {
  font-size: 1.55rem;
}

.section-heading--compact > p {
  font-size: 0.78rem;
}

.feedback-list {
  display: grid;
  gap: 12px;
}

.feedback-card {
  padding: 19px;
}

.feedback-card--fixed {
  border-color: var(--green-line);
}

.feedback-card__header {
  align-items: center;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.feedback-meta,
.feedback-environment {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.outcome-pill--completed,
.outcome-pill--fix-confirmed,
.fix-label {
  border-color: var(--green-line);
  color: var(--green);
  background: var(--green-soft);
}

.outcome-pill--blocked,
.outcome-pill--could-not-start {
  border-color: #edbcb6;
  color: var(--red);
  background: var(--red-soft);
}

.roast-observation {
  margin: 17px 0 11px;
  font-size: 0.97rem;
  line-height: 1.52;
}

.feedback-detail {
  font-size: 0.82rem;
}

.feedback-detail--good {
  border-color: var(--green-line);
  color: var(--green);
  background: var(--green-soft);
}

.owner-response {
  border-color: var(--accent-line);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.feedback-card__footer {
  align-items: center;
  margin-top: 15px;
}

.helpful-button,
.good-vibes-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 720;
}

.helpful-button:hover,
.good-vibes-button:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-soft);
}

.helpful-button[aria-pressed="true"],
.good-vibes-button[aria-pressed="true"] {
  border-color: var(--accent);
  color: #913426;
  background: var(--accent-soft);
}

.activity-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-block: 16px;
  border-block: 1px solid var(--line);
}

.activity-stats div {
  min-width: 0;
  padding: 11px 4px;
}

.activity-stats dd {
  margin: 2px 0 0;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.share-card .button,
.activity-card .good-vibes-button {
  width: 100%;
}

.share-preview,
.local-feedback-preview {
  margin-top: 13px;
  padding: 14px;
}

.share-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.share-preview blockquote {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.test-form-card form > fieldset {
  margin-bottom: 20px;
  padding-bottom: 0;
}

.private-disclosure {
  border-color: #ead9b3;
  color: #694b22;
  background: #fff8e9;
}

.private-disclosure--large {
  padding: 17px;
}

/* Community boards */

.leaderboard-intro {
  padding-bottom: 30px;
}

.leaderboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  padding-bottom: 68px;
}

.board-workspace,
.board-method {
  min-width: 0;
}

.board-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.board-tabs button {
  min-height: 38px;
  flex: 1 1 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 710;
}

.board-tabs button:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.board-tabs button[aria-selected="true"] {
  border-color: var(--accent-line);
  color: #933629;
  background: var(--accent-soft);
}

.leaderboard-board {
  padding: 22px;
}

.leaderboard-board__header h2 {
  margin-bottom: 4px;
  font-size: 1.55rem;
}

.leaderboard-board__header p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.board-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 0.95rem;
}

.board-window {
  margin-block: 15px 7px;
}

.board-disclaimer {
  margin-bottom: 13px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: var(--surface-muted);
  font-size: 0.67rem;
}

.ranking-list {
  border-top: 1px solid var(--line);
}

.ranking-row {
  display: grid;
  grid-template-columns: 32px 48px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.ranking-row__rank {
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 790;
  letter-spacing: 0.035em;
}

.ranking-row__art {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-size: 0.69rem;
}

.ranking-row__copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.ranking-row__copy > strong {
  font-size: 0.88rem;
}

.ranking-row__copy > span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-row__copy .subtle-link {
  width: fit-content;
  margin-top: 1px;
  font-size: 0.67rem;
  text-decoration: none;
}

.ranking-row__copy .subtle-link:hover {
  text-decoration: underline;
}

.ranking-row__score {
  display: grid;
  min-width: 76px;
  justify-items: end;
  line-height: 1.15;
}

.ranking-row__score strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.ranking-row__score span {
  color: var(--ink-soft);
  font-size: 0.62rem;
  text-align: right;
}

.board-empty {
  display: grid;
  gap: 3px;
  padding-block: 18px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.board-method {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}

.board-method .rank-boundary {
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
}

.method-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.method-card h3 {
  margin-bottom: 6px;
}

.method-card > p:not(.mini-label) {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.policy-list {
  margin: 0;
}

.policy-list div {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 11px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
}

.policy-list div:last-child {
  border-bottom: 0;
}

.policy-list dt {
  font-size: 0.7rem;
  font-weight: 720;
}

.policy-list dd {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

/* Community rules */

.rules-hero {
  max-width: 900px;
  margin-inline: auto;
}

.rules-hero > p {
  margin-bottom: 0;
}

.rules-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 50px;
  align-items: start;
  padding-bottom: 68px;
}

.rules-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 2px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.rules-nav .mini-label {
  margin: 0 8px 6px;
}

.rules-nav a {
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-decoration: none;
}

.rules-nav a:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.rules-content {
  display: grid;
  min-width: 0;
}

.rule-section {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 15px;
  padding-block: 31px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.rule-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.rule-section--highlight {
  margin-inline: -17px;
  padding-inline: 17px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.rule-number,
.step-number {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 0.69rem;
  font-weight: 800;
}

.rule-section h2 {
  font-size: 1.58rem;
}

.rule-section p,
.plain-list {
  color: var(--ink-soft);
}

.plain-list {
  margin: 0;
  padding-left: 19px;
  font-size: 0.85rem;
}

.plain-list li + li {
  margin-top: 6px;
}

.do-dont-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-block: 18px;
}

.do-dont-grid > div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.do-dont-grid > div:first-child {
  border-color: var(--green-line);
}

.do-dont-grid > div:last-child {
  border-color: var(--accent-line);
}

.do-dont-note {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step-grid li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  min-height: 108px;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  gap: 24px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.footer-inner > p {
  justify-self: end;
  text-align: right;
}

.footer-inner p {
  margin: 2px 0 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-inner nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-inner nav a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

@media (max-width: 1000px) {
  :root {
    --shell: min(960px, calc(100vw - 40px));
  }

  .header-inner {
    gap: 17px;
  }

  .site-search {
    width: min(280px, 28vw);
  }

  .primary-nav a {
    padding-inline: 9px;
  }

  .discovery-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
  }

  .launch-row {
    grid-template-columns: 27px 58px minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline: 15px;
  }

  .project-art--feed {
    width: 58px;
    height: 58px;
  }

  .submission-layout,
  .project-layout {
    grid-template-columns: 1fr;
  }

  .preview-column,
  .project-side {
    position: static;
  }

  .project-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-form-card {
    grid-column: 1 / -1;
  }

  .leaderboard-workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }

  .rules-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 36px, 720px);
  }

  .header-inner {
    gap: 16px;
  }

  .site-search {
    display: none;
  }

  .primary-nav a {
    padding-inline: 10px;
  }

  .welcome-strip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .welcome-strip__actions {
    grid-column: 2;
    grid-auto-flow: column;
    justify-content: start;
    justify-items: start;
  }

  .discovery-layout,
  .section-heading--split,
  .page-intro,
  .policy-layout,
  .leaderboard-workspace,
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .discovery-sidebar,
  .board-method,
  .rules-nav {
    position: static;
  }

  .discovery-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-panel--trending,
  .sidebar-boundary {
    grid-column: 1 / -1;
  }

  .board-method {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading--split,
  .page-intro,
  .policy-layout {
    gap: 20px;
  }

  .rules-nav {
    display: flex;
    overflow-x: auto;
    gap: 3px;
    padding: 7px;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .rules-nav .mini-label {
    display: none;
  }

  .rules-content {
    max-width: 720px;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: calc(100vw - 28px);
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding-block: 11px;
  }

  .brand {
    align-self: flex-start;
  }

  .primary-nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    margin: 0;
  }

  .primary-nav a,
  .primary-nav .nav-submit {
    min-height: 38px;
    justify-content: center;
    margin: 0;
    padding: 8px 4px;
    text-align: center;
    font-size: 0.69rem;
  }

  h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  h2 {
    font-size: 1.65rem;
  }

  .welcome-strip {
    gap: 13px;
    margin-top: 14px;
    padding: 15px;
  }

  .welcome-strip__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .welcome-strip h1 {
    font-size: 1.08rem;
  }

  .welcome-strip__copy p {
    font-size: 0.78rem;
  }

  .welcome-strip__actions {
    grid-auto-flow: row;
    gap: 5px;
  }

  .discovery-layout {
    padding-block: 28px 48px;
  }

  .feed-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .feed-submit {
    align-self: stretch;
  }

  .feed-toolbar,
  .feedback-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 2px 1px 5px;
    scrollbar-width: thin;
  }

  .filter-button {
    flex: 0 0 auto;
  }

  .launch-row {
    grid-template-columns: 30px 50px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 15px 13px;
  }

  .project-art--feed {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 0.76rem;
  }

  .launch-row__rank {
    padding-top: 4px;
    font-size: 0.64rem;
    letter-spacing: 0.02em;
  }

  .launch-row__pitch,
  .launch-row__meta,
  .launch-row__byline {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .launch-row__meta {
    margin-top: 7px;
  }

  .launch-row__actions {
    grid-column: 3;
    justify-content: flex-start;
    margin-top: 2px;
  }

  .signal-control {
    min-height: 38px;
  }

  .discovery-sidebar,
  .board-method,
  .project-side,
  .project-about,
  .do-dont-grid,
  .field-grid--two,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-panel--trending,
  .sidebar-boundary {
    grid-column: auto;
  }

  .page-intro,
  .rules-hero {
    padding-block: 42px 30px;
  }

  .page-intro h1,
  .rules-hero h1 {
    font-size: clamp(2rem, 11vw, 2.85rem);
  }

  .section {
    padding-block: 46px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .form-panel,
  .preview-card,
  .mission-card,
  .activity-card,
  .share-card,
  .test-form-card,
  .leaderboard-board,
  .method-card {
    padding: 18px;
  }

  .test-form-card {
    grid-column: auto;
  }

  .eligibility-banner,
  .rank-boundary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .eligibility-banner .text-link {
    grid-column: 2;
  }

  .project-hero {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 30px 23px;
  }

  .project-actions {
    max-width: none;
    text-align: left;
  }

  .project-subnav {
    position: static;
  }

  .project-subnav__inner {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  .project-layout {
    padding-block: 24px 48px;
  }

  .project-about {
    gap: 17px;
  }

  .section-heading--compact h2 {
    font-size: 1.42rem;
  }

  .board-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .board-tabs button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 5px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .ranking-row {
    grid-template-columns: 27px minmax(0, 1fr) auto;
  }

  .ranking-row__art {
    display: none;
  }

  .rule-section {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .rule-section--highlight {
    margin-inline: 0;
    padding-inline: 13px;
  }

  .rule-number {
    margin-bottom: 0;
  }

  .footer-inner {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
    padding-block: 25px;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }

  .footer-inner > p {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  :root {
    --shell: calc(100vw - 20px);
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  .primary-nav a,
  .primary-nav .nav-submit {
    font-size: 0.63rem;
  }

  .welcome-strip {
    grid-template-columns: 1fr;
  }

  .welcome-strip__icon {
    width: 40px;
    height: 40px;
  }

  .welcome-strip__actions {
    grid-column: auto;
  }

  .button-row .button,
  .form-actions .button {
    width: 100%;
  }

  .launch-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding-inline: 12px;
  }

  .launch-row__rank {
    display: none;
  }

  .project-art--feed {
    width: 46px;
    height: 46px;
  }

  .launch-row__body {
    grid-column: 2;
  }

  .launch-row__actions {
    grid-column: 2;
  }

  .launch-row__title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .signal-control {
    min-width: 44px;
    padding-inline: 8px;
  }

  .project-identity {
    align-items: flex-start;
  }

  .project-art--large {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }

  .feedback-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-stats dt {
    font-size: 0.57rem;
  }

  .ranking-row__score {
    min-width: 62px;
  }

  .ranking-row__score span {
    max-width: 64px;
  }

  .preview-facts div,
  .mission-facts div,
  .policy-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .button,
  .filter-button,
  .board-tabs button,
  .signal-control,
  .choice-card,
  .check-card,
  .choice-stack label,
  .agreement-list label,
  .confirmation,
  .launch-list,
  .sidebar-panel,
  .feedback-card,
  .leaderboard-board,
  .method-card,
  .mission-card,
  .activity-card,
  .share-card,
  .test-form-card,
  .form-panel,
  .preview-card {
    border: 1px solid CanvasText;
  }

  .button--primary,
  .primary-nav .nav-submit,
  .filter-button[aria-pressed="true"],
  .board-tabs button[aria-selected="true"] {
    color: ButtonText;
    background: ButtonFace;
  }

  .brand-mark,
  .project-art,
  .welcome-strip__icon,
  .board-symbol,
  .kind-mark {
    border: 1px solid CanvasText;
    color: CanvasText;
    background: Canvas;
  }

  .live-dot {
    background: CanvasText;
    box-shadow: none;
  }
}

@media print {
  :root {
    --paper: #ffffff;
    --paper-bright: #ffffff;
    --surface: #ffffff;
    --surface-muted: #ffffff;
    --ink: #000000;
    --ink-soft: #000000;
    --muted: #000000;
    --line: #777777;
    --line-strong: #555555;
  }

  body {
    min-width: 0;
    color: #000000;
    background: #ffffff;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .site-search,
  .feed-submit,
  .feed-toolbar,
  .feedback-toolbar,
  .project-actions,
  .project-subnav,
  .form-actions,
  .good-vibes-button,
  .helpful-button,
  .share-card,
  .test-form-card,
  .rules-nav,
  .board-tabs,
  .launch-row__actions {
    display: none !important;
  }

  .page-shell {
    width: 100%;
  }

  .welcome-strip,
  .page-intro,
  .section,
  .rules-hero {
    margin-top: 0;
    padding-block: 12pt;
  }

  .discovery-layout,
  .leaderboard-workspace,
  .project-layout,
  .submission-layout,
  .rules-layout {
    display: block;
    padding-block: 0;
  }

  .discovery-sidebar,
  .board-method,
  .project-side,
  .preview-column {
    position: static;
  }

  .discovery-sidebar,
  .board-method,
  .preview-column {
    margin-top: 12pt;
  }

  .launch-row,
  .feedback-card,
  .leaderboard-board,
  .mission-card,
  .rank-boundary,
  .sidebar-panel,
  .method-card,
  .rule-section {
    break-inside: avoid;
    box-shadow: none;
  }

  .leaderboard-board,
  .mission-card,
  .rank-boundary,
  .sidebar-panel,
  .method-card {
    margin-bottom: 12pt;
    border: 1px solid #777777;
  }

  a {
    color: #000000;
  }
}
