/* Yhteisöohjautuvuus — testit, YO-1 "Nuotio" (Karlex-perhe). Korvaa style.css:n ja responsive.css:n.
   Pohja: ../../vedokset/perhe.css + vedokset/yo-1-nuotio/tyyli.css. Sama paletti ja fontit kuin
   WP-teemassa yo-nuotio; korostus flame. Kyselyiden sisältö ja lomakkeen rakenne ovat ennallaan,
   askeltaja (js/nuotio.js) vain järjestää näkymän. ⛔ Ei pinkkiä, ei magentaa, ei turkoosia. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/inter-tight-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/inter-tight-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #0B1220; --night-2: #141C2E;
  --gold: #D9A84E; --gold-pale: #F1D08A;
  --ember: #E2581C; --flame: #F28C28; --flame-yellow: #F6B93B;
  --ivory: #F5F1E8; --paper: #FAF7F0; --ink: #1A1F2B; --ink-light: #E9E6DF;
  --fire: linear-gradient(90deg, var(--ember), var(--flame), var(--flame-yellow));
  --display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1264px; --gutter: 88px; --radius: 6px;
  --m-a: #2E9E6B; --m-b: #D9531A; --m-c: #C29A2A; --m-d: #7B78E0;
}
.dark {
  --bg: var(--night); --surface: var(--night-2); --text: var(--ink-light); --head: var(--ivory);
  --muted: rgba(233, 230, 223, .72); --faint: rgba(233, 230, 223, .56);
  --hair: rgba(233, 230, 223, .10); --card-line: rgba(217, 168, 78, .18); --link: var(--gold-pale);
}
.yo1 { --accent: var(--flame); }

/* ── Pohja ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--head); overflow-wrap: break-word; letter-spacing: -.015em; }
h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 20px; }
h2 { font-size: 24px; line-height: 1.25; margin: 32px 0 12px; }
h3 { font-size: 19px; line-height: 1.3; margin: 24px 0 10px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li + li { margin-top: 4px; }
b, strong { color: var(--head); font-weight: 600; }
hr { border: 0; height: 1px; background: var(--hair); margin: 48px 0; }
iframe { max-width: 100%; border: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.caps { font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.accent { color: var(--accent); }
.meta { color: var(--faint); }
.clearfix::after { content: ""; display: table; clear: both; }
.disable-select { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.text-center { text-align: center; }
.hidden { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Yläpalkki (sama kuin WP-teeman header) ── */
.site-head { position: relative; z-index: 20; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--head); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.karlex-seal { margin: 0; flex-shrink: 0; }
.karlex-seal img { display: block; width: 36px; height: 36px; border-radius: 50%; }
.wordmark { display: flex; align-items: baseline; gap: 10px; }
.wordmark b { font: 600 19px/1 var(--display); letter-spacing: -.02em; color: var(--head); }
.wordmark small { color: var(--accent); font-size: 10.5px; letter-spacing: .18em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav a:hover { color: var(--head); text-decoration: none; }
.nav a.on { color: var(--head); box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--hair); border-radius: var(--radius); background: none; color: var(--head); cursor: pointer; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 16px; height: 1.5px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.menu-btn i::before { position: absolute; top: -5px; } .menu-btn i::after { position: absolute; top: 5px; }

/* Testien välilehdet (vanhan navigaation testilinkit) */
.testnav { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.testnav a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px;
  color: var(--muted); font: 500 13.5px/1 var(--sans); white-space: nowrap;
}
.testnav a:hover { color: var(--head); border-color: var(--card-line); text-decoration: none; }
.testnav a.on { color: var(--night); background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* ── Sisältö ── */
.wrapper { min-height: 100vh; display: flex; flex-direction: column; }
main.wrap { flex: 1; padding-top: 56px; padding-bottom: 96px; position: relative; }
main.wrap::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none; z-index: -1;
  background: radial-gradient(40% 70% at 82% 0%, rgba(242, 140, 40, .14), rgba(226, 88, 28, .04) 55%, transparent 75%);
}
main article { color: var(--text); }
main article.clearfix { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; align-items: start; }
main article.clearfix > h1, main article.clearfix > p, main article.clearfix > div:not(.left):not(.right) { grid-column: 1 / -1; }
main article.clearfix > .left > h2:first-child, main article.clearfix > .right > :first-child { margin-top: 0; }
main article .left, main article .right { min-width: 0; }
main article p, main article li { color: var(--muted); }
main article img.guide { display: block; margin: 0 auto; max-width: 80%; border-radius: var(--radius); }
p.perso { float: left; margin-right: 20px; }
p.perso img { width: 300px; border-radius: var(--radius); }
.explore { padding: 24px; margin-bottom: 20px; border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--surface); }

