/* RNPSA: Royal Navy blue with red and sage accents sampled from the RNPS crest. */
:root {
    --navy: #00163b;
    --navy-deep: #00163b;
    --paper: #ffffff;
    --ink: #00163b;
    --muted: #40445e;
    --accent: #848f77;
    --crest-red: #ac0527;
    --crest-green-ink: #526047;
    --line: #d3d5e1;
    --serif: Georgia, "Times New Roman", serif;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Instrument Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
* {
    box-sizing: border-box;
}
[hidden],
.hidden {
    display: none !important;
}
a,
button {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--crest-red);
    outline-offset: 5px;
}
.skip-link {
    position: absolute;
    left: 20px;
    top: -100px;
    padding: 12px 20px;
    background: white;
    color: var(--navy);
    z-index: 100;
}
.skip-link:focus {
    top: 12px;
}
.site-wrap {
    width: min(1280px, calc(100% - 112px));
    margin-inline: auto;
}
.site-header {
    background: var(--paper);
    color: var(--navy);
}
.masthead {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 17px;
    text-decoration: none;
    flex-shrink: 0;
}
.brand img {
    width: 43px;
    height: 67px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.brand > span {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: -0.45px;
}
.brand-subtitle {
    display: block;
    font-family: "Instrument Sans", Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3.4px;
    margin-top: 8px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: 12px;
    font-weight: 500;
}
.header-location {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.2px;
}
.heritage-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--navy);
    color: #fff;
    padding: 15px 22px;
    border: 1px solid var(--navy);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    text-decoration: none;
    transition:
        background 0.2s,
        color 0.2s;
    white-space: nowrap;
}
.heritage-button:hover {
    background: #153764;
    color: white;
}
.heritage-button > span {
    font-size: 20px;
    line-height: 1;
}
.header-actions .heritage-button {
    padding: 12px 17px;
    font-size: 12px;
    gap: 25px;
}
.nav-border {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 35px;
    min-height: 57px;
    font-size: 12px;
    font-weight: 500;
}
.desktop-nav > a {
    padding-block: 20px;
    position: relative;
    white-space: nowrap;
}
.desktop-nav > a[aria-current="page"]:after {
    content: "";
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--accent);
}
.desktop-nav > a:hover {
    color: var(--crest-green-ink);
}
.desktop-nav .nav-visit {
    margin-left: auto;
    display: flex;
    gap: 18px;
    align-items: center;
}
.menu-toggle,
.mobile-nav {
    display: none;
}
.page-home #top {
    padding-bottom: 0;
}
.home-hero {
    display: grid;
    grid-template-columns: 48% 52%;
    background: var(--navy-deep);
    color: var(--paper);
    min-height: 565px;
}
.hero-copy {
    padding: 54px 48px 27px max(56px, calc((100vw - 1280px) / 2));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.eyebrow {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 1.9px;
    text-transform: uppercase;
    color: var(--crest-green-ink);
    margin: 0 0 19px;
}
.hero-copy > .eyebrow {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 1.55px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.accent-rule {
    width: 28px;
    height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}
.hero-copy h1 {
    font-family: var(--serif);
    font-size: clamp(48px, 4.9vw, 76px);
    font-weight: 400;
    letter-spacing: -2.4px;
    line-height: 1.035;
    margin: 9px 0 25px;
}
.hero-copy h1 em {
    color: var(--accent);
    font-weight: 400;
}
.hero-intro {
    font-size: 13px;
    line-height: 1.9;
    color: #d3d5e1;
    margin: 0 0 28px;
}
.button-light {
    background: var(--paper);
    border-color: var(--paper);
    color: var(--navy);
}
.button-light:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy);
}
.hero-footnote {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    border-top: 1px solid #ffffff26;
    padding-top: 19px;
    margin-top: 38px;
    color: #d3d5e1;
    font-size: 10px;
    letter-spacing: 0.2px;
}
.hero-footnote > span:first-child {
    color: var(--accent);
    white-space: nowrap;
    letter-spacing: 1px;
}
.archive-gallery {
    position: relative;
    min-width: 0;
    isolation: isolate;
    background: #00163b;
}
.archive-slide {
    position: absolute;
    inset: 0;
    margin: 0;
}
.archive-slide:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(9, 22, 30, 0.85));
    pointer-events: none;
}
.archive-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
}
.archive-slide figcaption {
    position: absolute;
    z-index: 1;
    left: 32px;
    bottom: 29px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 145px;
}
.archive-slide figcaption > .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px;
    color: #ffffff;
    margin: 0;
}
.archive-slide figcaption > span:last-child {
    font-family: var(--serif);
    font-size: 18px;
    color: #fff;
}
.archive-controls {
    position: absolute;
    right: 24px;
    bottom: 27px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    color: white;
}
.archive-controls button {
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff65;
    background: transparent;
    font-size: 19px;
    transition: background 0.2s;
}
.archive-controls button:hover {
    background: #ffffff25;
}
.archive-controls > span {
    font-size: 10px;
    min-width: 40px;
    text-align: center;
    letter-spacing: 1px;
}
.quick-links {
    background: #f0f3f8;
    border-bottom: 1px solid var(--line);
}
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.quick-links-grid > a {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 109px;
    padding: 20px 30px;
    border-right: 1px solid #d3d5e1;
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.4;
}
.quick-links-grid > a:first-child {
    padding-left: 0;
}
.quick-links-grid > a:last-child {
    padding-right: 0;
    border: 0;
}
.quick-number {
    align-self: flex-start;
    margin-top: 10px;
    color: #526381;
    font-family: "Instrument Sans", Arial, sans-serif;
    font-size: 10px;
}
.quick-links small {
    display: block;
    font-family: "Instrument Sans", Arial, sans-serif;
    font-size: 9px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #40445e;
}
.link-arrow {
    margin-left: auto;
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 400;
    color: var(--crest-green-ink);
}
.quick-links a:hover .link-arrow {
    color: var(--ink);
}
.mission-section {
    padding-block: 83px 88px;
}
.section-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: end;
    margin-bottom: 38px;
}
.page-home h2 {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -1.3px;
    line-height: 1.15;
    margin: 0;
}
.section-intro > p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--muted);
    max-width: 440px;
    margin: 0 0 3px;
}
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.mission-card {
    display: flex;
    flex-direction: column;
}
.mission-image {
    aspect-ratio: 1.65;
    overflow: hidden;
    background: #e9edf4;
}
.mission-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    filter: none;
}
.mission-card:hover img {
    transform: scale(1.025);
}
.mission-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 11px;
}
.mission-title h3 {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin: 0;
}
.mission-title > span {
    font-size: 20px;
    color: var(--crest-green-ink);
}
.mission-card > p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    margin: 0 0 20px;
    max-width: 310px;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 23px;
    font-size: 12px;
    font-weight: 600;
    border-bottom: 1px solid #98a6bc;
    padding-bottom: 7px;
    align-self: flex-start;
}
.text-link > span {
    font-size: 18px;
    line-height: 1;
}
.text-link:hover {
    color: var(--crest-green-ink);
    border-color: var(--crest-green-ink);
}
.mission-card > .text-link {
    margin-top: auto;
}
.association-section {
    background: #f0f3f8;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: 76px;
}
.association-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 85px;
    align-items: center;
}
.association-image {
    margin: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.association-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: 42% center;
    filter: none;
}
.association-image figcaption {
    font-size: 11px;
    color: #40445e;
    margin-top: 15px;
}
.association-copy > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    margin: 21px 0;
}
.association-copy .text-link {
    margin-top: 8px;
}
.visit-section {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 100px;
    align-items: center;
    padding-block: 90px;
}
.visit-copy > p:not(.eyebrow) {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.85;
    margin: 23px 0;
}
.visit-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: 24px;
    margin-top: 28px;
}
.visit-details dt {
    font-size: 9px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--crest-green-ink);
    font-weight: 600;
}
.visit-details dd {
    font-size: 13px;
    line-height: 1.9;
    margin: 0;
}
.visit-details strong {
    font-weight: 500;
}
.visit-copy > p.visit-note {
    font-size: 12px;
    margin: 17px 0 26px;
}
.visit-actions {
    display: flex;
    gap: 30px;
    align-items: center;
}
.visit-actions .text-link {
    align-self: center;
}
.visit-image {
    margin: 0;
    position: relative;
    height: 425px;
}
.visit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}
.visit-image figcaption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: var(--paper);
    padding: 14px 18px;
    font-size: 11px;
}
.support-section {
    background: #0b2850;
    color: var(--paper);
    padding-block: 53px;
}
.support-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.support-inner .eyebrow {
    color: var(--accent);
    margin-bottom: 14px;
}
.support-inner h2 {
    font-size: 36px;
}
.support-inner p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.85;
    color: #d3d5e1;
    margin: 18px 0 0;
}
.site-footer {
    background: var(--navy-deep);
    color: #d3d5e1;
    padding: 59px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1.1fr 1fr;
    gap: 44px;
}
.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.9;
}
.footer-grid a {
    margin-bottom: 8px;
}
.footer-grid a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}
.footer-grid .footer-brand {
    font-family: var(--serif);
    font-size: 21px;
    color: var(--paper);
    line-height: 1.4;
}
.site-footer .footer-grid h2 {
    font-family: "Instrument Sans", Arial, sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    color: var(--accent);
    margin: 4px 0 20px;
}
.footer-grid p {
    margin: 8px 0 15px;
}
.charity-number {
    font-size: 10px;
    color: #b6c3d8;
    margin-top: 4px;
}
.footer-bottom {
    display: flex;
    align-items: center;
    gap: 35px;
    border-top: 1px solid #ffffff25;
    padding-top: 22px;
    margin-top: 38px;
    font-size: 10px;
    color: #b6c3d8;
}
.footer-bottom p {
    margin-right: auto;
}
/* Carry the typography, colour and quieter surfaces into the existing tools and articles. */
.page-interior #top {
    background: var(--paper);
    padding-top: 40px;
}
.page-interior #top > section {
    max-width: 1280px;
    margin-inline: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.page-interior #top h1,
