/* Candidature. Black containers, white type and white outlines on a graphite page. */

:root {
  --page: #151314;
  --panel: #000000;
  --line: #ffffff;
  --line-soft: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --muted: #a3a1a2;
  --ok: #36c07f;
  --danger: #ff6b6b;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --wrap: 1180px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-bottom: 72px; }
img, svg { display: block; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0 0 12px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
code { font-size: 0.9em; padding: 1px 6px; border: 1px solid var(--line-soft); border-radius: 6px; }
.icon { flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: var(--r-sm); z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Type scale. Archivo's width axis carries the voice: expanded for display, normal for reading. */
.display-xl, .display-md, .display-sm, .brand-name, .group-title, .panel h2, fieldset legend {
  font-stretch: 125%;
  letter-spacing: -0.02em;
}
.display-xl { font-size: clamp(42px, 7vw, 84px); font-weight: 800; line-height: 0.98; }
.display-md { font-size: clamp(32px, 4.4vw, 48px); font-weight: 750; line-height: 1.04; margin-bottom: 12px; }
.display-sm { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 20; background: rgba(21, 19, 20, 0.92); backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { border-radius: 9px; }
.brand-name { font-size: 20px; font-weight: 750; }
.beta { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; color: var(--text); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-link-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm);
  text-decoration: none; color: var(--muted); font: inherit; font-size: 15px; background: none; border: 0; cursor: pointer;
}
.nav > a:hover, .nav-link-btn:hover, .nav > a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav > a.btn { color: #000; margin-left: 8px; }
.nav > a.btn:hover { background: #e6e6e6; }
.nav-form { margin: 0; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: var(--r-sm); padding: 7px; cursor: pointer; }
.avatar {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 13px; font-weight: 700; flex: none; background: var(--panel);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r-md); font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 1px solid var(--line); line-height: 1.2;
  transition: background-color 0.15s, color 0.15s;
}
.btn-light { background: #fff; color: #000; }
.btn-light:hover { background: #e6e6e6; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: rgba(255, 107, 107, 0.12); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: none; color: var(--text); cursor: pointer; }
.icon-btn:hover { border-color: var(--line); }

/* Containers */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.panel h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel.danger { border-color: var(--danger); }
.panel.danger h2 { color: var(--danger); }
.stack { display: grid; gap: 20px; }
.section { margin-top: 88px; }
.page-head { padding-top: 56px; padding-bottom: 28px; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; margin: 32px 0 20px; font-size: 15px; }
.back:hover { color: var(--text); }

/* Flash messages */
.flashes { display: grid; gap: 8px; padding-top: 20px; }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
.flash-success { border-color: var(--ok); }
.flash-error { border-color: var(--danger); }
.form-errors { border: 1px solid var(--danger); border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 20px; }
.form-errors p { display: flex; gap: 8px; align-items: center; margin: 4px 0; color: #ffd6d6; }
.form-errors .icon { color: var(--danger); }

/* Hero */
.hero { padding: 80px 0 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hero-copy .display-xl { max-width: 11ch; margin-bottom: 24px; }
.hero-copy .lead { margin-bottom: 32px; }

.search {
  display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 16px; padding: 8px 8px 8px 18px; max-width: 640px;
}
.search input[type="search"] { flex: 1; min-width: 0; width: auto; background: none; border: 0; border-radius: 0; color: var(--text); font: inherit; font-size: 17px; padding: 10px 0; outline: none; box-shadow: none; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }
.search .search-icon { color: var(--muted); }
.search-compact { max-width: 720px; margin-top: 16px; }

.tag-row { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-row a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-soft); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--muted); }
.tag-row a:hover { border-color: var(--line); color: var(--text); }

.flow h2 { font-size: 18px; margin-bottom: 20px; }
.flow ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.flow li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; position: relative; padding-bottom: 20px; }
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 1px; background: var(--line-soft); }
.flow-mark { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.flow-mark-ok { border-color: var(--ok); }
.flow strong { display: block; font-weight: 650; margin-top: 6px; }
.flow li p { color: var(--muted); font-size: 14px; margin: 2px 0 0; }
.flow-foot { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line-soft); padding-top: 18px; color: var(--muted); font-size: 14px; }

/* Slot meter: the product's signature. Filled squares are taken, outlined squares are open. */
.slots { display: inline-flex; align-items: center; gap: 4px; }
.slots i { width: 11px; height: 11px; border: 1.5px solid var(--line); border-radius: 3px; }
.slots i.is-taken { background: var(--line); }
.slots em { font-style: normal; font-size: 12px; color: var(--muted); margin-left: 4px; }
.slots-lg { gap: 6px; }
.slots-lg i { width: 18px; height: 18px; border-radius: 4px; }

/* Listing cards */
.section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .muted { margin: 0; }
.section-head .btn { margin-left: auto; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card-link { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.card-link:focus-visible { outline-offset: 4px; }
.listing-card:hover { background: #0b0b0b; }
.listing-card h3 { font-size: 19px; font-weight: 650; line-height: 1.25; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project { font-size: 14px; color: var(--muted); margin: 0; }
.type-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.role-line { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0; flex-wrap: wrap; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 2; }
.tags li { font-size: 13px; border: 1px solid var(--line-soft); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.tags li a { text-decoration: none; }
.tags li:hover { border-color: var(--line); color: var(--text); }
.tags .more { border-style: dashed; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.card-foot .full { color: var(--muted); }

.empty { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 48px 28px; }
.empty h3 { font-size: 20px; }
.empty p { color: var(--muted); max-width: 46ch; }
.empty-line { margin: 0 0 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split-card { display: grid; gap: 14px; align-content: start; justify-items: start; padding: 36px; }
.split-card p { color: var(--muted); max-width: 52ch; }
.split-icon { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field small { font-size: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
input:not([type="checkbox"]):not([type="radio"]):not([type="search"]), select, textarea {
  width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); padding: 11px 13px; font: inherit; font-size: 15px;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="search"]):focus, select:focus, textarea:focus { outline: none; border-color: var(--line); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15); }
textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
input[type="checkbox"], input[type="radio"] { accent-color: #fff; width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 18px; cursor: pointer; }
.check-inline { margin: 0; align-items: center; white-space: nowrap; }
fieldset { margin: 0; min-width: 0; }
fieldset legend { float: left; width: 100%; font-size: 20px; font-weight: 700; margin-bottom: 18px; padding: 0; }
fieldset legend + * { clear: both; }

.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* Auth */
.auth { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 56px; align-items: start; padding-top: 72px; }
.auth-intro { padding-top: 12px; }
.auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }
altcha-widget {
  --altcha-border-width: 1px;
  --altcha-border-radius: 8px;
  --altcha-color-base: #000000;
  --altcha-color-border: rgba(255, 255, 255, 0.2);
  --altcha-color-text: #ffffff;
  --altcha-color-border-focus: #ffffff;
  --altcha-color-error-text: #ff6b6b;
  --altcha-color-footer-bg: #000000;
  --altcha-max-width: 100%;
}

/* Role choice */
.onboarding { padding-top: 72px; max-width: 900px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0 24px; }
.type-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.role-card { position: relative; display: grid; gap: 10px; align-content: start; padding: 28px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); cursor: pointer; }
.role-card input { position: absolute; top: 20px; right: 20px; }
.role-card:hover { border-color: var(--line); }
.role-card:has(input:checked) { border-color: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.role-icon { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; }
.role-name { font-size: 22px; font-weight: 700; font-stretch: 125%; }
.role-text { color: var(--muted); font-size: 15px; }
.role-card-sm { padding: 18px; border-radius: var(--r-md); }
.role-card-sm .role-icon { width: 40px; height: 40px; border-radius: 10px; }
.role-card-sm .role-name { font-size: 17px; }

/* Listing form */
.chip-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 14px; color: var(--muted); }
.chip:hover span { border-color: var(--line); color: var(--text); }
.chip input:checked + span { background: #fff; color: #000; border-color: #fff; }
.chip input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.questions h3 { font-size: 16px; margin-bottom: 12px; }
.question-row { display: grid; grid-template-columns: 1fr 160px auto auto; gap: 10px; align-items: center; margin-bottom: 10px; }
.questions.is-hidden { display: none; }

/* Browse */
.browse { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { padding: 22px; position: sticky; top: 88px; }
.filters .btn + .btn { margin-top: 8px; }
.results-count { margin: 0 0 14px; }

/* Listing page */
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.listing-main .display-md { margin: 6px 0 14px; }
.listing-main .tags { margin: 18px 0 28px; }
.prose { max-width: 68ch; font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.questions-preview ol { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.apply-box { position: sticky; top: 88px; display: grid; gap: 18px; }
.apply-slots { display: grid; gap: 10px; }
.apply-slots p { margin: 0; }
.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.your-status { display: flex; align-items: center; gap: 10px; margin: 0; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.badge-pending { border-style: dashed; }
.badge-accepted { border-color: var(--ok); color: var(--ok); }
.badge-declined { border-color: var(--danger); color: var(--danger); }
.badge-expired, .badge-withdrawn { border-color: var(--line-soft); color: var(--muted); }
.deadline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* Rows (requests, dashboard, applicants) */
.group-title { font-size: 18px; font-weight: 700; margin: 32px 0 14px; display: flex; align-items: center; gap: 10px; }
.count { font-size: 13px; font-stretch: 100%; border: 1px solid var(--line-soft); border-radius: 999px; padding: 0 9px; color: var(--muted); font-weight: 600; }
.row-list { list-style: none; padding: 0; margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; }
.row-list:empty { display: none; }
.row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.row + .row { border-top: 1px solid var(--line-soft); }
.row-main { flex: 1; min-width: 0; display: grid; gap: 2px; text-decoration: none; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.row-main .muted { font-size: 14px; }
a.row-main:hover .row-title { text-decoration: underline; }
.row-meta { display: flex; align-items: center; gap: 12px; }
.row-stats { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.row-stats span { display: inline-flex; align-items: center; gap: 5px; }
.row-dim { opacity: 0.7; }
.row form { margin: 0; }

/* Request page */
.request-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; }
.request-head h1 a { text-decoration: none; }
.request-head h1 a:hover { text-decoration: underline; }
.request-status { display: grid; gap: 8px; justify-items: end; }
.answer-form .facts { margin-bottom: 16px; }
.hint { display: flex; gap: 8px; align-items: center; font-size: 14px; border: 1px dashed var(--line-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.qa { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.qa p { margin: 0; }
.qa-q { font-weight: 600; margin-bottom: 4px !important; display: flex; gap: 8px; align-items: center; }
.creator-msg { border-top-color: var(--line); }
.withdraw { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }

/* Manage */
.manage-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.manage-slots { display: grid; gap: 8px; justify-items: end; font-size: 14px; color: var(--muted); }
.manage-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.manage-side { display: grid; gap: 16px; position: sticky; top: 88px; margin-top: 32px; }
.side-block { padding: 20px; display: grid; gap: 10px; }
.side-block h2 { font-size: 17px; margin-bottom: 4px; }
.side-block .field { margin-bottom: 4px; }
.applicant { padding: 0; margin-bottom: 14px; border-radius: var(--r-md); }
.applicant summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.applicant summary::-webkit-details-marker { display: none; }
.applicant-name { font-weight: 650; }
.applicant summary .badge { margin-left: auto; }
.applicant-body { padding: 0 18px 18px; }
.decide { margin-top: 14px; display: grid; gap: 10px; }
.decide-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Settings */
.settings { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 32px; align-items: start; }
.settings-nav { display: grid; gap: 4px; position: sticky; top: 88px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); }
.settings-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.settings .panel { scroll-margin-top: 90px; }

/* Legal */
.legal { max-width: 760px; padding-top: 56px; }
.legal h2 { font-size: 22px; font-stretch: 125%; margin: 36px 0 12px; }
.legal p, .legal li { color: #dcdadb; line-height: 1.7; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; margin: 0 0 12px; }
.legal .btn { margin: 8px 0 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; vertical-align: top; }
th { font-weight: 600; border-bottom: 1px solid var(--line); }
td + td, th + th { border-left: 1px solid var(--line-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 28px; background: var(--panel); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; margin-top: 14px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer h2 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.site-footer nav a, .footer-link-btn { color: var(--muted); text-decoration: none; font-size: 14px; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.site-footer nav a:hover, .footer-link-btn:hover { color: var(--text); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.footer-base a { text-decoration: none; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 720px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px;
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-banner[hidden] { display: none; }
.cookie-text { display: flex; gap: 12px; align-items: flex-start; flex: 1 1 320px; }
.cookie-text p { margin: 0; font-size: 14px; color: #dcdadb; }
.cookie-actions { display: flex; gap: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .listing-layout, .manage-layout, .auth { grid-template-columns: 1fr; gap: 32px; }
  .apply-box, .manage-side { position: static; }
  .browse { grid-template-columns: 1fr; }
  .filters { position: static; }
  .settings { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .row-stats { display: none; }
}

@media (max-width: 1060px) {
  .menu-btn { display: inline-grid; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--panel); border-bottom: 1px solid var(--line); padding: 12px 16px 18px; gap: 2px;
  }
  .site-header.nav-open .nav { display: flex; }
  .nav > a, .nav-link-btn { width: 100%; padding: 12px; }
  .nav > a.btn { margin: 8px 0 0; }
  .nav .avatar { display: none; }
}

@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 48px; }
  .panel { padding: 20px; }
  .split, .role-grid, .type-choice, .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .question-row { grid-template-columns: 1fr auto; }
  .question-row select { grid-column: 1; }
  .question-row .check-inline { grid-column: 1; }
  .question-row .icon-btn { grid-column: 2; grid-row: 1; }
  .search { padding-left: 14px; }
  .search .btn { padding: 10px 14px; }
  .row { flex-wrap: wrap; }
  .row-meta { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .section { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