/* Etusivun laatikot = kortit */
.boxed {
  position: relative; padding: 32px; margin-bottom: 24px; border: 1px solid var(--card-line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(242, 140, 40, .07), transparent 40%), var(--surface); transition: border-color .15s;
}
.boxed:hover { border-color: var(--flame); }
.boxed h1 { font-size: 30px; line-height: 1.15; margin: 0 0 16px; }
.boxed h2 { font-size: 18px; margin: 24px 0 10px; }
.boxed > p { color: var(--muted); }
.frontButton { margin: 8px 0 24px; }
a.frontPage, .frontButton a {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px;
  background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius);
  color: var(--night); font: 600 15px/1 var(--sans); white-space: nowrap;
}
a.frontPage::after, .frontButton a::after { content: "→"; }
a.frontPage:hover, .frontButton a:hover { text-decoration: none; filter: brightness(1.06); }
a.frontPage:empty { display: none; }

/* ── Kysely ── */
main > section { margin-top: 0; }
form#minakuva.m-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
form#minakuva .m-main { grid-column: 1; grid-row: 1; min-width: 0; }
.prog { display: flex; align-items: center; gap: 14px; margin: 0 0 8px; }
.prog [data-count] { font: 600 13px/1 var(--sans); color: var(--faint); font-variant-numeric: tabular-nums; min-width: 56px; }
.prog .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.prog .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .25s; }
.prog .back { height: 32px; padding: 0 12px; background: none; border: 1px solid var(--hair); border-radius: var(--radius); color: var(--muted); font: 500 13px/1 var(--sans); cursor: pointer; }
.prog .back:hover:not(:disabled) { color: var(--head); border-color: var(--card-line); }
.prog .back:disabled { opacity: .4; cursor: default; }
.keys { margin: 18px 0 0; font-size: 13px; color: var(--faint); }

.clearfix.error { padding: 22px 0; border-top: 1px solid var(--hair); }
.stepping .clearfix.error { border-top: 0; padding-top: 18px; }
.stepping .clearfix.error[hidden] { display: none; }
.clearfix.error h4 { font-size: 22px; line-height: 1.3; margin: 0 0 18px; color: var(--head); }
.clearfix.error h4 em { font: 600 12px/1 var(--sans); font-style: normal; letter-spacing: .14em; color: var(--faint); margin-right: 12px; vertical-align: 3px; }
.clearfix.error h4 span { float: none !important; display: block; margin-top: 6px; font: 500 13px/1.4 var(--sans); letter-spacing: 0; }
.error-msg { margin: -6px 0 14px; padding: 10px 14px; border-left: 2px solid var(--ember); background: rgba(226, 88, 28, .10) !important; color: var(--head); font-size: 14.5px; border-radius: 0 var(--radius) var(--radius) 0; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.choice-wrapper {
  display: flex; align-items: flex-start; gap: 12px; min-height: 64px; padding: 14px 16px; margin: 0;
  background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--radius);
  color: var(--text); cursor: pointer; transition: border-color .12s, background-color .12s;
}
.clearfix.error > .choice-wrapper { margin-bottom: 10px; }
.choice-wrapper:hover { border-color: rgba(242, 140, 40, .55); }
.choice-wrapper .choice-indicator {
  position: relative; flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center;
  border: 1px solid var(--hair); border-radius: 4px; color: var(--faint); font: 600 12px/1 var(--sans);
}
.choice-wrapper .choice-indicator::before { content: attr(data-key); }
.choice-wrapper .choice-indicator .order-number:empty { display: none; }
.choice-wrapper .choice-indicator .order-number { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 3px; background: inherit; }
.choice-wrapper .choice-indicator input { display: none; }
.choice-wrapper .choice-text { flex: 1; min-width: 0; font: 400 15.5px/1.45 var(--sans); padding-top: 2px; }
.choice-wrapper .choice-helper-text { margin-top: 6px; font-size: 12.5px; line-height: 1.3; color: var(--faint); }
.choice-wrapper .choice-helper-text:empty { display: none; }
/* Valintajärjestys 1–4: choice3 = kuvastaa parhaiten, choice0 = vähiten */
.choice-wrapper:has(.choice-text.selected) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-wrapper .choice-indicator.selected { border-color: var(--accent); color: var(--night); }
.choice-wrapper .choice-indicator.choice3 { background: var(--flame); }
.choice-wrapper .choice-indicator.choice2 { background: rgba(242, 140, 40, .72); }
.choice-wrapper .choice-indicator.choice1 { background: rgba(242, 140, 40, .48); color: var(--ivory); }
.choice-wrapper .choice-indicator.choice0 { background: rgba(242, 140, 40, .26); color: var(--ivory); }
.choice-wrapper .choice-text.selected { color: var(--head); }

