/* ═══════════════════════════════════════════════════════════════════════
   Nyxever — components.css
   The shared component library. Everything here is reusable across pages.
   Edit a component here once; every page that uses it updates.
   Load order: tokens.css → base.css → components.css → [page].css
   See STYLE_GUIDE.md / COMPONENTS.md for usage and the update workflow.
═══════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   BUTTONS
   .btn + one variant. Hierarchy: primary > secondary > ghost.
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition:
    background-color var(--motion-duration-fast) var(--motion-ease-out),
    border-color var(--motion-duration-fast) var(--motion-ease-out),
    color var(--motion-duration-fast) var(--motion-ease-out);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-violet-500);
}

/* Primary — one dominant action per view (filled violet) */
.btn-primary {
  background-color: var(--color-violet-500);
  color: var(--color-neutral-50);
}
.btn-primary:hover  { background-color: var(--color-violet-600); }
.btn-primary:active { background-color: var(--color-violet-700); }

/* Secondary — solid but recessive (surface fill + border) */
.btn-secondary {
  background-color: var(--color-base-surface);
  color: var(--color-text-primary);
  border-color: var(--color-base-border);
}
.btn-secondary:hover {
  background-color: var(--color-base-overlay);
  border-color: var(--color-violet-700);
}

/* Ghost — lowest emphasis (transparent until hover) */
.btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-base-border);
}
.btn-ghost:hover {
  background-color: var(--color-base-surface);
  border-color: var(--color-neutral-700);
  color: var(--color-text-primary);
}

/* Size modifier */
.btn-sm { padding: var(--space-2) var(--space-4); }

/* ═══════════════════════════════════════════
   SITE NAV  (fixed top bar — identical on every page)
═══════════════════════════════════════════ */
/* Every page clears the fixed header (banner + nav) once, here. */
body { padding-top: var(--layout-topbar-height); }

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--layout-topbar-height);
  background-color: rgba(7, 8, 15, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-base-border-subtle);
}

.nav-inner {
  max-width: var(--layout-page-max);
  margin: 0 auto;
  padding: 0 var(--layout-page-padding);
  height: var(--layout-navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Development-status banner (top strip inside .site-nav, on every page) ── */
.dev-banner {
  height: var(--layout-banner-height);
  background: var(--color-status-warning-subtle);
  border-bottom: 1px solid var(--color-base-border-subtle);
  font-size: var(--text-caption);
  color: var(--color-text-secondary);
}
.dev-banner-inner {
  max-width: var(--layout-page-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--layout-page-padding);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  white-space: nowrap;
  overflow: hidden;
}
.dev-banner-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-weight: var(--font-weight-medium);
  color: var(--color-status-warning);
  flex-shrink: 0;
}
.dev-banner-led {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-status-warning);
  /* Pulses like the homepage .status-led (2.8s). base.css stops it under prefers-reduced-motion. */
  animation: dev-led-pulse calc(var(--motion-duration-normal) * 14) var(--motion-ease-in-out) infinite;
}
@keyframes dev-led-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 5px 1px var(--color-status-warning); }
  50%      { opacity: 0.25; box-shadow: none; }
}
.dev-banner-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dev-banner-link {
  margin-left: auto;
  padding-left: var(--space-4);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  flex-shrink: 0;
}
.dev-banner-link:hover { color: var(--color-text-accent); }
@media (max-width: 640px) {
  .dev-banner-text { display: none; }
}

/* Homepage: the banner sits in the page flow under the stat bar instead of in
   the fixed header, so the header is just the nav there. */
.page-home {
  --layout-banner-height: 0px;
  --layout-topbar-height: var(--layout-navbar-height);
}
.dev-banner--inline {
  height: auto;
  padding: var(--space-3) 0;
}
@media (max-width: 640px) {
  .dev-banner--inline .dev-banner-inner { white-space: normal; }
}

