/* Invest Europe MRF Validator 2026 - styled after investeurope.eu
   Palette: navy #003359, cyan #81E1F9, bright blue #00AFD8, ice #E5F6FB, mist #F3F7FA, slate #51626F */

:root {
  --navy: #003359;
  --navy-deep: #012744;
  --cyan: #81e1f9;
  --blue: #00afd8;
  --ice: #e5f6fb;
  --mist: #f3f7fa;
  --line: #c9d6e0;
  --slate: #51626f;
  --steel: #7f99ac;
  --white: #ffffff;

  --ok: #0f7b5f;
  --ok-bg: #e3f4ee;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --err: #b42318;
  --err-bg: #fdecea;
  --info-bg: var(--ice);

  --font-body: "Barlow", "Interstate", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Interstate Condensed", "Arial Narrow", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

a { color: var(--navy); text-decoration-color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------------------------------------------------------- header */
.utility {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-cond);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.utility .wrap { display: flex; justify-content: flex-end; gap: 6px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.utility a { text-decoration: none; color: var(--navy); }
.utility a:hover { color: var(--blue); }
.utility .dot { color: var(--steel); }

.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }

.wordmark { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.wordmark .logo { display: block; height: 46px; width: auto; }
.site-footer .wordmark .logo { filter: brightness(0) invert(1); }   /* white version of the navy logo */
.wordmark .divider { width: 1px; align-self: stretch; background: var(--line); }
.wordmark .product { font-family: var(--font-cond); font-size: 15px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.15; color: var(--slate); }
.wordmark .product strong { display: block; color: var(--navy); font-weight: 600; }

.mainnav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.mainnav a {
  font-family: var(--font-cond); font-weight: 500; font-size: 19px; letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; color: var(--navy); padding: 4px 0; border-bottom: 2px solid transparent;
}
.mainnav a:hover, .mainnav a.active { border-bottom-color: var(--blue); color: var(--navy); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-cond); font-weight: 500; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 160px; padding: 7px 20px 7px 7px; border: 1px solid var(--navy);
  background: var(--white); color: var(--navy); cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s;
}
.btn::before {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003359' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/14px no-repeat;
}
.btn:hover { background: var(--ice); color: var(--navy); }
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover { background: var(--navy-deep); color: var(--white); }
.btn.download::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003359' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v12M6 11l6 6 6-6'/%3E%3C/svg%3E");
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.small { font-size: 13px; padding: 4px 14px 4px 4px; }
.btn.small::before { width: 20px; height: 20px; background-size: 11px; }

/* ---------------------------------------------------------------- headings & hero */
.kicker { font-family: var(--font-cond); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin: 0 0 8px; }
.display {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(38px, 6.5vw, 76px); line-height: .98; margin: 0;
}
h2.section {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.05; margin: 0 0 6px;
}
h3 { font-weight: 400; font-size: 23px; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 8px; }

.hero { padding: 36px 0 28px; }
.hero .rule { height: 4px; width: 180px; background: var(--blue); margin: 22px 0 18px; }
.hero .lead { font-size: 19px; max-width: 760px; color: var(--navy); margin: 0; }
.hero .lead + .lead { margin-top: 10px; font-size: 16px; color: var(--slate); }

.tabsline { border-top: 1px solid var(--line); position: relative; margin: 30px 0 22px; }
.tabsline::before { content: ""; position: absolute; left: 0; top: -2px; width: 180px; height: 3px; background: var(--blue); }

/* ---------------------------------------------------------------- panels & cards */
.panel { background: var(--ice); border-radius: var(--radius); padding: clamp(18px, 3vw, 32px); }
.panel.mist { background: var(--mist); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.level-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
@media (max-width: 640px) { .level-picker { grid-template-columns: minmax(0, 1fr); } }
.level-picker label {
  position: relative; display: block; cursor: pointer; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px 14px 46px; transition: border-color .15s, box-shadow .15s;
}
.level-picker input { position: absolute; opacity: 0; pointer-events: none; }
.level-picker label::before {
  content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--steel); background: var(--white);
}
.level-picker label:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.level-picker label:has(input:checked)::before { border-color: var(--navy); background: radial-gradient(circle, var(--navy) 0 5px, var(--cyan) 5.5px); }
.level-picker label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.level-picker .t { font-family: var(--font-cond); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; display: block; }
.level-picker .d { font-size: 14px; color: var(--slate); }

.dropzone {
  display: block; position: relative;
  border: 1.5px dashed var(--steel); border-radius: 12px; background: var(--white);
  padding: 30px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: #f6fcfe; }
.dropzone .icon { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; background: var(--cyan); display: grid; place-items: center; }
.dropzone strong { font-family: var(--font-cond); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; display: block; }
.dropzone .hint { color: var(--slate); font-size: 14px; }
.dropzone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filelist { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.filelist li { background: var(--ice); border-radius: 99px; padding: 3px 12px; font-size: 14px; }

.form-actions { display: flex; gap: 14px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.form-actions .note { font-size: 14px; color: var(--slate); }

.sidebar h3 { font-family: var(--font-cond); font-size: 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--navy); padding-top: 12px; }
.sidebar p { font-size: 15px; color: var(--slate); margin: 0 0 14px; }
.sidebar .links { display: grid; gap: 10px; margin-bottom: 26px; justify-items: start; }

.card { border-top: 1px solid var(--navy); padding-top: 14px; }
.card h3 { font-family: var(--font-cond); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; }
.card p, .card li { font-size: 15px; color: var(--slate); }
.card ul { padding-left: 18px; margin: 0; }
.card .num { font-family: var(--font-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--blue); }

/* ---------------------------------------------------------------- results */
.alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 14px; font-size: 15px; }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.report { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 28px; overflow: hidden; }
.report-head { padding: 20px clamp(16px, 3vw, 28px); background: var(--mist); border-bottom: 1px solid var(--line); }
.report-head .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.report-head h3 { font-size: 28px; margin: 0; }
.meta { font-size: 14px; color: var(--slate); display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 4px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-cond); font-weight: 600; font-size: 14px;
  letter-spacing: .05em; text-transform: uppercase; padding: 4px 12px; border-radius: 99px; white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.err { background: var(--err-bg); color: var(--err); }
.badge.level { background: var(--navy); color: var(--white); }
.badge.soft { background: var(--ice); color: var(--navy); }

.report-body { padding: 20px clamp(16px, 3vw, 28px) 24px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 0 0 22px; }
.kpi { border-radius: 10px; padding: 10px 12px; background: var(--mist); color: var(--navy); display: block; }
.kpi .n { font-family: var(--font-display); font-weight: 900; font-size: 30px; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.kpi .l { font-family: var(--font-cond); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); }
.kpi.ok .n { color: var(--ok); }
.kpi.err .n { color: var(--err); }
.kpi.warn .n { color: var(--warn); }
.kpi.zero .n { color: var(--steel); }

.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; margin: 0 0 24px; }
.meter .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.meter .row b { font-family: var(--font-cond); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.meter .row span { font-variant-numeric: tabular-nums; font-weight: 600; }
.meter .bar { height: 8px; background: var(--ice); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.meter .bar i { display: block; height: 100%; background: var(--steel); border-radius: 99px; }
.meter.applies .bar i { background: var(--blue); }
.meter .sub { font-size: 12px; color: var(--slate); margin-top: 3px; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }
.toolbar input[type=search] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 15px; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 99px; padding: 8px 16px; background: var(--white);
}
.toolbar input[type=search]:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

details.sec { border-top: 1px solid var(--line); }
details.sec:last-of-type { border-bottom: 1px solid var(--line); }
details.sec > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 4px;
  font-family: var(--font-cond); font-weight: 600; font-size: 18px; letter-spacing: .03em; text-transform: uppercase;
}
details.sec > summary::-webkit-details-marker { display: none; }
details.sec > summary::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003359' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/12px no-repeat;
  transition: transform .15s;
}
details.sec[open] > summary::before { transform: rotate(90deg); }
details.sec > summary .count { margin-left: auto; font-family: var(--font-body); font-weight: 600; font-size: 14px; background: var(--mist); border-radius: 99px; padding: 1px 10px; letter-spacing: 0; }
details.sec.err > summary .count { background: var(--err-bg); color: var(--err); }
details.sec.warn > summary .count { background: var(--warn-bg); color: var(--warn); }
details.sec.ok > summary .count { background: var(--ok-bg); color: var(--ok); }
details.sec .explain { font-size: 14px; color: var(--slate); margin: -4px 0 10px 38px; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-family: var(--font-cond); font-weight: 600; font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--slate); border-bottom: 1.5px solid var(--navy); padding: 8px 10px; white-space: nowrap;
}
table.data td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
table.data tr:hover td { background: var(--mist); }
table.data .ref { white-space: nowrap; color: var(--slate); font-variant-numeric: tabular-nums; }
table.data code, code.cid { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; color: var(--navy); word-break: break-word; }
table.data .metric-name { display: block; color: var(--slate); font-size: 13px; }
td.note { min-width: 260px; }
.empty { color: var(--slate); font-size: 14px; padding: 2px 0 16px 38px; margin: 0; }

