/* DataProtection.md — design v3 ("light"). Light-only, single stylesheet, system fonts, no frameworks. */

:root {
  --bg: #f7f9fc;
  --bg-soft: #eef3f9;
  --surface: #ffffff;
  --surface-2: #f1f5fa;
  --text: #0b1220;
  --text-2: #334155;
  --muted: #56657a;
  --border: #e3e9f1;
  --border-strong: #cfd8e4;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #e8f0fe;
  --accent-line: #c3d6fb;
  --ok: #0c8a5f;   --ok-soft: #e9f7f1;   --ok-line: #bfe7d6;
  --warn: #a8550a; --warn-soft: #fff6e8; --warn-line: #f6dcb0;
  --danger: #c93636; --danger-soft: #fdf0f0; --danger-line: #f3c9c9;
  --mark: #fff1a8;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .22);
  --radius: 12px;
  --radius-lg: 18px;
  --hdr-h: 64px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 20px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text-2); font: 16px/1.7 var(--font); overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-decoration-color: var(--accent-line); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ico { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, #fff 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--border); }
.hdr-in { max-width: 1320px; margin: 0 auto; padding: 0 16px; height: var(--hdr-h); display: flex; align-items: center; gap: 16px; }
@media (min-width: 720px) { .hdr-in { padding: 0 28px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; text-decoration: none; color: var(--text); flex: none; }
.logo-mark { width: 30px; height: 30px; }
.brand-name { font: 700 1.06rem/1 var(--font-display); letter-spacing: -.02em; color: var(--text); }
.brand-tld { color: var(--accent); }

.mainnav { display: none; gap: 2px; margin-left: 14px; }
@media (min-width: 1024px) { .mainnav { display: flex; } }
.dd { position: relative; }
.dd > summary { list-style: none; display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-weight: 550; font-size: .94rem; color: var(--text-2); user-select: none; white-space: nowrap; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary:hover, .dd[open] > summary { background: var(--surface-2); color: var(--text); }
.dd[data-active] > summary { color: var(--accent-ink); }
.dd .chev { width: 15px; height: 15px; opacity: .6; transition: transform .2s; }
.dd[open] .chev { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 8px); left: -8px; width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; animation: pop .16s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-panel ul, .drawer ul, .sidenav ul, .ftr ul { list-style: none; margin: 0; padding: 0; }
.dd-panel a, .drawer nav a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.dd-panel a:hover, .drawer nav a:hover { background: var(--surface-2); }
.dd-panel a .ico, .drawer nav a .ico { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink); }
.dd-panel a span, .drawer nav a span { display: flex; flex-direction: column; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.dd-panel small, .drawer nav small { font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.dd-panel a[aria-current="page"] span { color: var(--accent-ink); }

.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); text-decoration: none; font-size: .9rem; }
.search-btn:hover { border-color: var(--border-strong); color: var(--text); }
.search-btn span, .search-btn kbd { display: none; }
@media (min-width: 640px) { .search-btn { padding: 0 8px 0 12px; min-width: 190px; } .search-btn span { display: inline; flex: 1; } .search-btn kbd { display: inline; } }
@media (min-width: 1024px) and (max-width: 1199px) { .search-btn { min-width: 0; padding: 0 10px; } .search-btn span, .search-btn kbd { display: none; } .mainnav { margin-left: 4px; } }
kbd { font: 600 .74rem var(--mono); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--muted); background: var(--surface-2); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.seg a, .seg span { padding: 4px 9px; border-radius: 7px; font-size: .8rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; color: var(--muted); line-height: 1.4; }
.seg a:hover { color: var(--text); }
.seg .seg-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.menu-toggle { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
@media (max-width: 440px) {
  .hdr-in { gap: 8px; }
  .hdr-tools { gap: 6px; }
  .brand { gap: 8px; }
  .logo-mark { width: 26px; height: 26px; }
  .brand-name { font-size: .95rem; }
  .search-btn { width: 36px; padding: 0; justify-content: center; }
  .seg a, .seg span { padding: 4px 7px; }
  .menu-toggle { width: 36px; height: 36px; }
}

.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 24, .45); backdrop-filter: blur(2px); }
.drawer-in { position: absolute; right: 0; top: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); padding: 14px 16px 32px; overflow-y: auto; box-shadow: var(--shadow-lg); animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 10px; }
.drawer-close { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.drawer-search { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); text-decoration: none; margin-bottom: 8px; font-size: .92rem; }
.drawer .side-title { margin-top: 18px; }

/* ---------- page shells ---------- */
.main { min-height: 60vh; }
.docs, .plain, .home { max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .docs, .plain, .home { padding: 0 28px; } }
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: 72px; }
@media (min-width: 1024px) { .docs { grid-template-columns: 240px minmax(0, 1fr); } }
@media (min-width: 1280px) { .docs.has-toc { grid-template-columns: 240px minmax(0, 1fr) 220px; } }
.plain { padding-top: 40px; padding-bottom: 72px; }

