/* Typefaces served by the site itself (npm run fonts): no request to Google Fonts, so visitors'
   IP addresses are not shared with a third party. Inter and Cormorant Garamond, SIL OFL 1.1. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/cormorant-garamond-latin-700-normal.woff2') format('woff2'); }

/* ============================================================
   Black · White · Gold — design tokens
   ============================================================ */
:root {
  --black: #0d0c0a;
  --black-2: #141416;
  --black-3: #1f1f22;
  --ink: #111113;
  --ink-2: #3a3a3f;
  --muted: #68665f;
  --line: #e7e2d8;
  --line-2: #d8d1c3;
  --bg: #f8f6f1;
  --card: #ffffff;

  --gold: #c9a84c;
  --gold-2: #7a6122;   /* ≥ 4.5:1 on every light surface, for small gold text */
  --gold-3: #785e1c;
  --gold-soft: #f6efdc;
  --gold-grad: linear-gradient(135deg, #e1c067 0%, #c9a84c 45%, #9c7f2e 100%);

  --danger: #9b2c2c;
  --danger-soft: #f8ecea;
  --ok: #2f6b4f;
  --ok-soft: #eaf3ee;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(13,12,10,.04), 0 2px 8px rgba(13,12,10,.04);
  --shadow-lg: 0 12px 40px rgba(13,12,10,.12);

  font-family: var(--sans);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* Cormorant defaults to old-style figures (a '1' looks like 'I'); use lining numerals everywhere. */
  font-variant-numeric: lining-nums;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); min-height: 100vh; }
