/* PassCalc — one stylesheet, no external fonts, light and dark. */

:root {
  --bg: #f4f6f9;
  --bg-soft: #eaeff5;
  --card: #ffffff;
  --card-2: #f8fafc;
  --text: #16202b;
  --muted: #5c6b7c;
  --line: #dbe3ec;
  --line-strong: #c3cfdd;
  --accent: #0c6b5f;
  --accent-2: #0a544b;
  --accent-soft: #e3f2ee;
  --amber: #a86412;
  --amber-soft: #fdf3e1;
  --red: #b23a32;
  --red-soft: #fbeceb;
  --green: #17724f;
  --green-soft: #e6f4ed;
  --shadow: 0 1px 2px rgba(18, 32, 48, .05), 0 8px 24px rgba(18, 32, 48, .05);
  --radius: 14px;
}

html[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f1929;
  --card: #121d2e;
  --card-2: #162334;
  --text: #e6edf6;
  --muted: #9aabc0;
  --line: #22314a;
  --line-strong: #33456a;
  --accent: #4fd1b5;
  --accent-2: #7ce4cd;
  --accent-soft: #10362f;
  --amber: #f0b357;
  --amber-soft: #35280f;
  --red: #f08b82;
  --red-soft: #3a1a18;
  --green: #6fdcae;
  --green-soft: #123527;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }

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

html[lang="ko"] body { word-break: keep-all; }
html[lang="ja"] body { line-break: strict; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic",
    "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans KR", "Microsoft YaHei",
    "Microsoft JhengHei", Roboto, Helvetica, Arial, "Liberation Sans",
    "DejaVu Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .35em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
a { color: var(--accent); }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
input, select { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

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

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--card); color: var(--text);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 50;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ header */
.site-head {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(1.2) blur(8px);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--text); min-width: 0;
}
.brand .mark { display: inline-flex; color: var(--accent); }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-name b { font-weight: 800; color: var(--accent); }
.brand-sub {
  font-size: 10px; letter-spacing: .14em; color: var(--muted);
  border-left: 1px solid var(--line-strong); padding-left: 9px; margin-left: 2px;
  text-transform: uppercase; white-space: nowrap;
}
.head-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }
.langs { display: flex; flex-wrap: wrap; gap: 2px; }
.langs a {
  text-decoration: none; color: var(--muted); font-size: 13px; padding: 5px 8px;
  border-radius: 8px; white-space: nowrap;
}
.langs a:hover { color: var(--text); background: var(--bg-soft); }
.langs a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); cursor: pointer; flex: none;
}
.icon-btn:hover { border-color: var(--line-strong); }
.i-sun { display: none; }
html[data-theme="dark"] .i-sun { display: block; }
html[data-theme="dark"] .i-moon { display: none; }

/* -------------------------------------------------------------------- hero */
.hero { padding: 44px 20px 8px; max-width: 1020px; }
.eyebrow {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: .35em; }
.lede { font-size: clamp(16px, 1.7vw, 18.5px); color: var(--muted); max-width: 46em; }
.answer {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  padding: 14px 16px; border-radius: 0 10px 10px 0;
  font-size: 15px; max-width: 52em;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; }
.chip {
  font-size: 12.5px; padding: 5px 11px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
}
.basis-strip {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px;
  font-size: 13px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 12px;
}
.basis-strip b { color: var(--text); font-weight: 700; margin-right: 4px; }

/* ------------------------------------------------------------------- charts */
.sec { padding: 40px 20px 4px; }
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.sec-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 4px; }
.sec-sub { color: var(--muted); font-size: 14.5px; max-width: 62em; margin: 0; }
.date-badge {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--card);
  border-radius: 999px; padding: 6px 12px; font-size: 12.5px;
  font-variant-numeric: tabular-nums; margin: 0;
}
.date-badge span { color: var(--muted); }

.cols {
  display: grid; grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px; align-items: start;
}
.col-main { display: grid; gap: 18px; min-width: 0; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; min-width: 0;
}
.panel h3 { font-size: 19px; margin-bottom: 2px; }
.panel-head { margin-bottom: 12px; }
.panel .sub, .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; }

