/*
 * HelloLawyer - Judicial Job Board
 * Clean, Professional Design System
 * Light theme with professional dark blue accent
 */


:root {
  /* Design tokens */
  --font-display: "Manrope", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Brand colors - Professional Dark Blue */
  --brand-primary: #1e3a5f;
  --brand-primary-hover: #162d4d;
  --brand-primary-light: #2d5a8a;
  --brand-dark: #0f172a;

  /* Legacy alias for gradual migration */
  --brand-orange: #1e3a5f;
  --brand-orange-hover: #162d4d;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Light theme */
[data-theme="hellolaw"],
:root {
  --color-base-100: #ffffff;
  --color-base-200: #f8fafc;
  --color-base-300: #e2e8f0;
  --color-base-content: #0f172a;

  --color-primary: #1e3a5f;
  --color-primary-content: #ffffff;

  --color-secondary: #0f172a;
  --color-secondary-content: #ffffff;

  --color-accent: #1e3a5f;
  --color-accent-content: #ffffff;

  --color-neutral: #0f172a;
  --color-neutral-content: #ffffff;

  --color-info: #3b82f6;
  --color-info-content: #ffffff;

  --color-success: #22c55e;
  --color-success-content: #ffffff;

  --color-warning: #f59e0b;
  --color-warning-content: #0f172a;

  --color-error: #ef4444;
  --color-error-content: #ffffff;

  color-scheme: light;
}

/* Typography */
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #ffffff;
  color: #1d1d1b;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* Ensure short pages (e.g. /login) keep footer at the bottom */
body.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.login-page main {
  flex: 1 0 auto;
}

body.login-page footer {
  margin-top: auto;
}

/* Internships page styles must be global for hx-boost navigation.
   Tokens remapped to the editorial ("Prism Brief") palette. */
:root {
  --apple-gray-50: oklch(0.975 0.004 250);
  --apple-gray-100: oklch(0.955 0.004 250);
  --apple-gray-200: oklch(0.90 0.005 250);
  --apple-gray-400: oklch(0.58 0.011 250);
  --apple-gray-500: oklch(0.45 0.010 250);
  --apple-gray-600: oklch(0.35 0.011 250);
  --apple-gray-900: oklch(0.20 0.012 250);
  --apple-blue: oklch(0.48 0.13 129);
  --apple-blue-hover: oklch(0.40 0.12 129);
}

.internships-page {
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: -0.01em;
}

.apple-title {
  font-family: var(--ed-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--apple-gray-900);
}

.apple-subtitle {
  font-weight: 400;
  color: var(--apple-gray-500);
  line-height: 1.5;
}

.internship-card {
  background: var(--ed-cream);
  border-radius: 18px;
  border: 1px solid var(--ed-cream-border);
  transition: border-color 150ms ease;
}

.internship-card:hover {
  border-color: oklch(0.84 0.006 250);
}

/* Internship facts: deadline, pay, year of study, season, length, format */
.int-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.int-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1px solid var(--ed-cream-border);
  color: oklch(0.45 0.010 250);
  font-variant-numeric: tabular-nums;
}

.int-chip-paid {
  background: oklch(0.95 0.04 150);
  border-color: oklch(0.86 0.08 150);
  color: oklch(0.42 0.12 150);
}

.int-chip-soon {
  background: oklch(0.95 0.05 80);
  border-color: oklch(0.86 0.09 78);
  color: oklch(0.47 0.11 70);
  font-weight: 600;
}

.apple-link {
  color: var(--apple-blue);
  transition: opacity 0.2s ease;
}

.apple-link:hover {
  opacity: 0.8;
}

.apple-btn-primary {
  background: var(--ed-ink);
  color: var(--ed-cream);
  border-radius: 980px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: filter 200ms ease, transform 200ms ease;
}

.apple-btn-primary:hover {
  filter: brightness(1.15);
}

.apple-btn-secondary {
  background: transparent;
  color: var(--apple-blue);
  border-radius: 980px;
  padding: 12px 24px;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.apple-btn-secondary:hover {
  opacity: 0.7;
}

.pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apple-gray-200);
}

.pagination-dot.active {
  background: var(--apple-gray-900);
  width: 24px;
  border-radius: 4px;
}

/* Logo styling */
.logo-mark {
  height: 32px;
  width: auto;
}

.logo-mark-lg {
  height: 48px;
  width: auto;
}

/* Navigation — editorial cream */
.nav-main {
  background: oklch(0.975 0.004 250 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Primary button */
.btn-brand {
  background-color: var(--brand-primary);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  transition: background-color 150ms ease, color 150ms ease;
}

.btn-brand:not(.btn-sm):not(.btn-lg),
.btn-brand-outline:not(.btn-sm):not(.btn-lg),
.btn-dark:not(.btn-sm):not(.btn-lg) {
  padding: 0.5rem 1rem;
}

.btn-brand:hover {
  background-color: var(--brand-primary-hover);
  color: #ffffff;
}

/* Outline button */
.btn-brand-outline {
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.btn-brand-outline:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
}

/* Dark button */
.btn-dark {
  background-color: var(--brand-dark);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  transition: background-color 150ms ease;
}

.btn-dark:hover {
  background-color: #333;
  color: #ffffff;
}

/* Cards */
.card-clean {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-clean:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Vacancy card */
.vacancy-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: border-color 150ms ease;
}

.vacancy-card:hover {
  border-color: var(--brand-primary);
}

/* Prevent vacancy cards from causing horizontal scroll on mobile (e.g. long unbroken strings) */
#vacancies-list .grid>* {
  min-width: 0;
  max-width: 100%;
}

#vacancies-list .grid h3,
#vacancies-list .grid p,
#vacancies-list .grid span {
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Badge styling */
.badge-brand {
  background-color: rgba(30, 58, 95, 0.1);
  color: var(--brand-primary);
  border: none;
  font-weight: 500;
}

.badge-gray {
  background-color: #f3f4f6;
  color: #6b7280;
  border: none;
  font-weight: 500;
}

/* Status badges */
.status-draft {
  background-color: #f3f4f6;
  color: #6b7280;
}

.status-published {
  background-color: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.status-closed {
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

/* Form inputs */
.input-clean {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  color: #0f172a;
  padding: 0.5rem 0.75rem;
}

.input-clean:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
  outline: none;
}

.input-clean::placeholder {
  color: #9ca3af;
}

/* Table styling */
.table-clean thead {
  background: #f8f9fa;
}

.table-clean thead th {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid #e9ecef;
}

.table-clean tbody tr {
  border-bottom: 1px solid #f3f4f6;
}

.table-clean tbody tr:hover {
  background-color: #f9fafb;
}

/* Stats */
.stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.stat-value {
  color: var(--brand-primary);
  font-size: 2.5rem;
  font-weight: 700;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Sidebar */
.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: #6b7280;
  border-radius: var(--radius-md);
  font-weight: 500;
}

.sidebar-item:hover {
  background: #f3f4f6;
  color: #1d1d1b;
}

.sidebar-item.active {
  background: rgba(30, 58, 95, 0.1);
  color: var(--brand-primary);
}

/* Link styling */
.link-brand {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.link-brand:hover {
  color: var(--brand-primary-hover);
  text-decoration: underline;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
}

.empty-state svg {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  color: #d1d5db;
}

/* Footer */
.footer-main {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

/* Section backgrounds */
.bg-gray {
  background-color: #f8f9fa;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* Divider */
.divider-line {
  height: 1px;
  background: #e9ecef;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 1000;
}

/* Alert styling */
.alert-clean {
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.alert-success-clean {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

.alert-error-clean {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

/* Login errors must remain readable on the tinted alert surface. */
.login-page .alert-error-clean { color: oklch(0.48 0.16 25); }
.login-code-restart { display: inline-block; padding-block: 10px; font-size: .875rem; color: var(--ed-ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.login-code-label { display: block; margin-block-end: 6px; }
.login-otp { display: block; position: relative; }
.login-otp ui-otp-input-control { display: contents; }
.login-otp:not(:defined) ui-otp-input-group { display: none; }
.login-otp:defined ui-otp-input-group { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(4px, 1.6vw, 10px); }
.login-otp ui-otp-input-slot { display: grid; min-height: 48px; place-items: center; border: 1px solid color-mix(in oklch, var(--ed-ink-muted) 65%, var(--ed-cream)); border-radius: 12px; background: var(--ed-cream); color: var(--ed-ink); font: 600 1.25rem/1 var(--font-mono); }
.login-otp ui-otp-input-slot[data-active] { outline: 2px solid var(--ed-ink); outline-offset: -2px; }
.login-otp:defined input { position: absolute; inset: 0; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; box-shadow: none; cursor: text; }
.login-otp:defined input::placeholder { color: transparent; }

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Print styles */
@media print {

  .nav-main,
  .btn,
  .toast-container {
    display: none;
  }
}

/* HTMX loading indicator */
.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator {
  display: flex;
}

.htmx-request.htmx-indicator {
  display: flex;
}

/* Line clamp utility */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Select styling */
select.input-clean {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Filter sidebar on mobile */
@media (max-width: 1023px) {
  #filters-sidebar {
    margin-bottom: 1.5rem;
  }
}

/* ==========================================
    Enhanced Filter Styles
    ========================================== */

/* Filter bar sticky shadow */
.filter-bar-shadow {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
}

/* Filter input focus glow */
.filter-input:focus {
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

/* Filter select custom styling */
.filter-select {
  background-image: none;
}

/* Quick filter chips */
.quick-filter-chip {
  backdrop-filter: blur(4px);
}

.quick-filter-chip:hover:not(.bg-brand-primary) {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.quick-filter-chip.bg-brand-primary {
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25);
}

/* Mobile filter panel */
#mobile-filters {
  max-height: 500px;
  overflow: hidden;
}

/* Filter select mobile */
.filter-select-mobile {
  font-size: 14px;
}

/* Filter bar glass effect */
.filter-bar-glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Active page number */
.pagination-active {
  background: linear-gradient(135deg, #1e3a5f 0%, #162d4d 100%);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* Responsive adjustments for filter bar */
@media (max-width: 640px) {
  .filter-bar-glass {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .quick-filter-chip {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
  /* Placeholder for dark mode filter styles */
}

/* ==========================================
   Mobile Menu Styles
   ========================================== */

/* Mobile menu link hover effects */
#mobile-menu-panel a:hover {
  background-color: oklch(0.955 0.004 250);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

/* Mobile menu button focus styles */
#mobile-menu-button:focus {
  box-shadow: 0 0 0 3px oklch(0.78 0.14 130 / 0.20);
}

/* Mobile menu overlay positioning - start below navbar */
.mobile-menu-overlay-position {
  top: 57px;
}

/* Ensure navbar stays white when mobile menu is open */
body.mobile-menu-open .nav-main {
  background: oklch(0.975 0.004 250 / 0.96) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

/* =====================================================================
   Vacancies row-list — Editorial (Prism Brief): cream / ink / sage
   Used on /vacancies and /vacancies/practice/* and /vacancies/location/*
   ===================================================================== */
:root {
  --vac-brand: oklch(0.48 0.13 129);
  /* legible sage for links/active */
  --vac-brand-hover: oklch(0.40 0.12 129);
  /* deeper sage on hover */
  --vac-brand-light: oklch(0.78 0.14 130);
  /* bright sage for highlight/sponsor */
  --vac-ink: oklch(0.20 0.012 250);
  --vac-cream: oklch(0.975 0.004 250);
  --vac-surface: oklch(0.955 0.004 250);
  --vac-border: oklch(0.90 0.005 250);
  --vac-border-hover: oklch(0.84 0.006 250);
  --vac-muted: oklch(0.45 0.010 250);
}

.vac-display {
  font-family: var(--ed-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--vac-ink);
}

/* Promo banner */
.vac-promo {
  border-radius: 20px;
  background: var(--ed-dark);
  color: var(--ed-dark-fg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.vac-promo-text {
  font-size: 15px;
  line-height: 1.5;
  max-width: 640px;
  color: var(--ed-dark-muted);
}

.vac-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ed-cream);
  color: var(--ed-ink);
  padding: 12px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  transition: filter 200ms, transform 200ms;
}

.vac-promo-cta:hover {
  filter: brightness(1.05);
  transform: translateX(2px);
}

.vac-promo-progress {
  margin-top: 12px;
  height: 6px;
  width: 100%;
  max-width: 320px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.vac-promo-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: var(--ed-cream);
  transition: width 500ms ease;
}

.vac-promo-progress-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ed-dark-muted);
}

.vac-cta-grid {
  display: grid;
  gap: 12px;
  margin-block-start: 32px;
}

.vac-cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--vac-border);
  border-radius: 18px;
  background: var(--vac-cream);
  font-size: 14px;
  color: var(--vac-muted);
}

.vac-cta-card h2 {
  font-family: var(--ed-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--vac-ink);
}

.vac-cta-card p { max-width: 42ch; }

.vac-cta-card > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-block: auto -8px;
}

.vac-cta-progress {
  display: grid;
  gap: 4px;
  width: min(100%, 16rem);
  font-size: 13px;
}

.vac-cta-progress progress {
  appearance: none;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 9999px;
  overflow: hidden;
  background: var(--vac-border);
}

.vac-cta-progress progress::-webkit-progress-bar { background: var(--vac-border); }
.vac-cta-progress progress::-webkit-progress-value { background: var(--vac-brand); }
.vac-cta-progress progress::-moz-progress-bar { background: var(--vac-brand); }

@media (min-width: 640px) {
  .vac-cta-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

  .vac-cta-telegram:only-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
  }

  .vac-cta-telegram:only-child p { max-width: none; }

  .vac-cta-telegram:only-child > a {
    grid-area: 1 / 2 / 3 / 3;
    align-self: center;
    margin-block: 0;
  }
}

.vac-guest-gate {
  display: grid;
  isolation: isolate;
  margin-block-start: 12px;
}

.vac-guest-preview {
  grid-area: 1 / 1;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 10px;
  min-height: 260px;
  pointer-events: none;
  filter: blur(3px);
}

.vac-guest-preview-row {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 20px 22px;
  border: 1px solid var(--vac-border-hover);
  border-radius: 18px;
  background: var(--vac-surface);
}

.vac-guest-preview-row span {
  width: 42%;
  height: 10px;
  border-radius: 9999px;
  background: var(--vac-border-hover);
}

.vac-guest-preview-row span:nth-child(2) { width: 30%; }
.vac-guest-preview-row span:last-child { width: 5rem; height: 18px; }

@media (max-width: 639.98px) {
  .vac-guest-preview { min-height: 280px; }
  .vac-guest-preview-row { padding-block: 16px; }
  .vac-guest-preview-row:first-child { align-content: start; }
  .vac-guest-preview-row:last-child:not(:only-child) { align-content: end; }
}

.vac-guest-gate-content {
  grid-area: 1 / 1;
  place-self: center;
  z-index: 1;
  width: min(29rem, calc(100% - 24px));
  margin-block: 20px;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid var(--vac-border-hover);
  border-radius: 20px;
  background: var(--vac-cream);
  text-align: center;
  font-size: 14px;
  color: var(--vac-muted);
}

.vac-guest-gate-content h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.12; }

.vac-guest-gate-content p { max-width: 38ch; margin: 8px auto 0; }

.vac-guest-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-block-start: 16px;
}

.vac-guest-actions .vac-list-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.vac-guest-actions a:focus-visible,
.vac-cta-card a:focus-visible {
  outline: 2px solid var(--vac-brand);
  outline-offset: 3px;
}

.vac-list-link {
  color: var(--vac-brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.vac-list-link:hover {
  color: var(--vac-brand-hover);
}

.vac-cta-telegram {
  border-color: var(--ed-dark-border);
  background: var(--ed-dark);
  color: var(--ed-dark-muted);
}

.vac-cta-telegram h2 { color: var(--ed-dark-fg); }
.vac-cta-telegram .vac-list-link { color: var(--ed-sage); }
.vac-cta-telegram .vac-list-link:hover { color: var(--ed-sage-bright); }
.vac-cta-telegram .vac-list-link:focus-visible { outline-color: var(--ed-sage); }

.vac-catalog-form {
  --vac-toolbar-height: 54px;
  --vac-filter-width: 126px;
  position: relative;
}

.vac-search {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--vac-toolbar-height);
  margin-inline-end: calc(var(--vac-filter-width) + 8px);
  border: 1px solid var(--vac-border);
  background: var(--vac-surface);
  border-radius: 9999px;
  padding: 4px;
  transition: border-color 200ms, box-shadow 200ms;
}

.vac-search:focus-within {
  border-color: var(--vac-brand);
  box-shadow: 0 0 0 4px oklch(0.78 0.14 130 / 0.16);
}

.vac-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding-inline-start: 12px;
  font-size: 16px;
  color: var(--vac-ink);
  font-family: inherit;
}

.vac-search input::placeholder {
  color: var(--vac-muted);
}

.vac-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  min-height: 44px;
  background: var(--vac-ink);
  color: var(--ed-cream);
}

.vac-btn:hover:not(:where(.vac-search-submit, .vac-filter-sheet-footer button.vac-btn)) {
  filter: brightness(1.15);
}

@media (hover: hover) and (pointer: fine) {
  .vac-search-submit:hover,
  .vac-filter-sheet-footer button.vac-btn:hover {
    filter: brightness(1.15);
  }
}

:is(.vac-search-submit, .vac-filter-sheet-footer button.vac-btn) {
  transition: background-color 120ms cubic-bezier(.23, 1, .32, 1);
}

@media (prefers-reduced-motion: reduce) {
  :is(.vac-search-submit, .vac-filter-sheet-footer button.vac-btn) {
    transition-duration: 60ms;
  }
}

:is(.vac-search-submit, .vac-filter-sheet-footer button.vac-btn):enabled:is(:active:not([data-vac-touch-press]), [data-vac-touch-press="down"]) {
  background-color: color-mix(in oklab, var(--vac-ink) 80%, var(--vac-muted));
  transition-duration: 0ms;
}

.vac-search .vac-search-submit {
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
}

.vac-search-submit span {
  display: none;
}

.vac-filters-summary {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--vac-filter-width);
  height: var(--vac-toolbar-height);
  border: 1px solid var(--vac-border-hover);
  border-radius: 9999px;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--vac-ink);
  cursor: pointer;
}

.vac-filters-summary::-webkit-details-marker {
  display: none;
}

.vac-filters-summary:hover,
.vac-filters[open] > .vac-filters-summary,
.vac-filter-sheet .vac-filters-summary[data-open] {
  background: var(--vac-surface);
  border-color: var(--vac-muted);
}

.vac-filters-summary:focus-visible,
.vac-search-submit:focus-visible {
  outline: 2px solid var(--vac-brand);
  outline-offset: 2px;
}

.vac-filters-active {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  min-height: 19px;
  border-radius: 9999px;
  background: var(--vac-brand);
  color: white;
  font-size: 11px;
  line-height: 1;
}

.vac-catalog-form:has(option:checked:not([value=""]), #direct:checked) .vac-filters-active {
  display: inline-flex;
}

.vac-filters-active:has([data-filter-count]:empty) {
  min-width: 8px;
  min-height: 8px;
}

.vac-filters-panel {
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid var(--vac-border);
  background: var(--vac-surface);
  padding: 10px 10px 2px;
}

.vac-filter-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vac-filter-fields > div {
  min-width: 0;
  position: relative;
}

.vac-filter-practice {
  grid-column: 1 / -1;
}

.vac-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 8px;
}

.vac-field-label {
  position: absolute;
  inset-block-start: 7px;
  inset-inline-start: 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--vac-muted);
  pointer-events: none;
  line-height: 1.2;
}

.vac-field-select {
  width: 100%;
  height: 52px;
  border: 1px solid var(--vac-border);
  background: var(--vac-cream);
  border-radius: 12px;
  padding: 16px 27px 0 11px;
  font-size: 16px;
  line-height: 1.25;
  color: var(--vac-ink);
  font-family: inherit;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color 200ms, box-shadow 200ms;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2350565e' stroke-width='2.5'><path stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.vac-field-select:hover {
  border-color: var(--vac-border-hover);
}

.vac-field-select:has(option:checked:not([value=""])),
.vac-combobox .vac-field-select[data-open],
.vac-filter-fields > div:has(> select option:checked:not([value=""])) .vac-combobox input {
  border-color: var(--vac-brand);
}

.vac-field-select:focus {
  outline: none;
  border-color: var(--vac-brand);
  box-shadow: 0 0 0 4px oklch(0.78 0.14 130 / 0.16);
}

.vac-field-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 500;
  color: var(--vac-ink);
  cursor: pointer;
}

