/* Seikai JLPT website: the round-2 正の字 Tally (concepts 06/07/18 in claude_misc\jlpt-website-additional),
   the app's tokens, one red pen. Light and dark; dark follows the system until the toggle is used. */
:root{
  --bg:#F5F3EC; --ink:#1E1C19; --pen:#D1391D; --pen-text:#B3301A; --pen-wash:rgba(209,57,29,.06);
  --guide:#D6D1C4; --rule:#E2DED4; --line:#CBC6BA; --muted:#625E57; --ochre:#94660F; --graphite:#4A4742;
  --flag:#E8B04A; --card:#FFFEFA; --chip:#ECE9E1; --sel:#EEEBE3; --hatch:#E7E3D9; --scrim:rgba(30,28,25,.42);
  --ok:#2F6B3A; --local:sans-serif;
  --mincho:"Shippori Mincho B1","Hiragino Mincho ProN","Yu Mincho",serif;
  --gothic:"Zen Kaku Gothic New",var(--local),"Hiragino Sans","Yu Gothic",system-ui,sans-serif;
  --jp:"Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#171614; --ink:#ECE7DE; --pen:#F0684A; --pen-text:#F47E62; --pen-wash:rgba(240,104,74,.09);
    --guide:#3B3834; --rule:#2B2926; --line:#413E39; --muted:#A8A399; --ochre:#E0A84A; --graphite:#CFC9BE;
    --flag:#8A5E0C; --card:#201E1B; --chip:#27251F; --sel:#2B2925; --hatch:#24221F; --scrim:rgba(0,0,0,.55); --ok:#7FBF8A; color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#171614; --ink:#ECE7DE; --pen:#F0684A; --pen-text:#F47E62; --pen-wash:rgba(240,104,74,.09);
  --guide:#3B3834; --rule:#2B2926; --line:#413E39; --muted:#A8A399; --ochre:#E0A84A; --graphite:#CFC9BE;
  --flag:#8A5E0C; --card:#201E1B; --chip:#27251F; --sel:#2B2925; --hatch:#24221F; --scrim:rgba(0,0,0,.55); --ok:#7FBF8A; color-scheme:dark;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--bg); color:var(--ink); font:400 16px/1.6 var(--gothic); -webkit-font-smoothing:antialiased; overflow-x:hidden}
a{color:inherit; text-decoration:none}
button, input, textarea, select{font:inherit; color:inherit}
h1,h2,h3,h4,p,dl,dd,ol,ul,figure{margin:0}
ol,ul{padding:0; list-style:none}
:focus-visible{outline:2px solid var(--pen); outline-offset:2px}
[hidden]{display:none !important}
.wrap{max-width:1200px; margin:0 auto; padding:0 32px}
.wrap.narrow{max-width:860px}
.muted{color:var(--muted)}
.fine{font-size:13.5px; line-height:1.55; color:var(--muted)}
.nw{white-space:nowrap}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}
/* warmMarkup (65-question.js) and seo.js: markup there for a moment, for its computed faces only */
.font-ghost{display:none}
.ico{width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; flex:none}
.skip{position:absolute; left:8px; top:-60px; z-index:100; background:var(--ink); color:var(--bg); padding:8px 14px; border-radius:3px}
.skip:focus{top:8px}
.jp, [lang="ja"]{font-family:var(--jp)}
kbd{display:inline-block; min-width:20px; padding:0 4px; border:1px solid var(--line); border-radius:3px; background:var(--card); font:600 12px/18px var(--gothic); text-align:center}

/* bilabel: kanji in Mincho, the language beside it */
.bl{display:inline-flex; align-items:baseline; gap:.55em; flex-wrap:wrap}
.bl b{font:800 1.3em/1.2 var(--mincho)}
.bl span{font:500 1em/1.2 var(--gothic); color:var(--muted)}

/* buttons, links, tags, segments */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:0 22px;
  border-radius:3px; border:1px solid transparent; font:700 16px/1.2 var(--gothic); cursor:pointer; text-align:center; transition:background .15s, border-color .15s; background:none}