.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.lbl {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--muted);
  margin-bottom: 5px; letter-spacing: .01em;
}
.hint { font-size: 12px; color: var(--muted); margin: 5px 0 0; line-height: 1.5; }
input[type="number"], input[type="text"], select {
  width: 100%; min-width: 0; padding: 9px 11px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--card-2); color: var(--text);
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat; padding-right: 30px;
}
input:focus-visible, select:focus-visible, button:focus-visible,
summary:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--accent); margin: 0; cursor: pointer;
}
.money { display: flex; align-items: center; gap: 6px; min-width: 0; }
.money .cur {
  font-size: 12px; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 7px; padding: 2px 6px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.money input { text-align: right; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong); background: var(--card);
  color: var(--text); border-radius: 10px; padding: 9px 14px;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-soft); }
.btn.small { padding: 7px 11px; font-size: 13px; border-radius: 9px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
html[data-theme="dark"] .btn.primary { color: #06231e; }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: transparent; }

.pass-note {
  margin: 14px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--bg-soft); color: var(--muted); font-size: 13px;
  border: 1px solid var(--line);
}

.itin-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ------------------------------------------------------------------ tables */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: normal;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.strong { font-weight: 700; }

.itin-table { min-width: 0; table-layout: fixed; }
.itin-table th, .itin-table td { padding: 7px 6px; }
.itin-table th { white-space: normal; line-height: 1.2; font-size: 10.5px; letter-spacing: .02em; }
.itin-table th:nth-child(1) { width: 32px; }
.itin-table th:nth-child(2) { width: 24%; }
.itin-table th:nth-child(3) { width: 20%; }
.itin-table th:nth-child(4) { width: 64px; }
.itin-table th:nth-child(5) { width: 54px; }
.itin-table th:nth-child(6) { width: 86px; }
.itin-table th:nth-child(7) { width: 92px; }
.itin-table th:nth-child(8) { width: 30px; }
.itin-table .c-sel { width: 38px; }
.itin-table .c-round { width: 56px; text-align: center; }
.itin-table .c-qty { width: 62px; }
.itin-table .c-sum { width: 100px; white-space: nowrap; }
.itin-table .c-del { width: 34px; }
.itin-table td.c-round { text-align: center; }
.itin-table input[type="number"] { padding: 6px 8px; font-size: 13px; border-radius: 8px; }
.itin-table .c-fare { min-width: 108px; }
.itin-table .c-fare .cur { padding: 1px 5px; font-size: 11px; }
.itin-table .c-sum { font-variant-numeric: tabular-nums; }
.itin-table tr.off td { opacity: .5; }
.itin-table tr.off td.c-sel, .itin-table tr.off td.c-name { opacity: 1; }
.seg-name { font-weight: 600; }
.tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber); font-size: 11px;
  border: 1px solid color-mix(in srgb, var(--amber) 25%, transparent);
  white-space: nowrap;
}
.row-del {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--muted); cursor: pointer; line-height: 1;
  font-size: 15px;
}
.row-del:hover { color: var(--red); border-color: var(--red); background: var(--red-soft); }

.add-row { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.add-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) auto; gap: 8px; }
.add-grid input { padding: 8px 10px; }

/* ------------------------------------------------------------------ result */
.result { position: sticky; top: 78px; }
.result h3 { margin-bottom: 2px; }
.verdict {
  font-size: 17px; font-weight: 800; margin: 8px 0 14px;
  padding: 10px 12px; border-radius: 10px; background: var(--bg-soft);
}
.result[data-verdict="pass"] .verdict { background: var(--green-soft); color: var(--green); }
.result[data-verdict="ind"] .verdict { background: var(--amber-soft); color: var(--amber); }
.result[data-verdict="tie"] .verdict { background: var(--accent-soft); color: var(--accent); }

