/*
 * CLIL AI Teacher Handbook redesign — 10 August 2026
 * Loaded after the original stylesheet so the focused six-route site remains
 * usable as a standalone static package without changing the legacy bundle.
 */

:root {
  --ink: #142b38;
  --ink-soft: #4d626d;
  --blue: #0a456f;
  --blue-deep: #062b45;
  --blue-bright: #14679f;
  --blue-pale: #e7f2f7;
  --orange: #c04c14;
  --orange-pale: #fff0e6;
  --yellow: #ffd428;
  --yellow-soft: #fff5bd;
  --green: #0b755b;
  --green-pale: #e3f4ee;
  --red: #a33d35;
  --red-pale: #fff0ee;
  --paper: #fbf9f3;
  --white: #fff;
  --mist: #edf4f6;
  --line: #c7d5da;
  --line-dark: #91a6af;
  --shadow: 0 18px 48px rgb(6 43 69 / 12%);
  --shadow-small: 0 8px 24px rgb(6 43 69 / 10%);
  --radius: 22px;
  --radius-small: 12px;
  --content: 1240px;
  --text: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  min-width: 0;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

main {
  display: block;
  min-width: 0;
  overflow: clip;
}

[hidden] {
  display: none !important;
}

img,
svg,
video,
iframe,
pre,
table {
  max-width: 100%;
}

img,
svg {
  height: auto;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.55rem, 6.1vw, 5.3rem);
  margin-bottom: 1.35rem;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 3.2rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.22rem, 2vw, 1.55rem);
}

h4 {
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

p,
li,
dd {
  text-wrap: pretty;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

a,
button,
summary,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration-thickness: .09em;
}

button,
summary,
select,
input[type="checkbox"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .62;
}

:focus-visible {
  border-radius: 3px;
  outline: 4px solid var(--orange);
  outline-offset: 4px;
}

::selection {
  background: var(--yellow);
  color: var(--blue-deep);
}

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

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

.skip-link {
  background: var(--yellow);
  border: 2px solid var(--blue-deep);
  border-radius: 8px;
  color: var(--blue-deep);
  font-weight: 900;
  left: 1rem;
  padding: .7rem 1rem;
  position: fixed;
  text-decoration: none;
  top: -6rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 1rem;
}

.section-pad {
  padding: clamp(4.5rem, 8vw, 7rem) max(5vw, calc(50vw - (var(--content) / 2)));
}

.tinted {
  background: var(--mist);
}

.eyebrow {
  color: var(--blue-bright);
  display: block;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .15em;
  line-height: 1.35;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--yellow);
}

.lede {
  color: #344e5c;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
  line-height: 1.58;
  max-width: 790px;
}

.section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  max-width: 820px;
}

.section-heading p {
  font-size: 1.1rem;
}

.button-row,
.next-actions,
.prompt-actions,
.card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.8rem;
}

.button,
.copy-prompt,
.customise-prompt,
.save-prompt,
.prompt-card button.button {
  align-items: center;
  background: var(--yellow);
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: var(--blue-deep);
  display: inline-flex;
  font-size: .88rem;
  font-weight: 900;
  gap: .55rem;
  justify-content: center;
  line-height: 1.25;
  min-height: 46px;
  padding: .78rem 1.2rem;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, transform .16s ease;
}

.button:hover,
.copy-prompt:hover,
.customise-prompt:hover,
.save-prompt:hover {
  box-shadow: 0 6px 0 rgb(6 43 69 / 14%);
  transform: translateY(-2px);
}

.button.secondary,
.customise-prompt,
.save-prompt {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.button.light {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue-deep);
}

.button.outline-light {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.button.secondary:hover,
.customise-prompt:hover,
.save-prompt:hover {
  background: var(--blue-pale);
}

.button.outline-light:hover {
  background: rgb(255 255 255 / 10%);
}

.text-link,
.article-related a,
.article-card a {
  color: var(--blue);
  font-weight: 900;
  text-decoration-line: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: .28em;
}

.text-link:hover,
.article-related a:hover,
.article-card a:hover {
  color: var(--orange);
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--blue);
  font-weight: 900;
  min-height: 44px;
  padding: .55rem .35rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .24em;
}

.text-button:hover {
  color: var(--orange);
}

/* Header and navigation */

.site-header.compact-header {
  backdrop-filter: blur(12px);
  background: rgb(251 249 243 / 96%);
  border-bottom: 1px solid rgb(10 69 111 / 15%);
  box-shadow: 0 2px 16px rgb(6 43 69 / 4%);
  min-width: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap.focused-nav {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 84px;
  padding: .65rem clamp(1.15rem, 4vw, 3.5rem);
}

.brand {
  align-items: center;
  display: flex;
  flex: 0 1 auto;
  gap: .85rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--blue-deep);
  border-radius: 8px;
  color: var(--yellow);
  display: inline-flex;
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .9rem;
  font-weight: 900;
  justify-content: center;
  letter-spacing: .02em;
  min-height: 46px;
  padding: .45rem .65rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--blue-deep);
  font-size: 1.02rem;
  line-height: 1.2;
}

.brand small {
  color: var(--ink-soft);
  font-size: .68rem;
  line-height: 1.3;
  margin-top: .12rem;
}

.desktop-nav {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: clamp(.7rem, 1.4vw, 1.45rem);
}

.desktop-nav a,
.mobile-nav nav a,
.footer-nav a,
.footer-legal a {
  color: var(--ink);
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
}

.desktop-nav a {
  padding: .75rem 0;
  position: relative;
  white-space: nowrap;
}