.btn .ico{width:18px; height:18px}
.btn-ink{background:var(--ink); color:var(--bg)}
@media (hover:hover){ .btn-ink:hover{background:var(--graphite)} }
.btn-out{background:var(--card); border-color:var(--line); color:var(--ink)}
@media (hover:hover){ .btn-out:hover{border-color:var(--ink)} }
.btn-pen{background:var(--pen); color:#fff}
@media (hover:hover){ .btn-pen:hover{filter:brightness(.94)} }
.btn[disabled], .btn[aria-disabled="true"]{opacity:.45; cursor:default; pointer-events:none}
.btn.sm{min-height:40px; padding:0 14px; font-size:14.5px}
.btn.xs{min-height:30px; padding:0 10px 0 12px; font-size:13.5px; gap:4px}
.btn.xs .ico{width:15px; height:15px}
.btn.wide{width:100%}
.btn.two{flex-direction:column; gap:2px; padding:11px 20px}
.btn.two small{font:400 13.5px/1.3 var(--gothic); opacity:.85}
.link{display:inline-flex; align-items:center; gap:4px; font-weight:700; border-bottom:1px solid transparent; background:none; border-top:0; border-left:0; border-right:0; padding:0; cursor:pointer}
@media (hover:hover){ .link:hover{border-bottom-color:currentColor} }
.link .ico{width:17px; height:17px}
.link .bl b{font-size:1.15em}
.link .bl span{color:var(--ink); font-weight:700}
.tag{display:inline-flex; align-items:center; gap:6px; border:1px solid var(--line); border-radius:3px; padding:0 8px; font:500 12.5px/1.7 var(--gothic); color:var(--muted); white-space:nowrap}
.tag.pen{border-color:var(--pen); color:var(--pen-text)}
.seg{display:inline-flex; border:1px solid var(--line); border-radius:3px; background:var(--card); overflow:hidden}
.seg button{border:0; border-left:1px solid var(--line); background:none; padding:8px 16px; cursor:pointer; font:500 14.5px/1.2 var(--gothic); min-height:40px}
.seg button:first-child{border-left:0}
.seg button b{font:800 16px var(--mincho); margin-left:6px; font-feature-settings:"tnum" 1}
.seg button[aria-pressed="true"]{background:var(--ink); color:var(--bg)}
@media (hover:hover){ .seg button:not([aria-pressed="true"]):hover{background:var(--sel)} }
.seg button[disabled]{opacity:.45; cursor:default}
.card{background:var(--card); border:1px solid var(--line); border-radius:3px}

/* marks: ○ pass, ! near the minimum, × below it */
.mk{width:18px; height:18px; flex:none; color:var(--pen)}
.mk.warn{color:var(--ochre)}
.v-safe{color:var(--ink); font-weight:700}
.v-border{color:var(--ochre); font-weight:700}
.v-not{color:var(--pen-text); font-weight:700}
.w-pen{color:var(--pen-text); font-weight:700}

/* 正: a paper's own progress, one stroke per fifth answered */
.tl{display:block; flex:none; width:32px; height:32px; fill:none; stroke:var(--pen); stroke-linecap:round; stroke-linejoin:round; overflow:visible; stroke-width:3px}
.tl .g{stroke:var(--guide); stroke-width:2px}
.tl .p{stroke-dasharray:1.9 1.6; stroke-linecap:butt}
.tl.xs{width:19px; height:19px; stroke-width:3.8px}
.tl.xs .g{stroke-width:2.4px}

/* ---------- the wordmark ----------
   正 is drawn, 解 is a Mincho glyph. The concepts drew 正 in a 40-unit box whose strokes only filled
   y 7–33.5, so it sat smaller and higher than 解 (owner, 2026-10-30: "not aligned"). Here the box is
   cropped to the strokes and sized to 解's ink as measured in Shippori Mincho B1 800 (tools/drive.mjs
   crop + pixel count, 2026-10-30): the same height, top and bottom, and the same width. The strokes
   don't scale with the box, so the stretch never thickens them. */
.wm{display:inline-flex; align-items:center; flex:none; --wm:36px}
.wm-sho{flex:none; width:calc(var(--wm) * .862); height:calc(var(--wm) * .898); margin-right:calc(var(--wm) * .06); transform:translateY(calc(var(--wm) * .052));
  fill:none; stroke:var(--pen); stroke-width:calc(var(--wm) * .108); stroke-linecap:round; stroke-linejoin:round; overflow:visible}
.wm-sho path{vector-effect:non-scaling-stroke}
.wm .kai{font:800 var(--wm)/1 var(--mincho)}
.wm .wm-t{margin-left:12px; font:700 10.5px/1.5 var(--gothic); letter-spacing:.25em; white-space:nowrap}

/* ---------- site bar ---------- */
.site-bar .bar-in{display:flex; align-items:center; gap:22px; height:80px; border-bottom:2px solid var(--ink)}
.nav{display:flex; gap:2px; margin-left:20px}
.nav a{display:flex; flex-direction:column; align-items:center; padding:8px 12px 6px; min-width:80px; color:var(--muted); border-radius:3px}
@media (hover:hover){ .nav a:hover{background:var(--sel); color:var(--ink)} }
.nav a b{font:800 19px/1.15 var(--mincho); padding:0 3px 4px; border-bottom:3px solid transparent}
.nav a span{font:500 12px/1.2 var(--gothic); margin-top:4px; white-space:nowrap}
.nav a[aria-current="page"], .nav-m a[aria-current="page"]{color:var(--ink)}
.nav a[aria-current="page"] b, .nav-m a[aria-current="page"] b{border-bottom-color:var(--pen)}
.nav a[aria-current="page"] span, .nav-m a[aria-current="page"] span{font-weight:700}
.nav-m{display:none}
.bar-r{margin-left:auto; display:flex; align-items:center; gap:6px}
.lvl{display:inline-flex; align-items:center; gap:6px; height:42px; padding:0 9px 0 13px; border:2px solid var(--ink); border-radius:3px; background:transparent; cursor:pointer; font:800 20px/1 var(--mincho); list-style:none}
.lvl::-webkit-details-marker{display:none}
.lvl .ico{width:17px; height:17px}
@media (hover:hover){ .lvl:hover{background:var(--sel)} }
.icon-btn{position:relative; min-width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; gap:3px; padding:0 6px; border:0; background:none; border-radius:3px; cursor:pointer; list-style:none; color:var(--ink)}
.icon-btn::-webkit-details-marker{display:none}
@media (hover:hover){ .icon-btn:hover{background:var(--sel)} }
.lang-code{font:700 11.5px var(--gothic); letter-spacing:.04em; color:var(--muted)}
.theme-btn .moon{display:none}
:root[data-theme="dark"] .theme-btn .sun{display:none}
:root[data-theme="dark"] .theme-btn .moon{display:block}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .theme-btn .sun{display:none} :root:not([data-theme="light"]) .theme-btn .moon{display:block} }
.acct-dot{position:absolute; right:7px; top:8px; width:8px; height:8px; border-radius:50%; background:var(--pen); box-shadow:0 0 0 2px var(--bg)}
.get-app .short{display:none}