/* Logo: brand/nyxever-logo-dark.svg (mark + wordmark), the same file in the nav and the footer.
   Height is set here; the width follows the file's aspect ratio. */
.brand-logo {
  display: block;
  height: calc(var(--space-6) + var(--space-1));
  width: auto;
}
.nav-wordmark {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}
.nav-wordmark:focus-visible,
.footer-brand-wm:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-violet-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  transition: color var(--motion-duration-fast) var(--motion-ease-out);
}
.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a[aria-current="page"] { color: var(--color-text-primary); }


/* On narrow screens the link row tightens and scrolls sideways instead of
   being clipped. (A collapsible menu is still tracked as future work.) */
/* The logo never shrinks. Below 960px the eight links no longer fit beside it, so the row
   scrolls sideways (it used to overflow off-screen between 641px and 900px). */
.nav-wordmark { flex-shrink: 0; }
@media (max-width: 960px) {
  .nav-links {
    gap: var(--space-5);
    min-width: 0;
    margin-left: var(--space-5);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
  .nav-links::-webkit-scrollbar { display: none; }
}

/* ═══════════════════════════════════════════
   SITEMAP FOOTER  (identical on every page)
═══════════════════════════════════════════ */
.site-footer-full {
  background: var(--color-base-ground);
  border-top: 1px solid var(--color-base-border-subtle);
  padding-top: var(--space-16);
}

.footer-full-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-16);
}

.footer-brand-wm {
  display: inline-block;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.footer-brand-tag {
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
}

.footer-brand-desc {
  font-size: var(--text-body-sm);
  line-height: 1.7;
  color: var(--color-text-tertiary);
  max-width: 280px;
}

.footer-sitemap-col-label {
  font-size: var(--text-overline);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-5);
}

.footer-sitemap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}

.footer-sitemap-col ul a {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--motion-duration-fast) var(--motion-ease-out);
}
.footer-sitemap-col ul a:hover { color: var(--color-text-primary); }

.footer-full-bottom {
  border-top: 1px solid var(--color-base-border-subtle);
  padding: var(--space-5) 0;
}

.footer-full-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-full-copy {
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}

@media (max-width: 900px) {
  .footer-full-inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-brand-desc { max-width: 100%; }
}
@media (max-width: 560px) {
  .footer-full-inner { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   PAGE SCAFFOLD
   Standard hero/eyebrow/title/lead for content pages.
   Replaces the old per-page .careers-*, .contrib-*, .community-* families.
═══════════════════════════════════════════ */
.page-hero {
  padding: var(--space-12) 0 var(--space-16);
  border-bottom: 1px solid var(--color-base-border-subtle);
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-violet-400);
  margin-bottom: var(--space-4);
}

/* Overline label (non-mono section marker; sits above a heading or in a card) */
.overline {
  font-size: var(--text-overline);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.overline--accent { color: var(--color-violet-400); }

.page-title {
  font-size: clamp(2rem, 5vw, var(--text-display));
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}
/* Compact title for single-column reading pages (contact, good-citizen) */
.page-title--sm {
  font-size: clamp(1.8rem, 4vw, var(--text-title-xl));
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.page-lead {
  font-size: var(--text-body-lg);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 600px;
}
/* Lead with a divider beneath it (intro paragraph on doc-like pages) */
.page-lead--divided {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-base-border-subtle);
}

/* Single-column reading wrapper (contact, good-citizen…): narrow column
   with vertical rhythm. Top padding also clears the fixed nav. */
.page-reading {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-24) var(--layout-page-padding);
}

/* ═══════════════════════════════════════════
   CONTENT SECTION  (stacked, divided sections within a page)
═══════════════════════════════════════════ */
.content-section {
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-base-border-subtle);
}
.content-section:last-child { border-bottom: none; }

.content-section-title {
  font-size: var(--text-title-lg);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
}

