/* Apprentix.EU — "Studio" design (proposal 6, chosen 18 October 2026)

   Loaded after site.css on main-site pages only, while pipeline/design.py has DESIGN = "studio".
   site.css is untouched: set DESIGN = "current" and rebuild to return to the original look.
   Cedefop Daily (/daily) never loads this file.

   Values are copied from the proposal (reports/design/apprentix-design-proposals.html, "Studio"):
   tomato accent for heading highlights, eyebrows, links and actions; data in blue; pastel
   colour blocks; Bricolage Grotesque 800 headings; Instrument Sans text; 18/26 px radii. */

/* Stand-ins shown until the Google fonts arrive: local Arial and Courier New scaled to the
   web fonts' widths and line heights, so swapping in the real fonts barely moves anything.
   Values computed from the font files (letter-frequency-weighted average width, OS/2 and hhea
   metrics; Bricolage at wght 800 / opsz 40 for headings). */
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); font-weight: 400 500;
  size-adjust: 103.25%; ascent-override: 93.95%; descent-override: 24.21%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 600 700;
  size-adjust: 98.89%; ascent-override: 98.09%; descent-override: 25.28%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Grotesque Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Arimo"); font-weight: 400 500;
  size-adjust: 107.06%; ascent-override: 86.87%; descent-override: 25.22%; line-gap-override: 0%; }
@font-face { font-family: "Bricolage Grotesque Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Arimo Bold"); font-weight: 600 800;
  size-adjust: 100.76%; ascent-override: 92.30%; descent-override: 26.80%; line-gap-override: 0%; }
@font-face { font-family: "IBM Plex Mono Fallback"; src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono"), local("Cousine"); font-weight: 400 500;
  size-adjust: 99.98%; ascent-override: 102.52%; descent-override: 27.50%; line-gap-override: 0%; }

:root {
  --ground: #f5f6fa;
  --surface: #ffffff;
  --sunken: #eceef5;
  --ink: #17172b;
  --muted: #59597a;
  --faint: #75758f;
  --line: #e2e3ee;
  --line-strong: #cbcde0;
  --accent: #e8452f;
  --accent-ink: #c2321e;
  --accent-soft: #ffe5df;
  --on-accent: #ffffff;
  --hi: #3546d6;              /* the "Did you know?" note and the independence tag */
  --hi-soft: #e5e8ff;
  --on-hi: #ffffff;
  --data: #3546d6;            /* every data mark: bars, lines, dots, map tiles */
  --data-ink: #2a37b0;
  --data-soft: #e5e8ff;
  --on-data: #ffffff;
  --good: #1b7a47;
  --bad: #b04a0c;
  --amber: #b04a0c;
  --amber-soft: #fbe9dd;
  --shadow: 0 12px 32px rgba(23, 23, 43, .09);
  --fill-1: #c9e6ff;
  --fill-2: #ffe39a;
  --fill-3: #c8f0da;
  --fill-4: #ffd6cc;
  --fill-5: #ffdcb8;
  --fill-6: #ddd6ff;
  --fill-7: #ffd3ea;
  --fill-8: #c3ece9;
  --on-fill: #17172b;
  --bar: var(--data);

  --display: "Bricolage Grotesque", "Bricolage Grotesque Fallback", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Instrument Sans Fallback", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, Consolas, monospace;
  --radius: 18px;
  --radius-lg: 26px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #111122;
    --surface: #1a1a31;
    --sunken: #0d0d1a;
    --ink: #f0f0fb;
    --muted: #aaaacb;
    --faint: #8585a6;
    --line: #2b2b48;
    --line-strong: #3d3d62;
    --accent: #ff7663;
    --accent-ink: #ffa597;
    --accent-soft: #3b1d19;
    --on-accent: #111122;
    --hi: #8f9bff;
    --hi-soft: #23264d;
    --on-hi: #111122;
    --data: #8f9bff;
    --data-ink: #b3bcff;
    --data-soft: #23264d;
    --on-data: #111122;
    --good: #6fd39b;
    --bad: #f2a167;
    --amber: #f2a167;
    --amber-soft: #33240f;
    --shadow: 0 12px 32px rgba(0, 0, 0, .5);
    --fill-1: #1c3653;
    --fill-2: #4a3c11;
    --fill-3: #173f2b;
    --fill-4: #4a2620;
    --fill-5: #4a3216;
    --fill-6: #2e2754;
    --fill-7: #4a2038;
    --fill-8: #163f3c;
    --on-fill: #f0f0fb;
  }
}
:root[data-theme="dark"] {
  --ground: #111122;
  --surface: #1a1a31;
  --sunken: #0d0d1a;
  --ink: #f0f0fb;
  --muted: #aaaacb;
  --faint: #8585a6;
  --line: #2b2b48;
  --line-strong: #3d3d62;
  --accent: #ff7663;
  --accent-ink: #ffa597;
  --accent-soft: #3b1d19;
  --on-accent: #111122;
  --hi: #8f9bff;
  --hi-soft: #23264d;
  --on-hi: #111122;
  --data: #8f9bff;
  --data-ink: #b3bcff;
  --data-soft: #23264d;
  --on-data: #111122;
  --good: #6fd39b;
  --bad: #f2a167;
  --amber: #f2a167;
  --amber-soft: #33240f;
  --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  --fill-1: #1c3653;
  --fill-2: #4a3c11;
  --fill-3: #173f2b;
  --fill-4: #4a2620;
  --fill-5: #4a3216;
  --fill-6: #2e2754;
  --fill-7: #4a2038;
  --fill-8: #163f3c;
  --on-fill: #f0f0fb;
}