/* menus (level, language): <details>, so they open without JavaScript */
.menu{position:relative}
.menu[open] > summary{background:var(--sel)}
.menu-pop{position:absolute; right:0; top:calc(100% + 6px); z-index:40; min-width:230px; padding:8px; background:var(--card); border:1px solid var(--line); border-radius:3px; box-shadow:0 10px 30px rgba(0,0,0,.12)}
.menu-h{padding:4px 10px 8px; font-size:12.5px; color:var(--muted)}
.menu-pop a{display:flex; align-items:baseline; gap:12px; padding:8px 10px; border-radius:3px; font-size:15px}
@media (hover:hover){ .menu-pop a:hover{background:var(--sel)} }
.menu-pop a[aria-current="true"]{background:var(--pen-wash); box-shadow:inset 3px 0 0 var(--pen)}
.menu-pop a b{font:800 18px var(--mincho); min-width:32px}
.menu-pop a span{color:var(--muted); font-size:14px}
.menu-langs{min-width:200px; columns:2; column-gap:4px}
.menu-langs .menu-h{column-span:all}
.menu-langs a{break-inside:avoid}

/* ---------- page heads ---------- */
.page-h{padding:30px 0 4px}
.page-h .row{display:flex; justify-content:space-between; align-items:flex-end; gap:12px 20px; flex-wrap:wrap}
.page-h h1{font-size:19px}
.page-h h1.bl b{font-size:1.75em}
.page-h h1 .lvb{font:800 1.75em/1.2 var(--mincho); color:var(--ink)}
.page-h .sub{margin-top:8px; color:var(--muted); max-width:66em; font-size:15.5px}
.page-h .free-note{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:10px; font-size:14.5px}

/* ---------- footer ---------- */
.site-foot{padding:40px 0 56px; margin-top:48px}
.site-foot .foot-in{border-top:2px solid var(--ink); padding-top:26px; display:grid; grid-template-columns:auto 1fr; gap:18px 48px; align-items:start}
.site-foot .wm{--wm:26px}
.foot-links{display:flex; gap:8px 28px; flex-wrap:wrap; justify-content:flex-end; font-weight:500}
@media (hover:hover){ .foot-links a:hover, .foot-langs a:hover{text-decoration:underline} }
.foot-langs{grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:4px 16px; font-size:13.5px; color:var(--muted)}
.foot-langs a[aria-current="true"]{color:var(--ink); font-weight:700}
.site-foot .fine{grid-column:1 / -1}

.loading-box{padding:64px 0; color:var(--muted); text-align:center}
.loading-box .bar{height:3px; max-width:320px; margin:16px auto 0; background:var(--chip); border-radius:2px; overflow:hidden}
.loading-box .bar i{display:block; height:100%; width:0; background:var(--pen); transition:width .2s}
/* ?debug=1: the loading timeline */
.load-log{max-width:440px; margin:16px auto 0; text-align:left; white-space:pre-wrap; font:12px/1.5 ui-monospace, Consolas, monospace; color:var(--muted)}
.load-log.corner{position:fixed; left:8px; bottom:8px; z-index:95; margin:0; max-width:calc(100vw - 16px); max-height:40vh; overflow:auto; padding:8px 10px; background:var(--card); border:1px solid var(--line); border-radius:3px; box-shadow:0 6px 20px rgba(0,0,0,.15)}
.notice{padding:14px 16px; border-left:3px solid var(--pen); background:var(--pen-wash); border-radius:0 3px 3px 0; font-size:15px}

/* toast */
.toast{position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:90; max-width:min(560px, calc(100vw - 32px)); padding:12px 18px; background:var(--ink); color:var(--bg); border-radius:3px; font-size:14.5px; box-shadow:0 8px 24px rgba(0,0,0,.2)}

