/* Money Types additions on top of ../burnout/style.css (shared tokens, dark scheme, text size). */
.attrib { font-size: calc(13px * var(--ts, 1)); color: var(--ink-dim); border-left: 3px solid var(--line); padding-left: 10px; margin: 0 0 20px; }
.type-card { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green-2); border-radius: 12px; padding: 14px 16px; margin: 14px 0; }
.type-card h2 { margin: 0 0 4px; }
.type-card h3 { margin: 14px 0 4px; font-size: calc(16px * var(--ts, 1)); }
.type-card ul { padding-left: 20px; margin: 4px 0; }
.type-card li { margin: 4px 0; }
.type-card .reflect { background: var(--mist); border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-style: italic; }
.prof { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) 2.6em; align-items: center; gap: 8px; margin: 8px 0; font-size: calc(15px * var(--ts, 1)); }
.prof .nm { font-weight: 600; overflow-wrap: anywhere; }
.prof .val { text-align: right; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.prof.top .nm { color: var(--green); }
.prof .meter-track { margin: 0; }
.prof.top .meter-fill { background: var(--green); }
@media print {
  .type-card, .card, .prof { break-inside: avoid; }
  #restart-btn { display: none !important; }
  .meter-track, .meter-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Money types are not good or bad: no amber/red. Every bar is green; the top types are darker. */
.prof .meter-fill, .prof.lv-moderate .meter-fill, .prof.lv-high .meter-fill { background: var(--green-2); }
.prof.top .meter-fill { background: var(--green); }
.type-card .pill, .type-card .lv-high .pill, .type-card .lv-moderate .pill { background: var(--mint); color: var(--green); }
/* Avatars and hero (2026-10-16c) */
.avatar { display: block; max-width: 100%; height: auto; }
.hero { border-width: 2px; }
.hero-main { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.tagline { margin: 4px 0 0; font-size: calc(16px * var(--ts, 1)); }
.hero-second { margin-top: 12px; }
.hero-second p { margin: 0 0 6px; }
.top-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); font-weight: 600; }
.chip.first { border-color: var(--green-2); }
.type-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 4px; }
.type-head h2 { margin: 0 0 4px; }
.prof { grid-template-columns: 32px minmax(0, 7.5em) minmax(0, 1fr) 2.8em; }
.mini .avatar { width: 32px; height: 32px; }
@media screen and (max-width: 420px) { .hero-main { grid-template-columns: 88px minmax(0, 1fr); } .hero-main .avatar { width: 88px; height: 88px; } }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: mt-reveal .5s ease both; }
  .type-card.reveal:nth-of-type(2) { animation-delay: .12s; }
  .prof .meter-fill { animation: mt-grow .7s ease both; transform-origin: left; }
  @keyframes mt-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes mt-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media print { .reveal, .prof .meter-fill { animation: none !important; } .avatar { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: calc(14px * var(--ts, 1)); color: var(--ink-dim); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
@media print { .consent { display: none !important; } }
/* Languages (2026-10-16): switcher on the intro, same look as the evaluation form's */
.lang { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lang[hidden] { display: none; }
.lang button { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: calc(14px * var(--ts, 1)); font-weight: 600; cursor: pointer; }
.lang button[aria-pressed=true] { background: var(--green); border-color: var(--green); color: var(--on-green, #fff); }
.lang button:focus-visible { outline: 3px solid var(--green-2); outline-offset: 2px; }
/* A wanted language is applied before the first paint of the page; the animation reveals it anyway after 5 s if the script never finishes. */
html.i18n-pending main { visibility: hidden; animation: mt-i18n-show 0s 5s forwards; }
@keyframes mt-i18n-show { to { visibility: visible; } }
/* Scripts without spaces or with tall marks: no letter-spacing on the eyebrow, long lines may wrap anywhere, a little more line height.
   Thai, Chinese, Japanese, Korean and Tamil need to be checked on a real phone once translated (font fallback, wrapping). */
html[lang=th] .eyebrow, html[lang=zh] .eyebrow, html[lang=ta] .eyebrow, html[lang=ja] .eyebrow, html[lang=ko] .eyebrow { letter-spacing: 0; }
html[lang=th] body, html[lang=ta] body { line-height: 1.7; }
html[lang=th] .opt, html[lang=th] .statement, html[lang=th] .prof .nm, html[lang=th] .chip, html[lang=ta] .opt, html[lang=ta] .prof .nm { overflow-wrap: anywhere; }
html[lang=zh] .opt, html[lang=ja] .opt, html[lang=zh] .statement, html[lang=ja] .statement { overflow-wrap: anywhere; }
html[lang=ja] body { line-break: strict; }
html[lang=ko] body { word-break: keep-all; }
/* Any translated page: a long unbroken run (Thai and CJK have no spaces, names and numbers can be long) may wrap anywhere instead of pushing the page sideways. */
html:not([lang=en]) main, html:not([lang=en]) .foot { overflow-wrap: anywhere; }
.lang button[lang=ta], .lang button[lang=th] { line-height: 1.5; }
/* EAP block: examples list (member-app Need help wording) */
.eap-examples { margin: 0 0 12px; padding-left: 20px; }

/* Double-tap safety: the statement a person is taken back to because it was missed (no words, so no translation is needed).
   Colour contrast is at least 3:1 against the page background (#b45309 on #f0faf3 is about 4.9:1; #f2c14e on #0f1a15 is about 10:1), and the cue does not rely on colour:
   a thick bar plus a dashed outline. */
#item-text.missed { border-left: 10px solid #b45309; padding-left: 12px; outline: 2px dashed #b45309; outline-offset: 6px; }
@media (prefers-color-scheme: dark) { #item-text.missed { border-left-color: #f2c14e; outline-color: #f2c14e; } }