/* ---------- Type ---------- */

body { font-size: 15px; line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; }
.hero h1, .cp-head h1, .in-head h1, .st-head h1, .results-head h1, .ask-head h1, .find-title, .duel-title, .play-title,
.play-end-title, .section > h2, .cp-sec > h2, .duel-sec > h2, .drawer h2, .in-card h2, .tl-home-head h2, .pulse-head h2,
.st-foot h2, .changes-title, .start-card h3, .sow-title, .wic h3, .oc-card-q, .find-q, .find-r-title, .duel-side-name,
.play-q, .play-review-title, .gl-entry dt, .gl-pop-title, .pt-story h4, .mf-statement, .embed-head h1 { font-weight: 800; letter-spacing: -.025em; }
.stat .n, .lp-big, .sc-glance-v, .oc-stats dd, .play-value, .tl-year, .tl-home-year, .mf-score, .duel-score, .target-card .big { font-weight: 800; }
.h-accent { color: var(--accent); }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
.eyebrow[hidden] { display: block; }   /* Studio-only eyebrows stay hidden in the current design */

/* ---------- Header, notice, footer ---------- */

.indep { background: var(--hi-soft); border-bottom: 0; font-size: .74rem; }
.indep .wrap { padding-block: 6px; gap: 0; }
.indep .tag { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--hi); color: var(--on-hi); padding: 1px 6px; border-radius: 3px; margin-right: 8px; }
.indep p { color: var(--ink); }