@media (max-width:1100px){
  .nav{margin-left:8px}
  .nav a{min-width:68px; padding:8px 8px 6px}
}
@media (max-width:900px){
  .site-bar .bar-in{flex-wrap:wrap; height:auto; padding-top:12px; gap:0 10px}
  .nav{display:none}
  .nav-m{order:3; width:100%; margin:10px 0 0; display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--rule)}
  .nav-m a{display:flex; justify-content:center; align-items:baseline; gap:7px; min-width:0; padding:10px 4px 8px; color:var(--muted)}
  .nav-m a b{font:800 17px/1.2 var(--mincho); padding:0 2px 3px; border-bottom:3px solid transparent}
  .nav-m a span{font:500 12.5px var(--gothic)}
}
@media (max-width:640px){
  .wrap{padding:0 16px}
  .site-bar .bar-in{padding-top:10px}
  .wm{--wm:31px}
  .wm .wm-t{margin-left:9px; font-size:9px}
  .bar-r{gap:0}
  .lvl{height:40px; font-size:18px; padding:0 5px 0 9px}
  .icon-btn{min-width:38px; height:40px; padding:0 4px}
  .lang-code{display:none}
  .get-app{min-height:38px; padding:0 10px; font-size:13.5px}
  .get-app .long{display:none}
  .get-app .short{display:inline}
  .page-h{padding-top:20px}
  .page-h h1{font-size:16px}
  .page-h .sub{font-size:14.5px}
  .page-h .sub .more{display:none}
  .site-foot .foot-in{grid-template-columns:1fr}
  .foot-links{justify-content:flex-start; gap:6px 20px}
  .menu-pop{position:fixed; left:12px; right:12px; top:64px; min-width:0}
}
@media (max-width:400px){
  .wm .wm-t{display:none}
  .theme-btn{display:none}
}
/* the tab names stay on one line; a long label gives way (Thai, Bengali, Sinhala) */
.nav-m a b{white-space:nowrap}
.nav-m a span{min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}

/* Burmese stacks marks above and below the line: the tight line heights of labels would let lines touch */
html[lang="my"] .bl span, html[lang="my"] .hl .d b, html[lang="my"] .hl .d > span, html[lang="my"] .hl .m, html[lang="my"] .pt-en, html[lang="my"] .krow .nm span,
html[lang="my"] .secrow .nm span, html[lang="my"] .c-qm, html[lang="my"] .st-d, html[lang="my"] .menu-pop a span{line-height:1.75}


/* The usage statistics' bar (site/stats.js; owner, 2026-11-07): the EEA's question about the visitor ID, the UK's notice.
   Small and at the foot, over nothing that matters: the page stays usable while it waits for an answer. Never in a test. */
.stats-bar{position:fixed; left:12px; right:12px; bottom:calc(12px + env(safe-area-inset-bottom)); z-index:70; display:flex; justify-content:center; pointer-events:none}
.stats-bar-in{pointer-events:auto; display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap; max-width:760px; padding:12px 14px 12px 18px; background:var(--card); color:var(--ink);
  border:1px solid var(--line); border-radius:3px; box-shadow:0 10px 30px rgba(0,0,0,.14); font-size:14.5px; line-height:1.5}
.stats-bar-in p{flex:1 1 300px; margin:0}
.stats-bar-in a{color:inherit; text-decoration:underline; text-underline-offset:2px}
.stats-bar-acts{display:flex; gap:8px; margin-left:auto}
@media (max-width:520px){ .stats-bar-in{padding:12px} .stats-bar-acts{width:100%} .stats-bar-acts .btn{flex:1} }
html[lang="my"] .stats-bar-in{line-height:1.75}

/* ---------- home (concept 18 · 無料 Free start: the five levels are the first screen's action) ---------- */
.hero{padding:76px 0 60px}
.hero-grid{display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:80px; align-items:center}
.hero h1{font:800 46px/1.2 var(--mincho); letter-spacing:-.005em; max-width:14em}
.hero .lede{margin-top:20px; font-size:18px; line-height:1.7; color:var(--muted); max-width:34em}
.hero .fine{margin-top:16px}
.hero .acts{display:flex; align-items:center; gap:22px; flex-wrap:wrap; margin-top:22px}

.hlv{border-top:2px solid var(--ink)}
.hlv-h{display:flex; justify-content:space-between; align-items:baseline; gap:6px 14px; flex-wrap:wrap; padding:12px 0 8px}
.hlv-h .bl{font-size:15px}
.hlv-h .bl b{font-size:1.45em}
.hl{position:relative; display:grid; grid-template-columns:60px minmax(0,1fr) auto 18px; gap:14px; align-items:center; min-height:64px; padding:8px 8px 8px 12px; border-top:1px solid var(--rule); transition:background .15s}
.hl:last-child{border-bottom:1px solid var(--rule)}
@media (hover:hover){ .hl:hover{background:var(--sel)} }
.hl .n{font:800 30px/1 var(--mincho)}
@media (hover:hover){ .hl:hover .n{text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:5px} }
.hl .d b{display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-weight:700; font-size:15.5px; line-height:1.3}
.hl .d > span{display:block; font-size:13.5px; color:var(--muted); line-height:1.35}
.hl .tag{font-weight:500}
.hl .m{text-align:right; font-size:13.5px; color:var(--muted); line-height:1.3; white-space:nowrap}
.hl .m b{font:800 18px var(--mincho); color:var(--ink); margin-right:4px; font-feature-settings:"tnum" 1}
.hl .m span{display:block}
.hl .ico{width:18px; height:18px; color:var(--muted)}
@media (hover:hover){ .hl:hover .ico{color:var(--ink)} }
.hl.yours{background:var(--pen-wash)}
.hl.yours::before{content:""; position:absolute; left:0; top:-1px; bottom:-1px; width:3px; background:var(--pen)}

