/* test-niveau.css : page test-d-anglais-niveau.html (diagnostic écrit + oral).
   1) Socle repris du runtime Tailwind de la page d'origine (préflight + .container + classes du H1),
      pour que l'en-tête et le pied de page partagés restent identiques sans tailwind.min.js.
   2) Composants du diagnostic, inspirés de la bibliothèque Anglais Libre, aux couleurs ActionBRITISH.
   Animations : transform et opacity uniquement ; prefers-reduced-motion coupe tout. */

/* ---------- 1. Socle (préflight Tailwind 3.4, police système) ---------- */
*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}
:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-tap-highlight-color:transparent}
body{margin:0;line-height:inherit}
hr{height:0;color:inherit;border-top-width:1px}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
b,strong{font-weight:bolder}
small{font-size:80%}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}
table{text-indent:0;border-color:inherit;border-collapse:collapse}
button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}
button,select{text-transform:none}
button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}
summary{display:list-item}
blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}
fieldset{margin:0;padding:0}legend{padding:0}
menu,ol,ul{list-style:none;margin:0;padding:0}
textarea{resize:vertical}
input::placeholder,textarea::placeholder{opacity:1;color:#6b7280}
[role=button],button{cursor:pointer}:disabled{cursor:default}
audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}
[hidden]:where(:not([hidden=until-found])){display:none}
.container{width:100%}
@media (min-width:640px){.container{max-width:640px}}
@media (min-width:768px){.container{max-width:768px}}
@media (min-width:1024px){.container{max-width:1024px}}
@media (min-width:1280px){.container{max-width:1280px}}
@media (min-width:1536px){.container{max-width:1536px}}
.mb-6{margin-bottom:1.5rem}.font-bold{font-weight:700}.text-3xl{font-size:1.875rem;line-height:2.25rem}
.leading-tight{line-height:1.25}.text-gray-900{color:#111827}.text-brand-green{color:#059669}
@media (min-width:768px){.md\:text-5xl{font-size:3rem;line-height:1}}

/* Place réservée à la barre de contact injectée par ca-tracking.js (76 px sous 769 px) : pas de décalage. */
@media (max-width:768px){body{padding-bottom:76px}}
/* Contraste AA du bouton WhatsApp de cette barre (blanc sur #1FAF5A = 2,9:1). */
body .ab-cv-bar .ab-cv-wa{background:#15803d}

html{scroll-padding-top:96px}
:focus-visible{outline:3px solid #0F2C67;outline-offset:2px}

/* ---------- 2. Page ---------- */
.tn{--b:#0F2C67;--b2:#1a3d85;--g:#059669;--gd:#047857;--a:#F59E0B;--ink:#0f172a;--mut:#475569;--line:#e2e8f0;--paper:#f6f8fc;--r:22px;--sh:0 18px 48px rgba(15,44,103,.07);
  display:block;max-width:76rem;margin:0 auto;padding:1.25rem 1rem 3rem;color:var(--ink);font-size:1rem;line-height:1.6}
.tn a{color:var(--gd);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.tn svg{width:1.15em;height:1.15em;flex:none}
.tn-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;font-size:.85rem;color:var(--mut);margin-bottom:1.25rem}
.tn-crumb a{color:var(--mut);font-weight:500;text-decoration:none}
.tn-crumb a:hover{text-decoration:underline}
.tn-crumb svg{width:14px;height:14px}
.tn-crumb [aria-current]{color:var(--b);font-weight:600}

/* Hero */
.tn-hero{display:grid;gap:1.25rem;margin-bottom:1.75rem}
.tn-hero__txt{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.5rem 1.25rem;box-shadow:var(--sh)}
.tn-eyebrow{display:flex;align-items:center;gap:.6rem;font-size:.75rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--gd);margin-bottom:1rem}
.tn-eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.tn-hero h1{color:var(--b);font-size:clamp(1.85rem,4.6vw,3rem);line-height:1.12;letter-spacing:-.02em;margin-bottom:1rem}
.tn-lead{font-size:1.1rem;color:#334155;line-height:1.65;margin-bottom:1.25rem}
.tn-steps{display:grid;gap:.6rem;margin-bottom:1.4rem}
.tn-steps li{display:flex;gap:.75rem;align-items:flex-start;font-size:.95rem;color:#334155}
.tn-steps b{flex:none;width:1.9rem;height:1.9rem;border-radius:50%;display:grid;place-items:center;background:#ecfdf5;color:var(--gd);font-size:.85rem;border:1px solid #a7f3d0}
.tn-steps strong{color:var(--b)}
.tn-cta{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center}
.tn-by{font-size:.85rem;color:var(--mut);margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--line)}
.tn-hero__art{background:var(--b);color:#fff;border-radius:var(--r);padding:1.5rem;display:flex;flex-direction:column;justify-content:space-between;gap:1.25rem;overflow:hidden}
.tn-hero__art .tn-eyebrow{color:#fcd34d;margin:0}
.tn-levels{display:flex;align-items:flex-end;justify-content:center;gap:.45rem;height:132px}
.tn-levels span{width:2.6rem;display:grid;place-items:center;border-radius:10px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.06);font-size:.8rem;font-weight:700}
.tn-levels span:nth-child(1){height:34%}.tn-levels span:nth-child(2){height:46%}.tn-levels span:nth-child(3){height:58%;background:var(--a);color:#111827;border-color:var(--a)}
.tn-levels span:nth-child(4){height:70%}.tn-levels span:nth-child(5){height:84%}.tn-levels span:nth-child(6){height:100%}
.tn-hero__art p{color:#dbe4ff;font-size:.95rem;line-height:1.55}
.tn-hero__art strong{display:block;color:#fff;font-size:1.25rem;line-height:1.3;margin-bottom:.35rem}

/* Boutons */
.tn-btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;min-height:48px;padding:.75rem 1.35rem;border-radius:999px;background:var(--gd);color:#fff;font-weight:700;font-size:.98rem;line-height:1.2;border:1px solid transparent;text-decoration:none;transition:transform .18s cubic-bezier(.23,1,.32,1)}
.tn a.tn-btn{color:#fff;text-decoration:none}
.tn-btn:hover:not(:disabled){transform:translateY(-2px)}
.tn-btn:active:not(:disabled){transform:translateY(0)}
.tn-btn:disabled{opacity:.5;cursor:not-allowed}
.tn-btn--blue{background:var(--b)}
.tn-btn--ghost,.tn a.tn-btn--ghost{background:#fff;color:var(--b);border-color:#cbd5e1}
.tn-btn--amber,.tn a.tn-btn--amber{background:var(--a);color:#111827}
.tn-btn--line{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.tn-btn--sm{min-height:42px;padding:.55rem 1rem;font-size:.9rem}
.tn-link{background:none;border:0;color:var(--b);font-weight:600;text-decoration:underline;text-underline-offset:3px;font-size:.92rem;padding:.4rem 0;min-height:44px}

.tn-noscript{background:#fffbeb;border:1px solid #fcd34d;border-radius:14px;padding:1rem 1.2rem;margin:0 0 1.25rem;color:#78350f;font-weight:600}

/* Outils (cartes) */
.tn-tools{display:grid;gap:1.5rem;margin-bottom:1.75rem}
.tn-tool{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);overflow:hidden}
.tn-tool__top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;padding:1rem 1.25rem;border-bottom:1px solid var(--line)}
.tn-tool__top h2{display:flex;align-items:center;gap:.6rem;font-size:1.15rem;font-weight:800;color:var(--b)}
.tn-tool__top h2 svg{width:22px;height:22px;color:var(--g)}
.tn-tool__meta{font-size:.85rem;color:var(--mut);font-weight:600}
.tn-tool__body{padding:1.4rem 1.25rem 1.6rem;min-height:26rem}
.tn-tool__body > p{color:#334155;margin-bottom:1rem}
.tn-how{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:1rem 1.15rem;margin:0 0 1.25rem;font-size:.93rem;color:#334155}
.tn-how strong{color:var(--b)}
.tn-how ul{margin-top:.5rem;display:grid;gap:.3rem}
.tn-how li{padding-left:1rem;position:relative}
.tn-how li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;border-radius:50%;background:var(--g)}
.tn-info{display:flex;gap:.6rem;align-items:flex-start;font-size:.88rem;color:var(--mut);margin-top:1rem}
.tn-info svg{margin-top:.15rem;color:var(--g)}
.tn-loading{color:var(--mut);font-weight:600;padding:2rem 0}

/* Quiz écrit */
.tn-quiz{max-width:46rem;margin:0 auto;animation:tn-in .35s cubic-bezier(.23,1,.32,1) both}
.tn-qmeta{display:flex;justify-content:space-between;gap:1rem;font-size:.85rem;color:var(--mut);font-weight:600;margin-bottom:.6rem}
.tn-qmeta b{color:var(--b)}
.tn-progress{height:8px;border-radius:99px;background:#e8edf5;overflow:hidden}
.tn-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--g),#34d399);transform-origin:left center;transform:scaleX(0);transition:transform .4s cubic-bezier(.23,1,.32,1)}
.tn-q{font-size:1.35rem;line-height:1.4;color:var(--b);font-weight:700;margin:1.4rem 0 .4rem;letter-spacing:-.01em}
.tn-q:focus{outline:none}
.tn-q:focus-visible{outline:3px solid var(--b);outline-offset:4px;border-radius:6px}
.tn-qhint{color:var(--mut);font-size:.9rem;margin-bottom:1rem}
.tn-opts{display:grid;gap:.6rem}
@media (min-width:640px){.tn-opts{grid-template-columns:1fr 1fr}}
.tn-opt{width:100%;display:flex;align-items:center;gap:.8rem;text-align:left;padding:.85rem 1rem;min-height:52px;border:1.5px solid #d6dde8;border-radius:14px;background:#fff;color:var(--ink);font-weight:600;font-size:1rem;transition:transform .15s ease}
.tn-opt b{flex:none;width:1.8rem;height:1.8rem;border-radius:8px;display:grid;place-items:center;background:var(--paper);border:1px solid var(--line);font-size:.8rem;color:var(--b)}
.tn-opt:hover:not(:disabled){border-color:var(--b);transform:translateY(-1px)}
.tn-opt[aria-checked=true]{border-color:var(--b);background:#eef3ff}
.tn-opt[aria-checked=true] b{background:var(--b);color:#fff;border-color:var(--b)}
.tn-opt:disabled{cursor:default}
.tn-opt.is-ok{border-color:#059669;background:#ecfdf5}
.tn-opt.is-ok b{background:#047857;color:#fff;border-color:#047857}
.tn-opt.is-ko{border-color:#ea580c;background:#fff7ed}
.tn-opt.is-ko b{background:#c2410c;color:#fff;border-color:#c2410c}
.tn-fb{margin-top:1rem;border-radius:14px;padding:.95rem 1.1rem;font-size:.95rem;line-height:1.55;animation:tn-in .3s cubic-bezier(.23,1,.32,1) both}
.tn-fb strong{display:block;margin-bottom:.2rem}
.tn-fb--ok{background:#ecfdf5;border:1px solid #6ee7b7;color:#064e3b}
.tn-fb--ko{background:#fff7ed;border:1px solid #fdba74;color:#7c2d12}
.tn-qfoot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-top:1.4rem}
.tn-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Résultats */
.tn-res{animation:tn-in .4s cubic-bezier(.23,1,.32,1) both}
.tn-res__top{display:grid;gap:1.25rem;align-items:center}
@media (min-width:640px){.tn-res__top{grid-template-columns:auto 1fr}}
.tn-ring{width:132px;height:132px;border-radius:50%;padding:10px;background:conic-gradient(var(--g) calc(var(--s,0)*1%),#e8edf5 0)}
.tn-ring div{width:100%;height:100%;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}
.tn-ring strong{font-size:2.1rem;line-height:1;color:var(--b);font-weight:800}
.tn-ring small{font-size:.8rem;color:var(--mut);font-weight:600;margin-top:.2rem}
.tn-res h3{font-size:1.4rem;color:var(--b);font-weight:800;margin-bottom:.35rem}
.tn-res h3:focus{outline:none}
.tn-res p{color:#334155}
.tn-bands{display:flex;flex-wrap:wrap;gap:.4rem;margin:1rem 0}
.tn-bands span{font-size:.8rem;font-weight:700;padding:.3rem .6rem;border-radius:8px;background:var(--paper);border:1px solid var(--line);color:var(--mut)}
.tn-bands span.is-on{background:var(--b);border-color:var(--b);color:#fff}
.tn-fix{margin-top:1.25rem;border-top:1px solid var(--line)}
.tn-fix summary{cursor:pointer;font-weight:700;color:var(--b);padding:.9rem 0;min-height:44px}
.tn-fix ol{display:grid;gap:.6rem;padding-bottom:.5rem}
.tn-fix li{font-size:.92rem;color:#334155;border-left:3px solid var(--line);padding:.2rem 0 .2rem .8rem}
.tn-fix li.is-ok{border-left-color:#059669}.tn-fix li.is-ko{border-left-color:#ea580c}
.tn-fix li b{color:var(--b)}
.tn-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-top:1.25rem}

/* Oral (panneau sombre) */
.tn-dark{background:var(--b);color:#fff;border-color:var(--b)}
.tn-dark :focus-visible{outline-color:#fbbf24}
.tn-dark .tn-tool__top{border-bottom-color:rgba(255,255,255,.16)}
.tn-dark .tn-tool__top h2{color:#fff}
.tn-dark .tn-tool__top h2 svg{color:#fcd34d}
.tn-dark .tn-tool__meta,.tn-dark .tn-tool__body > p,.tn-dark .tn-qmeta,.tn-dark .tn-qhint{color:#dbe4ff}
.tn-dark .tn-qmeta b{color:#fff}
.tn-dark .tn-how{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.18);color:#e6ecff}
.tn-dark .tn-how strong{color:#fff}
.tn-dark .tn-how li::before{background:#fcd34d}
.tn-dark .tn-info{color:#dbe4ff}.tn-dark .tn-info svg{color:#fcd34d}
.tn-dark .tn-progress{background:rgba(255,255,255,.16)}
.tn-dark .tn-progress span{background:linear-gradient(90deg,#fbbf24,#fcd34d)}
.tn-dark .tn-link{color:#fff}
.tn-dark a{color:#fde68a}
.tn-phrases{display:grid;gap:.5rem;margin:0 0 1.25rem;counter-reset:ph}
.tn-phrases li{counter-increment:ph;display:grid;grid-template-columns:auto 1fr;gap:.2rem .75rem;padding:.75rem .9rem;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14)}
.tn-phrases li::before{content:counter(ph);grid-row:span 2;width:1.7rem;height:1.7rem;border-radius:50%;display:grid;place-items:center;background:#fcd34d;color:#111827;font-weight:800;font-size:.8rem}
.tn-phrases q{quotes:none;font-weight:700;color:#fff}
.tn-phrases small{color:#dbe4ff;font-size:.85rem}
.tn-say{font-size:clamp(1.3rem,3.4vw,1.75rem);line-height:1.4;font-weight:700;text-align:center;margin:1.4rem auto .5rem;max-width:36rem;letter-spacing:-.01em}
.tn-say:focus{outline:none}
.tn-fr{text-align:center;color:#dbe4ff;font-size:.95rem;margin-bottom:.35rem}
.tn-tip{text-align:center;color:#fde68a;font-size:.9rem;max-width:34rem;margin:0 auto}
.tn-ctrl{display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem;margin-top:1.25rem}
.tn-slow{display:inline-flex;align-items:center;gap:.5rem;font-size:.9rem;color:#e6ecff;min-height:44px;cursor:pointer}
.tn-slow input{width:20px;height:20px;accent-color:#fbbf24}
.tn-rec{display:inline-flex;align-items:center;gap:.5rem}
.tn-dot{width:10px;height:10px;border-radius:50%;background:#ef4444;opacity:0}
.is-rec .tn-dot{opacity:1;animation:tn-pulse 1s ease-in-out infinite alternate}
.tn-status{text-align:center;color:#e6ecff;font-size:.92rem;min-height:2.8em;margin-top:.9rem}
.tn-player{max-width:30rem;margin:.75rem auto 0;display:grid;gap:.5rem;justify-items:center}
.tn-player audio{width:100%;height:42px}
.tn-rate{margin-top:1.25rem;border:1px solid rgba(255,255,255,.18);border-radius:16px;padding:1rem}
.tn-rate legend,.tn-rate p.tn-rate__t{font-weight:700;padding:0 .3rem;color:#fff}
.tn-rate__opts{display:grid;gap:.5rem;margin-top:.6rem}
@media (min-width:640px){.tn-rate__opts{grid-template-columns:repeat(3,1fr)}}
.tn-rate button{min-height:48px;border-radius:12px;border:1.5px solid rgba(255,255,255,.35);background:transparent;color:#fff;font-weight:600;padding:.6rem .8rem;transition:transform .15s ease}
.tn-rate button:hover{transform:translateY(-1px)}
.tn-rate button[aria-checked=true]{background:#fcd34d;border-color:#fcd34d;color:#111827}
.tn-dark .tn-ring{background:conic-gradient(#fcd34d calc(var(--s,0)*1%),rgba(255,255,255,.16) 0)}
.tn-dark .tn-ring div{background:var(--b)}
.tn-dark .tn-ring strong{color:#fff;font-size:1.05rem;text-align:center;line-height:1.2;padding:0 .5rem}
.tn-dark .tn-ring small{color:#dbe4ff}
.tn-dark .tn-res h3{color:#fff}
.tn-dark .tn-res p{color:#e6ecff}

/* Synthèse + formulaire */
.tn-sum{background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);padding:1.4rem 1.25rem;margin-bottom:1.5rem}
.tn-sum h2,.tn-form h2{font-size:1.35rem;font-weight:800;color:var(--b);margin-bottom:.5rem}
.tn-sum > p{color:#334155}
.tn-stats{display:grid;gap:.75rem;margin:1rem 0 1.25rem}
@media (min-width:640px){.tn-stats{grid-template-columns:1fr 1fr}}
.tn-stat{border:1px solid var(--line);border-radius:16px;padding:1rem 1.1rem;background:var(--paper)}
.tn-stat small{display:block;font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mut)}
.tn-stat strong{display:block;font-size:1.45rem;color:var(--b);font-weight:800;margin:.2rem 0}
.tn-stat span{font-size:.9rem;color:var(--mut)}
.tn-reco{display:grid;gap:.6rem}
@media (min-width:768px){.tn-reco{grid-template-columns:1fr 1fr}}
.tn-reco li{border:1px solid var(--line);border-radius:14px;padding:.85rem 1rem;background:#fff;transition:transform .18s ease}
.tn-reco li.is-on{border-color:var(--g);box-shadow:0 0 0 3px #d1fae5}
.tn-reco li:hover{transform:translateY(-2px)}
.tn-reco a{display:block;margin-bottom:.15rem}
.tn-reco span{font-size:.9rem;color:var(--mut)}
.tn-note{font-size:.85rem;color:var(--mut);margin-top:1rem}
.tn-form{background:#fff;border:2px solid var(--b);border-radius:var(--r);box-shadow:var(--sh);padding:1.4rem 1.25rem;margin-bottom:2rem}
.tn-form > p{color:#334155;margin-bottom:1rem}
.tn-fields{display:grid;gap:.9rem}
@media (min-width:640px){.tn-fields{grid-template-columns:1fr 1fr}.tn-field--full{grid-column:1/-1}}
.tn-field label{display:block;font-weight:700;font-size:.92rem;color:var(--b);margin-bottom:.3rem}
.tn-field input,.tn-field textarea{width:100%;min-height:48px;border:1.5px solid #cbd5e1;border-radius:12px;padding:.7rem .85rem;background:#fff;color:var(--ink);font-size:1rem}
.tn-field textarea{min-height:7.5rem;line-height:1.5}
.tn-field input:focus-visible,.tn-field textarea:focus-visible{outline:3px solid var(--b);outline-offset:1px;border-color:var(--b)}
.tn-field small{display:block;font-size:.82rem;color:var(--mut);margin-top:.25rem}
.tn-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.tn-legal{font-size:.82rem;color:var(--mut);margin-top:1rem;line-height:1.55}
.tn-form .tn-btn{margin-top:1.1rem;width:100%}
@media (min-width:640px){.tn-form .tn-btn{width:auto}}

/* Contenu éditorial */
.tn-cols{display:grid;gap:1.5rem}
.tn-art{min-width:0}
.tn-block{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:1.4rem 1.25rem;margin-bottom:1.25rem}
.tn-block h2{color:var(--b);font-size:1.45rem;line-height:1.3;font-weight:800;margin-bottom:.8rem;letter-spacing:-.01em}
.tn-block h3{color:var(--b);font-size:1.12rem;font-weight:700;margin:1.3rem 0 .45rem}
.tn-block p{color:#334155;line-height:1.7;margin-bottom:1rem}
.tn-block p:last-child{margin-bottom:0}
.tn-block ul.tn-list{display:grid;gap:.5rem;margin-bottom:1rem}
.tn-block ul.tn-list li{padding-left:1.6rem;position:relative;color:#334155;line-height:1.6}
.tn-block ul.tn-list li::before{content:"";position:absolute;left:.2rem;top:.45em;width:.8rem;height:.45rem;border-left:2.5px solid var(--g);border-bottom:2.5px solid var(--g);transform:rotate(-45deg)}
.tn-key{background:linear-gradient(135deg,#f0fdf4,#ecfdf5);border-color:#a7f3d0}
.tn-key h2{color:var(--gd)}
.tn-qa{display:grid;gap:.75rem}
.tn-qa div{background:var(--paper);border-radius:14px;padding:1rem 1.1rem}
.tn-qa h3{margin:0 0 .35rem;font-size:1.05rem}
.tn-qa p{margin:0}
.tn-fig{margin:0 0 1.25rem;border-radius:var(--r);overflow:hidden;background:#e8edf5;aspect-ratio:1200/473}
.tn-fig img{width:100%;height:100%;object-fit:cover}
.tn-table{overflow-x:auto;margin:0 0 1rem;border:1px solid var(--line);border-radius:14px}
.tn-table:focus-visible{outline:3px solid var(--b)}
.tn-table table{width:100%;min-width:30rem;font-size:.93rem;background:#fff}
.tn-table th{background:var(--b);color:#fff;font-weight:700;text-align:left;padding:.7rem .85rem}
.tn-table td{padding:.65rem .85rem;border-top:1px solid var(--line);color:#334155;vertical-align:top}
.tn-table .c{text-align:center}
.tn-chip{display:inline-block;min-width:2.1rem;text-align:center;color:#fff;font-weight:700;font-size:.8rem;padding:.12rem .45rem;border-radius:6px;margin-right:.4rem}
.tn-c1{background:#4b5563}.tn-c2{background:#1d4ed8}.tn-c3{background:#0369a1}.tn-c4{background:#0F2C67}.tn-c5{background:#047857}.tn-c6{background:#92400e}
.tn-small{font-size:.88rem;color:var(--mut)}
.tn-box{border-radius:14px;padding:1rem 1.15rem;margin:1rem 0;background:#fffbeb;border:1px solid #fde68a;color:#78350f}
.tn-sources{list-style:decimal;padding-left:1.4rem;display:grid;gap:.4rem}
.tn-sources a{color:var(--b)}
.tn-gloss{display:grid;gap:.85rem}
@media (min-width:640px){.tn-gloss{grid-template-columns:1fr 1fr}}
.tn-gloss dt{font-weight:700;color:var(--b)}
.tn-gloss dd{margin:.15rem 0 0;color:#475569;font-size:.93rem;line-height:1.55}
.tn-faq{border:1px solid var(--line);border-radius:16px;overflow:hidden}
.tn-faq details{border-top:1px solid var(--line);background:#fff}
.tn-faq details:first-child{border-top:0}
.tn-faq summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.15rem;min-height:48px;font-weight:700;color:#1f2937;cursor:pointer}
.tn-faq summary::-webkit-details-marker{display:none}
.tn-faq summary::after{content:"+";color:var(--gd);font-size:1.5rem;line-height:1;flex:none;transition:transform .25s ease}
.tn-faq details[open] summary::after{transform:rotate(45deg)}
.tn-faq details p{padding:0 1.15rem 1.1rem;margin:0;color:#475569}
.tn-end{background:var(--b);color:#fff;border-radius:var(--r);padding:1.75rem 1.4rem;text-align:center}
.tn-end h2{font-size:1.45rem;font-weight:800;margin-bottom:.6rem}
.tn-end p{color:#dbe4ff;margin-bottom:1.1rem}
.tn-end .tn-cta{justify-content:center}
.tn-side{display:grid;gap:1rem;align-content:start}
.tn-toc{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.1rem 1.2rem}
.tn-toc h2{font-size:1rem;font-weight:800;color:var(--b);padding-bottom:.5rem;margin-bottom:.5rem;border-bottom:1px solid var(--line)}
.tn-toc ul{display:grid;gap:.15rem}
.tn .tn-toc a{display:block;padding:.35rem 0;color:#334155;font-weight:500;text-decoration:none;font-size:.93rem}
.tn .tn-toc a:hover{color:var(--b);text-decoration:underline}
.tn-aside-cta{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:1.1rem 1.2rem}
.tn-aside-cta p{font-size:.92rem;color:#334155;margin-bottom:.8rem}
.tn-aside-cta strong{display:block;color:var(--b);font-size:1.05rem;margin-bottom:.3rem}

@media (min-width:768px){
  .tn{padding:1.75rem 1.5rem 4rem}
  .tn-hero__txt{padding:2.25rem 2.25rem 2rem}
  .tn-tool__top{padding:1.1rem 1.75rem}
  .tn-tool__body{padding:1.9rem 2.25rem 2.25rem;min-height:24rem}
  .tn-sum,.tn-form{padding:2rem 2.25rem}
  .tn-block{padding:2rem 2.25rem}
}
@media (min-width:1024px){
  .tn-hero{grid-template-columns:1.45fr .8fr;align-items:stretch}
  .tn-hero__art{padding:2rem}
  .tn-levels{height:170px}
  .tn-cols{grid-template-columns:minmax(0,1fr) 17.5rem}
  .tn-side{position:sticky;top:6.5rem}
}

@keyframes tn-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes tn-pulse{from{opacity:1}to{opacity:.25}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