.form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--hair); }
.stepping .form-actions { border-top: 0; padding-top: 0; }
.stepping .form-actions[hidden], .done[hidden] { display: none; }
.done { padding: 28px; margin-top: 18px; border: 1px solid var(--card-line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(242, 140, 40, .07), transparent 60%), var(--surface); }
.done .form-actions { margin-top: 0; }
.btn, input.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; margin: 0;
  border: 1px solid var(--hair); border-radius: var(--radius); background: none;
  color: var(--head); font: 600 15px/1 var(--sans); cursor: pointer; -webkit-appearance: none; appearance: none;
}
.btn:hover { border-color: var(--card-line); }
.btn.btn-success, input.btn-success { order: 2; background: var(--accent); border-color: var(--accent); color: var(--night); }
.btn.btn-success:hover { filter: brightness(1.06); }

/* Live-kaavio sivupalkissa */
.m-result { padding: 24px; display: grid; gap: 14px; border: 1px solid var(--card-line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(242, 140, 40, .07), transparent 40%), var(--surface); }
.m-result.sticky { position: sticky; top: 24px; grid-column: 2; grid-row: 1; }
.m-result .live { position: relative; width: 100%; max-width: 240px; aspect-ratio: 1; margin: 0 auto; }
.m-result .live::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 22px solid var(--hair); }
.m-result .live.on::before { display: none; }
canvas.chart { position: relative; display: block; width: 100% !important; height: 100% !important; background: url(../img/karlex-logo.png) no-repeat 50% 50% / 22%; }
.m-note { font-size: 12.5px; margin: 0; }

/* ── Virheilmoitus ── */
.error-notification {
  position: fixed; z-index: 60; top: 16px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 32px));
  padding: 14px 44px 14px 18px; border-left: 3px solid var(--ember); border-radius: var(--radius);
  background: var(--ink); color: var(--ivory); font: 600 15px/1.4 var(--sans); box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.error-notification .close { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); font-size: 22px; line-height: 1; cursor: pointer; color: var(--faint); }

/* ── Tulos ── */
.result-pictures { display: block !important; }
.result-pictures .pull-left h1 { margin-bottom: 8px; }
.result-pictures .pull-right:empty, .result-pictures .pull-right { display: none; }
.result-pictures .text-center { margin: 24px 0 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.result-pictures .text-center > * { max-width: 100%; }
.result-pictures canvas {
  max-width: 100%; height: auto !important; aspect-ratio: 1; padding: 16px; border-radius: var(--radius);
  background-color: var(--paper) !important; box-shadow: 0 0 0 1px var(--card-line), 0 24px 48px rgba(0, 0, 0, .35);
}
.resultchart { width: 400px; background: url(../img/yksilo-tausta.png) no-repeat 50% 50% / contain; }
.resultchartEgoswot, .resultchartegoswot { width: 400px; background: url(../img/egoswot-tausta.png) no-repeat 50% 50% / contain; }
.resultchartTiimi { width: 520px; background: url(../img/karlex-logo.png) no-repeat 50% 54% / 18%; }
.egoswotChart { flex: 1 1 360px; max-width: 460px; }
.egoswotChart canvas { width: 100% !important; }

/* Tulossivun selitystaulukko */
.title-before-table { margin-top: 48px; }
table { width: 100%; margin: 0 0 32px; border-collapse: collapse; font-size: 15px; }
table th, table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); color: var(--text); }
table thead th { font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border-bottom-color: var(--card-line); }
table tbody th, table tbody td:first-child { font-family: var(--display); font-weight: 600; color: var(--head); white-space: nowrap; }
table tbody tr:nth-child(even) td, table tbody tr:nth-child(even) th { background: rgba(233, 230, 223, .03); }