.sidenav { display: none; }
@media (min-width: 1024px) {
  .sidenav { display: block; position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; max-height: calc(100vh - var(--hdr-h) - 48px); overflow-y: auto; padding-right: 8px; }
}
.side-title { margin: 22px 0 6px; padding: 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sidenav .side-title:first-child { margin-top: 0; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .92rem; font-weight: 500; line-height: 1.35; }
.sidenav a .ico { width: 16px; height: 16px; color: var(--muted); }
.sidenav a:hover { background: var(--surface-2); color: var(--text); }
.sidenav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.sidenav a[aria-current="page"] .ico { color: var(--accent-ink); }

.content { min-width: 0; max-width: 760px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumb-sep { width: 14px; height: 14px; transform: rotate(-90deg); opacity: .6; }

.toc { display: none; }
@media (min-width: 1280px) {
  .toc { display: block; position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; max-height: calc(100vh - var(--hdr-h) - 48px); overflow-y: auto; font-size: .85rem; }
  .toc summary { list-style: none; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; pointer-events: none; }
  .toc summary::-webkit-details-marker { display: none; }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
  .toc li { margin: 0; }
  .toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
  .toc a:hover { color: var(--text); }
  .toc a.active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 600; }
}

.toc-inline { margin: -14px 0 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: .92rem; }
.toc-inline summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer; color: var(--text); font-weight: 600; }
.toc-inline summary::-webkit-details-marker { display: none; }
.toc-inline summary .ico { width: 16px; height: 16px; color: var(--muted); }
.toc-inline summary .chev { margin-left: auto; transition: transform .2s; }
.toc-inline[open] summary .chev { transform: rotate(180deg); }
.toc-inline ol { margin: 0; padding: 4px 14px 12px 36px; border-top: 1px solid var(--border); }
.toc-inline li { margin: 6px 0; }
.toc-inline a { color: var(--text-2); text-decoration: none; }
.toc-inline a:hover { color: var(--accent-ink); }
@media (min-width: 1280px) { .toc-inline { display: none; } }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -4px 0 32px; padding-bottom: 22px; border-bottom: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.meta-row .ico { width: 15px; height: 15px; }
.meta-row .mi { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 560px) { .meta-row .dot { display: none; } .meta-row .mi { width: 100%; } .meta-btn { margin-left: 0; } }
.meta-row .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin: 0 6px; opacity: .6; }
.meta-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; }
.meta-btn:hover { color: var(--text); border-color: var(--border-strong); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.pn { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.pn:hover { border-color: var(--accent-line); box-shadow: var(--shadow); }
.pn small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.pn small .ico { width: 14px; height: 14px; }
.pn span { font-weight: 650; }
.pn-next { text-align: right; align-items: flex-end; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { color: var(--text); font-family: var(--font-display); line-height: 1.2; letter-spacing: -.022em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); font-weight: 750; margin: 0 0 .45em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.7rem); font-weight: 700; margin: 2.4em 0 .7em; }
h3 { font-size: 1.15rem; font-weight: 650; margin: 1.9em 0 .5em; letter-spacing: -.01em; }
h4 { font-size: 1rem; margin: 1.5em 0 .4em; }
p, ul, ol { margin: 0 0 1.05em; }
li { margin: .35em 0; }
li::marker { color: var(--muted); }
strong { color: var(--text); font-weight: 650; }
.lead { font-size: 1.16rem; line-height: 1.65; color: var(--muted); max-width: 66ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
small, .small { font-size: .87rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
code, kbd { font-family: var(--mono); }
code { font-size: .86em; background: var(--surface-2); border: 1px solid var(--border); padding: .08em .4em; border-radius: 6px; color: var(--text); }
.art { display: inline-block; vertical-align: .08em; padding: .05em .5em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font: 600 .74rem/1.5 var(--mono); white-space: nowrap; text-decoration: none; }
a.art:hover { color: var(--accent-ink); border-color: var(--accent-line); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-ink); text-decoration: underline; cursor: pointer; }

/* ---------- components ---------- */
.callout { position: relative; margin: 1.6em 0; padding: 16px 18px 16px 50px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text-2); }
.callout::before { content: ""; position: absolute; left: 17px; top: 18px; width: 20px; height: 20px; background: var(--accent); -webkit-mask: var(--ci) center / contain no-repeat; mask: var(--ci) center / contain no-repeat;
  --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E"); }
.callout > :last-child { margin-bottom: 0; }
.callout ul { padding-left: 1.1em; }
.callout-title { display: block; margin-bottom: .25em; color: var(--text); font-weight: 700; }
.callout.ok { background: var(--ok-soft); border-color: var(--ok-line); }
.callout.ok::before { background: var(--ok); --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); }
.callout.warn { background: var(--warn-soft); border-color: var(--warn-line); }
.callout.warn::before, .callout.danger::before { background: var(--warn); --ci: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 4.2 2.6 17.5A2 2 0 0 0 4.3 20.5h15.4a2 2 0 0 0 1.7-3L13.7 4.2a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9.5v4M12 17h.01'/%3E%3C/svg%3E"); }
.callout.danger { background: var(--danger-soft); border-color: var(--danger-line); }
.callout.danger::before { background: var(--danger); }

.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 1.4em 0 1.8em; }
.card { display: flex; flex-direction: column; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card h3, .card .card-title { margin: 0 0 .35em; font-size: 1.02rem; font-weight: 650; color: var(--text); font-family: var(--font-display); letter-spacing: -.01em; line-height: 1.3; }
.card p { margin: 0 0 .5em; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.card > :last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon { display: none; }

.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); margin: 1.6em 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--surface); padding: 18px 20px; }
.stat b { display: block; margin-bottom: 4px; font: 750 1.55rem/1.1 var(--font-display); letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { font-size: .87rem; line-height: 1.45; color: var(--muted); display: block; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.6em 0 2em; }
.steps > li { position: relative; counter-increment: step; margin: 0; padding: 0 0 22px 50px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); font: 700 .9rem var(--font-display); box-shadow: var(--shadow-sm); }
.steps > li::after { content: ""; position: absolute; left: 15.5px; top: 40px; bottom: 6px; width: 1px; background: var(--border-strong); }
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child { display: block; margin-bottom: 3px; padding-top: 4px; color: var(--text); font-size: 1.02rem; }

