* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; color: #0b0c0c; background: white; font: 1rem/1.5 Helvetica, Arial, sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption { margin-top: .5rem; color: #505a5f; font-size: .94rem; }
.office-header { background: var(--govuk-brand-colour, #142e3a); }
.office-header .govuk-generic-header__homepage-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.3rem;
  width: fit-content;
  max-width: 100%;
  margin-right: 0;
}
.office-header .govuk-generic-header__homepage-link:is(:hover, :active) { margin-bottom: 0; border-bottom: 0; }
.office-header .govuk-generic-header__homepage-link:hover:not(:focus) span {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: .13em;
}
.office-header img { flex: none; }
.hero { border-bottom: 1px solid #b1b4b6; background: #f4f6f6; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; padding-block: 2.5rem; }
.hero-copy { min-width: 0; }
.hero-copy h1 { margin-bottom: .75rem; }
.search { margin-top: 1.5rem; }
.search-controls { display: flex; align-items: stretch; gap: .5rem; }
.search-controls .govuk-input { min-width: 0; flex: 1; }
.search-controls .govuk-button { flex: none; width: auto; margin: 0 0 2px; }
.harbour-print img { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; object-position: 50% 58%; }
.holdings { padding-block: 2.2rem 3rem; }
.section-head, .evidence-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-head .govuk-heading-m { margin-bottom: .8rem; }
.count, .file-ref, .mono, .shelfmark { color: #505a5f; }
.catalogue-table .record-description { margin: .3rem 0 0; }
.catalogue-table .catalogue-ref { white-space: nowrap; }
.catalogue-table td:first-child { width: 65%; }
.catalogue-table .govuk-link { display: inline-block; }
.record-page { padding-block: 1.5rem 3.5rem; }
.record-page .govuk-heading-xl { margin-bottom: .7rem; }
.reading > p, .reading > .govuk-summary-list, .reading > .govuk-table, .reading > .document { max-width: 45rem; }
.reading .govuk-heading-m { margin-top: 1.5rem; }
.reading figure { max-width: 44rem; margin-block: 1rem 1.5rem; }
.reading figure img { width: 100%; height: auto; }
.record-image .image-credit { display: block; margin-top: .25rem; font-size: .875rem; }
.reading .record-image img { width: auto; max-height: 70vh; }
.file-link::after, a[download]::after, [data-test-strip][href^="/assets/"]::after {
  content: "";
  display: inline-block;
  width: .85em;
  height: .85em;
  margin-inline-start: .25em;
  background: currentColor;
  mask: url("/assets/external-link.svg") center / contain no-repeat;
}
.case-columns { display: grid; grid-template-columns: 1.12fr 1fr; align-items: start; gap: 2rem; border-top: 1px solid #b1b4b6; padding-top: 1.5rem; }
.letter, .document { margin: 1rem 0 1.5rem; padding: clamp(1rem, 2.8vw, 2rem); background: #f6f2e7; border: 1px solid #d3cdbc; }
.letter .govuk-body, .document .govuk-body { font: 1rem/1.55 "Courier New", monospace; margin-bottom: .9rem; }
.letter > :last-child, .document > :last-child { margin-bottom: 0; }
.evidence { padding: 1.25rem; border: 1px solid #b1b4b6; }
.evidence-head { color: #505a5f; font-size: .94rem; margin-bottom: .4rem; }
@font-face {
  font-family: Kalam;
  src: url("/assets/kalam-latin.woff2") format("woff2");
  font-display: swap;
}
.tape-photo { position: relative; container-type: inline-size; isolation: isolate; }
.tape-photo img { width: 100%; height: auto; }
.tape-inscription {
  position: absolute;
  left: 27%;
  right: 13%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #25264a;
  mix-blend-mode: multiply;
  font: 400 4.3cqw/1.15 Kalam, cursive;
  text-align: left;
  transform-origin: left bottom;
}
.tape-name { bottom: 75.5%; transform: rotate(-.7deg); }
.tape-number { bottom: 69.2%; font-size: 3.85cqw; transform: rotate(.35deg); }
.play-row { display: flex; align-items: baseline; gap: .8rem; margin-block: 1rem .5rem; }
.play { display: inline-flex; align-items: center; gap: .6rem; flex: none; width: auto; margin-bottom: 2px; }
.play-icon { width: 0; height: 0; border: .37rem solid transparent; border-right: 0; border-left: .57rem solid currentColor; }
[data-state="playing"] .play-icon { width: .62rem; height: .78rem; border: 0; border-inline: 3px solid currentColor; }
.tape-title { overflow-wrap: anywhere; }
.tape-status { margin: .4rem 0; }
.sleeve { position: relative; isolation: isolate; margin-top: 1.2rem; padding: 1rem; border: 1px solid #b6a78b; background: #d4c6a7; }
.sleeve::before { content: ""; position: absolute; inset: 1.2rem 1.4rem .85rem .7rem; z-index: -1; background: #93b0c2; transform: rotate(2deg); }
.sleeve summary, .under-label { display: grid; gap: .25rem; position: relative; padding: .65rem .9rem; font: .9rem/1.35 "Courier New", monospace; }
.sleeve summary {
  cursor: pointer;
  list-style: none;
  background: linear-gradient(135deg, #fff9e9 0 calc(100% - 14px), #d3c5a7 calc(100% - 13px), transparent calc(100% - 5px));
  transform: rotate(-1deg);
  box-shadow: 0 1px 2px #403c2b44;
}
.sleeve summary::-webkit-details-marker { display: none; }
.sleeve summary:focus-visible { outline: 3px solid #ffdd00; box-shadow: 0 0 0 5px #0b0c0c; }
.sleeve summary strong { font-size: 1.1rem; }
.sleeve[open] summary { transform: translate(.2rem,-.15rem) rotate(-2deg); }
.under-label { background: #b5cbda; margin-top: .8rem; }
.site-footer { background: #f3f4f4; border-top: 1px solid #b1b4b6; padding-block: 1.5rem; }
.site-footer p { margin: 0; }
@media (max-width: 40.0624rem) {
  .office-header .govuk-generic-header__homepage-link { font-size: 1.4rem; line-height: 1.2; min-height: 2.5rem; }
  .hero-inner, .case-columns { grid-template-columns: 1fr; gap: 1.2rem; }
  .hero-inner { padding-block: 1.5rem; }
  .harbour-print img { aspect-ratio: 2.6; }
  .holdings, .record-page { padding-block: 1.35rem 2rem; }
  .catalogue-table td:first-child { width: auto; }
  .catalogue-table .govuk-table__cell, .catalogue-table .govuk-table__header { padding-right: .45rem; }
  .catalogue-table .catalogue-ref { white-space: normal; overflow-wrap: anywhere; }
  .evidence { padding: 1rem; }
}