.vac-field-toggle input {
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--vac-brand);
  cursor: pointer;
}

.vac-filter-reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--vac-brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.vac-filter-reset:hover {
  color: var(--vac-brand-hover);
}

.vac-catalog-form:not(:has(option:checked:not([value=""]), #direct:checked)) .vac-filter-reset {
  display: none;
}

.vac-filter-sheet[hidden],
.vac-filters[hidden] {
  display: none;
}

.vac-filter-sheet-backdrop {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  background: color-mix(in oklab, var(--vac-ink) 42%, transparent);
}

.vac-filter-sheet-content:not([hidden]) {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: calc(100dvh - 12px);
  border-radius: 24px 24px 0 0;
  background: var(--vac-cream);
  color: var(--vac-ink);
  box-shadow: 0 -8px 32px oklch(0.20 0.012 250 / 0.14);
  outline: none;
}

.vac-filter-sheet-header {
  flex: none;
  padding: 10px 20px 16px;
}

.vac-filter-sheet-grip {
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 9999px;
  background: var(--vac-border-hover);
}

.vac-filter-sheet-title {
  font-size: 28px;
}

.vac-filter-sheet-fields {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 20px 6px;
}

.vac-filter-sheet-fields .vac-filters-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.vac-filter-sheet-fields .vac-filter-fields {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.vac-filter-sheet-fields .vac-field-select {
  height: 56px;
  background-color: var(--vac-surface);
}

.vac-filter-fields > div:has(> .vac-combobox) > :is(label, select) {
  display: none;
}

.vac-combobox .vac-field-select {
  cursor: text;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2350565e' stroke-width='2' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='m16 16 4.5 4.5'/></svg>");
}

.vac-combobox input::placeholder {
  color: var(--vac-muted);
  opacity: 1;
}

.vac-combobox ui-combobox-content:not([hidden]) {
  --vac-combobox-list-height: min(var(--available-height, 240px), 240px);
  width: var(--anchor-width);
  max-width: calc(100vw - 24px);
  margin: 0;
  padding: 0;
  border: 1px solid var(--vac-border-hover);
  border-radius: 12px;
  background: var(--vac-cream);
  color: var(--vac-ink);
  box-shadow: 0 4px 12px oklch(0.20 0.012 250 / 0.12);
}

.vac-combobox ui-combobox-list {
  max-height: calc(var(--vac-combobox-list-height) - 2px);
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: inherit;
}

.vac-combobox ui-combobox-list:focus-visible {
  outline: 2px solid var(--vac-brand);
  outline-offset: -3px;
}

.vac-combobox ui-combobox-empty:not(:empty) {
  padding: 12px;
  font-size: 15px;
  color: var(--vac-muted);
}

.vac-combobox [role="option"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.vac-combobox [role="option"][data-highlighted] {
  background: var(--vac-surface);
  outline: 1px solid var(--vac-border-hover);
  outline-offset: -1px;
}

.vac-combobox [role="option"][aria-selected="true"]::after {
  content: "";
  flex: none;
  width: 6px;
  height: 11px;
  border: solid var(--vac-brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.vac-filter-sheet-fields .vac-filter-actions {
  margin-top: 4px;
}

.vac-filter-sheet-footer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--vac-border);
}

.vac-filter-sheet-results {
  color: var(--vac-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.int-hero {
  padding-block: clamp(32px, 5vw, 64px) clamp(16px, 3vw, 32px);
}

.int-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-block-start: 12px;
}

.int-catalog {
  scroll-margin-top: 120px;
}

.int-catalog-form {
  margin-bottom: 24px;
}

.int-filter-bar,
.int-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.int-filter-bar {
  justify-content: space-between;
  margin-bottom: 12px;
}

.int-filter-buttons {
  margin-inline-start: auto;
  justify-content: flex-end;
}

.int-result-count {
  color: var(--vac-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.int-catalog-form .vac-filters-summary {
  position: static;
  width: auto;
  height: 44px;
  padding-inline: 14px;
}

.int-catalog-form:has(option:checked:not([value=""]), input[name="paid"]:checked) .vac-filters-active {
  display: inline-flex;
}

.int-catalog-form:not(:has(option:checked:not([value=""]), input[name="paid"]:checked)) .vac-filter-reset {
  display: none;
}

.int-catalog-form .vac-filter-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.int-catalog-form .vac-filters-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.int-catalog-form .vac-filter-actions {
  margin-top: 8px;
}

.int-filter-apply {
  padding-inline: 16px;
  border: 1px solid var(--vac-border-hover);
  background: transparent;
  color: var(--vac-ink);
}

.int-filter-apply:hover {
  background: var(--vac-surface);
  filter: none;
}

.int-catalog-form .vac-filter-sheet-header {
  position: relative;
}

.int-filter-close button {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-end: 12px;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  font-size: 24px;
  cursor: pointer;
}

.int-filter-close button:hover {
  background: var(--vac-surface);
}

.int-catalog-form button:focus-visible {
  outline: 2px solid var(--vac-brand);
  outline-offset: 2px;
}

.int-catalog-form .vac-filter-sheet-fields .vac-filter-fields {
  grid-template-columns: minmax(0, 1fr);
}

.int-filter-apply[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .int-catalog-form .vac-filter-fields:has(#season) {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .vac-catalog-form {
    --vac-filter-width: 142px;
  }

  .vac-search .vac-search-submit {
    padding-inline: 16px;
  }

  .vac-search-submit span {
    display: inline;
  }

  .vac-filters-panel {
    padding: 12px 12px 4px;
  }

  .vac-filter-fields {
    grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  }

  .vac-filter-practice {
    grid-column: auto;
  }
}

.vac-result-count {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--vac-muted);
  font-variant-numeric: tabular-nums;
}

.vac-list-message {
  padding: 20px;
  border: 1px solid var(--vac-border);
  border-radius: 16px;
}

.vac-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.vac-row {
  position: relative;
  background: var(--vac-cream);
  border: 1px solid var(--vac-border);
  border-radius: 18px;
  padding: 20px 22px;
  overflow-wrap: anywhere;
}

.vac-row:hover {
  border-color: var(--vac-border-hover);
}

.vac-row:has(a:focus-visible) {
  outline: 2px solid var(--vac-brand);
  outline-offset: 2px;
}

.vac-row-sponsored {
  border-color: var(--vac-brand-light);
  box-shadow: 0 0 0 1px oklch(0.78 0.14 130 / 0.20);
}

.vac-row-titleline {
  display: flex;
  align-items: baseline;
  gap: 4px 12px;
  flex-wrap: wrap;
  padding-inline-end: 16px;
}

.vac-row-title {
  font-family: var(--ed-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 19px;
  line-height: 1.3;
  color: var(--vac-ink);
  margin: 0;
}

.vac-row-title a {
  color: inherit;
}

.vac-row-title a::before {
  content: "";
  position: absolute;
  inset-block-start: 28px;
  inset-inline-end: 22px;
  width: 7px;
  height: 7px;
  border-block-start: 1.5px solid var(--vac-muted);
  border-inline-end: 1.5px solid var(--vac-muted);
  transform: rotate(45deg);
}

.vac-row-title a:hover {
  color: var(--vac-brand-hover);
}

.vac-row-posted {
  font-size: 12px;
  color: var(--vac-muted);
  font-variant-numeric: tabular-nums;
}

.vac-row-employer {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--vac-muted);
}

.vac-row-employer-muted {
  font-weight: 400;
}

.vac-row-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vac-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--vac-border);
  background: var(--vac-surface);
  color: var(--vac-muted);
  line-height: 1.4;
}

.vac-chip-neutral {
  background: var(--vac-surface);
  color: #475569;
  border-color: var(--vac-border);
}

.vac-chip-location {
  color: #334155;
}

.vac-chip-salary {
  background: var(--vac-cream);
  color: var(--vac-ink);
  border-color: var(--vac-border-hover);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.vac-chip-match-high {
  background: oklch(0.93 0.06 150);
  color: oklch(0.42 0.12 150);
  border-color: oklch(0.84 0.10 150);
}

.vac-chip-match-mid {
  background: oklch(0.94 0.06 85);
  color: oklch(0.47 0.11 75);
  border-color: oklch(0.86 0.09 80);
}

.vac-chip-direct {
  background: oklch(0.93 0.05 245);
  color: oklch(0.46 0.14 255);
  border-color: oklch(0.85 0.08 245);
}

.vac-chip-sponsor {
  background: oklch(0.91 0.10 124);
  color: oklch(0.40 0.11 130);
  border-color: oklch(0.82 0.13 126);
}

#vacancies-list.htmx-request {
  opacity: 0.5;
  pointer-events: none;
}

/* =====================================================================
   Editorial system tokens ("The Prism Brief") — migration target.
   See DESIGN.md. New/migrated surfaces use --ed-* over legacy navy/slate.
   ===================================================================== */
:root {
  --ed-cream: oklch(0.975 0.004 250);
  --ed-ink: oklch(0.20 0.012 250);
  --ed-ink-muted: oklch(0.45 0.010 250);
  --ed-cream-border: oklch(0.90 0.005 250);
  --ed-dark: oklch(0.175 0.010 250);
  --ed-dark-fg: oklch(0.955 0.005 250);
  --ed-dark-muted: oklch(0.70 0.012 250);
  --ed-dark-border: oklch(0.28 0.010 250);
  --ed-sage: oklch(0.78 0.14 130);
  --ed-sage-bright: oklch(0.85 0.16 125);
  --ed-success: oklch(0.72 0.17 150);
  --ed-warning: oklch(0.76 0.14 75);
  --ed-error: oklch(0.63 0.21 25);
  --ed-display: "Spectral", Georgia, "Iowan Old Style", serif;
}

/* Editorial utility classes — shared across migrated surfaces */
.ed-page {
  background: var(--ed-cream);
}

.ed-surface {
  background: var(--ed-cream);
}

.ed-surface-2 {
  background: oklch(0.955 0.004 250);
}

.ed-display {
  font-family: var(--ed-display);
  color: var(--ed-ink);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.ed-display em {
  font-style: italic;
  font-weight: 500;
  color: oklch(0.48 0.13 129);
}

/* Editorial semantic alerts — warm tinted fields, full borders, no side-stripes */
.ed-alert-success {
  background: oklch(0.96 0.035 150);
  border: 1px solid oklch(0.86 0.06 150);
  color: oklch(0.42 0.10 150);
}

.ed-alert-warning {
  background: oklch(0.96 0.05 88);
  border: 1px solid oklch(0.86 0.08 82);
  color: oklch(0.46 0.08 70);
}

.ed-alert-error {
  background: oklch(0.96 0.04 25);
  border: 1px solid oklch(0.86 0.07 25);
  color: oklch(0.48 0.16 25);
}

.ed-alert-info {
  background: oklch(0.95 0.03 250);
  border: 1px solid oklch(0.86 0.05 255);
  color: oklch(0.42 0.10 255);
}

/* Semantic chips — set bg/text/border-color only; shape comes from rounded-* utility */
.ed-chip-success { background: oklch(0.93 0.05 150); color: oklch(0.43 0.12 150); border-color: oklch(0.86 0.06 150); }
.ed-chip-warning { background: oklch(0.94 0.06 88); color: oklch(0.46 0.09 70); border-color: oklch(0.86 0.08 82); }
.ed-chip-error   { background: oklch(0.94 0.05 25); color: oklch(0.50 0.16 25); border-color: oklch(0.86 0.07 25); }
.ed-chip-info    { background: oklch(0.93 0.035 250); color: oklch(0.45 0.09 255); border-color: oklch(0.85 0.05 255); }
.ed-chip-neutral { background: oklch(0.955 0.004 250); color: var(--ed-ink-muted); border-color: var(--ed-cream-border); }

/* Solid semantic fills — status dots, progress bars */
.ed-fill-success { background: var(--ed-success); }
.ed-fill-warning { background: var(--ed-warning); }
.ed-fill-error   { background: var(--ed-error); }
.ed-fill-muted   { background: oklch(0.72 0.011 250); }

/* Soft semantic backgrounds — highlight rows */
.ed-bg-info-soft { background: oklch(0.95 0.025 250); }
.ed-bg-warning-soft { background: oklch(0.96 0.04 88); }
.ed-bg-error-soft { background: oklch(0.96 0.03 25); }

/* Semantic border colors — pair with border / border-2 utilities */
.ed-border-success { border-color: oklch(0.82 0.08 150); }
.ed-border-warning { border-color: oklch(0.82 0.10 82); }
.ed-border-error { border-color: oklch(0.82 0.09 25); }

/* Semantic text */
.ed-text-success { color: oklch(0.50 0.13 150); }
.ed-text-warning { color: oklch(0.52 0.10 70); }
.ed-text-error   { color: oklch(0.52 0.18 25); }
.ed-hover-error:hover { color: var(--ed-error); }

/* Ghost danger button — neutral at rest, error tint on hover */
.ed-danger-ghost:hover { color: var(--ed-error); border-color: oklch(0.82 0.09 25); background: oklch(0.96 0.03 25); }
.ed-focus-error:focus-visible { outline: none; box-shadow: 0 0 0 2px oklch(0.63 0.21 25 / 0.4); }

/* Inline content link — sage-ink, brand voice */
.ed-link { color: oklch(0.48 0.13 129); transition: color 200ms ease; }
.ed-link:hover { color: var(--ed-ink); }

.ed-input {
  width: 100%;
  border: 1px solid var(--ed-cream-border);
  background: var(--ed-cream);
  color: var(--ed-ink);
  border-radius: 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ed-input::placeholder {
  color: oklch(0.58 0.011 250);
}

.ed-input:focus {
  outline: none;
  border-color: var(--ed-sage);
  box-shadow: 0 0 0 4px oklch(0.78 0.14 130 / 0.16);
}

.ed-bar-track {
  background: oklch(0.92 0.005 250);
}

.ed-bar-fill {
  background: var(--ed-sage);
}

.ed-chart-bar {
  background: oklch(0.20 0.012 250 / 0.22);
}

.ed-text-ink {
  color: var(--ed-ink);
}

.ed-text-muted {
  color: var(--ed-ink-muted);
}

.ed-border {
  border: 1px solid var(--ed-cream-border);
}

.ed-border-b {
  border-bottom: 1px solid var(--ed-cream-border);
}

.ed-border-t {
  border-top: 1px solid var(--ed-cream-border);
}

.ed-border-y {
  border-top: 1px solid var(--ed-cream-border);
  border-bottom: 1px solid var(--ed-cream-border);
}

.ed-border-dashed {
  border-color: var(--ed-cream-border);
}

.ed-glass {
  background: oklch(0.975 0.004 250 / 0.95);
}

.ed-badge {
  background: var(--ed-sage);
  color: var(--ed-ink);
}

.ed-ink-box {
  background: var(--ed-ink);
}

.ed-btn-ink {
  background: var(--ed-ink);
  color: var(--ed-cream);
  transition: filter 200ms ease, transform 200ms ease;
}

.ed-btn-ink:hover {
  filter: brightness(1.15);
}

.ed-chip-link {
  border: 1px solid var(--ed-cream-border);
  background: oklch(0.955 0.004 250);
  color: var(--ed-ink);
  transition: border-color 200ms ease, background 200ms ease;
}

.ed-chip-link:hover {
  border-color: var(--ed-sage);
  background: var(--ed-cream);
}

.ed-pager {
  border: 1px solid var(--ed-cream-border);
  background: var(--ed-cream);
  color: var(--ed-ink);
}

.ed-pager:hover {
  border-color: oklch(0.84 0.006 250);
  background: oklch(0.955 0.004 250);
}

.ed-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ed-cream-border);
  background: var(--ed-cream);
  color: var(--ed-ink);
  border-radius: 9999px;
  transition: border-color 200ms ease, background 200ms ease;
}

.ed-btn-outline:hover {
  border-color: var(--ed-ink);
  background: oklch(0.955 0.004 250);
}

.ed-btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ed-cream);
  color: var(--ed-ink);
  transition: filter 200ms ease, transform 200ms ease;
}

.ed-btn-cream:hover {
  filter: brightness(1.05);
}

.ed-card {
  border: 1px solid var(--ed-cream-border);
  background: var(--ed-cream);
  transition: border-color 150ms ease;
}

.ed-card:hover {
  border-color: oklch(0.84 0.006 250);
}

.ed-link-muted {
  color: var(--ed-ink-muted);
  transition: color 200ms ease;
}

.ed-link-muted:hover {
  color: var(--ed-ink);
}

.ed-dotgrid {
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 28px 28px;
}

.ed-wordmark {
  font-family: var(--ed-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ed-ink);
}

.ed-wordmark em {
  font-style: italic;
  font-weight: 500;
  color: oklch(0.48 0.13 129);
}

.ed-control {
  border: 1px solid var(--ed-cream-border);
  background: var(--ed-cream);
  color: var(--ed-ink);
  border-radius: 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.ed-control:hover { border-color: oklch(0.84 0.006 250); }
.ed-control:focus { outline: none; border-color: var(--ed-sage); box-shadow: 0 0 0 4px oklch(0.78 0.14 130 / 0.16); }

/* Accent text — sage-ink, "this matters" emphasis on cream */
.ed-accent { color: oklch(0.48 0.13 129); }
.ed-hover-accent:hover { color: oklch(0.48 0.13 129); }
.ed-row-hover:hover { background: oklch(0.955 0.004 250); }
.group:hover .ed-group-accent { color: oklch(0.48 0.13 129); }
.ed-text-faint { color: oklch(0.62 0.011 250); }
.ed-on-ink { color: var(--ed-cream); }

/* Solid fills for bars/dots that were navy */
.ed-fill-ink { background: var(--ed-ink); }
.ed-fill-accent { background: var(--ed-sage); }

/* Ink rules for editorial emphasis (hero dividers) */
.ed-border-ink { border-color: var(--ed-ink); }
.ed-border-faint { border-color: oklch(0.84 0.006 250); }
.ed-divide-y > * + * { border-color: var(--ed-cream-border); }

/* Tab links — sage underline on active */
.ed-tab {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: var(--ed-ink-muted);
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.ed-tab:hover { color: var(--ed-ink); }
.ed-tab-active { color: var(--ed-ink); border-bottom-color: var(--ed-sage); }

/* Filter pills — ink fill when active */
.ed-fpill {
  border: 1px solid var(--ed-cream-border);
  background: var(--ed-cream);
  color: var(--ed-ink-muted);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.ed-fpill:hover { border-color: oklch(0.84 0.006 250); color: var(--ed-ink); }
.ed-fpill-active,
.ed-fpill-active:hover {
  background: var(--ed-ink);
  color: var(--ed-cream);
  border-color: var(--ed-ink);
}

/* Multi-select chips (practice areas) — ink fill when checked */
.ed-areachip {
  cursor: pointer;
  border: 1px solid var(--ed-cream-border);
  background: var(--ed-cream);
  color: var(--ed-ink);
  transition: color 200ms ease, border-color 200ms ease, background 200ms ease;
}
.ed-areachip:hover { border-color: oklch(0.84 0.006 250); }
.ed-areachip:has(:checked) { background: var(--ed-ink); color: var(--ed-cream); border-color: var(--ed-ink); }

/* Editorial nav links */
.nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ed-ink-muted);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}

.nav-link:hover {
  color: var(--ed-ink);
}

.nav-link-active {
  color: var(--ed-ink);
  border-bottom-color: var(--ed-sage);
}

.nav-mlink {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ed-ink-muted);
  border-radius: 12px;
  transition: color 200ms ease, background 200ms ease;
}

.nav-mlink:hover {
  color: var(--ed-ink);
  background: oklch(0.955 0.004 250);
}

.nav-mlink-active {
  color: var(--ed-ink);
  background: oklch(0.93 0.05 124);
}

/* =====================================================================
   Footer — editorial deep-ink face (first migrated surface)
   ===================================================================== */
.ftr {
  background: var(--ed-dark);
  color: var(--ed-dark-fg);
}

.ftr-wordmark {
  font-family: var(--ed-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ed-dark-fg);
}

.ftr-wordmark em {
  font-style: italic;
  font-weight: 500;
  color: var(--ed-sage-bright);
}

.ftr-tagline {
  color: var(--ed-dark-muted);
}

.ftr-mark {
  background: var(--ed-sage-bright);
  color: var(--ed-ink);
  padding: 0.02em 0.22em;
  border-radius: 3px;
  font-weight: 600;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ftr-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-dark-muted);
}