.site-head { background: var(--ground); border-bottom: 0; }
.head-inner { min-height: 0; padding-block: 14px; gap: 8px 22px; }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; gap: 0; }
.brand .x { color: var(--accent); }
.brand .eu { font-size: .7rem; letter-spacing: 0; color: var(--muted); margin-left: 2px; transform: none; font-weight: 400; }
.site-nav { gap: 4px 16px; }
.site-nav a { font-size: .9rem; font-weight: 400; color: var(--muted); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.site-foot .rowlinks, .site-foot p { font-size: .8rem; }
.site-foot a { color: var(--muted); }

/* ---------- Surfaces ---------- */

.ds-card, .panel, .card, .chart-card, .target-card, .in-card, .ask-msg, .find-card, .duel-pickers, .duel-banner,
.duel-card, .changes, .tl-home, .play-card, .play-result, .play-end-card, .sow-card, .mf-card, .mf-end, .pulse,
.oc-card, .sc-fig, .sc-tilebox, .st-js .st-fig, .table-wrap, .cp-table, .duel-table, .oc-matrix-wrap, .dyk {
  border-radius: var(--radius-lg);
  border-color: transparent;
}
.stat-tile, .sc-glance, .cp-card, .wic-card, .follow-box, .find-opt, .duel-list { border-radius: var(--radius); border-color: transparent; }
.ds-card:hover, .card:hover, .target-card:hover, .oc-card:hover, .cp-card:hover { border-color: transparent; box-shadow: var(--shadow); }
.card.picked { border-color: var(--accent); }
.dyk, .sow-card { border-left: 0; }
.panel h2, .chart-card h2 { font-size: 1.15rem; }
.panel .hint, .chart-card .hint { font-size: .8rem; }

/* ---------- Controls ---------- */

.btn { border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 600; border-color: var(--line); }
.chip { border-color: var(--line); }
.cp-toc a { border: 0; font-size: .8rem; padding: 4px 11px; color: var(--ink); }
.search, .filterbar select { border-radius: 12px; }
.fact { border-radius: 999px; }

/* ---------- Data marks stay blue (the accent is tomato) ---------- */

.viz .bar-row.sel .cat { text-decoration-color: var(--data); }
.tilemap .tile-sel { stroke: var(--data); }
.meter .fill, .dist-bar span, .oc-dot, .oc-bar.oc-pos, .oc-skdot, .fx-dot, .share-sw.on { background: var(--data); }
.share-tile.on rect { fill: var(--data); stroke: var(--data); }
.cp-map .has rect { fill: var(--data-soft); }
.cp-map .has text { fill: var(--data-ink); }
.cp-map a.has:hover rect, .cp-map .on rect { fill: var(--data); }
.cp-map a.has:hover text, .cp-map .on text { fill: var(--on-data); }
.sc-bar, .sc-pt, .sc-dot { fill: var(--data); }
.sc-line { stroke: var(--data); }
.sc-lab.on { fill: var(--data-ink); }
.sc-tile.s1 { fill: color-mix(in oklab, var(--data) 16%, var(--surface)); }
.sc-tile.s2 { fill: color-mix(in oklab, var(--data) 34%, var(--surface)); }
.sc-tile.s3 { fill: color-mix(in oklab, var(--data) 52%, var(--surface)); }
.sc-tile.s4 { fill: color-mix(in oklab, var(--data) 72%, var(--surface)); }
.sc-tile.s5 { fill: var(--data); }
.st-dots .st-f-employer circle { fill: var(--data-soft); stroke: var(--data); }
.st-dots .st-d.st-on circle { fill: var(--data); stroke: var(--data); }
.st { --st-c0: var(--data); }
.status.good { color: var(--good); }
.status.bad { color: var(--bad); }
.sc-chip { font-weight: 600; }
.sc-chip.good { background: color-mix(in oklab, var(--good) 13%, var(--surface)); color: var(--good); }
.sc-chip.bad { background: color-mix(in oklab, var(--bad) 13%, var(--surface)); color: var(--bad); }

/* ---------- Home ---------- */

.hero { border-bottom: 0; padding-block: 44px 34px; }
.hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 22px; } }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: .98; max-width: none; }
.hero .lede { font-size: 1.02rem; max-width: 54ch; margin: 14px 0 22px; }
.stats { gap: 14px 30px; margin-top: 0; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 10px 14px; }
.stat .n { font-size: 2.1rem; line-height: 1; }
.stat .l { font-size: .74rem; }
.section { padding-block: 26px; }
.section > h2 { font-size: 1.55rem; margin-bottom: 14px; }