.desktop-nav a::after {
  background: var(--orange);
  bottom: .43rem;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .16s ease;
  width: 100%;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--blue-bright);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.mobile-nav {
  display: none;
  flex: 0 0 auto;
  position: relative;
}

.mobile-nav > summary {
  align-items: center;
  background: var(--blue-deep);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: .83rem;
  font-weight: 900;
  justify-content: center;
  list-style: none;
  min-height: 46px;
  min-width: 76px;
  padding: .65rem 1rem;
}

.mobile-nav > summary::-webkit-details-marker {
  display: none;
}

.mobile-nav > summary::after {
  content: "+";
  font-size: 1rem;
  margin-left: .45rem;
}

.mobile-nav[open] > summary::after {
  content: "−";
}

.mobile-nav nav {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  display: grid;
  min-width: min(300px, calc(100vw - 2rem));
  padding: .65rem;
  position: absolute;
  right: 0;
  top: calc(100% + .65rem);
}

.mobile-nav nav a {
  border-radius: 8px;
  font-size: .9rem;
  min-height: 44px;
  padding: .65rem .75rem;
}

.mobile-nav nav a:hover,
.mobile-nav nav a[aria-current="page"] {
  background: var(--blue-pale);
  color: var(--blue);
}

/* Shared page openings */