.ftr-link {
  color: var(--ed-dark-muted);
  transition: color 200ms ease;
}

.ftr-link:hover {
  color: var(--ed-sage-bright);
}

.ftr-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--ed-dark-border);
  color: var(--ed-dark-muted);
  transition: color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.ftr-icon:hover {
  color: var(--ed-dark-fg);
  border-color: var(--ed-dark-fg);
  transform: translateY(-1px);
}

.ftr-support {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ed-dark-border);
  border-radius: 9999px;
  padding: 10px 20px 10px 12px;
  transition: border-color 200ms ease, transform 200ms ease;
}

.ftr-support:hover {
  border-color: var(--ed-sage);
  transform: translateY(-1px);
}

.ftr-support-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: var(--ed-sage-bright);
  color: var(--ed-ink);
  flex: 0 0 auto;
}

.ftr-divider {
  border-top: 1px solid var(--ed-dark-border);
}

/* =====================================================================
   Candidate onboarding — deep-ink editorial face.
   The second first-class surface from DESIGN.md (employer-ink palette),
   used here for a focused full-screen wizard. High contrast: dark-fg on
   deep-ink. All color/contrast defined here so it never depends on the
   Tailwind purge cycle.
   ===================================================================== */
.cob-page {
  background: var(--ed-dark);
  color: var(--ed-dark-fg);
}
.cob-nav {
  background: oklch(0.175 0.010 250 / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ed-dark-border);
}
.cob-panel {
  background: oklch(0.205 0.011 250);
  border: 1px solid var(--ed-dark-border);
}
.cob-fg { color: var(--ed-dark-fg); }
.cob-muted { color: var(--ed-dark-muted); }
.cob-border { border-color: var(--ed-dark-border); }
.cob-display {
  font-family: var(--ed-display);
  color: var(--ed-dark-fg);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.cob-accent { color: var(--ed-sage-bright); }

.cob-progress { --profile-progress-track: oklch(0.27 0.010 250); --profile-progress-fill: var(--ed-sage-bright); }

.cob-step-done { background: var(--ed-sage-bright); color: var(--ed-ink); }
.cob-step-active { background: var(--ed-dark-fg); color: var(--ed-ink); }
.cob-step-pending {
  border: 1px solid var(--ed-dark-border);
  color: var(--ed-dark-muted);
}

.cob-input {
  width: 100%;
  background: oklch(0.155 0.010 250);
  border: 1px solid var(--ed-dark-border);
  color: var(--ed-dark-fg);
  border-radius: 12px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.cob-input::placeholder { color: oklch(0.52 0.011 250); }
.cob-input:focus {
  outline: none;
  border-color: var(--ed-sage);
  box-shadow: 0 0 0 4px oklch(0.78 0.14 130 / 0.20);
}

.cob-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a6' stroke-width='2'><path stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.cob-select option { background: oklch(0.175 0.010 250); color: var(--ed-dark-fg); }
.cob-input-error { border-color: oklch(0.66 0.20 25); }
.cob-input-error:focus {
  border-color: oklch(0.66 0.20 25);
  box-shadow: 0 0 0 4px oklch(0.63 0.21 25 / 0.22);
}

.cob-btn {
  background: var(--ed-cream);
  color: var(--ed-ink);
  border-radius: 9999px;
  transition: filter 200ms ease, transform 200ms ease;
}
.cob-btn:hover { filter: brightness(1.06); }
.cob-btn-outline {
  background: transparent;
  color: var(--ed-dark-fg);
  border: 1px solid var(--ed-dark-border);
  border-radius: 9999px;
  transition: border-color 200ms ease, background 200ms ease;
}
.cob-btn-outline:hover {
  border-color: var(--ed-dark-fg);
  background: oklch(0.23 0.011 250);
}

.cob-note {
  background: oklch(0.205 0.011 250);
  border: 1px solid var(--ed-dark-border);
  color: var(--ed-dark-muted);
}

/* Selectable option row (preferred areas) */
.cob-option {
  background: oklch(0.175 0.010 250);
  border: 1px solid var(--ed-dark-border);
  color: var(--ed-dark-fg);
  transition: border-color 200ms ease, background 200ms ease;
  cursor: pointer;
}
.cob-option:hover { border-color: oklch(0.42 0.010 250); }
.cob-option:has(input:checked) {
  border-color: var(--ed-sage-bright);
  background: oklch(0.31 0.07 128);
}
.cob-option input { accent-color: var(--ed-sage-bright); }

.cob-alert {
  background: oklch(0.27 0.07 28);
  border: 1px solid oklch(0.45 0.13 28);
  color: oklch(0.88 0.08 40);
}
.cob-error-text { color: oklch(0.80 0.15 35); }

.cob-success {
  background: oklch(0.27 0.06 132);
  border: 1px solid oklch(0.42 0.09 132);
}

/* =====================================================================
   Home hero (dual-mode landing) — global for hx-boost navigation.
   Moved out of home.html <style> so boosted navigation keeps styles.
   ===================================================================== */
:root {
  --hero-cream-bg: oklch(0.975 0.004 250);
  --hero-cream-fg: oklch(0.20 0.012 250);
  --hero-cream-muted: oklch(0.45 0.010 250);
  --hero-cream-border: oklch(0.90 0.005 250);
  --hero-cream-cta-bg: #1e3a5f;
  --hero-cream-cta-fg: oklch(0.975 0.004 250);

  --hero-dark-bg: oklch(0.175 0.010 250);
  --hero-dark-fg: oklch(0.955 0.005 250);
  --hero-dark-muted: oklch(0.70 0.012 250);
  --hero-dark-border: oklch(0.28 0.010 250);
  --hero-dark-cta-bg: oklch(0.975 0.004 250);
  --hero-dark-cta-fg: oklch(0.18 0.012 250);

  --hero-accent: oklch(0.78 0.14 130);
  --hero-toggle-active: oklch(0.85 0.16 125);

  --hero-display: "Spectral", Georgia, "Iowan Old Style", serif;
}

[data-view="candidates"] .home-themed { background: var(--hero-cream-bg); color: var(--hero-cream-fg); }
[data-view="employers"]  .home-themed { background: var(--hero-dark-bg);  color: var(--hero-dark-fg); }

[data-view="candidates"] .home-themed .hl-muted { color: var(--hero-cream-muted); }
[data-view="employers"]  .home-themed .hl-muted { color: var(--hero-dark-muted); }

[data-view="candidates"] .hl-pane-employer,
[data-view="employers"]  .hl-pane-candidate { display: none; }

/* Logo swaps with the theme: dark mark on cream, white mark on ink. */
[data-view="employers"]  .hl-logo-dark { display: none; }
[data-view="candidates"] .hl-logo-light { display: none; }

[data-view="candidates"] .hl-cta-primary {
  background: var(--hero-cream-cta-bg); color: var(--hero-cream-cta-fg);
}
[data-view="employers"] .hl-cta-primary {
  background: var(--hero-dark-cta-bg); color: var(--hero-dark-cta-fg);
}
.hl-cta-primary:hover { filter: brightness(1.05); }
.hl-pill-link.hl-employer-signup {
  min-height: 52px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  max-width: 100%;
}
.hl-employer-signup:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
.hl-employer-signup svg { flex-shrink: 0; }
.login-brand { flex-direction: column; background: var(--ed-dark); color: var(--ed-dark-fg); }
.login-brand .ed-dotgrid { opacity: 0.05; }
.login-brand-line { margin-block: auto; font: 700 clamp(2.25rem, 3.4vw, 3.25rem)/1.1 var(--ed-display); letter-spacing: -0.025em; }
.login-brand-line span { color: var(--ed-sage); }
.login-email-note { overflow-wrap: anywhere; }

.hl-toggle {
  display: inline-flex; align-items: center;
  padding: 4px; border-radius: 9999px;
  background: rgba(0,0,0,0.04);
  border: 0;
}
[data-view="candidates"] .home-themed .hl-toggle { background: rgba(20,25,40,0.05); }
[data-view="employers"]  .home-themed .hl-toggle { background: rgba(255,255,255,0.06); }

.hl-toggle button {
  padding: 7px 18px;
  font-size: 14px; font-weight: 500;
  border-radius: 9999px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: background 200ms cubic-bezier(0.22, 1, 0.36, 1), color 200ms;
}
.hl-toggle button.is-active {
  background: var(--hero-toggle-active);
  color: oklch(0.20 0.012 250);
}
@media (max-width: 374px) {
  .hl-home-nav-inner { gap: 8px; }
  .hl-home-nav-inner > a { flex: none; }
  .hl-home-nav-inner .hl-toggle button { padding-inline: 8px; }
}

.hl-display {
  font-family: var(--hero-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}
.hl-display em {
  font-style: italic;
  font-weight: 500;
  color: var(--hero-accent);
}
[data-view="candidates"] .home-themed .hl-display em {
  color: oklch(0.59 0.14 130);
}

.hl-poster {
  font-family: var(--hero-display);
  font-style: italic;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hl-poster span { display: block; }

/* Highlighted phrase (Prism-style sage/lime backdrop) */
.hl-mark {
  background: oklch(0.88 0.18 122);
  color: oklch(0.20 0.012 250);
  padding: 0.02em 0.22em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  font-weight: 600;
}
[data-view="employers"] .hl-mark {
  background: oklch(0.82 0.20 122);
}

.hl-input {
  background: transparent;
  border: 1px solid;
  border-radius: 9999px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  width: 100%;
  outline: none;
  transition: border-color 200ms;
}
[data-view="candidates"] .home-themed .hl-input { color: var(--hero-cream-fg); border-color: var(--hero-cream-border); }
[data-view="employers"]  .home-themed .hl-input { color: var(--hero-dark-fg);  border-color: var(--hero-dark-border); }
.hl-input::placeholder { color: currentColor; opacity: 0.45; }
.hl-input:focus { border-color: var(--hero-accent); }

.hl-pill-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 14px; font-weight: 600;
  transition: filter 200ms, transform 200ms;
}
.hl-pill-link:hover { transform: translateX(2px); }

.hl-landing-section {
  padding-block: 64px;
}
.hl-pane-employer > .hl-landing-section:first-child {
  padding-block-start: 40px;
}
#employer-cabinet .hl-app-shot-hero {
  margin-top: 1.5rem;
}
#employer-cabinet .hl-app-shots-grid {
  margin-top: 3rem;
}
.hl-app-shot-caption {
  margin-top: 1rem;
}
.hl-process {
  display: grid;
  gap: 40px;
}
.hl-section-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.hl-process-steps {
  display: grid;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hl-process-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}
.hl-step-number {
  font-family: var(--hero-display);
  font-size: 32px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hl-app-shot {
  margin: 0;
}
.hl-app-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  vertical-align: middle;
}
.hl-app-shots-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 1024px) {
  .hl-app-shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }
}
body:has(.hl-landing) .ftr-divider,
body:has(.hl-landing) .ftr-icon,
body:has(.hl-landing) .ftr-support {
  border: 0;
}
body:has(.hl-landing) .ftr-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.nav-main.home-themed .hl-pill-link {
  min-height: 36px;
  padding: 8px 16px;
}
.home-themed .hl-pill-link:focus-visible,
.home-themed .hl-toggle button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}
@media (min-width: 1024px) {
  .hl-pane-employer > .hl-landing-section:first-child {
    padding-block-start: 48px;
  }
  #employer-cabinet .hl-app-shot-hero {
    margin-top: 2rem;
  }
  #employer-cabinet .hl-app-shots-grid {
    margin-top: 4rem;
  }
  .hl-landing-section { padding-block: 96px; }
  .hl-process {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
  .hl-process-step { gap: 24px; }
  .hl-process-steps { gap: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-themed .hl-toggle button,
  .home-themed .hl-pill-link {
    transition: none !important;
  }
  .home-themed .hl-pill-link:hover { transform: none; }
}

/* Dot grid backdrop, very subtle */
.hl-dotgrid {
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.06;
}

/* Only the wide candidate hero displays the watercolor, faded behind the copy. */
@media (min-width: 1024px) {
  [data-view="candidates"] .hero-wash {
    background-image: var(--hero-wash-standard);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.12) 44%, #000 92%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.12) 44%, #000 92%);
    opacity: 0.55;
    mix-blend-mode: multiply;
  }
}
@media (min-width: 1600px), (min-width: 1024px) and (min-resolution: 2dppx) {
  [data-view="candidates"] .hero-wash {
    background-image: var(--hero-wash-wide);
  }
}