.page-interior #top h2,
.page-interior #top h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.6px;
}
.page-interior #top h1 {
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.1;
}
.page-interior #top :is(.rounded-xl, .rounded-2xl) {
    border-radius: 2px;
    box-shadow: none;
}
.page-interior #top .rounded-full:not(img):not(input) {
    border-radius: 2px;
}
.page-interior #top :is(.shadow, .shadow-sm, .shadow-lg) {
    box-shadow: none;
}
.page-interior #top .bg-slate-50 {
    background-color: #f0f3f8;
}
.page-interior #top .bg-slate-900 {
    background-color: var(--navy);
}
.page-interior #top :is(.text-indigo-700, .text-indigo-900, .text-sky-700) {
    color: var(--crest-green-ink);
}

.page-interior #top aside > section {
    border: 0;
    border-top: 2px solid var(--accent);
}
#cookieNotice {
    left: 24px;
    bottom: 24px;
    border-radius: 0;
    border: 1px solid #d3d5e1;
    background: var(--paper);
    box-shadow: 0 4px 24px #00163b20;
    padding: 21px;
    max-width: 380px;
    width: calc(100% - 48px);
}
#cookieNotice > p:first-child {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--navy);
}
#cookieNotice p {
    font-size: 12px;
    line-height: 1.7;
}
#cookieNotice button,
#cookieNotice > div > a {
    border-radius: 0;
    font-size: 11px;
}
#cookieNotice #acceptCookieNotice {
    background: var(--navy);
}
#cookieNotice a {
    color: var(--crest-green-ink);
}
@media (min-width: 1550px) {
    .home-hero {
        min-height: 610px;
    }
    .hero-copy {
        padding-top: 65px;
    }
    .hero-footnote {
        margin-top: auto;
    }
    .hero-copy h1 {
        margin-bottom: 30px;
    }
}
@media (max-width: 1199px) {
    .site-wrap {
        width: calc(100% - 72px);
    }
    .header-location {
        display: none;
    }
    .desktop-nav {
        gap: 24px;
        font-size: 11px;
    }
    .hero-copy {
        padding-left: 36px;
        padding-right: 28px;
    }
    .hero-copy > .eyebrow {
        font-size: 8px;
    }
    .hero-copy h1 {
        font-size: 60px;
    }
    .hero-intro {
        font-size: 12px;
    }
    .hero-footnote {
        font-size: 9px;
        gap: 12px;
    }
    .home-hero {
        min-height: 550px;
    }
    .section-intro {
        gap: 55px;
    }
    .association-grid,
    .visit-section {
        gap: 50px;
    }
    .quick-links-grid > a {
        font-size: 18px;
        gap: 14px;
        padding-inline: 22px;
    }
    .mission-title h3 {
        font-size: 22px;
    }
    .footer-grid {
        gap: 25px;
    }
}
@media (max-width: 1000px) {
    .masthead {
        min-height: 92px;
    }
    .brand > span {
        font-size: 20px;
    }
    .header-actions,
    .nav-border {
        display: none;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 44px;
        background: none;
        border: 1px solid #657595;
        padding: 8px 12px;
        font-size: 12px;
    }
    .mobile-nav:not(.hidden) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 24px;
        padding: 8px 36px 24px;
        border-top: 1px solid var(--line);
    }
    .mobile-nav > a,
    .mobile-nav > form {
        padding-block: 14px;
        font-size: 14px;
        border-bottom: 1px solid var(--line);
    }
    .mobile-nav > a[aria-current] {
        color: var(--crest-green-ink);
    }
    .mobile-nav .heritage-button {
        margin-top: 12px;
        justify-content: center;
        padding: 12px;
    }
    .home-hero {
        grid-template-columns: 1fr 1fr;
        min-height: 530px;
    }
    .hero-copy {
        padding-top: 42px;
    }
    .hero-copy h1 {
        font-size: 53px;
    }
    .hero-copy > .eyebrow {
        font-size: 8px;
        max-width: 280px;
    }
    .accent-rule {
        display: none;
    }
    .hero-footnote {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-top: 30px;
    }
    .desktop-break {
        display: none;
    }
    .archive-slide figcaption {
        left: 22px;
        bottom: 72px;
        padding-right: 22px;
    }
    .archive-controls {
        left: 22px;
        right: auto;
        bottom: 22px;
    }
    .quick-links-grid > a {
        font-size: 16px;
        gap: 11px;
    }
    .quick-number {
        display: none;
    }
    .page-home h2 {
        font-size: 36px;
    }
    .section-intro {
        gap: 40px;
    }
    .mission-grid {
        gap: 22px;
    }
    .mission-title h3 {
        font-size: 20px;
    }
    .mission-card > p {
        font-size: 12px;
    }
    .association-image img {
        height: 360px;
    }
    .visit-details {
        grid-template-columns: 1fr;
    }
    .visit-image {
        height: 480px;
    }
    .visit-actions {
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 60px;
    }
}
@media (max-width: 700px) {
    .site-wrap {
        width: calc(100% - 40px);
    }
    .masthead {
        min-height: 85px;
        gap: 14px;
    }
    .brand {
        gap: 11px;
    }
    .brand img {
        width: 33px;
        height: 52px;
    }
    .brand > span {
        font-size: 16px;
        letter-spacing: -0.4px;
        max-width: 205px;
    }
    .brand-subtitle {
        font-size: 9px;
        letter-spacing: 2.3px;
        margin-top: 5px;
    }
    .menu-toggle {
        padding: 9px;
        gap: 7px;
        font-size: 11px;
    }
    .mobile-nav:not(.hidden) {
        padding-inline: 20px;
        gap: 0 18px;
    }
    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .hero-copy {
        padding: 38px 24px 25px;
    }
    .hero-copy > .eyebrow {
        max-width: none;
        font-size: 8px;
        letter-spacing: 1.5px;
        margin-bottom: 14px;
    }
    .hero-copy h1 {
        font-size: 61px;
        letter-spacing: -2px;
        margin: 7px 0 23px;
    }
    .hero-intro {
        max-width: 360px;
        font-size: 13px;
        margin-bottom: 25px;
    }
    .hero-footnote {
        flex-direction: row;
        gap: 15px;
        margin-top: 29px;
        font-size: 9px;
    }
    .archive-gallery {
        height: 350px;
    }
    .archive-slide figcaption {
        bottom: 26px;
        left: 22px;
        padding-right: 140px;
    }
    .archive-slide figcaption > span:last-child {
        font-size: 16px;
    }
    .archive-controls {
        left: auto;
        right: 18px;
        bottom: 25px;
        gap: 7px;
    }
    .archive-controls button {
        height: 32px;
        width: 32px;
    }
    .archive-controls > span {
        font-size: 9px;
        min-width: 36px;
    }
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    .quick-links-grid > a,
    .quick-links-grid > a:first-child,
    .quick-links-grid > a:last-child {
        padding: 18px 0;
        min-height: 82px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        font-size: 19px;
        gap: 20px;
    }
    .quick-links-grid > a:last-child {
        border-bottom: 0;
    }
    .quick-number {
        display: block;
        font-size: 10px;
    }
    .quick-links small {
        font-size: 8px;
    }
    .mission-section {
        padding-block: 54px;
    }
    .section-intro {
        grid-template-columns: 1fr;
        gap: 23px;
        margin-bottom: 29px;
    }
    .page-home h2 {
        font-size: 35px;
        letter-spacing: -1px;
    }
    .eyebrow {
        font-size: 9px;
        margin-bottom: 15px;
    }
    .section-intro > p {
        font-size: 13px;
        max-width: none;
    }
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
    .mission-image {
        aspect-ratio: 1.6;
    }
    .mission-title {
        margin-top: 18px;
    }
    .mission-title h3 {
        font-size: 25px;
    }
    .mission-card > p {
        font-size: 13px;
        max-width: none;
        margin-bottom: 16px;
    }
    .association-section {
        padding-block: 45px;
    }
    .association-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .association-image img {
        height: 235px;
        object-position: center;
    }
    .association-image figcaption {
        font-size: 10px;
    }
    .association-copy > p:not(.eyebrow) {
        font-size: 13px;
        margin-block: 18px;
    }
    .visit-section {
        grid-template-columns: 1fr;
        padding-block: 52px;
        gap: 33px;
    }
    .visit-details {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .visit-details dd {
        font-size: 12px;
    }
    .visit-copy > p:not(.eyebrow) {
        font-size: 13px;
    }
    .visit-image {
        height: 340px;
    }
    .support-section {
        padding-block: 40px;
    }
    .support-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    .support-inner h2 {
        font-size: 31px;
    }
    .support-inner p:not(.eyebrow) {
        font-size: 12px;
    }
    .site-footer {
        padding-top: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 20px;
    }
    .footer-grid > div {
        font-size: 11px;
    }
    .footer-grid .footer-brand {
        font-size: 19px;
    }
    .footer-grid > div:first-child {
        grid-column: 1/-1;
    }
    .footer-bottom {
        flex-wrap: wrap;
        gap: 15px 23px;
        margin-top: 30px;
        font-size: 9px;
    }
    .footer-bottom > p {
        width: 100%;
        margin: 0;
    }
    .page-interior #top {
        padding-top: 20px;
    }

    .page-interior #top h1 {
        font-size: 36px;
    }
    #cookieNotice {
        left: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
        max-width: none;
        padding: 16px;
    }
    #cookieNotice p {
        font-size: 11px;
    }
}
@media (max-width: 370px) {
    .brand > span {
        font-size: 14px;
        max-width: 170px;
    }
    .hero-copy h1 {
        font-size: 54px;
    }
    .hero-footnote {
        gap: 10px;
        font-size: 8px;
    }
    .visit-details {
        grid-template-columns: 1fr;
    }
    .archive-slide figcaption {
        bottom: 72px;
        padding-right: 20px;
    }
    .archive-controls {
        left: 22px;
        right: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid > div:first-child {
        grid-column: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important;
    }
}
body.page-home,
body.page-interior {
    background: var(--paper);
    color: var(--ink);
}
/* Readable body copy, with smaller type reserved for captions and wayfinding. */
.hero-intro {
    font-size: 14px;
}
.mission-card > p,
.association-copy > p:not(.eyebrow),
.visit-copy > p:not(.eyebrow),
.section-intro > p {
    font-size: 15px;
}
.mission-card:nth-child(3) .mission-image img {
    object-position: center 35%;
}
@media (max-width: 1000px) {
    .hero-intro {
        font-size: 13px;
    }
    .mission-card > p,
    .association-copy > p:not(.eyebrow),
    .visit-copy > p:not(.eyebrow),
    .section-intro > p {
        font-size: 14px;
    }
}
.hero-copy {
    min-width: 0;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
}
.hero-actions .heritage-button {
    white-space: normal;
    gap: 18px;
}
.hero-actions .button-sage {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy);
}
.hero-actions .button-sage:hover {
    background: white;
    border-color: white;
}
@media (min-width: 701px) and (max-width: 850px) {
    .hero-copy h1 {
        font-size: 47px;
    }
}
@media (max-width: 700px) {
    .hero-copy h1 {
        font-size: clamp(42px, 14vw, 61px);
    }
}