.sec{padding:64px 0}
.sec-faq{padding-top:8px}
.sec-h{display:flex; align-items:baseline; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:10px}
.sec-h .bl{font-size:18px}
.sec-h .bl b{font-size:1.55em}
.after{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 40px; margin-top:14px}
.after > div{padding:16px 0 4px; border-top:2px solid var(--ink)}
.after .bl{font-size:15px}
.after .bl b{font-size:1.45em}
.after p{margin-top:10px; font-size:16px; line-height:1.65; color:var(--muted)}
.after p b{color:var(--ink); font-weight:700}

.faq{max-width:860px; margin-top:14px; border-top:2px solid var(--ink)}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none; cursor:pointer; position:relative; padding:18px 48px 18px 0; font:700 18px/1.45 var(--gothic)}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:""; position:absolute; right:10px; top:26px; width:9px; height:9px; border-right:2px solid var(--muted); border-bottom:2px solid var(--muted); transform:rotate(45deg); transition:transform .15s}
.faq details[open] summary::after{transform:rotate(-135deg); top:30px}
@media (hover:hover){ .faq summary:hover{color:var(--pen-text)} }
.faq .a{padding:0 48px 22px 0; font-size:16.5px; line-height:1.7; color:var(--muted); max-width:46em}
.faq .a b{color:var(--ink); font-weight:700}

.appline{display:flex; align-items:center; gap:16px 28px; padding:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); flex-wrap:wrap}
.appline .bl{font-size:15px}
.appline p{flex:1; min-width:260px; color:var(--muted)}
.appline p b{color:var(--ink); font-weight:700}
/* Google's own badge in the page's language (tools/fetch_play_badges.py), as Google asks: never redrawn or
   stretched, on phones too; at least 28 px high, a quarter of its height clear around it (the line's gaps). */
.play-badge{display:block; flex:none; border-radius:7px}
.play-badge img{display:block; width:auto; height:52px}

/* "Which level?" before Full tests or Practice (/tests/, /practice/): the home's level rows */
.pick{max-width:760px; padding-bottom:16px}
.pick-q{margin-top:22px; font:800 30px/1.25 var(--mincho)}
.pick .sub{margin-top:8px; color:var(--muted); font-size:15.5px}
.pick .hlv{margin-top:20px}

/* about, privacy */
.prose > p{margin-top:16px; font-size:16.5px; line-height:1.75; max-width:44em}
.prose h2{margin-top:36px; font:700 19px/1.4 var(--gothic)}
.prose h2.bl{font:inherit; font-size:17px}
.prose h2.bl b{font-size:1.45em}
.prose a:not(.link):not(.btn){color:var(--pen-text); text-decoration:underline; text-underline-offset:3px}
.iphone-cta{margin-top:22px}
.sub-h{display:flex; margin-top:44px !important; padding-bottom:8px; border-bottom:2px solid var(--ink)}
.facts-t{width:100%; margin-top:14px; border-collapse:collapse; font-size:15px}
.facts-t th, .facts-t td{padding:10px 8px; border-bottom:1px solid var(--rule); text-align:left}
.facts-t thead th{font-size:13px; color:var(--muted); font-weight:500; border-bottom:1.5px solid var(--ink)}
.facts-t tbody th{font:800 18px var(--mincho)}
@media (hover:hover){ .facts-t tbody th a:hover{text-decoration:underline} }
.contact{margin-top:14px; display:flex; flex-direction:column; gap:12px; max-width:640px}
.contact textarea, .field{width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:3px; background:var(--card); font-size:15.5px; line-height:1.5; resize:vertical}
.contact textarea:focus, .field:focus{outline:2px solid var(--pen); outline-offset:0; border-color:transparent}
.contact-row{display:flex; align-items:center; gap:16px; flex-wrap:wrap}
.plain{margin-top:14px; display:flex; flex-direction:column; gap:10px}
.nf-levels{margin-top:28px; max-width:620px}

@media (max-width:1000px){
  .hero-grid{grid-template-columns:1fr; gap:40px}
}
@media (max-width:860px){
  .after{grid-template-columns:1fr}
  .after > div + div{margin-top:22px}
}
@media (max-width:640px){
  .hero{padding:30px 0 34px}
  .hero-grid{gap:26px}
  .hero h1{font-size:33px; line-height:1.22}
  .pick-q{margin-top:16px; font-size:25px}
  .pick .sub{font-size:14.5px}
  .hero .lede{font-size:16.5px; margin-top:14px}
  .hero .acts{margin-top:14px}
  .hlv-h .fine{display:none}
  .hl{grid-template-columns:42px minmax(0,1fr) auto 16px; gap:10px; min-height:60px; padding:8px 4px 8px 10px}
  .hl .n{font-size:25px}
  .hl .d b{font-size:15px}
  .hl .d > span{font-size:12.5px}
  .hl .m{font-size:12.5px}
  .hl .m b{font-size:16px}
  .sec{padding:44px 0}
  .sec-h .bl b{font-size:1.4em}
  .after p{font-size:15px}
  .faq summary{font-size:16.5px; padding:16px 36px 16px 0}
  .faq summary::after{right:6px; top:23px}
  .faq details[open] summary::after{top:27px}
  .faq .a{padding:0 0 18px; font-size:15.5px}
  .appline p{min-width:0; flex:1 1 100%}
  .prose > p{font-size:15.5px}
  .facts-t{font-size:13.5px}
  .facts-t th, .facts-t td{padding:8px 4px}
}

