:root {
  --navy: #0a1628;
  --navy-2: #1b3a6b;
  --blue: #4e8fcc;
  --blue-dark: #3372ad;
  --paper: #fafaf8;
  --gray: #f3efe6;
  --white: #fff;
  --ink: #1a1a1a;
  --ink-2: #3a3a3a;
  --ink-3: #6a6a6a;
  --rule: #e4e2dc;
  --rule-strong: #cdcac1;
  --wrap: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; }
.wrap {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
}
.display {
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.nav {
  position: sticky;
  z-index: 10;
  top: 0;
  height: 64px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: var(--navy);
  color: var(--white);
}
.nav__row {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  color: var(--white);
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.025em;
  text-decoration: none;
}
.brand span {
  margin-left: 7px;
  color: rgba(255,255,255,.6);
  font: 500 12px Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}
.back {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s ease;
}
.back:hover { color: var(--white); }

.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
}
.kicker {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.06;
}
.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ink-2);
  font-size: 19px;
  font-weight: 300;
  line-height: 1.65;
  text-wrap: pretty;
}
.notice {
  max-width: 830px;
  margin-top: 30px;
  padding: 17px 20px;
  border: 1px solid var(--rule);
  background: var(--gray);
  color: var(--ink-2);
  font-size: 14px;
}

.content { padding: 68px 0 88px; }
.content-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 94px;
}
.toc p {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  transition: color .15s ease;
}
.toc a:hover { color: var(--ink); }

.prose {
  min-width: 0;
  max-width: none;
}
.prose > h2,
.prose > h3,
.prose > p,
.prose > ul,
.prose > ol,
.prose > .info,
.prose > .printbar {
  max-width: 730px;
}
.prose h2 {
  margin: 48px 0 14px;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-optical-sizing: auto;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.18;
  text-wrap: balance;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin: 28px 0 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}
.prose p {
  margin: 0 0 19px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 23px;
  color: var(--ink-2);
}
.prose li { margin-bottom: 8px; }
.info {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid var(--rule);
  background: var(--white);
}
.info h3 { margin-top: 0; }
.info p:last-child { margin-bottom: 0; }

.checklist {
  margin: 22px 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.checklist li {
  margin: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}
.checklist label {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  min-height: 48px;
  padding: 13px 10px 12px;
  cursor: pointer;
}
.checklist label:hover { background: var(--white); }
.checklist input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  border: 1.5px solid var(--ink-3);
  border-radius: 2px;
  background: var(--white);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.checklist input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.checklist input:checked {
  border-color: var(--ink);
  background:
    var(--ink)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.checklist input:checked + span { color: var(--ink); }
.printbar__actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}
.printbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 32px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: var(--white);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.button:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
}
.button--ghost {
  border-color: var(--rule);
  background: transparent;
  color: var(--ink-2);
}
.button--ghost:hover {
  border-color: var(--ink-3);
  background: var(--white);
}

.map-scroll {
  margin: 0;
}
.map {
  display: grid;
  width: 100%;
  min-width: 0;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--white);
}
.map__head,
.map__row {
  display: grid;
  grid-template-columns: minmax(150px, 1.15fr) repeat(5, minmax(0, 1fr));
}
.map__head {
  background: var(--navy);
  color: var(--white);
}
.map__head div {
  padding: 16px 12px;
  border-right: 1px solid rgba(255,255,255,.14);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.4;
  text-transform: uppercase;
}
.map__head div:last-child,
.map__cell:last-child { border-right: 0; }
.map__row { border-top: 1px solid var(--rule); }
.map__cell {
  min-height: 72px;
  padding: 14px 12px;
  border-right: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
}
.map__cell:first-child {
  color: var(--ink);
  font-weight: 600;
}
.map__cell--yes {
  background: #e8f1fa;
  color: var(--navy-2);
  font-weight: 600;
}
.map__cell--review {
  background: var(--paper);
  color: var(--ink-2);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 16px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #e8f1fa;
}
.legend span:nth-child(2) i { background: var(--paper); }

.foot {
  padding: 35px 0;
  background: var(--navy);
  color: rgba(255,255,255,.62);
  font-size: 13px;
}
.foot__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.foot a { color: var(--white); }

@media (max-width: 1100px) {
  .map {
    gap: 14px;
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .map__head { display: none; }
  .map__row {
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--white);
  }
  .map__cell {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }
  .map__cell:nth-child(even) { border-right: 1px solid var(--rule); }
  .map__cell:first-child {
    grid-column: 1 / -1;
    padding: 14px 16px;
    border-bottom-color: rgba(255,255,255,.14);
    background: var(--navy);
    color: var(--white);
  }
  .map__cell:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
  .map__cell:not(:first-child)::before {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-3);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .map__cell:nth-child(2)::before { content: "Inițiază"; }
  .map__cell:nth-child(3)::before { content: "Verifică"; }
  .map__cell:nth-child(4)::before { content: "Aprobă"; }
  .map__cell:nth-child(5)::before { content: "Semnează"; }
  .map__cell:nth-child(6)::before { content: "Arhivează"; }
}

@media (max-width: 800px) {
  :root { --gutter: 20px; }
  .hero { padding: 58px 0 52px; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .content { padding: 52px 0 68px; }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .toc {
    position: static;
    padding: 17px;
    border: 1px solid var(--rule);
    background: var(--white);
  }
  .toc a {
    display: inline-block;
    margin-right: 14px;
  }
  .printbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .back { font-size: 13px; }
  .map__row { grid-template-columns: 1fr; }
  .map__cell,
  .map__cell:nth-child(even) { border-right: 0; }
  .map__cell:first-child,
  .map__cell:last-child { grid-column: auto; }
}

@media print {
  .nav,
  .foot,
  .printbar,
  .toc { display: none !important; }
  body {
    background: var(--white);
    font-size: 11pt;
  }
  .hero {
    padding: 0 0 18px;
    border: 0;
  }
  .hero h1 { font-size: 28pt; }
  .lead { font-size: 13pt; }
  .notice {
    margin-top: 15px;
    padding: 10px;
  }
  .content { padding: 20px 0; }
  .content-grid { display: block; }
  .prose { max-width: none; }
  .prose > h2,
  .prose > h3,
  .prose > p,
  .prose > ul,
  .prose > ol,
  .prose > .info { max-width: none; }
  .prose h2 {
    margin: 26px 0 8px;
    font-size: 20pt;
  }
  .checklist li { break-inside: avoid; }
  .checklist label {
    min-height: 40px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .map {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--rule);
    background: var(--white);
    break-inside: avoid;
  }
  .map__head,
  .map__row {
    display: grid;
    grid-template-columns: minmax(112px, 1.15fr) repeat(5, minmax(0, 1fr));
  }
  .map__row {
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--rule);
  }
  .map__cell,
  .map__cell:nth-child(even) {
    grid-column: auto;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
    background: transparent;
  }
  .map__cell:last-child { border-right: 0; }
  .map__cell:first-child {
    grid-column: auto;
    color: var(--ink);
  }
  .map__cell--yes { background: #e8f1fa; }
  .map__cell--review { background: var(--paper); }
  .map__cell::before { display: none !important; }
  .map__head div,
  .map__cell {
    padding: 8px;
    font-size: 8pt;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