/* Retain Royal Navy blue; use the crest’s ribbon red for primary actions. */
.site-header {
    background: var(--navy);
    color: white;
}
.brand img {
    mix-blend-mode: normal;
}
.header-location {
    color: #d3d5e1;
}
.site-header .nav-border {
    border-color: #ffffff30;
}
.site-header .heritage-button {
    background: var(--crest-red);
    border-color: var(--crest-red);
    color: white;
}
.site-header .heritage-button:hover {
    background: white;
    border-color: white;
    color: var(--navy);
}
.desktop-nav > a:hover {
    color: var(--accent);
}
.menu-toggle {
    border-color: #657595;
    color: white;
}
.mobile-nav:not(.hidden),
.mobile-nav > a,
.mobile-nav > form {
    border-color: #ffffff30;
}
.mobile-nav > a[aria-current] {
    color: var(--accent);
}
.hero-copy h1 em {
    color: white;
}
.hero-copy .button-light {
    background: var(--crest-red);
    border-color: var(--crest-red);
    color: white;
}
.hero-copy .button-light:hover {
    background: white;
    border-color: white;
    color: var(--navy);
}

/* Original homepage content: full wording and images, restyled without abridgement. */
.welcome-section {
    padding-block: 76px;
    border-bottom: 1px solid var(--line);
}
.welcome-section > div > div {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 90px;
    align-items: center;
}
.welcome-section img {
    height: 220px;
    width: auto;
    margin: 30px auto 0;
}
.welcome-section p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 22px;
}
.welcome-section p:last-child {
    margin-bottom: 0;
}
.welcome-section p span {
    font-weight: 600;
    color: var(--navy);
}
.welcome-section h2 {
    max-width: 360px;
}
.association-grid {
    grid-template-columns: 0.8fr 1.4fr;
}
.association-grid > div:first-child {
    display: flex;
    justify-content: center;
}
.association-grid > div:first-child img {
    width: 310px;
    max-width: 100%;
    height: auto;
    border: 12px solid white;
}
.association-copy > div {
    font-size: 15px;
    line-height: 1.8;
    color: var(--muted);
    margin-block: 24px;
}
.association-copy ul {
    list-style: disc;
    padding-left: 22px;
    margin-top: 14px;
}
.association-copy li {
    padding-left: 4px;
    margin-block: 10px;
}
.association-copy li::marker {
    color: var(--crest-green-ink);
}
.visit-copy > div:not(.opening-hours) > p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
}
.opening-hours {
    border-block: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    padding: 22px;
    margin-block: 24px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--navy);
}
.opening-hours p:first-child {
    font-weight: 600;
}
.visit-restored-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}
.contact-section {
    background: #f0f3f8;
    padding-block: 64px;
    border-top: 1px solid var(--line);
}
.contact-section header {
    margin-bottom: 38px;
}
.contact-section header > p {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--crest-green-ink);
    margin-bottom: 14px;
}
.contact-section > div > div:first-of-type {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1.1fr;
    gap: 50px;
}
.contact-section h3 {
    font-family: var(--serif);
    font-size: 24px;
    margin-bottom: 16px;
}
.contact-section p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--muted);
}
.contact-section a {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--navy);
}
.contact-section > div > div:last-child {
    margin-top: 32px;
}
.contact-section a[aria-label="Facebook"] {
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: white;
}
.contact-section a[aria-label="Facebook"] svg {
    width: 24px;
    height: 24px;
}
.community-section {
    background: #e7edf6;
    padding-block: 45px;
}
.community-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}
.community-section h2 {
    font-family: var(--serif);
    font-size: 32px;
    line-height: 1.2;
    margin: 0;
    color: var(--navy);
}
.community-section p:not(.eyebrow) {
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}
.community-section .heritage-button {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}
.community-section .heritage-button:hover {
    background: #153764;
}
.page-interior #top > .community-section {
    max-width: none;
    margin-top: 40px;
}
.page-interior #top > .community-section > div:first-child {
    padding-block: 0;
}

