/* ============================================================
   NavaLinux — design system v2
   A modern, photography-led visual language: full-bleed real
   imagery, generous whitespace, restrained type, one confident
   accent color. Organized by section.
   ============================================================ */

:root {
  /* Core palette */
  --ink: #0b0d10;
  --ink-soft: #14171c;
  --surface: #ffffff;
  --paper: #faf9f7;
  --paper-dim: #f1efeb;
  --line: rgba(11, 13, 16, 0.1);
  --line-soft: rgba(11, 13, 16, 0.06);
  --muted: #6b7077;
  --muted-soft: #93979d;

  /* Accent: warm terracotta, used sparingly */
  --accent: #e8693f;
  --accent-dark: #c4502a;
  --accent-soft: #fbe4da;
  --accent-ink: #2a1108;

  /* Secondary: cool sage, for quiet contrast */
  --sage: #5d7567;
  --sage-soft: #e4ece6;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: "Source Serif Pro", Georgia, "Times New Roman", serif;

  --shadow-sm: 0 1px 2px rgba(11, 13, 16, 0.06);
  --shadow-md: 0 16px 40px -12px rgba(11, 13, 16, 0.22);
  --shadow-lg: 0 30px 80px -20px rgba(11, 13, 16, 0.35);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

/* Prevent grid/flex children from refusing to shrink below their content's
   intrinsic width, which otherwise causes horizontal overflow on narrow
   viewports (the well-known CSS `min-width: auto` default on grid/flex items). */
.hero-grid > *, .hero-content, .two-col > *, .join-grid > *, .vision-grid > *,
.feature-grid > *, .edition-grid > *, .principle-grid > *, .footer-grid > *,
.idea-grid > *, .vote-grid > *, .form-pair > *, .choice-grid > *,
.roadmap article > *, .problem-list article > *, .update-row > *,
.stat-strip > * {
  min-width: 0;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  font-family: var(--sans);
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 650; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: 1.3rem; font-weight: 650; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 8px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 16, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.navbar { padding: 16px 0; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  font-size: 1.05rem;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--accent), #f2a37a 35%, var(--accent) 70%, #b94a26 100%);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.brand-mark:before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink);
}
.brand-mark:after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
}
.brand-mark span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}
.brand:hover .brand-mark { transform: rotate(120deg); }