.kv { margin: 0; }
.kv > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd {
  margin: 0; font-weight: 700; font-variant-numeric: tabular-nums;
  text-align: right; font-size: 16px;
}
.kv dd small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.kv .diff { border-bottom: 1px solid var(--line-strong); }
.kv .diff dd { font-size: 19px; }
.result[data-verdict="pass"] .kv .diff dd { color: var(--green); }
.result[data-verdict="ind"] .kv .diff dd { color: var(--amber); }

.people-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.mini {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin: 14px 0 0;
}
.mini > div {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; min-width: 0;
}
.mini span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.mini b { font-size: 14px; font-variant-numeric: tabular-nums; }
.krw { font-size: 13px; color: var(--muted); margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.export { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ok-text { color: var(--green); }
.warn-text { color: var(--red); }

/* ---------------------------------------------------------------- money UI */
.fx-out {
  font-size: 22px; font-weight: 800; margin: 14px 0 4px;
  font-variant-numeric: tabular-nums; line-height: 1.3;
}
.rate-table td, .card-table td { padding: 7px 8px; }
.rate-table td:first-child { font-weight: 700; }
.rate-table .money { max-width: 140px; }
.rate-table input { padding: 5px 7px; font-size: 13px; }
.rate-table .cur { font-size: 11px; padding: 1px 5px; }

.tax-status {
  margin: 10px 0; padding: 9px 12px; border-radius: 10px;
  font-size: 13px; background: var(--bg-soft); border: 1px solid var(--line);
}
.tax-status.ok { background: var(--green-soft); color: var(--green); border-color: transparent; }
.tax-status.warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.mini-title { font-size: 15px; margin: 18px 0 2px; }
.card-table, .rate-table, .rules-table { table-layout: fixed; }
.card-table th, .rate-table th, .rules-table th { white-space: normal; line-height: 1.2; }
.card-table th, .card-table td { font-size: 11.5px; }
.card-table th, .card-table td { padding: 7px 4px; font-size: 12.5px; }
.card-table th:nth-child(1), .card-table td:nth-child(1) { width: 17%; }
.card-table th:nth-child(2), .card-table td:nth-child(2) { width: 29%; text-align: right; }
.card-table th:nth-child(3), .card-table td:nth-child(3) { width: 27%; text-align: right; }
.card-table th:nth-child(4), .card-table td:nth-child(4) { width: 27%; text-align: right; }
.card-table tr.here td { background: var(--accent-soft); font-weight: 700; }

/* --------------------------------------------------------------- sections */
.steps {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  counter-reset: step;
}
.steps li {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px;
}
.steps h3 { font-size: 16px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 13.5px; }

.rules-table th[scope="row"] { font-size: 13.5px; color: var(--text); text-transform: none; letter-spacing: 0; width: 22%; }
.rules-table td { font-size: 13px; color: var(--muted); vertical-align: top; }
.rules-table td:nth-child(2) { width: 18%; color: var(--text); }
.note-line { margin-top: 10px; }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow);
}
.feat h3 { font-size: 15.5px; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 13.5px; }

