/* 한 칸 화면(one.html). 다른 화면의 CSS와 섞이지 않게 혼자 선다. */
:root {
  color-scheme: light dark;
  --bg: #f6f3ec;
  --card: #fffefb;
  --ink: #19202b;
  --ink-2: #444b57;
  --muted: #737985;
  --line: #e7e0d3;
  --accent: #1f4e8c;
  --accent-strong: #173c6d;
  --accent-ink: #ffffff;
  --accent-soft: #e9eff8;
  --lift: #9a4a00;
  --lift-soft: #fff4e3;
  --lift-line: #f0d6ad;
  --quiet-soft: #f0ebe1;
  --seal: #c9412b;
  --sand: #efe4cf;
  --shadow: 0 1px 2px rgba(48, 38, 22, 0.05), 0 10px 30px rgba(48, 38, 22, 0.07);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111214;
    --card: #1a1c1f;
    --ink: #f0f0ee;
    --ink-2: #c5c8cd;
    --muted: #8d929b;
    --line: #2b2e33;
    --accent: #8fb3e8;
    --accent-strong: #a9c5ef;
    --accent-ink: #0c1a2e;
    --accent-soft: #1b2535;
    --lift: #ffbd75;
    --lift-soft: #2c2317;
    --lift-line: #54401f;
    --quiet-soft: #202226;
    --seal: #e2654d;
    --sand: #2a251c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 18px 24px 0;
}
/* 이름: 도장 모양 표시 + 도장전 + 하는 일 한 줄 */
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; width: 30px; height: 30px; flex: none; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.brand-sub { padding-left: 10px; border-left: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--muted); }
.top-link { font-size: 13.5px; color: var(--muted); }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--quiet-soft); border: 1px solid var(--line); margin-left: auto; }
.tabs a { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 25, 28, 0.08); }

main { max-width: 760px; margin: 0 auto; padding: 0 20px 72px; }

