/* The hands-on activities library (activities/, built by scripts/build-activities.mjs from content-src/activities.json).
   On screen: the activity page, its safety box and the sheet in a dashed frame. In print: only the sheet, on one A4
   page, with no menus, header, footer, breadcrumbs, buttons or adverts, in plain black on white. */
.act-facts { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 6px 0 14px; padding: 0; }
.act-facts > div { padding: 8px 14px; border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--line); }
.act-facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mist); }
.act-facts dd { margin: 2px 0 0; font-weight: 600; }
.act-safety { margin: 22px 0; padding: 16px 18px; border-radius: 16px; background: #fff7ed; box-shadow: inset 0 0 0 2px #f59e0b; color: #111; }
.act-safety h2 { margin-top: 0; font-size: 1.2rem; }
.act-safety ul { margin: 0 0 8px; padding-left: 22px; line-height: 1.55; }
.act-safety p { margin: 8px 0 0; font-size: .95rem; }
.act-learn, .act-need, .act-method, .act-ext { line-height: 1.6; }
.act-method li { margin-bottom: 6px; }
.act-jump { margin: 12px 0 8px; }
.act-topic { margin-top: 18px; }
.act-card .cx-meta { margin-top: auto; }
.act-scroll { overflow-x: auto; }
.act-list { width: 100%; border-collapse: collapse; font-size: .95rem; }
.act-list th, .act-list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* The sheet */
.act-sheet { border: 2px dashed var(--line); border-radius: 16px; padding: 18px; background: #fff; margin: 14px 0; color: #111; }
.act-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.act-head h2 { margin: 0; font-size: 1.35rem; }
.act-site { font-size: .85rem; color: #555; }
.act-meta { margin: 6px 0 8px; font-size: .95rem; }
.act-fields { display: grid; grid-template-columns: 2fr 1fr; gap: 10px 22px; margin: 4px 0 6px; }
.act-field { display: flex; align-items: flex-end; gap: 8px; font-size: .92rem; }
.act-line { display: block; flex: 1; min-width: 40px; min-height: 1.5em; border-bottom: 1px solid #111; }
.act-sheet h3 { font-size: 1.02rem; margin: 12px 0 5px; }
.act-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.act-sheet ul, .act-sheet ol { margin: 0; padding-left: 20px; font-size: .95rem; line-height: 1.45; }
.act-sheet li { margin: 0 0 3px; }
.act-safe { border-left: 3px solid #111; padding-left: 12px; }
.act-table { width: 100%; border-collapse: collapse; margin: 4px 0 6px; font-size: .92rem; }
.act-table th, .act-table td { border: 1.5px solid #111; padding: 6px 8px; text-align: left; vertical-align: top; }
.act-table td { height: 30px; }
.act-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 4px 0 6px; }
.act-box { border: 1.5px solid #111; border-radius: 6px; min-height: 110px; padding: 6px 8px; font-size: .9rem; }
.act-qs li { margin-bottom: 6px; }
.act-qs .act-line { margin-top: 2px; }
.act-foot { margin: 10px 0 0; font-size: .8rem; color: #555; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .act-sheet { padding: 14px 12px; }
  .act-cols, .act-fields { grid-template-columns: minmax(0, 1fr); }
  .act-safe { border-left: 0; padding-left: 0; margin-top: 8px; }
  .act-table { font-size: .84rem; }
  .act-table th, .act-table td { padding: 5px; }
  .act-scroll .act-list { min-width: 560px; }
  .act-foot { text-align: left; }
}

@media print {
  @page { size: A4; margin: 10mm; }
  html, body { background: #fff !important; background-image: none !important; color: #000 !important; margin: 0 !important; padding: 0 !important; }
  /* Only the sheet prints: everything outside <main> (header, footer, menus, the news strip, pop-ups and guides) and
     everything in <main> but the sheet (breadcrumbs, Back button, buttons, the page text, advert slots). */
  body > *:not(main) { display: none !important; }
  .site-header, .site-footer, nav, .crumbs, .back-bar, .ticker-region, .ticker, .ad-slot, .ad-inline, ins.adsbygoogle, .acct-bar, .to-top { display: none !important; }
  main, main.wrap { margin: 0 !important; padding: 0 !important; max-width: none !important; width: auto !important; }
  main > *:not(.act-page) { display: none !important; }
  .act-page { max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .act-page > *:not(.act-sheet) { display: none !important; }
  .act-sheet { border: 0; border-radius: 0; padding: 0; margin: 0; font-size: 9.6pt; line-height: 1.3; color: #000; }
  .act-sheet a { color: #000; text-decoration: none; }
  .act-head h2 { font-size: 15pt; }
  .act-site, .act-foot { color: #000; font-size: 8.5pt; }
  .act-meta { margin: 3px 0 4px; font-size: 9.6pt; }
  .act-fields { margin: 2px 0 2px; gap: 4px 18px; }
  .act-field { font-size: 9.6pt; }
  .act-line { min-height: 1.3em; }
  .act-sheet h3 { font-size: 10.5pt; margin: 6px 0 2px; }
  .act-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .act-safe { border-left: 2px solid #000; padding-left: 8px; margin-top: 0; }
  .act-sheet ul, .act-sheet ol { padding-left: 16px; font-size: 9.3pt; line-height: 1.3; }
  .act-sheet li { margin: 0 0 1px; }
  .act-table { font-size: 9pt; margin: 2px 0 3px; }
  .act-table th, .act-table td { padding: 2px 5px; border-width: 1px; }
  .act-table td { height: 6.4mm; }
  .act-boxes { grid-template-columns: repeat(auto-fit, minmax(55mm, 1fr)); gap: 3mm; }
  .act-box { min-height: 30mm; border-width: 1px; font-size: 9pt; }
  .act-qs li { margin-bottom: 2px; }
  .act-foot { margin-top: 4px; }
  .act-sheet, .act-table, .act-cols { break-inside: avoid; }
}