@media (max-width: 1000px) {
    .welcome-section > div > div {
        gap: 45px;
        grid-template-columns: 1fr 1.3fr;
    }
    .welcome-section p {
        font-size: 15px;
    }
    .association-grid {
        grid-template-columns: 0.8fr 1.3fr;
    }
    .contact-section > div > div:first-of-type {
        gap: 25px;
    }
    .community-inner {
        gap: 25px;
    }
}
@media (max-width: 700px) {
    .welcome-section {
        padding-block: 45px;
    }
    .welcome-section > div > div {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .welcome-section img {
        height: 170px;
        margin-top: 25px;
    }
    .welcome-section h2 {
        max-width: none;
    }
    .welcome-section p {
        font-size: 15px;
        line-height: 1.85;
    }
    .association-grid {
        grid-template-columns: 1fr;
    }
    .association-grid > div:first-child img {
        width: 266px;
    }
    .association-copy > div {
        font-size: 14px;
    }
    .visit-copy > div:not(.opening-hours) > p {
        font-size: 14px;
    }
    .visit-restored-image img {
        max-height: 400px;
    }
    .contact-section {
        padding-block: 45px;
    }
    .contact-section > div > div:first-of-type {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .contact-section h3 {
        margin-bottom: 10px;
    }
    .contact-section p {
        font-size: 14px;
    }
    .community-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .community-section h2 {
        font-size: 29px;
    }
    .community-section p:not(.eyebrow) {
        font-size: 14px;
    }
}

/* Sage remains legible against navy; the darker shade is for text on white. */
.site-header :is(a, button):focus-visible,
.home-hero :is(a, button):focus-visible {
    outline-color: var(--accent);
}

/* Show every photograph edge to edge within its own frame, without cropping.
   Captions and controls have a separate row so they do not obscure the image. */
.archive-slide {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 90px;
}
.archive-slide::after {
    display: none;
}
.archive-slide > img {
    object-fit: contain;
    min-height: 0;
}
.archive-slide figcaption {
    position: static;
    align-self: center;
    padding: 12px 235px 12px 24px;
}
.archive-controls {
    right: 20px;
    bottom: 27px;
}
.archive-controls [data-archive-play] {
    width: 58px;
    font-size: 11px;
    letter-spacing: 0.3px;
}
@media (max-width: 1000px) {
    .archive-slide {
        grid-template-rows: minmax(0, 1fr) 120px;
    }
    .archive-slide figcaption {
        align-self: start;
        padding: 14px 22px;
    }
    .archive-controls {
        left: 22px;
        right: auto;
        bottom: 18px;
    }
}
@media (max-width: 700px) {
    .archive-gallery {
        height: 390px;
    }
    .archive-slide {
        grid-template-rows: minmax(0, 1fr) 112px;
    }
    .archive-controls {
        bottom: 15px;
    }
}

/* Interior pages share the homepage's navy, crest accents and editorial type. */
.page-interior #top {
    padding: 0 0 64px;
    background: #f7f8fa;
    color: var(--ink);
}
.page-interior #top > section {
    background: var(--paper);
    min-width: 0;
}
.page-interior #top .page-heading {
    background: var(--navy);
    color: white;
    padding: 48px clamp(24px, 5vw, 64px) 44px;
    border: 0;
    border-bottom: 4px solid var(--accent);
}
.page-interior #top .page-heading :is(h1, p, a, span, div) {
    color: #e1e6ee;
}
.page-interior #top .page-heading h1 {
    color: white;
    max-width: 950px;
    margin-block: 16px;
}
.page-interior #top .page-heading > p:first-child {
    color: #c2cbb9;
    font-size: 11px;
    letter-spacing: 2px;
}
.page-interior #top .page-heading a {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.page-interior #top .section-heading {
    text-align: left;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.page-interior #top .section-heading::after {
    content: "";
    position: absolute;
    width: 56px;
    height: 3px;
    left: 0;
    bottom: -1px;
    background: var(--accent);
}
.page-interior #top .section-heading h1 {
    color: var(--navy);
    margin-bottom: 18px;
}
.page-interior #top .section-heading p {
    margin-left: 0;
    color: var(--muted);
    line-height: 1.8;
}
.page-interior #top .section-heading > p.uppercase {
    color: var(--crest-green-ink);
}
.page-interior #top .section-heading :is(.flex, div) {
    min-width: 0;
}
.page-interior #top .section-heading.flex {
    flex-wrap: wrap;
    gap: 20px;
}
.page-interior #top :is(h2, h3) {
    color: var(--navy);
    line-height: 1.3;
}
.page-interior #top h2 { font-size: clamp(26px, 2.4vw, 34px); }
.page-interior #top h3 { font-size: 23px; }
.page-interior #top h3.uppercase {
    font-family: "Instrument Sans", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
}
.page-interior #top article { line-height: 1.85; }
.page-interior #top :is(.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-full:not(img):not(input)) {
    border-radius: 2px;
}
.page-interior #top :is(.border-slate-200, .border-blue-100, .border-indigo-100, .border-sky-100, .border-sky-200) {
    border-color: var(--line);
}
.page-interior #top :is(.surface-panel, .bg-white) { background-color: white; }
.page-interior #top :is(.surface-muted, .bg-slate-50, .bg-blue-50\/70, .bg-blue-50, .bg-sky-50, .bg-indigo-50) {
    background-color: #f0f3f8;
}
.page-interior #top :is(.surface-sage, .bg-emerald-50\/60, .bg-emerald-50, .bg-emerald-500\/10, .bg-emerald-500\/20, .bg-amber-50, .bg-amber-50\/70, .bg-amber-500\/20) {
    background-color: #eef1eb;
}
.page-interior #top :is(.text-slate-900, .text-slate-800) { color: var(--navy); }
.page-interior #top :is(.text-slate-500, .text-slate-600, .text-slate-700) { color: var(--muted); }
.page-interior #top :is(.text-crest-green, .text-sky-600, .text-sky-700, .text-blue-700, .text-indigo-700, .text-amber-600, .text-amber-700, .text-amber-800, .text-amber-900, .text-emerald-700, .text-emerald-800, .text-emerald-900, .text-emerald-100) {
    color: var(--crest-green-ink);
}
.page-interior #top :is(.text-rose-400, .text-rose-600, .text-rose-700, .text-rose-800) { color: var(--crest-red); }
.page-interior #top :is(a, button) {
    transition: background-color .2s, color .2s, border-color .2s;
}
.page-interior #top :is(a, button):is(.bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-slate-900, .bg-indigo-600, .bg-indigo-700, .bg-blue-600, .bg-blue-700) {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.page-interior #top :is(a, button):is(.button-primary, .bg-amber-400, .bg-amber-500) {
    background: var(--crest-red);
    color: white;
    border-color: var(--crest-red);
}
.page-interior #top :is(a, button):is(.button-primary, .bg-amber-400, .bg-amber-500):hover { background: #87041f; }
.page-interior #top :is(a, button):is(.bg-sky-500, .bg-sky-600, .bg-sky-700, .bg-slate-900, .bg-indigo-600, .bg-indigo-700, .bg-blue-600, .bg-blue-700):hover { background: #153764; }
.page-interior #top :is(button, a.inline-flex):not(.panel-link) { min-height: 42px; }
.page-interior #top a:not([class*="bg-"]):not(.button-primary):hover { color: var(--crest-red); }
.page-interior #top :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
    color: var(--navy);
    background: white;
    border: 1px solid #7c8798;
    border-radius: 2px;
    min-height: 44px;
    max-width: 100%;
    font-size: 16px;
}
.page-interior #top :is(input, textarea)::placeholder { color: #596479; opacity: 1; }
.page-interior #top :is(input, select, textarea):focus {
    border-color: var(--navy);
    --tw-ring-color: #00163b25;
}
.page-interior #top :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--navy); }
.page-interior #top :is(.bg-slate-900, .bg-indigo-900, .bg-sky-900):not(a):not(button) {
    background: var(--navy);
    color: white;
}
.page-interior #top :is(.bg-slate-900, .bg-indigo-900, .bg-sky-900):not(a):not(button) :is(h2, h3, p, span, a) { color: #e1e6ee; }
/* Explicit banner colours take precedence over legacy text utility classes. */
.page-interior #top .page-heading :is(.text-slate-600, .text-slate-700, .text-slate-900) { color: #e1e6ee; }
.page-interior #top .page-heading h1 { color: white; }
.page-interior #top :is(.grid > *, .flex > *) { min-width: 0; }
.page-interior #top table { color: var(--ink); }
.page-interior #top th {
    padding-block: 15px;
    font-weight: 600;
    color: var(--navy);
    background: #eef1eb;
}
.page-interior #top td { line-height: 1.6; }
.page-interior #top .memorial-records a { color: var(--crest-green-ink); text-decoration: underline; text-underline-offset: 3px; }
.page-interior #top .memorial-records tr:first-child td { background: var(--navy); color: white; }
.page-interior #top .memorial-records tr:first-child td a { color: white; }
.page-interior #top .memorial-records td { border-color: var(--line); }
.page-interior #top .memorial-records .notes { color: var(--muted); }
.page-interior #top .login-page { max-width: 620px; padding-block: 56px; }
.page-interior #top .login-page > div { padding: clamp(24px, 4vw, 40px); border-top: 3px solid var(--accent); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.shop-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shop-basket { position: sticky; top: 24px; border-top: 3px solid var(--accent); }
.product-card .aspect-square { height: 180px; aspect-ratio: auto; padding: 14px; background: #f0f3f8; }
.page-interior #top .product-card h3 { font-size: 19px; letter-spacing: -0.3px; }
.product-card > .p-4 { padding: 14px; gap: 8px; }
.page-interior #top .product-card form { padding-top: 6px; margin-top: auto; }
.page-interior #top .product-card input[type="number"] { width: 60px; padding-inline: 8px; }
.product-card button { padding-inline: 8px; font-size: 12px; }
.shop-basket > .flex { gap: 12px; }
.page-interior #top .shop-basket .rounded-full { background: var(--navy); color: white; }
.page-interior #top .shop-basket h2 { font-size: 28px; }
.page-interior #top .shop-basket .button-primary { display: block; padding: 13px; }
@media (min-width: 1280px) {
    .page-interior #top > section:not(.login-page) { padding-inline: 0; }
}
@media (min-width: 901px) and (max-width: 1149px) {
    .shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-basket { position: static; }
}
@media (max-width: 600px) {
    .page-interior #top .page-heading { padding: 34px 24px 30px; }
    .page-interior #top .page-heading h1 { font-size: 36px; }
    .page-interior #top .section-heading h1 { font-size: 36px; }
    .page-interior #top .section-heading { padding-bottom: 24px; }
    .shop-products { grid-template-columns: 1fr; }
    .product-card .aspect-square { height: 160px; }
    .page-interior #top .section-heading .justify-center { justify-content: flex-start; }
    .page-interior #top .memorial-records td { padding: 10px; overflow-wrap: anywhere; }
}
@media print {
    .site-header, .site-footer, #cookieNotice { display: none !important; }
    .page-interior #top { padding: 0; background: white; }
}
.page-interior #top :is(.bg-emerald-100, .bg-amber-100) { background: #eef1eb; }
.page-interior #top :is(.border-emerald-100, .border-emerald-200, .border-amber-100, .border-amber-200) { border-color: #bdc6b3; }
.page-interior #top :is(a, button).bg-emerald-700 { background: var(--crest-green-ink); color: white; }
.page-interior #top :is(a, button).bg-emerald-700:hover { background: #3d4934; }
.product-card .aspect-square { flex: none; }
.page-interior #top .shop-basket a[aria-disabled="true"] { opacity: 1; background: #e5e8ee; color: #4b5568; border-color: #c6ccda; }
.page-interior #top .page-heading h1.text-slate-900 { color: white; }
.product-card .aspect-square { position: relative; }
.product-card .aspect-square img {
    position: absolute;
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
}
@media (max-width: 900px) {
    .shop-basket { grid-row: 1; }
}

/* Keep the membership and museum invitations together at every screen size. */
.header-cta-group { display: flex; gap: 10px; }
.site-header .button-museum {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--navy);
}
.site-header .button-museum:hover {
    background: #c2cbb9;
    border-color: #c2cbb9;
    color: var(--navy);
}
@media (min-width: 1001px) and (max-width: 1399px) {
    .header-location { display: none; }
    .header-actions { gap: 18px; }
}
.mobile-nav .header-cta-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mobile-nav .header-cta-group .heritage-button {
    white-space: normal;
    gap: 8px;
    font-size: 12px;
    padding: 12px 10px;
}

