/* Eigo OK. Replica of the Monito layout grammar (art-direction 2026-10-14, colour A). Values: 05_implementation/design-tokens.md */
:root {
  --bg: #eceae3;
  --surface: #ffffff;
  --surface-2: #f4f2ed;
  --text: #2a2724;
  --sub: #5f5a54;
  --band: #7a2335;
  --link: #8f2a3f;
  --marker: #f3e3e6;
  --ink: #2a2724;
  --ad-line: #a8a29a;
  --ft-sub: #c9c5bc;
  --field: #8d877d;
  --rule: #e2ded5;
  --shadow: 0 3px 20px rgba(42, 39, 36, .08);
  --shadow-sm: 0 3px 20px rgba(42, 39, 36, .05);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gut: 40px;
  --hd-h: 99px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 18px; line-height: 1.5; letter-spacing: .01em; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--text); letter-spacing: 0; }
p { margin: 0; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
strong, b { font-weight: 700; }
mark { background: var(--marker); color: var(--text); padding: 0 .1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 6px; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.chev { flex: none; width: 10px; height: 10px; }
.note, .c-in p.note, .c-in .note { font-size: 15px; line-height: 22px; color: var(--sub); }
.center { text-align: center; }

/* focus: double ring (inner white, outer ink). On dark surfaces the colours swap */
:focus { outline: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 4px var(--ink); border-radius: 4px; }
.btn--ink:focus-visible, .pill--official:focus-visible, .ft a:focus-visible, .skip:focus-visible, .band a:focus-visible { outline-color: var(--ink); box-shadow: 0 0 0 4px #fff; }

/* ---- header (white, not fixed) ---- */
.hd { position: relative; z-index: 20; background: var(--surface); }
.hd-in { display: flex; align-items: center; gap: 32px; height: var(--hd-h); max-width: calc(var(--wrap) + 110px); margin: 0 auto; padding: 0 55px; }
.logo { display: inline-flex; align-items: baseline; gap: 0; color: var(--text); text-decoration: none; font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.logo:hover { text-decoration: none; }
.logo-b { color: var(--band); margin-left: .22em; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 36px; margin: 0; padding: 0; list-style: none; }
.gnav a { display: inline-block; padding: 12px 0; color: var(--text); font-size: 16px; font-weight: 600; text-decoration: none; }
.gnav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.menu-btn { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.mn { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); box-shadow: 0 12px 20px rgba(42, 39, 36, .08); border-top: 1px solid var(--rule); }
.mn ul { margin: 0; padding: 8px 24px 16px; list-style: none; }
.mn li + li { border-top: 1px solid var(--rule); }
.mn a { display: flex; align-items: center; min-height: 52px; color: var(--text); font-size: 18px; font-weight: 600; text-decoration: none; }

/* ---- band (single colour, horizontal bottom edge) ---- */
.band { background: var(--band); color: #fff; }
.band--hero { padding: 108px var(--gut) 196px; text-align: center; }
.band-in { max-width: 760px; margin: 0 auto; }
.hero-h { color: #fff; font-size: 38px; line-height: 47.5px; }
.hero-sub { margin-top: 16px; font-size: 18px; line-height: 27px; color: #fff; }
.band--page { height: 286px; }
.band--list { padding: 72px var(--gut) 140px; text-align: center; }
.band-h { color: #fff; font-size: 38px; line-height: 47.5px; }
.band-sub { margin-top: 12px; color: #fff; font-size: 18px; line-height: 27px; }

/* ---- filter card (top only) ---- */
.filter { position: relative; z-index: 2; margin-top: -136px; padding-bottom: 72px; }
.filter-card { max-width: 736px; margin: 0 auto; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); }
.f-row { padding: 24px; }
.f-row + .f-row { border-top: 3px solid var(--surface-2); }
.f-row--q { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.filter fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter legend { display: block; width: 100%; padding: 0; margin-bottom: 8px; }
.f-row--q .f-q legend { min-height: 60px; }
.f-k { display: block; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--sub); }
.f-hint { display: block; margin-top: 2px; font-size: 15px; line-height: 20px; color: var(--text); }
.f-genre .f-k { display: block; }
.f-genre legend { margin-bottom: 10px; }
.seg { display: flex; gap: 8px; }
.seg label { position: relative; flex: 1 1 0; min-width: 0; }
.seg input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 10px; border: 2px solid var(--field); border-radius: 8px; font-size: 16px; font-weight: 700; color: var(--text); text-align: center; line-height: 1.2; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid #fff; box-shadow: 0 0 0 4px var(--ink); }
.seg--genre span { font-size: 17px; min-height: 52px; }
.f-title { padding: 24px 24px 4px; font-size: 20px; line-height: 25px; }
.f-links { margin: 0; padding: 0 24px; list-style: none; }
.f-links li + li { border-top: 1px solid var(--rule); }
.f-links a { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 0; color: var(--text); text-decoration: none; }
.f-links .f-k { flex: none; width: 128px; }
.f-q-t { flex: 1; font-size: 17px; line-height: 23px; font-weight: 600; }
.f-links a:hover .f-q-t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.f-links .chev { color: var(--link); }
.f-row--go { display: flex; justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 6px; font-size: 18px; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; border: 0; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.f-go { min-height: 64px; min-width: 168px; }

/* ---- sections (top) ---- */
.sec { padding: 96px 0; }
.sec--white { background: var(--surface); }
.sec--grey { background: var(--bg); }
.sec--white .card, .sec--white .ac-link, .sec--white .gtab { box-shadow: var(--shadow-sm); }
.main { overflow-x: clip; }
.main:has(> .sec-work:last-child) { padding-bottom: 0 !important; }
.sec-h { font-size: 38px; line-height: 47.5px; }
.sec-h--c { text-align: center; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px 96px; align-items: start; }
.two-txt { padding: 0 0 0 32px; }
.sec-how .two-txt { position: sticky; top: 24px; }
.two-txt p { margin-top: 24px; font-size: 18px; line-height: 27px; }
.two-txt .sec-h + p { margin-top: 32px; }
.two-card { padding: 16px 32px; }
.qlist { margin: 0; padding: 0; list-style: none; }
.qlist li + li { border-top: 1px solid var(--rule); }
.qlist a { display: flex; align-items: center; gap: 16px; padding: 18px 0; color: var(--text); text-decoration: none; }
.qlist a:hover .q-k { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.q-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-size: 15px; font-weight: 700; color: var(--band); }
.q-t { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.q-k { font-size: 17px; font-weight: 700; color: var(--link); }
.q-d { font-size: 15px; line-height: 21px; color: var(--sub); }
.qlist .chev { color: var(--link); }
.two-cards { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.mini { padding: 28px 32px; border-radius: 12px; box-shadow: var(--shadow-sm); text-align: center; }
.mini-ic { display: block; margin: 0 auto 10px; color: var(--band); }
.mini-h { font-size: 17px; font-weight: 700; }
.mini-d { margin-top: 4px; font-size: 15px; line-height: 22px; color: var(--sub); }

/* genre switch + table on the top page */
.gtabs { display: flex; flex-wrap: wrap; gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.gtab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 180px; padding: 16px 20px 18px; border-radius: 6px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; text-align: center; }
.gtab-k { font-size: 17px; font-weight: 700; }
.gtab-n, .gtab-v { font-size: 15px; color: var(--sub); }
.gtab.is-on, .gtab[aria-selected="true"] { box-shadow: var(--shadow-sm), inset 0 -4px 0 var(--ink); }
.gtab.is-on::after, .gtab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: -9px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.js .gtab[aria-selected="false"]::after { display: none; }
.js .gtab[aria-selected="false"] { box-shadow: var(--shadow-sm); }
.plans-card { margin-top: 32px; padding: 32px; }
.gpanel + .gpanel { margin-top: 48px; }
.gpanel-h { font-size: 20px; line-height: 25px; margin-bottom: 16px; }
.gpanel-tier { margin: 24px 0 8px; font-size: 17px; font-weight: 700; }
.gpanel-more { margin-top: 16px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }

/* facts (Monito "key facts" shape; headings are our own) */
.facts-h { font-size: 28px; line-height: 35px; margin-bottom: 24px; }
.sec-facts .facts-h { font-size: 38px; line-height: 47.5px; text-align: center; margin-bottom: 40px; }
.facts-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; margin: 0; padding: 48px; border-radius: 8px; background: var(--surface-2); }
.sec-facts .facts-box { background: var(--surface-2); border-radius: 8px; }
.fact dt { font-size: 16px; font-weight: 700; line-height: 24px; }
.fact dd { margin: 4px 0 0; font-size: 16px; line-height: 24px; }

/* changes */
.chg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.chg-i { padding: 24px; border-radius: 12px; }
.chg-d { font-size: 15px; color: var(--sub); }
.chg-t { margin-top: 6px; font-size: 17px; font-weight: 700; }
.chg-n { margin-top: 6px; font-size: 15px; color: var(--sub); }

/* article cards grid: 3 columns, then 4 */
.ac-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.ac--s3 { grid-column: span 3; }
.ac--s4 { grid-column: span 4; }
.ac--s6 { grid-column: span 6; }
.ac--s12 { grid-column: span 12; }
.ac-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; }
.ac-img { display: block; aspect-ratio: 2 / 1; background: var(--marker); }
.ac-img .fg { display: block; width: 100%; height: 100%; }
.ac-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.ac-title { font-size: 17px; line-height: 23px; font-weight: 700; }
.ac-link:hover .ac-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.ac-meta { margin-top: auto; font-size: 15px; line-height: 21px; color: var(--sub); }
.list-order { margin-top: 16px; }
.sec-guides .list-order, .sec-changes .list-order { text-align: center; }

/* situations list (3 columns, arrow on the right) */
.sit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; margin: 32px 0 0; padding: 0; list-style: none; }
.sit li { border-bottom: 1px solid var(--rule); }
.sit a { display: flex; align-items: center; gap: 16px; min-height: 104px; padding: 16px 0; color: var(--text); text-decoration: none; }
.sit-t { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.sit-d { font-size: 15px; line-height: 21px; color: var(--sub); }
.sit-h { font-size: 18px; font-weight: 700; }
.sit a:hover .sit-h { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.arrow { flex: none; color: var(--link); }

/* FAQ card */
.faq-card { max-width: 768px; margin: 0 auto; padding: 48px 72px 48px; }
.faq-card .sec-h { margin-bottom: 24px; }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: 18px; line-height: 27px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.plus { flex: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.faq[open] .plus-v { display: none; }
.faq-a { padding: 0 0 24px; font-size: 17px; line-height: 26px; }

/* ---- article and guide pages ---- */
.pg-article .main, .pg-static .main, .pg-list .main { padding-bottom: 96px; }
.a-grid { display: grid; grid-template-columns: minmax(0, 824px) 352px; justify-content: space-between; gap: 24px; margin-top: -158px; position: relative; }
.a-grid--single { grid-template-columns: minmax(0, 824px); justify-content: center; }
.a-col { min-width: 0; }
.a-main > * + * { margin-top: 24px; }
.a-top { overflow: hidden; }
.a-hero { aspect-ratio: 824 / 354; background: var(--marker); }
.a-hero .fg { display: block; width: 100%; height: 100%; }
.c-in { padding: 48px 96px 56px; }
.a-top .c-in { padding-top: 44px; }
.a-title { font-size: 38px; line-height: 47.5px; }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.byline { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.ed-mark { width: 40px; height: 40px; flex: none; }
.ed-bg { fill: var(--surface-2); }
.ed-line { fill: none; stroke: var(--band); stroke-width: 2.4; stroke-linecap: round; }
.a-dates { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--sub); }
.a-disc { font-size: 15px; }
.facts-inline { margin-top: 32px; }
.facts-inline .facts-h { font-size: 20px; line-height: 25px; margin-bottom: 12px; }
.a-ad { flex-basis: 100%; font-size: 15px; line-height: 22px; color: var(--sub); }
.pr { display: inline-flex; align-items: center; height: 20px; margin-right: 8px; padding: 0 6px; border: 1px solid var(--sub); border-radius: 3px; font-size: 12px; font-weight: 700; line-height: 1; color: var(--text); vertical-align: 1px; letter-spacing: .02em; }
.bc ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 21px; color: var(--sub); }
.bc li { display: inline-flex; align-items: center; gap: 8px; }
.bc a { color: var(--sub); }
.bc .chev { width: 8px; height: 8px; }
.intro { margin-top: 32px; }
.c-in p, .c-in li { font-size: 18px; line-height: 27px; }
.c-in p + p { margin-top: 18px; }
.c-in h2 { font-size: 28px; line-height: 35px; margin-bottom: 24px; }
.c-in h3 { font-size: 20px; line-height: 25px; margin: 48px 0 16px; }
.c-in section + section, .c-in .lead-p + section { margin-top: 48px; }
.lead-p { margin-top: 24px; }
.a-title + .lead-p, .a-title + p, .a-title + h2, .a-title + .tbl { margin-top: 32px; }
.a-title ~ h2 { margin-top: 48px; }
.bullets { margin: 18px 0 0; padding-left: 1.2em; }
.bullets li + li { margin-top: 8px; }
.anchor { position: relative; top: -16px; }

/* open/close panels (table of contents, questions, full terms): the body height moves over 0.2s (grid-template-rows 0fr -> 1fr), as on the reference.
   Only when site.js runs (.js); without it <details> opens and closes on its own. Reduced motion makes it instant (rule at the end). */
.js .dt--anim .dt-anim { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s cubic-bezier(.4, 0, .2, 1); }
.js .dt--anim.is-open .dt-anim { grid-template-rows: 1fr; }
.dt-clip { min-height: 0; overflow: hidden; }
.dt--anim:not([open]) .dt-anim { display: none; }
.js .dt--anim[open]:not(.is-open) .plus-v { display: inline; }
.js .toc--inline[open]:not(.is-open) summary .chev { transform: rotate(90deg); }

/* table of contents: inline <details> under 1024px, sticky column at 1024px and up */
.toc-list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.toc-list li + li { border-top: 1px solid var(--rule); }
.toc-list a { display: flex; align-items: center; gap: 10px; padding: 14px 0; color: var(--link); font-size: 17px; line-height: 23px; font-weight: 600; text-decoration: none; }
.toc-list a:hover .toc-t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.toc-n { flex: none; min-width: 28px; color: var(--sub); font-weight: 600; font-variant-numeric: tabular-nums; }
.toc-t { flex: 1; }
.toc-list a[aria-current="true"] { color: var(--text); box-shadow: inset 3px 0 0 var(--band); padding-left: 12px; }
.toc--inline { display: none; margin-top: 32px; border-radius: 8px; background: var(--surface-2); }
.toc--inline summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 20px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline summary .chev { transform: rotate(90deg); transition: transform .2s; }
.toc--inline[open] summary .chev { transform: rotate(-90deg); }
.toc--inline .toc-list { padding: 0 20px 8px; }
.a-side { position: relative; padding-top: 176px; }
.toc--side { position: sticky; top: 16px; padding: 20px 24px 12px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-sm); }
.toc-h { font-size: 15px; line-height: 20px; font-weight: 700; color: var(--sub); margin-bottom: 4px; }
.side-ads { margin-bottom: 24px; padding: 16px; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-sm); }
.side-ads ul { margin: 12px 0 0; padding: 0; list-style: none; }
.side-ads li + li { margin-top: 12px; }
.side-h { font-size: 15px; font-weight: 700; }

/* picks */
.picks { margin-top: 40px; padding: 40px 48px; border-radius: 8px; background: var(--surface-2); }
.picks-h { font-size: 20px !important; line-height: 25px !important; margin-bottom: 8px !important; }
.picks ul { margin: 0; padding: 0; list-style: none; }
.picks li { padding: 20px 0; }
.picks li + li { border-top: 1px solid var(--rule); }
.picks .pick-who { font-size: 15px !important; line-height: 21px !important; color: var(--sub); font-weight: 600; }
.pick-to { margin-top: 4px !important; font-size: 18px; font-weight: 700; }
.pick-why { margin-top: 6px !important; font-size: 17px !important; line-height: 25px !important; }
.pick-official { margin-top: 14px !important; }

/* comparison table */
.tbl-title { margin-top: 8px; font-size: 16px !important; font-weight: 700; color: var(--sub); }
.tbl-hint { margin-top: 4px; font-size: 15px !important; color: var(--sub); }
.tbl { position: relative; margin-top: 12px; overflow-x: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule); -webkit-overflow-scrolling: touch; }
.tbl table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; line-height: 23px; }
.tbl th, .tbl td { padding: 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); background: var(--surface); }
.tbl tr:last-child > * { border-bottom: 0; }
.tbl thead th { background: var(--surface-2); color: var(--sub); font-weight: 600; font-size: 15px; line-height: 20px; }
.tbl table[data-plans] { min-width: 760px; }
.tbl table[data-plans] tbody th { position: sticky; left: 0; z-index: 1; min-width: 176px; font-weight: 700; }
.tbl .c-min_contract { min-width: 160px; }
.tbl .c-residence_card, .tbl .c-foreign_card { min-width: 96px; }
.tbl table[data-plans] thead th.corner { position: sticky; left: 0; z-index: 2; }
.tbl.is-scroll-l table[data-plans] tbody th, .tbl.is-scroll-l table[data-plans] thead th.corner { box-shadow: 6px 0 8px -6px rgba(42, 39, 36, .25); }
.tbl.is-scroll-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), rgba(0, 0, 0, .25)); mask-image: linear-gradient(to right, #000 calc(100% - 40px), rgba(0, 0, 0, .25)); }
.tbl tbody th a, .pick-to a, .gpanel-h a { color: var(--text); text-decoration: none; }
.tbl tbody th a:hover, .pick-to a:hover, .gpanel-h a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.row-plan { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--sub); }
.c-price { min-width: 150px; font-variant-numeric: tabular-nums; }
.c-wide .c-in { padding-left: 24px; padding-right: 24px; }
.c-wide .c-in > h2, .c-wide .c-in > h3, .c-wide .c-in > p:not(.note):not(.tbl-title):not(.tbl-hint) { margin-left: 24px; margin-right: 24px; }
.c-official { min-width: 184px; }
.c-official .pill--official { width: 168px; min-width: 168px; min-height: 48px; padding: 0 12px; gap: 6px; font-size: 15px; white-space: nowrap; }
.ans { font-weight: 700; }
.ans--not_stated { font-weight: 400; color: var(--sub); }
@media (min-width: 1024px) {
  /* 1024px and up: fixed column widths so the monthly price and the official-site column fit without sideways scrolling (776px in articles) */
  .tbl table[data-plans] { min-width: 0; table-layout: fixed; font-size: 15px; line-height: 21px; }
  .tbl table[data-plans] th, .tbl table[data-plans] td { min-width: 0; padding: 12px 8px; overflow-wrap: break-word; }
  .tbl table[data-plans] .corner { width: 14%; }
  .tbl table[data-plans] thead .c-english { width: 13%; }
  .tbl table[data-plans] thead .c-residence_card, .tbl table[data-plans] thead .c-foreign_card { width: 10%; }
  .tbl table[data-plans] thead .c-min_contract { width: 14%; }
  .tbl table[data-plans] thead th { font-size: 14px; line-height: 19px; padding: 10px 6px; overflow-wrap: normal; hyphens: manual; }
  .tbl table[data-plans] thead .c-price { width: 15%; }
  .tbl table[data-plans] td.c-price { overflow-wrap: normal; padding-left: 6px; padding-right: 6px; font-size: 14px; }
  .tbl table[data-plans] thead .c-official { width: 24%; }
  .tbl table[data-plans] td.c-official { padding-left: 8px; padding-right: 8px; }
}
.rc-more { margin-top: 12px; border-top: 1px solid var(--rule); }
.rc-more summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.rc-more summary::-webkit-details-marker { display: none; }
.rc-more[open] .plus-v { display: none; }
.c-english { min-width: 170px; }
.stale { display: inline-block; padding: 0 6px; border-radius: 3px; background: var(--surface-2); color: var(--sub); font-size: 14px; font-weight: 700; }
.tbl-legend, .tbl-order, .tbl-stale, .tbl-showing { margin-top: 10px !important; font-size: 15px !important; line-height: 22px !important; color: var(--sub); }
.tbl-showing button, .tbl-reset { margin-left: 8px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.tbl-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.tbl tr[hidden] { display: none; }
.kv { min-width: 0; }
.kv th { width: 34%; background: var(--surface-2) !important; color: var(--text); font-weight: 600; }
.per-plan { margin: 0 0 6px; padding: 0; list-style: none; }
.per-plan li { font-size: 16px !important; line-height: 23px !important; }
.pp-plan { display: inline-block; min-width: 7.5em; margin-right: 8px; font-weight: 600; color: var(--sub); }

/* fact badges (3 cards) */
.fbs { margin-top: 40px; }
.fb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fb { padding: 20px; border-radius: 12px; background: var(--surface-2); }
.fb-h { font-size: 17px !important; font-weight: 700; line-height: 23px !important; }
.fb-note { margin-top: 2px !important; font-size: 15px !important; line-height: 21px !important; color: var(--sub); }
.fb-list { margin: 12px 0 0; padding: 0; list-style: none; }
.fb-list li { display: flex; flex-direction: column; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 15px !important; line-height: 21px !important; }
.fb-name { font-weight: 600; }
.fb-v { color: var(--sub); font-variant-numeric: tabular-nums; }

/* result cards (one per provider) */
.rcs { position: relative; margin-top: 48px !important; padding: 48px 0; }
.rcs::before { content: ""; position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw; background: var(--surface); z-index: -1; }
.rcs .rc { box-shadow: var(--shadow-sm); }
.rcs-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 0 0 16px; border-bottom: 1px solid var(--rule); }
.rcs-h { font-size: 28px; line-height: 35px; flex-basis: 100%; }
.rcs-n { font-size: 18px; font-weight: 600; }
.rcs-head .list-order { margin: 0; }
.rcs-disc { font-size: 15px; }
.rc { margin-top: 24px; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 8px; }
.rc-main { display: grid; grid-template-columns: 168px minmax(0, 1fr) 208px; gap: 20px; }
.rc-left { padding: 24px 20px; border-radius: 12px; background: var(--surface-2); }
.rc-left h3 { font-size: 20px; line-height: 25px; }
.svc-plans { margin-top: 6px; font-size: 15px; line-height: 21px; color: var(--sub); }
.rc-genre { margin-top: 10px; font-size: 15px; color: var(--sub); }
.rc-mid { padding: 16px 0; min-width: 0; }
.en-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.en-strip li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.en-strip .lv { flex: none; color: var(--band); }
.en-k { font-size: 13px; line-height: 17px; color: var(--sub); font-weight: 600; }
.en-v { display: flex; align-items: center; gap: 6px; font-size: 15px; line-height: 20px; font-weight: 700; }
.en-strip--stale { padding: 8px 0; }
.rc-varies { margin-top: 8px; font-size: 15px; color: var(--sub); }
.rc-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; }
.rc-f dt { font-size: 15px; line-height: 20px; color: var(--sub); }
.rc-f dd { margin: 4px 0 0; font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.rc-jp { margin-top: 14px; padding: 10px 14px; border-radius: 8px; background: var(--surface-2); font-size: 15px; line-height: 22px; }
.rc-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; padding: 16px 16px 16px 0; text-align: right; }
.rc-price-l { font-size: 15px; color: var(--sub); }
.rc-prices { margin: 0; padding: 0; list-style: none; }
.rc-prices li { display: flex; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; gap: 0 4px; }
.rc-plan { flex-basis: 100%; font-size: 13px; color: var(--sub); }
.rc-yen { font-size: 28px; line-height: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-prices li + li .rc-yen { font-size: 22px; line-height: 28px; }
.rc-per { font-size: 15px; color: var(--sub); }
.official { margin-top: 10px; }
.pill--official { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 192px; min-height: 48px; padding: 12px 18px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; }
.pill--official:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .25em; }
.pill--official .pr { margin: 0; border-color: var(--ad-line); color: #fff; }
.rc-detail { padding: 8px 24px 20px; }
.rc-detail .h4 { margin: 16px 0 8px; font-size: 16px; line-height: 22px; color: var(--sub); }
.rc-detail .tbl { margin-top: 0; }
.svc-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.svc-cols .h4 { grid-column: 1 / -1; }
.svc-col { padding: 16px; border-radius: 8px; background: var(--surface-2); }
.svc-label { font-size: 15px; font-weight: 700; color: var(--sub); }
.kwtag { margin-left: 8px; font-size: 12px; padding: 1px 6px; border: 1px solid var(--sub); border-radius: 3px; }
.svc-head { margin-top: 4px; font-size: 17px; font-weight: 700; line-height: 23px; }
.svc-body p { margin-top: 6px; font-size: 16px; line-height: 23px; }
.to-compare { margin-top: 12px; font-size: 15px; }
.c-end .c-in { padding-top: 40px; padding-bottom: 40px; }
.a-asof { position: relative; margin: 0 0 16px; padding: 12px 16px 12px 48px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); color: var(--text) !important; }
.a-asof::before { content: ""; position: absolute; left: 14px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--marker) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5' fill='none' stroke='%237a2335' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px 22px no-repeat; }
.gpanel .a-asof { margin-top: 4px; }
.a-tail { margin-top: 10px !important; }
.author-box { margin-top: 32px; padding: 24px; border-radius: 8px; background: var(--surface-2); }
.author-h { font-size: 15px !important; font-weight: 700; color: var(--sub); }
.author-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.author-item { display: flex; align-items: center; gap: 12px; }
.author-item .ed-mark { width: 48px; height: 48px; }
.author-item .ed-bg { fill: var(--surface); }
.author-name { font-weight: 700; }
.author-company, .author-text { font-size: 15px !important; line-height: 22px !important; color: var(--sub); }
.author-text { margin-top: 12px !important; }
.a-end { margin-top: 24px; }

/* guide pages: kv table */
.tbl--kv { margin-top: 24px; }

/* list pages */
.list-wrap { margin-top: -96px; position: relative; }
.list-wrap .bc ol { margin: 0 0 16px; color: #fff; }
.list-wrap .bc a { color: #fff; }
.list-card { padding: 40px; }
.list-card + .list-card { margin-top: 24px; }
.list-card .ac-grid { margin-top: 0; }
.list-h { font-size: 28px; line-height: 35px; }
.g-summary { margin: 8px 0 24px; font-size: 17px; color: var(--sub); }

/* related (article) */
.sec-related { margin-top: 72px; }

/* built figure (SVG) */
.fg-bg { fill: var(--marker); }
.fg-disc { fill: #fff; }
.fg-icon { fill: none; stroke: var(--band); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.fg-icon * { vector-effect: non-scaling-stroke; }
.fg-pill { fill: #fff; stroke: var(--ad-line); stroke-width: 1.5; }
.fg-pill--ink { fill: var(--ink); stroke: var(--ink); }
.fg-t { font-family: var(--font); font-weight: 700; fill: var(--text); }
.fg-t--w { fill: #fff; }
.fg-genre { font-family: var(--font); font-weight: 700; fill: var(--band); letter-spacing: .04em; text-transform: uppercase; }

/* ---- footer (ink) ---- */
.ft { background: var(--ink); color: #fff; }
.ft-in { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 48px var(--gut) 40px; }
.ft a { color: #fff; }
.ft-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.ft-links a { display: inline-block; padding: 8px 0; font-size: 16px; font-weight: 700; color: #fff; text-decoration: none; }
.ft-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .3em; }
.ft-op { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 32px; }
.logo--ft { color: #fff; font-size: 22px; }
.logo--ft .logo-b { color: #fff; }
.ft-op p { font-size: 15px; line-height: 22px; color: var(--ft-sub); }
.ft-disc { max-width: 760px; margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.ft-h { font-size: 15px; font-weight: 700; }
.ft-disc p + p { margin-top: 6px; font-size: 15px; line-height: 23px; color: var(--ft-sub); }
.ft-copy { margin-top: 24px; font-size: 15px; color: var(--ft-sub); }
.ext { width: 12px; height: 12px; margin-left: 4px; vertical-align: -1px; }

/* ---- 1024px and below: one column, TOC folds into the article ---- */
@media (max-width: 1023px) {
  :root { --hd-h: 91px; --gut: 32px; }
  .gnav { display: none; }
  .menu-btn { display: inline-flex; }
  .hd-in { padding: 0 32px; }
  .a-grid { grid-template-columns: minmax(0, 1fr); max-width: 709px; margin-top: -230px; }
  .band--page { height: 286px; }
  .a-side { display: none; }
  .toc--inline { display: block; }
  .c-in, .c-wide .c-in { padding: 40px 47px 48px; }
  .a-title { font-size: 36px; line-height: 45px; }
  .card { border-radius: 16px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .two-txt { padding: 0; }
  .ac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-grid > .ac { grid-column: span 1; }
  .sec-how .two-txt { position: static; }
  .sit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-main { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rc-left { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 16px 20px; }
  .rc-left .svc-plans, .rc-left .rc-genre { margin-top: 0; }
  .rc-mid { padding: 16px 16px 0; }
  .rc-right { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px; text-align: left; }
  .rc-price-l { flex-basis: 100%; }
  .rc-prices li { justify-content: flex-start; }
  .official--top { margin-top: 0; }
  .fb-grid { grid-template-columns: minmax(0, 1fr); }
  .f-row--q { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .f-go { grid-column: 1 / -1; }
  .filter { padding: 0 24px; }
}

/* ---- 767px and below: phones ---- */
@media (max-width: 767px) {
  :root { --hd-h: 71px; --gut: 20px; }
  body { font-size: 17px; }
  .hd-in { padding: 0 12px 0 20px; }
  .logo { font-size: 24px; }
  .band--hero { padding: 48px 20px 150px; }
  .hero-h, .band-h, .sec-h, .sec-facts .facts-h { font-size: 28px; line-height: 35px; }
  .hero-sub, .band-sub { font-size: 17px; line-height: 25px; }
  .filter { padding: 0 12px; margin-top: -118px; }
  .f-row { padding: 20px; }
  .f-row--q { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .f-row--q .f-q legend { min-height: 0; }
  .seg--genre { flex-wrap: wrap; }
  .seg--genre label { flex-basis: calc(50% - 4px); }
  .f-go { width: 100%; }
  .sec { padding-top: 64px; }
  .band--page { display: none; }
  .a-grid { margin-top: 0; padding: 0; gap: 16px; max-width: none; }
  .a-main > * + * { margin-top: 16px; }
  .a-main .card { border-radius: 0; }
  .c-in, .c-wide .c-in { padding: 28px 23px 36px; }
  .a-top .c-in { padding-top: 28px; }
  .a-title { font-size: 28px; line-height: 35px; }
  .c-in h2, .rcs-h, .list-h, .facts-h { font-size: 24px; line-height: 30px; }
  .c-in p, .c-in li { font-size: 17px; line-height: 26px; }
  .picks { padding: 24px 20px; margin-left: -8px; margin-right: -8px; }
  .facts-box { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 24px; }
  .rcs { padding: 32px 0; }
  .rcs .rc { border-radius: 16px 16px 0 0; }
  .c-wide .c-in > h2, .c-wide .c-in > h3, .c-wide .c-in > p:not(.note):not(.tbl-title):not(.tbl-hint) { margin-left: 0; margin-right: 0; }
  .rcs-head { padding: 0 20px 16px; }
  .rc-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .en-strip { grid-template-columns: minmax(0, 1fr); }
  .rc-detail { padding: 8px 12px 16px; }
  .svc-cols { grid-template-columns: minmax(0, 1fr); }
  .rc-right { display: block; }
  .rc-right .official { margin-top: 12px; }
  .pill--official { width: 100%; }
  .sit, .chg { grid-template-columns: minmax(0, 1fr); }
  .ac-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl table[data-plans] tbody th { min-width: 132px; }
  .faq-card { padding: 32px 20px; }
  .plans-card { padding: 20px 16px; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); border-radius: 0; }
  .gtabs { flex-wrap: nowrap; gap: 6px; }
  .gtabs > li { flex: 1 1 0; min-width: 0; display: flex; }
  .gtab { min-width: 0; width: 100%; padding: 10px 6px 12px; }
  .gtab-k { font-size: 15px; line-height: 19px; }
  .gtab-v { display: none; }
  .plans-card { margin-top: 20px; }
  .list-wrap { margin-top: -96px; padding: 0 12px; }
  .list-card { padding: 20px 16px; border-radius: 16px; }
  .ft-in { padding: 40px 20px 32px; }
  .ft-links { flex-direction: column; }
  .pg-static .a-grid, .pg-list .a-grid { margin-top: 0; }
}

/* tablet only: with an odd number of cards, the first card spans both columns (no single-card row) */
@media (min-width: 768px) and (max-width: 1023px) {
  .ac-grid:not(.ac-grid--uniform) > .ac:first-child:nth-last-child(odd) { grid-column: span 2; }
  .ac-grid:not(.ac-grid--uniform) > .ac:first-child:nth-last-child(odd) .ac-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