/* Vacancy description prose — parsed HH/LLM text rendered as semantic blocks
   (see internal/pkg/richtext). Body voice is DM Sans; measure capped per DESIGN.md. */
.vac-desc {
  max-width: 72ch;
}

.vac-desc > * + * {
  margin-top: 12px;
}

.vac-desc p {
  color: var(--ed-ink);
}

.vac-desc .vac-desc-heading {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ed-ink);
}

.vac-desc .vac-desc-heading + .vac-desc-list,
.vac-desc .vac-desc-heading + p {
  margin-top: 8px;
}

.vac-desc * + .vac-desc-heading {
  margin-top: 20px;
}

.vac-desc .vac-desc-list {
  list-style: none;
  padding: 0;
  margin-left: 2px;
}

.vac-desc .vac-desc-list li {
  position: relative;
  padding-left: 20px;
}

.vac-desc .vac-desc-list li + li {
  margin-top: 8px;
}

.vac-desc .vac-desc-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: var(--ed-ink-muted);
}

/* Admin description editor: plain-text toolbar + live preview
   (public/assets/scripts/description-editor.js). */
.desc-tools {
  display: inline-flex;
  gap: 6px;
}

.desc-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--ed-cream-border);
  border-radius: 9999px;
  background: transparent;
  color: var(--ed-ink);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.desc-tool svg {
  width: 14px;
  height: 14px;
  color: var(--ed-ink-muted);
}

.desc-tool:hover {
  border-color: var(--ed-ink-muted);
  background: oklch(0.955 0.004 250);
}

.desc-tool:focus-visible {
  outline: 2px solid var(--ed-ink);
  outline-offset: 2px;
}

.desc-input {
  min-height: 22rem;
  line-height: 1.6;
  resize: vertical;
}

.desc-preview {
  min-height: 22rem;
  max-height: 36rem;
  overflow-y: auto;
  padding: 18px 20px;
  border: 1px dashed var(--ed-cream-border);
  border-radius: 12px;
  background: var(--ed-cream);
}

.desc-preview .vac-desc-empty {
  color: var(--ed-ink-muted);
  font-size: 14px;
}

/* Admin vacancy form ("vf"): sections ruled like a brief, sticky save bar. */
.vf-main { max-width: 1120px; }
.vf-back { color: var(--ed-ink-muted); text-decoration: none; }
.vf-back:hover { color: var(--ed-ink); text-decoration: underline; text-underline-offset: 3px; }
.vf-links { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: none; }
.vf-links a { color: var(--ed-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--ed-cream-border); text-underline-offset: 4px; }
.vf-links a:hover { text-decoration-color: var(--ed-ink); }

.vf-section { padding: 28px 0; border-top: 1px solid var(--ed-cream-border); scroll-margin-top: 80px; }
.vf-link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--ed-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--ed-cream-border); text-underline-offset: 4px; cursor: pointer; }
.vf-link-btn:hover { text-decoration-color: var(--ed-ink); }
.vf-link-btn:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 2px; border-radius: 4px; }