/* 첫 화면은 한 가지 일(붙여 넣고 확인 시작)만 보이게 가운데로 모은다 */
.hero { padding: 64px 0 32px; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 5px 14px 5px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 650; color: var(--ink-2); }
.kicker::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--seal); }
.hero h1 { font-size: clamp(30px, 5.6vw, 44px); line-height: 1.24; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.hero .lead { margin-top: 16px; color: var(--ink-2); font-size: 18px; text-wrap: pretty; }

/* 한 칸 */
.box {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 1px 2px rgba(48, 38, 22, 0.05), 0 18px 50px rgba(31, 78, 140, 0.11);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.box:focus-within { border-color: var(--accent); box-shadow: 0 18px 50px rgba(31, 78, 140, 0.13), 0 0 0 4px var(--accent-soft); }
.box.dragging { border-color: var(--accent); border-style: dashed; background: var(--accent-soft); }
.box textarea {
  display: block; width: 100%; min-height: 150px; max-height: 420px; resize: vertical;
  padding: 24px 24px 12px; border: 0; background: transparent; outline: none;
  font-size: 17.5px; line-height: 1.6;
}
.box textarea::placeholder { color: var(--muted); }
.files { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 4px 22px 10px; }
.files li {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--quiet-soft); font-size: 13.5px;
}
.files li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.files li em { font-style: normal; color: var(--accent); font-weight: 600; }
.files li button {
  width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; line-height: 1;
}
.files li button:hover { background: var(--line); color: var(--ink); }
.box-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px 14px 22px; border-top: 1px solid var(--line); }
.attach span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.attach:hover span { border-color: var(--accent); color: var(--accent); }
.attach input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.attach-hint { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.go {
  height: 50px; padding: 0 26px; border: 0; border-radius: 13px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; transition: background 0.15s, opacity 0.15s;
}
.go:hover { background: var(--accent-strong); }
.go:disabled { opacity: 0.45; cursor: default; }
.go.small { height: 42px; font-size: 14.5px; padding: 0 18px; }
.box-message { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--lift-soft); color: var(--lift); font-size: 14.5px; }
.fine { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* 믿고 넣을 수 있게: 상자 바로 아래 세 가지 약속 */
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 20px 0 0; padding: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before {
  content: ""; width: 17px; height: 17px; border-radius: 50%; flex: none;
  background: var(--accent-soft) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.6' fill='none' stroke='%233f6fb0' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
#sendNotice { text-align: center; margin-top: 8px; }
.result-example { margin: 14px 0; }
.result-example summary { width: fit-content; margin: auto; padding: 10px 14px; color: var(--accent); font-weight: 700; cursor: pointer; }
.result-example > div { padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.result-example h2 { font-size: 18px; }
.result-example dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 16px 0 0; }
.result-example dt { color: var(--accent); font-weight: 700; }
.result-example dd { margin: 0; }
@media (max-width: 480px) {
  .result-example dl { display: block; }
  .result-example dt:not(:first-child) { margin-top: 12px; }
}
@media print { .result-example { display: none; } }

/* 첫 화면 아래: 하는 일 세 단계, 처음 읽을 글, 자료 출처, 자세한 설명(접힘) */
.intro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 72px; padding-top: 36px; border-top: 1px solid var(--line); counter-reset: step; }
.intro h2 { grid-column: 1 / -1; margin-bottom: -10px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.intro div { counter-increment: step; }
.intro b { display: flex; align-items: center; gap: 10px; font-size: 16.5px; margin-bottom: 6px; }
.intro b::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 800; }
.intro span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.howto { margin-top: 44px; display: grid; gap: 14px; }
.first-read { display: flex; align-items: center; gap: 18px; padding: 14px 20px 14px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.first-read:hover { border-color: var(--accent); transform: translateY(-1px); }
.first-read img { display: block; width: 150px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; flex: none; background: var(--sand); }
.first-read em { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--seal); }
.first-read b { display: block; margin-top: 2px; font-size: 17px; line-height: 1.4; letter-spacing: -0.02em; }
.first-read small { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.sources { padding: 22px 24px; border-radius: 18px; background: var(--sand); }
.sources h2 { font-size: 16px; margin-bottom: 12px; }
.sources ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.sources li { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.sources li b { display: block; color: var(--ink); font-size: 14.5px; }
.sources .who { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(120, 96, 60, 0.22); font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
.more-link { margin-top: -4px; text-align: right; font-size: 14px; font-weight: 600; }
.more-link a { text-decoration: none; }
.more-link a:hover { text-decoration: underline; }
details.more { border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
details.more summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; cursor: pointer; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary h2 { font-size: 16px; }
details.more summary::after { content: "펼치기"; font-size: 13.5px; font-weight: 600; color: var(--accent); }
details.more[open] summary::after { content: "접기"; }
.howto dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px 14px; margin: 0; padding: 0 24px 20px; font-size: 14px; line-height: 1.6; }
.howto dt { font-weight: 700; }
.howto dd { margin: 0; color: var(--ink-2); }

/* 맨 아래: 누가, 무엇을 하는 곳인지 */
.site-foot { max-width: 760px; margin: 0 auto; padding: 28px 20px 56px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.site-foot p + p { margin-top: 4px; }
.foot-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.foot-mark { display: block; width: 22px; height: 22px; flex: none; }
.site-foot .foot-links { margin-top: 10px; }
.site-foot a { color: var(--ink-2); }

/* 진행 상황 */
.progress { margin-top: 36px; }
.progress h2 { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 7px 0; font-size: 14.5px; animation: rise 0.25s ease-out; }
.steps li.sub { padding-left: 32px; }
.steps .mark { width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line); }
.steps li.start .mark { border-color: var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.steps li.done .mark { border-color: var(--accent); background: var(--accent) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.steps li.fail .mark { border-color: var(--lift); background: var(--lift-soft); }
.steps li.skip .mark { border-style: dashed; }
.steps b { font-weight: 600; }
.steps small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.progress.finished .steps { display: none; }
.progress.finished.open .steps { display: block; }
.progress.finished h2 { margin: 0; }
.progress h2 button { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-size: 13.5px; font-weight: 600; margin-left: 8px; text-decoration: underline; text-underline-offset: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .steps li, .steps li.start .mark { animation: none; } }

/* 결과 */
#result { margin-top: 28px; display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card-head { margin-bottom: 16px; }
.card-head h2 { font-size: 18px; letter-spacing: -0.02em; }
.card-head p { margin-top: 3px; font-size: 13.5px; color: var(--muted); }

.read-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; }
.read-grid label { display: grid; align-content: start; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.read-grid label.wide { grid-column: 1 / -1; }
.read-grid input, .read-grid select {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  font-size: 15.5px; color: var(--ink);
}
.read-grid input:focus, .read-grid select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.read-grid label.need input, .read-grid label.need select { border-color: var(--lift); background: var(--lift-soft); }
.read-grid label.changed input, .read-grid label.changed select { border-color: var(--accent); }
.read-grid small { font-size: 12px; color: var(--muted); }
.need-message { margin-top: 12px; font-size: 14px; color: var(--lift); }
.read-foot { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 14px; }
.usage-note { margin-right: auto; font-size: 13px; color: var(--muted); }

.headline { padding: 6px 4px 2px; }
.headline h2 { font-size: 22px; letter-spacing: -0.025em; line-height: 1.35; }
.headline p { margin-top: 6px; color: var(--ink-2); }

.highlights { display: grid; gap: 12px; }
.highlight { padding: 18px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.highlight h3 { font-size: 17px; letter-spacing: -0.015em; }
.highlight ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; line-height: 1.6; }
.highlight .next { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14px; }
.highlight .next b { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--accent); }
.highlight .next span { display: block; color: var(--ink-2); }
.claims { display: grid; gap: 12px; }
.claim { padding-top: 12px; border-top: 1px solid var(--line); }
.claim:first-child { border-top: 0; padding-top: 0; }
.claim q { quotes: none; display: block; font-size: 16px; font-weight: 650; }
.claim q::before { content: "\201C"; }
.claim q::after { content: "\201D"; }
.claim small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--accent); font-weight: 600; }
.claim p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.claim .next { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.copy { border-color: var(--accent); background: var(--accent-soft); }
.copy .card-head p { color: var(--ink-2); }
.copy-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.copy-done { font-size: 14px; font-weight: 600; color: var(--accent); }
.copy-how { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: none; }
.copy-how:hover { text-decoration: underline; }
.copy-view { margin-top: 14px; }
.copy-view summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.copy-view textarea {
  display: block; width: 100%; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); font-size: 13.5px; line-height: 1.65; resize: vertical;
}
.facts { display: grid; gap: 14px; }
.fact { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; padding-top: 0; }
.fact h3 { font-size: 13.5px; font-weight: 700; color: var(--accent); line-height: 1.5; }
.fact h3 small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.fact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fact li { font-size: 15px; line-height: 1.55; }
.fact li.lead { color: var(--muted); font-size: 13.5px; }
.fact p { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.not-checked { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--quiet-soft); }
.not-checked h3 { font-size: 13.5px; margin-bottom: 6px; }
.not-checked ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 3px; }

.cases { display: grid; gap: 12px; }
.case { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--lift-line); background: var(--lift-soft); }
.case h3 { font-size: 16px; letter-spacing: -0.01em; }
.case p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.case dl { margin: 12px 0 0; display: grid; grid-template-columns: 100px 1fr; gap: 6px 12px; font-size: 14px; }
.case dt { color: var(--lift); font-weight: 600; }
.case dd { margin: 0; }
.empty { padding: 14px 16px; border-radius: 12px; background: var(--quiet-soft); font-size: 14.5px; color: var(--ink-2); }

.group-title { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 8px; font-size: 14px; font-weight: 700; }
.group-title:first-child { margin-top: 0; }
.group-title small { font-weight: 500; color: var(--muted); font-size: 13px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.check.group-warning { border-color: var(--lift-line); background: var(--lift-soft); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.check .stage { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--quiet-soft); font-size: 12px; color: var(--ink-2); vertical-align: 2px; white-space: nowrap; }
.check.group-warning .stage { background: var(--card); }
.check b { font-weight: 650; font-size: 15.5px; }
.check p { margin-top: 5px; font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.check .reason { margin-top: 7px; font-size: 13px; color: var(--muted); }
.check.group-warning .reason { color: var(--lift); font-weight: 600; }
.check:has(input:checked) b { text-decoration: line-through; color: var(--muted); }
details.rest { margin-top: 14px; }
details.rest summary { cursor: pointer; padding: 12px 16px; border-radius: 12px; background: var(--quiet-soft); font-size: 14.5px; font-weight: 600; list-style: none; }
details.rest summary::-webkit-details-marker { display: none; }
details.rest summary::after { content: " 펼치기"; color: var(--accent); font-weight: 600; }
details.rest[open] summary::after { content: " 접기"; }
details.rest[open] summary { margin-bottom: 10px; }

.missing { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.missing li { padding-top: 12px; border-top: 1px solid var(--line); }
.missing li:first-child { border-top: 0; padding-top: 0; }
.missing b { font-size: 15px; }
.missing em { font-style: normal; margin-left: 8px; font-size: 12.5px; color: var(--muted); }
.missing p { margin-top: 3px; font-size: 14px; color: var(--ink-2); }

.disclaimer { padding: 4px; font-size: 13px; color: var(--muted); line-height: 1.7; }
.after { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0 4px; font-size: 14.5px; }

@media (max-width: 640px) {
  .top-link { display: none; }
  .hero { padding: 40px 0 24px; }
  .hero .lead { font-size: 16.5px; }
  .brand-sub { display: none; }
  .trust { gap: 6px 14px; font-size: 13.5px; }
  .box-foot { flex-wrap: wrap; padding: 12px 14px 14px; }
  .attach-hint { order: 3; flex-basis: 100%; }
  .go { flex: 1; }
  .intro { grid-template-columns: 1fr; gap: 18px; margin-top: 52px; padding-top: 28px; }
  .intro h2 { margin-bottom: 0; }
  .first-read { gap: 14px; padding: 12px; }
  .first-read img { width: 96px; aspect-ratio: 1; }
  .first-read b { font-size: 15.5px; }
  .first-read small { display: none; }
  .sources { padding: 18px; }
  .sources ul { grid-template-columns: 1fr; gap: 8px; }
  details.more summary { padding: 14px 18px; }
  .top { gap: 10px; }
  .brand { font-size: 14px; }
  .tabs a { padding: 6px 11px; font-size: 13.5px; }
  .howto dl { grid-template-columns: 1fr; gap: 2px; padding: 0 18px 16px; }
  .howto dd { margin-bottom: 8px; }
  .card { padding: 18px 16px; border-radius: 16px; }
  .fact { grid-template-columns: 1fr; gap: 6px; }
  .case dl { grid-template-columns: 1fr; gap: 2px; }
  .case dd { margin-bottom: 6px; }
}

@media print {
  .top, .hero, .box, .fine, .trust, .intro, .howto, .site-foot, .progress, .read-foot, .after, .box-message, .copy { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .card { break-inside: avoid; border-color: #ccc; }
  details.rest > :not(summary) { display: block; }
}
