.practice-lesson { background: var(--h-bg); }
.pl-mosaic, .pl-ledger { display: grid; align-content: center; min-width: 0; margin: 0; padding: clamp(1.25rem, 5vw, 3.5rem); }
.pl-mosaic { color: #212f3d; background: #e5e9e7; }
.pl-mosaic > div { max-width: 22rem; margin: auto; }
.pl-mosaic table { border-spacing: 2px; width: 100%; table-layout: fixed; }
.pl-mosaic caption, .pl-ledger figcaption { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 650; line-height: 1.12; text-align: start; }
.pl-mosaic caption { padding-block: .3rem .8rem; }
.pl-mosaic td { padding: .55rem; text-align: center; font: 650 1rem/1.3 monospace; }
.pl-mosaic .pl-ink-0 { background: #f5eedf; color: #263342; }
.pl-mosaic .pl-ink-1 { background: #24577a; color: #fff; }
.pl-mosaic .pl-ink-2 { background: #c45f43; color: #160901; }
.pl-mosaic .pl-ink-3 { background: #263342; color: #fff; }
.pl-mosaic p { max-width: 33ch; margin: .65rem 0 0; }
.pl-ledger { color: #e9efdc; background: #243f39; }
.pl-ledger figcaption { font-family: Georgia, serif; }
.pl-ledger time, .pl-ledger dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-ledger time { margin: .45rem 0 .75rem; }
.pl-ledger dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; border-block-start: 2px solid; }
.pl-ledger dt, .pl-ledger dd { border-block-end: 1px solid #81978e; padding: .7rem 0; margin: 0; }
.pl-ledger dt { padding-inline-end: .5rem; }
.pl-ledger dd { text-align: end; font-family: ui-monospace, monospace; }
.pl-rainfall { background: #e2ecf2; color: #19384e; }
.pl-lockers { background: #ece4d8; color: #38342d; }
.pl-rainfall p, .pl-lockers p { margin: .5rem 0 1rem; }
.pl-rainfall time { margin: 0; }
[data-theme="dark"] .pl-rainfall { background: #24394a; color: #e1edf2; }
[data-theme="dark"] .pl-lockers { background: #34383a; color: #f4ebdc; }
.pl-bank-slip { display: grid; align-content: center; margin: 0; padding: clamp(1.45rem, 5vw, 4rem); background: #f6f0de; color: #263633; border-inline-start: .5rem solid #387c72; }
.pl-bank-slip figcaption { max-width: 18ch; font: 650 clamp(1.45rem, 2.7vw, 2.3rem)/1.12 'Space Grotesk', sans-serif; }
.pl-bank-slip dl { border-block-start: 1px solid #71827b; margin: 1.4rem 0 0; }
.pl-bank-slip dt { color: #40584f; margin-top: .65rem; }
.pl-bank-slip dd { margin: .1rem 0 .7rem; font-size: 1.35rem; font-weight: 650; }
.pl-share { max-width: 42rem; margin-top: 2rem; border-top: 1px solid var(--h-line); }
.pl-share summary { width: fit-content; padding-block: .8rem; cursor: pointer; font-weight: 650; }
.pl-share label { display: block; margin: .4rem 0; color: var(--h-muted); }
.pl-share-controls { display: flex; gap: .6rem; flex-wrap: wrap; }
.pl-share-controls input { flex: 1 1 16rem; min-width: 0; }
.pl-share-controls input, .pl-share-controls button { min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--h-line); border-radius: .35rem; background: var(--h-panel); color: var(--h-text); font: inherit; }
.pl-share-controls button { cursor: pointer; font-weight: 650; }
.pl-share :focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }
#practice-share-status { margin: .6rem 0; }
.pl-radio-guide {
  display: grid; align-content: center; min-inline-size: 0; margin: 0; padding: clamp(1.3rem, 4vw, 3.5rem);
  background: #192d29; color: #f4f6ec; border-block-start: .35rem solid #b4d28e;
}
.pl-radio-guide figcaption { font: 650 clamp(1.3rem, 2.8vw, 2.35rem)/1.15 'Space Grotesk', sans-serif; }
.pl-radio-guide ol { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.pl-radio-guide li { display: flex; gap: 1.2rem; align-items: baseline; border-block-start: 1px solid #57736a; padding-block: .75rem; }
.pl-radio-guide time { color: #d8edb9; font: 650 clamp(1.4rem, 3vw, 2.15rem)/1.1 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.pl-departures {
  display: grid; align-content: center; min-width: 0; padding: clamp(1.1rem, 4vw, 3.5rem);
  background: #103445; color: #f4f8f9;
}
.pl-departures table { width: 100%; border-collapse: collapse; text-align: start; }
.pl-departures caption { text-align: start; font-size: clamp(1.25rem, 2.6vw, 2.4rem); font-weight: 700; margin-bottom: 1.5rem; }
.pl-departures th, .pl-departures td { padding: .9rem .3rem; border-bottom: 1px solid #53717d; text-align: start; }
.pl-departures thead th { color: #a8d6db; text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; }
.pl-departures tbody th, .pl-departures time { font-family: ui-monospace, monospace; white-space: nowrap; }
.pl-departures time { color: #f9dc94; font-weight: 700; }
.pl-directory { display: grid; align-content: center; container-type: inline-size; min-width: 0; margin: 0; padding: clamp(1.25rem, 4vw, 3rem); }
.pl-directory figcaption { font-size: clamp(1.5rem, 3.5vw, 2.4rem); line-height: 1.15; text-wrap: balance; }
.pl-directory ul { list-style: none; padding: 0; margin: 1.3rem 0 0; border-block-start: 2px solid; }
.pl-directory li { display: grid; align-items: baseline; column-gap: .8rem; padding: .9rem 0; border-block-end: 1px solid; }
.pl-directory strong { min-width: 0; overflow-wrap: anywhere; }
.pl-mapSheets { background: #e2ebdf; color: #183d38; }
.pl-mapSheets figcaption { font-family: Georgia, serif; }
.pl-shiftBoard { background: #f7eaca; color: #452e15; }
.pl-mapSheets li, .pl-shiftBoard li { grid-template-columns: minmax(0, 1fr) max-content; }
.pl-mapSheets li span, .pl-shiftBoard time { font-variant-numeric: tabular-nums; }
[data-theme="dark"] .pl-mapSheets { background: #1c3330; color: #d7ebe0; }
[data-theme="dark"] .pl-shiftBoard { background: #342e24; color: #f4ddb5; }
.pl-circles { color: #482d3f; background: #f5e2d7; }
.pl-circles figcaption { font-family: Georgia, serif; }
.pl-circles li { grid-template-columns: minmax(0,1fr) auto; row-gap: .25rem; border-color: #c4a8ac; }
.pl-circles li strong { grid-column: 1 / -1; font-size: 1.13rem; }
.pl-circles li > span:last-child { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .pl-circles { color: #f6e9df; background: #372838; }
[data-theme="dark"] .pl-circles li { border-color: #796371; }
[data-theme="dark"] .pl-circles li > span:last-child { color: #f4c4aa; }
@container (min-width: 26rem) {
  .pl-circles li { grid-template-columns: minmax(0,1fr) 5.75rem max-content; }
  .pl-circles li strong { grid-column: auto; }
}
.pl-releases { background: #182c34; color: #e6eef0; }
.pl-releases figcaption { font-family: 'Space Grotesk', 'DM Sans', sans-serif; font-weight: 650; }
.pl-releases li { grid-template-columns: minmax(0,1fr) max-content; border-color: #566d72; }
.pl-releases code { color: #c4e3b3; font: 600 1rem/1.4 ui-monospace, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-postal-guide { display: grid; align-content: center; min-width: 0; padding: clamp(1rem, 4vw, 3rem); background: #f4ebd8; color: #263d36; }
.pl-postal-guide table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pl-postal-guide caption { padding-block: 1rem; border-block: 3px double #456351; font: 600 clamp(1.4rem, 2.4vw, 2rem)/1.15 Georgia, serif; text-align: start; }
.pl-postal-guide th, .pl-postal-guide td { border-bottom: 1px solid #b4ac95; padding: .8rem .35rem; text-align: start; overflow-wrap: anywhere; }
.pl-postal-guide thead th { font-size: .82rem; }
.pl-ctf-help { margin-top: 1.25rem; max-width: 48ch; }
.pl-ctf-help summary { width: fit-content; cursor: pointer; font-weight: 600; }
.pl-ctf-help summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.pl-ctf-help p { margin: .6rem 0 0; line-height: 1.6; }
.pl-mail-sample {
  --mail-ink: #293d35;
  --mail-rule: #9fae9f;
  display: grid;
  align-content: center;
  margin: 0;
  min-width: 0;
  padding: clamp(1.4rem, 4.5vw, 4rem);
  color: var(--mail-ink);
  background: #f4f3e9;
}
.pl-mail-sample figcaption { font: 600 1.15rem/1.4 'Space Grotesk', sans-serif; }
.pl-mail-sample dl { margin: 1rem 0 0; border-bottom: 1px solid var(--mail-rule); }
.pl-mail-sample dt { padding-top: .75rem; border-top: 1px solid var(--mail-rule); font-weight: 600; }
.pl-mail-sample dd { margin: .2rem 0 .8rem; font: 500 clamp(1rem, 1.8vw, 1.45rem)/1.45 'DM Sans', sans-serif; overflow-wrap: anywhere; }
[data-theme="dark"] .pl-mail-sample { --mail-ink: #e4ece0; --mail-rule: #707e71; background: #28372f; }
.pl-http-sample { margin: 0; padding: clamp(1.2rem, 5vw, 3.5rem); align-self: stretch; display: grid; align-content: center; background: var(--h-panel); }
.pl-http-sample figcaption { font: 650 1.2rem 'Space Grotesk', sans-serif; }
.pl-http-sample dl { margin: .85rem 0 0; }
.pl-http-sample dt { border-top: 1px solid var(--h-line); padding-top: .9rem; color: var(--h-muted); }
.pl-http-sample dd { margin: .2rem 0 .9rem; color: var(--h-accent); font-size: clamp(1.06rem, 3vw, 1.5rem); }
.pl-appointment-sample { margin:0; padding:clamp(1.6rem,5vw,4.5rem); align-self:stretch; display:grid; align-content:center; color:#492f39; background:#f9f2ea; }
.pl-appointment-sample figcaption { padding-bottom:.8rem; border-bottom:2px solid #8e5261; font:650 clamp(1.1rem,2vw,1.45rem)/1.25 'Space Grotesk',sans-serif; }
.pl-appointment-sample dl { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; gap:.4rem 1rem; margin:.75rem 0 0; }
.pl-appointment-sample dt { color:#654854; font-weight:550; }
.pl-appointment-sample dd { margin:0; font:600 clamp(2rem,4.5vw,3.5rem)/1.2 'Space Grotesk',sans-serif; font-variant-numeric:tabular-nums; letter-spacing:-.045em; }
.pl-appointment-sample code { font:inherit; }
[data-theme="dark"] .pl-appointment-sample { color:#f6e4d6; background:#32282f; }
[data-theme="dark"] .pl-appointment-sample figcaption { border-color:#c58a96; }
[data-theme="dark"] .pl-appointment-sample dt { color:#ddc1c9; }
.pl-credit { margin: 0 auto; width: min(1160px, calc(100% - 3.5rem)); padding-bottom: 1.5rem; font-size: .82rem; color: var(--h-muted); }
.pl-credit a { color: inherit; }
.pl-wrap, .practice-lesson .platform-top { width: min(1160px, calc(100% - 3.5rem)); }
.practice-lesson .platform-top { padding-inline: 0; }
.pl-wrap { margin: 0 auto; padding-bottom: clamp(3rem, 6vw, 6rem); }
.pl-skip { position: fixed; left: 1rem; top: -6rem; z-index: 5; padding: .7rem 1rem; background: var(--h-panel); }
.pl-skip:focus { top: .5rem; }
.pl-brief-jump:not([hidden]) { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; color: var(--h-accent); font-weight: 650; text-underline-offset: .2em; }
.pl-back { margin: 1rem 0 clamp(.9rem, 2.8vw, 2rem); }
.pl-back a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; font-size: .92rem; font-weight: 650; }
.pl-back a:hover, #practice-register:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl-hero { display: grid; grid-template-columns: 1.08fr 1fr; border-block: 1px solid var(--h-line); }
.pl-intro { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.8rem, 4.5vw, 4.1rem) clamp(1.2rem, 4vw, 3.5rem) clamp(1.8rem, 4.5vw, 4.1rem) 0; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin: 0 0 .85rem; font-weight: 650; color: var(--h-accent); }
#practice-level { padding-inline-start: 1rem; border-inline-start: 1px solid var(--h-line); color: var(--h-muted); font-weight: 500; }
.pl-intro h1, .pl-instructions h2 { font-family: 'Space Grotesk', 'DM Sans', sans-serif; letter-spacing: -.045em; text-wrap: balance; }
.pl-intro h1 { margin: 0; max-width: 15ch; font-size: clamp(2.6rem, 5.5vw, 5rem); line-height: 1; }
.pl-context { margin: 1.2rem 0 1.5rem; max-width: 50ch; font-size: clamp(1.03rem, 1.55vw, 1.2rem); line-height: 1.55; }
.pl-enter { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--h-line); }
#visita-reiniciada { display: none; }
#visita-reiniciada:target {
  display: block; scroll-margin-block-start: 6rem; margin: 0 0 1rem;
  border-inline-start: .2rem solid currentColor; padding-inline-start: .85rem; color: var(--h-text);
}
.practice-lesson .pl-action:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; min-height: 48px; padding: .62rem 1.1rem; border: 1px solid transparent; border-radius: .35rem; color: var(--h-bg); background: var(--h-accent); font: 700 1rem/1.4 'DM Sans', sans-serif; text-decoration: none; transition: transform .16s ease; }
.pl-action:hover { transform: translateY(-2px); }
.pl-action:active { transform: translateY(1px); }
.pl-action[aria-disabled=true] { cursor: progress; }
#practice-guest, #practice-status { margin: .65rem 0 0; font-size: .93rem; }
#practice-guest { color: var(--h-muted); }
#practice-status:empty { margin: 0; }
#practice-reload { margin-top: .6rem; padding: .55rem .8rem; background: transparent; color: var(--h-text); border: 1px solid var(--h-line); border-radius: .35rem; }
#practice-register { display: inline-block; font-weight: 650; text-underline-offset: .17em; }
.pl-cover { min-height: clamp(21rem, 32vw, 31rem); position: relative; overflow: hidden; background: var(--h-panel-alt); }
.pl-cover img { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; }
.pl-instructions { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 6vw, 6rem); padding-top: clamp(2.3rem, 5vw, 4.5rem); }
.pl-instructions h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); line-height: 1.1; margin: 0 0 .8rem; }
#practice-assignment, #practice-objectives p { margin: 0; color: var(--h-muted); font-size: 1.02rem; line-height: 1.55; }
#practice-objectives { padding: 0; margin: 0; list-style-position: outside; }
#practice-objectives li { margin: 0 0 1.05rem 1.6rem; padding-inline-start: .45rem; }
#practice-objectives li::marker { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--h-accent); }
#practice-objectives h3 { margin: 0 0 .2rem; font-size: 1.08rem; }
@media (max-width: 710px) {
  .pl-wrap, .practice-lesson .platform-top { width: calc(100% - 2.25rem); }
  .pl-hero, .pl-instructions { grid-template-columns: 1fr; }
  .pl-intro { padding-right: 0; }
  .pl-cover { min-height: 0; aspect-ratio: 2.2; }
  .pl-instructions { gap: 1.35rem; }
  .pl-back { margin-block: .35rem .65rem; }
}
/* Phones up to 400 px: the language, theme and account controls always have their own row below the wordmark, for
   visitors and for signed-in learners. The signed-in header is short enough to sit next to the wordmark, so when the
   session arrived the whole brief jumped up 45 px (CLS 0.17); now the row is the same before and after. */
@media (max-width: 400px) {
  .practice-lesson .platform-top > hackory-header { display: block; flex: 1 0 100%; min-height: 44px; }
  .practice-lesson .platform-top .platform-header-tools { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .pl-action { transition: none; } .pl-action:hover, .pl-action:active { transform: none; } }
.pl-clinic-slip {
  align-self: stretch; align-content: center; display: grid; margin: 0;
  padding: clamp(1.5rem, 4.4vw, 3.5rem); background: #e6f1f1; color: #183c45;
}
.pl-clinic-slip figcaption { border-bottom: 2px solid currentColor; padding-bottom: .8rem; font: 650 1.2rem/1.4 'Space Grotesk', sans-serif; }
.pl-clinic-slip dl { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .5rem 1rem; margin: 0; padding-block: 1.2rem; border-bottom: 1px dashed currentColor; }
.pl-clinic-slip dt { font-weight: 550; }
.pl-clinic-slip dd { margin: 0; font: 600 clamp(1.8rem, 4vw, 3rem)/1.15 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
[data-theme="dark"] .pl-clinic-slip { background: #20383c; color: #d9eded; }
/* CTF briefs: account actions for visitors in the first screen. */
.pl-hero-actions:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; margin-top: 1.4rem; }
.pl-hero-actions + .pl-brief-jump { margin-top: .4rem; }
.pl-hero-signin { display: inline-flex; align-items: center; min-height: 48px; padding: .62rem 1.1rem; border: 1px solid var(--h-line); border-radius: .35rem; color: var(--h-text); font-weight: 700; text-decoration: none; }
.pl-hero-signin:hover { border-color: var(--h-accent); color: var(--h-accent); }
.pl-hero-signin:focus-visible { outline: 3px solid var(--h-accent); outline-offset: 3px; }
/* While the brief shows its own "Crear cuenta", the header keeps the same link as a secondary button. */
.practice-lesson:has(#practice-hero-guest:not([hidden])) a.platform-signup { color: var(--h-text); background: transparent; border-color: var(--h-line); }
/* CTF briefs: the case file is defined where it first appears, and the Inspector guide has its own anchor. */
.pl-term { max-width: 50ch; margin: -.6rem 0 1.4rem; padding-inline-start: .85rem; border-inline-start: .2rem solid var(--h-accent); color: var(--h-text); font-size: .98rem; line-height: 1.55; }
.pl-inspector-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; margin-top: .75rem; color: var(--h-accent); font-weight: 650; text-underline-offset: .2em; }
.pl-inspector-link:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 3px; }
.pl-inspector { scroll-margin-block-start: 5rem; margin-top: clamp(2.3rem, 5vw, 4rem); padding: clamp(1.3rem, 3.5vw, 2.4rem); background: var(--h-panel); border: 1px solid var(--h-line); border-radius: .5rem; }
.pl-inspector:focus { outline: none; }
.pl-inspector:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 3px; }
.pl-inspector h2 { margin: 0 0 .6rem; font: 700 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 'Space Grotesk', 'DM Sans', sans-serif; letter-spacing: -.035em; }
.pl-inspector-lead { max-width: 66ch; margin: 0 0 1.3rem; color: var(--h-text); font-size: 1.02rem; line-height: 1.55; }
.pl-inspector-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .9rem 1.6rem; margin: 0; padding: 0; list-style: none; counter-reset: inspector; }
.pl-inspector-steps li { counter-increment: inspector; min-width: 0; padding-top: .7rem; border-top: 2px solid var(--h-accent); }
.pl-inspector-steps h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.pl-inspector-steps h3::before { content: counter(inspector) '. '; color: var(--h-accent); }
.pl-inspector-steps p { margin: 0; color: var(--h-muted); line-height: 1.55; overflow-wrap: anywhere; }
.pl-inspector-env { max-width: 70ch; margin: 1.4rem 0 0; padding: .8rem 1rem; border: 1px dashed var(--h-line); border-radius: .4rem; color: var(--h-text); font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
/* «Ir a la consigna» and «Releer consigna» land with a little air above the heading. */
#practice-objective-title { scroll-margin-block-start: 1rem; }

/* Previews of the Maple Bakery and Cobalt Robotics briefs: two columns and each site's colours. */
.pl-bakeryShowcase, .pl-kitCatalog { background: #fbf5ea; color: #2f1f14; }
.pl-kitCatalog { background: #eef3fb; color: #0f1b2d; }
.pl-bakeryShowcase li, .pl-kitCatalog li { grid-template-columns: minmax(0, 1fr) max-content; }
[data-theme="dark"] .pl-bakeryShowcase { background: #2f241c; color: #f6eadb; }
[data-theme="dark"] .pl-kitCatalog { background: #152238; color: #e8eefb; }

/* Previews of the Brightside Workshops and Sunline Rentals briefs. */
.pl-workshops { background: #fbf6ef; color: #2b1d1a; }
.pl-workshops li { grid-template-columns: minmax(0, 1fr) auto; row-gap: .25rem; }
.pl-workshops li strong { grid-column: 1 / -1; font-size: 1.13rem; }
.pl-workshops li > span:last-child { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.pl-bikes { background: #fffaf0; color: #13293d; }
.pl-bikes li { grid-template-columns: minmax(0, 1fr) max-content; }
[data-theme="dark"] .pl-workshops { background: #2a201d; color: #f7ece4; }
[data-theme="dark"] .pl-bikes { background: #182c3a; color: #eef5f2; }