.vf-saved { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; padding: 14px 18px; border-radius: 12px; background: oklch(0.72 0.17 150 / 0.12); color: var(--ed-ink); font-size: 14px; }
.vf-saved svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: oklch(0.52 0.14 150); }
.vf-saved p { margin: 0; }
.vf-saved a { color: var(--ed-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* Telegram + email tools under the form. */
.vf-share { display: grid; column-gap: 40px; }
@media (min-width: 1024px) {
  .vf-share { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.vf-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.tg-preview { padding: 14px 16px; border: 1px solid var(--ed-cream-border); border-radius: 12px; background: var(--ed-cream); font-size: 14px; line-height: 1.6; color: var(--ed-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.tg-preview a { text-decoration: underline; text-underline-offset: 3px; }
.vf-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }

.vf-label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--ed-ink); }
.vf-hint { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--ed-ink-muted); }
.vf-hint a { color: var(--ed-ink); text-decoration: underline; text-underline-offset: 3px; }
.vf-example { padding: 1px 6px; border-radius: 6px; background: oklch(0.945 0.005 250); font-size: 11.5px; color: var(--ed-ink); white-space: nowrap; }
.vf-error { margin: 6px 0 0; font-size: 12.5px; font-weight: 500; color: var(--ed-error); }
.adm-main .input-clean[aria-invalid="true"],
.adm-main .textarea[aria-invalid="true"] { border-color: var(--ed-error); background: oklch(0.63 0.21 25 / 0.04); }

.vf-grid { display: grid; gap: 16px; }
@media (min-width: 768px) {
  .vf-grid-title { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .vf-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vf-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .vf-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Description: text and preview side by side on wide screens. */
.vf-desc { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 1024px) {
  .vf-desc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.vf-desc-col { min-width: 0; }
.vf-desc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin-bottom: 6px; }
.vf-desc-head .vf-label { margin: 0; }

/* Practice areas as toggle pills. */
.vf-areas-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.area-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.area-pill { position: relative; }
.area-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.area-pill span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--ed-cream-border);
  border-radius: 9999px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ed-ink);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.area-pill:hover span { border-color: var(--ed-ink-muted); }
.area-pill input:checked + span { background: var(--ed-sage-bright); border-color: transparent; font-weight: 500; }
.area-pill input:focus-visible + span { outline: 2px solid var(--ed-ink); outline-offset: 2px; }
.area-pill.is-suggested span::after { content: ""; width: 5px; height: 5px; border-radius: 9999px; background: var(--ed-ink); }

/* Promotion: collapsed unless something is switched on. */
.vf-promo > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
.vf-promo > summary::-webkit-details-marker { display: none; }
.vf-promo > summary .adm-h2::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 12px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 150ms ease;
}
.vf-promo:not([open]) > summary .adm-h2::after { transform: translateY(-1px) rotate(-45deg); }
.vf-promo[open] > summary { margin-bottom: 16px; }
.vf-subhead { margin: 0; font-size: 15px; font-weight: 600; color: var(--ed-ink); }
.vf-hint-top { margin: 4px 0 12px; }
.vf-check { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; cursor: pointer; }
.vf-check input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; accent-color: var(--ed-ink); }
.vf-check-title { display: block; font-size: 14px; font-weight: 500; color: var(--ed-ink); }

/* Save bar: pinned to the viewport bottom while the form is on screen. */
.vf-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 -24px;
  padding: 14px 24px;
  background: oklch(0.975 0.004 250 / 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.vf-bar-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 13px; }
.vf-status { display: inline-flex; padding: 3px 10px; border: 1px solid var(--ed-cream-border); border-radius: 9999px; font-weight: 500; color: var(--ed-ink-muted); }
.vf-status.is-published { border-color: transparent; background: oklch(0.72 0.17 150 / 0.16); color: var(--ed-ink); }
.vf-status.is-closed { border-color: transparent; background: oklch(0.93 0.005 250); }
.vf-dirty { display: inline-flex; align-items: center; gap: 6px; color: var(--ed-ink-muted); }
.vf-dirty::before { content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--ed-warning); }
.vf-dirty[hidden] { display: none; }
.vf-bar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vf-bar-actions.is-reversed { flex-direction: row-reverse; }

/* ============================================================
   Admin shell — "The Desk". Editorial tokens, Operate-mode density.
   ============================================================ */
.adm-top-mark { font-size: 12px; letter-spacing: 0.06em; text-transform: lowercase; }
.adm-top .nav-link { padding: 6px 10px; }

.adm-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 40px;
  max-width: 80rem;
  margin: 0 auto;
  padding: 28px 24px 64px;
}
.adm-side { position: sticky; top: 76px; align-self: start; }
.adm-side-nav { display: flex; flex-direction: column; }
.adm-side-group { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.adm-side-group:first-child { margin-top: 0; }
.adm-side-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ed-ink-muted); padding: 0 12px 6px; margin: 0;
}
.adm-side-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 12px; border-radius: 9999px;
  color: var(--ed-ink-muted); font-size: 14px; font-weight: 500; line-height: 1.3;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.adm-side-link:hover { background: oklch(0.945 0.005 250); color: var(--ed-ink); }
.adm-side-link:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 2px; }
.adm-side-link.is-active { background: var(--ed-ink); color: var(--ed-dark-fg); }
.adm-count {
  min-width: 1.5rem; padding: 1px 7px; border-radius: 9999px; text-align: center;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.5;
}
.adm-count.is-hot { background: var(--ed-sage-bright); color: var(--ed-ink); }
.adm-count.is-muted { background: oklch(0.93 0.005 250); color: var(--ed-ink-muted); }
.adm-count.is-zero { color: oklch(0.72 0.011 250); }
.adm-side-link.is-active .adm-count.is-muted { background: oklch(0.30 0.012 250); color: var(--ed-dark-muted); }
.adm-side-link.is-active .adm-count.is-zero { color: var(--ed-dark-muted); }
.adm-side-stat { margin: 24px 12px 0; padding-top: 16px; border-top: 1px solid var(--ed-cream-border); display: flex; flex-direction: column; gap: 2px; }
.adm-side-stat-value { font-family: var(--ed-display); font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; color: var(--ed-ink); font-variant-numeric: tabular-nums; }
.adm-side-stat-label { font-size: 12px; color: var(--ed-ink-muted); }

@media (max-width: 1023px) {
  .adm-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 16px 16px 48px; }
  .adm-side { position: static; margin: 0 -16px; padding: 0 16px; }
  .adm-side-nav { flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .adm-side-nav::-webkit-scrollbar { display: none; }
  .adm-side-group { flex-direction: row; margin-top: 0; gap: 4px; flex-shrink: 0; }
  .adm-side-group + .adm-side-group { padding-left: 8px; border-left: 1px solid var(--ed-cream-border); margin-left: 4px; }
  .adm-side-kicker { display: none; }
  .adm-side-link { white-space: nowrap; padding: 6px 12px; font-size: 13px; }
  .adm-side-stat { display: none; }
}

/* Page header */
.adm-head { margin-bottom: 28px; }
.adm-date { font-size: 13px; color: var(--ed-ink-muted); margin: 0 0 6px; text-transform: lowercase; }
.adm-h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; margin: 0; letter-spacing: -0.025em; }
.adm-lede { margin: 8px 0 0; font-size: 15px; color: var(--ed-ink-muted); max-width: 60ch; }
.adm-section { margin-top: 36px; }
.adm-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.adm-h2 { font-family: var(--ed-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--ed-ink); }
.adm-note { font-size: 13px; color: var(--ed-ink-muted); }

/* Queue rows */
.adm-queue { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ed-cream-border); }
.adm-queue-row {
  display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--ed-cream-border);
  transition: background-color 150ms ease;
}
.adm-queue-row:hover { background: oklch(0.96 0.004 250); }
.adm-queue-count { font-family: var(--ed-display); font-size: 1.75rem; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ed-ink); text-align: right; }
.adm-queue-row.is-empty .adm-queue-count { color: oklch(0.78 0.008 250); }
.adm-queue-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adm-queue-title { font-weight: 600; font-size: 15px; color: var(--ed-ink); text-decoration: none; }
.adm-queue-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.adm-queue-row.is-empty .adm-queue-title { color: var(--ed-ink-muted); font-weight: 500; }
.adm-queue-hint { font-size: 13px; color: var(--ed-ink-muted); }
.adm-queue-cta { display: inline-flex; align-items: center; gap: 4px; border-radius: 9999px; padding: 8px 16px; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.adm-queue-cta-empty { color: oklch(0.72 0.011 250); font-weight: 500; padding-right: 8px; }
@media (max-width: 640px) {
  .adm-queue-row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .adm-queue-cta { grid-column: 2; justify-self: start; }
  .adm-queue-cta-empty { display: none; }
}

/* Pulse panels */
.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .adm-grid { grid-template-columns: minmax(0, 1fr); } }
.adm-panel { border: 1px solid var(--ed-cream-border); border-radius: 18px; padding: 20px 22px 18px; display: flex; flex-direction: column; min-width: 0; }
.adm-panel-title { font-size: 15px; font-weight: 600; margin: 0 0 12px; color: var(--ed-ink); }
.adm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.adm-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--ed-cream-border); }
.adm-tab { padding: 0 12px 10px; margin-bottom: -1px; font-size: 14px; text-decoration: none; }
.adm-tab:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 2px; border-radius: 4px; }
.adm-overview { margin-bottom: 20px; }
.adm-kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .adm-kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .adm-kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.adm-kpi dt { font-size: 12px; color: var(--ed-ink-muted); margin: 0; }
.adm-kpi dd { margin: 2px 0 0; display: flex; align-items: baseline; gap: 8px; }
.adm-kpi-value { font-family: var(--ed-display); font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ed-ink); }
.adm-delta { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 9999px; border: 1px solid transparent; }
.adm-delta.is-up { background: oklch(0.93 0.05 150); color: oklch(0.40 0.12 150); }
.adm-delta.is-down { background: oklch(0.94 0.05 25); color: oklch(0.48 0.16 25); }
.adm-delta.is-flat { color: oklch(0.70 0.011 250); }
.adm-sub { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ed-ink-muted); margin: 18px 0 8px; }
.adm-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ed-ink); margin: 14px 0 0; }
.adm-facts b { font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-panel-link { margin-top: auto; padding-top: 16px; font-size: 13px; font-weight: 600; color: var(--ed-ink); text-decoration: none; align-self: flex-start; }
.adm-panel-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.adm-empty { font-size: 13px; color: var(--ed-ink-muted); margin: 8px 0 0; }

.adm-bars-wrap { margin: 16px 0 0; }
.adm-bars { display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.adm-bar { flex: 1 1 0; position: relative; height: 100%; min-width: 0; }
.adm-bar-fill { position: absolute; inset-inline: 0; bottom: 0; border-radius: 3px 3px 0 0; }
.adm-bars-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ed-cream-border); font-size: 11px; color: oklch(0.62 0.011 250); }