.privacy-band {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.privacy-band h2 { font-size: 20px; }
.privacy-band p { margin: 0; color: var(--muted); font-size: 14px; max-width: 60em; }
.privacy-band .btn { flex: none; white-space: nowrap; }

.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { margin: 0; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ footer */
.site-foot { margin-top: 52px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.foot-grid {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 8px;
}
.foot-brand { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.foot-brand b { color: var(--accent); }
.foot-brand .opyeb { font-weight: 500; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.foot-note { color: var(--muted); font-size: 12.5px; margin: 0; }
.foot-right { text-align: right; }
.foot-links { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; font-size: 13px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-langs { font-size: 12px; color: var(--muted); margin-top: 6px; }
.foot-langs a { color: var(--muted); text-decoration: none; }
.foot-legal {
  font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line);
  margin: 10px 0 0; padding: 12px 0 22px;
}

/* -------------------------------------------------------------- policy page */
.page-wrap { max-width: 820px; padding-top: 40px; }
.page-wrap h1 { font-size: clamp(26px, 3.4vw, 36px); }
.page-wrap h2 { font-size: 20px; margin-top: 28px; }
.page-wrap p { color: var(--muted); }
.page-wrap p.updated { font-size: 12.5px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.contact-card {
  margin-top: 28px; padding: 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.contact-card .btn { margin-bottom: 6px; }
.back { display: inline-block; margin-top: 24px; font-size: 14px; text-decoration: none; }
.lang-list { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0; }
.lang-list a { text-decoration: none; }
.notice {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: var(--amber-soft); color: var(--amber); font-size: 13.5px;
}

/* ------------------------------------------------------------------ mobile */
@media (max-width: 1060px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; }
  .feats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 30px 16px 4px; }
  .sec { padding: 30px 16px 2px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .date-badge { align-self: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .privacy-band { flex-direction: column; align-items: flex-start; }
  .foot-right { text-align: left; }
  .foot-links { justify-content: flex-start; }
  .brand-sub { display: none; }
  .head-inner { min-height: 56px; }
  .mini { grid-template-columns: 1fr 1fr; }
  .mini > div:last-child { grid-column: 1 / -1; }
  .fx-out { font-size: 19px; }
}

@media (max-width: 640px) {
  .fgrid { grid-template-columns: 1fr; }
  .add-grid { grid-template-columns: 1fr; }
  .add-grid .btn { width: 100%; }
  .field .lbl { margin-bottom: 4px; }

  .itin-table thead { display: none; }
  .itin-table, .itin-table tbody, .itin-table tr, .itin-table td { display: block; width: auto; }
  .itin-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 12px; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px; margin-bottom: 10px; background: var(--card-2);
  }
  .itin-table tr:last-child { margin-bottom: 0; }
  .itin-table td { border: 0; padding: 0; min-width: 0; }
  .itin-table td::before {
    content: attr(data-label); display: block; font-size: 10.5px; color: var(--muted);
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px;
  }
  .itin-table td.c-sel { grid-column: 1; }
  .itin-table td.c-name { grid-column: 2 / -1; }
  .itin-table td.c-fare { grid-column: 1 / -1; }
  .itin-table td.c-round { grid-column: 1; text-align: left; }
  .itin-table td.c-qty { grid-column: 2; }
  .itin-table td.c-res { grid-column: 1; }
  .itin-table td.c-sum { grid-column: 2; }
  .itin-table td.c-del { grid-column: 1 / -1; align-items: flex-end; }
  .itin-table td.c-del::before { display: none; }
  .itin-table .row-del { border-radius: 8px; width: 32px; height: 28px; }
  .itin-table .c-fare .money { max-width: none; }

  .rate-table, .card-table, .rules-table { font-size: 12px; table-layout: fixed; }
  .rate-table th, .rate-table td { padding: 6px 3px; }
  .rate-table .money { max-width: none; }
  .rate-table .cur { display: none; }
  .rate-table input { padding: 4px 5px; font-size: 12px; }
  .rate-table th:nth-child(1), .rate-table td:nth-child(1) { width: 18%; }
  .rate-table th:nth-child(2), .rate-table td:nth-child(2) { width: 30%; }
  .rate-table th:nth-child(3), .rate-table td:nth-child(3) { width: 25%; }
  .rate-table th:nth-child(4), .rate-table td:nth-child(4) { width: 27%; }
  .rules-table th, .rules-table td { padding: 6px 4px; }
  .rules-table th[scope="row"], .rules-table td { display: table-cell; }
  .rules-table th[scope="row"] { width: 27%; }
  .rules-table td:nth-child(2) { width: 21%; }
  .card-table th, .card-table td { padding: 6px 3px; font-size: 11.5px; }
  .card-table th { font-size: 10.5px; }
  .kv dd { font-size: 15px; }
  .kv .diff dd { font-size: 17px; }
}

@media (max-width: 400px) {
  body { font-size: 15px; }
  .langs a { padding: 5px 6px; font-size: 12px; }
  .card { padding: 16px; }
  .mini { grid-template-columns: 1fr; }
  .mini > div:last-child { grid-column: auto; }
  .date-badge { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  .site-head, .export, .itin-tools, .add-row, .site-foot, .hero .chips { display: none; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #bbb; }
}
