@font-face {
  font-family: "Pretendard Variable";
  src: url("./PretendardVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* The supplied Vivaldi template takes precedence: A4 white paper, navy,
   Pretendard 400/500. UI specimens are static figures, not working forms. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --canvas: #edf0f3;
  --ink: #18212d;
  --muted: #5e6875;
  --accent: #1d3557;
  --soft: #edf2f7;
  --line: #d8dde4;
  --line-strong: #aeb7c2;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
strong, b, th { font-weight: 500; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px 20px; background: var(--paper); z-index: 50; }
.skip-link:focus { top: 12px; }
.report-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 20px 64px; }
.sheet {
  width: 210mm;
  min-width: 0;
  min-height: 297mm;
  margin-inline: auto;
  padding: 12mm 15mm 8mm;
  display: flex;
  flex-direction: column;
  gap: 6mm;
  background: var(--paper);
  box-shadow: 0 14px 40px rgb(20 31 44 / 10%);
  scroll-margin-top: 24px;
}
.sheet__body { display: flex; flex-direction: column; gap: 5mm; flex: 1; min-width: 0; }
.sheet__footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 3mm; color: var(--muted); font-size: 10px; line-height: 1.5; }
.sheet__footer span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.chapter { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.chapter > span:first-child { color: var(--accent); font-weight: 500; }
.section-heading { display: grid; gap: 12px; }
.section-heading h2 { font-size: 27px; line-height: 1.35; font-weight: 500; letter-spacing: -.04em; word-break: keep-all; text-wrap: balance; }
.section-heading > p, .body-copy, .block > p { font-size: 13px; line-height: 1.75; color: var(--muted); word-break: keep-all; }
.block { display: grid; gap: 12px; min-width: 0; }
.block h3 { font-size: 17px; line-height: 1.45; font-weight: 500; letter-spacing: -.025em; word-break: keep-all; }
.eyebrow { font-size: 11px; color: var(--accent); font-weight: 500; letter-spacing: .025em; }
.sample-notice { padding: 14px 16px; border: 1px solid var(--line); font-size: 12px; line-height: 1.7; color: var(--muted); }
.sample-notice strong { color: var(--ink); }
.label { display: inline-block; width: fit-content; border: 1px solid var(--line-strong); padding: 3px 7px; font-size: 10px; line-height: 1.4; color: var(--muted); font-weight: 500; white-space: nowrap; }
.label--accent { border-color: var(--accent); color: var(--accent); background: var(--soft); }
.callout { display: grid; gap: 10px; padding: 16px 20px; background: var(--soft); }
.callout h3 { font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: -.035em; word-break: keep-all; }
.callout p { font-size: 13px; line-height: 1.75; color: var(--muted); word-break: keep-all; }
.note { padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.75; color: var(--muted); word-break: keep-all; }
.note strong { color: var(--ink); }
.push-bottom { margin-top: auto; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.list { display: grid; gap: 6px; padding-left: 17px; margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); word-break: keep-all; }
.list li::marker { color: var(--accent); }
.numbered { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.numbered > li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.numbered__level { color: var(--accent); font-size: 12px; line-height: 1.7; font-weight: 500; }
.numbered h3 { font-weight: 500; font-size: 17px; line-height: 1.45; letter-spacing: -.025em; }
.numbered p { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--muted); word-break: keep-all; }

/* Tables are one consistent document primitive; only specimens may scroll. */
.table-wrap { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; table-layout: fixed; width: 100%; font-size: 12.5px; line-height: 1.6; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-size: 12px; color: var(--muted); padding-bottom: 10px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); word-break: keep-all; overflow-wrap: anywhere; }
thead { border-top: 1px solid var(--ink); background: var(--soft); }
tbody td { color: var(--muted); }
tbody td strong { color: var(--ink); }
.technology-table th, .technology-table td { padding: 9px 10px; }
.estimate-table th, .estimate-table td { padding: 10px; }
.acceptance-table th, .acceptance-table td { padding: 9px 10px; }
.sources { display: grid; gap: 7px; padding-left: 18px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.technology-sources > p, .source-section > p { font-size: 12px; }
.source-links { overflow-wrap: anywhere; }
.problem-solution { display: grid; gap: 10px; }
.problem-solution > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
.problem-solution dt { color: var(--accent); font-size: 12px; font-weight: 500; line-height: 1.8; }
.problem-solution dd { color: var(--muted); font-size: 13px; line-height: 1.75; word-break: keep-all; }

/* Employee-facing screen specimens. No simulated controls receive focus. */
.mockup { border: 1px solid var(--line-strong); border-radius: 6px; min-width: 0; background: var(--paper); }
.mockup__bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--soft); border-radius: 5px 5px 0 0; }
.mockup__bar strong { font-size: 14px; }
.mockup__bar > span { font-size: 10px; color: var(--muted); }
.mockup__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mockup__pane { display: grid; align-content: start; gap: 12px; padding: 17px; min-width: 0; }
.mockup__pane + .mockup__pane { border-left: 1px solid var(--line); }
.mockup__pane h3 { font-size: 13px; font-weight: 500; line-height: 1.5; }
.mockup__pane-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mockup__meta { font-size: 11px; line-height: 1.7; color: var(--muted); }
.mockup__quote { padding: 13px; border: 1px solid var(--line); font-size: 14px; line-height: 1.9; word-break: keep-all; }
.mockup__fields { display: grid; font-size: 12px; line-height: 1.6; }
.mockup__fields > div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.mockup__fields > div:last-child { border-bottom: 0; }
.mockup__fields dt { color: var(--muted); }
.mockup__fields dd { word-break: keep-all; overflow-wrap: anywhere; }
.mockup__task { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.65; }
.mockup__task > span { color: var(--muted); word-break: keep-all; }
.mockup__actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.mockup__control { display: inline-block; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.mockup__control--primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.mockup figcaption, .document-preview figcaption { font-size: 11px; line-height: 1.65; color: var(--muted); padding: 11px 16px; border-top: 1px solid var(--line); word-break: keep-all; }
.mockup__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px; gap: 12px; border-bottom: 1px solid var(--line); }
.mockup__metrics > div { display: grid; gap: 8px; padding-right: 12px; border-right: 1px solid var(--line); }
.mockup__metrics > div:last-child { border-right: 0; }
.mockup__metrics span { font-size: 11px; color: var(--muted); line-height: 1.5; }
.mockup__metrics strong { font-size: 23px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mockup__table thead { border-top: 0; }
.mockup__table th, .mockup__table td { padding: 10px; }
.mockup__table tbody tr:last-child > * { border-bottom: 0; }
.document-preview { display: grid; border: 1px solid var(--line-strong); }
.document-preview__title { display: grid; gap: 6px; padding: 14px 16px; }
.document-preview h3 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.document-preview dl { display: grid; padding: 0 16px 12px; font-size: 12px; line-height: 1.65; }
.document-preview dl > div { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 10px; padding-block: 5px; }
.document-preview dt { color: var(--accent); }
.document-preview dd { color: var(--muted); word-break: keep-all; }
.budget-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 20px; gap: 20px; background: var(--soft); }
.budget-totals > div { display: grid; gap: 7px; }
.budget-totals span { font-size: 12px; color: var(--muted); }
.budget-totals strong { font-size: 27px; line-height: 1.2; color: var(--accent); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.budget-totals small { font-size: 12px; color: var(--muted); line-height: 1.6; }
.estimate-assumptions { font-size: 12px; }
.operating-budget { border-top: 1px solid var(--line); padding-top: 14px; gap: 8px; }
.operating-budget > p { font-size: 12px; }
.operating-budget strong { color: var(--ink); }

/* Cover and navigation preserve the original report treatment. */
.cover .sheet__body { gap: 8mm; }
.cover__heading { display: grid; gap: 20px; padding-top: 12mm; }
.cover__heading h1 { display: grid; gap: 12px; font-size: 40px; line-height: 1.3; font-weight: 500; letter-spacing: -.05em; word-break: keep-all; }
.cover__heading h1 span:first-child { font-size: 24px; color: var(--accent); letter-spacing: -.035em; }
.cover__heading p { font-size: 17px; line-height: 1.75; color: var(--muted); letter-spacing: -.02em; word-break: keep-all; }
.cover__scope { display: grid; border-top: 1px solid var(--ink); }
.cover__scope > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 20px; padding-block: 13px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.75; }
.cover__scope dt { color: var(--muted); }
.cover__signature { display: grid; gap: 8px; margin-top: auto; padding-top: 6mm; }
.cover__signature strong { font-size: 20px; letter-spacing: -.035em; }
.cover__signature p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.toc {
  position: fixed; top: 38px; left: max(20px, calc((100vw - 210mm) / 2 - 224px));
  width: 190px; max-height: calc(100vh - 76px); overflow-y: auto;
  color: var(--muted); font-size: 12px; line-height: 1.6;
}
.toc__brand { color: var(--accent); font-size: 13px; font-weight: 500; letter-spacing: .045em; }
.toc__subtitle { font-size: 11px; padding-top: 6px; }
.toc nav { padding-top: 24px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-strong); }
.toc nav a { display: grid; grid-template-columns: 24px 1fr; gap: 8px; margin-left: -1px; padding: 9px 0 9px 13px; text-decoration: none; border-left: 2px solid transparent; }
.toc a[aria-current="location"] { color: var(--accent); border-left-color: var(--accent); font-weight: 500; }
.toc__actions { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 20px; }
.print-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); background: var(--paper); font-size: 12px; cursor: pointer; }
.print-button:hover { background: var(--soft); }
.toc__hint { font-size: 11px; }
.mobile-nav { display: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media screen and (max-width: 1239px) {
  .toc { display: none; }
  .mobile-nav { display: block; position: sticky; top: 0; z-index: 10; padding: 12px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .mobile-nav summary { display: flex; justify-content: space-between; cursor: pointer; font-size: 13px; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 12px; }
  .mobile-nav nav a { padding: 10px 4px; font-size: 12px; text-decoration: none; }
  .mobile-nav .print-button { margin-top: 12px; }
  .sheet { scroll-margin-top: 68px; }
}
@media screen and (max-width: 860px) {
  .report-stack { padding: 20px 12px 40px; gap: 20px; }
  .sheet { width: 100%; min-height: 0; padding: 28px 24px 20px; gap: 30px; }
  .sheet__body { gap: 24px; }
  .sheet__footer { font-size: 9px; }
  .cover__heading { padding-top: 24px; }
  .cover__heading h1 { font-size: 34px; }
  .cover__heading h1 span:first-child { font-size: 20px; }
  .cover__heading p { font-size: 16px; }
  .cover__signature { padding-top: 12px; }
  .section-heading h2 { font-size: 25px; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .numbered > li { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .cover__scope > div { grid-template-columns: 65px minmax(0, 1fr); gap: 12px; }
  .callout { padding: 18px; }
  th, td { padding: 10px 8px; }
  table { font-size: 12px; }
  .wide-table, .technology-table, .estimate-table, .acceptance-table, .diagnosis-table { min-width: 560px; }
  .chapter { flex-wrap: wrap; gap: 4px 16px; }
  .mockup__split { grid-template-columns: minmax(0, 1fr); }
  .mockup__pane + .mockup__pane { border-left: 0; border-top: 1px solid var(--line); }
  .mockup__fields > div { grid-template-columns: 85px minmax(0, 1fr); }
  .problem-solution > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .budget-totals { grid-template-columns: minmax(0, 1fr); }
  .budget-totals > div + div { border-top: 1px solid var(--line-strong); padding-top: 16px; }
}
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { background: var(--paper); }
  .toc, .mobile-nav, .skip-link { display: none; }
  .report-stack { display: block; padding: 0; }
  .sheet { width: 210mm; min-height: 297mm; margin: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .sheet { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .table-wrap { overflow: visible; }
  table { width: 100%; }
  tr, figure, .callout, .budget-totals, .problem-solution > div { break-inside: avoid; }
  h2, h3, caption { break-after: avoid; }
  a { text-decoration: none; }
}

/* v3: twenty A4 sheets, title-only dividers, accessible inline diagrams.
   Diagram Design's SVG/connector primitives use the supplied Vivaldi skin. */
.divider { justify-content: center; }
.divider h2 { font-size: 48px; line-height: 1.25; font-weight: 500; letter-spacing: -.05em; color: var(--accent); word-break: keep-all; }
.conversation { padding: 24px; border-left: 2px solid var(--accent); background: var(--soft); font-size: 19px; line-height: 1.85; letter-spacing: -.025em; word-break: keep-all; }
.conversation cite { display: block; margin-top: 16px; color: var(--muted); font-size: 11px; font-style: normal; letter-spacing: 0; }
.diagram { margin: 0; min-width: 0; }
.diagram svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.diagram figcaption { border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.65; word-break: keep-all; }
.d-text { font-size: 16px; font-weight: 500; fill: var(--ink); }
.d-sub { font-size: 12px; font-weight: 400; fill: var(--muted); }
.d-zone-label { font-size: 12px; font-weight: 500; fill: var(--accent); }
.d-node > rect, .d-node > path { fill: var(--paper); stroke: var(--line-strong); stroke-width: 1.25; }
.d-node--focal > rect, .d-node--focal > path { fill: var(--soft); stroke: var(--accent); stroke-width: 1.6; }
.d-edge { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.d-edge--accent { stroke: var(--accent); stroke-width: 1.8; }
.d-edge--link { stroke: var(--accent); }
.d-edge--manual { stroke-dasharray: 5 5; }
.d-arrow { fill: var(--muted); }
.d-arrow--accent, .d-arrow--link { fill: var(--accent); }
.d-label > rect { fill: var(--paper); }
.d-zone { fill: var(--canvas); fill-opacity: .3; stroke: var(--line); stroke-width: 1; stroke-dasharray: 4 4; }
.d-rule { fill: none; stroke: var(--line); stroke-width: 1; }
.d-rule--dash { stroke: var(--line-strong); stroke-dasharray: 4 4; }
.d-bar { fill: var(--soft); stroke: var(--line-strong); stroke-width: 1; }
.d-bar--focal { fill: var(--accent); stroke: var(--accent); }
.option-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.option-price strong { font-size: 29px; line-height: 1.25; font-weight: 500; letter-spacing: -.035em; color: var(--accent); }
.option-price span { font-size: 12px; line-height: 1.7; color: var(--muted); }
.option-page .diagram svg { height: 304px; }
.option-page th, .option-page td { padding: 8px 10px; }
.option-page .note { margin-top: 0; }
.toc nav { padding-top: 18px; }
.toc nav a { padding-top: 6px; padding-bottom: 6px; font-size: 11px; }
.toc__section a { color: var(--accent); font-weight: 500; margin-top: 8px; }
.mockup .table-wrap { border-radius: 0; }
.mockup table caption { padding: 10px 14px; font-size: 11px; }
@media screen and (max-width: 1239px) {
  .mobile-nav[open] { max-height: 80vh; overflow-y: auto; }
}
@media screen and (max-width: 860px) {
  .divider { min-height: 65vh; }
  .divider h2 { font-size: clamp(34px, 6vw, 48px); }
  .conversation { font-size: 17px; padding: 20px; }
  .diagram { overflow-x: auto; padding-bottom: 8px; }
  .diagram svg { min-width: 580px; }
  .option-page .diagram svg { height: auto; }
  .diagram figcaption { min-width: 0; }
  .mockup table { min-width: 560px; }
  .option-price { gap: 8px 12px; }
}
@media print {
  .divider { min-height: 297mm; }
  .diagram { overflow: visible; padding: 0; }
  .diagram svg { min-width: 0; }
  .option-page .diagram svg { height: 304px; }
  .conversation, .option-price { break-inside: avoid; }
}