/* ---------- SEO pages (site/seo): loaded after the site's base and home styles, only on these pages ---------- */
.seo .crumbs{padding-top:18px; font-size:13.5px; color:var(--muted)}
.crumbs ol{display:flex; flex-wrap:wrap; gap:2px 8px}
.crumbs li + li::before{content:"›"; margin-right:8px}
.crumbs a{text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line)}
@media (hover:hover){ .crumbs a:hover{color:var(--ink)} }

.seo-hero{display:grid; grid-template-columns:minmax(0,1.6fr) minmax(0,1fr); gap:32px 64px; align-items:start; padding-top:28px; padding-bottom:12px}
.seo-hero.one{grid-template-columns:minmax(0,1fr)}
.seo-hero h1{font:800 42px/1.2 var(--mincho); letter-spacing:-.005em; max-width:18em}
.seo-hero .lede{margin-top:18px; font-size:18px; line-height:1.7; color:var(--muted); max-width:38em}
.seo-acts{display:flex; align-items:center; flex-wrap:wrap; gap:14px 24px; margin-top:24px}
.seo-fine{margin-top:12px; max-width:60em}
.seo-more{margin-top:14px}
a.ext{text-decoration:underline; text-underline-offset:3px}

.fact-card{display:grid; grid-template-columns:1fr 1fr; border-top:2px solid var(--ink); margin:6px 0 0}
.fact-card > div{padding:12px 4px 12px 0; border-bottom:1px solid var(--rule)}
.fact-card dt{font-size:13px; line-height:1.35; color:var(--muted)}
.fact-card dd{margin:2px 0 0; font:800 30px/1.15 var(--mincho); font-feature-settings:"tnum" 1,"lnum" 1}
.fact-card dd small{font:500 14px var(--gothic); color:var(--muted)}
.fact-card dd.lv-list{font-size:20px; line-height:34.5px; white-space:nowrap}
.next-exam{display:block; padding-top:12px}
.next-date{margin-top:4px; font:800 26px/1.3 var(--mincho)}
.next-count{margin-top:6px; font-weight:700; color:var(--pen-text)}

.seo .sec{padding:44px 0 0}
.seo .sec-h{margin-bottom:12px; padding-bottom:8px; border-bottom:2px solid var(--ink)}
/* The heading's rule is the only one: the home's FAQ list and columns bring their own top rule, which right under a
   heading drew a second, shorter line (owner, 2026-11-06). */
.seo .sec-h + .faq{margin-top:-6px; border-top:0}
.seo .sec-h + .after{margin-top:4px}
.seo .sec-h + .after > div{border-top:0; padding-top:6px}
.seo .sec-h .bl{font-size:17px}
.seo-text p{margin-top:12px; font-size:16.5px; line-height:1.72; max-width:46em}
.seo-text p:first-child{margin-top:4px}
.seo-text a, .seo-text b{font-weight:700}
.seo .facts-t td{font-size:15px}
.seo .facts-t thead th{white-space:nowrap}
.seo .facts-t tr.total td{font-weight:700; border-top:1.5px solid var(--ink)}
.seo .facts-t th a{text-decoration:underline; text-underline-offset:4px}
.seo .go-t td a{font-weight:700; text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--line)}
@media (hover:hover){ .seo .go-t td a:hover{color:var(--pen-text); text-decoration-color:currentColor} }
.tscroll{overflow-x:auto; -webkit-overflow-scrolling:touch}
.jp-mini{display:block; font-size:12.5px; color:var(--muted)}
.after.three{grid-template-columns:repeat(3,minmax(0,1fr)); row-gap:26px}
.after h3:not(.bl){font:700 17px/1.4 var(--gothic)}
.seo .after{margin-top:22px}
.plain .ico{margin-left:2px}

/* question types */
.qt-group{margin-top:26px}
.qt-h{display:flex; justify-content:space-between; align-items:baseline; gap:6px 16px; flex-wrap:wrap; padding-bottom:8px; border-bottom:1px solid var(--line)}
.qt-h .bl{font-size:15.5px}
.qts > li{border-bottom:1px solid var(--rule)}
.qts a, .qt-row{display:grid; grid-template-columns:minmax(150px,230px) minmax(0,1fr) auto 18px; gap:4px 18px; align-items:center; padding:11px 6px}
.qt-row{grid-template-columns:minmax(150px,230px) minmax(0,1fr) auto}
@media (hover:hover){ .qts a:hover{background:var(--sel)} }
.qt-nm{display:flex; flex-direction:column; min-width:0}
.qt-jp{font-size:15.5px; font-weight:500}
.qt-en{font-size:13px; line-height:1.35; color:var(--muted)}
.qt-what{font-size:14.5px; line-height:1.5; color:var(--muted)}
.qt-n{font-size:13.5px; color:var(--muted); white-space:nowrap}
.qts .ico{width:16px; height:16px; color:var(--muted)}