.adm-top { list-style: none; margin: 0; padding: 0; }
.adm-top-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid var(--ed-cream-border); }
.adm-top-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-top-title { font-size: 14px; font-weight: 500; color: var(--ed-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-top-title:hover { text-decoration: underline; text-underline-offset: 4px; }
.adm-top-meta { font-size: 12px; color: var(--ed-ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-top-track { display: block; height: 3px; border-radius: 2px; background: oklch(0.93 0.005 250); overflow: hidden; }
.adm-top-fill { display: block; height: 100%; background: var(--ed-ink); }
.adm-top-nums { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-top-nums b { font-weight: 600; }

.adm-pipeline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.adm-pipeline li { font-size: 13px; padding: 4px 10px; border: 1px solid var(--ed-cream-border); border-radius: 9999px; color: var(--ed-ink); }
.adm-pipeline li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-pipeline li.is-zero { color: oklch(0.66 0.011 250); border-style: dashed; }

.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th { font-weight: 600; color: var(--ed-ink-muted); text-align: left; padding: 6px 0; border-bottom: 1px solid var(--ed-cream-border); font-size: 12px; }
.adm-table td { padding: 7px 0; border-bottom: 1px solid var(--ed-cream-border); }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* System list */
.adm-system { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ed-cream-border); }
.adm-system li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 12px 4px; border-bottom: 1px solid var(--ed-cream-border); font-size: 14px; line-height: 1.5; }
.adm-system li b { font-weight: 600; }
.adm-dot { width: 10px; height: 10px; border-radius: 9999px; margin-top: 6px; }
.adm-sys-link { font-size: 13px; font-weight: 600; color: var(--ed-ink); text-decoration: none; white-space: nowrap; }
.adm-sys-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Legacy admin pages inherit the editorial look through the shell.
   Scoped so nothing outside /admin changes. */
.adm-main .card-clean { background: var(--ed-cream); border: 1px solid var(--ed-cream-border); border-radius: 18px; box-shadow: none; }
.adm-main .card-clean:hover { box-shadow: none; transform: none; border-color: var(--ed-cream-border); }
.adm-main .btn-brand { background: var(--ed-ink); color: var(--ed-cream); border-color: var(--ed-ink); border-radius: 9999px; }
.adm-main .btn-brand:hover { background: var(--ed-ink); filter: brightness(1.15); }
.adm-main .btn-brand-outline { background: transparent; color: var(--ed-ink); border: 1px solid var(--ed-cream-border); border-radius: 9999px; }
.adm-main .btn-brand-outline:hover { background: oklch(0.955 0.004 250); border-color: oklch(0.80 0.008 250); color: var(--ed-ink); }
.adm-main .input-clean, .adm-main .select { border-color: var(--ed-cream-border); background: transparent; color: var(--ed-ink); border-radius: 12px; }
.adm-main .input-clean:focus, .adm-main .select:focus { border-color: var(--ed-sage); box-shadow: 0 0 0 4px oklch(0.78 0.14 130 / 0.16); outline: none; }
.adm-main .table-clean thead { background: oklch(0.955 0.004 250); }
.adm-main .table-clean thead th { color: var(--ed-ink-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.adm-main .table-clean tbody tr { border-color: var(--ed-cream-border); }
.adm-main .table-clean tbody tr:hover { background: oklch(0.96 0.004 250); }
.adm-main .bg-white { background-color: var(--ed-cream); }
.adm-main .bg-gray-50 { background-color: oklch(0.955 0.004 250); }
.adm-main .bg-gray-100 { background-color: oklch(0.93 0.005 250); }
.adm-main .bg-gray-900 { background-color: var(--ed-ink); }
.adm-main .border-gray-100, .adm-main .border-gray-200, .adm-main .border-gray-300, .adm-main .border-slate-200 { border-color: var(--ed-cream-border); }
.adm-main .border-gray-900 { border-color: var(--ed-ink); }
.adm-main .text-gray-900, .adm-main .text-gray-800 { color: var(--ed-ink); }
.adm-main .text-gray-700, .adm-main .text-gray-600, .adm-main .text-gray-500 { color: var(--ed-ink-muted); }
.adm-main .text-gray-400, .adm-main .text-gray-300 { color: oklch(0.72 0.011 250); }
.adm-main .rounded-xl { border-radius: 18px; }
.adm-main h1.text-2xl { font-family: var(--ed-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.adm-main .hover\:text-orange-500:hover { color: var(--ed-ink); text-decoration: underline; text-underline-offset: 4px; }
.adm-main .bg-orange-100 { background-color: oklch(0.93 0.08 122); }
.adm-main .text-orange-600 { color: oklch(0.40 0.10 130); }
.adm-main .bg-blue-50 { background-color: oklch(0.955 0.02 250); }
.adm-main .text-blue-700, .adm-main .text-blue-800 { color: var(--ed-ink); }
.adm-main .border-blue-200 { border-color: var(--ed-cream-border); }

/* Outreach admin page (own stylesheet) joins the same shell */
.adm-shell .oa-content { min-width: 0; }

/* ============================================================
   /rabota-yuristom — free salary estimator
   ============================================================ */
.rt { color: var(--ed-ink); }
.rt-kicker,
.rt-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-ink-muted);
}
.rt-h1 {
  font-family: var(--ed-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.rt-h1 em { font-style: italic; font-weight: 500; color: oklch(0.48 0.13 129); }
.rt-lead { font-size: 1.0625rem; line-height: 1.6; color: var(--ed-ink-muted); max-width: 60ch; }
.rt-h2 {
  font-family: var(--ed-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.rt-fields { display: grid; gap: 0.875rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .rt-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rt-field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.rt-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 0 2.75rem 0 1.125rem;
  border-radius: 9999px;
  font-size: 1rem; /* ≥16px: no iOS zoom on focus */
  text-overflow: ellipsis;
  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='%23585f69' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.125rem center;
}

.rt-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (min-width: 640px) { .rt-levels { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rt-level { position: relative; min-width: 0; }
.rt-level input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.rt-level span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--ed-cream-border);
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ed-ink-muted);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.rt-level:hover span { border-color: oklch(0.84 0.006 250); color: var(--ed-ink); }
.rt-level input:checked + span {
  background: oklch(0.85 0.16 125);
  border-color: oklch(0.85 0.16 125);
  color: var(--ed-ink);
  font-weight: 600;
}
.rt-level input:focus-visible + span { box-shadow: 0 0 0 4px oklch(0.78 0.14 130 / 0.24); }

.rt-result {
  border: 1px solid var(--ed-cream-border);
  border-radius: 24px;
  padding: 1.5rem 1.25rem;
  background: oklch(0.985 0.003 250);
  transition: opacity 150ms ease;
}
@media (min-width: 640px) { .rt-result { padding: 2rem; } }
.rt-result.htmx-request { opacity: 0.55; }
.rt-scope { font-size: 0.9375rem; color: var(--ed-ink-muted); }
.rt-median {
  font-family: var(--ed-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.rt-median-cap { margin-top: 0.5rem; font-size: 0.9375rem; color: var(--ed-ink-muted); }
.rt-median-cap strong { color: var(--ed-ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.rt-track {
  position: relative;
  height: 10px;
  border-radius: 9999px;
  background: oklch(0.93 0.004 250);
}
.rt-band { position: absolute; top: 0; bottom: 0; border-radius: 9999px; background: oklch(0.88 0.18 122); }
.rt-tick {
  position: absolute;
  top: -5px;
  width: 3px;
  height: 20px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--ed-ink);
}
.rt-track-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ed-ink-muted);
  font-variant-numeric: tabular-nums;
}

.rt-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rt-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--ed-cream-border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  color: var(--ed-ink-muted);
  font-variant-numeric: tabular-nums;
}
.rt-chip-up { color: var(--ed-ink); border-color: oklch(0.78 0.14 130 / 0.6); }
.rt-note { font-size: 0.8125rem; color: oklch(0.45 0.09 75); }

.rt-ladder-row {
  display: grid;
  grid-template-columns: 6.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.rt-ladder-name { color: var(--ed-ink-muted); white-space: nowrap; }
.rt-ladder-row.is-selected .rt-ladder-name { color: var(--ed-ink); font-weight: 600; }
.rt-ladder-bar { height: 6px; border-radius: 9999px; background: oklch(0.93 0.004 250); overflow: hidden; }
.rt-ladder-bar span { display: block; height: 100%; border-radius: inherit; background: oklch(0.70 0.010 250); }
.rt-ladder-row.is-selected .rt-ladder-bar span { background: var(--ed-ink); }
.rt-ladder-val { font-variant-numeric: tabular-nums; color: var(--ed-ink); white-space: nowrap; }
.rt-mark {
  background: oklch(0.88 0.18 122);
  color: var(--ed-ink);
  border-radius: 3px;
  padding: 0.02em 0.22em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.rt-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 56px;
  padding: 0 1.625rem;
  border-radius: 9999px;
  font-family: var(--ed-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.125rem;
}
@media (min-width: 640px) { .rt-cta { display: inline-flex; width: auto; } }
.rt-cta svg { transition: transform 200ms ease; }
.rt-cta:hover svg { transform: translateX(2px); }
.rt-cta-cap { font-size: 0.8125rem; color: var(--ed-ink-muted); }

.rt-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 40px;
  padding: 0 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.rt-faq { border-top: 1px solid var(--ed-cream-border); }
.rt-faq-item { border-bottom: 1px solid var(--ed-cream-border); }
.rt-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
}
.rt-faq-item summary::-webkit-details-marker { display: none; }
.rt-faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--ed-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ed-ink-muted);
  transition: transform 200ms ease;
}
.rt-faq-item[open] summary::after { transform: rotate(45deg); }
.rt-faq-item p { padding: 0 0 1.25rem; font-size: 0.9375rem; line-height: 1.65; color: var(--ed-ink-muted); max-width: 68ch; }

@media (prefers-reduced-motion: reduce) {
  .rt-result, .rt-level span, .rt-cta svg, .rt-faq-item summary::after { transition: none; }
}

/* /zarplata-yurista — programmatic salary pages (extends .rt-*) */
.sp-points { display: grid; gap: 0.75rem; }
.sp-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 68ch;
}
.sp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: oklch(0.85 0.16 125);
}
.sp-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.sp-table thead th {
  padding: 0 0 0.625rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ed-ink-muted);
  border-bottom: 1px solid var(--ed-cream-border);
}
.sp-table thead th:last-child, .sp-table td { text-align: right; }
.sp-table tbody th, .sp-table td {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--ed-cream-border);
  vertical-align: top;
}
.sp-table tbody th { font-weight: 500; text-align: left; padding-right: 1rem; }
.sp-table td { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.sp-row-link { color: var(--ed-ink); transition: color 200ms ease; }
.sp-row-link:hover { color: oklch(0.48 0.13 129); }
.sp-row-bar { display: block; margin-top: 0.5rem; height: 4px; border-radius: 9999px; background: oklch(0.93 0.004 250); overflow: hidden; }
.sp-row-bar span { display: block; height: 100%; border-radius: inherit; background: oklch(0.70 0.010 250); }
.sp-row-n { display: block; margin-top: 0.25rem; font-size: 0.75rem; font-weight: 400; color: var(--ed-ink-muted); }

/* =====================================================================
   HelLaw Detector landing (/monitoring-zakonodatelstva).
   Deep-ink face of the Prism Brief, carrying the bot's own sub-brand:
   radar blue for the sweep, a yellow highlighter instead of sage (it
   matches the bot avatar and the launch carousel). Same rules apply:
   Spectral speaks, DM Sans works, the highlighter stays rare.
   ===================================================================== */
.lb-page {
  --lb-bg: var(--ed-dark);
  --lb-surface: oklch(0.225 0.012 255);
  --lb-surface-2: oklch(0.34 0.014 255);
  --lb-fg: var(--ed-dark-fg);
  --lb-muted: var(--ed-dark-muted);
  --lb-border: var(--ed-dark-border);
  --lb-ring: oklch(0.38 0.014 255);
  --lb-blue: oklch(0.6 0.19 262);
  --lb-blue-bright: oklch(0.7 0.16 258);
  --lb-yellow: oklch(0.92 0.17 103);
  --lb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--lb-bg);
  color: var(--lb-fg);
}

.lb { overflow-x: clip; }

.lb-wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
@media (min-width: 640px) { .lb-wrap { padding-left: 2rem; padding-right: 2rem; } }

/* --- nav --- */
.lb-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.175 0.010 250 / 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lb-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.lb-nav-logo { display: inline-flex; align-items: center; }
.lb-nav-links { display: none; gap: 2rem; }
@media (min-width: 768px) { .lb-nav-links { display: flex; } }
.lb-nav-link {
  font-size: 0.875rem;
  color: var(--lb-muted);
  transition: color 200ms ease;
}
.lb-nav-link:hover { color: var(--lb-fg); }

/* --- type --- */
.lb-h1 {
  font-family: var(--ed-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--lb-fg);
  text-wrap: balance;
  isolation: isolate;
}
.lb-h2 em {
  font-style: italic;
  font-weight: 500;
}

.lb-h2 {
  font-family: var(--ed-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: balance;
}
.lb-h3 {
  font-family: var(--ed-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-top: 1rem;
  text-wrap: balance;
}
.lb-lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--lb-muted);
}
.lb-text {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lb-muted);
}
.lb-feature-copy .lb-text { margin-top: 1rem; }
.lb-link {
  color: var(--lb-fg);
  text-decoration: underline;
  text-decoration-color: oklch(0.6 0.19 262 / 0.7);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}
.lb-link:hover { text-decoration-color: var(--lb-yellow); }

.lb-mark {
  /* Painted under the neighbouring lines (parent isolates), and trimmed to the
     glyph band so it never cuts into the line above or below. */
  position: relative;
  z-index: -1;
  background: linear-gradient(transparent 0.22em, var(--lb-yellow) 0.22em, var(--lb-yellow) calc(100% - 0.12em), transparent calc(100% - 0.12em));
  color: var(--ed-ink);
  padding: 0 0.14em;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- buttons --- */
.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 16px 26px;
  border-radius: 9999px;
  background: var(--lb-fg);
  color: var(--ed-ink);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 220ms var(--lb-ease), filter 200ms ease, box-shadow 220ms ease;
}
.lb-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 0 0 5px oklch(0.6 0.19 262 / 0.28);
}
.lb-btn:active { transform: scale(0.98); }
.lb-btn:focus-visible { outline: 2px solid var(--lb-yellow); outline-offset: 3px; }
.lb-btn .lb-tg { color: var(--lb-blue); flex: 0 0 auto; }
.lb-btn .lb-arrow { transition: transform 220ms var(--lb-ease); }
.lb-btn:hover .lb-arrow { transform: translateX(3px); }
.lb-btn-sm { padding: 9px 16px 9px 13px; font-size: 0.875rem; gap: 0.45rem; }
.lb-btn-sm .lb-tg { width: 17px; height: 17px; }

.lb-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}
.lb-cta-cap { font-size: 0.8125rem; line-height: 1.5; color: var(--lb-muted); }

.lb-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.25rem;
}
.lb-scope li {
  font-size: 0.8125rem;
  color: var(--lb-muted);
  border: 1px solid var(--lb-border);
  border-radius: 9999px;
  padding: 6px 14px;
}

/* --- hero --- */
.lb-hero {
  position: relative;
  padding: 3rem 0 4rem;
}
@media (min-width: 1024px) { .lb-hero { padding: 4.5rem 0 6rem; } }
.lb-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(oklch(0.955 0.005 250 / 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
}
.lb-hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .lb-hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 2rem; }
}
.lb-hero-copy { min-width: 0; }
.lb-lead { max-width: 30rem; }
.lb-hero-visual {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding-bottom: 5.5rem;
}
@media (min-width: 1024px) { .lb-hero-visual { padding-bottom: 0; } }

/* --- radar --- */
.lb-radar {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.lb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--lb-ring);
}
.lb-ring-1 { inset: 0; }
.lb-ring-2 { inset: 14%; }
.lb-ring-3 { inset: 30%; border-style: dashed; }
.lb-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 285deg,
    oklch(0.6 0.19 262 / 0.04) 300deg,
    oklch(0.6 0.19 262 / 0.5) 359deg,
    transparent 360deg
  );
}
.lb-sweep-edge {
  position: absolute;
  left: calc(50% - 1.5px);
  top: 0;
  width: 3px;
  height: 50%;
  border-radius: 3px;
  background: linear-gradient(to top, oklch(0.6 0.19 262 / 0.2), var(--lb-blue) 40%);
}
.lb-blip {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--lb-fg);
  opacity: 0.6;
}
.lb-blip-sun {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  background: var(--lb-yellow);
}
.lb-word {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, "DM Sans"), system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(3.25rem, 9vw, 6.25rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--lb-fg);
  transform: scaleX(0.84);
  pointer-events: none;
}

/* --- notification stack --- */
.lb-stack {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: 0;
  height: 7.5rem;
}
@media (min-width: 1024px) {
  .lb-stack { left: -8%; right: 6%; bottom: 2%; }
}
.lb-notif {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border-radius: 20px;
  background: var(--lb-surface);
  border: 1px solid oklch(0.32 0.012 255);
  box-shadow: 0 24px 50px -24px oklch(0.1 0.01 250 / 0.9);
  transition: transform 250ms cubic-bezier(0.77, 0, 0.175, 1),
              opacity 250ms cubic-bezier(0.77, 0, 0.175, 1);
  transform-origin: 50% 0;
}
.lb-notif[data-pos="0"] { z-index: 3; transform: none; opacity: 1; }
.lb-notif[data-pos="1"] { z-index: 2; transform: translateY(14px) scale(0.95); opacity: 0.55; }
.lb-notif[data-pos="2"] { z-index: 1; transform: translateY(26px) scale(0.9); opacity: 0.25; }
.lb-notif[data-pos="enter"] { z-index: 4; transform: translateY(-22px) scale(1.02); opacity: 0; transition: none; }
.lb-notif[data-pos="1"] .lb-notif-body,
.lb-notif[data-pos="2"] .lb-notif-body { opacity: 0; }
.lb-notif-body { min-width: 0; flex: 1; }
.lb-ava {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--lb-border);
}
.lb-notif-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.lb-notif-top b { font-weight: 600; }
.lb-notif-top span { color: var(--lb-muted); font-size: 0.8125rem; }
.lb-notif-text {
  margin-top: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: oklch(0.88 0.006 250);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- sections --- */
.lb-section { padding: 5rem 0; }
@media (min-width: 1024px) { .lb-section { padding: 7rem 0; } }

.lb-feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-top: 4.5rem;
}
@media (min-width: 900px) {
  .lb-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; margin-top: 6.5rem; }
  .lb-feature-flip .lb-feature-copy { order: 2; }
}
.lb-feature-copy { min-width: 0; }