/* ═══════════════════════════════════════════
   PROSE  (long-form body copy)
═══════════════════════════════════════════ */
.prose {
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--color-text-secondary);
  max-width: 680px;
}
.prose > * + * { margin-top: var(--space-5); }
.prose p { font-size: var(--text-body); }
.prose strong { color: var(--color-text-primary); font-weight: var(--font-weight-semibold); }
.prose a {
  color: var(--color-violet-400);
  text-decoration: none;
  transition: color var(--motion-duration-fast) var(--motion-ease-out);
}
.prose a:hover { color: var(--color-violet-300); }
.prose h2 {
  font-size: var(--text-title-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: var(--space-12) 0 var(--space-5);
}
.prose h3 {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: var(--space-8) 0 var(--space-3);
}
/* Branded list: violet dot markers */
.prose ul { list-style: none; padding-left: 0; display: grid; gap: var(--space-3); }
.prose ol { padding-left: var(--space-6); }
.prose ol li { margin-top: var(--space-2); }
.prose ul li { padding-left: var(--space-5); position: relative; line-height: 1.65; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--color-violet-700);
}

/* ═══════════════════════════════════════════
   CARD / PANEL
   Base surface block. Compose with modifiers and text helpers.
═══════════════════════════════════════════ */
.card {
  background: var(--color-base-surface);
  border: 1px solid var(--color-base-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.card--lg            { padding: var(--space-10); border-radius: var(--radius-xl); }
.card--accent        { border-top: 2px solid var(--color-violet-600); }
.card--accent-muted  { border-top: 2px solid var(--color-neutral-700); }
.card--dashed        { border-style: dashed; }
.card--center        { text-align: center; }
.card--center .prose { margin-inline: auto; }

/* Hover affordance for cards that are links or interactive */
.card--hover {
  transition:
    border-color var(--motion-duration-fast) var(--motion-ease-out),
    background-color var(--motion-duration-fast) var(--motion-ease-out);
}
.card--hover:hover {
  border-color: var(--color-violet-700);
  background-color: var(--color-base-overlay);
}

/* Card text helpers */
.card-num {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.08em;
  color: var(--color-violet-600);
}
.card-title {
  font-size: var(--text-body);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}
/* Larger heading for promo/CTA panels */
.card-heading {
  font-size: var(--text-title-md);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}
.card-body {
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--color-text-secondary);
}
/* Mono meta line inside a card (e.g. an external link host) */
.card-link {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

/* Card grid */
.card-grid { display: grid; gap: var(--space-4); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 720px) {
  .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   CALLOUT  (bordered note with violet left rule)
═══════════════════════════════════════════ */
.callout {
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-base-border);
  border-left: 3px solid var(--color-violet-600);
  border-radius: var(--radius-md);
  background: var(--color-base-surface);
  font-size: var(--text-body-sm);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: var(--space-6) 0;
}
.callout strong {
  display: block;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-1);
}
/* Accent-highlighted callout (e.g. contact form "not live" notice) */
.callout--accent {
  background: color-mix(in srgb, var(--color-violet-600) 16%, var(--color-base-surface));
  border-color: var(--color-violet-600);
  border-left-color: var(--color-violet-400);
  color: var(--color-text-primary);
}
.callout--accent strong { color: var(--color-violet-200); }
.callout--accent a { color: var(--color-violet-300); text-decoration: underline; }
.callout--accent a:hover { color: var(--color-violet-200); }

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
/* Horizontal rule / section divider */
.rule {
  border: none;
  border-top: 1px solid var(--color-base-border-subtle);
  margin: var(--space-12) 0;
}

/* Row of buttons (CTA groups) */
.button-row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.button-row--top { margin-top: var(--space-8); }
.button-row--center { justify-content: center; }

/* Vertical stack (grid with gap) — for stacking a card's label/title/body */
.stack   { display: grid; gap: var(--space-8); }
.stack-6 { display: grid; gap: var(--space-6); }
.stack-3 { display: grid; gap: var(--space-3); }
.stack-2 { display: grid; gap: var(--space-2); }

/* Top-margin spacing helpers (block separation without a wrapper) */
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }

/* ═══════════════════════════════════════════
   NOTICE  (icon + message callout box; e.g. "no open positions")
═══════════════════════════════════════════ */
.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-base-surface);
  border: 1px solid var(--color-base-border);
  border-radius: var(--radius-xl);
}
.notice-icon {
  font-family: var(--font-mono);
  font-size: var(--text-title-md);
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.notice-title {
  font-size: var(--text-body-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}
.notice-body {
  font-size: var(--text-body-sm);
  line-height: 1.65;
  color: var(--color-text-secondary);
}
@media (max-width: 640px) { .notice { flex-direction: column; } }

/* ═══════════════════════════════════════════
   BREADCRUMB  (generic; the docs layout has its own sticky variant)
═══════════════════════════════════════════ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
}
.breadcrumb a { color: var(--color-text-tertiary); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-text-secondary); }
.breadcrumb-sep { opacity: 0.4; }

/* ═══════════════════════════════════════════
   TAG  (small uppercase label/badge)
═══════════════════════════════════════════ */
.tag {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  padding: 2px var(--space-2);
  border: 1px solid var(--color-base-border);
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════
   KEYED LIST  (mono key + description rows; e.g. future opportunity areas)
═══════════════════════════════════════════ */
.keyed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
  max-width: 600px;
}
.keyed-list li {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-base-border-subtle);
}
.keyed-list li:last-child { border-bottom: none; }
.keyed-list .key {
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-violet-600);
  min-width: 40px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   META GRID  (label/value pairs in a panel; e.g. entity facts)
═══════════════════════════════════════════ */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.meta-item { display: grid; gap: var(--space-1); }
.meta-label {
  font-size: var(--text-caption);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}
.meta-value {
  font-size: var(--text-body-sm);
  color: var(--color-text-secondary);
}
.meta-value a { color: var(--color-violet-400); text-decoration: none; }
.meta-value a:hover { color: var(--color-violet-300); }
@media (max-width: 640px) { .meta-grid { grid-template-columns: 1fr 1fr; } }

/* ═══════════════════════════════════════════
   PROFILE  (avatar + bio; contributors)
═══════════════════════════════════════════ */
.profile {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-8);
  align-items: start;
  max-width: 760px;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-xl);
  background: var(--color-base-surface);
  border: 1px solid var(--color-base-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.04em;
  color: var(--color-violet-400);
  flex-shrink: 0;
  font-family: var(--font-mono);
  user-select: none;
}
.profile-body { display: grid; gap: var(--space-1); }
.profile-name {
  font-size: var(--text-title-md);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}
.profile-role {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-violet-400);
  margin-bottom: var(--space-4);
}
.profile-links { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; } }

/* Placeholder slot (empty/future entity) */
.placeholder-slot {
  background: var(--color-base-surface);
  border: 1px dashed var(--color-base-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 160px;
  text-align: center;
}
.placeholder-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-base-ground);
  border: 1px dashed var(--color-base-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  opacity: 0.5;
}
.placeholder-label {
  font-size: var(--text-body-sm);
  color: var(--color-text-tertiary);
  line-height: 1.5;
}

/* Entity header (logo + name; contribute "About") */
.entity-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-base-border-subtle);
}
.entity-logo {
  width: 64px;
  height: 64px;
  background: var(--color-base-ground);
  border: 1px solid var(--color-base-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-overline);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  color: var(--color-violet-400);
  flex-shrink: 0;
}
.entity-name {
  font-size: var(--text-title-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}
.entity-descriptor { font-size: var(--text-body-sm); color: var(--color-text-tertiary); }

/* ═══════════════════════════════════════════
   FORMS
═══════════════════════════════════════════ */
.form { display: grid; gap: var(--space-6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field { display: grid; gap: var(--space-2); }
.form-field.full { grid-column: 1 / -1; }

.form-label {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}
.form-label abbr {
  color: var(--color-violet-400);
  text-decoration: none;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--color-base-surface);
  border: 1px solid var(--color-base-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-body-sm);
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  width: 100%;
  outline: none;
  transition: border-color var(--motion-duration-fast) var(--motion-ease-out);
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--color-text-tertiary); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--color-violet-600); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
  cursor: pointer;
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.65; }