/* Shared Facebook section above the footer on every page. */
.facebook-updates { padding-block: 64px; background: #f0f3f8; }
.facebook-updates-copy { max-width: 900px; }
.facebook-updates-copy h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 3.5vw, 42px);
    font-weight: 400;
    letter-spacing: -1.3px;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 24px;
}
.facebook-updates-copy > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.85;
    margin: 0 0 18px;
}
.facebook-updates-invitation {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
}
.facebook-updates-icon { display: block; }
.facebook-updates-icon img { display: block; width: 88px; height: auto; }
.facebook-invitation-copy h3 {
    font-family: var(--serif);
    font-size: 25px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--navy);
    margin: 0 0 8px;
}
.facebook-invitation-copy p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.facebook-updates-invitation > a:last-child {
    background: var(--navy);
    color: white;
    border-radius: 0;
    padding: 14px 18px;
    min-height: 48px;
}
.facebook-updates-invitation > a:last-child:hover { background: #153764; }
@media (max-width: 1100px) {
    .facebook-updates-invitation { grid-template-columns: 72px minmax(0, 1fr); }
    .facebook-updates-icon img { width: 72px; }
    .facebook-updates-invitation > a:last-child { grid-column: 2; justify-self: start; }
}
@media (max-width: 600px) {
    .facebook-updates { padding-block: 44px; }
    .facebook-updates-invitation { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px; }
    .facebook-updates-icon img { width: 56px; }
    .facebook-invitation-copy h3 { font-size: 21px; }
    .facebook-updates-invitation > a:last-child { grid-column: 1 / -1; justify-self: stretch; }
}

@media print {
    .facebook-updates { display: none !important; }
}

/* Native modal keeps keyboard focus inside the full-screen PDF preview. */
.newsletter-thumbnail { display: block; }
.newsletter-thumbnail:hover { outline: 2px solid var(--accent); outline-offset: 3px; }
.newsletter-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #f0f3f8;
    color: white;
}
.newsletter-dialog[open] { display: flex; flex-direction: column; }
.newsletter-dialog::backdrop { background: var(--navy); }
.newsletter-dialog-header {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 24px;
    background: var(--navy);
}
.newsletter-dialog-header p { margin: 0; font-size: 16px; line-height: 1.4; }
.newsletter-dialog-header .close-newsletter {
    width: 48px;
    height: 48px;
    flex: none;
    border: 1px solid #ffffff70;
    color: white;
    background: transparent;
    font-size: 32px;
    line-height: 1;
}
.newsletter-dialog-header .close-newsletter:hover { background: #153764; }
.newsletter-dialog-header .close-newsletter:focus-visible { outline-color: white; }
.newsletter-dialog-header #newsletter-original {
    margin-left: auto;
    color: white;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 4px;
    white-space: nowrap;
}
.newsletter-pages {
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    background: #d3d5e1;
    color: var(--navy);
    padding: 24px;
}
.newsletter-pages .newsletter-pdf-page {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 24px;
    background: white;
    box-shadow: 0 2px 8px #00163b25;
    overflow: hidden;
}
.newsletter-pdf-page canvas { display: block; width: 100%; height: auto; }
.newsletter-status { padding: 24px; text-align: center; color: var(--navy); }
