/*
 * SEZMC Batch 03: Resources, Tenders, Media & Updates, the news article and
 * the photo collection page. Loaded only there (inc/pages.php), after
 * pages.css, whose tokens, type, buttons, lightbox and entrances it uses.
 *
 *  1. Shared parts (b3-): section bar, headings, filters, file links, empty
 *     states, closing band, header over the dark openings
 *  2. Resources (rs-)
 *  3. Tenders (tn-)
 *  4. Media & Updates (md-)
 *  5. News article (nw-) and photo collection (al-)
 *  6. Viewer
 *  7. Reduced motion and print
 */

/* ==========================================================================
   1. Shared parts
   ========================================================================== */

.sezmc-page {
  --ivory: #f5f1e8;
  --ivory-deep: #ece5d6;
  --line: rgba(23, 34, 29, 0.12);
}

.sezmc-page .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.b3-anchor {
  scroll-margin-top: calc(var(--sezmc-admin-offset, 0px) + var(--header) + 3.5rem);
}

.b3-muted {
  color: var(--ink-muted);
}

.b3-ext,
.b3-dl {
  flex: none;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.35em;
  vertical-align: 0.02em;
}

.b3-dl {
  margin: 0 0.4em 0 0;
}

.b3-tag {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Section bar (sticky under the header). */
.b3-bar {
  position: sticky;
  top: calc(var(--sezmc-admin-offset, 0px) + var(--sezmc-header-h-compact, 4rem));
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 249, 246, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
}

.b3-bar__list {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.b3-bar__list::-webkit-scrollbar {
  display: none;
}

.b3-bar__link {
  position: relative;
  display: block;
  padding: 1.05rem 0.85rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 200ms var(--ease);
}

.b3-bar__link::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: -1px;
  left: 0.85rem;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease);
}

.b3-bar__link:hover,
.b3-bar__link.is-current {
  color: var(--ink);
}

.b3-bar__link.is-current::after {
  transform: none;
}

/* Section headings */
.b3-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.b3-head__title {
  max-width: 20ch;
}

.b3-head__intro {
  margin-top: 1rem;
}