/* ---------------------------------------------------------------- metrics page */
.pill-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.pill-tabs a {
  font-family: var(--font-cond); font-weight: 500; font-size: 15px; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--navy); border-radius: 99px; padding: 6px 16px; text-decoration: none;
}
.pill-tabs a.active { background: var(--navy); color: var(--white); }
.req { font-family: var(--font-cond); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.req span { display: inline-block; border-radius: 99px; padding: 1px 8px; margin: 0 4px 3px 0; background: var(--ice); }
.req .opt { background: var(--mist); color: var(--slate); }
.req .cond { background: var(--warn-bg); color: var(--warn); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #c6d3dd; margin-top: 64px; padding: 36px 0 30px; font-size: 14px; }
.site-footer a { color: var(--white); }
.site-footer .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .wordmark { color: var(--white); }
.site-footer .wordmark .product, .site-footer .wordmark .product strong { color: #c6d3dd; }
.site-footer .wordmark .divider { background: #335c7a; }
.site-footer p { margin: 0 0 6px; max-width: 560px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- collapsible "What's new" */
details.whatsnew > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; }
details.whatsnew > summary::-webkit-details-marker { display: none; }
details.whatsnew > summary h2 { margin: 0; }
details.whatsnew > summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003359' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform .15s;
}
details.whatsnew[open] > summary::after { transform: rotate(180deg); }
details.whatsnew[open] > summary { margin-bottom: 10px; }
details.whatsnew > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 4px; }

/* ---------------------------------------------------------------- changes from 2025 */
.changes-toggle { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin: 0 0 16px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--font-cond); font-weight: 500; font-size: 16px; letter-spacing: .03em; text-transform: uppercase; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.changes-summary { font-size: 14px; color: var(--slate); display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chg { display: inline-block; font-family: var(--font-cond); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; border-radius: 99px; padding: 1px 9px; }
.chg.new { background: #dff5e9; color: var(--ok); }
.chg.changed { background: var(--warn-bg); color: var(--warn); }
.chg.removed { background: var(--err-bg); color: var(--err); }
.chg.same { background: var(--mist); color: var(--slate); }
table.data .change-col { display: none; }
table.data.show-changes .change-col { display: table-cell; }
table.data.show-changes tr.chg-new td:first-child { box-shadow: inset 4px 0 0 var(--ok); }
table.data.show-changes tr.chg-changed td:first-child { box-shadow: inset 4px 0 0 #e0a100; }
tr.chg-removed td:first-child { box-shadow: inset 4px 0 0 var(--err); }
tr.chg-removed code { text-decoration: line-through; text-decoration-color: var(--err); }

/* ---------------------------------------------------------------- documentation page */
.doc { max-width: 860px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } .doc-toc { position: static !important; } }
.doc-toc { position: sticky; top: 20px; border-top: 1px solid var(--navy); padding-top: 12px; font-size: 15px; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.doc-toc a { text-decoration: none; }
.doc-toc .kicker { margin-bottom: 10px; }
.doc section { margin: 0 0 40px; scroll-margin-top: 20px; }
.doc h2.section { border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 14px; }
.doc h2.section .letter { color: var(--blue); margin-right: 10px; }
.doc h3 { font-family: var(--font-cond); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; margin: 22px 0 8px; }
.doc p, .doc li { font-size: 16px; }
.doc ul, .doc ol.steps { padding-left: 22px; }
.doc li + li { margin-top: 4px; }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; background: var(--mist); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.callout { background: var(--ice); border-radius: 12px; padding: 14px 18px; margin: 16px 0; font-size: 15px; }
.callout.warn { background: var(--warn-bg); color: #5c3c00; }
.callout strong { font-family: var(--font-cond); font-size: 16px; letter-spacing: .03em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0; counter-reset: step; }
@media (max-width: 700px) { .flow { grid-template-columns: minmax(0, 1fr); } }
.flow > div { background: var(--mist); border-radius: 12px; padding: 16px; counter-increment: step; }
.flow > div::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 600; margin-bottom: 8px; }
.flow h3 { margin: 0 0 4px; }
.flow p { margin: 0; font-size: 15px; color: var(--slate); }
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0; }
.numbers ul { list-style: none; padding: 0; margin: 0; }
.numbers li { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; padding: 3px 0; }
.numbers .bad li::before { content: "✕  "; color: var(--err); font-weight: 700; }
.numbers .good li::before { content: "✓  "; color: var(--ok); font-weight: 700; }
dl.cols { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; margin: 12px 0; }
dl.cols dt { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; font-weight: 600; }
dl.cols dd { margin: 0; }
@media (max-width: 600px) { dl.cols { grid-template-columns: minmax(0, 1fr); } dl.cols dd { margin-bottom: 8px; } }
.factcheck li { font-size: 15px; }

[hidden] { display: none !important; }
.inline-chg { display: none; margin-top: 4px; }
table.data.show-changes .inline-chg { display: inline-block; }

/* ---------------------------------------------------------------- flowchart & dispute pages */
.process { max-width: 980px; }
.kicker a { color: inherit; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--slate); margin: 0 0 12px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .25); flex: none; }
.legend .dash { width: 30px; height: 0; border-top: 3px dashed; flex: none; }
.sw.lp { background: #f9cfa5; } .sw.vc { background: #aeeaf7; } .sw.pc { background: #fdf0a3; }
.sw.normal { background: #a8eec7; } .sw.small { background: #fdf0a3; } .sw.medium { background: #fbd84a; } .sw.dispute { background: #f8615e; }
.dash.export { border-color: #8ed16a; } .dash.import { border-color: #3f9be6; } .dash.all { border-color: #9b2fae; }

.diagram { margin: 18px 0 40px; background: var(--mist); border-radius: var(--radius); padding: clamp(10px, 2vw, 22px); }
.diagram a { display: block; cursor: zoom-in; }
.diagram img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--white); }
.diagram figcaption { font-size: 13px; color: var(--slate); margin-top: 10px; text-align: center; }

.intro-note { color: var(--slate); max-width: 760px; }
ol.stages { list-style: none; padding: 0; margin: 20px 0; counter-reset: stage; display: grid; gap: 16px; }
.stage { counter-increment: stage; position: relative; border: 1px solid var(--line); border-left: 6px solid var(--steel); border-radius: 12px; padding: 16px 20px 16px 60px; background: var(--white); scroll-margin-top: 20px; }
.stage::before { content: counter(stage); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); font-weight: 600; }
.stage h3 { font-family: var(--font-cond); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .03em; margin: 2px 0 8px; }
.stage p, .stage li { font-size: 15.5px; }
.stage ol, .stage ul { padding-left: 20px; margin: 6px 0; }
.stage.lp { border-left-color: #f2a865; } .stage.vc { border-left-color: #42c6e6; } .stage.pc { border-left-color: #e8cf3a; }
.stage.normal { border-left-color: #4cc386; } .stage.small { border-left-color: #e8cf3a; } .stage.medium { border-left-color: #f0b400; } .stage.dispute { border-left-color: #e5403c; }
.decision { font-weight: 600; margin: 14px 0 6px; padding-left: 26px; position: relative; }
.decision::before { content: ""; position: absolute; left: 4px; top: 5px; width: 11px; height: 11px; background: var(--navy); transform: rotate(45deg); }
.branches { display: grid; gap: 8px; margin: 0 0 6px; }
.branches.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .branches.two { grid-template-columns: minmax(0, 1fr); } .stage { padding-left: 20px; padding-top: 56px; } }
.branch { background: var(--mist); border-radius: 8px; padding: 8px 12px; font-size: 15px; }
.branch.small, .branch.pc { background: #fffbe0; }
.branch .ans { display: inline-block; font-family: var(--font-cond); font-weight: 600; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; background: var(--navy); color: var(--white); border-radius: 99px; padding: 1px 10px; margin-right: 6px; }
.done { font-weight: 600; color: var(--ok); background: var(--ok-bg); border-radius: 8px; padding: 8px 12px; display: inline-block; margin: 8px 0 0; }

.privacy-note { margin: 14px 0 0; font-size: 14px; color: var(--slate); }

/* ---------------------------------------------------------------- draft notice (top of every page) */
.draft-banner { background: var(--warn-bg); color: #5c3c00; border-bottom: 1px solid #f0d58c; font-size: 14px; line-height: 1.4; }
.draft-banner .wrap { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.draft-tag { flex: none; font-family: var(--font-cond); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  background: #8a5a00; color: #fff; border-radius: 99px; padding: 2px 10px; }