.lb-demo {
  position: relative;
  min-width: 0;
  padding: 2rem 1.25rem;
  border-radius: 24px;
  border: 1px solid var(--lb-border);
  background:
    radial-gradient(120% 80% at 100% 0%, oklch(0.6 0.19 262 / 0.1), transparent 60%),
    oklch(0.195 0.011 252);
  overflow: hidden;
}
@media (min-width: 640px) { .lb-demo { padding: 2.5rem 2.25rem; } }

/* Telegram bubble */
.lb-bubble {
  position: relative;
  padding: 1rem 1.15rem 0.75rem;
  border-radius: 20px 20px 20px 6px;
  background: var(--lb-surface);
  border: 1px solid oklch(0.3 0.012 255);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: oklch(0.92 0.006 250);
}
.lb-bubble p + p { margin-top: 0.6rem; }
.lb-bubble-title { font-weight: 600; color: var(--lb-fg); }
.lb-bubble-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.lb-link-fake { color: var(--lb-blue-bright); }
.lb-time { font-size: 0.75rem; color: var(--lb-muted); font-variant-numeric: tabular-nums; }
.lb-muted-text { color: var(--lb-muted); }
.lb-tg-btn {
  display: block;
  margin-top: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: oklch(0.55 0.17 262);
  color: var(--lb-fg);
  font-weight: 600;
  text-align: center;
  font-size: 0.9375rem;
}

/* mini-app demo */
.lb-app-stage { padding-bottom: 0; }
.lb-app {
  border-radius: 22px 22px 0 0;
  background: var(--lb-surface);
  border: 1px solid oklch(0.3 0.012 255);
  border-bottom: 0;
  min-height: 22rem;
}
.lb-app-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid oklch(0.3 0.012 255);
  font-size: 0.875rem;
}
.lb-app-close { color: var(--lb-blue-bright); }
.lb-app-name { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.lb-app-name b { font-weight: 600; }
.lb-app-name span { font-size: 0.75rem; color: var(--lb-muted); }
.lb-app-more {
  justify-self: end;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--lb-blue-bright);
  color: var(--lb-blue-bright);
  font-size: 0.75rem;
  letter-spacing: 1px;
  line-height: 1;
}
.lb-app-doc { padding: 1.4rem 1.25rem 2rem; }
.lb-app-kicker { font-size: 0.8125rem; color: var(--lb-muted); line-height: 1.4; }
.lb-app-title { margin-top: 0.75rem; font-size: 1.125rem; font-weight: 600; line-height: 1.35; margin-bottom: 1.4rem; }
.lb-skel,
.lb-skel-inline {
  display: block;
  height: 10px;
  width: var(--w, 100%);
  border-radius: 3px;
  background: var(--lb-surface-2);
}
.lb-skel + .lb-skel { margin-top: 12px; }
.lb-skel-para { margin-top: 24px !important; margin-left: 8%; width: calc(var(--w) - 8%); }

/* daily summary demo */
.lb-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.lb-day-total {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.lb-day-date { color: var(--lb-muted); font-size: 1.0625rem; }
.lb-day-bar {
  position: relative;
  margin-top: 1.25rem;
  height: 22px;
  border-radius: 3px;
  background: var(--lb-surface-2);
  overflow: hidden;
}
.lb-day-fed {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--share);
  background: var(--lb-blue);
  border-right: 3px solid var(--lb-bg);
}
.lb-day-legend {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  color: var(--lb-muted);
  font-size: 0.9375rem;
}
.lb-day-legend b { color: var(--lb-fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.lb-day .lb-bubble { margin-top: 1.75rem; border-radius: 20px; }
.lb-bubble-fade {
  max-height: 12.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* weekly demo */
.lb-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 1.25rem;
}
.lb-days li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--lb-border);
  font-size: 0.8125rem;
  color: var(--lb-muted);
  line-height: 1.2;
}
.lb-days small { font-size: 0.6875rem; font-variant-numeric: tabular-nums; }
.lb-days li.is-fri { background: var(--lb-yellow); border-color: var(--lb-yellow); color: var(--ed-ink); font-weight: 600; }

/* filter demo */
.lb-toggles { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lb-toggle {
  padding: 8px 16px;
  border-radius: 9999px;
  border: 1px solid var(--lb-border);
  font-size: 0.875rem;
  color: var(--lb-muted);
}
.lb-toggle::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  vertical-align: 1px;
}
.lb-toggle[aria-pressed="true"] { background: var(--lb-fg); color: var(--ed-ink); border-color: var(--lb-fg); }
.lb-toggle[aria-pressed="true"]::before { background: var(--lb-blue); border-color: var(--lb-blue); }
.lb-toggle:hover { border-color: var(--lb-muted); }
.lb-toggle:focus-visible { outline: 2px solid var(--lb-yellow); outline-offset: 2px; }
.lb-feed { margin-top: 1.5rem; display: grid; gap: 0.5rem; }
.lb-feed li {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: var(--lb-surface);
  border: 1px solid oklch(0.3 0.012 255);
}
.lb-feed li.is-off { opacity: 0.4; filter: grayscale(1); }
.lb-feed li.is-off .lb-tag { color: var(--lb-muted); }
.lb-tag {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--lb-fg);
}
.lb-feed li[data-kind="uk"] .lb-tag { color: var(--lb-yellow); }
.lb-feed li[data-kind="fz"] .lb-tag { color: var(--lb-blue-bright); }
.lb-skel-inline { height: 8px; }
.lb-filter-count { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--lb-muted); }
.lb-filter-count b { color: var(--lb-fg); font-variant-numeric: tabular-nums; }

/* --- source + ladder --- */
.lb-source-grid { display: grid; gap: 3.5rem; }
@media (min-width: 900px) { .lb-source-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; align-items: center; } }
.lb-ladder { text-align: right; isolation: isolate; }
.lb-ladder li {
  font-family: var(--ed-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  opacity: var(--o);
}
.lb-ladder li:nth-child(1) { padding-right: 25%; }
.lb-ladder li:nth-child(2) { padding-right: 20%; }
.lb-ladder li:nth-child(3) { padding-right: 15%; }
.lb-ladder li:nth-child(4) { padding-right: 10%; }
.lb-ladder li:nth-child(5) { padding-right: 5%; }
.lb-ladder .lb-mark { font-style: italic; }

/* --- FAQ --- */
.lb-faq { max-width: 52rem; }
.lb-faq { border-top: 1px solid var(--lb-border); }
.lb-faq-item { border-bottom: 1px solid var(--lb-border); }
.lb-faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 3rem 1.35rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 200ms ease;
}
.lb-faq-item summary::-webkit-details-marker { display: none; }
.lb-faq-item summary:hover { color: var(--lb-blue-bright); }
.lb-faq-item summary:focus-visible { outline: 2px solid var(--lb-yellow); outline-offset: 4px; border-radius: 4px; }
.lb-faq-plus {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
}
.lb-faq-plus::before,
.lb-faq-plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.lb-faq-plus::after { transform: rotate(90deg); }
.lb-faq-item[open] .lb-faq-plus::after { transform: rotate(0deg); }
.lb-faq-item p {
  padding: 0 3rem 1.5rem 0;
  max-width: 44rem;
  color: var(--lb-muted);
  line-height: 1.7;
}

/* --- final CTA --- */
.lb-final { padding: 5rem 0 4rem; }
@media (min-width: 1024px) { .lb-final { padding: 7rem 0 5rem; } }
.lb-final-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .lb-final-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 5rem; } }
.lb-final-radar { width: min(100%, 22rem); margin: 0 auto; }
.lb-final-radar .lb-word { font-size: clamp(2.75rem, 6vw, 4.25rem); }
.lb-final-note { margin-top: 2.5rem; max-width: 34rem; font-size: 0.875rem; line-height: 1.6; color: var(--lb-muted); }

.lb-crumbs { padding-bottom: 2.5rem; }
.lb-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8125rem; color: var(--lb-muted); }
.lb-crumbs a { color: var(--lb-muted); }
.lb-crumbs a:hover { color: var(--lb-fg); }

@media (prefers-reduced-motion: reduce) {
  .lb-notif { transition: none !important; }
}

/* ===== Profile page ("pf-") ============================================ */

/* Identity header: monogram, serif name, status badge */
.pf-head { display: flex; align-items: center; gap: 1.125rem; margin-bottom: 2.25rem; }
.pf-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  overflow: hidden;
  border-radius: 9999px;
  border: 1px solid var(--ed-cream-border);
  background: oklch(0.945 0.006 250);
  color: var(--ed-ink);
  font-family: var(--ed-display);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
}
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-name {
  font-family: var(--ed-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ed-ink);
  text-wrap: balance;
}
.pf-email { margin-top: 0.375rem; font-size: 0.875rem; color: var(--ed-ink-muted); overflow-wrap: anywhere; }

.pf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem 0.3rem 0.45rem;
  border: 1px solid var(--ed-cream-border);
  border-radius: 9999px;
  background: var(--ed-cream);
  color: var(--ed-ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.pf-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem 0.375rem 0.7rem;
  border: 1px solid var(--ed-cream-border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ed-ink-muted);
  transition: border-color 200ms ease, color 200ms ease;
}
.pf-logout:hover { border-color: var(--ed-ink); color: var(--ed-ink); }

/* Sectioned form */
.pf-section { display: grid; gap: 1.125rem; }
.pf-section + .pf-section { margin-top: 3.5rem; }
.pf-section-title {
  font-family: var(--ed-display);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ed-ink);
}
.pf-section-hint { margin-top: 0.3rem; font-size: 0.875rem; color: var(--ed-ink-muted); }
.pf-grid-2 { display: grid; gap: 1.125rem; }
@media (min-width: 640px) { .pf-grid-2 { grid-template-columns: 1fr 1fr; } }
.pf-field { display: grid; gap: 0.45rem; min-width: 0; }
.pf-label { font-size: 0.8125rem; font-weight: 600; color: var(--ed-ink); }
.pf-optional { margin-left: 0.25rem; font-weight: 400; color: var(--ed-ink-muted); }
.pf-hint { font-size: 0.8125rem; color: var(--ed-ink-muted); }
.pf-input { padding: 0.75rem 1rem; font-size: 0.9375rem; line-height: 1.5; }
.pf-input::placeholder { color: oklch(0.52 0.011 250); }
textarea.pf-input { resize: vertical; min-height: 5.5rem; }
.pf-prefixed { position: relative; }
.pf-prefixed > span {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  font-size: 0.9375rem; color: var(--ed-ink-muted); pointer-events: none;
}
.pf-prefixed > .pf-input { padding-left: 2rem; }

/* Practice picker: picked chips + searchable compact list */
.pf-areas { display: grid; gap: 0.875rem; }
.pf-areas-picked { display: flex; flex-wrap: wrap; gap: 0.5rem; min-height: 2.25rem; align-items: center; }
.pf-areas-empty { font-size: 0.875rem; color: var(--ed-ink-muted); }
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.6rem 0.4rem 0.85rem;
  border-radius: 9999px;
  background: var(--ed-ink);
  color: var(--ed-cream);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: filter 200ms ease;
}
.pf-chip:hover { filter: brightness(1.25); }
.pf-chip svg { opacity: 0.7; }
.pf-areas-box { border: 1px solid var(--ed-cream-border); border-radius: 18px; overflow: hidden; }
.pf-areas-search {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--ed-cream-border);
  color: var(--ed-ink-muted);
}
.pf-areas-search:focus-within { color: var(--ed-ink); box-shadow: inset 0 -2px 0 var(--ed-sage); }
.pf-areas-search input {
  flex: 1; min-width: 0;
  padding: 0.8rem 0;
  border: 0; outline: 0; background: transparent;
  font-size: 0.9375rem; color: var(--ed-ink);
}
.pf-areas-search input::placeholder { color: oklch(0.52 0.011 250); }
.pf-areas-count { font-size: 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-areas-list {
  display: grid;
  grid-template-columns: 1fr;
  max-height: 15.5rem;
  overflow-y: auto;
  padding: 0.375rem;
  overscroll-behavior: contain;
}
@media (min-width: 640px) { .pf-areas-list { grid-template-columns: 1fr 1fr; } }
.pf-area-opt {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--ed-ink);
  cursor: pointer;
  transition: background 150ms ease;
}
.pf-area-opt:hover { background: oklch(0.95 0.005 250); }
.pf-area-opt input { flex: none; width: 1rem; height: 1rem; accent-color: var(--ed-ink); }
.pf-area-opt:has(:checked) { font-weight: 600; }
.pf-area-opt[hidden] { display: none; }
.pf-areas-none { grid-column: 1 / -1; padding: 0.75rem; font-size: 0.875rem; color: var(--ed-ink-muted); }

/* Save bar: ends the form; sticks to the viewport only while there are
   unsaved changes or right after a save. */
.pf-savebar {
  position: relative;
  bottom: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9999px;
}
.pf-savebar.is-dirty,
.pf-savebar.is-saved {
  padding: 0.6rem 0.6rem 0.6rem 1.25rem;
  border-color: var(--ed-cream-border);
  background: var(--ed-cream);
}
.pf-savebar.is-dirty,
.pf-savebar.is-saved { position: sticky; }
.pf-savebar.is-dirty { border-color: var(--ed-ink); }
.pf-savebar:not(.is-dirty):not(.is-saved) .pf-save-status { display: none; }
.pf-savebar:not(.is-dirty):not(.is-saved) { justify-content: flex-start; }
.pf-save-status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--ed-ink-muted); }
.pf-save { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1.4rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; }

