/* AIR Framework and Methodology programme pages */
.framework-page .article-copy h3,
.methodology-page .article-copy h3 {
  margin: 0 0 8px;
}

.framework-term-grid,
.method-grid {
  margin: 26px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.framework-term-grid > article,
.method-grid > article {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.framework-term-grid > article {
  border-top: 4px solid var(--navy);
}

.framework-term-grid p,
.method-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.62;
}

.framework-term-grid .term-meta {
  margin: 0 0 12px;
  color: var(--link);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.air-rubric {
  margin: 28px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.air-rubric li {
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid;
  border-radius: 7px;
}

.air-rubric li:nth-child(1) { border-left-color: #003a5f; }
.air-rubric li:nth-child(2) { border-left-color: #dbc974; }
.air-rubric li:nth-child(3) { border-left-color: #c79624; }
.air-rubric li:nth-child(4) { border-left-color: #852438; }

.air-rubric strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.08rem;
}

.air-rubric p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.62;
}

.programme-table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.programme-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: .82rem;
}

.programme-table th,
.programme-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}

.programme-table th {
  background: var(--subtle);
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.programme-table tbody tr:last-child td {
  border-bottom: 0;
}

.programme-table td:first-child {
  color: var(--ink);
  font-weight: 800;
}

.protocol-steps,
.limitation-list {
  max-width: var(--reading);
  margin: 23px 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.protocol-steps li,
.limitation-list li {
  padding-left: .3rem;
  line-height: 1.68;
}

.protocol-steps li + li,
.limitation-list li + li {
  margin-top: 9px;
}

.protocol-steps strong,
.limitation-list strong {
  color: var(--ink);
}

.method-disclosure {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.method-disclosure + .method-disclosure {
  margin-top: 10px;
}

.method-disclosure summary {
  padding: 15px 18px;
  color: var(--navy);
  font-weight: 850;
  cursor: pointer;
}

.method-disclosure[open] summary {
  border-bottom: 1px solid var(--border);
}

.method-disclosure > div {
  padding: 17px 18px 19px;
}

.method-disclosure p,
.method-disclosure li {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.62;
}

.method-disclosure p:last-child,
.method-disclosure ul:last-child {
  margin-bottom: 0;
}

.method-disclosure strong {
  color: var(--ink);
}

.release-downloads {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.release-downloads a {
  min-height: 92px;
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 7px;
  text-decoration: none;
}

.release-downloads a:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.release-downloads strong {
  color: var(--navy);
}

.release-downloads span {
  color: var(--muted);
  font-size: .76rem;
}

.scope-warning {
  max-width: var(--reading);
  margin-top: 22px;
  padding: 15px 17px;
  background: color-mix(in srgb, var(--gold) 13%, var(--surface));
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.62;
}

.scope-warning strong {
  color: var(--ink);
}

.glossary-list {
  margin: 26px 0 0;
  display: grid;
  gap: 10px;
}

.glossary-list > div {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--navy);
  border-radius: 7px;
  scroll-margin-top: 175px;
}

.glossary-list dt {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 850;
}

.glossary-list dd {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.64;
}

.reference-controls {
  margin: 24px 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 12px;
}

.references-page .reference-controls {
  grid-template-columns: minmax(0, 1fr);
}

.reference-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.reference-controls input,
.reference-controls select {
  min-height: 46px;
  padding: 8px 11px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.reference-result-line {
  min-height: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: .82rem;
}

.reference-list {
  margin: 18px 0 0;
  padding-left: 1.55rem;
}

.reference-list li {
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.reference-list li + li { margin-top: 8px; }
.reference-citation { margin: 0 0 7px; color: var(--ink); }
.reference-metadata { margin: 0; color: var(--muted); font-size: .72rem; text-transform: capitalize; }
.reference-list a { display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 750; }

@media (max-width: 720px) {
  .reference-controls { grid-template-columns: 1fr; }
}

.framework-model {
  margin: 30px 0 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.framework-model figcaption {
  max-width: 78ch;
  margin-top: 18px;
  padding-top: 15px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: .84rem;
  line-height: 1.58;
}

.air-cycle-model {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.air-cycle-model li,
.tier-boundary-grid article {
  min-width: 0;
  padding: 20px;
  background: var(--page);
  border: 1px solid var(--border);
  border-top: 5px solid var(--navy);
  border-radius: 7px;
}

.air-cycle-model li:nth-child(2) { border-top-color: var(--gold); }
.air-cycle-model li:nth-child(3) { border-top-color: var(--burgundy); }
.air-cycle-model li:nth-child(4) { border-top-color: var(--blue); }

.air-cycle-model span,
.tier-boundary-grid article > span {
  color: var(--link);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.air-cycle-model h3,
.tier-boundary-grid h3 {
  margin: 13px 0 8px;
}

.air-cycle-model p,
.tier-boundary-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.6;
}

.cycle-centre-note {
  margin-top: 10px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  background: var(--pale-blue);
  border: 1px solid var(--border);
  border-radius: 7px;
  text-align: center;
}

.cycle-centre-note span {
  color: var(--muted);
}

.tier-boundary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tier-boundary-grid article:nth-child(1) { border-top-color: var(--blue); }
.tier-boundary-grid article:nth-child(2) { border-top-color: var(--gold); }
.tier-boundary-grid article:nth-child(3) { border-top-color: var(--burgundy); }

.empty-publication {
  max-width: var(--reading);
  margin-top: 24px;
  padding: 24px;
  background: var(--subtle);
  border: 1px dashed var(--border);
  border-left: 5px solid var(--navy);
  border-radius: 7px;
}

.empty-publication strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 1.05rem;
}

.empty-publication p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.roadmap-list {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  list-style: none;
}

.roadmap-list > li {
  min-width: 0;
  padding: 22px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  background: var(--surface);
}

.roadmap-list > li > span {
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 900;
}

.roadmap-list h3 {
  margin: 0 0 9px;
}

.roadmap-list ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: .87rem;
}

.roadmap-list li li + li {
  margin-top: 4px;
}

.publication-catalogue {
  margin-top: 26px;
  display: grid;
  gap: 8px;
}

.publication-catalogue details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.publication-catalogue summary {
  min-height: 64px;
  padding: 14px 17px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
}

.publication-catalogue summary span {
  font-weight: 850;
}

.publication-catalogue summary small {
  color: var(--muted);
  text-align: right;
}

.publication-catalogue details > div {
  padding: 17px;
  border-top: 1px solid var(--border);
}

.publication-catalogue details > div p {
  margin: 0;
  color: var(--muted);
}

.publication-catalogue details > div p + p {
  margin-top: 10px;
}

.book-development-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.book-development-grid article {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.book-development-grid article > span {
  color: var(--link);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.book-placeholder {
  aspect-ratio: 5 / 7;
  max-width: 150px;
  margin: 16px 0;
  display: grid;
  place-items: center;
  background: var(--subtle);
  color: var(--navy);
  border: 1px dashed var(--border);
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.book-development-grid h3 {
  margin: 0 0 8px;
}

.book-development-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
}

@media (max-width: 700px) {
  .framework-term-grid,
  .method-grid,
  .air-rubric,
  .release-downloads,
  .air-cycle-model,
  .tier-boundary-grid,
  .book-development-grid {
    grid-template-columns: 1fr;
  }

  .programme-table {
    min-width: 610px;
  }

  .roadmap-list > li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .publication-catalogue summary {
    align-items: flex-start;
  }
}

@media print {
  :root,
  html[data-theme="dark"] {
    color-scheme: light;
    --navy: #003a5f;
    --blue: #0f76d7;
    --link: #0b63b6;
    --burgundy: #852438;
    --gold: #9b7418;
    --ink: #07151e;
    --muted: #43545f;
    --page: #ffffff;
    --surface: #ffffff;
    --subtle: #eef2f5;
    --border: #aab7c0;
    --pale-blue: #e0f6ff;
    --shadow: none;
  }

  .reading-nav,
  .site-header,
  .theme-toggle,
  .menu-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #07151e;
  }

  .article-shell {
    display: block;
  }

  .method-disclosure > div,
  .figure-description > p {
    display: block !important;
  }

  .site-footer {
    margin-top: 32px;
    padding-block: 18px;
    background: #fff;
    color: #07151e;
    border-top: 1px solid #aab7c0;
  }

  .site-footer a {
    color: #003a5f;
  }

  .programme-hero,
  .article-copy > section,
  .framework-model,
  .method-disclosure,
  .programme-table-wrap {
    break-inside: avoid;
  }
}