::selection { background: var(--gold); color: var(--black); }
a { color: var(--gold-3); text-decoration: none; transition: color .15s; }
a:hover { color: var(--black); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5rem; color: var(--black); letter-spacing: -.005em; }
h1 { font-size: 2.35rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-family: var(--sans); }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.hidden { display: none !important; }
.eyebrow { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.gold-rule { width: 56px; height: 1px; background: var(--gold); border: 0; margin: 18px 0; }
.icon { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; flex-shrink: 0; }

/* ============================================================
   Top bar
   ============================================================ */
.topbar { background: var(--black); color: #fff; border-bottom: 1px solid rgba(201,168,76,.35); position: sticky; top: 0; z-index: 50; }
.topbar .inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; gap: 36px; }
.topbar a { color: #b9b6ae; font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.topbar a:hover, .topbar a.active { color: #fff; }
.topbar nav { display: flex; gap: 28px; flex: 1; height: 100%; }
.topbar nav a { display: flex; align-items: center; height: 100%; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.topbar nav a.active { border-bottom-color: var(--gold); }
.topbar .logo { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.topbar .logo:hover { color: #fff; }
.topbar .logo small { font-family: var(--sans); font-size: .62rem; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; font-weight: 600; margin-left: 2px; }
.mark { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 1.15rem; font-weight: 700; flex-shrink: 0; }
.mark.lg { width: 56px; height: 56px; font-size: 1.9rem; }

/* ============================================================
   Layout
   ============================================================ */
.container { max-width: 1240px; margin: 0 auto; padding: 36px 24px 72px; }
.narrow { max-width: 860px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } h1 { font-size: 1.9rem; } }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 6px 0 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 18px; }
.grid > .card + .card { margin-top: 0; }
.card h2 { font-size: 1.35rem; }
.card-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.card-title h2 { margin: 0; }

.stat { position: relative; overflow: hidden; }
.stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-grad); }
.stat .num { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--black); }
.stat .label { color: var(--muted); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; margin-top: 10px; }
.stat.dark { background: var(--black); border-color: var(--black); }
.stat.dark .num { color: var(--gold); }
.stat.dark .label { color: #a9a59c; }

/* ============================================================
   Forms
   ============================================================ */
label { display: block; font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 7px; color: var(--ink-2); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=search], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius); font: inherit; font-size: .95rem; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input[type=file] { font: inherit; font-size: .9rem; padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius); width: 100%; background: #fcfbf8; }
input[type=file]::file-selector-button { font: inherit; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; background: var(--black); color: #fff; border: 0; padding: 8px 14px; border-radius: 2px; margin-right: 12px; cursor: pointer; }
input[type=checkbox] { accent-color: var(--black); width: 15px; height: 15px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238a6d1f' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.18); }
.field { margin-bottom: 18px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.req::after { content: " *"; color: var(--gold-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 2px; border: 1px solid var(--black); background: var(--black); color: #fff;
  font: inherit; font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: all .18s; }
.btn:hover { background: var(--black-3); color: var(--gold); border-color: var(--black-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold { background: var(--gold-grad); border-color: var(--gold-2); color: var(--black); }
.btn.gold:hover { filter: brightness(1.06); color: var(--black); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { border-color: var(--black); color: var(--black); background: #fff; }
.btn.ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.ghost-light:hover { border-color: var(--gold); color: var(--gold); }
.btn.danger { background: transparent; color: var(--danger); border-color: #e3c4c0; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 7px 12px; font-size: .66rem; }
.btn.active { background: var(--black); color: var(--gold); border-color: var(--black); }

.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; border-left: 3px solid; }
.alert.error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.alert.success { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.alert.warn { background: var(--gold-soft); color: var(--gold-3); border-color: var(--gold); }

/* ============================================================
   Badges, chips, scores
   ============================================================ */
.badge { display: inline-block; padding: 3px 9px; border-radius: 2px; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: #efece5; color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.badge.green { background: var(--black); color: var(--gold); }
.badge.blue { background: var(--gold-soft); color: var(--gold-3); }
.badge.amber { background: #f1ede4; color: var(--muted); border: 1px solid var(--line-2); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .76rem; padding: 3px 9px; border-radius: 2px; background: #f3f0e9; color: var(--ink-2); border: 1px solid transparent; }
.chip.hit { background: #fff; color: var(--black); border-color: var(--gold); }
.chip.miss { background: transparent; color: #a09c93; border-color: var(--line); text-decoration: line-through; }
button.chip:hover { border-color: var(--gold); color: var(--black); }

.score { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; flex-shrink: 0; }
.score.hi { background: var(--black); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.score.mid { background: var(--gold-soft); color: var(--gold-3); box-shadow: inset 0 0 0 1px #e2d2ad; }
.score.lo { background: #f1efea; color: #9a968d; }

/* ============================================================
   Tables
   ============================================================ */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 600; border-bottom-color: var(--line-2); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #fcfaf5; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td:first-child { box-shadow: inset 2px 0 0 var(--gold); }
.table-wrap { overflow-x: auto; }
td strong { font-weight: 600; }

/* ============================================================
   Careers site
   ============================================================ */
.hero { position: relative; background: var(--black); color: #fff; padding: 96px 24px 120px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(201,168,76,.18), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 120px); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero .inner { position: relative; max-width: 1080px; margin: 0 auto; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; line-height: 1.02; max-width: 780px; margin: 18px 0 0; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { color: #b9b6ae; font-size: 1.08rem; max-width: 560px; margin-top: 22px; }
.hero-stats { display: flex; gap: 48px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div { border-left: 1px solid rgba(201,168,76,.5); padding-left: 16px; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 600; color: #fff; line-height: 1; }
.hero-stats span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: #8f8b83; }

.search-panel { position: relative; margin-top: -48px; box-shadow: var(--shadow-lg); border: 0; }
.section { padding: 64px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 2rem; margin: 6px 0 0; }

.job-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.job-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 26px 28px; color: inherit; border-bottom: 1px solid var(--line); position: relative; transition: background .18s; }
.job-card:last-child { border-bottom: 0; }
.job-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); transform: scaleY(0); transition: transform .2s; }
.job-card:hover { background: #fdfbf7; color: inherit; }
.job-card:hover::before { transform: scaleY(1); }
.job-card h3 { font-size: 1.55rem; margin: 0 0 6px; }
.job-card .arrow { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--black); transition: all .18s; }
.job-card:hover .arrow { background: var(--black); border-color: var(--black); color: var(--gold); }
.job-card .desc { color: var(--muted); margin: 10px 0 0; font-size: .92rem; max-width: 720px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--muted); font-size: .84rem; align-items: center; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { color: var(--gold-2); }
.prose { white-space: pre-line; color: var(--ink-2); line-height: 1.75; }
.prose-list { list-style: none; padding: 0; margin: 0 0 8px; }
.prose-list li { position: relative; padding: 6px 0 6px 24px; color: var(--ink-2); line-height: 1.6; }
.prose-list li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 10px; height: 1px; background: var(--gold); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: #fff; }
.values > div { padding: 30px 28px; border-right: 1px solid var(--line); }
.values > div:last-child { border-right: 0; }
.values .num { font-family: var(--serif); color: var(--gold); font-size: 1.1rem; font-weight: 600; letter-spacing: .1em; }
.values h3 { margin: 10px 0 8px; font-size: 1.35rem; }
.values p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } .values > div { border-right: 0; border-bottom: 1px solid var(--line); } }

.job-hero { background: var(--black); color: #fff; padding: 56px 24px 60px; position: relative; }
.job-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.job-hero .inner { max-width: 1140px; margin: 0 auto; }
.job-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 500; margin: 14px 0 16px; }
.job-hero .meta { color: #b9b6ae; }
.job-hero .meta .icon { color: var(--gold); }
.job-hero a.back { color: #8f8b83; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.job-hero a.back:hover { color: var(--gold); }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; max-width: 1140px; }
.job-layout .sticky { position: sticky; top: 88px; }
@media (max-width: 960px) { .job-layout { grid-template-columns: 1fr; } .job-layout .sticky { position: static; } }
.summary dl { margin: 0; }
.summary dt { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 16px; }
.summary dd { margin: 4px 0 0; font-weight: 500; }
.summary dt:first-child { margin-top: 0; }
.form-section { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; margin: 26px 0 16px; display: flex; align-items: center; gap: 12px; }
.form-section::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.site-footer { background: var(--black); color: #8f8b83; margin-top: 80px; padding: 40px 24px; font-size: .8rem; letter-spacing: .06em; }
.site-footer .inner { max-width: 1080px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--serif); font-size: 1.2rem; }
.site-footer a { color: #b9b6ae; }
.site-footer a:hover { color: var(--gold); }

.success-panel { text-align: center; padding: 40px 10px; }
.success-panel .check { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }

/* ============================================================
   Recruiter: pipeline, kanban, filters
   ============================================================ */
.stage-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); }
.stage-tabs button { background: none; border: none; padding: 12px 14px; font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s; }
.stage-tabs button:hover { color: var(--black); }
.stage-tabs button.active { color: var(--black); border-bottom-color: var(--gold); }
.stage-tabs .count { background: #efece5; color: var(--ink-2); border-radius: 2px; padding: 1px 6px; font-size: .68rem; margin-left: 6px; letter-spacing: 0; }
.stage-tabs button.active .count { background: var(--black); color: var(--gold); }

.kanban { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding: 14px 0 8px; }
.column { background: #f1eee7; border-radius: var(--radius); padding: 12px; min-height: 360px; border-top: 2px solid var(--line-2); transition: background .15s; }
.column[data-stage=hired], .column[data-stage=offer] { border-top-color: var(--gold); }
.column[data-stage=rejected] { border-top-color: #d9b8b3; }
.column.drop { outline: 1px dashed var(--gold); background: var(--gold-soft); }
.column h4 { margin: 2px 2px 12px; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-2); display: flex; justify-content: space-between; font-weight: 600; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 8px; cursor: grab; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s; }
.kcard:hover { border-color: var(--gold); box-shadow: 0 4px 14px rgba(13,12,10,.08); }
.kcard:active { cursor: grabbing; }
.kcard .name { font-weight: 600; }
.kcard .score { width: 36px; height: 36px; font-size: .98rem; }

.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; align-items: end; }
.filters .field { margin: 0; }
.searchbar { display: flex; gap: 8px; position: relative; }
.searchbar .icon-lead { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gold-2); pointer-events: none; }
.searchbar input { font-size: 1rem; padding: 14px 16px 14px 42px; }
.bulkbar { display: flex; gap: 10px; align-items: center; background: var(--black); color: #fff; padding: 10px 16px; border-radius: var(--radius); margin: 14px 0 0; flex-wrap: wrap; }
.bulkbar .muted { color: #a9a59c; }
.bulkbar select { width: auto; padding: 6px 30px 6px 10px; font-size: .85rem; }
.bulkbar .btn.secondary { color: #fff; border-color: rgba(255,255,255,.3); }
.bulkbar .btn { background: var(--gold-grad); color: var(--black); border-color: var(--gold-2); }

.snippet { font-size: .8rem; color: var(--muted); margin-top: 4px; max-width: 540px; font-style: italic; }
mark { background: rgba(201,168,76,.32); color: var(--black); padding: 0 2px; border-radius: 1px; font-style: normal; }
.resume { white-space: pre-wrap; font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: .82rem; line-height: 1.7; background: #fcfbf8; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-height: 680px; overflow: auto; color: var(--ink-2); }

.breakdown .line { display: grid; grid-template-columns: 124px 1fr 52px; gap: 12px; align-items: center; margin-bottom: 6px; font-size: .86rem; font-weight: 500; }
.bar { height: 4px; background: #eeeae1; border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--gold-grad); border-radius: 999px; }
.breakdown .pts { text-align: right; font-family: var(--serif); font-weight: 700; font-size: 1rem; }

.stars { display: inline-flex; gap: 2px; }
.stars button { background: none; border: none; cursor: pointer; font-size: 1.3rem; color: #d9d4c9; padding: 0 1px; line-height: 1; transition: color .12s, transform .12s; }
.stars button:hover { transform: scale(1.12); }
.stars button.on { color: var(--gold); }
.stars.readonly { font-size: .82rem; color: var(--gold); letter-spacing: 0; margin-left: 4px; }

.funnel .step { display: grid; grid-template-columns: 100px 1fr 36px; gap: 14px; align-items: center; margin-bottom: 12px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); }
.funnel .bar { height: 8px; border-radius: 1px; }
.funnel .bar > span { border-radius: 1px; }
.funnel strong { font-family: var(--serif); font-size: 1.2rem; text-align: right; letter-spacing: 0; color: var(--black); }
.q-row { border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; background: #fdfcf9; }
.empty { text-align: center; color: var(--muted); padding: 56px 12px; }
.empty h2 { font-size: 1.8rem; }
.help-pop { font-size: .82rem; background: #fcfbf8; border: 1px solid var(--line); border-left: 2px solid var(--gold); padding: 12px 16px; margin-top: 10px; line-height: 1.9; }
.help-pop code { background: #fff; border: 1px solid var(--line); padding: 1px 6px; border-radius: 2px; font-size: .8rem; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--black); color: #fff; padding: 12px 18px; border-radius: var(--radius); border-left: 2px solid var(--gold); box-shadow: var(--shadow-lg); z-index: 99; font-size: .88rem; animation: toast-in .25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.profile-grid { grid-template-columns: minmax(0, 1fr) 380px; margin-top: 18px; align-items: start; }
@media (max-width: 960px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-head { background: var(--black); color: #fff; border: 0; position: relative; overflow: hidden; }
.profile-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.profile-head h1 { color: #fff; font-size: 2.3rem; margin: 0 0 4px; }
.profile-head .muted, .profile-head .meta { color: #a9a59c; }
.profile-head a { color: var(--gold); }
.profile-head a:hover { color: #fff; }
.profile-head select { background-color: var(--black-3); color: #fff; border-color: #3a3a3f; }
.profile-head .score { width: 64px; height: 64px; font-size: 1.7rem; }
.profile-head .alert { margin-top: 18px; }
.kv td { padding: 10px 6px; }
.kv td:first-child { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); width: 110px; }

/* Login */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth .panel { background: var(--black); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .panel::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 20% 90%, rgba(201,168,76,.16), transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 110px); }
.auth .panel > * { position: relative; }
.auth .panel h1 { color: #fff; font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 500; line-height: 1.05; }
.auth .panel h1 em { color: var(--gold); }
.auth .form-side { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth form { width: 100%; max-width: 380px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .panel { padding: 36px 24px; min-height: 260px; } }

/* ============================================================
   Demo mode
   ============================================================ */
/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(13,12,10,.55); backdrop-filter: blur(3px); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade-in .2s ease-out; }
@keyframes fade-in { from { opacity: 0; } }
.modal { background: #fff; border-radius: var(--radius); max-width: 520px; width: 100%; padding: 36px 36px 30px; text-align: center; box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold); animation: toast-in .25s ease-out; }
.modal h2 { font-size: 2rem; margin: 6px 0 10px; }
.modal-mark { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.modal-mark .icon { width: 24px; height: 24px; }
.modal-body { color: var(--muted); margin-bottom: 24px; }
.modal-body .linkbox { display: flex; gap: 6px; margin-top: 14px; }
.modal-body .linkbox input { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; background: #fcfbf8; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Template picker (job editor) */
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tpl { text-align: left; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; font: inherit; transition: all .15s; position: relative; }
.tpl:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(13,12,10,.06); }
.tpl.on { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.tpl.on::after { content: ''; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.tpl strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--black); }
.tpl span { font-size: .78rem; color: var(--muted); }
.tpl.blank strong { color: var(--muted); }
.weights { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; }
.weights span { display: block; height: 100%; }
.weights-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .74rem; color: var(--muted); }
.weights-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }

/* Demo home */
.demo-hero { background: var(--black); color: #fff; position: relative; overflow: hidden; padding: 72px 24px 88px; }
.demo-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 80% at 90% 10%, rgba(201,168,76,.2), transparent 60%), repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 120px); }
.demo-hero .inner { position: relative; max-width: 1080px; margin: 0 auto; }
.demo-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; line-height: 1.04; margin: 14px 0 0; max-width: 760px; }
.demo-hero h1 em { color: var(--gold); }
.demo-hero p { color: #a9a59c; font-size: 1.05rem; max-width: 600px; margin-top: 18px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: -52px; position: relative; }
@media (max-width: 800px) { .roles { grid-template-columns: 1fr; } }
.role-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 30px; display: flex; flex-direction: column; }
.role-card .role-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--black); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.role-card .role-ico .icon { width: 22px; height: 22px; }
.role-card h2 { font-size: 1.9rem; margin: 6px 0 8px; }
.role-card ul { list-style: none; padding: 0; margin: 4px 0 24px; flex: 1; }
.role-card li { padding: 7px 0 7px 22px; position: relative; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: .92rem; }
.role-card li::before { content: ''; position: absolute; left: 2px; top: 16px; width: 10px; height: 1px; background: var(--gold); }
.tour-steps { counter-reset: s; display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tour-step { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.tour-step:last-child { border-bottom: 0; }
.tour-step .n { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); font-weight: 600; }
.tour-step h3 { margin: 0 0 2px; font-size: 1.25rem; }
.tour-step p { margin: 0; color: var(--muted); font-size: .88rem; }
.tour-step .who { font-size: .6rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px; border-radius: 2px; background: var(--black); color: var(--gold); white-space: nowrap; }
.tour-step .who.cand { background: var(--gold-soft); color: var(--gold-3); }
@media (max-width: 700px) { .tour-step { grid-template-columns: 40px 1fr; } .tour-step .who, .tour-step .btn { grid-column: 2; justify-self: start; } }

/* Gestion Zagora brand mark */
.brand-mark { height: 24px; width: auto; display: block; flex-shrink: 0; }
.topbar .logo .brand-mark { height: 24px; padding-right: 14px; margin-right: 2px; border-right: 1px solid rgba(201,168,76,.35); box-sizing: content-box; }
.brand-mark.lg { height: 40px; }
.brand-mark.xl { height: 64px; }
.site-footer .brand .brand-mark { height: 20px; }

/* Phones: recruiter header */
@media (max-width: 700px) {
  .topbar .inner { gap: 14px; overflow-x: auto; }
  .topbar .logo small { display: none; }
  .topbar nav { gap: 14px; }
}

/* Recruiter portal header matches: full width, corner to corner */
.topbar .inner { max-width: none; padding-left: 40px; padding-right: 40px; }
@media (max-width: 700px) { .topbar .inner { padding-left: 16px; padding-right: 16px; } }
/* Shared responsive foundations and navigation. */
[hidden] { display: none !important; }
img { max-width: 100%; }
main, section, article, aside, form, .grid > *, .row > *, .field, .card, .searchbar, .page-head > * { min-width: 0; }
h1, h2, h3, p, .meta, .chip, .alert, .profile-head a { overflow-wrap: anywhere; }
input, select, textarea { min-width: 0; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 4px; }
.btn { min-height: 44px; white-space: normal; text-align: center; line-height: 1.4; letter-spacing: .1em; }
.btn.sm { min-height: 36px; }
.card-title { gap: 12px; flex-wrap: wrap; }
.table-wrap { max-width: 100%; overscroll-behavior-x: contain; }
.table-wrap table { min-width: 680px; }
.table-wrap td { overflow-wrap: anywhere; }
.kanban { max-width: 100%; overscroll-behavior-x: contain; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 110; padding: 12px 20px; background: #fff; color: var(--black); border: 2px solid var(--gold); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.topbar .inner { height: 76px; gap: 28px; padding-inline: clamp(20px, 3vw, 48px); overflow: visible; }
.topbar .logo { flex-shrink: 0; font-size: 1.3rem; line-height: 1.2; }
.topbar .logo small { display: block; font-size: .57rem; margin: 5px 0 0; }
.topbar .logo .brand-mark { height: 26px; }
.header-links { display: flex; flex: 1; align-items: center; gap: 24px; align-self: stretch; min-width: 0; }
.topbar nav { align-items: stretch; gap: 24px; }
.topbar nav a { white-space: nowrap; font-size: .66rem; letter-spacing: .1em; }
.header-links > a, .logout { font-size: .64rem; letter-spacing: .1em; white-space: nowrap; }
.logout { border: 0; padding: 12px 0; font-family: inherit; background: transparent; color: #b9b6ae; text-transform: uppercase; cursor: pointer; }
.logout:hover { color: #fff; }
.nav-toggle { display: none; align-items: center; justify-content: center; gap: 9px; min-width: 44px; height: 44px; padding: 10px; background: transparent; color: #fff; border: 1px solid #48443a; border-radius: 3px; font: inherit; font-size: .75rem; cursor: pointer; }
.nav-toggle .icon { width: 19px; height: 19px; }
.topbar :focus-visible { outline-color: var(--gold); }
body:has(.admin-top) .container { padding-top: 40px; }
.stat { min-height: 140px; display: flex; flex-direction: column; justify-content: center; }
.stat .label { letter-spacing: .09em; font-size: .7rem; }
.filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); }
.templates { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.toast { max-width: calc(100% - 40px); overflow-wrap: anywhere; }
.modal { max-height: calc(100dvh - 40px); overflow-y: auto; }
.auth .panel { gap: 40px; }
.auth .form-side { min-width: 0; }
@media (max-width: 1100px) {
  .topbar .inner { height: 72px; justify-content: space-between; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 24px 24px; background: var(--black); border-bottom: 1px solid #494130; box-shadow: 0 16px 30px #0002; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .topbar.menu-open .header-links { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .topbar nav { flex-direction: column; gap: 0; flex: none; height: auto; }
  .topbar nav a { min-height: 48px; padding: 12px 0; border-bottom: 1px solid #302c23; font-size: .78rem; }
  .header-links > a, .logout { min-height: 44px; display: flex; align-items: center; font-size: .75rem; }
  .topbar .header-links .btn { align-self: flex-start; padding: 12px 18px; }
}
@media (min-width: 601px) and (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .container { padding: 28px 20px 48px; }
  .card { padding: 22px 18px; }
  .page-head { align-items: flex-start; margin-bottom: 24px; }
  .page-head > .row { width: 100%; }
  .page-head .btn { flex: 1; }
  .profile-head > .row { align-items: flex-start; }
  .profile-head .score { width: 48px; height: 48px; }
  .q-row > .grid { grid-template-columns: minmax(0, 1fr) auto !important; }
  .q-row > .grid > .field:first-child { grid-column: 1 / -1; }
  .q-row .q-ko-wrap { width: 100%; }
  .searchbar:has(button) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .searchbar:has(button) input { grid-column: 1 / -1; }
  .searchbar:has(button) .icon-lead { top: 26px; }
  .stage-tabs { flex-basis: 100% !important; }
  .stage-tabs button { padding: 12px 9px; letter-spacing: .04em; }
  .breakdown .line { grid-template-columns: minmax(0, 110px) minmax(0, 1fr) 42px; gap: 8px; }
  .funnel .step { grid-template-columns: 88px minmax(0, 1fr) 28px; gap: 10px; }
  .modal { padding: 26px 20px; }
  .modal-body .linkbox { flex-wrap: wrap; }
}
@media (max-width: 380px) { .topbar .logo { font-size: 1.12rem; } .nav-toggle { font-size: 0; gap: 0; } .topbar .inner { gap: 12px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.table-link { color: inherit; }
.table-link:hover { color: var(--gold-3); text-decoration: underline; text-underline-offset: 3px; }
.container .eyebrow { color: var(--gold-2); }
.profile-head .eyebrow { color: var(--gold); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 700px) { .profile-head { padding: 24px 18px !important; } .profile-head .row .row { gap: 12px !important; } .profile-head .meta span { min-width: 0; } }
[aria-invalid=true] { border-color: var(--danger) !important; }
@media (max-width: 700px) {
  input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=url], input[type=search], input[type=date], select, textarea { font-size: 1rem; }
}