/* examples: written by us, always marked so */
.ex-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:18px; align-items:start}
.ex{margin:0; padding:16px 18px; background:var(--card); border:1px solid var(--line); border-radius:3px; min-width:0}
.ex-label{margin-bottom:8px; font-size:12.5px; font-weight:700; color:var(--muted)}
.ex-note{margin-bottom:6px; font-size:13px; color:var(--muted)}
.ex-passage{margin-bottom:10px; padding:10px 12px; background:var(--chip); border-radius:3px; font-size:15px; line-height:2}
.ex-passage.folded{max-height:300px; margin-bottom:0; overflow:hidden; -webkit-mask-image:linear-gradient(#000 55%, transparent); mask-image:linear-gradient(#000 55%, transparent)}
.ex-more{display:block; margin:4px 0 12px; padding:6px 0; border:0; background:none; cursor:pointer; font:700 14px/1.4 var(--gothic); color:var(--pen-text)}
@media (hover:hover){ .ex-more:hover{text-decoration:underline; text-underline-offset:3px} }
.ex-q{font-size:16px; line-height:2.1}
.ex rt{font-size:.58em; line-height:1}
.ex u{text-underline-offset:4px; text-decoration-thickness:1.5px}
.ex-ch{margin-top:8px; display:grid; gap:5px}
.ex-ch li{font-size:15px; line-height:1.85}
.ex-pick{display:flex; gap:9px; align-items:baseline; width:calc(100% + 16px); margin:0 -8px; padding:2px 8px; border:1px solid transparent; border-radius:3px; background:none; text-align:left; font:inherit; line-height:inherit; color:inherit; cursor:default}
.ex-tx{min-width:0; overflow-wrap:anywhere}
.ex-lab{flex:none; margin-left:auto; padding-left:8px; font:700 12px/1.85 var(--gothic); color:var(--pen-text); white-space:nowrap}
.ex-n{flex:none; width:22px; height:22px; display:inline-grid; place-items:center; border:1px solid var(--line); border-radius:50%; font:500 12.5px/1 var(--gothic); color:var(--muted)}
/* Once seo.js has wired them (.live): pick one, and it is marked as on the tests (40-runner.css .ch.right / .wrong). */
.ex.live .ex-pick:not([aria-disabled="true"]){cursor:pointer}
@media (hover:hover){ .ex.live .ex-pick:not([aria-disabled="true"]):hover{border-color:var(--line); background:var(--sel)} }
.ex-pick.right{border-color:var(--pen)}
.ex-pick.right .ex-n, .ex-pick.wrong .ex-n{position:relative; z-index:0; border-color:transparent; color:var(--ink); font-weight:700}
.ex-pick.right .ex-n::before, .ex-pick.wrong .ex-n::after{content:""; position:absolute; background:var(--pen); -webkit-mask:no-repeat center/100%; mask:no-repeat center/100%}
.ex-pick.right .ex-n::before{inset:-30%; z-index:-1;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.6 18.4C3.8 15.9 3.7 9.8 7.7 6.6c3.9-3 9.7-2.5 11.9 1.4 2.3 3.9.6 9-3.5 10.8-3.7 1.6-8.3.8-10.1-2.6-1.1-2.1 0-4.6 1.9-6' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7.6 18.4C3.8 15.9 3.7 9.8 7.7 6.6c3.9-3 9.7-2.5 11.9 1.4 2.3 3.9.6 9-3.5 10.8-3.7 1.6-8.3.8-10.1-2.6-1.1-2.1 0-4.6 1.9-6' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E")}
.ex-pick.wrong .ex-n::after{inset:-14%;
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.8 5.6c4 4.1 8 8.5 12.7 13.2M18.4 5.4c-4.7 4-8.6 8.3-13 13.6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.8 5.6c4 4.1 8 8.5 12.7 13.2M18.4 5.4c-4.7 4-8.6 8.3-13 13.6' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")}
.ex-pick.wrong .ex-tx{text-decoration:line-through; text-decoration-color:var(--pen); color:var(--muted)}
.ex-a{margin-top:12px; border-top:1px solid var(--rule); padding-top:9px}
.ex-a summary{cursor:pointer; font-weight:700; font-size:14.5px; color:var(--pen-text)}
.ex-a p{margin-top:8px; font-size:14.5px; line-height:1.6}
.ex-why{margin-top:8px}
.ex-why p{margin-top:0}
.ex-why p + p{margin-top:5px}
.ex-why p.bul{padding-left:14px; text-indent:-12px}
.ex-why p.tip{margin-top:8px}

.kind{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px 40px; padding:24px 0; border-bottom:1px solid var(--rule); align-items:start}
.kind h3{font:700 18px/1.4 var(--gothic)}
.kind-en{font-size:14px; font-weight:500; color:var(--muted); margin-left:6px}
.kind-text p{margin-top:9px; font-size:15.5px; line-height:1.68}
.kind-ask{font-weight:700}

.steps{counter-reset:s; display:grid; gap:12px; max-width:50em; margin-top:6px}
.steps li{counter-increment:s; position:relative; padding-left:38px; font-size:16px; line-height:1.65}
.steps li::before{content:counter(s); position:absolute; left:0; top:1px; width:26px; height:26px; display:grid; place-items:center; border:1.5px solid var(--ink); border-radius:50%; font:800 14px/1 var(--mincho)}
.hub-links{display:flex; flex-wrap:wrap; gap:10px; margin-top:20px}
.hub-links .btn{min-height:42px; font-size:14.5px}
.hub-start-h{margin-top:24px; font-weight:700; font-size:15px}
.hub-start{display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; max-width:560px; margin-top:10px}
.hub-start .btn{min-height:46px; padding:0 6px; gap:6px; font:800 19px/1 var(--mincho)}
@media (max-width:640px){ .hub-start{gap:7px} .hub-start .btn{font-size:17px; gap:3px} .hub-start .ico{width:14px; height:14px} }
.hub-start .ico{width:16px; height:16px}
.hub-guides-h{margin-top:28px; font:700 15px/1.4 var(--gothic); color:var(--muted)}
.hub-guides{margin-top:8px}

.next-cols{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 48px; margin-top:4px}
.next-cols h3{font:700 15px/1.4 var(--gothic); color:var(--muted)}
.next-list{margin-top:8px; display:grid; gap:7px}
.next-list a{text-decoration:underline; text-underline-offset:3px; text-decoration-color:var(--line); font-weight:500}
.next-list a[aria-current="page"]{text-decoration:none; color:var(--muted); font-weight:400}
@media (hover:hover){ .next-list a:hover{color:var(--pen-text); text-decoration-color:currentColor} }

/* the calculator */
.calc{margin-top:16px; padding:18px 20px}
.calc-top{display:flex; flex-wrap:wrap; gap:10px 16px; justify-content:space-between}
.calc-top .seg button{padding:7px 13px; min-height:40px; font-size:14.5px}
.calc-rows{display:grid; gap:12px; margin-top:16px}
.calc-row{display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr); gap:6px 12px; align-items:end}
.calc-name{font-weight:700; font-size:15px; align-self:center}
.calc-f{display:flex; flex-direction:column; gap:3px; font-size:13px; color:var(--muted)}
.calc-f .field{padding:9px 10px; color:var(--ink); font-size:16px}
.calc-out{margin-top:16px; padding-top:14px; border-top:1px solid var(--rule); min-height:40px}
.calc-verdict{font:800 22px/1.3 var(--mincho)}
.calc-t{margin-top:8px}
.calc-t td{padding:7px 6px 7px 0}
.calc-cefr{margin-top:12px; font-size:15px}
.calc-cefr b{font-size:17px}
.calc-next{margin-top:16px; padding-top:14px; border-top:1px solid var(--rule)}
.calc-next p{font-size:14.5px; color:var(--muted)}
.calc-next .seo-acts{margin-top:12px}

/* the app page's screenshots: four phones in a row; on a phone a row that scrolls sideways on its own */
.shots{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; margin-top:18px}
.shots figure{margin:0}
.shots img{display:block; width:100%; height:auto; border:1px solid var(--line); border-radius:14px; background:var(--card)}
.shots figcaption{margin-top:9px; font-size:14px; line-height:1.45; color:var(--muted)}

@media (max-width:1000px){
  .ex-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kind{grid-template-columns:minmax(0,1fr)}
  .after.three{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
  .seo-hero{grid-template-columns:minmax(0,1fr)}
  .fact-card{max-width:440px}
}
@media (max-width:640px){
  .seo-hero{padding-top:20px}
  .seo-hero h1{font-size:29px}
  .seo-hero .lede{font-size:16px}
  .seo .sec{padding-top:34px}
  .seo-text p{font-size:15.5px}
  .ex-grid{grid-template-columns:minmax(0,1fr)}
  .after.three{grid-template-columns:minmax(0,1fr)}
  .next-cols{grid-template-columns:minmax(0,1fr)}
  .qts a{grid-template-columns:minmax(0,1fr) auto 16px; gap:3px 10px; padding:10px 2px}
  .qt-row{grid-template-columns:minmax(0,1fr) auto; gap:3px 10px; padding:10px 2px}
  .qt-nm{grid-column:1; grid-row:1}
  .qt-what{grid-column:1 / -1; grid-row:2}
  .qt-n{grid-column:2; grid-row:1}
  .qts a .ico{grid-column:3; grid-row:1}
  .calc{padding:14px}
  .calc-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .calc-name{grid-column:1 / -1}
  .calc-top .seg{flex-wrap:wrap}
  .seo .facts-t td{font-size:13.5px}
  .seo .facts-t thead th{white-space:normal}
  .shots{grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:64%; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory;
    padding-bottom:8px}
  .shots figure{scroll-snap-align:start}
}