/* Uutiskirje (Mailchimp, inline-tyylit ohitetaan) */
.trademark { padding: 28px; margin: 32px 0 20px; border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.trademark p { color: var(--muted); }
.trademark label { color: var(--head); font-weight: 600; }
.trademark select, .trademark input.email {
  height: 44px !important; padding: 0 12px !important; margin: 8px 8px 8px 0 !important; text-indent: 0 !important;
  background: var(--bg) !important; color: var(--head) !important; border: 1px solid var(--card-line) !important; border-radius: var(--radius) !important;
  font: 500 15px/1 var(--sans) !important; vertical-align: middle;
}
.trademark input.email { width: min(360px, 100%) !important; }
.trademark input.button {
  height: 44px !important; line-height: 44px !important; padding: 0 20px !important; margin: 8px 0 !important; width: auto !important;
  background: var(--accent) !important; color: var(--night) !important; border-radius: var(--radius) !important; font: 600 15px/44px var(--sans) !important; vertical-align: middle;
}

/* ── jQuery UI -dialogi (etusivun video) ── */
.ui-widget-overlay { background: rgba(11, 18, 32, .78) !important; opacity: 1 !important; }
.ui-dialog.ui-widget-content, .ui-dialog .ui-widget-content { background: var(--night-2) !important; color: var(--text) !important; border-color: var(--card-line) !important; font-family: var(--sans) !important; }
.ui-dialog { padding: 0 !important; border-radius: var(--radius) !important; max-width: calc(100vw - 32px); }
/* functions.js antaa dialogille position: top (= window.top, ei kelpaa) → jQuery UI jättää sen vasempaan yläkulmaan; keskitetään. */
.ui-dialog { position: fixed !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); max-height: calc(100vh - 32px); overflow: auto; }
.ui-dialog .ui-dialog-titlebar { background: none !important; border: 0 !important; border-bottom: 1px solid var(--hair) !important; color: var(--head) !important; font-family: var(--display) !important; }
.ui-dialog .ui-dialog-content { color: var(--text) !important; }
.ui-dialog .ui-dialog-buttonpane { background: none !important; border-top: 1px solid var(--hair) !important; }
.ui-dialog .ui-dialog-buttonpane button { background: var(--accent) !important; border: 0 !important; color: var(--night) !important; font: 600 15px/1 var(--sans) !important; padding: 12px 20px !important; border-radius: var(--radius) !important; }

/* ── Alatunniste (sama kuin WP-teeman footer) ── */
.foot { position: relative; padding: 56px 0 40px; background: var(--night); color: var(--ink-light); }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--fire); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.foot h4 { color: var(--ivory); font: 600 11.5px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.foot p, .foot li { color: rgba(233, 230, 223, .72); font-size: 14.5px; margin: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot li + li { margin-top: 0; }
.foot a { color: var(--gold-pale); }
.family { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(233, 230, 223, .10); display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; font-size: 13.5px; color: rgba(233, 230, 223, .56); }
.family b { color: var(--ivory); font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.family a { color: rgba(233, 230, 223, .72); }
.family a.here { color: var(--ivory); box-shadow: inset 0 -1px 0 var(--accent); }
.family .copy { margin-left: auto; }

/* ── Kapea näyttö ── */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .topbar { height: 68px; gap: 16px; }
  .wordmark { flex-direction: column; gap: 4px; }
  .wordmark b { font-size: 17px; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--night-2); border-bottom: 1px solid var(--hair); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
  .nav a.on { box-shadow: none; color: var(--accent); }
  .testnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .testnav::-webkit-scrollbar { display: none; }
  main.wrap { padding-top: 32px; padding-bottom: 64px; }
  h1 { font-size: 32px; }
  main article.clearfix { grid-template-columns: 1fr; gap: 0; }
  .boxed { padding: 22px; }
  .boxed h1 { font-size: 25px; }
  form#minakuva.m-wrap { grid-template-columns: 1fr; gap: 28px; }
  .m-result.sticky { position: static; grid-column: 1; grid-row: 2; }
  .m-result .live { max-width: 200px; }
  .opts { grid-template-columns: 1fr; }
  .clearfix.error h4 { font-size: 19px; }
  .keys { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .family .copy { margin-left: 0; width: 100%; }
  p.perso { float: none; margin: 0 0 16px; }
}
@media (max-width: 640px) {
  .hiddenmobile { display: none; }
  .result-pictures canvas { padding: 8px; }
  /* Taulukko lohkoiksi, otsikko data-title-attribuutista (kuten ennen) */
  table, thead, tbody, th, td, tr { display: block; }
  table thead tr { position: absolute; top: -9999px; left: -9999px; }
  table tbody tr { padding: 10px 0; border-bottom: 1px solid var(--card-line); }
  table tbody tr th { padding: 6px 0; border: 0; white-space: normal; }
  table tbody tr td { position: relative; padding: 6px 0 6px 40%; border: 0; white-space: normal; }
  table tbody tr td::before { content: attr(data-title); position: absolute; top: 6px; left: 0; width: 38%; color: var(--faint); font: 600 11px/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; white-space: normal; }
  table tbody tr td:first-child { font-family: var(--sans); }
  table tbody tr:nth-child(even) td, table tbody tr:nth-child(even) th { background: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