/* Rail feature cards with hand-drawn doodles */
.pf-feature { min-width: 0; }
.ed-doodle { display: block; width: 4.25rem; height: 4.25rem; margin: -0.25rem 0 0.75rem -0.35rem; }
.ed-doodle-ink { stroke: var(--ed-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ed-doodle-mark { fill: var(--ed-sage-bright); opacity: 0.75; }
.ed-doodle-fill { fill: var(--ed-cream); }

/* Profile tab: two columns on desktop (form + status rail on the right) */
@media (min-width: 1024px) {
  .pf-wide { max-width: 64rem; }
  .pf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem;
    gap: 2.5rem;
    align-items: start;
  }
  .pf-main { grid-column: 1; grid-row: 1; min-width: 0; }
  .pf-rail { grid-column: 2; grid-row: 1; min-width: 0; }
  .pf-rail > :last-child { margin-bottom: 0; }
}

/* Profile checklist (incomplete profiles) */
.profile-completeness { display: block; }
.profile-completeness ui-progress-track { display: block; height: .375rem; overflow: hidden; border-radius: 9999px; background: var(--profile-progress-track, oklch(0.92 0.005 250)); }
.profile-completeness ui-progress-indicator { display: block; height: 100%; border-radius: inherit; background: var(--profile-progress-fill, var(--ed-ink)); }
.pf-progress { margin: 1rem 0 .75rem; }
.pf-steps { display: grid; }
.pf-step {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 2.25rem;
  font-size: 0.875rem;
  color: var(--ed-ink);
}
.pf-step.is-done { color: var(--ed-ink-muted); }
.pf-step-mark {
  flex: none; display: grid; place-items: center;
  width: 1.125rem; height: 1.125rem;
  border: 1.5px solid oklch(0.78 0.008 250);
  border-radius: 9999px;
}
.pf-step.is-done .pf-step-mark { border-color: var(--ed-ink); background: var(--ed-ink); color: var(--ed-cream); }
.pf-step-mark svg { width: 0.65rem; height: 0.65rem; }
.pf-step-link { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 2.25rem; font-weight: 500; }
.pf-step-cta { font-size: 0.8125rem; font-weight: 600; color: var(--ed-ink-muted); transition: color 200ms ease, transform 200ms ease; }
.pf-step-link:hover .pf-step-cta { color: var(--ed-ink); transform: translateX(2px); }
.pf-locked { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--ed-ink-muted); }
.pf-locked > svg { margin-top: 0.15rem; }
/* Phones: on non-profile tabs the rail follows the tab content */
@media (max-width: 1023.98px) {
  .pf-layout.pf-rail-last { display: flex; flex-direction: column; }
  .pf-layout.pf-rail-last > .pf-rail { order: 2; margin-top: 2.5rem; }
}

/* Senior vacancy: "order a professional resume" partner card */
.ro-card { display: grid; gap: 0.25rem; }
@media (min-width: 640px) {
  .ro-card { grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: start; }
  .ro-card > .ed-doodle { margin: 0; width: 5rem; height: 5rem; }
}
.ro-field { flex: 1 1 14rem; min-width: 0; max-width: 20rem; }


:is(.promo-studio, .promo-gta) { position: relative; background: oklch(0.20 0.012 250); color: oklch(0.975 0.004 250); font-size: 13px; line-height: 1.4; }
.promo-studio-off .promo-studio, .promo-gta-off .promo-gta { display: none; }
.promo-strip-link { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 8px 56px; color: inherit; text-decoration: none; }
.promo-strip-link img { flex-shrink: 0; }
.promo-strip-name { font-weight: 600; white-space: nowrap; }
.promo-strip-description { color: oklch(0.80 0.008 250); }
.promo-strip-cta { display: inline-flex; align-items: center; gap: 8px; color: oklch(0.88 0.12 125); font-weight: 500; white-space: nowrap; }
.promo-strip-link:hover .promo-strip-cta { text-decoration: underline; text-underline-offset: 4px; }
.promo-strip-link:focus-visible { outline: 2px solid oklch(0.88 0.12 125); outline-offset: -4px; }
.promo-strip-close { position: absolute; top: 50%; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 8px; background: none; color: oklch(0.80 0.008 250); font-size: 24px; cursor: pointer; }
.promo-strip-close:hover { background: oklch(0.975 0.004 250 / 0.08); color: oklch(0.975 0.004 250); }
.promo-strip-close:focus-visible { outline: 2px solid oklch(0.88 0.12 125); outline-offset: -4px; }
@media (max-width: 760px) {
  .promo-strip-description { display: none; }
  .promo-strip-link { gap: 8px; justify-content: center; padding-left: 16px; font-size: 12px; }
  .promo-strip-link img { width: 20px; height: 20px; }
  .promo-gta .promo-strip-link { flex-wrap: wrap; row-gap: 0; }
  .promo-gta .promo-strip-name { white-space: normal; }
}

/* ── Halloween strip (site-wide, until Nov 1) ─────────────────────────────
   A night-colored bar above the nav that points to /halloween. No border;
   it sits flush on top of the page. Hidden once dismissed (.promo-hw-off). */
.promo-hw {
  position: relative;
  background: oklch(0.155 0.016 285);
  color: oklch(0.9 0.012 285);
  font-size: 0.8125rem;
  line-height: 1.35;
}
.promo-hw-off .promo-hw { display: none; }
.promo-hw-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.5rem;
  padding: 0.45rem 3rem;
  color: inherit;
  text-decoration: none;
}
.promo-hw-pk {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 3px oklch(0.75 0.17 60 / 0.5));
}
.promo-hw-stem { fill: none; stroke: oklch(0.62 0.1 135); stroke-width: 1.8; stroke-linecap: round; }
.promo-hw-lobe { fill: oklch(0.62 0.17 45); }
.promo-hw-mid { fill: oklch(0.7 0.18 52); }
.promo-hw-face { fill: oklch(0.92 0.13 88); }
.promo-hw-text { min-width: 0; }
.promo-hw-short { display: none; }
.promo-hw-cta {
  color: oklch(0.8 0.16 62);
  font-weight: 600;
  white-space: nowrap;
}
.promo-hw-link:hover .promo-hw-cta,
.promo-hw-link:focus-visible .promo-hw-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.promo-hw-link:focus-visible { outline: 2px solid oklch(0.8 0.16 62); outline-offset: -2px; }
.promo-hw-close {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: oklch(0.68 0.02 285);
  transition: color 0.15s, background-color 0.15s;
}
.promo-hw-close svg { width: 1rem; height: 1rem; }
.promo-hw-close:hover { color: oklch(0.93 0.01 285); background: oklch(0.93 0.01 285 / 0.08); }
@media (max-width: 639px) {
  .promo-hw-long { display: none; }
  .promo-hw-short { display: inline; }
  .promo-hw-link { justify-content: flex-start; padding-left: 1rem; flex-wrap: wrap; column-gap: 0.5rem; row-gap: 0; }
  .promo-hw-pk { width: 18px; height: 18px; }
}

/* ============================================================
   Admin schedule ("sch"): month calendar + vacancy schedule block.
   Flat cream cells, ink pills; sage only marks today.
   ============================================================ */
.sch-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.sch-head .adm-lede { max-width: 64ch; }
.sch-lede-error { color: oklch(0.48 0.16 25); font-weight: 500; }
.sch-monthnav { display: flex; gap: 6px; }
.sch-navbtn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 14px;
  border: 1px solid var(--ed-cream-border); border-radius: 9999px; color: var(--ed-ink); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease;
}
.sch-navbtn:hover { border-color: oklch(0.80 0.008 250); background: oklch(0.955 0.004 250); }
.sch-navbtn:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 2px; }
.sch-flash { margin: -8px 0 20px; }

.sch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 24px; align-items: start; }
@media (max-width: 1279px) { .sch-layout { grid-template-columns: minmax(0, 1fr); } }

.sch-cal { min-width: 0; }
.sch-weekdays, .sch-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sch-weekdays span { padding: 0 8px 8px; font-size: 12px; color: var(--ed-ink-muted); }
.sch-weekdays .is-weekend { color: oklch(0.62 0.010 250); }
.sch-week { border-left: 1px solid var(--ed-cream-border); }
.sch-weekdays + .sch-week { border-top: 1px solid var(--ed-cream-border); }
.sch-day {
  display: flex; flex-direction: column; gap: 4px; min-height: 112px; padding: 6px;
  border-right: 1px solid var(--ed-cream-border); border-bottom: 1px solid var(--ed-cream-border);
  transition: background-color 120ms ease;
}
.sch-day.is-out { background: oklch(0.965 0.004 250); }
.sch-day.is-out .sch-daynum { color: oklch(0.72 0.010 250); }
.sch-day.is-drop { background: oklch(0.85 0.16 125 / 0.22); }
.sch-daynum { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ed-ink); padding: 2px 4px; }
.sch-daynum .hl-mark { font-weight: 600; }
.sch-day.is-past:not(.is-out) .sch-daynum { color: oklch(0.62 0.010 250); }
.sch-daylabel { display: none; }

.sch-item {
  display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 5px 7px; text-align: left;
  border: 1px solid var(--ed-cream-border); border-radius: 10px; background: var(--ed-cream); color: var(--ed-ink);
  font-size: 12px; line-height: 1.3; cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}
.sch-item:hover { border-color: oklch(0.70 0.010 250); transform: translateY(-1px); }
.sch-item:focus-visible { outline: 2px solid var(--ed-ink); outline-offset: 1px; }
.sch-item[draggable="true"] { cursor: grab; }
.sch-item.is-dragging { opacity: 0.45; }
.sch-item.is-selected { border-color: var(--ed-ink); box-shadow: inset 0 0 0 1px var(--ed-ink); }
.sch-item.is-pending { border-color: oklch(0.78 0.008 250); }
.sch-item.is-running { border-style: dashed; }
.sch-item.is-done { background: oklch(0.955 0.004 250); border-color: transparent; color: var(--ed-ink-muted); }
.sch-item.is-failed { background: oklch(0.96 0.04 25); border-color: oklch(0.86 0.07 25); color: oklch(0.42 0.14 25); }
.sch-item-top { display: flex; align-items: center; gap: 5px; }
.sch-item-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; hyphens: auto; }
.sch-item-flag { margin-left: auto; font-weight: 700; }
.sch-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.sch-kind-icon svg, .sch-kind svg { width: 13px; height: 13px; flex-shrink: 0; }
.sch-kind { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ed-ink); white-space: nowrap; }
.sch-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; }
.sch-legend .sch-kind { color: var(--ed-ink-muted); font-weight: 400; }

.sch-state { display: inline-flex; padding: 2px 9px; border: 1px solid var(--ed-cream-border); border-radius: 9999px; font-size: 12px; font-weight: 500; color: var(--ed-ink-muted); white-space: nowrap; }
.sch-state.is-pending { border-color: oklch(0.78 0.008 250); color: var(--ed-ink); }
.sch-state.is-running { border-style: dashed; color: var(--ed-ink); }
.sch-state.is-done { border-color: transparent; background: oklch(0.72 0.17 150 / 0.16); color: var(--ed-ink); }
.sch-state.is-failed { border-color: transparent; background: oklch(0.96 0.04 25); color: oklch(0.48 0.16 25); }

/* Side panel */
.sch-panel { position: sticky; top: 76px; padding: 18px 20px; border: 1px solid var(--ed-cream-border); border-radius: 20px; background: var(--ed-cream); }
@media (max-width: 1279px) { .sch-panel { position: static; } }
.sch-panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sch-close { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9999px; color: var(--ed-ink-muted); font-size: 20px; line-height: 1; text-decoration: none; }
.sch-close:hover { background: oklch(0.945 0.005 250); color: var(--ed-ink); }
.sch-panel-title { overflow-wrap: anywhere; }
.sch-panel-title a { color: inherit; text-decoration: underline; text-decoration-color: var(--ed-cream-border); text-underline-offset: 4px; }
.sch-panel-title a:hover { text-decoration-color: var(--ed-ink); }
.sch-panel .adm-note { display: block; margin-top: 4px; }
.sch-panel-alert { margin-top: 14px; overflow-wrap: anywhere; }
.sch-panel-sub { margin-top: 24px; }
.sch-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.sch-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-main .sch-cancel { margin-left: auto; background: transparent; border: 1px solid transparent; border-radius: 9999px; color: var(--ed-ink-muted); }
.adm-main .sch-cancel:hover { color: var(--ed-error); border-color: oklch(0.82 0.09 25); background: oklch(0.96 0.03 25); }
.sch-ro-label { margin-top: 18px; }
.sch-ro { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; padding: 12px 14px; border: 1px solid var(--ed-cream-border); border-radius: 12px; color: var(--ed-ink); }

.sch-agenda { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.sch-agenda-row { display: grid; gap: 3px; padding: 10px 0; border-top: 1px solid var(--ed-cream-border); color: var(--ed-ink); text-decoration: none; }
.sch-agenda li:first-child .sch-agenda-row { border-top: 0; }
.sch-agenda-row:hover .sch-agenda-title { text-decoration: underline; text-underline-offset: 3px; }
.sch-agenda-when { font-size: 12px; color: var(--ed-ink-muted); }
.sch-agenda-title { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.sch-agenda-error { font-size: 12px; color: oklch(0.48 0.16 25); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Phone: the grid turns into an agenda of days that have posts. */
@media (max-width: 767px) {
  .sch-weekdays { display: none; }
  .sch-week { display: block; border-left: 0; }
  .sch-weekdays + .sch-week { border-top: 0; }
  .sch-day { min-height: 0; padding: 12px 0; border-right: 0; }
  .sch-day.is-empty { display: none; }
  .sch-day.is-out { background: transparent; }
  .sch-daynum { display: none; }
  .sch-daylabel { display: block; font-size: 13px; font-weight: 600; color: var(--ed-ink); margin-bottom: 4px; }
  .sch-item { font-size: 14px; padding: 10px 12px; }
  .sch-item-title { -webkit-line-clamp: 3; }
}

/* Vacancy page: plan row + the vacancy's own schedule list */
.sch-plan { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 18px; }
.sch-plan .btn { margin-bottom: 2px; }
.sch-when { width: auto; min-width: 220px; }
.sch-inline-link { color: var(--ed-ink); font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--ed-cream-border); text-underline-offset: 4px; white-space: nowrap; }
.sch-inline-link:hover { text-decoration-color: var(--ed-ink); }
.sch-vlist { margin-top: 18px; }
.sch-vrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ed-cream-border); }
.sch-vrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; border-bottom: 1px solid var(--ed-cream-border); font-size: 14px; }
.sch-vrow.is-done { color: var(--ed-ink-muted); }
.sch-vrow-when { font-variant-numeric: tabular-nums; }
.sch-vrow-link { margin-left: auto; color: var(--ed-ink); font-size: 13px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--ed-cream-border); text-underline-offset: 4px; }
.sch-vrow-link:hover { text-decoration-color: var(--ed-ink); }
.sch-vrow-error { flex-basis: 100%; margin: 0; font-size: 12px; color: oklch(0.48 0.16 25); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .sch-item, .sch-day { transition: none; }
  .sch-item:hover { transform: none; }
}
