/* Direction: warm editorial HR studio — ivory paper, terracotta ink, serif display */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #e8dfd2;
  --border: #e8dfd2;
  --border-strong: #b5afaa;
  --ink: #292725;
  --muted: #645f5c;
  --accent: #c65d45;
  --accent-hover: #a84f3b;
  --accent-ink: #1c0d0a;
  --accent-text: #79454a;
  --accent-strong: #1b0f10;
  --accent-soft: #c65d45;
  --accent-border: #e1b0a3;
  --success: #79454a;
  --success-ink: #ffffff;
  --success-soft: #e8dfdb;
  --success-strong: #79454a;
  --warning: #c65d45;
  --warning-ink: #ffffff;
  --warning-soft: #f1e2db;
  --warning-strong: #9a4935;
  --danger: #79454a;
  --danger-ink: #ffffff;
  --danger-soft: #e8dfdb;
  --danger-strong: #79454a;
  --chart-1: #c65d45;
  --chart-2: #a68a0c;
  --chart-3: #097e46;
  --chart-4: #109ab2;
  --chart-5: #505db6;
  --chart-6: #c46fb5;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.015em;
  --radius-card: 12px;
  --radius-btn: 9px;
  --radius-input: 9px;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 30px rgb(0 0 0 / 0.05);
  --card-pad: 1.25rem;
  --x-on-photo: #FFFFFF;
  --x-sand: #E8DFD2;
  --x-charcoal: #292725;
  --x-terracotta: #C65D45;
  --x-burgundy: #79454A;
  --x-stone: #8B8580;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #180b09;
  --surface: #2f2322;
  --surface-2: #241715;
  --border: #382d2b;
  --border-strong: #5d5453;
  --ink: #f7f4ef;
  --muted: #9e9793;
  --accent: #c65d45;
  --accent-hover: #cf7561;
  --accent-ink: #1c0d0a;
  --accent-text: #cf7662;
  --accent-strong: #cf7662;
  --accent-soft: #3e1d16;
  --accent-border: #663024;
  --success: #79454a;
  --success-ink: #ffffff;
  --success-soft: #2d1817;
  --success-strong: #a78686;
  --warning: #c65d45;
  --warning-ink: #ffffff;
  --warning-soft: #3e1d16;
  --warning-strong: #cf7662;
  --danger: #79454a;
  --danger-ink: #ffffff;
  --danger-soft: #2d1817;
  --danger-strong: #a78686;
  --chart-1: #c65d45;
  --chart-2: #b89a0c;
  --chart-3: #209858;
  --chart-4: #00a8c2;
  --chart-5: #6877d3;
  --chart-6: #cc76bc;
}

/* HireCraft AI — shell mechanics, document styling, small motion */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 16rem;
  z-index: 40;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  transition: transform 0.28s ease, width 0.28s ease;
}
.app-main {
  margin-left: 16rem;
  transition: margin 0.28s ease;
  min-height: 100vh;
}
body.nav-collapsed .sidebar { width: 4.9rem; }
body.nav-collapsed .app-main { margin-left: 4.9rem; }
body.nav-collapsed .nav-label,
body.nav-collapsed .nav-only { display: none; }
body.nav-collapsed .nav-link { justify-content: center; padding-left: 0; padding-right: 0; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.7rem;
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nav-link:hover { background: var(--surface-2); }
.nav-link:active { transform: translateY(1px); }
.nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgb(0 0 0 / 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (max-width: 1023px) {
  .sidebar { transform: translateX(-101%); box-shadow: 0 18px 50px rgb(0 0 0 / 0.22); }
  body.nav-open .sidebar { transform: none; }
  .app-main { margin-left: 0 !important; }
  body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }
  body.nav-collapsed .nav-label,
  body.nav-collapsed .nav-only { display: initial; }
  body.nav-collapsed .sidebar { width: 16rem; }
}

/* generated / edited document */
.doc { line-height: 1.65; }
.doc > * + * { margin-top: 0.9rem; }
.doc h2 { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; }
.doc h3 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  padding-top: 0.4rem;
}
.doc ul { list-style: disc; padding-left: 1.2rem; }
.doc ul li + li { margin-top: 0.3rem; }
.doc hr { border-color: var(--border); }

.editor-area {
  min-height: 24rem;
  font-size: 0.86rem;
  line-height: 1.65;
}

/* motion */
.fade-in { animation: hc-fade 0.32s ease both; }
@keyframes hc-fade {
  from { opacity: 0.4; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.gen-ind { display: none; }
.htmx-request .gen-ind,
.gen-ind.htmx-request { display: inline-flex; }
.dot-pulse span {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
  display: inline-block;
  animation: hc-bounce 1s infinite ease-in-out;
}
.dot-pulse span:nth-child(2) { animation-delay: 0.14s; }
.dot-pulse span:nth-child(3) { animation-delay: 0.28s; }
@keyframes hc-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-5px); opacity: 1; }
}
html.reduced-motion .fade-in,
html.reduced-motion .dot-pulse span { animation: none; }

.bar-track { background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-fill { background: var(--accent); height: 100%; border-radius: 99px; transition: width 0.5s ease; }
.bar-fill-alt { background: var(--accent-strong); }
.col-fill { background: var(--accent); border-radius: 6px 6px 0 0; transition: height 0.5s ease; }

@media print {
  .no-print { display: none !important; }
  .sidebar { display: none; }
  .app-main { margin-left: 0 !important; }
  .print-doc { box-shadow: none !important; border: 0 !important; }
}