.page-hero.focused-hero {
  background:
    radial-gradient(circle at 95% 8%, rgb(255 212 40 / 38%) 0 7rem, transparent 7.1rem),
    linear-gradient(135deg, var(--paper), #f1f7f8);
  display: block;
  min-height: 0;
}

.focused-hero .page-hero-copy {
  max-width: 940px;
}

.example-callout {
  background: var(--white);
  border-left: 6px solid var(--orange);
  box-shadow: var(--shadow-small);
  margin-top: 2rem;
  max-width: 850px;
  padding: 1.2rem 1.35rem;
}

.example-callout strong {
  color: var(--blue-deep);
  display: block;
  font-size: .78rem;
  letter-spacing: .08em;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

/* Homepage */

.home-hero {
  align-items: center;
  background:
    radial-gradient(circle at 92% 10%, rgb(255 212 40 / 54%) 0 10rem, transparent 10.1rem),
    var(--paper);
  display: grid;
  gap: clamp(3rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .72fr);
  min-height: 650px;
  overflow: clip;
}

.hero-copy,
.hero-route-card {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 890px;
}

.primary-actions {
  max-width: 830px;
}

.hero-route-card {
  background: var(--blue-deep);
  border-radius: var(--radius);
  box-shadow: 14px 14px 0 var(--yellow);
  color: var(--white);
  padding: clamp(1rem, 2.8vw, 1.8rem);
}

.hero-route-card ol {
  margin: 0;
  padding: 0;
}

.hero-route-card li + li {
  border-top: 1px solid rgb(255 255 255 / 18%);
}

.hero-route-card a {
  align-items: center;
  display: grid;
  gap: .18rem 1rem;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 1.2rem .35rem;
  text-decoration: none;
}

.hero-route-card a > span {
  align-items: center;
  background: var(--yellow);
  border-radius: 50%;
  color: var(--blue-deep);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 900;
  grid-row: 1 / 3;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.hero-route-card strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.25;
}

.hero-route-card small {
  color: #c9dce5;
  font-size: .78rem;
  line-height: 1.45;
}

.hero-route-card a:hover strong,
.hero-route-card a:hover small {
  color: var(--yellow);
}

.compact-intro {
  align-items: start;
  background: var(--white);
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

.compact-intro .section-heading {
  margin-bottom: 0;
}

.compact-intro > div:last-child > p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.72;
}

.practical-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.practical-grid article {
  border-top: 5px solid var(--blue);
  min-width: 0;
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.practical-grid article:first-child {
  background: var(--white);
}

.practical-grid article.featured-tool {
  background: var(--yellow-soft);
  border-color: var(--orange);
}

.practical-grid h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
}

.handbook-band {
  align-items: center;
  background: var(--blue-deep);
  color: var(--white);
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.handbook-band h2 {
  color: var(--white);
}

.handbook-band p {
  color: #d5e5ec;
  max-width: 750px;
}

.handbook-band .button-row {
  justify-content: flex-end;
  margin-top: 0;
}

.partners-section {
  background: var(--white);
}

.partner-funding {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.logo-group {
  min-width: 0;
}

.logo-group h3 {
  color: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .11em;
  margin-bottom: .8rem;
  text-transform: uppercase;
}

.logo-row {
  align-items: stretch;
  display: grid;
  gap: .75rem;
}

.partner-logo-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.funding-logo-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.logo-card {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  min-height: 92px;
  min-width: 0;
  padding: .8rem;
}

.logo-card img,
.logo-card svg {
  max-height: 58px;
  object-fit: contain;
  width: 100%;
}

.logo-europass img,
.logo-europass svg {
  max-width: 245px;
}

.logo-volta img {
  max-width: 260px;
}

.logo-erasmus img {
  max-width: 220px;
}

.logo-funded img {
  max-width: 250px;
}

.logo-leargas img {
  max-width: 210px;
}

.funding-disclaimer {
  border-top: 1px solid var(--line);
  font-size: .8rem;
  margin-top: 2rem;
  max-width: 1040px;
  padding-top: 1rem;
}

/* CLIL essentials */

.comparison-pairs {
  display: grid;
  gap: 1.25rem;
}

.comparison-pair {
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.comparison-pair article {
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.comparison-pair article + article {
  border-left: 1px solid var(--line);
}

.comparison-pair article > span {
  display: inline-block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.comparison-pair h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.is-clil {
  background: var(--green-pale);
}

.is-clil > span {
  color: var(--green);
}

.not-clil {
  background: var(--red-pale);
}

.not-clil > span {
  color: var(--red);
}

.four-cs-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.four-cs-grid article {
  background: var(--white);
  border-top: 5px solid var(--blue);
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.four-cs-grid article:nth-child(2) {
  border-color: var(--orange);
}

.four-cs-grid article:nth-child(3) {
  border-color: var(--green);
}

.four-cs-grid article:nth-child(4) {
  border-color: var(--yellow);
}

.four-cs-grid article > span,
.triptych-grid article > span,
.three-card-grid article > span {
  color: var(--orange);
  display: block;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 1.6rem;
}

.four-cs-grid article > strong {
  color: var(--blue-deep);
  display: block;
  font-size: .75rem;
  letter-spacing: .06em;
  margin-top: 1.25rem;
  text-transform: uppercase;
}

.worked-example {
  background: var(--blue-deep);
  border-radius: var(--radius-small);
  color: var(--white);
  margin-top: 1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.worked-example h3 {
  color: var(--yellow);
}

.worked-example p {
  color: #d5e5ec;
  font-size: 1.04rem;
}

.triptych-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.triptych-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  min-width: 0;
  padding: 1.6rem;
}

.triptych-grid .example {
  background: var(--blue-pale);
  border-radius: 8px;
  color: var(--ink);
  font-size: .9rem;
  margin-top: 1.2rem;
  padding: .85rem;
}

.five-step-route {
  counter-reset: route;
  list-style: none;
  margin: 0 0 2rem;
  max-width: 920px;
  padding: 0;
}

.five-step-route li {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 1.45rem 0;
}

.five-step-route li > span {
  align-items: center;
  background: var(--yellow);
  border-radius: 50%;
  color: var(--blue-deep);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.five-step-route h3 {
  margin-bottom: .4rem;
}

.five-step-route p {
  margin-bottom: 0;
}

.prominent-action {
  margin-top: .25rem;
}

.challenge-accordion {
  border-bottom: 1px solid var(--line);
  max-width: 940px;
}

.challenge-accordion details {
  border-top: 1px solid var(--line);
  padding: 0;
}

.challenge-accordion summary {
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-weight: 700;
  list-style-position: outside;
  margin-left: 1.2rem;
  min-height: 62px;
  padding: 1rem .5rem;
}

.challenge-accordion summary::marker {
  color: var(--orange);
}

.challenge-accordion details p {
  max-width: 790px;
  padding: 0 1rem 1.4rem 1.7rem;
}

.ai-judgement {
  background: var(--blue-deep);
  color: var(--white);
}

.ai-judgement .section-heading h2 {
  color: var(--white);
}

.ai-judgement .section-heading p {
  color: #d5e5ec;
}

.judgement-columns {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.judgement-columns article {
  background: rgb(255 255 255 / 7%);
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.judgement-columns h3 {
  color: var(--yellow);
}

.judgement-columns li {
  color: #edf6f9;
  list-style: disc;
  margin: .45rem 0 .45rem 1.2rem;
}

.teacher-note {
  background: var(--yellow-soft);
  border-left: 5px solid var(--yellow);
  color: var(--blue-deep);
  margin-top: 1.4rem;
  padding: 1rem;
}

.ai-judgement .button.secondary {
  border-color: var(--white);
  color: var(--white);
}

.ai-judgement .button.secondary:hover {
  background: rgb(255 255 255 / 10%);
}

.ai-judgement .text-link {
  color: var(--white);
}

/* Application */

.app-route .section-heading {
  max-width: 890px;
}

.three-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-card-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  min-width: 0;
  padding: 1.6rem;
}

.three-card-grid article:nth-child(2) {
  border-top-color: var(--orange);
}

.three-card-grid article:nth-child(3) {
  border-top-color: var(--green);
}

.application-check {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.check-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  margin: 0;
  padding: 1.25rem 1.5rem;
}

.check-list li {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  padding: .8rem .25rem .8rem 2rem;
}

.check-list li:last-child {
  border-bottom: 0;
}

/* Handbook */

.handbook-hero {
  align-items: center;
  background: var(--yellow-soft);
  display: grid;
  gap: clamp(3rem, 7vw, 6rem);
  grid-template-columns: minmax(0, 1fr) minmax(250px, 345px);
}

.handbook-hero > div {
  min-width: 0;
}

.handbook-hero > img {
  background: var(--white);
  border-radius: 5px;
  box-shadow: var(--shadow);
  justify-self: center;
  max-height: 510px;
  object-fit: contain;
  width: auto;
}

.contents-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contents-grid a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  display: flex;
  flex-direction: column;
  min-height: 190px;
  min-width: 0;
  padding: 1.35rem;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.contents-grid a:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.contents-grid span,
.contents-grid strong,
.contents-grid small {
  display: block;
}

.contents-grid span {
  color: var(--orange);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.contents-grid strong {
  color: var(--blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.contents-grid small {
  color: var(--ink-soft);
  font-size: .82rem;
  line-height: 1.45;
  margin-top: .55rem;
}

.case-contents {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 2rem;
  padding: 0;
}

.case-contents li {
  background: var(--white);
  border-left: 4px solid var(--orange);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1rem 1.1rem;
}

.case-contents span,
.case-contents small {
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.case-contents span {
  color: var(--orange);
}

.case-contents strong {
  color: var(--blue-deep);
  line-height: 1.35;
  margin: .45rem 0 auto;
}

.case-contents small {
  color: var(--ink-soft);
  margin-top: .75rem;
}

.tool-list {
  border-top: 1px solid var(--line);
}

.tool-list article {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  padding: 1.4rem 0;
}

.tool-list h3,
.tool-list p {
  margin: 0;
}

.publication-note {
  align-items: start;
  background: var(--blue-pale);
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.publication-note h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
}

/* Prompt Library */

.application-map {
  background: var(--white);
}

.application-feature-grid,
.prompt-destination-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.application-feature-grid article,
.prompt-destination-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius-small);
  min-width: 0;
  padding: 1.35rem;
}

.application-feature-grid article:nth-child(3n + 2),
.prompt-destination-grid article:nth-child(even) {
  border-top-color: var(--orange);
}

.application-feature-grid h3,
.prompt-destination-grid h3 {
  font-size: 1.22rem;
  margin-bottom: .55rem;
}

.application-feature-grid p,
.prompt-destination-grid p {
  font-size: .9rem;
  margin: 0;
}

.prompt-route-guide {
  background: var(--white);
}

.prompt-destination-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prompt-destination-grid article > span {
  color: var(--orange);
  display: block;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}

.prompt-destination-grid code {
  background: var(--yellow-soft);
  border-radius: 4px;
  color: var(--blue-deep);
  font-weight: 900;
  padding: .1rem .35rem;
}

.adapter-note {
  align-items: baseline;
  background: var(--blue-pale);
  border-left: 5px solid var(--blue);
  display: grid;
  gap: .25rem 1.25rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
}

.adapter-note strong {
  color: var(--blue-deep);
}

.adapter-note p {
  margin: 0;
}

.prompt-hero {
  align-items: center;
  background:
    linear-gradient(115deg, var(--yellow-soft) 0 72%, var(--yellow) 72% 100%);
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) 245px;
}

.prompt-hero > div,
.prompt-hero > aside {
  min-width: 0;
}

.prompt-hero > aside {
  background: var(--blue-deep);
  border-radius: var(--radius-small);
  box-shadow: 10px 10px 0 rgb(255 255 255 / 62%);
  color: var(--white);
  padding: 1.4rem;
}

.prompt-hero aside strong,
.prompt-hero aside span,
.prompt-hero aside small {
  display: block;
}

.prompt-hero aside strong {
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1;
}

.prompt-hero aside span {
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.35;
  margin-top: .55rem;
}

.prompt-hero aside small {
  border-top: 1px solid rgb(255 255 255 / 22%);
  color: #cce0e9;
  font-size: .72rem;
  margin-top: 1rem;
  padding-top: .8rem;
}

.builder-section {
  background: var(--blue-deep);
  color: var(--white);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.builder-disclosure {
  margin: 0 auto;
  max-width: var(--content);
}

.builder-disclosure > summary {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  list-style: none;
  min-height: 84px;
}

.builder-disclosure > summary::-webkit-details-marker {
  display: none;
}

.builder-disclosure > summary > span:first-child {
  display: grid;
}

.builder-disclosure > summary .eyebrow {
  color: var(--yellow);
  margin-bottom: .4rem;
}

.builder-disclosure > summary strong {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.builder-disclosure > summary small {
  color: #c9dce5;
  margin-top: .35rem;
}

.builder-disclosure > summary > span:last-child {
  border: 2px solid var(--yellow);
  border-radius: 999px;
  color: var(--yellow);
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 900;
  padding: .65rem 1rem;
}

.builder-disclosure[open] > summary > span:last-child {
  font-size: 0;
}

.builder-disclosure[open] > summary > span:last-child::after {
  content: "Close builder";
  font-size: .8rem;
}

.prompt-builder {
  border-top: 1px solid rgb(255 255 255 / 20%);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  margin-top: 1.5rem;
  padding-top: 2rem;
}

.builder-fields {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-fields label,
.customise-fields label {
  color: var(--white);
  display: grid;
  font-size: .78rem;
  font-weight: 900;
  gap: .38rem;
  min-width: 0;
}

.builder-fields .wide-field {
  grid-column: 1 / -1;
}

.builder-fields input,
.builder-fields select,
.builder-fields textarea,
.customise-fields input,
.customise-fields select,
.customise-fields textarea,
.prompt-controls input[type="search"],
.prompt-controls select {
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 400;
  min-height: 48px;
  min-width: 0;
  padding: .65rem .75rem;
  width: 100%;
}

.builder-fields textarea,
.customise-fields textarea {
  min-height: 88px;
  resize: vertical;
}

.builder-fields input::placeholder,
.builder-fields textarea::placeholder,
.customise-fields input::placeholder,
.customise-fields textarea::placeholder,
.prompt-controls input::placeholder {
  color: #667b86;
  opacity: 1;
}

.builder-preview {
  align-self: start;
  background: var(--white);
  border-radius: var(--radius-small);
  color: var(--ink);
  min-width: 0;
  padding: 1.35rem;
  position: sticky;
  top: 7rem;
}

.builder-preview h3 {
  margin-bottom: .8rem;
}

.builder-preview .button-row {
  margin-top: 1rem;
}

.quick-collections {
  background: var(--white);
}

.prompt-discovery {
  background: var(--white);
}

.compact-collections {
  border-top: 1px solid var(--line);
  margin-top: clamp(1.75rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.compact-collections .section-heading {
  margin-bottom: 1.25rem;
}

.collection-grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collection-grid button {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  color: var(--blue-deep);
  font-weight: 900;
  line-height: 1.4;
  min-height: 86px;
  min-width: 0;
  padding: .9rem 1rem;
  text-align: left;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.collection-grid button:hover,
.collection-grid button[aria-pressed="true"],
.collection-grid button.is-active,
.collection-grid button.active {
  background: var(--yellow-soft);
  border-color: var(--orange);
  box-shadow: var(--shadow-small);
  transform: translateY(-2px);
}

.prompt-library-section {
  background: var(--mist);
}

.prompt-controls {
  align-items: end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(230px, 1.4fr) repeat(4, minmax(135px, .7fr));
  padding: 1.2rem;
}

.prompt-controls > label {
  color: var(--blue-deep);
  display: grid;
  font-size: .72rem;
  font-weight: 900;
  gap: .35rem;
  min-width: 0;
}

.prompt-controls .saved-toggle {
  align-items: center;
  background: var(--blue-pale);
  border-radius: 8px;
  display: flex;
  gap: .55rem;
  min-height: 48px;
  padding: .6rem .75rem;
}

.saved-toggle input {
  accent-color: var(--blue);
  height: 1.15rem;
  width: 1.15rem;
}

.prompt-controls > .saved-toggle,
.prompt-controls > .text-button {
  grid-row: 2;
}

.prompt-controls > .saved-toggle {
  grid-column: 1 / 2;
  justify-self: start;
}

.prompt-controls > .text-button {
  grid-column: 5 / 6;
  justify-self: end;
}

.active-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  min-height: 1rem;
  padding-top: 1rem;
}

.active-filter,
.filter-chip,
.active-filters button {
  align-items: center;
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: .72rem;
  font-weight: 900;
  gap: .45rem;
  min-height: 36px;
  padding: .42rem .7rem;
}

.filter-chip-value {
  color: var(--yellow);
}

.active-filter::after {
  color: var(--yellow);
  content: "×";
  font-size: 1rem;
  line-height: 1;
}

.library-status {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 700;
  margin: 1.2rem 0;
}

.prompt-results {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.prompt-results[aria-busy="true"] {
  min-height: 220px;
  position: relative;
}

.prompt-results[aria-busy="true"]::before {
  animation: prompt-pulse 1.3s ease-in-out infinite;
  background: linear-gradient(90deg, #dce8ec, var(--white), #dce8ec);
  background-size: 200% 100%;
  border-radius: var(--radius);
  content: "";
  inset: 0 auto auto 0;
  min-height: 200px;
  position: absolute;
  width: min(100%, 590px);
}

@keyframes prompt-pulse {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.prompt-card,
.subject-prompt-result {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.prompt-card:target {
  box-shadow: 0 0 0 5px var(--yellow), var(--shadow);
}

.prompt-card.is-saved,
.prompt-card[data-saved="true"] {
  border-color: var(--orange);
  box-shadow: inset 0 5px 0 var(--orange);
}

.prompt-card-header,
.prompt-card > header,
.subject-prompt-result > header {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1.35rem;
}

.prompt-card h3,
.prompt-card-title,
.subject-prompt-result h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin: 0;
}

.prompt-card-title {
  min-width: 0;
}

.prompt-use-in,
.prompt-purpose,
.prompt-kicker {
  color: var(--orange);
  display: block;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin-bottom: .55rem;
  text-transform: uppercase;
}

.prompt-when,
.prompt-card .use-when,
.prompt-context {
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.52;
  margin: 0;
}

.prompt-context {
  padding: 1.1rem 1.35rem 0;
}

.prompt-meta,
.subject-prompt-meta,
.tag-list,
.prompt-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.subject-prompt-meta {
  padding: 1rem 1.35rem 0;
}

.prompt-meta {
  align-items: baseline;
  display: grid;
  gap: .35rem .75rem;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  padding: 1rem 1.35rem 0;
}

.prompt-meta dt {
  color: var(--blue-deep);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.prompt-meta dd {
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.4;
  margin: 0;
  min-width: 0;
}

.tag-list,
.prompt-tags {
  padding: .9rem 1.35rem 0;
}

.tag,
.prompt-tag,
.prompt-meta span,
.subject-prompt-meta span,
.subject-prompt-meta a {
  background: var(--blue-pale);
  border-radius: 999px;
  color: var(--blue);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1.2;
  padding: .38rem .58rem;
  text-decoration: none;
}

.prompt-card details {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.prompt-text-wrap {
  min-width: 0;
}

.prompt-text-wrap h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  margin: 1.1rem 1.35rem .45rem;
  text-transform: uppercase;
}

.prompt-card details > summary {
  color: var(--blue);
  font-size: .82rem;
  font-weight: 900;
  min-height: 46px;
  padding: .75rem 1.35rem;
}

.prompt-text,
.prompt-card pre,
.builder-preview pre,
.customise-layout pre {
  background: #f5f8f8;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: .84rem;
  line-height: 1.62;
  margin: 0;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 1.25rem 1.35rem;
  tab-size: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

.builder-preview pre,
.customise-layout pre {
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 520px;
  min-height: 190px;
}

mark.placeholder,
.placeholder,
.prompt-placeholder {
  background: var(--yellow);
  border-radius: 3px;
  color: var(--blue-deep);
  font-weight: 900;
  padding: .05em .14em;
}

.prompt-check,
.teacher-check {
  background: var(--yellow-soft);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .84rem;
  margin-top: auto;
  padding: 1rem 1.35rem;
}

.prompt-check strong,
.teacher-check strong {
  color: var(--blue-deep);
  display: block;
  font-size: .7rem;
  letter-spacing: .08em;
  margin-bottom: .25rem;
  text-transform: uppercase;
}

.prompt-check p,
.teacher-check p {
  margin: 0;
}

.prompt-actions,
.card-actions {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 0;
  padding: 1rem 1.35rem 1.25rem;
}

.prompt-card-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  justify-content: space-between;
  margin-top: 0;
  padding: 1rem 1.35rem 1.25rem;
}

.prompt-card-footer .prompt-actions {
  border: 0;
  margin: 0;
  padding: 0;
}

.prompt-card-footer > small {
  color: var(--ink-soft);
  font-size: .7rem;
  line-height: 1.35;
  max-width: 190px;
}

.prompt-actions button,
.card-actions button,
.prompt-card-footer button {
  font-size: .76rem;
  min-height: 42px;
  padding: .62rem .85rem;
}

.save-prompt[aria-pressed="true"],
.save-prompt.is-saved,
.prompt-card.is-saved .save-prompt {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.copy-prompt.is-copied,
.button.is-copied,
[data-copy].is-copied {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.empty-state,
.error-state,
.loading-state {
  background: var(--yellow-soft);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius-small);
  margin-top: 1rem;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.error-state {
  background: var(--red-pale);
  border-color: var(--red);
}

.library-error {
  background: var(--red-pale);
  border-left: 6px solid var(--red);
  border-radius: var(--radius-small);
  color: var(--ink);
  grid-column: 1 / -1;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.library-error a,
.library-error button {
  color: var(--blue);
  font-weight: 900;
}

.empty-state h2,
.empty-state h3,
.error-state h2,
.error-state h3 {
  font-size: 1.55rem;
  margin-bottom: .45rem;
}

.library-more {
  margin-top: 2rem;
  text-align: center;
}

.customise-dialog {
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 30px 100px rgb(1 24 39 / 35%);
  color: var(--ink);
  margin: auto;
  max-height: min(90vh, 900px);
  max-width: min(1120px, calc(100vw - 2rem));
  overflow: auto;
  padding: 0;
  width: 100%;
}

.customise-dialog::backdrop {
  backdrop-filter: blur(4px);
  background: rgb(2 27 44 / 72%);
}

.dialog-close-form {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: .65rem .75rem 0;
}

.dialog-close {
  align-items: center;
  background: var(--blue-deep);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  font-size: 1.45rem;
  height: 44px;
  justify-content: center;
  line-height: 1;
  width: 44px;
}

.customise-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
}

.customise-layout > div {
  min-width: 0;
}

.customise-layout h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.customise-fields {
  display: grid;
  gap: .9rem;
}

.customise-fields label {
  color: var(--blue-deep);
}

.customise-layout > div:last-child > .button {
  margin-top: 1rem;
}

/* Blog and long-form articles */

.article-grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
}

.article-card.featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr;
}

.article-card img {
  aspect-ratio: 16 / 10;
  background: var(--mist);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.article-card > div {
  align-items: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.article-card > div > span {
  color: var(--orange);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-card h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  margin: 1rem 0 .65rem;
}

.article-card a {
  margin-top: auto;
  padding-top: .5rem;
}

.longform {
  background: var(--white);
}

.article-hero {
  align-items: center;
  background: var(--mist);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
}

.article-hero > div,
.article-hero > img {
  min-width: 0;
}

.article-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}

.article-hero img {
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 8px solid var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.byline,
.article-source-note {
  color: var(--orange);
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.55;
}

.article-body {
  margin: 0 auto;
  max-width: 870px;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 2.5rem) clamp(5rem, 9vw, 8rem);
}

.article-body section + section {
  margin-top: 3.2rem;
}

.article-body h2 {
  border-top: 1px solid var(--line);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  margin: 0 0 1.2rem;
  padding-top: 1.8rem;
}

.article-body p,
.article-body li {
  color: #314b59;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  line-height: 1.82;
}

.article-body ul,
.article-body ol {
  margin: 1rem 0;
  padding-left: 1.35rem;
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: .55rem;
}

.article-related {
  background: var(--yellow-soft);
  border-left: 6px solid var(--yellow);
  display: grid;
  gap: .75rem;
  margin-top: 3.5rem;
  padding: 1.35rem 1.5rem;
}

.article-related > strong {
  color: var(--blue-deep);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Legal, accessibility and missing-page content */

.prose-page,
.error-page {
  margin-left: auto;
  margin-right: auto;
  max-width: none;
}

.prose-page > * {
  max-width: var(--text);
}

.prose-page h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-top: 2.8rem;
}

.prose-page p,
.prose-page li {
  font-size: 1.06rem;
}

.prose-page ul,
.prose-page ol {
  margin: 1rem 0;
  padding-left: 1.35rem;
}

.prose-page ul {
  list-style: disc;
}

.prose-page ol {
  list-style: decimal;
}

.prose-page li {
  color: var(--ink-soft);
  margin-bottom: .55rem;
}

.error-page {
  min-height: 560px;
  text-align: center;
}

.error-page .lede {
  margin-left: auto;
  margin-right: auto;
}

.error-page .button-row {
  justify-content: center;
}

/* Footer */

.site-footer.focused-footer {
  background: #031f32;
  color: var(--white);
}

.footer-main.focused-footer-main {
  align-items: start;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(170px, .75fr) minmax(150px, .55fr);
  margin: 0 auto;
  max-width: 1440px;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem) 2.5rem;
}

.footer-project,
.footer-nav,
.footer-legal {
  min-width: 0;
}

.footer-project h2 {
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  max-width: 650px;
}

.footer-project p {
  color: #c2d6df;
  font-size: .82rem;
  overflow-wrap: anywhere;
}

.footer-nav,
.footer-legal {
  display: grid;
  gap: .25rem;
}

.footer-nav a,
.footer-legal a {
  border-radius: 6px;
  color: #e1edf2;
  min-height: 38px;
  padding: .45rem .55rem;
}

.footer-nav a:hover,
.footer-legal a:hover {
  background: rgb(255 255 255 / 8%);
  color: var(--yellow);
}

.footer-logos {
  border-top: 1px solid rgb(255 255 255 / 15%);
  margin: 0 auto;
  max-width: 1440px;
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem);
}

.footer-logos .partner-funding.compact {
  gap: 1.5rem;
}

.footer-logos .logo-group h3 {
  color: #c9dce5;
}

.footer-logos .logo-row {
  gap: .55rem;
}

.footer-logos .logo-card {
  border: 0;
  min-height: 72px;
  padding: .6rem;
}

.footer-logos .logo-card img,
.footer-logos .logo-card svg {
  max-height: 45px;
}

.funding-row {
  border-top: 1px solid rgb(255 255 255 / 15%);
  display: block;
  margin: 0 auto;
  max-width: 1440px;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 2rem;
}

.funding-row p {
  color: #bcd0da;
  font-size: .73rem;
  line-height: 1.55;
  margin: 0;
  max-width: 1050px;
}

/* Mid-size navigation and layouts */

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .prompt-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prompt-controls .search-field {
    grid-column: 1 / -1;
  }

  .prompt-controls > .saved-toggle,
  .prompt-controls > .text-button {
    grid-row: auto;
  }

  .prompt-controls > .saved-toggle {
    grid-column: 1 / 2;
  }

  .prompt-controls > .text-button {
    grid-column: 3 / 4;
  }

  .prompt-builder {
    grid-template-columns: 1fr;
  }

  .builder-preview {
    position: static;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .prompt-destination-grid,
  .application-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    gap: 3.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr);
  }

  .partner-funding,
  .footer-logos .partner-funding.compact {
    grid-template-columns: 1fr;
  }

  .contents-grid,
  .case-contents {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-results {
    grid-template-columns: 1fr;
  }

  .footer-main.focused-footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-project {
    grid-column: 1 / -1;
  }
}

/* Tablet and phones */

@media (max-width: 768px) {
  html {
    scroll-padding-top: 6rem;
  }

  body {
    font-size: 16px;
  }

  .section-pad {
    padding: 4.3rem 1.25rem;
  }

  .nav-wrap.focused-nav {
    gap: 1rem;
    min-height: 76px;
    padding: .55rem 1rem;
  }

  .brand small {
    display: none;
  }

  .home-hero,
  .compact-intro,
  .practical-grid,
  .handbook-band,
  .comparison-pair,
  .four-cs-grid,
  .triptych-grid,
  .judgement-columns,
  .three-card-grid,
  .application-check,
  .handbook-hero,
  .publication-note,
  .prompt-hero,
  .customise-layout,
  .article-grid,
  .article-card.featured,
  .article-hero {
    grid-template-columns: 1fr;
  }

  .prompt-destination-grid,
  .application-feature-grid,
  .adapter-note {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: 0;
    padding-top: 4rem;
  }

  .hero-route-card {
    box-shadow: 9px 9px 0 var(--yellow);
    margin-right: .55rem;
  }

  .compact-intro .section-heading {
    margin-bottom: 0;
  }

  .handbook-band .button-row {
    justify-content: flex-start;
  }

  .funding-logo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funding-logo-row .logo-leargas {
    grid-column: 1 / -1;
  }

  .comparison-pair article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .triptych-grid,
  .three-card-grid {
    gap: .8rem;
  }

  .contents-grid,
  .case-contents {
    grid-template-columns: 1fr;
  }

  .contents-grid a {
    min-height: 0;
  }

  .tool-list article {
    gap: .55rem;
    grid-template-columns: 1fr;
  }

  .handbook-hero > img {
    justify-self: start;
    max-height: 460px;
    max-width: min(330px, 88vw);
  }

  .prompt-hero {
    background: var(--yellow-soft);
  }

  .prompt-hero > aside {
    max-width: 360px;
  }

  .builder-disclosure > summary {
    align-items: flex-start;
  }

  .builder-disclosure > summary > span:last-child {
    margin-top: .2rem;
  }

  .builder-fields {
    grid-template-columns: 1fr;
  }

  .builder-fields .wide-field {
    grid-column: auto;
  }

  .prompt-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prompt-controls .search-field {
    grid-column: 1 / -1;
  }

  .prompt-controls > .saved-toggle {
    grid-column: 1 / 2;
  }

  .prompt-controls > .text-button {
    grid-column: 2 / 3;
  }

  .article-card,
  .article-card.featured {
    grid-column: auto;
  }

  .article-card.featured {
    grid-template-rows: auto 1fr;
  }

  .article-card img,
  .article-card.featured img {
    height: auto;
  }

  .footer-main.focused-footer-main {
    grid-template-columns: 1fr;
  }

  .footer-project {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .section-pad {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .prompt-hero {
    gap: 1.5rem;
    padding-bottom: 2.75rem;
    padding-top: 2.75rem;
  }

  .prompt-hero > aside {
    display: grid;
    gap: .25rem 1rem;
    grid-template-columns: auto minmax(0, 1fr);
    max-width: none;
    padding: 1rem;
    width: 100%;
  }

  .prompt-hero aside strong {
    align-self: center;
    grid-row: 1 / 3;
  }

  .prompt-hero aside span {
    margin-top: 0;
  }

  .prompt-hero aside small {
    grid-column: 1 / -1;
    margin-top: .6rem;
    padding-top: .6rem;
  }

  .prompt-discovery {
    padding-top: 3rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12.8vw, 3.65rem);
  }

  .brand {
    gap: .55rem;
  }

  .brand-mark {
    font-size: .78rem;
    min-height: 42px;
    padding: .4rem .52rem;
  }

  .brand strong {
    font-size: .86rem;
    max-width: 116px;
  }

  .mobile-nav > summary {
    min-height: 44px;
    min-width: 68px;
    padding: .55rem .75rem;
  }

  .button-row,
  .next-actions,
  .prompt-actions,
  .card-actions,
  .prompt-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row > .button,
  .next-actions > .button,
  .prompt-actions > button,
  .card-actions > button,
  .prompt-card-footer > button {
    width: 100%;
  }

  .button-row > .text-link,
  .next-actions > .text-link {
    align-self: flex-start;
    padding: .65rem .15rem;
  }

  .hero-route-card a {
    gap: .18rem .8rem;
    padding: 1rem .15rem;
  }

  .partner-logo-row,
  .funding-logo-row {
    grid-template-columns: 1fr;
  }

  .funding-logo-row .logo-leargas {
    grid-column: auto;
  }

  .logo-card {
    min-height: 82px;
  }

  .five-step-route li {
    gap: .85rem;
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .five-step-route li > span {
    font-size: 1.05rem;
    height: 42px;
    width: 42px;
  }

  .builder-disclosure > summary {
    display: grid;
    gap: 1rem;
  }

  .builder-disclosure > summary > span:last-child {
    justify-self: start;
  }

  .collection-grid,
  .prompt-controls {
    grid-template-columns: 1fr;
  }

  .prompt-controls .search-field,
  .prompt-controls > .saved-toggle,
  .prompt-controls > .text-button {
    grid-column: auto;
  }

  .prompt-controls > .text-button {
    justify-self: start;
  }

  .prompt-card-header,
  .prompt-card > header,
  .subject-prompt-result > header {
    grid-template-columns: 1fr;
  }

  .prompt-actions,
  .card-actions,
  .prompt-card-footer {
    align-items: stretch;
  }

  .customise-dialog {
    border-radius: 0;
    height: 100dvh;
    max-height: none;
    max-width: none;
    width: 100vw;
  }

  .customise-layout {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-body {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-logos .partner-funding.compact {
    gap: 1rem;
  }
}

/* Motion and high-contrast preferences */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .button,
  .copy-prompt,
  .customise-prompt,
  .save-prompt,
  .brand-mark,
  .active-filter,
  .filter-chip,
  .active-filters button {
    border: 2px solid ButtonText;
  }

  .prompt-card,
  .comparison-pair,
  .contents-grid a,
  .article-card,
  .logo-card {
    border: 1px solid CanvasText;
  }
}

/* Printing favours readable source content over interactive controls. */

@media print {
  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  @page {
    margin: 1.4cm;
    size: A4;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 10pt;
    line-height: 1.45;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .button-row,
  .next-actions,
  .prompt-actions,
  .card-actions,
  .prompt-card-footer,
  .prompt-controls,
  .active-filters,
  .library-more,
  .collection-grid,
  .builder-section,
  .customise-dialog,
  .dialog-close,
  .empty-state button,
  noscript {
    display: none !important;
  }

  .section-pad,
  .article-body {
    padding: .5cm 0;
  }

  h1 {
    font-size: 28pt;
  }

  h2 {
    font-size: 20pt;
  }

  h3 {
    font-size: 13pt;
  }

  h1,
  h2,
  h3,
  h4 {
    break-after: avoid;
  }

  p,
  li {
    orphans: 3;
    widows: 3;
  }

  article,
  .prompt-card,
  .comparison-pair,
  .contents-grid a,
  .case-contents li,
  .article-card,
  .article-related {
    break-inside: avoid;
  }

  .home-hero,
  .compact-intro,
  .practical-grid,
  .handbook-band,
  .comparison-pair,
  .four-cs-grid,
  .triptych-grid,
  .judgement-columns,
  .three-card-grid,
  .application-check,
  .handbook-hero,
  .publication-note,
  .prompt-hero,
  .prompt-results,
  .contents-grid,
  .case-contents,
  .article-grid,
  .article-card.featured,
  .article-hero {
    display: block;
  }

  .hero-route-card,
  .handbook-band,
  .ai-judgement,
  .prompt-hero,
  .worked-example {
    background: #fff !important;
    border: 1px solid #777;
    color: #111;
  }

  .hero-route-card strong,
  .hero-route-card small,
  .handbook-band h2,
  .handbook-band p,
  .ai-judgement h2,
  .ai-judgement h3,
  .ai-judgement p,
  .ai-judgement li,
  .worked-example h3,
  .worked-example p {
    color: #111;
  }

  .prompt-card,
  .article-card,
  .contents-grid a,
  .case-contents li,
  .three-card-grid article,
  .four-cs-grid article,
  .triptych-grid article {
    border: 1px solid #888;
    margin-bottom: .4cm;
  }

  .prompt-text,
  .prompt-card pre {
    background: #fff;
    border: 1px solid #aaa;
    color: #111;
    font-size: 8pt;
  }

  .article-card img,
  .article-hero img,
  .handbook-hero > img {
    max-height: 8cm;
    object-fit: contain;
    width: auto;
  }

  a[href]::after {
    content: none !important;
  }
}