.form-hint  { font-size: var(--text-caption); color: var(--color-text-tertiary); line-height: 1.5; }
.honeypot   { display: none; }
.form-error {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-status-error-subtle);
  border: 1px solid var(--color-status-error);
  color: var(--color-status-error);
  font-size: var(--text-body-sm);
  line-height: 1.5;
}
.form-actions { display: flex; gap: var(--space-4); align-items: center; padding-top: var(--space-2); }
.form-note  { font-size: var(--text-caption); color: var(--color-text-tertiary); line-height: 1.6; }

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* Form success state */
.form-success { display: none; text-align: center; padding: var(--space-12) 0; }
.form-success.visible { display: block; }
.success-icon { font-size: 2.5rem; margin-bottom: var(--space-4); }
.success-title {
  font-size: var(--text-title-md);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}
.success-body {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto var(--space-8);
}

/* ═══════════════════════════════════════════
   DISCLAIMER  (shared legal note block)
═══════════════════════════════════════════ */
.disclaimer {
  border-top: 1px solid var(--color-base-border-subtle);
  background: var(--color-base-ground);
  padding: var(--space-5) 0;
}
.disclaimer-text {
  font-size: var(--text-caption);
  line-height: 1.65;
  color: var(--color-text-tertiary);
  max-width: 900px;
}
.disclaimer-text strong { color: var(--color-text-secondary); font-weight: var(--font-weight-medium); }

/* ═══════════════════════════════════════════
   SCROLL REVEAL  (JS adds .revealed when in view; see main.js)
   Content is only hidden when JS is running (html.js, set inline in <head>),
   so pages stay readable if scripts fail or are blocked.
═══════════════════════════════════════════ */
.js .scroll-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--motion-duration-slow) var(--motion-ease-out),
    transform var(--motion-duration-slow) var(--motion-ease-out);
}
.js .scroll-reveal.revealed { opacity: 1; transform: translateY(0); }
.scroll-reveal:nth-child(2) { transition-delay: 80ms; }
.scroll-reveal:nth-child(3) { transition-delay: 160ms; }
.scroll-reveal:nth-child(4) { transition-delay: 100ms; }
.scroll-reveal:nth-child(5) { transition-delay: 140ms; }

@media (prefers-reduced-motion: reduce) {
  .js .scroll-reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════
   STATUS LIST  (project status page: area · state chip · detail)
═══════════════════════════════════════════ */
.status-updated {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  color: var(--color-text-tertiary);
}
.status-list { list-style: none; padding: 0; margin: 0; }
.status-row {
  display: grid;
  grid-template-columns: minmax(0, 14rem) 10rem minmax(0, 1fr);
  gap: var(--space-2) var(--space-6);
  align-items: baseline;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-base-border-subtle);
}
.status-row:last-child { border-bottom: none; }
.status-area {
  font-size: var(--text-body-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}
.status-detail { font-size: var(--text-body-sm); line-height: 1.6; color: var(--color-text-secondary); }
.status-detail a { color: var(--color-violet-400); }
.status-chip {
  justify-self: start;
  font-family: var(--font-mono);
  font-size: var(--text-caption);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 2px var(--space-2);
  border: 1px solid currentColor;
  border-radius: var(--radius-sm);
}
.status-chip--done     { color: var(--color-status-success); background: var(--color-status-success-subtle); }
.status-chip--progress { color: var(--color-status-warning); background: var(--color-status-warning-subtle); }
.status-chip--planned  { color: var(--color-text-tertiary); }
@media (max-width: 720px) {
  .status-row { grid-template-columns: 1fr auto; }
  .status-detail { grid-column: 1 / -1; }
}