.nav-link { color: rgba(255, 255, 255, 0.72) !important; font-size: 0.86rem; font-weight: 500; transition: color 0.15s ease; }
.nav-link:hover { color: #fff !important; }

.admin-pill-link {
  padding: 7px 13px !important;
  margin-left: 4px;
  background: rgba(232, 105, 63, 0.16);
  border: 1px solid rgba(232, 105, 63, 0.5);
  border-radius: 999px;
  color: var(--accent) !important;
}
.admin-pill-link:hover {
  background: rgba(232, 105, 63, 0.28);
  color: #fff !important;
}

.admin-reveal { transition: opacity 0.25s ease; }
.admin-reveal-in { animation: revealPop 0.35s ease; }
@keyframes revealPop {
  0% { opacity: 0; transform: translateY(-6px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.account-nav { margin-left: 0.5rem; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.account-toggle {
  display: flex !important;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.account-toggle::after { display: none; }
.account-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.account-name { font-size: 0.84rem; font-weight: 550; color: #fff; }
.account-dropdown {
  min-width: 200px;
  padding: 8px;
  margin-top: 12px !important;
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.account-dropdown .dropdown-item {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 500;
}
.account-dropdown .dropdown-item:hover,
.account-dropdown .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.account-dropdown .dropdown-divider { border-color: rgba(255, 255, 255, 0.1); }
.account-dropdown form { margin: 0; }
.account-dropdown button.dropdown-item {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.subtle-login { opacity: 0.9; }
.subtle-register {
  padding: 8px 14px !important;
  background: #fff;
  color: var(--ink) !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.subtle-register:hover { background: var(--accent-soft); color: var(--accent-ink) !important; }

/* ---------- Buttons ---------- */

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.82rem 1.5rem;
  font-size: 0.92rem;
  transition: transform 0.15s cubic-bezier(.2,.8,.2,1), background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}
.btn-amber { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-amber:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); }
.btn-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-dark { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline-dark:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 0.98rem; }

/* ---------- Flash messages ---------- */

.flash {
  position: relative;
  z-index: 10;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.flash.success { background: var(--sage-soft); color: #2c4536; }
.flash.error { background: #fbe2dc; color: #8a2f17; }
.flash-fade { opacity: 0; transform: translateY(-8px); }

/* ---------- Hero (full-bleed photography) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8,9,11,0.96) 0%, rgba(8,9,11,0.55) 42%, rgba(8,9,11,0.15) 70%, rgba(8,9,11,0.45) 100%),
    linear-gradient(90deg, rgba(8,9,11,0.55) 0%, rgba(8,9,11,0.05) 45%);
}
.hero-grid { position: relative; z-index: 1; width: 100%; padding: 0 0 64px; }
.hero-content { max-width: 760px; padding: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.4rem;
  padding: 6px 14px 6px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  backdrop-filter: blur(6px);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.hero h1 { max-width: 720px; color: #fff; }
.hero-copy { max-width: 600px; color: rgba(255, 255, 255, 0.78); font-size: 1.18rem; margin-top: 1.2rem; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin: 32px 0 0; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.honesty-note {
  max-width: 600px;
  margin-top: 28px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  backdrop-filter: blur(6px);
}
.honesty-note strong { color: #fff; }

/* Legacy hero-visual (kept for any page that still references it) */
.hero-visual { position: relative; display: none; }

.signal-strip {
  position: relative;
  z-index: 1;
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.signal-strip .container, .stack-band .container {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-block: 18px;
  overflow: auto;
  white-space: nowrap;
}
.signal-strip span, .stack-band span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }

/* ---------- Generic sections ---------- */

.section-pad { padding: 110px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.problem-list article { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.problem-list b { color: var(--accent); font-size: 0.8rem; font-weight: 700; }
.problem-list p { margin: 0; font-size: 1.1rem; color: var(--ink); }

.dark-section { background: var(--ink); color: #fff; }
.section-heading { max-width: 640px; margin-bottom: 56px; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.dark-section .section-heading > p:last-child { color: rgba(255, 255, 255, 0.62); }
.section-heading.split { display: flex; align-items: end; justify-content: space-between; max-width: none; gap: 30px; }

/* Photo-backed feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); overflow: hidden; }
.feature-grid article { padding: 36px 28px; background: var(--ink-soft); transition: background-color 0.2s ease; }
.feature-grid article:hover { background: #1c2128; }
.feature-grid span, .edition-label { color: var(--accent); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.feature-grid h3 { margin: 50px 0 12px; color: #fff; }
.feature-grid p { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; }

.edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.edition-card { padding: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease; }
.edition-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.edition-card.featured { background: var(--ink); color: #fff; border: none; position: relative; }
.edition-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.edition-card h3 { margin: 32px 0 14px; font-size: 1.7rem; }
.edition-card li { margin: 9px 0; color: var(--muted); }
.edition-card.featured li { color: rgba(255, 255, 255, 0.7); }

.survey-cta, .local-ai { background: var(--sage); color: #fff; }
.survey-cta p:not(.eyebrow), .local-ai p:not(.eyebrow) { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }

.join-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 6vw; }
.community-count strong { display: block; color: var(--accent); font-size: 3rem; font-weight: 700; }

/* ---------- Forms ---------- */

.research-form, .form-shell { padding: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form-shell:has(> .research-form) { padding: 0; background: none; border: none; border-radius: 0; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label, .research-form > label:not(.check-line), .vote-card form label { margin-bottom: 7px; font-size: 0.76rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select,
.research-form input, .research-form textarea, .research-form select,
.vote-card form input, .vote-card form select, .contact-card input {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus,
.research-form input:focus, .research-form textarea:focus, .research-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  outline: none;
}
.field span, .validation { color: var(--accent-dark); font-size: 0.78rem; }
.check-line { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0; font-size: 0.88rem; }
.check-line input { width: auto; margin-top: 5px; }
.privacy-note { color: var(--muted); font-size: 0.78rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* ---------- Page hero (photo-backed, smaller than home hero) ---------- */

.page-hero {
  position: relative;
  padding: 130px 0 70px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.page-hero.has-photo { padding: 160px 0 90px; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,11,0.92) 0%, rgba(8,9,11,0.65) 60%, rgba(8,9,11,0.9) 100%);
}
.page-hero > .container, .page-hero > .narrow { position: relative; z-index: 1; }
.page-hero h1 { max-width: 920px; color: #fff; }
.page-hero p:last-child { max-width: 680px; color: rgba(255, 255, 255, 0.7); font-size: 1.12rem; }
.page-hero .eyebrow { color: #fff; }

.role-list article { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.role-list p { color: var(--muted); }

/* ---------- Survey ---------- */

.survey-page { background: var(--paper-dim); }
.survey-form { width: min(900px, calc(100% - 40px)); margin-inline: auto; }
.survey-form fieldset { margin: 0 0 22px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.survey-form legend { display: flex; gap: 18px; align-items: center; margin-bottom: 30px; font-size: 1.4rem; font-weight: 650; }
.survey-form legend span { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ink); color: var(--accent); border-radius: 50%; font-size: 0.7rem; font-weight: 700; }
.choice-row, .choice-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.choice-row label, .choice-grid label { display: flex; align-items: center; gap: 9px; padding: 11px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 0.86rem; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.choice-row label input, .choice-grid label input { width: auto; flex: none; margin: 0; }
.choice-row label:hover, .choice-grid label:hover { border-color: var(--accent); background: var(--accent-soft); }
.survey-submit { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); }
.survey-submit p { margin: 0; color: rgba(255, 255, 255, 0.62); }

.stack-band { background: var(--accent); }

/* ---------- Feature voting ---------- */

.vote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vote-card { display: flex; flex-direction: column; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.vote-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.vote-card h2 { font-size: 1.7rem; }
.vote-card > p:not(.edition-label) { color: var(--muted); }
.score { margin-top: auto; padding: 13px; background: var(--paper-dim); border-radius: 10px; font-size: 0.82rem; font-weight: 600; }
.vote-card form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.vote-card form button { grid-column: 1 / -1; }

/* ---------- Vision ---------- */

.vision-grid { display: grid; grid-template-columns: 280px 1fr; gap: 6vw; }
.vision-grid aside { position: sticky; top: 110px; height: max-content; padding: 28px; background: var(--ink); color: #fff; border-radius: var(--radius); }
.vision-grid aside span { color: var(--accent); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; }
.vision-grid aside p { margin: 22px 0 0; font-size: 1.2rem; font-weight: 550; line-height: 1.4; }
.prose { font-size: 1.1rem; color: var(--ink); }
.prose h2 { margin: 50px 0 16px; font-size: 1.9rem; }

.principles-band { background: var(--ink); color: #fff; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.principle-grid article { padding-top: 22px; border-top: 2px solid var(--accent); }
.principle-grid b { color: var(--accent); font-size: 0.8rem; }
.principle-grid p { color: rgba(255, 255, 255, 0.62); }

/* ---------- Roadmap ---------- */

.roadmap article { display: grid; grid-template-columns: 200px 1fr; gap: 6vw; padding: 48px 0; border-bottom: 1px solid var(--line-soft); }
.roadmap-phase span, .roadmap-phase b { display: block; }
.roadmap-phase span { color: var(--accent); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; }
.roadmap-phase b { font-size: 1.5rem; font-weight: 650; }
.roadmap h2 { font-size: 2rem; }

.updates-section { background: var(--paper-dim); }
.update-row { display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line-soft); text-decoration: none; transition: padding-left 0.15s ease; }
.update-row:hover { padding-left: 8px; }
.update-row strong { font-size: 1.12rem; font-weight: 600; }
.update-row small { display: block; color: var(--muted); font-weight: 400; }

/* ---------- FAQ ---------- */

.faq-list details { padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.faq-list summary { cursor: pointer; font-size: 1.12rem; font-weight: 650; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--accent); font-weight: 400; font-size: 1.4rem; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { padding: 14px 0 0; color: var(--muted); }

/* ---------- Thanks / confirmation pages ---------- */

.thanks { display: grid; place-items: center; min-height: 72vh; padding: 50px; text-align: center; background: var(--paper); }
.thanks > div { max-width: 700px; }
.big-check { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.8rem; }

.form-shell { width: min(800px, calc(100% - 40px)); margin-inline: auto; }

/* ---------- Footer ---------- */

.site-footer { padding: 60px 0 40px; background: var(--ink); color: rgba(255, 255, 255, 0.55); }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; }
.footer-grid strong { color: #fff; font-weight: 650; }
.footer-grid p { max-width: 420px; font-size: 0.85rem; margin-top: 10px; }
.footer-grid nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-grid nav a { font-size: 0.85rem; text-decoration: none; }
.footer-grid nav a:hover { color: #fff; text-decoration: underline; }
.proposal-badge { display: inline-block; margin-bottom: 8px; padding: 5px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 0.68rem; letter-spacing: 0.04em; font-weight: 600; }

.text-link { font-weight: 600; color: var(--accent-dark); }
.text-link:hover { color: var(--accent); }
.empty-state { padding: 38px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ---------- Ideas board ---------- */

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.toolbar form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.toolbar select { padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); max-width: 100%; }
.idea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.idea-card { display: flex; flex-direction: column; min-height: 260px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.idea-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.idea-card h2, .idea-card h3 { margin: 26px 0 12px; font-size: 1.4rem; }
.idea-card p { color: var(--muted); }
.idea-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.support-btn { padding: 6px 12px; background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; transition: border-color 0.15s ease, background-color 0.15s ease; }
.support-btn:hover { border-color: var(--accent); background: var(--accent-soft); }

.status, .category {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--paper-dim);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preline { white-space: pre-line; }

/* ---------- Stat strip (used on a few pages) ---------- */

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat-strip > div { padding: 26px; background: var(--surface); text-align: center; }
.stat-strip strong { display: block; font-size: 2.2rem; font-weight: 700; color: var(--ink); }
.stat-strip span { color: var(--muted); font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ============================================================
   Account pages (sign in / register / manage)
   ============================================================ */

.auth-shell {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: calc(100vh - 81px);
  background: var(--ink);
  color: #fff;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 60px 5vw;
  overflow: hidden;
}
.auth-aside-bg { position: absolute; inset: 0; z-index: 0; }
.auth-aside-bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.auth-aside-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,9,11,0.96) 10%, rgba(8,9,11,0.45) 60%, rgba(8,9,11,0.2) 100%);
}
.auth-aside > *:not(.auth-aside-bg) { position: relative; z-index: 1; }

.auth-aside .eyebrow { background: rgba(255,255,255,0.1); }
.auth-aside h2 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); max-width: 460px; color: #fff; }
.auth-aside p { max-width: 440px; color: rgba(255, 255, 255, 0.72); font-size: 1rem; }

.auth-aside ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.auth-aside ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}
.auth-aside ul svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 5vw;
  background: var(--paper);
  color: var(--ink);
}

.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card .auth-subtitle { color: var(--muted); margin-bottom: 30px; }

.auth-card .field { margin-bottom: 16px; }
.auth-card .field label { font-size: 0.76rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.auth-card .field input {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  font-weight: 650;
  font-size: 0.96rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.auth-submit:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.auth-switch { margin-top: 22px; text-align: center; font-size: 0.9rem; color: var(--muted); }
.auth-switch a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-validation-summary {
  padding: 13px 16px;
  margin-bottom: 18px;
  background: #fbe2dc;
  border: 1px solid rgba(196, 80, 42, 0.25);
  border-radius: 10px;
  color: var(--accent-dark);
  font-size: 0.86rem;
}
.auth-validation-summary ul { margin: 0; padding-left: 18px; }

.auth-remember { display: flex; align-items: center; gap: 8px; margin: 6px 0 18px; font-size: 0.88rem; }
.auth-remember input { width: auto; }

.auth-shell.auth-admin .auth-aside-bg::after {
  background: linear-gradient(0deg, rgba(8,9,11,0.97) 10%, rgba(40,16,6,0.5) 60%, rgba(8,9,11,0.3) 100%);
}
.auth-shell.auth-admin .auth-aside .eyebrow { color: #fff; }
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 18px;
  background: rgba(232, 105, 63, 0.18);
  border: 1px solid rgba(232, 105, 63, 0.4);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-badge svg { width: 14px; height: 14px; }

/* ---------- Manage account page ---------- */

.account-page { background: var(--paper-dim); }
.account-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: start;
}

.account-nav-card {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.account-nav-card .account-avatar-lg {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}
.account-nav-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.account-nav-card .muted { color: var(--muted); font-size: 0.84rem; }
.account-nav-card nav { display: grid; gap: 4px; margin-top: 20px; }
.account-nav-card nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.87rem;
  font-weight: 550;
  text-decoration: none;
}
.account-nav-card nav a:hover { background: var(--paper-dim); }

.account-panel {
  padding: 32px;
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.account-panel h2 { font-size: 1.3rem; margin-bottom: 4px; }
.account-panel .panel-subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }

.account-panel.danger-zone {
  border-color: rgba(196, 80, 42, 0.25);
  background: #fdf6f3;
}
.account-panel.danger-zone h2 { color: var(--accent-dark); }

.my-suggestions-list { display: grid; gap: 14px; }
.my-suggestion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.my-suggestion-row .info strong { display: block; font-size: 0.96rem; font-weight: 600; }
.my-suggestion-row .info small { color: var(--muted); }
.my-suggestion-row .actions { display: flex; align-items: center; gap: 10px; flex: none; }

.account-checkbox-line { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 20px; font-size: 0.88rem; }
.account-checkbox-line input { width: auto; margin-top: 3px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .two-col, .join-grid, .vision-grid { grid-template-columns: 1fr; }
  .feature-grid, .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-grid aside { position: static; }
  .account-nav { border: 0; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav-card { position: static; }
  .hero { min-height: 78vh; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container, .narrow, .survey-form, .form-shell { width: min(100% - 28px, 1200px); }
  .section-pad { padding: 76px 0; }
  .hero { min-height: 86vh; align-items: flex-end; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 3rem); }
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero-actions, .section-heading.split, .survey-submit, .toolbar { align-items: stretch; flex-direction: column; }
  .feature-grid, .edition-grid, .principle-grid, .vote-grid, .idea-grid { grid-template-columns: 1fr; }
  .form-pair, .choice-grid { grid-template-columns: 1fr; }
  .survey-form fieldset { padding: 26px; }
  .vote-card form { grid-template-columns: 1fr; }
  .roadmap article { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .text-lg-end { text-align: left !important; }
  .update-row { grid-template-columns: 1fr auto; }
  .update-row span { grid-column: 1 / -1; }
  .my-suggestion-row { flex-direction: column; align-items: flex-start; }
  .stat-strip { grid-template-columns: 1fr; }
  .page-hero, .page-hero.has-photo { padding: 120px 0 56px; }
}