.table-wrap { margin: 1.5em 0 1.9em; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.55; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { background: var(--bg-soft); color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
tbody th { color: var(--text); font-weight: 650; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover { background: var(--bg-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

details.faq { margin: 0; border-bottom: 1px solid var(--border); }
details.faq:first-of-type { border-top: 1px solid var(--border); }
details.faq > summary { list-style: none; position: relative; padding: 18px 44px 18px 0; cursor: pointer; color: var(--text); font-weight: 600; line-height: 1.45; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details.faq[open] > summary::after { transform: rotate(-135deg); top: 26px; }
details.faq > summary:hover { color: var(--accent-ink); }
details.faq > div { padding: 0 0 14px; }
h2 + details.faq { border-top: 1px solid var(--border); }

.timeline { list-style: none; margin: 1.4em 0; padding: 0; position: relative; }
.timeline li { position: relative; margin: 0; padding: 0 0 20px 28px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 22px; bottom: 0; width: 1px; background: var(--border-strong); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; color: var(--text); font-weight: 700; font-size: .92rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 600 .95rem var(--font); text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(37, 99, 235, .25), inset 0 1px 0 rgba(255, 255, 255, .15); transition: background .15s; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn .ico { width: 17px; height: 17px; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }

.tag { display: inline-block; padding: .1em .6em; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.tag.high { background: var(--danger-soft); color: var(--danger); }
.tag.mid { background: var(--warn-soft); color: var(--warn); }

.glossary { margin: 1.4em 0; }
.glossary dt { margin-top: 1.4em; color: var(--text); font: 700 1.04rem var(--font-display); scroll-margin-top: calc(var(--hdr-h) + 20px); }
.glossary dd { margin: .35em 0 0; padding-bottom: 1.2em; border-bottom: 1px solid var(--border); }
.glossary dt:target { color: var(--accent-ink); }

/* ---------- forms & tools ---------- */
label { display: block; margin: 16px 0 6px; color: var(--text); font-weight: 600; font-size: .92rem; }
input[type="text"], input[type="email"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: .97rem; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.hint { margin-top: 6px; color: var(--muted); font-size: .84rem; }
fieldset { margin: 1.4em 0; padding: 8px 22px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
legend { padding: 0 8px; color: var(--text); font: 700 1rem var(--font-display); }
.choice { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0; padding: 10px 12px; border-radius: 10px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.choice:hover { background: var(--bg-soft); }
.choice input { flex: none; width: 18px; height: 18px; margin-top: .25em; accent-color: var(--accent); }
.grid-2 { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
/* request letter: an A4-like sheet on screen, the only printed content on the generator page */
.output:has(.letter) { padding: 0; border: 0; background: none; box-shadow: none; white-space: normal; }
.letter { max-width: 720px; margin: 1em 0 0; padding: 56px 64px 64px; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-lg); color: #111; font: 15px/1.6 "Times New Roman", Times, Georgia, serif; }
@media (max-width: 640px) { .letter { padding: 28px 22px 32px; font-size: 14px; } }
.letter p { margin: 0 0 .8em; text-align: left; }
.l-head { display: flex; flex-direction: column; align-items: flex-end; gap: 1.1em; margin-bottom: 2.2em; }
.l-to, .l-from { width: min(100%, 300px); }
.l-to { font-weight: 700; }
.l-from { color: #333; }
.letter .l-date { text-align: left; margin-bottom: 1.6em; }
.letter .l-subj { text-align: left; font-weight: 700; margin-bottom: 1.6em; }
.letter .l-item { padding-left: 1.4em; text-indent: -1.4em; }
.letter .l-sign { text-align: left; margin-top: 2em; line-height: 1.9; }
.gap { display: inline-block; min-width: 12em; border-bottom: 1px dotted #888; vertical-align: -2px; height: 1.1em; }
.output { margin: 1em 0 0; padding: 28px 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); color: var(--text); white-space: pre-wrap; font: 1rem/1.6 Georgia, "Times New Roman", serif; }

.checklist-progress { position: sticky; top: calc(var(--hdr-h) + 10px); z-index: 5; display: flex; align-items: center; gap: 16px; margin: 1.2em 0 1.6em; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); box-shadow: var(--shadow); color: var(--text); font-size: .92rem; }
.bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #06b6d4); transition: width .25s; }
.checklist .choice { margin: 8px 0; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); }
.checklist .choice:hover { border-color: var(--border-strong); }
.checklist .choice:has(input:checked) { border-color: var(--ok-line); background: var(--ok-soft); }
.checklist .choice small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: .82rem; }

.search-box { display: flex; gap: 10px; margin: 1.2em 0; }
.search-box input { height: 52px; font-size: 1.05rem; padding-left: 16px; }
.search-box .btn { height: 52px; }
.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--border); }
.search-results a { color: var(--text); font-weight: 650; font-size: 1.05rem; text-decoration: none; }
.search-results a:hover { color: var(--accent-ink); }
.search-results p { margin: .35em 0 0; color: var(--muted); font-size: .93rem; }
mark { background: var(--mark); color: inherit; padding: 0 .1em; border-radius: 3px; }

.notfound { max-width: 560px; margin: 40px auto; text-align: center; }

/* ---------- home ---------- */
.home { padding-bottom: 40px; }
.hero { position: relative; padding: clamp(40px, 8vw, 88px) 0 clamp(8px, 2vw, 24px); display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; } }
body[data-page="home"] .main { position: relative; isolation: isolate; }
body[data-page="home"] .main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 860px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 360px at 12% 0%, rgba(37, 99, 235, .13), transparent 70%),
    radial-gradient(600px 320px at 88% 20%, rgba(6, 182, 212, .14), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .07) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(#fff, var(--bg));
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); mask-image: linear-gradient(to bottom, #000 60%, transparent 100%); }
.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 5px 12px 5px 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text-2); font-size: .85rem; font-weight: 550; text-decoration: none; }
.pill b { padding: 2px 8px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-size: .74rem; letter-spacing: .03em; }
.pill:hover { border-color: var(--border-strong); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: .4em; }
.hl { background: linear-gradient(100deg, var(--accent) 10%, #06b6d4 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.15rem; line-height: 1.65; color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.hero-search { position: relative; display: flex; max-width: 560px; }
.hero-search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hero-search input { height: 56px; padding-left: 46px; padding-right: 120px; border-radius: 14px; font-size: 1.02rem; box-shadow: var(--shadow); }
.hero-search .btn { position: absolute; right: 6px; top: 6px; height: 44px; border-radius: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: .85rem; color: var(--muted); align-items: center; }
.chips a { padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); text-decoration: none; }
.chips a:hover { border-color: var(--accent-line); color: var(--accent-ink); }

.facts { padding: 8px; border: 1px solid var(--border); border-radius: 22px; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); }
.facts-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.facts-head .ico { width: 16px; height: 16px; color: var(--accent); }
.fact { display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 14px; }
.fact + .fact { border-top: 1px solid var(--border); border-radius: 0 0 14px 14px; }
.fact b { min-width: 104px; color: var(--text); font: 750 1.4rem/1.1 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--muted); font-size: .9rem; line-height: 1.45; }

.section { padding: clamp(36px, 6vw, 64px) 0 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.section-head a .ico { width: 16px; height: 16px; }

.split { display: grid; gap: 18px; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.panel-head .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.panel h2, .panel h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.015em; }
.panel-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { margin: 0; border-top: 1px solid var(--border); }
.panel li a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; color: var(--text); text-decoration: none; font-weight: 550; }
.panel li a > .ico { color: var(--muted); width: 18px; height: 18px; }
.panel li a > .ico:last-child { margin-left: auto; opacity: 0; transform: translateX(-4px); transition: all .15s; color: var(--accent); }
.panel li a > span { display: flex; flex-direction: column; }
.panel li a:hover { color: var(--accent-ink); }
.panel li a:hover > .ico:last-child { opacity: 1; transform: none; }
.panel li a small { display: block; color: var(--muted); font-weight: 400; font-size: .84rem; }

.tools { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tool { position: relative; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; color: var(--text-2); overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tool:hover { border-color: var(--accent-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.tool .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--accent), #06b6d4); margin-bottom: 18px; }
.tool h3 { margin: 0 0 6px; font-size: 1.08rem; }
.tool p { margin: 0 0 16px; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.tool .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: .9rem; }
.tool .more .ico { width: 16px; height: 16px; padding: 0; margin: 0; background: none; color: inherit; border-radius: 0; }

.htl { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.htl > div { position: relative; padding: 22px 22px 24px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: -1px; }
.htl > div:last-child { border-right: 0; }
.htl time { display: block; margin-bottom: 6px; color: var(--accent-ink); font-weight: 700; font-size: .85rem; }
.htl b { display: block; color: var(--text); font-size: .98rem; margin-bottom: 4px; }
.htl p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.htl .now { background: var(--accent-soft); }
.htl .now::after { content: attr(data-now); position: absolute; top: 18px; right: 16px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

.cta { display: grid; gap: 20px; align-items: center; padding: clamp(28px, 5vw, 44px); border-radius: 22px; color: var(--text-2); border: 1px solid var(--accent-line); background: radial-gradient(520px 220px at 95% 0%, rgba(6, 182, 212, .16), transparent 70%), linear-gradient(135deg, #eef4ff, #f4fbfd); }
@media (min-width: 880px) { .cta { grid-template-columns: 1fr auto; } }
.cta h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.cta p { margin: 0; color: var(--muted); }

.faq-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 1fr 1.6fr; } }

/* ---------- footer ---------- */
.ftr { margin-top: 40px; border-top: 1px solid var(--border); background: #fff; font-size: .9rem; }
.ftr-in { max-width: 1320px; margin: 0 auto; padding: 48px 16px 28px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
@media (min-width: 720px) { .ftr-in { padding: 56px 28px 32px; } }
@media (min-width: 1024px) { .ftr-in { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ftr-brand p { margin: 12px 0 0; color: var(--muted); max-width: 38ch; }
.ftr-badge { display: inline-flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: .84rem; }
.ftr-badge .ico { width: 16px; height: 16px; color: var(--ok); margin-top: 2px; }
.ftr .side-title { padding: 0; margin: 0 0 10px; }
.ftr li { margin: 7px 0; }
.ftr li a { color: var(--text-2); text-decoration: none; }
.ftr li a:hover { color: var(--accent-ink); }
.ftr-bottom { max-width: 1320px; margin: 0 auto; padding: 22px 16px 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
@media (min-width: 720px) { .ftr-bottom { padding: 22px 28px 40px; } }
.disclaimer { max-width: 96ch; margin-bottom: 14px; text-wrap: balance; }
.ftr-brand p, .ftr-badge span { text-wrap: pretty; }
.ftr-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.ftr-links a { color: var(--text-2); text-decoration: none; }
.ftr-links a:hover { color: var(--accent-ink); }
.ftr-links span { margin-left: auto; }

/* ---------- print ----------
   A4, compact typography, no chrome. Tables may split across pages (rows never do),
   headings stay with the text that follows, FAQ answers are opened by JS before printing. */
.print-only, .print-src { display: none; }
@page { size: A4; margin: 14mm 15mm 16mm; }
@page letter { size: A4; margin: 22mm 20mm 22mm 28mm; }
@media print {
  html { scroll-padding-top: 0; }
  body { background: #fff; color: #1a1a1a; font: 9.6pt/1.42 var(--font); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hdr, .ftr, .drawer, .sidenav, .toc, .toc-inline, .crumbs, .prevnext, .meta-row, .skip, .btn-row, .no-print,
  .chips, .hero-search, .search-box, .checklist-progress, .section-head a, .pill { display: none !important; }
  .print-only, .print-src { display: block !important; }
  .docs, .plain, .home { display: block; max-width: none; padding: 0; }
  .content { max-width: none; }
  a { color: inherit; text-decoration: none; }
  .content a[href^="http"]:not(.art)::after { content: " (" attr(href) ")"; font-size: 7.5pt; color: #555; word-break: break-all; }

  /* type */
  h1, h2, h3, h4 { color: #000; break-after: avoid; page-break-after: avoid; break-inside: avoid; }
  h1 { font-size: 18pt; line-height: 1.15; margin: 0 0 2.5mm; letter-spacing: -.01em; }
  h2 { font-size: 13pt; margin: 5.5mm 0 1.8mm; padding-top: 0; }
  h3 { font-size: 11pt; margin: 4mm 0 1.2mm; }
  h4 { font-size: 10pt; margin: 3mm 0 1mm; }
  p, ul, ol { margin: 0 0 2mm; orphans: 3; widows: 3; }
  ul, ol { padding-left: 5mm; }
  li { margin: .5mm 0; }
  strong { color: #000; }
  .eyebrow { display: block; margin: 0 0 1.5mm; padding: 0; background: none; color: #555; font-size: 7.5pt; letter-spacing: .08em; }
  .lead { font-size: 10.5pt; line-height: 1.4; color: #333; max-width: none; margin-bottom: 4mm; padding-bottom: 3mm; border-bottom: .6pt solid #999; }
  .muted, .small, small { color: #555; }
  .art { padding: 0; border: 0; background: none; color: #555; font: 500 7.6pt/1 var(--mono); vertical-align: 0; }
  code { border: 0; padding: 0; background: none; }
  hr { margin: 4mm 0; border-top-color: #bbb; }

  /* blocks */
  .callout { margin: 2.5mm 0 3mm; padding: 1.5mm 0 1.5mm 4mm; background: none !important; border: 0; border-left: 1.6pt solid #2563eb; border-radius: 0; break-inside: avoid; }
  .callout.ok { border-left-color: #0c8a5f; }
  .callout.warn, .callout.danger { border-left-color: #b45309; }
  .callout::before { display: none; }
  .callout-title { margin-bottom: .5mm; }

  .table-wrap { margin: 2.5mm 0 3.5mm; border: 0; border-radius: 0; overflow: visible; }
  table { font-size: 8.8pt; line-height: 1.35; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; page-break-inside: avoid; }
  th, td { padding: 1.3mm 2mm; border-bottom: .5pt solid #c8c8c8; }
  thead th { background: none; color: #000; font-size: 7.5pt; border-bottom: 1pt solid #000; }
  tbody tr:hover { background: none; }

  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 2.5mm 0 3.5mm; border: .5pt solid #bbb; border-radius: 0; background: none; break-inside: avoid; }
  .stat { padding: 1.8mm 2.5mm; background: none; border-right: .5pt solid #bbb; }
  .stat:last-child { border-right: 0; }
  .stat b { font-size: 12pt; margin-bottom: .5mm; }
  .stat span { font-size: 8pt; line-height: 1.3; }

  .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5mm; margin: 2.5mm 0 3.5mm; }
  .card { padding: 2.5mm 3mm; border: .5pt solid #bbb; border-radius: 0; box-shadow: none; break-inside: avoid; }
  .card h3 { font-size: 10pt; margin-bottom: 1mm; }
  .card p { font-size: 8.6pt; line-height: 1.35; color: #333; }

  .steps { margin: 2.5mm 0 3.5mm; }
  .steps > li { padding: 0 0 2mm 8mm; break-inside: avoid; }
  .steps > li::before { width: 5.5mm; height: 5.5mm; border-radius: 50%; font-size: 8pt; box-shadow: none; border: .6pt solid #000; }
  .steps > li::after { left: 2.7mm; top: 6.5mm; background: #bbb; }
  .steps > li > strong:first-child { padding-top: .6mm; margin-bottom: .3mm; font-size: 10pt; }

  .timeline { margin: 2.5mm 0; }
  .timeline li { padding: 0 0 2mm 6mm; break-inside: avoid; }
  .timeline li::before { top: 1.3mm; width: 2.6mm; height: 2.6mm; border-width: 1pt; }
  .timeline li::after { left: 1.25mm; top: 4.5mm; }

  details.faq { border: 0; border-bottom: .5pt solid #ccc; break-inside: avoid; }
  details.faq:first-of-type, h2 + details.faq { border-top: 0; }
  details.faq > summary { padding: 2mm 0 1mm; font-weight: 700; color: #000; }
  details.faq > summary::after { display: none; }
  details.faq > div { padding: 0 0 1.5mm; }

  .glossary { columns: 2; column-gap: 8mm; margin: 2mm 0; }
  .glossary dt { margin-top: 2.5mm; font-size: 10pt; color: #000; break-after: avoid; }
  .glossary dd { margin: .5mm 0 0; padding-bottom: 2mm; border-bottom: .5pt solid #ccc; break-inside: avoid; font-size: 9pt; line-height: 1.38; }

  .checklist h2 { margin-top: 4.5mm; }
  .checklist .choice { margin: 0; padding: 1mm 0; gap: 2.5mm; border: 0; border-bottom: .4pt solid #ddd; border-radius: 0; background: none !important; break-inside: avoid; font-size: 9.2pt; line-height: 1.35; }
  .checklist .choice input { width: 3.4mm; height: 3.4mm; margin-top: .4mm; }
  .checklist .choice small { display: inline; margin-left: 1.5mm; font-size: 7.6pt; }

  .output { margin: 0; padding: 0; border: 0; box-shadow: none; font-size: 10.5pt; line-height: 1.45; }

  /* generator page: print only the formatted request, as a formal A4 letter */
  body[data-page="generator"] .content > :not([data-letter]) { display: none !important; }
  body[data-page="generator"] .output { margin: 0; }
  .letter { page: letter; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; font: 12pt/1.5 "Times New Roman", Times, serif; color: #000; }
  .letter p { margin: 0 0 3.5mm; orphans: 3; widows: 3; }
  .l-head { gap: 4mm; margin-bottom: 10mm; }
  .l-to, .l-from { width: 80mm; }
  .letter .l-date, .letter .l-subj { margin-bottom: 6mm; }
  .letter .l-sign { margin-top: 10mm; break-inside: avoid; }
  .gap { border-bottom: .6pt solid #000; min-width: 45mm; }
  .tag { background: none !important; padding: 0; color: #000 !important; font-size: 7.5pt; }

  /* home (rarely printed): plain stacked layout */
  .hero { display: block; padding: 0 0 3mm; }
  body[data-page="home"] .main::before { display: none; }
  .hero h1 { font-size: 20pt; }
  .hl { color: #000; background: none; -webkit-text-fill-color: #000; }
  .facts { box-shadow: none; border: .5pt solid #bbb; border-radius: 0; margin-top: 3mm; }
  .section { padding-top: 4mm; }
  .split, .tools, .htl, .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
  .panel, .tool, .htl, .cta { box-shadow: none; border-radius: 0; break-inside: avoid; }
  .cta { background: none; border: .5pt solid #bbb; }

  .print-src { margin-top: 6mm; padding-top: 2mm; border-top: .6pt solid #999; color: #555; font-size: 7.6pt; line-height: 1.4; break-inside: avoid; }
}

/* ---------- mobile QA fixes ---------- */
/* decorative hero background must never widen the page */
body { overflow-x: clip; }

/* readable minimum sizes for small labels */
.art { font-size: .78rem; }
.eyebrow { font-size: .76rem; }
.side-title { font-size: .75rem; }
.tag, .pill b { font-size: .76rem; }

/* previous / next cards: long words must wrap inside the card */
.prevnext { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pn { min-width: 0; }
.pn span { overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .art { white-space: normal; }
  /* comfortable touch targets */
  .seg a, .seg span { padding: 7px 9px; }
  .crumbs a { padding: 6px 0; }
  .section-head a { padding: 6px 0; }
  .ftr li { margin: 2px 0; }
  .ftr li a, .ftr-links a { display: inline-block; padding: 6px 0; }
  .ftr-links { gap: 2px 20px; }
  .ftr-links span { margin-left: 0; width: 100%; }
}
/* very narrow phones (320–359 px): search lives in the menu drawer */
@media (max-width: 359px) {
  .search-btn { display: none; }
  .brand-name { font-size: .9rem; }
  .logo-mark { width: 24px; height: 24px; }
}
/* iOS Safari zooms into form fields with text smaller than 16px */
@media (max-width: 760px) {
  input[type="text"], input[type="email"], input[type="search"], input[type="date"], select, textarea { font-size: 16px; }
}
/* horizontally scrollable tables: soft edge shadows show there is more content */
.table-wrap {
  background:
    linear-gradient(to right, var(--surface) 30%, rgba(255, 255, 255, 0)) left / 40px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, rgba(255, 255, 255, 0)) right / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(15, 23, 42, .14), transparent) left / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(15, 23, 42, .14), transparent) right / 14px 100% no-repeat scroll,
    var(--surface);
}
@media (max-width: 480px) {
  .fact { gap: 12px; padding: 12px; }
  .fact b { min-width: 76px; font-size: 1.2rem; }
  .facts-head { padding: 10px 12px 6px; }
}
@media print { .table-wrap { background: none; } }
/* Tables with a header row turn into stacked cards when they would not fit:
   any table in a content column narrower than 600px, and wide tables (5+ columns) always
   in the reading column. Based on the content width (container query), not the screen. */
.content { container: content / inline-size; }
@container content (max-width: 600px) {
  .table-wrap:has(table.rt) { border: 0; background: none; overflow: visible; }
  table.rt, table.rt tbody, table.rt tr, table.rt td, table.rt th { display: block; width: 100%; }
  table.rt thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.rt tr { margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
  table.rt tbody tr:hover { background: var(--surface); }
  table.rt td, table.rt th { padding: 9px 14px; border: 0; text-align: left !important; white-space: normal !important; }
  table.rt tr > * + * { border-top: 1px solid var(--border); }
  table.rt [data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  table.rt tr > :first-child { background: var(--bg-soft); color: var(--text); font-weight: 650; }
  table.rt tr > :first-child::before { display: none; }
}
@container content (max-width: 1000px) {
  .table-wrap:has(table.rt.cols-5), .table-wrap:has(table.rt.cols-6) { border: 0; background: none; overflow: visible; }
  :is(table.rt.cols-5, table.rt.cols-6), :is(table.rt.cols-5, table.rt.cols-6) :is(tbody, tr, td, th) { display: block; width: 100%; }
  :is(table.rt.cols-5, table.rt.cols-6) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  :is(table.rt.cols-5, table.rt.cols-6) tr { margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
  :is(table.rt.cols-5, table.rt.cols-6) tbody tr:hover { background: var(--surface); }
  :is(table.rt.cols-5, table.rt.cols-6) :is(td, th) { padding: 10px 16px; border: 0; text-align: left !important; white-space: normal !important; }
  :is(table.rt.cols-5, table.rt.cols-6) tr > * + * { border-top: 1px solid var(--border); }
  :is(table.rt.cols-5, table.rt.cols-6) [data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  :is(table.rt.cols-5, table.rt.cols-6) tr > :first-child { background: var(--bg-soft); color: var(--text); font-weight: 650; }
  :is(table.rt.cols-5, table.rt.cols-6) tr > :first-child::before { display: none; }
}
/* key–value tables without a header row (e.g. operator / DPO): stack label above value */
@container content (max-width: 600px) {
  table:not(.rt), table:not(.rt) :is(tbody, tr, th, td) { display: block; width: 100%; }
  table:not(.rt) th { padding-bottom: 2px; border-bottom: 0; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
  table:not(.rt) td { padding-top: 2px; overflow-wrap: anywhere; }
}
/* roomy cards: label and value side by side */
@container content (min-width: 520px) and (max-width: 1000px) {
  :is(table.rt.cols-5, table.rt.cols-6) tr > :not(:first-child) { position: relative; padding-left: 182px; }
  :is(table.rt.cols-5, table.rt.cols-6) tr > :not(:first-child)::before { position: absolute; left: 16px; top: 12px; width: 150px; margin: 0; }
}
/* 360–379 px phones: a little more room in the header */
@media (max-width: 379px) {
  .brand-name { font-size: .9rem; }
  .brand { gap: 6px; }
  .hdr-in, .hdr-tools { gap: 6px; }
}
/* hero search on phones: compact button, more room for the placeholder */
@media (max-width: 480px) {
  .hero-search input { padding-right: 92px; }
  .hero-search .btn { padding: 0 14px; }
}
/* long Russian / Romanian words in headings on phones: scale the title, hyphenate properly */
@media (max-width: 480px) {
  h1 { font-size: clamp(1.6rem, 5.2vw + .55rem, 2.75rem); }
  h1, h2, h3, .card-title, details.faq > summary, .glossary dt, .pn span, .panel h2, .tool h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
}

/* contact card and link lists: full-width rows with comfortable touch targets */
.contact-list, .link-list { list-style: none; margin: 4px 0 0; padding: 0; }
.contact-list li, .link-list li { margin: 0; }
.contact-list li + li, .link-list li + li { border-top: 1px solid var(--border); }
.cl-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; color: var(--text); text-decoration: none; }
.cl-row > .ico:first-child { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); }
.cl-row > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.cl-row small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
a.cl-row > span { color: var(--accent-ink); font-weight: 600; }
a.cl-row:hover > span { text-decoration: underline; }
.cl-row > .ico:last-child:not(:first-child), .link-list .ico { margin-left: auto; width: 16px; height: 16px; color: var(--muted); flex: none; }
.link-list a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 0; color: var(--accent-ink); font-weight: 550; text-decoration: none; line-height: 1.35; }
.link-list a:hover span { text-decoration: underline; }
/* collapsible table of contents on phones: larger rows */
.toc-inline li { margin: 0; }
.toc-inline a { display: block; padding: 7px 0; }
@media print { .cl-row > .ico, .link-list .ico { display: none; } .cl-row, .link-list a { min-height: 0; padding: 1mm 0; } }
/* generator on phones: wider fields, one full-width action per row */
@media (max-width: 480px) {
  fieldset { padding: 6px 14px 16px; }
  .choice { padding: 10px 6px; }
  body[data-page="generator"] .btn-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
  body[data-page="generator"] .btn-row .btn { width: 100%; }
}
/* checklist: section headings must land below the header and the sticky progress bar */
body[data-page="checklist"] .content h2 { scroll-margin-top: 60px; }
@media (max-width: 480px) {
  .checklist-progress { gap: 12px; padding: 8px 14px; margin: 1em 0 1.2em; font-size: .88rem; }
  body[data-page="checklist"] .content h2 { scroll-margin-top: 52px; }
  body[data-page="checklist"] .btn-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
  body[data-page="checklist"] .btn-row .btn { width: 100%; }
}
