/* ============================================
   PAGE: THE AI LITERACY PERIODIC TABLE (/ai-literacy-periodic-table/)
   inc/literacy-table.php draws the table; patterns/ai-literacy-periodic-table.php the page around it.
   Families take the campaign's strand colours, with "How AI works" in ink. Tiles carry the AiAd27 chamfer.
   Wide screens (and print) show the 18-column table with the detail panel in its gap; narrower screens show
   the elements family by family, under the panel.
   ============================================ */

.alpt-page {
  background: var(--a27-cream);
  color: var(--a27-ink);
  font-family: var(--s-font);
  line-height: 1.5;
}

.alpt-page :where(h1, h2, h3) {
  margin: 0;
  color: inherit;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

.alpt-page :where(p) {
  margin: 0 0 1rem;
}

.alpt-page [id],
.alpt-panel,
.alpt-grid {
  scroll-margin-top: 6.5rem;
}

.alpt-page :where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--a27-ink);
  outline-offset: 3px;
}

/* ---- Families ---- */
/* The original table's family colours: a pale tile, with the symbol and selection ring in the deep shade. */
.alpt-fam--foundations { --code: "F"; --fam: #E3E8EF; --fam-fg: var(--a27-ink); --fam-deep: #334155; --fam-ring: #334155; }
.alpt-fam--generative { --code: "G"; --fam: #EEE6FF; --fam-fg: var(--a27-ink); --fam-deep: #6D28D9; --fam-ring: #6D28D9; }
.alpt-fam--predictive { --code: "P"; --fam: #DFE9FF; --fam-fg: var(--a27-ink); --fam-deep: #1D4ED8; --fam-ring: #1D4ED8; }
.alpt-fam--agents { --code: "A"; --fam: #FFEDD5; --fam-fg: var(--a27-ink); --fam-deep: #B45309; --fam-ring: #B45309; }
.alpt-fam--automation { --code: "W"; --fam: #D5F2EC; --fam-fg: var(--a27-ink); --fam-deep: #0F766E; --fam-ring: #0F766E; }
.alpt-fam--governance { --code: "E"; --fam: #FFE1E7; --fam-fg: var(--a27-ink); --fam-deep: #BE123C; --fam-ring: #BE123C; }
.alpt-fam--infra { --code: "I"; --fam: #E8F3D6; --fam-fg: var(--a27-ink); --fam-deep: #3F6212; --fam-ring: #3F6212; }

/* The AI Awareness Day themes, for "View by: AIAD themes": a pale tile in the theme's colour, with the symbol and
   selection ring in its deep shade. */
.alpt-th--safe,
.is-themes .alpt-tile[data-alpt-theme="safe"],
.is-themes .alpt-panel[data-alpt-theme="safe"] { --fam: color-mix(in srgb, var(--a27-safe) 26%, #FFFFFF); --fam-fg: var(--a27-ink); --fam-deep: var(--a27-safe-deep); --fam-ring: var(--a27-safe-deep); }
.alpt-th--smart,
.is-themes .alpt-tile[data-alpt-theme="smart"],
.is-themes .alpt-panel[data-alpt-theme="smart"] { --fam: color-mix(in srgb, var(--a27-smart) 26%, #FFFFFF); --fam-fg: var(--a27-ink); --fam-deep: var(--a27-smart-deep); --fam-ring: var(--a27-smart-deep); }
.alpt-th--creative,
.is-themes .alpt-tile[data-alpt-theme="creative"],
.is-themes .alpt-panel[data-alpt-theme="creative"] { --fam: color-mix(in srgb, var(--a27-creative) 26%, #FFFFFF); --fam-fg: var(--a27-ink); --fam-deep: var(--a27-creative-deep); --fam-ring: var(--a27-creative-deep); }
.alpt-th--responsible,
.is-themes .alpt-tile[data-alpt-theme="responsible"],
.is-themes .alpt-panel[data-alpt-theme="responsible"] { --fam: color-mix(in srgb, var(--a27-responsible) 26%, #FFFFFF); --fam-fg: var(--a27-ink); --fam-deep: var(--a27-responsible-deep); --fam-ring: var(--a27-responsible-deep); }
.alpt-th--future,
.is-themes .alpt-tile[data-alpt-theme="future"],
.is-themes .alpt-panel[data-alpt-theme="future"] { --fam: color-mix(in srgb, var(--a27-future) 26%, #FFFFFF); --fam-fg: var(--a27-ink); --fam-deep: var(--a27-future-deep); --fam-ring: var(--a27-future-deep); }

/* The eras, for "View by: Year": one ramp of their own, from pale sand for the oldest words to ink for the newest
   (whose symbols take the Future pink), so no era shares a colour with a family. */
.alpt-era--e1,
.is-years .alpt-tile[data-alpt-era="e1"],
.is-years .alpt-panel[data-alpt-era="e1"] { --fam: #F3EEE2; --fam-fg: var(--a27-ink); --fam-deep: #6B5B3E; --fam-ring: #6B5B3E; }
.alpt-era--e2,
.is-years .alpt-tile[data-alpt-era="e2"],
.is-years .alpt-panel[data-alpt-era="e2"] { --fam: #E8DFCC; --fam-fg: var(--a27-ink); --fam-deep: #5E4E33; --fam-ring: #5E4E33; }
.alpt-era--e3,
.is-years .alpt-tile[data-alpt-era="e3"],
.is-years .alpt-panel[data-alpt-era="e3"] { --fam: #D9CCB1; --fam-fg: var(--a27-ink); --fam-deep: #4F4029; --fam-ring: #4F4029; }
.alpt-era--e4,
.is-years .alpt-tile[data-alpt-era="e4"],
.is-years .alpt-panel[data-alpt-era="e4"] { --fam: #C4B393; --fam-fg: var(--a27-ink); --fam-deep: #3A2F1E; --fam-ring: #3A2F1E; }
.alpt-era--e5,
.is-years .alpt-tile[data-alpt-era="e5"],
.is-years .alpt-panel[data-alpt-era="e5"] { --fam: #6F624C; --fam-fg: var(--a27-cream); --fam-deep: #FFF3D6; --fam-ring: var(--a27-cream); }
.alpt-era--e6,
.is-years .alpt-tile[data-alpt-era="e6"],
.is-years .alpt-panel[data-alpt-era="e6"] { --fam: #4A423A; --fam-fg: var(--a27-cream); --fam-deep: #FFE3B0; --fam-ring: var(--a27-cream); }
.alpt-era--e7,
.is-years .alpt-tile[data-alpt-era="e7"],
.is-years .alpt-panel[data-alpt-era="e7"] { --fam: #231F20; --fam-fg: var(--a27-cream); --fam-deep: var(--a27-future); --fam-ring: var(--a27-cream); }

/* ---- Buttons ---- */
.alpt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 2px solid var(--a27-ink);
  border-radius: 0;
  background: transparent;
  color: var(--a27-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.alpt-btn:hover {
  background: var(--a27-ink);
  color: var(--a27-cream);
}

.alpt-btn--ink {
  background: var(--a27-ink);
  color: var(--a27-cream);
}

/* The outlined button: the default look, named so the markup says which it means. */
.alpt-btn--ghost {
  background: transparent;
}

.alpt-btn--ink:hover {
  background: var(--a27-safe-deep);
  border-color: var(--a27-safe-deep);
}

/* Every section on this page lines up with the table: the same width and the same left edge. */
.literacy-table-page main .container {
  width: min(100% - 2rem, 1680px);
}

/* ---- Introduction ---- */
.alpt-hero {
  /* The site header is fixed, so the band starts below it. */
  padding: 8.5rem 0 1.5rem;
}

.alpt-eyebrow {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.alpt-title {
  max-width: 14ch;
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
}

.alpt-lead {
  max-width: 44rem;
  margin: 1.25rem 0 0.75rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.35;
}

.alpt-intro {
  max-width: 44rem;
  color: var(--a27-dim);
}

/* Know the word, question it, act on it: the page's three learning outcomes, as numbered steps. */
.alpt-steps {
  counter-reset: alpt-step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  max-width: 60rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.alpt-step-item {
  counter-increment: alpt-step;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem 0.95rem;
  border-top: 4px solid var(--a27-ink);
  background: #FFFFFF;
}

.alpt-step-item:nth-child(1) { border-top-color: var(--a27-safe); }
.alpt-step-item:nth-child(2) { border-top-color: var(--a27-creative); }
.alpt-step-item:nth-child(3) { border-top-color: var(--a27-responsible); }

.alpt-step-item__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.alpt-step-item__title::before {
  content: counter(alpt-step) ". ";
}

.alpt-step-item__title a {
  color: inherit;
}

.alpt-step-item__text {
  font-size: 0.95rem;
  color: var(--a27-dim);
  line-height: 1.4;
}

/* AI Awareness Day itself, under the buttons. */
.alpt-day {
  max-width: 44rem;
  margin: 1.25rem 0 0 !important;
  padding-left: 0.85rem;
  border-left: 4px solid var(--a27-future);
  font-size: 0.95rem;
}

.alpt-day a {
  color: inherit;
  font-weight: 700;
}

.alpt-day__cta {
  white-space: nowrap;
}

/* Printing needs the script, so the button shows only when it has run. */
/* The search, filters and panel buttons need the script; the head marks the page .alpt-js before it paints. */
html:not(.alpt-js) [data-alpt-controls],
html:not(.alpt-js) [data-alpt-nav] {
  display: none;
}

html:not(.alpt-js) .alpt-actions a[href="#alpt-print"] {
  display: none;
}

.alpt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.alpt-jump {
  margin: 0.85rem 0 0 !important;
  font-size: 0.95rem;
  color: var(--a27-dim);
}

.alpt-jump a {
  color: var(--a27-ink);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* ---- The table ---- */
.alpt-table-wrap {
  padding: 0 0 3rem;
}

.alpt {
  width: min(100% - 2rem, 1680px);
  margin: 0 auto;
}

.alpt-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.alpt-controls[hidden] {
  display: none;
}

.alpt-search {
  display: grid;
  gap: 0.3rem;
  flex: 1 1 15rem;
  max-width: 22rem;
}

.alpt-search label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alpt-search input {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--a27-ink);
  border-radius: 0;
  background: #FFFFFF;
  color: var(--a27-ink);
  font: inherit;
  font-size: 1rem;
}

.alpt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 10 1 34rem;
}

.alpt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--a27-ink);
  border-radius: 0;
  background: transparent;
  color: var(--a27-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.alpt-chip__swatch {
  display: inline-block;
  flex: none;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--fam);
  box-shadow: inset 0 0 0 2px var(--fam-deep);
  clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%);
}

.alpt-chip__count {
  font-weight: 400;
  opacity: 0.75;
}

.alpt-chip[aria-pressed="true"] {
  background: var(--a27-ink);
  color: var(--a27-cream);
}

.alpt-chip[aria-pressed="true"] .alpt-chip__count {
  opacity: 0.85;
}

.alpt-chip--all {
  font-weight: 600;
}

.alpt-status {
  flex-basis: 100%;
  min-height: 1.5em;
  margin: -0.25rem 0 0;
  color: var(--a27-dim);
  font-size: 0.9rem;
}

.alpt-status:empty {
  display: none;
}

.alpt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 6px;
}

/* A tile: number, symbol, name. The top right corner is cut, as the brand's tiles are. */
.alpt-tile {
  --cut: clamp(9px, 0.9vw, 16px);
  order: var(--o);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.15rem;
  min-width: 0;
  min-height: 5.25rem;
  padding: 0.4rem 0.45rem 0.45rem;
  background: var(--fam);
  color: var(--fam-fg);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: opacity 0.2s ease;
}

@media screen and (hover: hover) {
  .alpt-tile[data-alpt-el]:where(:hover):not(:where(.is-picked, .is-unfocused, [aria-current="true"])) {
    box-shadow: inset 0 0 0 2px var(--fam-ring);
  }
}

/* The chamfer clips an outline, so the focus and selected rings are drawn inside the tile. */
.alpt-page .alpt-tile:focus-visible,
.alpt-tile[aria-current="true"] {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--fam-ring), inset 0 0 0 5px var(--fam);
}

.alpt-tile[aria-current="true"] {
  box-shadow: inset 0 0 0 4px var(--fam-ring), inset 0 0 0 6px var(--fam);
}

/* Focus looks different from selection: a dashed line inside the ring, so you can tell which tile you're on. */
.alpt-page .alpt-tile:focus-visible {
  outline: 2px dashed var(--fam-ring);
  outline-offset: -10px;
}

.alpt-tile__n {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0.85;
}

/* On the dark Year colours the dimmed number would fall below 4.5:1. */
.is-years .alpt-tile[data-alpt-era="e5"] .alpt-tile__n,
.is-years .alpt-tile[data-alpt-era="e6"] .alpt-tile__n,
.is-years .alpt-tile[data-alpt-era="e7"] .alpt-tile__n {
  opacity: 1;
}

.alpt-tile__sym {
  color: var(--fam-deep);
  font-size: clamp(1.35rem, 2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* No overflow: hidden, so with larger text spacing (WCAG 1.4.12) a long name makes its tile taller instead of being cut off. */
.alpt-tile__name {
  font-size: clamp(0.6rem, 0.62vw, 0.78rem);
  font-weight: 600;
  line-height: 1.12;
  /* Long words carry soft hyphens (aiad_literacy_tile_name()), the same in every browser. */
  -webkit-hyphens: manual;
  hyphens: manual;
  overflow-wrap: break-word;
}

/* ---- The detail panel ---- */
.alpt-panel {
  order: -1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--a27-ink);
  background: #FFFFFF;
}

.alpt-panel__print {
  display: none;
}

.alpt-panel__tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(6rem, 22vw, 11rem);
  aspect-ratio: 1 / 1.1;
  padding: 0.6rem 0.7rem 0.7rem;
  background: var(--fam);
  color: var(--fam-fg);
  clip-path: polygon(0 0, calc(100% - 22%) 0, 100% 20%, 100% 100%, 0 100%);
}

.alpt-panel__n {
  font-size: 0.95rem;
  font-weight: 600;
}

.alpt-panel__sym {
  color: var(--fam-deep);
  font-size: clamp(2.6rem, 9vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.alpt-panel__tile-name {
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  font-weight: 600;
  line-height: 1.15;
}

.alpt-panel__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.alpt-panel__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
}

.alpt-panel__theme {
  padding: 0.2rem 0.55rem;
  background: var(--fam);
  color: var(--fam-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alpt-panel__family {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 0.2rem 0.55rem;
  background: var(--fam);
  color: var(--fam-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alpt-panel__title {
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
}

.alpt-panel__def {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.4;
}


.alpt-panel__nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.alpt-panel__nav[hidden] {
  display: none;
}

.alpt-panel__nav .alpt-btn {
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* Previous and Next sit at either end of the row, with the other buttons and the count between them. */
.alpt-panel__nav .alpt-step--prev {
  order: -1;
}

.alpt-panel__nav .alpt-step--next {
  order: 99;
}

.alpt-panel__count {
  order: 98;
  margin-left: auto;
  color: var(--a27-dim);
  font-size: 0.85rem;
}

/* ---- Key and family headings ---- */
.alpt-key {
  display: none;
}

.alpt-family-label {
  order: var(--o);
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 1rem 0 0.15rem;
  padding-top: 0.5rem;
  border-top: 4px solid var(--fam);
}

.alpt-family-label__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.alpt-family-label__about {
  color: var(--a27-dim);
  font-size: 0.9rem;
}

.alpt-footnote {
  display: none;
  margin: 1rem 0 0;
  color: var(--a27-dim);
  font-size: 0.9rem;
}

/* ---- The full table: wide screens and print ---- */
@media (min-width: 1200px), print {
  .alpt-grid {
    grid-template-columns: repeat(18, minmax(0, 1fr));
    /* Equal fr rows all take the tallest row's height, and the tiles stretch to fill them, so every tile on the
       table is the same size, beside the panel too. */
    grid-template-rows: repeat(8, minmax(4.6rem, 1fr)) 1.25rem repeat(3, minmax(4.6rem, 1fr));
  }

  .alpt-tile {
    order: 0;
    grid-row: var(--r);
    grid-column: var(--c);
    min-height: 0;
  }

  .alpt-panel {
    order: 0;
    grid-column: 3 / 13;
    grid-row: 1 / 4;
    margin: 0 0.5rem 0.5rem;
    padding: clamp(0.75rem, 1.2vw, 1.4rem);
    gap: 0.6rem clamp(1rem, 1.6vw, 1.75rem);
    grid-template-rows: minmax(0, 1fr) auto;
    /* The panel takes the height of the three rows it spans, rather than stretching them: the tiles stay the
       same size whatever the element says, and a long panel scrolls. */
    contain: size;
  }

  .alpt-panel__body {
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
    scrollbar-width: thin;
  }

  /* Two columns, so the definition and the issues it raises both show without scrolling: what it is and the
     question on the left, the issues and the benchmark on the right. */
  .alpt-panel__body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-content: start;
    gap: 0.45rem 1.25rem;
  }

  .alpt-panel__body > .alpt-panel__labels,
  .alpt-panel__body > .alpt-panel__title,
  .alpt-panel__body > .alpt-panel__links {
    grid-column: 1 / -1;
  }

  .alpt-panel__body > .alpt-panel__def {
    grid-column: 1;
    grid-row: 3;
  }

  .alpt-panel__body > .alpt-panel__talk {
    grid-column: 1;
    grid-row: 4;
    align-self: start;
  }

  .alpt-panel__body > .alpt-panel__issues {
    grid-column: 2;
    grid-row: 3 / span 2;
  }

  .alpt-panel__body > .alpt-panel__bench {
    grid-column: 2;
    grid-row: 5;
  }

  .alpt-panel__body > .alpt-panel__res {
    grid-column: 1;
    grid-row: 5;
  }

  /* An element with no issues: the definition takes the full width. */
  .alpt-panel__body:not(:has(.alpt-panel__issues:not([hidden]))) > .alpt-panel__def,
  .alpt-panel__body:not(:has(.alpt-panel__issues:not([hidden]))) > .alpt-panel__talk {
    grid-column: 1 / -1;
  }

  .alpt-panel__body:not(:has(.alpt-panel__issues:not([hidden]))) > .alpt-panel__res {
    grid-column: 1 / -1;
  }

  .alpt-panel__body:not(:has(.alpt-panel__issues:not([hidden]))) > .alpt-panel__bench {
    grid-column: 1 / -1;
    grid-row: 6;
  }

  .alpt-panel__body .alpt-panel__def {
    font-size: clamp(0.88rem, 0.95vw, 1.05rem);
    line-height: 1.4;
  }

  .alpt-panel__body .alpt-panel__title {
    font-size: clamp(1.35rem, 1.9vw, 2.1rem);
  }

  .alpt-panel__body .alpt-panel__talk {
    font-size: clamp(0.8rem, 0.85vw, 0.92rem);
  }

  .alpt-panel__body .alpt-issue {
    font-size: 0.72rem;
    padding: 0.15rem 0.4rem;
  }

  .alpt-panel__nav .alpt-btn {
    min-height: 2.3rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
  }

  .alpt-panel__tile {
    width: clamp(7rem, 8.5vw, 10rem);
  }

  .alpt-panel__tile {
    width: clamp(7.5rem, 10vw, 12rem);
    align-self: start;
  }

  .alpt-panel__sym {
    font-size: clamp(3rem, 4.6vw, 5.4rem);
  }

  .alpt-key {
    grid-column: 13 / 16; /* column 16 is Recursive Self-Improvement */
    grid-row: 1;
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    padding-right: 0.5rem;
  }

  .alpt-tile--key {
    --fam: #FFFFFF;
    --fam-fg: var(--a27-ink);
    flex: none;
    width: calc((100% - 4 * 6px) / 5 * 1.25);
    max-width: 6rem;
    outline: 2px dashed var(--a27-rule);
    outline-offset: -2px;
    clip-path: none;
  }

  .alpt-tile--key:hover {
    transform: none;
  }

  .alpt-key__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
    color: var(--a27-dim);
    font-size: clamp(0.68rem, 0.72vw, 0.85rem);
    line-height: 1.3;
  }

  .alpt-key__text p {
    margin: 0;
  }

  .alpt-key__text .alpt-key__title {
    color: var(--a27-ink);
    font-size: clamp(0.8rem, 0.85vw, 1rem);
    font-weight: 700;
  }

  .alpt-family-label {
    display: none;
  }

  /* The rows below the table are named on their left, as a periodic table's separate rows are. */
  .alpt-family-label.alpt-fam--governance,
  .alpt-family-label.alpt-fam--infra {
    grid-column: 1 / 4;
    grid-row: 10 / 12;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0 0.75rem 0 0;
    border: 0;
    text-align: right;
  }

  .alpt-family-label.alpt-fam--infra {
    grid-row: 12;
  }

  .alpt-family-label .alpt-family-label__name {
    color: var(--fam-deep);
  }

  .alpt-family-label .alpt-family-label__about {
    font-size: 0.8rem;
  }

  .alpt-footnote {
    display: block;
  }
}

/* Laptop widths: the tiles and panel are smaller, so their words are too. */
@media (min-width: 1200px) and (max-width: 1399px) {
  .alpt-grid {
    gap: 4px;
  }

  .alpt-tile {
    padding: 0.3rem 0.2rem 0.35rem 0.25rem;
  }

  .alpt-tile__name {
    font-size: 0.58rem;
  }

  .alpt-panel__title {
    font-size: 1.6rem;
  }

  .alpt-panel__def {
    font-size: 0.95rem;
  }
}

/* ---- Connections ---- */
.alpt-links-toggle__icon {
  position: relative;
  width: 0.95rem;
  height: 0.95rem;
  /* Three linked dots. */
  background:
    radial-gradient(circle at 20% 80%, currentColor 0 18%, transparent 20%),
    radial-gradient(circle at 80% 80%, currentColor 0 18%, transparent 20%),
    radial-gradient(circle at 50% 22%, currentColor 0 18%, transparent 20%),
    linear-gradient(currentColor, currentColor) 50% 80% / 60% 1.5px no-repeat;
}

.alpt-links-toggle[aria-pressed="true"] {
  background: var(--a27-safe);
  border-color: var(--a27-safe);
  color: var(--a27-ink);
}

.alpt-tile.is-linked {
  box-shadow: inset 0 0 0 3px var(--fam-deep);
  transform: translateY(-2px);
}

.alpt-tile.is-faded {
  opacity: 0.22;
}

.alpt-panel__links {
  max-width: 48rem;
}

.alpt-panel__links[hidden],
.alpt-panel__links-compounds[hidden] {
  display: none;
}

.alpt-panel__links-label {
  margin: 0 0 0.3rem;
  color: var(--a27-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alpt-panel__links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.alpt-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.2rem 0.45rem;
  border: 0;
  background: var(--fam);
  color: var(--a27-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.alpt-link:hover {
  box-shadow: inset 0 0 0 2px var(--fam-deep);
}

.alpt-link__sym {
  color: var(--fam-deep);
  font-weight: 700;
}

.alpt-panel__links-compounds {
  margin: 0.4rem 0 0;
  color: var(--a27-dim);
  font-size: 0.82rem;
}

/* ---- View by: Families or AIAD themes ---- */
.alpt-view {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  flex-basis: 100%;
}

.alpt-view__label {
  margin-right: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alpt-view__option {
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  border: 2px solid var(--a27-ink);
  border-radius: 0;
  background: transparent;
  color: var(--a27-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.alpt-view__option + .alpt-view__option {
  border-left: 0;
}

.alpt-view__option[aria-pressed="true"] {
  background: var(--a27-ink);
  color: var(--a27-cream);
}

/* Tablets and up: View by and the search share the top row, label then control, and the filter chips get the row
   below. */
@media (min-width: 768px) {
  .alpt-controls {
    align-items: center;
  }

  .alpt-view {
    flex: 0 0 auto;
  }

  .alpt-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 18rem;
    max-width: 26rem;
    margin-left: auto;
  }

  .alpt-search label {
    flex: none;
  }

  .alpt-search input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.5rem;
  }

  .alpt-controls .alpt-legend {
    flex-basis: 100%;
  }
}

/* On phones the label takes its own row and the three options share the next one, so none wraps on its own. */
@media (max-width: 599px) {
  .alpt-view__label {
    flex-basis: 100%;
    margin: 0 0 0.4rem;
  }

  .alpt-view__option {
    flex: 1 1 0;
    padding-inline: 0.5rem;
  }
}

/* Each view shows its own chips, key and (on phones) group labels. */
.alpt-legend--themes,
.alpt-key-theme,
.alpt-theme-label,
.alpt-legend--eras,
.alpt-key-year,
.alpt-era-label,
.alpt-timeline {
  display: none !important;
}

.is-years .alpt-legend--eras,
.is-years .alpt-timeline {
  display: flex !important;
}

.is-years .alpt-legend:not(.alpt-legend--eras),
.is-years .alpt-key-family {
  display: none !important;
}

.is-years .alpt-key-year {
  display: revert !important;
}

.is-years .alpt-family-label .alpt-family-label__name {
  color: var(--a27-ink);
}

/* The panel's "First used in" line. */
.alpt-panel__year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--a27-dim);
}

.is-years .alpt-panel__year {
  padding: 0.1rem 0.45rem;
  background: var(--fam);
  box-shadow: inset 0 0 0 2px var(--fam-deep);
  color: var(--fam-fg);
  font-weight: 700;
}

/* The Year view's slider. Words from after the chosen year fade back. */
.alpt-timeline {
  flex-direction: column;
  gap: 0.5rem;
  flex: 10 1 34rem;
}

.alpt-timeline__label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alpt-timeline__year {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.alpt-timeline__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.alpt-timeline__play {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 6.5rem;
  justify-content: center;
}

.alpt-timeline__play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.4rem 0 0.4rem 0.65rem;
  border-color: transparent transparent transparent currentColor;
}

.alpt-timeline__play.is-playing .alpt-timeline__play-icon {
  width: 0.65rem;
  height: 0.8rem;
  border: 0;
  border-left: 0.22rem solid currentColor;
  border-right: 0.22rem solid currentColor;
}

.alpt-timeline__range {
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  margin: 0;
  accent-color: var(--a27-ink);
  cursor: pointer;
}

.alpt-timeline__note {
  margin: 0 !important;
  font-size: 0.85rem;
  color: var(--a27-dim);
}

/* Words not yet in use: a pale hatched tile with grey text, still readable (4.5:1) and still clickable. */
@media screen {
  .is-years .alpt-tile.is-later {
    --fam: #FBFAF7;
    --fam-fg: #67615B;
    --fam-deep: #67615B;
    --fam-ring: #231F20;
    background-image: repeating-linear-gradient(135deg, transparent 0 7px, rgba(35, 31, 32, 0.07) 7px 8px);
  }
}

.is-years .alpt-tile {
  transition: opacity 0.35s ease, filter 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .is-years .alpt-tile {
    transition: none;
  }
}

.is-themes .alpt-legend--themes {
  display: flex !important;
}

.is-themes .alpt-legend:not(.alpt-legend--themes),
.is-themes .alpt-key-family {
  display: none !important;
}

.is-themes .alpt-key-theme {
  display: revert !important;
}

/* The rows below the table keep their family names; in the themes view they are plain ink. */
.is-themes .alpt-family-label .alpt-family-label__name {
  color: var(--a27-ink);
}

@media screen and (max-width: 1199px) {
  .is-themes .alpt-grid > .alpt-tile {
    order: var(--o2);
  }

  .is-themes .alpt-family-label:not(.alpt-theme-label) {
    display: none !important;
  }

  .is-themes .alpt-theme-label {
    display: flex !important;
    order: var(--o2);
  }

  /* On phones the Year view lists the words era by era, oldest first. */
  .is-years .alpt-grid > .alpt-tile {
    order: var(--o3);
  }

  .is-years .alpt-family-label:not(.alpt-era-label) {
    display: none !important;
  }

  .is-years .alpt-era-label {
    display: flex !important;
    order: var(--o3);
  }
}

/* ---- Guided mode: the table narrows to a few elements ---- */
.alpt-tile.is-unfocused {
  opacity: 0.12;
  cursor: not-allowed;
}

.alpt-tile.is-unfocused:hover {
  transform: none;
}

.is-focused .alpt-grid > .alpt-tile:not(.is-unfocused):not(.is-picked) {
  box-shadow: inset 0 0 0 3px var(--fam-deep);
}

.is-focused .alpt-family-label,
.is-focused .alpt-key {
  opacity: 0.25;
}

.alpt-lab__target {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--a27-safe);
}

.alpt-lab__target[hidden] {
  display: none;
}

.alpt-lab__target-text {
  flex: 1 1 18rem;
  margin: 0;
  font-size: 0.92rem;
}

.alpt-lab__target-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.alpt-compound__try {
  margin-top: 0.35rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
}

.alpt-lab__hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  background: var(--a27-safe);
  color: var(--a27-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

/* While a compound is being found, its own hint button sits in the target panel. */
.is-focused .alpt-lab__hint {
  display: none;
}

/* Hints: the area to look in lights up, then the one tile glows. */
.alpt-tile.is-hint-dim {
  opacity: 0.25;
}

.alpt-tile.is-hint-area {
  box-shadow: inset 0 0 0 3px var(--fam-deep);
}

.alpt-tile.is-hint-tile {
  box-shadow: inset 0 0 0 4px var(--a27-ink), inset 0 0 0 7px var(--a27-safe);
  animation: alpt-hint-glow 1.2s ease-in-out infinite;
}

@keyframes alpt-hint-glow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .alpt-tile.is-hint-tile {
    animation: none;
  }
}

/* ---- Compound lab ---- */
.alpt-lab-toggle__icon {
  width: 0.9rem;
  height: 1rem;
  background: var(--a27-safe);
  /* A flask: narrow neck, wide base. */
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 100%, 0 100%, 35% 35%);
}

/* Picked tiles lift, with a thick ink ring. */
.alpt-tile.is-picked {
  box-shadow: inset 0 0 0 4px var(--a27-ink), inset 0 0 0 6px var(--fam);
  transform: translateY(-3px);
}

html.alpt-lab-open body {
  padding-bottom: var(--alpt-lab-h, 0);
}

/* Anything scrolled to (the quiz, a linked card) stays clear of the challenge bar. */
html.alpt-lab-open {
  scroll-padding-bottom: calc(var(--alpt-lab-h, 0px) + 1rem);
}

.alpt-lab {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--a27-ink);
  color: var(--a27-cream);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  /* At high zoom or on a short screen the bar never covers more than half of it. */
  max-height: 50vh;
  max-height: 50dvh;
  overflow-y: auto;
}

.alpt-lab[hidden] {
  display: none;
}

.alpt-lab__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  width: min(100%, 1680px);
  margin: 0 auto;
}

.alpt-lab__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.alpt-lab__help {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.alpt-lab__slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 4.75rem));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alpt-lab__slots > li {
  margin: 0;
}

.alpt-lab__slot {
  --cut: 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 4.25rem;
  padding: 0.35rem 0.4rem;
  border: 0;
  background: var(--fam);
  color: var(--a27-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.alpt-lab__slot--empty {
  display: block;
  background: transparent;
  outline: 2px dashed rgba(255, 255, 255, 0.35);
  outline-offset: -2px;
  clip-path: none;
  cursor: default;
}

.alpt-lab__slot-sym {
  color: var(--fam-deep);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.alpt-lab__slot-name {
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.alpt-lab__slot:hover .alpt-lab__slot-name::before {
  content: "\00D7  ";
}

.alpt-lab__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.alpt-lab .alpt-btn {
  border-color: var(--a27-cream);
  color: var(--a27-cream);
}

.alpt-lab .alpt-btn:hover:not(:disabled),
.alpt-lab .alpt-btn--ink {
  background: var(--a27-cream);
  color: var(--a27-ink);
}

.alpt-lab .alpt-btn--ink:hover:not(:disabled) {
  background: var(--a27-safe);
  border-color: var(--a27-safe);
}

.alpt-lab .alpt-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.alpt-lab__msg {
  min-height: 1.4em;
  font-size: 0.95rem;
}

.alpt-lab__msg:empty {
  display: none;
}

.alpt-lab__msg a {
  color: var(--a27-safe);
  font-weight: 700;
}

.alpt-lab :where(a, button):focus-visible {
  outline: 3px solid var(--a27-safe);
  outline-offset: 2px;
}

/* Tablets: the slots and buttons share a row under the title. */
@media (min-width: 600px) and (max-width: 899px) {
  .alpt-lab__inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
  }

  .alpt-lab__head,
  .alpt-lab__msg {
    grid-column: 1 / -1;
  }
}

/* Phones: a shorter bar, so it covers less of the table. */
@media (max-width: 599px) {
  .alpt-lab__help {
    display: none;
  }

  .alpt-lab__slot {
    height: 3.6rem;
  }

  .alpt-lab .alpt-btn {
    min-height: 2.4rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.88rem;
  }

  .alpt-lab__msg {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
  }

  .alpt-view__option {
    white-space: nowrap;
    font-size: 0.85rem;
  }
}

@media (min-width: 900px) {
  .alpt-lab__inner {
    grid-template-columns: minmax(12rem, 1fr) auto auto;
    align-items: center;
    column-gap: 1.25rem;
  }

  .alpt-lab__msg {
    grid-column: 1 / -1;
    order: 6;
  }

  .alpt-lab__target {
    grid-column: 1 / -1;
    order: 5;
  }
}

/* ---- Compounds ---- */
.alpt-compounds {
  margin-top: 3rem;
}

.alpt-compounds__title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
}

.alpt-compounds__lead {
  max-width: 46rem;
  margin: 0.75rem 0 1rem;
  color: var(--a27-dim);
}

.alpt-compounds__locked-note {
  margin: -0.25rem 0 1rem;
  font-size: 0.9rem;
}

.alpt-compounds__locked-note {
  display: none;
}

.is-challenge .alpt-compounds__locked-note {
  display: block;
  padding: 0.5rem 0.75rem;
  background: var(--a27-ink);
  color: var(--a27-cream);
  font-weight: 600;
}

/* ---- Levels ---- */
.alpt-level--primary { --level: #15803D; --level-n: 1; }
.alpt-level--secondary { --level: #B45309; --level-n: 2; }
.alpt-level--further { --level: #B91C1C; --level-n: 3; }

/* One, two or three bars, like a signal meter. */
.alpt-level-mark {
  display: inline-block;
  flex: none;
  width: 0.85rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  background:
    linear-gradient(var(--level), var(--level)) 0 100% / 22% 40% no-repeat,
    linear-gradient(var(--l2, var(--a27-rule)), var(--l2, var(--a27-rule))) 50% 100% / 22% 70% no-repeat,
    linear-gradient(var(--l3, var(--a27-rule)), var(--l3, var(--a27-rule))) 100% 100% / 22% 100% no-repeat;
}

.alpt-level--secondary .alpt-level-mark,
.alpt-level--further .alpt-level-mark {
  --l2: var(--level);
}

.alpt-level--further .alpt-level-mark {
  --l3: var(--level);
}

.alpt-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.alpt-levels[hidden],
.alpt-compounds__more-wrap[hidden] {
  display: none;
}

.alpt-compounds__more-wrap {
  margin: 1rem 0 0;
  text-align: center;
}

.alpt-compound__level {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: var(--a27-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alpt-compound__found {
  padding: 0.2rem 0.45rem;
  background: var(--a27-ink);
  color: var(--a27-cream);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alpt-compound__found[hidden] {
  display: none;
}

.alpt-challenge__levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.alpt-challenge__level {
  --cut: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.85rem 1rem;
  border: 0;
  background: var(--a27-cream);
  color: var(--a27-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: transform 0.15s ease;
}

.alpt-challenge__level:hover {
  transform: translateY(-2px);
}

.alpt-challenge__level-name {
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.alpt-challenge__level-about {
  color: var(--a27-dim);
  font-size: 0.88rem;
  line-height: 1.35;
}

.alpt-challenge__level-count {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
}

.alpt-challenge__level--all {
  background: transparent;
  color: var(--a27-cream);
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
  clip-path: none;
}

.alpt-challenge__level--all .alpt-challenge__level-about {
  color: inherit;
  opacity: 0.75;
}

/* ---- The compound challenge ---- */
.alpt-challenge {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--a27-ink);
  color: var(--a27-cream);
  --cut: 22px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.alpt-challenge[hidden] {
  display: none;
}

.alpt-challenge__title {
  color: var(--a27-cream);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.alpt-challenge__lead {
  max-width: 44rem;
  margin: 0.6rem 0 1rem;
  opacity: 0.85;
}

.alpt-challenge__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1.1rem;
}

.alpt-challenge__progress {
  margin: 0;
  font-weight: 700;
}

.alpt-challenge .alpt-meter {
  background: rgba(255, 255, 255, 0.2);
}

.alpt-challenge .alpt-meter__fill {
  background: var(--a27-safe);
}

.alpt-challenge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.alpt-challenge .alpt-btn {
  border-color: var(--a27-cream);
  color: var(--a27-cream);
}

.alpt-challenge .alpt-btn:hover,
.alpt-challenge .alpt-btn--ink {
  background: var(--a27-cream);
  color: var(--a27-ink);
}

.alpt-challenge .alpt-btn--ink:hover {
  background: var(--a27-safe);
  border-color: var(--a27-safe);
}

.alpt-challenge .alpt-btn[hidden] {
  display: none;
}

.alpt-challenge .alpt-lab-toggle__icon {
  background: var(--a27-safe);
}

.alpt-challenge .alpt-btn--ink:hover .alpt-lab-toggle__icon {
  background: var(--a27-ink);
}

.alpt-challenge :where(a, button):focus-visible {
  outline: 3px solid var(--a27-safe);
  outline-offset: 2px;
}

.alpt-lab__count {
  white-space: nowrap;
  margin-left: 0.4rem;
  font-weight: 400;
  opacity: 0.75;
}

.alpt-meter {
  flex: 1 1 10rem;
  max-width: 20rem;
  height: 0.6rem;
  background: var(--a27-rule);
}

.alpt-meter__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--a27-ink);
  transition: width 0.4s ease;
}

.alpt-compounds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  /* Opening one card's details doesn't stretch the others in its row. */
  align-items: start;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Four across on larger screens, so the four-card preview fills one row. */
@media (min-width: 1100px) {
  .alpt-compounds__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.alpt-compound {
  --cut: 14px;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1rem;
  background: var(--a27-card, #FFFFFF);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.alpt-compound--volatile {
  box-shadow: inset 0 4px 0 #D97706;
}

.alpt-compound p {
  margin: 0;
}

/* Every compound shows, until a student takes the challenge: then the ones not yet discovered are hidden, with a clue. */
.alpt-compound__locked {
  display: none;
}

.alpt-compound[hidden] {
  display: none;
}

.has-lab.is-challenge .alpt-compound:not(.is-found) {
  background: transparent;
  box-shadow: none;
  outline: 2px dashed var(--a27-rule);
  outline-offset: -2px;
  clip-path: none;
}

.has-lab.is-challenge .alpt-compound:not(.is-found) .alpt-compound__body {
  display: none;
}

.has-lab.is-challenge .alpt-compound:not(.is-found) .alpt-compound__locked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-height: 9rem;
  color: var(--a27-dim);
}

.alpt-compound__q {
  color: var(--a27-ink);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.alpt-compound__locked-title {
  color: var(--a27-ink);
  font-weight: 700;
}

.alpt-compound__swatches {
  display: flex;
  gap: 0.3rem;
}

.alpt-compound__swatches .alpt-chip__swatch {
  width: 1.15rem;
  height: 1.15rem;
}

.alpt-compound__hint {
  font-size: 0.88rem;
  line-height: 1.4;
}

.alpt-compound__locked .alpt-compound__strand {
  margin-top: auto;
}

.alpt-compound__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}

.alpt-compound .alpt-compound__made {
  margin: 0.15rem 0 0.3rem;
}

/* The rest of a compound folds away, so the cards show just the name and what it is made from. */
.alpt-compound__more {
  margin-top: auto;
  border-top: 1px solid var(--a27-rule);
}

.alpt-compound__more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0 0.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.alpt-compound__more > summary::-webkit-details-marker {
  display: none;
}

.alpt-compound__more > summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.alpt-compound__more[open] > summary::after {
  content: "\2212";
}

.alpt-compound__more[open] > summary {
  margin-bottom: 0.5rem;
}

.alpt-compound__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.alpt-compound__made {
  color: var(--a27-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The elements a compound is made from: one slim row each, the symbol beside its full name, so long names stay on
   one line. */
.alpt-compound__formula {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 0.8rem;
  padding: 0;
  list-style: none;
}

.alpt-compound__el {
  --cut: 6px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.2rem 0.45rem 0.2rem 0.3rem;
  background: var(--fam);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.alpt-compound__el-sym {
  flex: none;
  width: 1.9rem;
  color: var(--fam-deep);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.alpt-compound__el-name {
  min-width: 0;
  color: var(--a27-ink);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.alpt-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.alpt-badge--stable {
  background: #DCFCE7;
  color: #166534;
}

.alpt-badge--volatile {
  background: #FEF3C7;
  color: #92400E;
}

.alpt-compounds__key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin: 0 0 0.75rem;
  color: var(--a27-dim);
  font-size: 0.9rem;
}

.alpt-compounds__key .alpt-badge--volatile {
  margin-left: 0.75rem;
}

/* The name, with its strand on the right of the same line. */
.alpt-compound__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.75rem;
  margin-bottom: 0.5rem;
}

.alpt-compound__head .alpt-compound__name,
.alpt-compound__head .alpt-compound__strand {
  margin-bottom: 0 !important;
}

.alpt-compound__head .alpt-compound__strand {
  flex: none;
}

.alpt-compound__name {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
}

.alpt-compound__strand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem !important;
  color: var(--a27-dim);
  font-size: 0.8rem;
  font-weight: 600;
}

.alpt-compound__strand::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  background: var(--strand, var(--a27-rule));
}

.alpt-strand--safe { --strand: var(--a27-safe); }
.alpt-strand--smart { --strand: var(--a27-smart); }
.alpt-strand--creative { --strand: var(--a27-creative); }
.alpt-strand--responsible { --strand: var(--a27-responsible); }
.alpt-strand--future { --strand: var(--a27-future); }

.alpt-compound__what {
  margin-bottom: 0.5rem !important;
  font-size: 0.8rem;
  line-height: 1.4;
}

.alpt-compound__facts {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.alpt-compound__facts dt {
  font-weight: 700;
}

.alpt-compound__facts dd {
  margin: 0.1rem 0 0;
}

.alpt-compound__debate {
  padding: 0.5rem 0.6rem;
  background: var(--a27-cream);
}

.alpt-compound__debate-label {
  color: var(--a27-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alpt-compound__debate-q {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.alpt-compound__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.alpt-challenge__teacher {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

.alpt-challenge .alpt-btn[aria-pressed="true"] {
  background: var(--a27-safe);
  border-color: var(--a27-safe);
  color: var(--a27-ink);
}

.alpt-compound.is-new {
  animation: alpt-discover 0.9s ease;
}

@keyframes alpt-discover {
  0% { transform: scale(0.94); box-shadow: 0 0 0 0 var(--a27-safe); }
  40% { transform: scale(1.03); box-shadow: 0 0 0 6px var(--a27-safe); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

/* ---- Issues each element raises ---- */
.alpt-panel__talk {
  max-width: 48rem;
  margin: 0;
  border-top: 1px solid var(--a27-rule);
  font-size: 0.9rem;
  line-height: 1.4;
}

.alpt-panel__talk > summary {
  padding: 0.55rem 0;
  cursor: pointer;
}

.alpt-panel__talk > summary strong {
  font-weight: 650;
}

.alpt-panel__talk-q {
  margin: 0 0 0.6rem;
}

.alpt-panel__talk[hidden],
.alpt-panel__issues[hidden],
.alpt-panel__issue[hidden] {
  display: none;
}

.alpt-panel__issues {
  max-width: 48rem;
}

.alpt-panel__issues-label {
  margin: 0 0 0.3rem;
  color: var(--a27-dim);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.alpt-panel__issues-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.alpt-issue {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.5rem;
  border: 0;
  background: var(--fam);
  color: var(--a27-ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.alpt-issue::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--fam-deep);
}

.alpt-issue:hover,
.alpt-issue[aria-expanded="true"] {
  box-shadow: inset 0 0 0 2px var(--fam-deep);
}

.alpt-issue[hidden] {
  display: none;
}

.alpt-issue--more {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--a27-rule);
  color: var(--a27-dim);
}

.alpt-issue--more::before {
  display: none;
}

.alpt-panel__issue {
  margin-top: 0.45rem;
  padding: 0.5rem 0.65rem;
  background: var(--fam);
  font-size: 0.85rem;
  line-height: 1.4;
}

.alpt-panel__issue p {
  margin: 0;
}

.alpt-panel__issue .alpt-panel__issue-talk {
  margin-top: 0.3rem;
}

.alpt-glossary__talk,
.alpt-glossary__issues {
  color: var(--a27-dim);
  font-size: 0.88rem;
}

.alpt-issues .alpt-glossary__issues a {
  color: inherit;
}

.alpt-panel__res {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
}

.alpt-panel__res[hidden] {
  display: none;
}

.alpt-panel__res a,
.alpt-panel__issue-res a,
.alpt-glossary__res a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.alpt-res__kind {
  color: var(--a27-dim);
  font-weight: 400;
}

.alpt-panel__issue .alpt-panel__issue-res {
  margin-top: 0.3rem;
  font-size: 0.8rem;
}

.alpt-glossary__res {
  color: var(--a27-dim);
  font-size: 0.88rem;
}

/* ---- Show to class: the board view ---- */
.alpt-board-btn__icon {
  width: 0.95rem;
  height: 0.7rem;
  border: 2px solid currentColor;
  /* A little screen. */
  box-shadow: 0 3px 0 -1px currentColor;
}

.alpt-compound__board {
  align-self: flex-start;
  min-height: 2.1rem;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.alpt-compound__board[hidden],
.alpt-compound__copy[hidden] {
  display: none;
}

/* Copy link sits beside Show to class, the same size. */
.alpt-compound__copy {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  min-height: 2.1rem;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
}

.alpt-board {
  position: fixed;
  inset: 0;
  z-index: 100000;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* "safe" keeps the top reachable when the board is taller than the screen (phones). */
  justify-content: safe center;
  gap: 3rem;
  overflow-y: auto;
  padding: 6vh 7vw;
  background: var(--a27-ink);
  color: var(--a27-cream);
}

.alpt-board[hidden] {
  display: none;
}

.alpt-board:focus {
  outline: none;
}

html.alpt-board-open {
  overflow: hidden;
}

.alpt-board__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem 4vw;
}

.alpt-board__tile {
  --cut: 2.2rem;
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(12rem, 22vw, 20rem);
  aspect-ratio: 1;
  padding: 1.4rem 1.5rem;
  background: var(--fam);
  color: var(--a27-ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.alpt-board__n {
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 600;
}

.alpt-board__sym {
  color: var(--fam-deep);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.alpt-board__tile-name {
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.alpt-board__text {
  flex: 1 1 26rem;
  min-width: 0;
}

.alpt-board .alpt-board__label {
  margin: 0 0 1rem;
  color: var(--a27-safe);
  font-size: clamp(0.85rem, 1.1vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.alpt-board .alpt-board__title {
  margin: 0 0 1.25rem;
  color: var(--a27-cream);
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.alpt-board .alpt-board__def,
.alpt-board .alpt-board__prompt {
  max-width: 30ch;
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.alpt-board .alpt-board__prompt {
  color: var(--a27-safe);
}

.alpt-board .alpt-board__talk {
  max-width: 40ch;
  margin: 2rem 0 0;
  padding-left: 1.1rem;
  border-left: 6px solid var(--a27-safe);
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  line-height: 1.35;
}

.alpt-board__talk-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--a27-safe);
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.alpt-board__formula {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.alpt-board__el {
  --cut: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: clamp(7rem, 11vw, 10rem);
  min-height: clamp(7rem, 11vw, 10rem);
  margin: 0;
  padding: 0.8rem 0.9rem;
  background: var(--fam);
  color: var(--a27-ink);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.alpt-board__el-sym {
  color: var(--fam-deep);
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.alpt-board__el-name {
  font-size: clamp(0.8rem, 1vw, 1rem);
  font-weight: 700;
  line-height: 1.15;
}

.alpt-board__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.alpt-board .alpt-board__btn {
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--a27-cream);
  border-radius: 0;
  background: transparent;
  color: var(--a27-cream);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.alpt-board .alpt-board__btn:hover,
.alpt-board .alpt-board__btn--close {
  background: var(--a27-safe);
  border-color: var(--a27-safe);
  color: var(--a27-ink);
}

.alpt-board .alpt-board__btn:focus-visible {
  outline: 3px solid var(--a27-cream);
  outline-offset: 3px;
}

@media print {
  .alpt-board,
  .alpt-board-btn {
    display: none !important;
  }
}

/* ---- Benchmark links ---- */
.alpt-panel__bench {
  margin: 0;
  font-size: 0.82rem;
}

.alpt-panel__bench-label {
  color: var(--a27-dim);
  font-weight: 700;
}

.alpt-panel__bench a,
.alpt-glossary__bench a,
.alpt-suggest__bench a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.alpt-glossary__bench {
  color: var(--a27-dim);
  font-size: 0.85rem;
}

/* ---- Suggest a new element ---- */
.alpt-suggest {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--a27-card, #FFFFFF);
}

@media (min-width: 900px) {
  .alpt-suggest {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: start;
  }
}

.alpt-suggest__title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.alpt-suggest__intro p {
  margin: 0 0 0.75rem;
}

.alpt-suggest__bench {
  color: var(--a27-dim);
  font-size: 0.92rem;
}

.alpt-suggest__form {
  display: grid;
  gap: 0.75rem;
}

.alpt-suggest__form[hidden] {
  display: none;
}

.alpt-suggest__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .alpt-suggest__row {
    grid-template-columns: 2fr 1fr 1.4fr;
  }

  .alpt-suggest__row:last-of-type {
    grid-template-columns: 2fr 1.4fr;
  }
}

.alpt-suggest__field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.alpt-suggest__field :where(input, select, textarea) {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.65rem;
  border: 2px solid var(--a27-ink);
  border-radius: 0;
  background: var(--a27-cream);
  color: var(--a27-ink);
  font: inherit;
  font-weight: 400;
  font-size: 0.95rem;
}

.alpt-suggest__field textarea {
  resize: vertical;
}

.alpt-suggest__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alpt-suggest__note {
  margin: 0;
  color: var(--a27-dim);
  font-size: 0.82rem;
}

.alpt-suggest__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.alpt-suggest__status {
  font-size: 0.9rem;
  font-weight: 600;
}

@media print {
  .alpt-suggest {
    display: none;
  }
}

/* ---- Every element, family by family ---- */
.alpt-glossary {
  margin-top: 3rem;
}

.alpt-glossary__title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
}

.alpt-glossary__lead {
  margin: 0.75rem 0 1.25rem;
  color: var(--a27-dim);
}

.alpt-glossary__family {
  border-top: 2px solid var(--a27-ink);
}

.alpt-glossary__family:last-of-type {
  border-bottom: 2px solid var(--a27-ink);
}

.alpt-glossary__family summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}

.alpt-glossary__family summary::-webkit-details-marker {
  display: none;
}

.alpt-glossary__family summary::after {
  content: "+";
  grid-column: 3;
  grid-row: 1;
  margin-left: auto;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.alpt-glossary__family[open] summary::after {
  content: "\2212";
}

.alpt-glossary__family summary .alpt-chip__swatch {
  width: 1.25rem;
  height: 1.25rem;
}

.alpt-glossary__family-name {
  font-size: 1.3rem;
  font-weight: 700;
}

.alpt-glossary__family-about {
  grid-column: 2 / 3;
  color: var(--a27-dim);
}

.alpt-glossary__family dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem 2rem;
  margin: 0 0 1.5rem;
}

.alpt-glossary__item dt {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}

.alpt-glossary__sym {
  flex: none;
  min-width: 2.2rem;
  padding: 0.1rem 0.3rem;
  background: var(--fam);
  color: var(--fam-fg);
  font-size: 0.9rem;
  text-align: center;
}

.alpt-glossary__n {
  margin-left: auto;
  color: var(--a27-dim);
  font-size: 0.8rem;
  font-weight: 600;
}

.alpt-glossary__item dd {
  margin: 0.4rem 0 0;
}

.alpt-glossary__item dd p {
  margin: 0 0 0.4rem;
}


.alpt-glossary__item:target dt,
.alpt-glossary__item:has(dt:target) dt {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--fam);
}

/* ---- Ways to use it in class ---- */
.alpt-classroom {
  padding: 3.5rem 0 5rem;
  background: var(--a27-card);
}

.alpt-section-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.alpt-section-lead {
  max-width: 44rem;
  margin: 1rem 0 2rem;
  font-size: 1.1rem;
}

/* ---- Display board help: questions and answers ---- */
.alpt-page .alpt-faq {
  max-width: 56rem;
  margin-top: 1.5rem;
  border-bottom: 2px solid var(--a27-ink);
}

.alpt-page .alpt-faq > * {
  margin-block: 0;
}

.alpt-faq__item {
  border-top: 2px solid var(--a27-ink);
}

.alpt-faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.alpt-faq__item > summary::-webkit-details-marker {
  display: none;
}

.alpt-faq__item > summary::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
}

.alpt-faq__item[open] > summary::after {
  content: "\2212";
}

.alpt-faq__item > p {
  max-width: 48rem;
  margin: 0 0 1.1rem;
  line-height: 1.55;
}

.alpt-faq__item a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.alpt-ideas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

/* The groups' flow layout spaces every block after the first; in a grid that pushes cards out of line. */
.alpt-page .alpt-ideas > *,
.alpt-page .alpt-audiences > * {
  margin-block: 0;
}

.alpt-idea {
  padding: 1.25rem 1.25rem 0.5rem;
  background: var(--a27-cream);
  border-top: 5px solid var(--a27-ink);
}

.alpt-idea h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.alpt-audiences {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.alpt-audience {
  padding: 1.25rem 1.25rem 0.5rem;
  background: var(--a27-ink);
  color: var(--a27-cream);
}

.alpt-audience h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .alpt-tile {
    transition: none;
  }

  .alpt-tile:hover,
  .alpt-tile.is-picked {
    transform: none;
  }

  .alpt-compound.is-new {
    animation: none;
  }

  .alpt-meter__fill {
    transition: none;
  }
}

/* ---- Print: the table as a poster ---- */
@media print {
  @page {
    size: A3 landscape;
    margin: 10mm;
  }

  body.literacy-table-page {
    background: #FFFFFF;
  }

  .literacy-table-page :where(.site-header, .site-footer, footer, .skip-link),
  .alpt-hero,
  .alpt-lab,
  .alpt-compounds,
  .alpt-challenge,
  .alpt-controls,
  .alpt-glossary,
  .alpt-classroom,
  .alpt-panel__tile,
  .alpt-panel__body,
  .alpt-panel__nav {
    display: none !important;
  }

  .alpt-page {
    background: #FFFFFF;
  }

  .alpt-page,
  .alpt-page * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .alpt-table-wrap {
    padding: 0;
  }

  .alpt {
    width: 100%;
  }

  /* All twelve rows and the footnote on one landscape page. */
  .alpt {
    zoom: 0.86;
  }

  .alpt-grid {
    grid-template-rows: repeat(8, minmax(0, 1fr)) 0.75rem repeat(3, minmax(0, 1fr));
  }

  .alpt-panel {
    display: block;
    border: 0;
    background: transparent;
    padding: 0 1rem;
  }

  .alpt-panel__print {
    display: block;
  }

  .alpt-panel__print-eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .alpt-panel__print-title {
    margin: 0 0 0.5rem;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  .alpt-panel__print-lead {
    max-width: 40rem;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
  }

  .alpt-panel__print-key {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.85rem;
    font-weight: 700;
  }

  .alpt-panel__print-key li {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .alpt-tile {
    break-inside: avoid;
    opacity: 1 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .alpt-tile__name {
    font-size: 0.62rem;
  }
}

/* On screen the glossary is browsable. Print always uses the full poster grid. */
.alpt-back-to-tiles { display: none; }
#alpt-explore { scroll-margin-top: 6rem; }
@media screen {
  .alpt .alpt-tile__name { font-size: .75rem; line-height: 1.2; overflow: visible; overflow-wrap: anywhere; }
  .alpt .is-excluded, .alpt.has-no-matches .alpt-grid,
  .alpt.is-filtered .alpt-family-label, .alpt.is-filtered .alpt-key,
  .alpt [data-alpt-clear-search][hidden] { display: none !important; }
  .alpt.is-filtered .alpt-grid { grid-template-columns: repeat(auto-fill,minmax(6.5rem,1fr)); grid-template-rows: auto; }
  .alpt.is-filtered .alpt-tile { grid-area: auto; min-height: 5rem; }
  .alpt.is-filtered .alpt-panel { grid-area: auto / 1 / auto / -1; order: -1; contain: none; }
}
@media screen and (max-width:1199px) {
  .alpt-js .alpt:not(.is-detail-open) .alpt-panel { display:none; }
  .alpt-js .is-detail-open .alpt-back-to-tiles { display:inline-flex; grid-column:1/-1; justify-self:start; }
}

@media screen {
  .alpt .alpt-panel__body { display:flex; flex-direction:column; gap:.55rem; }
  .alpt-panel__tile-name { overflow-wrap:anywhere; }
  .alpt-reader-notes {border-block-start:1px solid var(--a27-rule)}
  .alpt-reader-notes summary {cursor:pointer;font-weight:650;padding:.65rem 0}
  .alpt-reader-notes[open] > :not(summary):not([hidden]) {margin-block:.5rem}
}

/* ---- Buzzword check: a quiz panel. The title and score on the dark side, the question card on the light side,
   a ten-step progress bar, answers as lettered tiles, and right and wrong answers in green and red. ---- */
.alpt-quiz {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-block: 3rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--a27-ink);
  color: var(--a27-cream);
  box-shadow: 8px 8px 0 var(--a27-creative);
  scroll-margin-top: 6rem;
}

@media (min-width: 900px) {
  .alpt-quiz {
    grid-template-columns: minmax(16rem, 0.8fr) minmax(0, 2fr);
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

.alpt-quiz h2,
.alpt-quiz h3,
.alpt-quiz p {
  margin: 0;
}

.alpt-quiz__intro {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.alpt-quiz__eyebrow {
  align-self: flex-start;
  padding: 0.3rem 0.65rem;
  background: var(--a27-creative);
  color: var(--a27-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.alpt-quiz h2 {
  color: var(--a27-cream);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.alpt-quiz__lead {
  color: color-mix(in srgb, var(--a27-cream) 82%, transparent);
  font-size: 1.02rem;
  line-height: 1.45;
}

.alpt-quiz__scores {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin-top: auto !important;
  padding-top: 1rem;
}

.alpt-quiz__score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.alpt-quiz__score-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a27-creative);
}

.alpt-quiz [data-quiz-score] {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.alpt-quiz__best {
  color: color-mix(in srgb, var(--a27-cream) 75%, transparent);
  font-size: 0.9rem;
  font-weight: 600;
}

.alpt-quiz__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  background: var(--a27-cream);
  color: var(--a27-ink);
}

.alpt-quiz__top {
  display: grid;
  gap: 0.45rem;
}

.alpt-quiz__progress {
  color: var(--a27-creative-deep);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.alpt-quiz__bar {
  height: 8px;
  background: color-mix(in srgb, var(--a27-creative) 25%, #FFFFFF);
}

.alpt-quiz__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--a27-creative-deep);
  transition: width 0.3s ease;
}

.alpt-quiz__question {
  max-width: 48ch;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.alpt-quiz__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem;
  counter-reset: alpt-quiz;
}

.alpt-quiz__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.6rem 0.9rem 0.6rem 0.6rem;
  border: 2px solid var(--a27-ink);
  border-radius: 0;
  background: #FFFFFF;
  color: var(--a27-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  counter-increment: alpt-quiz;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* A, B, C badges. */
.alpt-quiz__option::before {
  content: counter(alpt-quiz, upper-alpha);
  flex: none;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  background: var(--a27-ink);
  color: var(--a27-cream);
  font-size: 0.9rem;
}

.alpt-quiz__option:hover:not([aria-disabled="true"]) {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--a27-creative-deep);
}

.alpt-quiz__option:focus-visible {
  outline: 3px solid var(--a27-creative-deep);
  outline-offset: 3px;
}

.alpt-quiz__option[aria-disabled="true"] {
  cursor: default;
}

.alpt-quiz__option.is-answer {
  border-color: var(--a27-responsible-deep);
  background: color-mix(in srgb, var(--a27-responsible) 30%, #FFFFFF);
}

.alpt-quiz__option.is-answer::before {
  content: "\2713";
  background: var(--a27-responsible-deep);
}

.alpt-quiz__option.is-wrong {
  border-color: #B91C1C;
  background: #FDE8E8;
}

.alpt-quiz__option.is-wrong::before {
  content: "\2717";
  background: #B91C1C;
}

.alpt-quiz__feedback {
  max-width: 65ch;
  line-height: 1.5;
}

.alpt-quiz__feedback.is-right,
.alpt-quiz__feedback.is-wrong {
  padding: 0.7rem 0.9rem;
  border-left: 4px solid var(--a27-responsible-deep);
  background: color-mix(in srgb, var(--a27-responsible) 18%, #FFFFFF);
}

.alpt-quiz__feedback.is-wrong {
  border-left-color: #B91C1C;
  background: #FDF0F0;
}

.alpt-quiz__next {
  align-self: flex-start;
}

/* The end of a round: the score takes the question's place. */
.alpt-quiz.is-done .alpt-quiz__question {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

@media (prefers-reduced-motion: reduce) {
  .alpt-quiz__option,
  .alpt-quiz__bar span {
    transition: none;
  }
}

.alpt-quiz [hidden],
.alpt-quiz[hidden] {
  display: none;
}

@media print { .alpt-quiz { display:none!important } }

.alpt-quiz-shortcut {display:inline-flex;align-items:center;justify-self:start;align-self:center;gap:.5rem;min-height:44px;padding:.45rem .85rem;background:#f1ebfa;color:#50288b;border-inline-start:4px solid #6d28d9;font-weight:700;text-underline-offset:.15em}

/* The poster always prints every word, whatever year the slider is on. */
@media print {
  .is-years .alpt-tile.is-later {
    opacity: 1;
    filter: none;
  }
}

/* ---- Element of the week: above the table, changing every Monday ---- */
.alpt-eotw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #FFFFFF;
  border-left: 6px solid var(--a27-smart);
}

.alpt-eotw__tile {
  --cut: 12px;
  flex: none;
  display: flex;
  align-items: flex-end;
  width: 4.5rem;
  height: 4.5rem;
  padding: 0.4rem 0.5rem;
  background: var(--fam);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}

.alpt-eotw__sym {
  color: var(--fam-deep);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.alpt-eotw__text {
  flex: 1 1 18rem;
  min-width: 0;
}

.alpt-eotw__text p {
  margin: 0 !important;
}

.alpt-eotw__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--a27-dim);
}

.alpt-eotw__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.alpt-eotw__talk {
  color: var(--a27-ink);
}

.alpt-eotw__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* The card takes its accent from the word's AIAD theme; the tile keeps its family colour. */
.alpt-eotw { --eotw-accent: var(--a27-future); }
.alpt-eotw--safe { --eotw-accent: var(--a27-safe); }
.alpt-eotw--smart { --eotw-accent: var(--a27-smart); }
.alpt-eotw--creative { --eotw-accent: var(--a27-creative); }
.alpt-eotw--responsible { --eotw-accent: var(--a27-responsible); }
.alpt-eotw--future { --eotw-accent: var(--a27-future); }

/* In the introduction: a weekly word taster. A dark card with a tilted sticker, the tile beside the word, the
   question as a quote and a hard pink shadow. Below the text on phones and tablets, beside the title on wide
   screens. The same card on another page (.alpt-away, the National Conversation) keeps its smaller size. */
:is(.alpt-hero, .alpt-away) .alpt-eotw {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem 1.1rem;
  margin: 1.75rem 0.5rem 0.5rem 0;
  padding: 1.4rem 1.4rem 1.25rem;
  background: var(--a27-ink);
  color: var(--a27-cream);
  border: 0;
  box-shadow: 8px 8px 0 var(--eotw-accent);
}

:is(.alpt-hero, .alpt-away) .alpt-eotw__sticker {
  position: absolute;
  top: -0.85rem;
  right: 1.1rem;
  padding: 0.3rem 0.65rem;
  background: var(--eotw-accent);
  color: var(--a27-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(3deg);
}

:is(.alpt-hero, .alpt-away) .alpt-eotw__tile {
  --cut: 14px;
  width: 5rem;
  height: 5rem;
  transform: rotate(-4deg);
}

:is(.alpt-hero, .alpt-away) .alpt-eotw__sym {
  font-size: 2.4rem;
}

:is(.alpt-hero, .alpt-away) .alpt-eotw__text {
  display: contents;
}

:is(.alpt-hero, .alpt-away) .alpt-eotw__label,
:is(.alpt-hero, .alpt-away) .alpt-eotw__name {
  grid-column: 2;
}

:is(.alpt-hero, .alpt-away) .alpt-eotw__label {
  align-self: end;
  color: var(--eotw-accent);
  font-size: 0.72rem;
}

:is(.alpt-hero, .alpt-away) .alpt-eotw__name {
  align-self: start;
  margin: -0.6rem 0 0 !important;
  color: var(--a27-cream);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* The tile takes the first two rows, beside the label and the word. */
:is(.alpt-hero, .alpt-away) .alpt-eotw__tile {
  grid-row: 1 / span 2;
}

:is(.alpt-hero, .alpt-away) .alpt-eotw__talk {
  grid-column: 1 / -1;
  padding-left: 0.8rem;
  border-left: 3px solid var(--eotw-accent);
  color: var(--a27-cream);
  font-size: 1.02rem;
  line-height: 1.45;
}

:is(.alpt-hero, .alpt-away) .alpt-eotw__actions {
  grid-column: 1 / -1;
}

:is(.alpt-hero, .alpt-away) .alpt-eotw .alpt-btn {
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  border-color: var(--a27-cream);
  background: transparent;
  color: var(--a27-cream);
  font-size: 0.9rem;
}

:is(.alpt-hero, .alpt-away) .alpt-eotw .alpt-btn--ink {
  border-color: var(--eotw-accent);
  background: var(--eotw-accent);
  color: var(--a27-ink);
}

:is(.alpt-hero, .alpt-away) .alpt-eotw .alpt-btn:hover {
  background: var(--a27-cream);
  color: var(--a27-ink);
}

:is(.alpt-hero, .alpt-away) .alpt-eotw .alpt-btn:focus-visible {
  outline: 3px solid var(--eotw-accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  :is(.alpt-hero, .alpt-away) .alpt-eotw__tile {
    transition: transform 0.25s ease;
  }

  :is(.alpt-hero, .alpt-away) .alpt-eotw:hover .alpt-eotw__tile {
    transform: rotate(0deg) scale(1.04);
  }
}

@media (min-width: 1100px) {
  .literacy-table-page .alpt-hero .container {
    display: grid;
    /* Half and half: the title and intro on the left, the word of the week on the right. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    align-items: start;
  }

  .literacy-table-page .alpt-hero .container > * {
    grid-column: 1 / -1;
  }

  .literacy-table-page .alpt-hero .container > .alpt-eyebrow,
  .literacy-table-page .alpt-hero .container > .alpt-title,
  .literacy-table-page .alpt-hero .container > .alpt-lead {
    grid-column: 1;
  }

  /* Half the width: the title scales with its column so it stays on two lines. */
  .literacy-table-page .alpt-hero .alpt-title {
    max-width: none;
    font-size: clamp(3.2rem, 5.4vw, 5.5rem);
  }

  /* Flush with the big title and the lead: from the top of the title to the end of the lead. */
  .literacy-table-page .alpt-hero .container > .alpt-eotw {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: stretch;
    align-content: space-between;
    margin: var(--alpt-title-gap, 1.5rem) 8px 8px 0;
    gap: 0.75rem 1.5rem;
    padding: 1.6rem 2rem 1.5rem;
  }

  /* The card is as tall as the title block, so everything inside it is drawn bigger. */
  .alpt-hero .alpt-eotw__tile {
    --cut: 18px;
    width: clamp(5.5rem, 7vw, 7rem);
    height: clamp(5.5rem, 7vw, 7rem);
  }

  .alpt-hero .alpt-eotw__sym {
    font-size: clamp(2.6rem, 3.6vw, 3.6rem);
  }

  .alpt-hero .alpt-eotw__label {
    font-size: 0.8rem;
  }

  .alpt-hero .alpt-eotw__name {
    margin-top: -0.4rem !important;
    font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  }

  .alpt-hero .alpt-eotw__talk {
    padding-left: 1rem;
    border-left-width: 4px;
    font-size: clamp(1.1rem, 1.35vw, 1.3rem);
    line-height: 1.4;
  }

  .alpt-hero .alpt-eotw .alpt-btn {
    min-height: 2.75rem;
    padding: 0.5rem 1.15rem;
    font-size: 1rem;
  }

  .alpt-hero .alpt-eotw__sticker {
    top: -0.95rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ---- Try it: the three activities below the table ---- */
.alpt-tryit {
  margin: 3rem 0 0;
}

.alpt-tryit__title {
  margin: 0 0 0.25rem !important;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.alpt-tryit__lead {
  max-width: 44rem;
  color: var(--a27-dim);
}

.alpt-tryit__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alpt-tryit__card {
  display: grid;
  gap: 0.25rem;
  height: 100%;
  padding: 0.9rem 1rem 1rem;
  border: 2px solid var(--a27-ink);
  background: #FFFFFF;
  color: var(--a27-ink);
  text-decoration: none;
}

.alpt-tryit__card:hover {
  background: var(--a27-ink);
  color: var(--a27-cream);
}

.alpt-tryit__name {
  font-size: 1.05rem;
  font-weight: 700;
}

.alpt-tryit__name::after {
  content: " \2193";
}

.alpt-tryit__about {
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ---- Safeguarding note, in the panel and on the board ---- */
.alpt-panel__safe {
  margin: 0.25rem 0 0 !important;
  padding: 0.5rem 0.75rem;
  border-left: 4px solid var(--a27-smart);
  background: color-mix(in srgb, var(--a27-smart) 10%, #FFFFFF);
  font-size: 0.85rem;
  line-height: 1.4;
}

.alpt-board__safe {
  max-width: 48rem;
  margin-top: 1.25rem;
  padding: 0.6rem 1rem;
  border-left: 5px solid var(--a27-smart);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.4;
}

@media print {
  .alpt-eotw,
  .alpt-tryit {
    display: none !important;
  }
}

/* ---- Black-and-white printing: each family also gets a letter code, on the tiles and in the key, so the families
   can be told apart without colour (F Foundations, G Generative, P Predictive, A Agents, W Workflow, E Ethics,
   I Infrastructure). Only in the families view, whose colours are the families. ---- */
@media print {
  .alpt:not(.is-themes):not(.is-years) .alpt-grid > .alpt-tile {
    position: relative;
  }

  .alpt:not(.is-themes):not(.is-years) .alpt-grid > .alpt-tile::after {
    content: var(--code);
    position: absolute;
    /* Top right, just left of the cut corner, so the diagonal doesn't slice it and the name below stays clear. */
    top: 0.15rem;
    right: calc(var(--cut, 10px) + 0.2rem);
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--a27-ink);
  }

  .alpt:not(.is-themes):not(.is-years) .alpt-key-family .alpt-chip__swatch::after {
    content: var(--code);
    display: block;
    font-size: 0.55rem;
    font-weight: 700;
    line-height: 0.9rem;
    text-align: center;
  }
}

/* ---- Printable element cards: twelve to an A4 page, to cut out. The script builds .alpt-cards-print from the
   elements showing (so a filter prints just that family or theme), adds .alpt-printing-cards, and prints. ---- */
.alpt-cards-print {
  display: none;
}

.alpt-print-cards {
  border: 0;
  background: none;
  padding: 0;
  color: var(--a27-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@page alpt-cards {
  size: A4 portrait;
  margin: 10mm;
}

@media print {
  html.alpt-printing-cards body > *:not(.alpt-cards-print) {
    display: none !important;
  }

  html.alpt-printing-cards .alpt-cards-print {
    display: grid;
    page: alpt-cards;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 68mm;
    gap: 0;
    font-family: var(--s-font);
    color: #231F20;
  }

  .alpt-card {
    display: flex;
    flex-direction: column;
    gap: 1.5mm;
    padding: 3.5mm 4mm;
    border: 1px dashed #8A8580;
    break-inside: avoid;
    overflow: hidden;
  }

  .alpt-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2mm;
  }

  .alpt-card__sym {
    display: flex;
    align-items: flex-end;
    width: 14mm;
    height: 14mm;
    padding: 1.5mm 2mm;
    background: var(--fam);
    box-shadow: inset 0 0 0 0.5mm var(--fam-deep);
    color: var(--fam-deep);
    font-size: 17pt;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .alpt-card__family {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1mm;
    max-width: 30mm;
    font-size: 6.5pt;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-align: right;
    text-transform: uppercase;
  }

  .alpt-card__code {
    display: inline-block;
    min-width: 4.5mm;
    padding: 0.3mm 0.8mm;
    border: 0.3mm solid #231F20;
    font-size: 7pt;
    text-align: center;
  }

  .alpt-card__name {
    margin: 0;
    font-size: 12pt;
    font-weight: 700;
    line-height: 1.15;
  }

  .alpt-card__def {
    margin: 0;
    font-size: 8pt;
    line-height: 1.3;
  }

  .alpt-card__talk {
    margin: auto 0 0;
    padding-top: 1.5mm;
    border-top: 0.3mm solid #231F20;
    font-size: 7.5pt;
    font-weight: 600;
    line-height: 1.25;
  }

  .alpt-card__foot {
    margin: 0;
    font-size: 6pt;
    color: #54504E;
  }

  .alpt-card__safe {
    font-weight: 700;
    color: #231F20;
  }
}

/* ---- Tablets (768–1199px): the panel opens as a drawer along the bottom of the screen, over the tiles, rather than
   above them, so choosing a tile doesn't jump the page. "Back to elements" closes it. ---- */
@media screen and (min-width: 768px) and (max-width: 1199px) and (min-height: 600px) {
  .alpt-js .alpt.is-detail-open .alpt-panel {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: min(52vh, 34rem);
    margin: 0;
    overflow-y: auto;
    border-top: 4px solid var(--fam-deep);
    box-shadow: 0 -10px 30px rgba(35, 31, 32, 0.18);
  }

  .alpt-js .alpt.is-detail-open {
    padding-bottom: min(52vh, 34rem);
  }

  /* During the compound challenge the lab bar is fixed at the bottom too: the drawer sits on top of it. */
  html.alpt-lab-open .alpt-js .alpt.is-detail-open .alpt-panel,
  html.alpt-lab-open .alpt.is-detail-open .alpt-panel {
    bottom: var(--alpt-lab-h, 0);
    max-height: min(40vh, 28rem);
  }

  /* Tiles reached with Tab scroll clear of the drawer rather than under it. */
  html:has(.alpt.is-detail-open) {
    scroll-padding-bottom: min(52vh, 34rem);
  }

  .alpt-js .alpt.is-detail-open .alpt-panel__nav {
    position: sticky;
    bottom: 0;
    background: inherit;
  }
}

/* A reader's credit on an element they suggested, and the help under the credit field. */
.alpt-panel__credit {
  margin: 0 !important;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--a27-responsible-deep);
}

.alpt-suggest__help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--a27-dim);
}

/* ---- Ready-made sessions: the same open-and-close rows as the display board help, with timed steps ---- */
.alpt-sessions-wrap {
  padding: 3.5rem 0 1rem;
}

.alpt-session .alpt-session__meta,
.alpt-session .alpt-session__after {
  max-width: 48rem;
  margin: 0 0 0.85rem;
  color: var(--a27-dim);
  line-height: 1.5;
}

.alpt-session ol {
  max-width: 48rem;
  margin: 0 0 1rem;
  padding-left: 1.4rem;
  line-height: 1.5;
}

.alpt-session li + li {
  margin-top: 0.45rem;
}

.alpt-session .alpt-session__after a {
  color: var(--a27-ink);
  font-weight: 700;
}

/* A compound opened from a shared link is marked for a moment. */
.alpt-compound.is-linked {
  outline: 4px solid var(--a27-future);
  outline-offset: 3px;
}

/* ---- Phones: the panel stacks, tile above text, so the definition gets the full width ---- */
@media screen and (max-width: 599px) {
  .alpt-panel {
    grid-template-columns: 1fr !important;
  }

  .alpt-panel__tile {
    width: 5.5rem;
    aspect-ratio: 1;
  }

  /* The name is the heading just below, so the small tile shows only its number and symbol. */
  .alpt-panel__tile-name {
    display: none;
  }
}

/* ---- Closing call to action: AI Awareness Day itself ---- */
.alpt-close {
  padding: 3.5rem 0 4.5rem;
  background: var(--a27-ink);
  color: var(--a27-cream);
}

.alpt-close__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--a27-cream);
}

.alpt-close__text {
  max-width: 44rem;
  margin: 1rem 0 0;
  font-size: 1.1rem;
  color: #D9D6CE;
}

.alpt-close .alpt-btn {
  border-color: var(--a27-cream);
  color: var(--a27-cream);
}

.alpt-close .alpt-btn--ink {
  background: var(--a27-cream);
  color: var(--a27-ink);
}

.alpt-close .alpt-btn:hover {
  background: var(--a27-future);
  border-color: var(--a27-future);
  color: var(--a27-ink);
}

@media print {
  .alpt-close,
  .alpt-sessions-wrap {
    display: none !important;
  }

  html.alpt-lab-open body {
    padding-bottom: 0 !important;
  }
}

/* The hint after "Issues it raises": quieter, and in normal case. */
.alpt-panel__issues-hint {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--a27-dim);
}

/* ---- Compound cards, compact: the elements as a one-row equation of mini tiles (Ll + Rg + Vd), and the two
   buttons side by side, so no row is spent on a label or a lone button. ---- */
.alpt-compound__body {
  flex-flow: row wrap;
  align-content: flex-start;
  column-gap: 0.4rem;
}

.alpt-compound__body > * {
  flex: 0 0 100%;
}

.alpt-compound__body > .alpt-compound__board,
.alpt-compound__body > .alpt-compound__copy {
  flex: 0 0 auto;
  margin: 0 0 0.6rem;
}

.alpt-compound__made {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.alpt-compound__formula {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0.5rem 0 0.75rem;
}

.alpt-compound__formula .alpt-compound__el {
  --cut: 8px;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.15rem;
  padding: 0.35rem 0.45rem 0.4rem;
}

/* A plus sign between the tiles. */
.alpt-compound__plus {
  flex: none;
  align-self: center;
  padding: 0 0.3rem;
  color: var(--a27-dim);
  font-size: 0.95rem;
  font-weight: 700;
  list-style: none;
}

.alpt-compound__formula .alpt-compound__el-sym {
  width: auto;
  font-size: 1.35rem;
  line-height: 1;
}

.alpt-compound__formula .alpt-compound__el-name {
  font-size: 0.66rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ==== One look for the page's interactive panels ====
   Word of the week, the compound challenge, the Buzzword check, Suggest a new element and the closing band share it:
   a dark panel, a tilted sticker label, a hard offset shadow and light inner cards, each in its own AIAD colour
   (--panel-accent). The reading sections (definitions, issues, sessions, questions) stay light and calm. */
.alpt-challenge { --panel-accent: var(--a27-smart); }
.alpt-quiz { --panel-accent: var(--a27-creative); }
.alpt-suggest { --panel-accent: var(--a27-future); }
.alpt-close { --panel-accent: var(--a27-responsible); }

.alpt-sticker {
  display: inline-block;
  align-self: flex-start;
  justify-self: start;
  margin: 0 0 0.85rem !important;
  padding: 0.3rem 0.65rem;
  background: var(--panel-accent, var(--a27-future));
  color: var(--a27-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.alpt-quiz .alpt-sticker {
  margin: 0 !important;
}

.alpt-challenge,
.alpt-quiz,
.alpt-suggest {
  margin-right: 8px;
  box-shadow: 8px 8px 0 var(--panel-accent);
}

/* The compound challenge: no cut corner (it would clip the shadow), and its meter in the accent. */
.alpt-challenge {
  clip-path: none;
}

.alpt-challenge .alpt-meter {
  background: color-mix(in srgb, var(--a27-cream) 22%, transparent);
}

.alpt-challenge .alpt-meter__fill {
  background: var(--panel-accent);
}

.alpt-challenge__title {
  letter-spacing: -0.035em;
}

.alpt-challenge__level:hover {
  box-shadow: 4px 4px 0 var(--panel-accent);
}

/* Suggest a new element: the dark panel, with the form on a light card. */
.alpt-suggest {
  background: var(--a27-ink);
  color: var(--a27-cream);
}

.alpt-suggest__title {
  color: var(--a27-cream);
}

.alpt-suggest__intro p,
.alpt-suggest__bench {
  color: color-mix(in srgb, var(--a27-cream) 85%, transparent);
}

.alpt-suggest__bench a {
  color: var(--panel-accent);
}

.alpt-suggest__form {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: var(--a27-cream);
  color: var(--a27-ink);
}

/* The closing band keeps its full width, with the sticker above its title. */
.alpt-close .alpt-sticker {
  margin-bottom: 1rem !important;
}

/* Try it: each card wears the colour of the panel it jumps to. */
.alpt-tryit__card {
  border-top-width: 6px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.alpt-tryit__card[href="#alpt-compounds-title"] { --card-accent: var(--a27-safe); }
.alpt-tryit__card[href="#alpt-challenge-title"] { --card-accent: var(--a27-smart); }
.alpt-tryit__card[href="#alpt-buzzword-check"] { --card-accent: var(--a27-creative); }
.alpt-tryit__card[href="#alpt-sessions"] { --card-accent: var(--a27-responsible); }

.alpt-tryit__card {
  border-top-color: var(--card-accent, var(--a27-ink));
}

.alpt-tryit__card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--card-accent, var(--a27-ink));
}

@media (prefers-reduced-motion: reduce) {
  .alpt-tryit__card {
    transition: none;
  }
}

@media print {
  .alpt-challenge,
  .alpt-suggest {
    box-shadow: none;
  }
}

.alpt-suggest .alpt-sticker,
.alpt-close .alpt-sticker {
  color: var(--a27-ink);
}

/* The closing band's main button in its accent, like Open it on the word of the week. */
.alpt-close .alpt-btn--ink {
  border-color: var(--panel-accent);
  background: var(--panel-accent);
  color: var(--a27-ink);
}

.alpt-close .alpt-btn:hover {
  border-color: var(--a27-cream);
  background: var(--a27-cream);
  color: var(--a27-ink);
}

/* ---- The definitions and issues lists as a grid of cards: one across on phones, two on tablets, three on wide
   screens. Each card has a top stripe in its family or theme colour; an open card spans the full width, so its
   definitions sit in columns rather than one long strip. ---- */
.alpt-glossary__family,
.alpt-glossary__family:last-of-type {
  padding: 0 1.1rem;
  border: 0;
  border-top: 5px solid var(--fam-deep, var(--a27-ink));
  background: #FFFFFF;
}

.alpt-glossary__family summary {
  padding: 0.9rem 0;
}

.alpt-glossary__family-name {
  font-size: 1.15rem;
}

.alpt-glossary__family-about {
  font-size: 0.92rem;
  line-height: 1.4;
}

.alpt-glossary__family + .alpt-glossary__family {
  margin-top: 0.75rem;
}

.alpt-glossary__family[open] {
  padding-bottom: 0.25rem;
}

.alpt-glossary__family[open] summary {
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--a27-rule, #D9D6CE);
}

@media screen and (min-width: 700px) {
  .alpt-glossary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0.75rem;
  }

  .alpt-glossary > :not(.alpt-glossary__family) {
    grid-column: 1 / -1;
  }

  .alpt-glossary__family + .alpt-glossary__family {
    margin-top: 0;
  }

  .alpt-glossary__family[open] {
    grid-column: 1 / -1;
  }
}

@media screen and (min-width: 1100px) {
  .alpt-glossary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- Try it, sticker style: a tilted label, cards tinted in the colour of the panel they jump to, a hard ink
   shadow, a tilted time sticker and a round arrow. Light, so it doesn't add another dark panel. ---- */
.alpt-tryit {
  --panel-accent: var(--a27-future);
}

.alpt-tryit__title {
  border-left: 0 !important;
  padding: 0 !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  letter-spacing: -0.035em;
  line-height: 1 !important;
}

.alpt-tryit__lead {
  margin-top: 0.5rem !important;
}

.alpt-tryit__cards {
  gap: 1.25rem;
  padding: 0.5rem 8px 8px 0;
}

.alpt-tryit__card {
  position: relative;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 0.4rem;
  padding: 1.1rem 1.1rem 1rem;
  border: 2px solid var(--a27-ink);
  background: color-mix(in srgb, var(--card-accent, var(--a27-future)) 16%, #FFFFFF);
  box-shadow: 6px 6px 0 var(--a27-ink);
  text-decoration: none;
}

.alpt-tryit__card:hover,
.alpt-tryit__card:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--card-accent, var(--a27-ink));
}

.alpt-tryit__card:focus-visible {
  outline: 3px solid var(--a27-ink);
  outline-offset: 4px;
}

.alpt-tryit__time {
  justify-self: start;
  padding: 0.2rem 0.55rem;
  background: var(--card-accent, var(--a27-future));
  color: var(--a27-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.alpt-tryit__name {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* The card's own round arrow replaces the arrow after the name. */
.alpt-tryit__name::after {
  content: none !important;
}

.alpt-tryit__about {
  color: var(--a27-ink);
  font-size: 0.92rem;
  line-height: 1.4;
}

.alpt-tryit__go {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--a27-ink);
  color: var(--a27-cream);
  font-size: 1.1rem;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.alpt-tryit__card:hover .alpt-tryit__go {
  transform: translateY(3px);
}

@media (prefers-reduced-motion: reduce) {
  .alpt-tryit__go {
    transition: none;
  }
}

@media (max-width: 599px) {
  .alpt-tryit__card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 0.75rem;
  }

  .alpt-tryit__card > :not(.alpt-tryit__go) {
    grid-column: 1;
  }

  .alpt-tryit__go {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    margin: 0;
  }
}

/* ---- Compound cards, sticker style: tinted in their AIAD strand colour, a black border and a hard ink shadow,
   lifting on hover. No cut corner: it would clip the shadow. Volatile ones keep an orange stripe across the top. ---- */
.alpt-compounds { --panel-accent: var(--a27-safe); }

.alpt-compound--safe { --strand-accent: var(--a27-safe); }
.alpt-compound--smart { --strand-accent: var(--a27-smart); }
.alpt-compound--creative { --strand-accent: var(--a27-creative); }
.alpt-compound--responsible { --strand-accent: var(--a27-responsible); }
.alpt-compound--future { --strand-accent: var(--a27-future); }

.alpt-compounds__grid {
  gap: 1.25rem;
  padding: 0 8px 8px 0;
}

.alpt-compound {
  clip-path: none;
  border: 2px solid var(--a27-ink);
  background: color-mix(in srgb, var(--strand-accent, var(--a27-cream)) 12%, #FFFFFF);
  box-shadow: 6px 6px 0 var(--a27-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.alpt-compound:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--strand-accent, var(--a27-ink));
}

.alpt-compound--volatile {
  box-shadow: inset 0 5px 0 #D97706, 6px 6px 0 var(--a27-ink);
}

.alpt-compound--volatile:hover {
  box-shadow: inset 0 5px 0 #D97706, 9px 9px 0 var(--strand-accent, var(--a27-ink));
}

.alpt-compounds__title {
  letter-spacing: -0.035em;
}

@media (prefers-reduced-motion: reduce) {
  .alpt-compound {
    transition: none;
  }

  .alpt-compound:hover {
    transform: none;
  }
}

/* Try it time stickers: white text on each colour's deep shade, so the text stays readable (about 6:1). */
.alpt-tryit__card[href="#alpt-compounds-title"] { --card-deep: var(--a27-safe-deep); }
.alpt-tryit__card[href="#alpt-challenge-title"] { --card-deep: var(--a27-smart-deep); }
.alpt-tryit__card[href="#alpt-buzzword-check"] { --card-deep: var(--a27-creative-deep); }
.alpt-tryit__card[href="#alpt-sessions"] { --card-deep: var(--a27-responsible-deep); }

.alpt-tryit__time {
  background: var(--card-deep, var(--a27-ink));
  color: #FFFFFF;
}

/* The real-life clue on a hidden compound, so nobody starts from a blank. */
.alpt-compound__looks {
  margin: 0.35rem 0 0 !important;
  font-size: 0.85rem;
  line-height: 1.4;
}

.alpt-say-next {
  margin-left: 0.5rem;
}

/* ---- Tile names that fit: every symbol sits at the same height under its number, whatever the name's length (the
   name takes the space left at the bottom); long words carry soft hyphens (aiad_literacy_tile_name()), with the
   browser's own English hyphenation (the page is lang="en-GB") as a safety net for words added later; and long names
   get slightly smaller text, so none needs more than three lines. ---- */
.alpt-grid .alpt-tile {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  justify-content: stretch;
}

/* One column that may shrink, so a name that can't fit (for example with wider letter spacing, WCAG 1.4.12) wraps
   inside its tile instead of running over the edge. */
.alpt-grid .alpt-tile {
  grid-template-columns: minmax(0, 1fr);
}

.alpt-grid .alpt-tile__name {
  min-width: 0;
  align-self: end;
  /* Only the break points the page sets: the script keeps them just for words too wide to fit on their own. */
  -webkit-hyphens: manual;
  hyphens: manual;
  hyphenate-limit-chars: 7 3 3;
  /* Break a word only at its hyphen points; chop it only if nothing else fits (an older rule allowed any letter). */
  overflow-wrap: break-word;
}

.alpt-grid .alpt-tile__name--long {
  font-size: 0.68rem;
  line-height: 1.15;
}

.alpt-grid .alpt-tile__name--xlong {
  font-size: 0.62rem;
  line-height: 1.15;
}

/* ---- Roll over a tile to enlarge it: the table keeps its small tiles, and the one under the pointer (or focused with
   the keyboard) grows over its neighbours so its full name is easy to read. Only with a mouse or trackpad: on touch
   screens a tap opens the panel. Tiles at the edges grow inwards so they stay on screen. ---- */
@media screen and (hover: hover) and (pointer: fine) {
  .alpt-grid .alpt-tile[data-alpt-el] {
    position: relative;
    transform-origin: center;
    transition: opacity 0.2s ease, transform 0.16s ease;
  }

  .alpt-grid .alpt-tile[data-alpt-el]:hover,
  .alpt-grid .alpt-tile[data-alpt-el]:focus-visible {
    z-index: 30;
    transform: scale(1.6);
  }

  /* Edge columns grow inwards. */
  .alpt-grid .alpt-tile[data-alpt-el][style*="--c:1;"],
  .alpt-grid .alpt-tile[data-alpt-el][style*="--c:2;"] {
    transform-origin: left center;
  }

  .alpt-grid .alpt-tile[data-alpt-el][style*="--c:17;"],
  .alpt-grid .alpt-tile[data-alpt-el][style*="--c:18;"] {
    transform-origin: right center;
  }

}

@media screen and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .alpt-grid .alpt-tile[data-alpt-el] {
    transition: none;
  }
}

/* ---- Calmer tiles: one name size for every tile, less padding, and the name straight under the symbol, so the
   number, symbol and first line of the name line up across every row. Hover enlarges a tile to read a long name. ---- */
.alpt-grid .alpt-tile {
  gap: 0.05rem;
  padding: 0.3rem 0.35rem 0.35rem;
  align-content: start;
}

.alpt-grid .alpt-tile__name,
.alpt-grid .alpt-tile__name--long,
.alpt-grid .alpt-tile__name--xlong {
  align-self: start;
  margin-top: 0.2rem;
  font-size: 0.64rem;
  line-height: 1.15;
  letter-spacing: 0;
}

/* ---- Phone navigation (under 768px), modelled on the benchmark's app bar: a dark bar under the site header with the
   section you're in, a reading-progress line, a search button and a "Jump to" menu. Built by literacy-table.js. ---- */
.alpt-mnav {
  display: none;
}

@media (max-width: 767px) {
  .alpt-mnav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: 68px;
    z-index: 80;
    background: var(--a27-ink);
    color: var(--a27-cream);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0s linear 0.22s;
  }

  .alpt-mnav.is-shown {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .alpt-mnav__row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    min-height: 3.25rem;
  }

  .alpt-mnav__mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    background: #5EE08C;
    color: var(--a27-ink);
    font-weight: 800;
    font-size: 0.95rem;
    clip-path: polygon(0 0, 72% 0, 100% 28%, 100% 100%, 0 100%);
  }

  .alpt-mnav__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .alpt-mnav__title {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 243, 236, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .alpt-mnav__here {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .alpt-mnav__btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.7rem;
    border: 2px solid rgba(247, 243, 236, 0.35);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
  }

  .alpt-mnav__btn--search {
    padding: 0;
  }

  .alpt-mnav__btn--jump {
    background: var(--a27-cream);
    border-color: var(--a27-cream);
    color: var(--a27-ink);
  }

  .alpt-mnav__btn--jump svg {
    transition: transform 0.2s ease;
  }

  .alpt-mnav.is-open .alpt-mnav__btn--jump svg {
    transform: rotate(180deg);
  }

  .alpt-mnav__btn:focus-visible,
  .alpt-mnav__item:focus-visible {
    outline: 3px solid #5EE08C;
    outline-offset: 2px;
  }

  .alpt-mnav__track {
    display: block;
    height: 3px;
    background: rgba(247, 243, 236, 0.15);
  }

  .alpt-mnav__fill {
    display: block;
    height: 100%;
    background: #5EE08C;
    transform: scaleX(0);
    transform-origin: left;
  }

  .alpt-mnav__menu {
    max-height: min(70vh, 34rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.4rem 1rem 1rem;
    border-top: 1px solid rgba(247, 243, 236, 0.15);
  }

  .alpt-mnav__group {
    margin: 0.8rem 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5EE08C;
  }

  .alpt-mnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .alpt-mnav__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    border: 0;
    border-bottom: 1px solid rgba(247, 243, 236, 0.12);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }

  .alpt-mnav__item .alpt-chip__swatch {
    width: 1rem;
    height: 1rem;
  }

  /* Families as one swipeable row instead of a stack that fills the screen. */
  .alpt .alpt-legend {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-right: -1rem;
    padding-right: 1rem;
    padding-bottom: 0.25rem;
  }

  .alpt .alpt-legend::-webkit-scrollbar {
    display: none;
  }

  .alpt .alpt-legend > * {
    flex: none;
    scroll-snap-align: start;
  }

  /* Anything jumped to lands below the site header and the bar. */
  html:has(.alpt-mnav.is-shown) {
    scroll-padding-top: 8.5rem;
  }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .alpt-mnav,
  .alpt-mnav.is-shown {
    transition: none;
  }
}

/* ---- Phones: the element's buttons as a tidy, thumb-sized grid instead of a ragged wrap.
   Row 1 is a stepper (Previous · 107 of 142 · Next), row 2 three equal tools, row 3 Back to elements. ---- */
@media screen and (max-width: 767px) {
  .alpt .alpt-panel__nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: stretch;
  }

  .alpt .alpt-panel__nav[hidden] {
    display: none;
  }

  .alpt .alpt-panel__nav .alpt-btn {
    min-height: 2.9rem;
    margin: 0;
    padding: 0.4rem 0.35rem;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .alpt .alpt-panel__nav .alpt-step--prev { grid-area: 1 / 1 / 2 / 3; order: 0; }
  .alpt .alpt-panel__nav .alpt-panel__count { grid-area: 1 / 3 / 2 / 5; order: 0; }
  .alpt .alpt-panel__nav .alpt-flip-btn { grid-area: 1 / 3 / 2 / 5; order: 0; margin: 0; }
  .alpt .alpt-panel__nav .alpt-step--next { grid-area: 1 / 5 / 2 / 7; order: 0; }
  .alpt .alpt-panel__nav .alpt-links-toggle { grid-area: 2 / 1 / 3 / 3; }
  .alpt .alpt-panel__nav .alpt-board-btn { grid-area: 2 / 3 / 3 / 5; }
  .alpt .alpt-panel__nav .alpt-share-btn { grid-area: 2 / 5 / 3 / 7; }
  .alpt .alpt-panel__nav .alpt-share { grid-area: 4 / 1 / 5 / 7; }
  .alpt-js .alpt.is-detail-open .alpt-panel__nav .alpt-back-to-tiles {
    display: flex;
    grid-area: 3 / 1 / 4 / 7;
    justify-self: stretch;
  }

  .alpt .alpt-panel__nav .alpt-panel__count {
    display: block;
    align-self: center;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
  }

  /* Text-only on phones: the icons squash in a third of the width. */
  .alpt .alpt-panel__nav .alpt-links-toggle__icon,
  .alpt .alpt-panel__nav .alpt-board-btn__icon,
  .alpt .alpt-panel__nav .alpt-share-btn__icon {
    display: none;
  }
}

@media screen and (max-width: 380px) {

  .alpt .alpt-panel__nav .alpt-btn {
    font-size: 0.78rem;
  }
}

/* ---- Share: a row of share links under the element, for browsers without a share sheet. ---- */
.alpt-share-btn__icon {
  flex: none;
}

.alpt-share-btn[aria-expanded="true"] {
  background: var(--a27-ink);
  color: var(--a27-cream);
}

.alpt-panel__nav .alpt-share {
  order: 100;
  flex: 1 1 100%;
  margin-top: 0.25rem;
  padding: 0.75rem;
  background: var(--a27-ink);
  color: var(--a27-cream);
}

.alpt-panel__nav .alpt-share[hidden] {
  display: none;
}

.alpt-share__label {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5EE08C;
}

.alpt-share__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.75rem, 1fr));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alpt-share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.5rem;
  border: 2px solid rgba(247, 243, 236, 0.35);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.alpt-share__link:hover {
  background: var(--a27-cream);
  border-color: var(--a27-cream);
  color: var(--a27-ink);
}

.alpt-share__link:focus-visible {
  outline: 3px solid #5EE08C;
  outline-offset: 2px;
}

@media screen and (max-width: 767px) {
  .alpt-share__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  .alpt-share {
    display: none !important;
  }
}

/* ---- Show to class on phones: a compact card that fits the screen, the controls pinned to the bottom
   (← · Show definition · →, then Share as a card) and Close in the top corner, as phone apps do. ---- */
@media screen and (max-width: 767px) {
  .alpt-board {
    justify-content: flex-start;
    gap: 1.25rem;
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.25rem 0;
  }

  .alpt-board__inner {
    gap: 1.1rem;
    padding-right: 3.5rem;
  }

  .alpt-board__inner--compound {
    padding-right: 0;
    padding-top: 3rem;
  }

  .alpt-board__tile {
    --cut: 1.1rem;
    width: 7.5rem;
    padding: 0.65rem 0.75rem;
  }

  .alpt-board__n,
  .alpt-board__tile-name {
    font-size: 0.8rem;
  }

  .alpt-board__sym {
    font-size: 3.4rem;
  }

  .alpt-board .alpt-board__label {
    margin-bottom: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .alpt-board .alpt-board__title {
    margin-bottom: 0.75rem;
    font-size: 2.2rem;
  }

  .alpt-board .alpt-board__def,
  .alpt-board .alpt-board__prompt {
    font-size: 1.3rem;
    line-height: 1.25;
  }

  .alpt-board .alpt-board__talk {
    margin-top: 1.25rem;
    font-size: 1.05rem;
  }

  .alpt-board__bar {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) 3.4rem;
    gap: 0.5rem;
    margin: auto -1.25rem 0;
    padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--a27-ink);
    border-top: 1px solid rgba(246, 244, 237, 0.18);
  }

  .alpt-board .alpt-board__btn {
    min-height: 3rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
  }

  .alpt-board .alpt-board__btn--prev { grid-area: 1 / 1; padding: 0; }
  .alpt-board .alpt-board__btn--toggle { grid-area: 1 / 2; }
  .alpt-board .alpt-board__btn--next { grid-area: 1 / 3; padding: 0; }
  .alpt-board .alpt-board__btn--card { grid-area: 2 / 1 / 3 / 4; }
  .alpt-board .alpt-board__btn-word { display: none; }

  /* The compound board has only Show the answer and Close. */
  .alpt-board .alpt-board__inner--compound + .alpt-board__bar .alpt-board__btn:not(.alpt-board__btn--close) {
    grid-column: 1 / -1;
  }

  .alpt-board .alpt-board__btn--close {
    position: fixed;
    top: calc(0.75rem + env(safe-area-inset-top, 0px));
    right: 0.75rem;
    z-index: 2;
    min-width: 44px;
    padding: 0.5rem 0.85rem;
  }
}

/* The card button reads as the share action: ink on cream. */
.alpt-board .alpt-board__btn--card {
  background: var(--a27-cream);
  border-color: var(--a27-cream);
  color: var(--a27-ink);
}

/* Phones: a compound's elements sit in one row on the board, and the title the board focuses on (for screen
   readers) shows no box, as it isn't a control. */
@media screen and (max-width: 767px) {
  .alpt-board__formula {
    flex-wrap: nowrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .alpt-board__el {
    --cut: 0.6rem;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: 6.5rem;
    min-height: 0;
    aspect-ratio: 1;
    padding: 0.45rem 0.5rem;
  }

  .alpt-board__el-sym {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .alpt-board__el-name {
    font-size: 0.62rem;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

.alpt-board .alpt-board__title:focus {
  outline: none;
}

/* The smallest phones: four elements in one row leave no room for their names, so they go two by two. */
@media screen and (max-width: 380px) {
  .alpt-board__formula:has(> :nth-child(4)) {
    flex-wrap: wrap;
  }

  .alpt-board__formula:has(> :nth-child(4)) .alpt-board__el {
    flex: 0 0 calc(50% - 0.2rem);
    max-width: none;
    aspect-ratio: 2 / 1;
  }
}

@media screen and (max-width: 767px) {
  .alpt-board__el-name {
    overflow-wrap: normal;
    hyphens: manual;
  }
}

/* ---- Element pictures (assets/images/literacy-table/{symbol}.svg): in the panel the picture takes the big
   tile's place and the symbol becomes a badge on it. The drawings use these classes, so they take the family
   colour (or the theme or year colour in those views). ---- */
.alpt-panel[data-alpt-theme="safe"] { --pic-accent: var(--a27-safe); }
.alpt-panel[data-alpt-theme="smart"] { --pic-accent: var(--a27-smart); }
.alpt-panel[data-alpt-theme="creative"] { --pic-accent: var(--a27-creative); }
.alpt-panel[data-alpt-theme="responsible"] { --pic-accent: var(--a27-responsible); }
.alpt-panel[data-alpt-theme="future"] { --pic-accent: var(--a27-future); }

/* An element with a picture keeps its tile on the front and has the picture on the back: the ↻ Picture button
   (in the count's place) or a click on the tile turns it over. Both sides are the picture's size. */
.alpt-panel__tile.has-pic {
  position: relative;
  width: clamp(12rem, 30vw, 17rem);
  aspect-ratio: 300 / 330;
  cursor: pointer;
}

.alpt-panel__tile.has-pic .alpt-panel__tile-name {
  display: block;
  /* The tile is picture-sized now, so the name and number are sized to it, not to the old small tile. */
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.15;
}

.alpt-panel__tile.has-pic .alpt-panel__n {
  font-size: 1.15rem;
}

.alpt-panel__tile.is-flipped {
  padding: 0;
}

.alpt-panel__tile.is-flipped .alpt-panel__n,
.alpt-panel__tile.is-flipped .alpt-panel__sym,
.alpt-panel__tile.is-flipped .alpt-panel__tile-name {
  visibility: hidden;
}

.alpt-panel__pic {
  position: absolute;
  inset: 0;
}

.alpt-panel__pic[hidden] {
  display: none;
}

.alpt-panel__pic svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* The flip button sits where the element count does (on every screen size). */
.alpt-panel__nav .alpt-flip-btn {
  order: 98;
  margin-left: auto;
  gap: 0.35rem;
}

.alpt-panel__nav .alpt-flip-btn[hidden],
.alpt-panel__count[hidden] {
  display: none !important;
}

.alpt-panel__nav .alpt-flip-btn[aria-pressed="true"] {
  border-color: var(--fam-deep);
  background: var(--fam);
  color: var(--fam-deep);
}

.alpt-flip-btn__icon {
  font-size: 1.05em;
  line-height: 1;
}

.alpt-pic text { font-family: inherit; fill: var(--a27-ink); }
.alpt-pic .i-bg { fill: var(--fam); }
.alpt-pic .i-deep { fill: var(--fam-deep); }
.alpt-pic .i-paper { fill: #FFFFFF; }
.alpt-pic .i-cream { fill: var(--a27-cream); }
.alpt-pic .i-accent { fill: var(--pic-accent, var(--a27-smart)); }
.alpt-pic .i-ink { fill: var(--a27-ink); }
.alpt-pic .i-line { fill: none; stroke: var(--a27-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.alpt-pic .i-deepline { fill: none; stroke: var(--fam-deep); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* Calculated arrows (tools/literacy-arrows): every arrow is i-line; the main path adds i-main for the family colour.
   Heads, crosses and dots are drawn by markers in the same colour as their line. */
.alpt-pic .i-main { stroke: var(--fam-deep); }
.alpt-pic .i-head { fill: none; stroke: var(--a27-ink); stroke-width: 1.67; stroke-linecap: round; stroke-linejoin: round; }
.alpt-pic .i-head--deep { stroke: var(--fam-deep); }
.alpt-pic .i-dot { fill: var(--a27-ink); }
.alpt-pic .i-dot--deep { fill: var(--fam-deep); }
.alpt-pic .i-dash { stroke-dasharray: 7 7; }
.alpt-pic .i-faint { opacity: 0.35; }
.alpt-pic .t-xs { font-size: 13px; font-weight: 600; }
.alpt-pic .t-s { font-size: 16px; font-weight: 600; }
.alpt-pic .t-m { font-size: 22px; font-weight: 700; }
.alpt-pic .t-l { font-size: 34px; font-weight: 700; }
.alpt-pic .t-w { fill: #FFFFFF; }
.alpt-pic .t-d { fill: var(--fam-deep); }

/* Wide screens: the panel sits in the table at a fixed size, so the picture takes the height left above the
   buttons and its width follows from its shape. */
@media (min-width: 1200px) {
  .alpt-panel__tile.has-pic {
    width: auto;
    height: 100%;
    min-height: 0;
    align-self: stretch;
  }
}

/* Phones: the front stays a small tile so the definition and the buttons fit on the screen. Turned over, the
   picture opens to full width so its labels can be read. */
@media screen and (max-width: 599px) {
  .alpt-panel__tile.has-pic {
    width: 5.5rem;
    aspect-ratio: 300 / 330;
  }

  .alpt-panel__tile.has-pic .alpt-panel__n {
    font-size: 0.95rem;
  }

  .alpt-panel__tile.has-pic .alpt-panel__tile-name {
    display: none;
  }

  .alpt-panel__tile.has-pic.is-flipped {
    width: min(100%, 15rem);
  }

  /* The family, theme and year labels sit beside the small tile rather than below it, to save a row. The body's
     contents join the panel's grid so the labels can share the tile's row; everything else is full width. */
  .alpt .alpt-panel {
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 0.55rem 0.9rem;
  }

  .alpt .alpt-panel__body {
    display: contents;
  }

  .alpt .alpt-panel > *,
  .alpt .alpt-panel__body > * {
    grid-column: 1 / -1;
  }

  .alpt .alpt-panel > .alpt-panel__tile {
    grid-column: 1;
  }

  .alpt .alpt-panel__body > .alpt-panel__labels {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }

  .alpt .alpt-panel__labels > * {
    align-self: flex-end;
  }

  .alpt .alpt-panel > .alpt-panel__tile.is-flipped {
    grid-column: 1 / -1;
  }

  /* With the picture open, the family, theme and year labels go, so the buttons still fit on the screen. */
  .alpt-panel:has(.alpt-panel__tile.is-flipped) .alpt-panel__labels {
    display: none;
  }
}

/* A note for teachers ("teacher_note" in elements.json), at the top of Classroom notes & resources. */
.alpt-panel__teacher {
  margin: 0.4rem 0 0.6rem;
  padding: 0.6rem 0.75rem;
  border-left: 4px solid var(--fam-deep);
  background: var(--fam);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* ---- Desktops 1200–1439px: the panel is narrower than its six buttons need, so the last one used to wrap onto a
   line of its own and Picture's auto margin left a gap. Here the buttons drop their icons and tighten up so all six
   stay on one row. Wider screens keep the icons. ---- */
@media screen and (min-width: 1200px) and (max-width: 1439px) {
  .alpt .alpt-panel__nav {
    gap: 0.375rem;
  }

  .alpt .alpt-panel__nav .alpt-btn {
    padding-inline: 0.6rem;
    white-space: nowrap;
  }

  .alpt .alpt-panel__nav .alpt-links-toggle__icon,
  .alpt .alpt-panel__nav .alpt-board-btn__icon,
  .alpt .alpt-panel__nav .alpt-share-btn__icon {
    display: none;
  }
}

/* Desktops: the buttons share the whole row evenly, with no gap before Picture. */
@media screen and (min-width: 1200px) {
  .alpt .alpt-panel__nav .alpt-btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .alpt .alpt-panel__nav .alpt-flip-btn {
    margin-left: 0;
  }
}

/* ---- The full table (1200px and wider): shorter rows, and a panel compact enough to sit in them ----
   Every row takes the tallest row's height (equal fr rows), so a handful of tall cells made all 142 tiles tall and
   narrow (66 x 106px at 1280px wide): the eight four-line names, such as Recursive Self-Improvement, and the
   "How to read a tile" key. The tiles (and the key's sample) now put the number beside the symbol rather than above it, the longest names
   are a little smaller so they take three lines, and the key no longer sets the row height. The panel then has three
   shorter rows to sit in, so it is tighter too: less padding, a smaller picture tile, title and buttons. */
@media (min-width: 1200px) {
  /* Rows of at least 5.6rem (about 90px): short enough that the tiles are no longer tall and thin, tall enough that
     the panel's three rows hold a definition, its question and the fold-outs without scrolling. */
  .alpt-grid {
    grid-template-rows: repeat(8, minmax(5.6rem, 1fr)) 1.25rem repeat(3, minmax(5.6rem, 1fr));
  }

  .alpt-grid .alpt-tile {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "sym n" "name name";
    row-gap: 0.1rem;
    padding: 0.3rem 0.25rem 0.3rem 0.35rem;
  }

  .alpt-grid .alpt-tile .alpt-tile__n {
    grid-area: n;
    align-self: start;
  }

  .alpt-grid .alpt-tile .alpt-tile__sym {
    grid-area: sym;
  }

  .alpt-grid .alpt-tile .alpt-tile__name {
    grid-area: name;
  }

  .alpt-grid .alpt-tile__name--xlong {
    font-size: 0.58rem;
  }

  /* The key sits in the row's height rather than setting it. */
  .alpt-key {
    contain: size;
    overflow: hidden;
  }

  .alpt-key__text p {
    line-height: 1.2;
  }

  .alpt .alpt-panel {
    padding: 0.6rem 0.75rem;
    gap: 0.45rem 1rem;
  }

  .alpt .alpt-panel__body {
    gap: 0.3rem 1rem;
  }

  .alpt .alpt-panel__body .alpt-panel__title {
    font-size: clamp(1.15rem, 1.5vw, 1.7rem);
  }

  .alpt .alpt-panel__body .alpt-panel__def {
    font-size: clamp(0.82rem, 0.85vw, 0.98rem);
    line-height: 1.35;
  }

  .alpt .alpt-panel__body .alpt-panel__talk {
    font-size: clamp(0.76rem, 0.8vw, 0.88rem);
  }

  .alpt .alpt-panel__tile:not(.has-pic) {
    width: clamp(6rem, 8vw, 9.5rem);
  }

  /* The picture tile took the panel's full height and so grew wide with it (188px at 1280px), squeezing the words
     beside it onto more lines. A set width, with its height from its own shape. */
  .alpt .alpt-panel > .alpt-panel__tile.has-pic {
    width: clamp(7rem, 10vw, 11rem);
    height: auto;
    align-self: start;
  }

  .alpt .alpt-panel__sym {
    font-size: clamp(2.4rem, 3.6vw, 4.4rem);
  }

  .alpt .alpt-panel__nav .alpt-btn {
    min-height: 2rem;
    padding-block: 0.25rem;
    font-size: 0.8rem;
  }

  /* The two fold-outs' headings: less padding, and Classroom notes at the size of Talk about it. */
  .alpt .alpt-panel__talk > summary,
  .alpt .alpt-panel .alpt-reader-notes > summary {
    padding-block: 0.35rem;
    font-size: 0.88rem;
  }

  .alpt .alpt-panel__talk .alpt-panel__talk-q {
    margin-bottom: 0.35rem;
  }
}

/* Laptop widths: the key's sample tile goes, so its lines each fit on one line in the row's height. */
@media (min-width: 1200px) and (max-width: 1439px) {
  .alpt-key .alpt-tile--key {
    display: none;
  }
}