/* Filters */
.b3-field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.b3-field > label:not(.b3-chip),
.b3-field > legend {
  padding: 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sezmc-page .b3-field input[type="search"],
.sezmc-page .b3-field select {
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(23, 34, 29, 0.22);
  border-radius: 0.5rem;
  background: #fff;
  color: var(--ink);
  font: 500 0.9375rem/1.3 var(--sans);
  box-shadow: none;
}

.sezmc-page .b3-field select {
  padding-right: 2.25rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
}

.sezmc-page .b3-field input[type="search"]:focus,
.sezmc-page .b3-field select:focus {
  border-color: var(--teal);
  outline: 2px solid var(--teal);
  outline-offset: 0;
}

.b3-field--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.b3-field--chips > legend {
  width: 100%;
  margin-bottom: 0.4rem;
}

.b3-chip {
  position: relative;
  cursor: pointer;
}

.b3-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.b3-chip span {
  display: inline-flex;
  gap: 0.4rem;
  align-items: baseline;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(23, 34, 29, 0.18);
  border-radius: 999px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}

.b3-chip em {
  color: var(--ink-muted);
  font-style: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.b3-chip:hover span {
  border-color: var(--copper);
}

.b3-chip input:checked + span {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #fff;
}

.b3-chip input:checked + span em {
  color: rgba(255, 255, 255, 0.75);
}

.b3-chip input:focus-visible + span {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.b3-chip.is-empty span {
  opacity: 0.55;
}

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

.sezmc-page .b3-filters__apply {
  min-height: 2.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: var(--emerald);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.sezmc-page .b3-filters__apply:hover,
.sezmc-page .b3-filters__apply:focus {
  background: var(--night);
  color: #fff;
}

/* With pages-b3.js the lists filter as you type; the button is not needed. */
.b3-live .b3-filters__apply {
  display: none;
}

.b3-filters__reset {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 0.2em;
}

.b3-count {
  margin-bottom: 1rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.b3-empty {
  padding: 2rem;
  border: 1px dashed rgba(23, 34, 29, 0.28);
  border-radius: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.b3-empty--dark {
  border-color: var(--rule-dark);
  color: var(--on-dark-muted);
}

/* File and outside links */
.b3-filelink,
.b3-outlink {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 200ms var(--ease);
}

.b3-outlink {
  font-family: var(--sans);
  text-decoration-style: dotted;
}

.b3-filelink:hover,
.b3-outlink:hover {
  color: var(--copper-deep);
}

.b3-doclink {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.b3-doclink__title {
  font-weight: 600;
  line-height: 1.35;
  transition: color 200ms var(--ease);
}

.b3-doclink__meta {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.b3-doclink:hover .b3-doclink__title {
  color: var(--copper-deep);
}

/* Closing band */
.b3-closing {
  padding-block: clamp(4rem, 3rem + 4vw, 7rem);
  background: var(--emerald);
  color: var(--on-dark);
}

.b3-closing__inner {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.b3-closing__title {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  font-weight: 300;
  line-height: 1.05;
}

.b3-closing__text {
  max-width: 38rem;
  color: var(--on-dark-muted);
  line-height: 1.6;
}

.b3-closing .pg-btn--solid {
  background: var(--paper);
  color: var(--night);
}

.b3-closing .pg-btn--solid:hover {
  background: #fff;
}

/* Header over the dark openings (Tenders, Media, photo collections). */
body.sezmc-designed--tenders .sezmc-header-spacer,
body.sezmc-designed--media .sezmc-header-spacer,
body.sezmc-designed--album .sezmc-header-spacer {
  height: 0;
}

body.sezmc-designed--tenders .sezmc-header:not(.is-scrolled):not(.is-menu-open)::before,
body.sezmc-designed--media .sezmc-header:not(.is-scrolled):not(.is-menu-open)::before,
body.sezmc-designed--album .sezmc-header:not(.is-scrolled):not(.is-menu-open)::before {
  opacity: 0;
}

body.sezmc-designed--tenders .sezmc-header:not(.is-scrolled):not(.is-menu-open)::after,
body.sezmc-designed--media .sezmc-header:not(.is-scrolled):not(.is-menu-open)::after,
body.sezmc-designed--album .sezmc-header:not(.is-scrolled):not(.is-menu-open)::after {
  opacity: 1;
}

html:not(.sezmc-js) body.sezmc-designed--tenders .sezmc-header::before,
html:not(.sezmc-js) body.sezmc-designed--media .sezmc-header::before,
html:not(.sezmc-js) body.sezmc-designed--album .sezmc-header::before {
  opacity: 1 !important;
}

/* ==========================================================================
   2. Resources
   ========================================================================== */

.rs-hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(23, 34, 29, 0.03)),
    var(--ivory);
  border-bottom: 1px solid var(--line);
}

.rs-hero__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 5rem);
}

.rs-hero__title {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 2rem + 6vw, 7.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.rs-hero__lead {
  max-width: 38rem;
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

.rs-hero__search {
  display: flex;
  max-width: 36rem;
  margin-top: 2rem;
  border: 1px solid rgba(23, 34, 29, 0.22);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px -18px rgba(7, 29, 32, 0.35);
}

.sezmc-page .rs-hero__search input {
  flex: 1;
  min-width: 0;
  min-height: 3.25rem;
  margin: 0;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px 0 0 999px;
  background: transparent;
  color: var(--ink);
  font: 500 1rem var(--sans);
  box-shadow: none;
}

.sezmc-page .rs-hero__search input:focus {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}

.sezmc-page .rs-hero__search button {
  margin: 0.3rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--emerald);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.sezmc-page .rs-hero__search button:hover,
.sezmc-page .rs-hero__search button:focus {
  background: var(--night);
  color: #fff;
}

.rs-hero__note {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.rs-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: none;
}

.rs-index__item a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.9rem;
  height: 100%;
  padding: 1.35rem 1.25rem 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 250ms var(--ease);
}

.rs-index__item a:hover {
  background: rgba(255, 255, 255, 0.7);
}

.rs-index__n {
  grid-row: span 3;
  color: var(--copper-deep);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
}

.rs-index__name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.15;
}

.rs-index__desc {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.rs-index__count {
  margin-top: 0.5rem;
  color: var(--emerald);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 64em) {
  .rs-hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: end;
  }

  .rs-index {
    grid-template-columns: 1fr 1fr;
  }
}

/* Library */
.rs-library__grid {
  display: grid;
  gap: 2rem;
}

.b3-filters {
  display: grid;
  gap: 1.4rem;
  align-content: start;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.b3-filters__title {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
}

@media (min-width: 64em) {
  .rs-library__grid {
    grid-template-columns: 19rem minmax(0, 1fr);
    align-items: start;
    gap: 3rem;
  }

  .rs-library .b3-filters {
    position: sticky;
    top: calc(var(--sezmc-admin-offset, 0px) + var(--sezmc-header-h-compact, 4rem) + 4.5rem);
    max-height: calc(100vh - var(--sezmc-header-h-compact, 4rem) - 6rem);
    overflow: auto;
  }
}

.rs-docs {
  border-top: 1px solid var(--ink);
}

.rs-doc {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.rs-doc__fmt {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 4rem;
  border: 1px solid rgba(23, 34, 29, 0.2);
  border-radius: 0.2rem 0.75rem 0.2rem 0.2rem;
  background: linear-gradient(225deg, var(--ivory-deep) 0.75rem, #fff 0.75rem);
  color: var(--emerald);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.rs-doc.is-archive .rs-doc__fmt {
  color: var(--ink-muted);
}

.rs-doc__title {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.375rem);
  font-weight: 400;
  line-height: 1.25;
}

.rs-doc__title a {
  text-decoration: none;
  background-image: linear-gradient(var(--copper), var(--copper));
  background-position: 0 100%;
  background-size: 0 1px;
  background-repeat: no-repeat;
  transition: background-size 400ms var(--ease);
}

.rs-doc__title a:hover {
  background-size: 100% 1px;
}

.rs-doc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  margin-top: 0.45rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.rs-doc__meta > span + span::before {
  content: "·";
  margin: 0 0.5rem;
  color: var(--silt);
}

.rs-doc__state {
  color: var(--copper-deep);
  font-weight: 700;
}

.rs-doc__desc {
  max-width: 44rem;
  margin-top: 0.6rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.rs-doc__actions {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-top: 0.25rem;
}

.rs-doc__open {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--emerald);
  border-radius: 999px;
  color: var(--emerald);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}

.rs-doc__open:hover {
  background: var(--emerald);
  color: #fff;
}

.rs-doc__note {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.rs-doc__dl {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.rs-doc__held {
  font-style: italic;
}

@media (min-width: 48em) {
  .rs-doc {
    grid-template-columns: 3.25rem minmax(0, 1fr) 12rem;
  }

  .rs-doc__actions {
    flex-direction: column;
    grid-column: 3;
    grid-row: 1;
    align-items: flex-end;
    margin-top: 0;
    text-align: right;
  }
}

/* Laws: the statute register */
.rs-laws {
  background: #fff;
}

.rs-statutes {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ink);
  font-size: 0.9375rem;
}

.sezmc-page .rs-statutes th,
.sezmc-page .rs-statutes td {
  padding: 1.15rem 1rem 1.15rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  text-align: left;
  vertical-align: top;
}

.sezmc-page .rs-statutes thead th {
  padding-block: 0.8rem;
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rs-statutes__title {
  display: block;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.3;
}

.rs-statutes__desc {
  display: block;
  max-width: 36rem;
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
}

@media (max-width: 63.99em) {
  .rs-statutes thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .rs-statutes,
  .rs-statutes tbody,
  .rs-statutes tr,
  .rs-statutes th,
  .rs-statutes td {
    display: block;
  }

  .rs-statutes tr {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
  }

  .sezmc-page .rs-statutes th,
  .sezmc-page .rs-statutes td {
    padding: 0.2rem 0;
    border: 0;
  }

  .sezmc-page .rs-statutes td {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 0.75rem;
    font-size: 0.875rem;
  }

  .sezmc-page .rs-statutes td::before {
    content: attr(data-label);
    color: var(--ink-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .sezmc-page .rs-statutes th {
    margin-bottom: 0.6rem;
  }
}

/* Policies */
.rs-policies__grid {
  display: grid;
  gap: 2rem;
}

.rs-policy-list {
  display: grid;
  gap: 1rem;
}

.rs-policy {
  display: grid;
  gap: 0.6rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.rs-policy__issuer {
  color: var(--copper-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rs-policy__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.rs-policy__desc {
  color: var(--ink-muted);
  line-height: 1.55;
}

.rs-policy__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 0.4rem;
}

@media (min-width: 64em) {
  .rs-policies__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .rs-policy-list {
    grid-template-columns: 1fr 1fr;
  }
}

/* Project documents */
.rs-projects {
  background: var(--concrete);
}

.rs-projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.rs-project {
  padding: 1.5rem 1.5rem 0.75rem;
  border-radius: 1rem;
  background: var(--paper);
}

.rs-project__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--emerald);
}

.rs-project__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.rs-project__page {
  font-size: 0.8125rem;
}

.rs-project__docs li:last-child .b3-doclink {
  border-bottom: 0;
}

.rs-projects__note {
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* Annual accounts: the ledger */
.rs-ledger {
  display: grid;
  grid-auto-columns: minmax(11.5rem, 1fr);
  grid-auto-flow: column;
  gap: 0;
  margin-inline: -1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--ink);
  scroll-snap-type: x proximity;
}

.rs-ledger__year {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 1rem 1rem 0;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
}

.rs-ledger__year:last-child {
  border-right: 0;
}

.rs-ledger__fy {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 300;
  font-variant-numeric: lining-nums tabular-nums;
}

.rs-ledger__card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  color: var(--ink);
  text-decoration: none;
}

.rs-ledger__cover {
  display: grid;
  place-items: center;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.2rem;
  background: linear-gradient(160deg, #fff, var(--ivory));
  box-shadow: 0 18px 30px -24px rgba(7, 29, 32, 0.5);
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}

.rs-ledger__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rs-ledger__mono {
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
}

.rs-ledger__card:hover .rs-ledger__cover {
  transform: translateY(-4px);
  box-shadow: 0 26px 36px -24px rgba(7, 29, 32, 0.55);
}

.rs-ledger__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.rs-ledger__meta {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

/* Withheld statements (3.6.0, 2026-11-04): the card keeps its look but is
   a '#' placeholder: not clickable, no hover lift, no download note. */
.rs-ledger__card.is-withheld {
  cursor: default;
  pointer-events: none;
}

.rs-ledger__card.is-withheld .rs-ledger__meta {
  font-style: italic;
}

.rs-ledger__year.is-gap .rs-ledger__fy {
  color: var(--silt);
}

.rs-ledger__gap {
  display: grid;
  align-self: start;
  width: 100%;
  place-items: center;
  aspect-ratio: 210 / 297;
  padding: 1rem;
  border: 1px dashed rgba(23, 34, 29, 0.25);
  border-radius: 0.2rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
}

.rs-budget {
  max-width: 40rem;
  margin-top: 3rem;
}

.rs-budget__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

/* Applications */
.rs-apps {
  background: #fff;
}

.rs-apps__grid {
  display: grid;
  gap: 2rem;
}

.rs-apps__list {
  border-top: 1px solid var(--ink);
}

.rs-app__link {
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.rs-app__title {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.3125rem;
  line-height: 1.25;
}

.rs-app__note {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.rs-app__provider {
  color: var(--copper-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.rs-app__link:hover .rs-app__title {
  color: var(--copper-deep);
}

@media (min-width: 64em) {
  .rs-apps__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
}

/* Government links: a dark directory */
.rs-links {
  background: var(--night);
  color: var(--on-dark);
}

.rs-links .pg-intro {
  color: var(--on-dark-muted);
}

.rs-links__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 2.5rem 3rem;
}

.rs-links__title {
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rs-link {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--on-dark);
  text-decoration: none;
}

.rs-link__name {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  line-height: 1.35;
  transition: color 200ms var(--ease);
}

.rs-link__domain {
  color: var(--teal-soft);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.75rem;
}

.rs-link__note {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.rs-link:hover .rs-link__name {
  color: var(--copper);
}

/* ==========================================================================
   3. Tenders
   ========================================================================== */

.tn-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header) + clamp(3rem, 2rem + 4vw, 6rem)) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(35, 121, 111, 0.35), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--indus) 100%);
  color: var(--on-dark);
}

.tn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(242, 240, 234, 0.045) 0 1px, transparent 1px 3.25rem);
  pointer-events: none;
}

.tn-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
}

.tn-hero__title {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 2rem + 5vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.tn-hero__lead {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.tn-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
  border-top: 1px solid var(--rule-dark);
}

.tn-figures__item {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.35rem;
  padding: 1.1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--rule-dark);
}

.tn-figures dt {
  color: var(--on-dark-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.tn-figures dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.tn-figures__item--open dd {
  color: var(--copper);
}

.tn-figures__item--date dd {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 64em) {
  .tn-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
  }

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

  .tn-figures__item + .tn-figures__item {
    padding-left: 1rem;
    border-left: 1px solid var(--rule-dark);
  }
}

/* Open tenders */
.tn-open {
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}

.tn-open__title {
  margin-bottom: 2rem;
}

.tn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
}

.tn-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--copper);
  border-radius: 0.75rem;
  background: #fff;
}

.tn-card__left {
  color: var(--copper-deep);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tn-card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

.tn-card__title a {
  text-decoration: none;
}

.tn-card__facts {
  display: grid;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.tn-card__facts div {
  display: flex;
  gap: 0.75rem;
}

.tn-card__facts dt {
  min-width: 7rem;
  color: var(--ink-muted);
}

.tn-card__facts dd {
  margin: 0;
  font-weight: 600;
}

.tn-card__note {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.tn-none {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  max-width: 48rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--emerald);
  border-radius: 0.75rem;
  background: #fff;
}

.tn-none__mark {
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
}

.tn-none__text {
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Register */
.tn-register {
  padding-top: 0;
}

.tn-register__head {
  margin-bottom: 2rem;
}

.tn-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

.tn-filters .b3-field--search {
  grid-column: 1 / -1;
}

@media (min-width: 64em) {
  .tn-filters {
    grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto;
  }

  .tn-filters .b3-field--search {
    grid-column: auto;
  }
}

.tn-table__head {
  display: none;
}

.tn-year {
  margin-top: 2.5rem;
}

.tn-year__title {
  position: sticky;
  top: calc(var(--sezmc-admin-offset, 0px) + var(--sezmc-header-h-compact, 4rem));
  z-index: 5;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 300;
  font-variant-numeric: lining-nums;
}

.tn-row {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--sezmc-admin-offset, 0px) + var(--sezmc-header-h-compact, 4rem) + 4.5rem);
}

.tn-row__sum {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
}

.tn-row__sum::-webkit-details-marker {
  display: none;
}

.tn-row__main {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.5rem;
}

.tn-row__title {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  font-weight: 400;
  line-height: 1.3;
}

.tn-row__sum:hover .tn-row__title {
  color: var(--emerald);
}

.tn-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.75rem;
}

.tn-row__kind,
.tn-row__proj,
.tn-row__docs {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--concrete);
  color: var(--ink);
  font-weight: 600;
}

.tn-row__kind {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(23, 34, 29, 0.2);
}

.tn-row__docs {
  background: transparent;
  color: var(--ink-muted);
  font-weight: 500;
}

.tn-row__pub,
.tn-row__close {
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}

.tn-row__label {
  color: var(--ink-muted);
}

.tn-row__status {
  grid-column: 1;
}

.tn-row__toggle {
  grid-row: 1;
  grid-column: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(23, 34, 29, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 0.75rem 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 0.75rem no-repeat;
  transition: transform 300ms var(--ease), background-color 200ms var(--ease);
}

.tn-row[open] .tn-row__toggle {
  transform: rotate(45deg);
  background-color: var(--concrete);
}

.tn-row__main {
  grid-column: 1;
}

.tn-status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.tn-status--open {
  background: var(--emerald);
  color: #fff;
}

.tn-status--lapsed,
.tn-status--evaluation {
  background: #f6e8d9;
  color: #7a4421;
}

.tn-status--closed,
.tn-status--awarded,
.tn-status--cancelled {
  background: var(--concrete);
  color: var(--ink);
}

.tn-status--archive {
  box-shadow: inset 0 0 0 1px rgba(23, 34, 29, 0.25);
  color: var(--ink-muted);
}

.tn-revised {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--copper-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.tn-revised del {
  margin-left: 0.25rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.tn-raw {
  color: var(--copper-deep);
  font-size: 0.8125rem;
}

@media (min-width: 64em) {
  .tn-table__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 8.5rem 11.5rem 10.5rem 2.25rem;
    gap: 1.5rem;
    padding: 0 0 0.6rem;
    color: var(--ink-muted);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .tn-row__sum {
    grid-template-columns: minmax(0, 1fr) 8.5rem 11.5rem 10.5rem 2.25rem;
    gap: 1.5rem;
    align-items: start;
  }

  .tn-row__main,
  .tn-row__status {
    grid-column: auto;
  }

  .tn-row__toggle {
    grid-row: auto;
    grid-column: auto;
  }

  .tn-row__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .tn-row__pub,
  .tn-row__close,
  .tn-row__status {
    padding-top: 0.2rem;
  }
}

.tn-row__detail {
  display: grid;
  gap: 2rem;
  padding: 0.5rem 0 2rem;
}

@media (min-width: 64em) {
  .tn-row__detail {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 3rem;
  }
}

.tn-row__facts {
  display: grid;
  gap: 1rem;
  align-content: start;
  font-size: 0.875rem;
}

.tn-row__facts dl {
  display: grid;
  gap: 0.6rem;
}

.tn-row__facts dt {
  color: var(--ink-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tn-row__facts dd {
  margin: 0.15rem 0 0;
}

.tn-row__summary {
  line-height: 1.55;
}

.tn-row__link {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

/* Chronology of notices */
.tn-chron {
  position: relative;
}

.tn-chron::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.3rem;
  width: 1px;
  background: rgba(23, 34, 29, 0.18);
}

.tn-chron__item {
  position: relative;
  display: grid;
  gap: 0.35rem 1.25rem;
  padding: 0 0 1.4rem 1.75rem;
}

.tn-chron__item::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--emerald);
  border-radius: 50%;
  background: var(--paper);
}

.tn-chron__item--corrigendum::before,
.tn-chron__item--addendum::before,
.tn-chron__item.is-change::before {
  border-color: var(--copper);
  background: var(--copper);
}

.tn-chron__item--clarification::before,
.tn-chron__item--update::before {
  border-color: var(--teal);
}

.tn-chron__date {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.tn-chron__kind {
  font-size: 0.75rem;
}

.tn-kind {
  color: var(--emerald);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tn-chron__item--corrigendum .tn-kind,
.tn-chron__item--addendum .tn-kind {
  color: var(--copper-deep);
}

.tn-chron__ref {
  color: var(--ink-muted);
}

.tn-chron__title {
  font-weight: 600;
  line-height: 1.4;
}

.tn-chron__closing {
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.tn-chron__closing.is-change {
  color: var(--copper-deep);
  font-weight: 700;
}

.tn-chron__note {
  margin-top: 0.3rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.tn-nofile {
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-style: italic;
}

@media (min-width: 48em) {
  .tn-chron__item {
    grid-template-columns: 7.5rem minmax(0, 1fr) 11rem;
  }

  .tn-chron__file {
    text-align: right;
  }
}

/* Guide */
.tn-guide {
  background: var(--ivory);
}

.tn-guide__grid {
  display: grid;
  gap: 2rem;
}

.tn-guide__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.tn-guide__list div {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.tn-guide__list dt {
  font-weight: 700;
}

.tn-guide__list dd {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
}

.tn-guide__note {
  max-width: 44rem;
  margin-top: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 64em) {
  .tn-guide__grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }

  .tn-guide__list div {
    grid-template-columns: 13rem 1fr;
  }
}

/* ==========================================================================
   4. Media & Updates
   ========================================================================== */

.md-hero {
  position: relative;
  padding: calc(var(--header) + clamp(2.5rem, 2rem + 3vw, 5rem)) 0 clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(70rem 40rem at 0% 0%, rgba(11, 93, 59, 0.45), transparent 60%),
    var(--night);
  color: var(--on-dark);
}

.md-hero__mast {
  display: grid;
  gap: 1rem;
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-bottom: 1px solid var(--rule-dark);
}

.md-hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, 2rem + 5.5vw, 7rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.md-hero__lead {
  max-width: 36rem;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (min-width: 64em) {
  .md-hero__mast {
    grid-template-columns: minmax(0, 1fr) 30rem;
    align-items: end;
  }

  .md-hero__mast .pg-eyebrow {
    grid-column: 1 / -1;
  }
}

.md-front {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.md-lead {
  display: grid;
  gap: 1.5rem;
}

.md-lead__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 0.25rem;
  background: var(--night-2);
}

.md-lead__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}

.md-lead:hover .md-lead__media img {
  transform: scale(1.025);
}

.md-kind {
  display: inline-block;
  margin-right: 0.75rem;
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.md-lead__meta {
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.md-lead__title {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 300;
  line-height: 1.2;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.md-lead__title a {
  text-decoration: none;
}

.md-lead__title a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.md-wire__title {
  margin-bottom: 0.5rem;
  color: var(--on-dark-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.md-brief {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule-dark);
}

.md-brief.is-textonly {
  grid-template-columns: 1fr;
}

.md-brief__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0.2rem;
  background: var(--night-2);
}

.md-brief__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-brief__meta {
  color: var(--on-dark-muted);
  font-size: 0.75rem;
}

.md-brief__meta span::before,
.md-item__meta span::before {
  content: "·";
  margin: 0 0.4rem;
}

.md-brief__title {
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.md-brief__title a {
  text-decoration: none;
}

.md-brief__title a:hover {
  color: var(--copper);
}

@media (min-width: 64em) {
  .md-front {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 3.5rem;
  }

  .md-lead {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: end;
  }
}

/* Updates archive */
.md-years {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.md-years__link {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(23, 34, 29, 0.18);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.md-years__link span {
  margin-left: 0.25rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.md-years__link:hover {
  border-color: var(--copper);
}

.md-years__link.is-current {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #fff;
}

.md-years__link.is-current span {
  color: rgba(255, 255, 255, 0.75);
}

.md-archive {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0 2.5rem;
  border-top: 1px solid var(--ink);
}

.md-item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.md-item.is-textonly {
  grid-template-columns: 1fr;
}

.md-item__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0.2rem;
  background: var(--concrete);
}

.md-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.md-item:hover .md-item__media img {
  transform: scale(1.04);
}

.md-item__meta {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.md-item__title {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.md-item__title a {
  text-decoration: none;
}

.md-item__title a:hover {
  color: var(--emerald);
}

.md-pages {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.md-pages__step {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--emerald);
  border-radius: 999px;
  color: var(--emerald);
  font-weight: 700;
  text-decoration: none;
}

.md-pages__step:hover {
  background: var(--emerald);
  color: #fff;
}

.md-pages__now {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

/* Press and notices */
.md-news {
  background: var(--ivory);
}

.md-news__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 64em) {
  .md-news__grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.md-press__year {
  border-top: 1px solid var(--ink);
}

.md-press__year > summary {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 0;
  cursor: pointer;
  list-style: none;
}

.md-press__year > summary::-webkit-details-marker {
  display: none;
}

.md-press__y {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 300;
}

.md-press__n {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.md-press__year > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--copper-deep);
  font-size: 1.25rem;
}

.md-press__year[open] > summary::after {
  content: "−";
}

.md-press__item {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.md-press__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.md-press__meta > * + *::before {
  content: "·";
  margin: 0 0.45rem;
}

.md-press__pub {
  color: var(--copper-deep);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.md-press__title {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.35;
}

.md-press__title a {
  text-decoration: none;
}

.md-press__title a:hover {
  color: var(--emerald);
}

.md-press__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 0.45rem;
}

.md-notices {
  align-self: start;
  padding: 1.75rem;
  border-radius: 1rem;
  background: #fff;
}

.md-notices__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.md-notices__note {
  margin: 0.5rem 0 0.75rem;
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Photo gallery: photography first */
.md-photos {
  background: var(--night);
  color: var(--on-dark);
}

.md-photos .pg-intro {
  color: var(--on-dark-muted);
}

.md-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}

@media (min-width: 64em) {
  .md-albums {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md-album--lead {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.md-album__link {
  position: relative;
  display: block;
  height: 100%;
  min-height: 15rem;
  overflow: hidden;
  border-radius: 0.25rem;
  background: var(--night-2);
  color: var(--on-dark);
  text-decoration: none;
  isolation: isolate;
}

.md-album__img,
.md-album__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.md-album__img img {
  object-fit: cover;
  transition: transform 1400ms var(--ease), filter 600ms var(--ease);
}

.md-album__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(4, 16, 18, 0) 25%, rgba(4, 16, 18, 0.6) 58%, rgba(4, 16, 18, 0.94) 100%);
}

.md-album__text {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 0.35rem;
  padding: clamp(1rem, 0.8rem + 1vw, 1.75rem);
}

.md-album__when {
  color: #ecc9ad;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.md-album__title {
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.2;
}

.md-album--lead .md-album__title {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  font-weight: 300;
}

.md-album__count {
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
}

.md-album__link:hover .md-album__img img,
.md-album__link:focus-visible .md-album__img img {
  transform: scale(1.04);
}

.md-album--lead .md-album__link {
  min-height: 24rem;
}

/* Video */
.md-videos__feature {
  max-width: 64rem;
  margin-bottom: 3rem;
}

.md-video {
  margin: 0;
}

.md-video__frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 0.25rem;
  background: var(--night);
}

.md-video__frame img,
.md-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.md-video__frame img {
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 300ms var(--ease), transform 900ms var(--ease);
}

.md-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(7, 29, 32, 0.78);
  box-shadow: 0 0 0 1px rgba(242, 240, 234, 0.4);
  transform: translate(-50%, -50%);
  transition: background-color 250ms var(--ease), transform 300ms var(--ease);
}

.md-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-top: 0.6rem solid transparent;
  border-bottom: 0.6rem solid transparent;
  border-left: 0.95rem solid #fff;
  transform: translate(-50%, -50%);
}

.md-video__frame:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.md-video__frame:hover .md-video__play,
.md-video__frame:focus-visible .md-video__play {
  background: var(--copper-deep);
  transform: translate(-50%, -50%) scale(1.06);
}

.md-video__cap {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.75rem;
}

.md-video__title {
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.md-video--feature .md-video__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.md-video--feature .md-video__play {
  width: 5.5rem;
  height: 5.5rem;
}

.md-video__meta {
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.md-vgroup + .md-vgroup {
  margin-top: 2.5rem;
}

.md-vgroup__title {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
}

.md-vgroup__title span {
  margin-left: 0.5rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
}

.md-vgroup__list {
  display: grid;
  grid-auto-columns: minmax(15rem, 1fr);
  grid-auto-flow: column;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x proximity;
}

.md-vgroup__list > li {
  scroll-snap-align: start;
}

@media (min-width: 64em) {
  .md-vgroup__list {
    grid-auto-columns: calc((100% - 3 * 1.25rem) / 4);
  }
}

/* ==========================================================================
   5. News article and photo collection
   ========================================================================== */

.nw-head {
  padding: clamp(2.5rem, 2rem + 3vw, 5rem) 0 2rem;
  background: var(--ivory);
}

.nw-head__inner {
  max-width: calc(52rem + 2 * var(--gutter));
}

.nw-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.nw-crumbs a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--copper);
  text-underline-offset: 0.2em;
}

.nw-crumbs--dark,
.nw-crumbs--dark a {
  color: var(--on-dark);
}

.nw-meta {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.nw-meta > * + *::before {
  content: "·";
  margin: 0 0.5rem;
}

.nw-meta .md-kind {
  margin: 0;
  color: var(--copper-deep);
}

.nw-meta .md-kind + *::before {
  content: "";
  margin: 0 0.25rem;
}

.nw-title {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.nw-title--long {
  font-size: clamp(1.375rem, 1.15rem + 0.9vw, 2rem);
  line-height: 1.3;
}

.nw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.nw-tags li {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.nw-tags a {
  text-decoration: none;
}

.nw-figure {
  max-width: calc(64rem + 2 * var(--gutter));
  margin-top: 2rem;
}

.nw-figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.25rem;
  background: var(--concrete);
}

.nw-body {
  max-width: calc(52rem + 2 * var(--gutter));
  padding-block: 2.5rem clamp(4rem, 3rem + 3vw, 6rem);
}

.nw-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.nw-content > * + * {
  margin-top: 1.1em;
}

.nw-content a {
  color: var(--emerald);
  overflow-wrap: anywhere;
}

.nw-content h2,
.nw-content h3,
.nw-content h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.3;
}

.nw-content ul,
.nw-content ol {
  padding-left: 1.25rem;
  list-style: disc;
}

.nw-source {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--copper);
  background: #fff;
}

.nw-source__title {
  color: var(--ink-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nw-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.nw-gallery__item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 0.2rem;
  background: var(--concrete);
}

.nw-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.nw-gallery__item:hover img {
  transform: scale(1.04);
}

.nw-provenance {
  margin-top: 2.5rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.nw-next {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--ink);
}

.nw-next__link {
  display: grid;
  gap: 0.25rem;
  padding-top: 1rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.nw-next__link span {
  color: var(--copper-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nw-next__link:hover {
  color: var(--emerald);
}

@media (min-width: 48em) {
  .nw-next {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .nw-next__link--next {
    grid-column: 2;
    text-align: right;
  }
}

.nw-back {
  margin-top: 2rem;
}

/* Photo collection page */
.al-head {
  padding: calc(var(--header) + clamp(2.5rem, 2rem + 3vw, 5rem)) 0 clamp(2.5rem, 2rem + 2vw, 4rem);
  background: var(--night);
  color: var(--on-dark);
}

.al-head__when {
  color: var(--copper);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.al-head__title {
  max-width: 22ch;
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.6rem + 3vw, 4.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.al-head__desc {
  max-width: 44rem;
  margin-top: 1.25rem;
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.al-head__count {
  margin-top: 1rem;
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.al-body {
  padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(4rem, 3rem + 3vw, 6rem);
}

.al-grid {
  columns: 1;
  column-gap: 0.75rem;
}

@media (min-width: 40em) {
  .al-grid {
    columns: 2;
  }
}

@media (min-width: 64em) {
  .al-grid {
    columns: 3;
  }
}

.al-grid__item {
  margin-bottom: 0.75rem;
  break-inside: avoid;
}

.al-grid__item a {
  display: block;
  overflow: hidden;
  border-radius: 0.2rem;
  background: var(--concrete);
}

.al-grid__item img {
  width: 100%;
  transition: transform 900ms var(--ease);
}

.al-grid__item a:hover img {
  transform: scale(1.03);
}

.al-grid__cap {
  margin-top: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.al-related {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
}

@media (min-width: 64em) {
  .al-related {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}

.al-related__title {
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

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

/* ==========================================================================
   6. Viewer (collections on the Media page; same look as the lightbox)
   ========================================================================== */

.b3-viewer .pg-lightbox__title {
  position: absolute;
  top: 1.1rem;
  right: 4.5rem;
  left: 1rem;
  overflow: hidden;
  color: #c28a65;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.b3-viewer .pg-lightbox__text {
  max-width: 48rem;
}

/* ==========================================================================
   7. Reduced motion and print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .sezmc-page .md-lead__media img,
  .sezmc-page .md-item__media img,
  .sezmc-page .md-album__img img,
  .sezmc-page .md-video__frame img,
  .sezmc-page .nw-gallery__item img,
  .sezmc-page .al-grid__item img,
  .sezmc-page .rs-ledger__cover,
  .sezmc-page .tn-row__toggle,
  .sezmc-page .rs-doc__title a {
    transition: none !important;
    transform: none !important;
  }
}

@media print {
  .b3-bar,
  .b3-filters,
  .tn-filters,
  .b3-closing,
  .md-video__play,
  .rs-hero__search {
    display: none !important;
  }

  .tn-row:not([open]) .tn-row__detail {
    display: block;
  }

  .md-photos,
  .rs-links,
  .tn-hero,
  .md-hero,
  .al-head {
    background: #fff !important;
    color: #000 !important;
  }
}

/* Links on the dark bands keep their light colours on hover and focus (the
   site's default link hover is emerald, unreadable on these backgrounds). */
.md-album__link:hover,
.md-album__link:focus,
.rs-link:hover,
.rs-link:focus,
.md-video__frame:hover,
.nw-crumbs--dark a:hover,
.nw-crumbs--dark a:focus {
  color: var(--on-dark);
}

.md-lead__title a:focus,
.md-brief__title a:focus {
  color: #fff;
}