/* "Did you know?": a tilted blue note. */
.hero-dyk.dyk { background: var(--hi); color: var(--on-hi); border: 0; transform: rotate(-1.2deg); padding: 18px 20px; gap: 10px; }
.hero-dyk .dyk-head { justify-content: flex-start; gap: 0; }
.hero-dyk .dyk-eyebrow, .hero-dyk .dyk-kind { font-size: .68rem; letter-spacing: .1em; color: inherit; font-weight: 400; }
.hero-dyk .dyk-kind { border: 0; padding: 0; text-transform: uppercase; }
.hero-dyk .dyk-kind::before { content: "\00a0·\00a0"; }
.hero-dyk .dyk-body { min-height: 0; }
.hero-dyk .dyk-text { font-family: var(--display); font-size: 1.22rem; line-height: 1.35; color: inherit; }
.hero-dyk .dyk-hl { background: none; color: inherit; font-weight: 700; padding: 0; }
.hero-dyk .dyk-source, .hero-dyk .dyk-source a { font-size: .76rem; color: inherit; margin-top: 10px; }
.hero-dyk .gl-term { color: inherit; text-decoration-color: color-mix(in oklab, var(--on-hi) 60%, transparent); }
.hero-dyk .gl-term:hover, .hero-dyk .gl-term[aria-expanded="true"] { background: color-mix(in oklab, var(--on-hi) 18%, transparent); }
.hero-dyk .dyk-actions .btn { background: transparent; color: inherit; border-color: color-mix(in oklab, var(--on-hi) 45%, transparent); }
.hero-dyk .dyk-actions .btn.primary { background: var(--on-hi); color: var(--hi); border-color: var(--on-hi); }
.hero-dyk .dyk-actions .btn:focus-visible, .hero-dyk .gl-term:focus-visible { outline-color: var(--on-hi); }
@media (prefers-reduced-motion: reduce) { .hero-dyk.dyk { transform: none; } }

/* Start here: solid pastel blocks, every card its own colour (chosen 18 October 2026). */
.start-grid { gap: 14px; }
.start-card { border: 0; color: var(--on-fill); border-radius: var(--radius-lg); min-height: 170px; padding: 16px; gap: 6px; }
.start-card:nth-child(8n+1) { background: var(--fill-1); }
.start-card:nth-child(8n+2) { background: var(--fill-2); }
.start-card:nth-child(8n+3) { background: var(--fill-3); }
.start-card:nth-child(8n+4) { background: var(--fill-4); }
.start-card:nth-child(8n+5) { background: var(--fill-5); }
.start-card:nth-child(8n+6) { background: var(--fill-6); }
.start-card:nth-child(8n+7) { background: var(--fill-7); }
.start-card:nth-child(8n+8) { background: var(--fill-8); }
.start-card h3 { font-size: 1.35rem; }
.start-card p { font-size: .86rem; }
.start-card p, .start-kicker, .start-go { color: var(--on-fill); }
.start-kicker { font-size: .66rem; }
.start-go { font-size: .84rem; margin-top: 4px; }
.start-card:hover, .start-card:focus-visible { border: 0; }

/* Scheme of the week and scheme portraits. */
.sow-card { padding: 18px; }
.sow-title { font-size: 1.45rem; }
.pt-split { height: 28px; border-radius: 999px; }
.pt-story, .find-story { background: var(--fill-2); color: var(--on-fill); border-color: transparent; border-radius: var(--radius); padding: 14px 16px; }
.pt-story .pt-src, .find-story .pt-src { color: var(--on-fill); opacity: .75; }
.pt-k { font-size: .64rem; }
.pt-v { font-weight: 600; font-size: .92rem; }

/* ---------- Page heads ---------- */

.cp-head { border-bottom: 0; }
.cp-head h1, .in-head h1, .st-head h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: .98; }
.cp-head .lede, .in-head .lede, .st-head .lede { font-size: 1.02rem; }
.cp-crumbs { font-size: .8rem; }
.cp-sec > h2 { font-size: 1.55rem; }
.cp-sec > .sub { font-size: .88rem; }
.oc-stats { gap: 14px; }
.oc-stats div { background: var(--surface); border-radius: var(--radius); padding: 10px 14px; }
.oc-stats dd { color: var(--ink); font-size: 2.1rem; line-height: 1; }
.oc-stats dt { font-family: var(--body); font-size: .74rem; letter-spacing: 0; text-transform: none; margin-top: 4px; }
.oc-eqf { background: var(--sunken); color: var(--ink); }

/* ---------- Learner path: separate colour blocks with arrows ---------- */

.lp-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-step, .lp-step + .lp-step { border: 0; border-radius: var(--radius-lg); padding: 16px; gap: 6px; min-height: 170px; color: var(--on-fill); }
.lp-step:first-child, .lp-step:last-child { border-radius: var(--radius-lg); }
.lp-step:nth-child(1) { background: var(--fill-1); }
.lp-step:nth-child(2) { background: var(--fill-2); }
.lp-step:nth-child(3) { background: var(--fill-3); }
.lp-step.lp-then, .lp-step:nth-child(4) { background: var(--fill-4); }
.lp-step:not(:last-child)::after { content: "→"; right: -14px; top: 18px; width: 12px; height: auto; background: none; border: 0; transform: none;
  text-align: center; color: var(--muted); font-weight: 700; line-height: 1.55; }
.lp-k { font-size: .64rem; color: var(--on-fill); }
.lp-big { font-size: 1.9rem; line-height: 1.1; color: var(--on-fill); }
.lp-step p { font-size: .84rem; color: var(--on-fill); line-height: 1.55; }
.lp-split { height: 22px; border-radius: 999px; background: color-mix(in oklab, var(--surface) 70%, transparent); margin-top: 0; }
.lp-work { background: var(--accent); display: flex; align-items: center; }
.lp-work::before { content: "Company"; padding: 0 10px; font-size: .68rem; font-weight: 700; color: var(--on-accent); white-space: nowrap; overflow: hidden; }
.lp-split-k { display: none; }
.lp-chip { justify-self: start; align-self: start; font-size: .72rem; font-weight: 600; background: var(--surface); color: var(--ink); padding: 2px 9px; border-radius: 999px; }
.lp-then .lp-k-then { margin-bottom: 0; }
.lp-branches { gap: 8px; }
.lp-branch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; background: none; border-radius: 0; padding: 8px 0 0;
  border-top: 1px solid color-mix(in oklab, var(--on-fill) 20%, transparent); }
.lp-branch:first-child { border-top: 0; padding-top: 0; }
.lp-branch .lp-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-branch .lp-big { font-size: 1.9rem; color: var(--on-fill); }
.lp-branch p, .lp-branch .lp-big + p { grid-column: auto; color: var(--on-fill); }
.lp-branch a { color: inherit; }
@media (max-width: 860px) {
  .lp-steps { grid-template-columns: 1fr; gap: 16px; }
  .lp-step { min-height: 0; }
  .lp-step:not(:last-child)::after { content: "↓"; right: auto; left: 22px; top: auto; bottom: -21px; }
}

/* ---------- Stories: the active step lifts in colour ---------- */

.st-js .st-step p { border-color: transparent; border-radius: var(--radius-lg); }
.st-js .st-step.is-active p { background: var(--fill-2); color: var(--on-fill); border-color: transparent; }
.st-js .st-step.is-active strong { color: var(--on-fill); }

/* ---------- Layout stability ----------
   Most pages build their content with JavaScript after the first paint. Until then the main area
   reserves a screen's height, so the footer starts below the fold instead of being pushed down
   (Cedefop Daily has no .site-foot, so this never reaches it). On one-column screens the "Did you
   know?" card gets its usual height before its fact arrives. Insight charts reserve their height
   in the page (render_insights.chart_height). */
main:has(~ .site-foot) { min-height: 100vh; }
@media (max-width: 900px) { .hero-dyk:empty { display: block; min-height: 250px; } }
/* Rail counts filled in by script keep their line. */
.rail .hint:empty::before { content: "\00a0"; }
/* Explorer on one-column screens: the filters (150–1,300 px, by dataset) sit above the results, so
   the results stay invisible until explore.js has drawn the filters and marked the page ready. */
@media (max-width: 900px) { main.explore:has(#filters):not([data-ready]) > section { visibility: hidden; } }
