:root {
    --royal-blue: #102b50;
    --royal-emerald: #126b54;
    --royal-gold: #c5a45b;
    --royal-ivory: #f8f5ec;
    --royal-border: #d7d7d7;
    --royal-text: #222;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #f4f5f7;
    color: var(--royal-text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #173d70;
}

.topbar {
    min-height: 54px;
    background: #fff;
    border-bottom: 1px solid #d8d8d8;
    display: flex;
    align-items: center;
    padding: 0 18px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.menu-button {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
    margin-right: 15px;
    color: var(--royal-blue);
}

.topbar-title {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--royal-blue);
    font-size: 17px;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 270px;
    overflow-y: auto;
    background: var(--royal-blue);
    color: var(--royal-ivory);
    z-index: 30;
    transition: transform .18s ease;
}

.brand {
    text-align: center;
    padding: 20px 14px 17px;
    border-bottom: 1px solid var(--royal-gold);
}

.seal-frame {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 132px;
    height: 132px;
    margin: 0 auto 14px;
    border: 3px solid var(--royal-gold);
    border-radius: 50%;
    background: var(--royal-ivory);
    padding: 5px;
    overflow: hidden;
}

.seal-frame img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}

.brand h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.35;
    font-weight: normal;
}

.brand .jurisdiction {
    margin-top: 8px;
    color: var(--royal-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    font-style: italic;
    line-height: 1.4;
}

.nav {
    padding: 14px 0 30px;
}

.nav a {
    display: block;
    padding: 11px 18px;
    color: #eef2f5;
    text-decoration: none;
    border-left: 3px solid transparent;
    font-size: 14px;
}

.nav a:hover,
.nav a.active {
    background: var(--royal-emerald);
    border-left-color: var(--royal-gold);
    color: #fff;
}

.nav-divider {
    margin: 10px 16px;
    border-top: 1px solid rgba(255,255,255,.16);
}

.page {
    margin-left: 270px;
    min-height: 100vh;
}

.chronaeonica {
    background: var(--royal-ivory);
    border-bottom: 1px solid var(--royal-gold);
    padding: 7px 18px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    color: #4a4029;
}

.content {
    max-width: 1050px;
    margin: 0 auto;
    padding: 30px 24px 50px;
}

.hero {
    text-align: center;
    padding: 18px 10px 28px;
}

.hero h2 {
    margin: 0 0 10px;
    color: var(--royal-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: normal;
}

.hero p {
    max-width: 790px;
    margin: 0 auto;
    line-height: 1.55;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.portal-table th {
    background: var(--royal-blue);
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
}

.portal-table td {
    padding: 11px 12px;
    border: 1px solid var(--royal-border);
    vertical-align: top;
    line-height: 1.45;
}

.portal-table td:first-child {
    width: 31%;
    font-weight: bold;
}

.portal-table a {
    text-decoration: none;
}

.portal-table a:hover {
    text-decoration: underline;
}

.login-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.login-box {
    background: #fff;
    border: 1px solid var(--royal-border);
    padding: 15px;
    text-align: center;
}

.login-box strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--royal-blue);
    margin-bottom: 5px;
}

.footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.overlay {
    display: none;
}

@media (max-width: 800px) {
    .sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.35);
        z-index: 25;
    }

    .page {
        margin-left: 0;
    }

    .login-strip {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 26px;
    }

    .portal-table,
    .portal-table tbody,
    .portal-table tr,
    .portal-table td {
        display: block;
        width: 100%;
    }

    .portal-table th {
        display: block;
    }

    .portal-table td:first-child {
        width: 100%;
        border-bottom: 0;
        padding-bottom: 4px;
    }

    .portal-table td:last-child {
        padding-top: 4px;
    }
}

/* ==========================================================
   ROYAL COMMONWEAL HOMEPAGE CONTENT
   ========================================================== */

.commonweal-section {
    margin-top: 28px;
    background: #fff;
    border: 1px solid var(--royal-border);
}

.commonweal-section-title {
    margin: 0;
    padding: 10px 14px;
    background: var(--royal-blue);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: normal;
}

.commonweal-section-body {
    padding: 18px;
    line-height: 1.6;
}

.head-of-state {
    display: grid;
    grid-template-columns: minmax(220px, 34%) 1fr;
    gap: 24px;
    align-items: start;
}

.head-of-state-photo {
    width: 100%;
    max-width: 340px;
    display: block;
    margin: 0 auto;
    border: 1px solid #c8c8c8;
}

.office-heading {
    margin: 0 0 7px;
    color: var(--royal-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
}

.office-subheading {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-style: italic;
    color: #555;
}

.institution-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.institution-card {
    background: #fff;
    border: 1px solid var(--royal-border);
}

.institution-card img {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: cover;
    border-bottom: 1px solid var(--royal-border);
}

.institution-card-content {
    padding: 15px;
}

.institution-card h3 {
    margin: 0 0 8px;
    color: var(--royal-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.institution-card p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.institution-card a {
    font-weight: bold;
    text-decoration: none;
}

.institution-card a:hover {
    text-decoration: underline;
}

.ministry-feature {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 18px;
    align-items: center;
}

.ministry-feature img {
    width: 110px;
    height: 110px;
    object-fit: contain;
}

.record-note {
    margin-top: 28px;
    padding: 15px 18px;
    background: var(--royal-ivory);
    border: 1px solid var(--royal-gold);
    line-height: 1.55;
}

@media (max-width: 700px) {
    .head-of-state,
    .institution-grid {
        grid-template-columns: 1fr;
    }

    .head-of-state-photo {
        max-width: 300px;
    }

    .institution-card img {
        height: auto;
        max-height: 330px;
        object-fit: contain;
        background: #f5f5f5;
    }

    .ministry-feature {
        grid-template-columns: 85px 1fr;
    }

    .ministry-feature img {
        width: 80px;
        height: 80px;
    }
}

/* ==========================================================
   CHRONAEONICA / POSTLIMINAL NOTICE
   ========================================================== */

.chronaeonica {
    padding: 0;
    overflow: hidden;
}

.chronaeonica-time {
    padding: 6px 18px;
    text-align: center;
    border-bottom: 1px solid rgba(197,164,91,.45);
    font-weight: bold;
}

.postliminal-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
}

.postliminal-marquee-track {
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
    animation: commonweal-marquee 48s linear infinite;
}

.postliminal-marquee:hover .postliminal-marquee-track {
    animation-play-state: paused;
}

@keyframes commonweal-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .postliminal-marquee {
        white-space: normal;
        padding: 7px 18px;
        text-align: center;
    }

    .postliminal-marquee-track {
        min-width: 0;
        padding-left: 0;
        animation: none;
    }
}


/* SOVEREIGN RECORD TYPOGRAPHY */

.cw-sovereign-anchor {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    color: #263447;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.cw-sovereign-anchor *,
.cw-sovereign-anchor *::before,
.cw-sovereign-anchor *::after {
    box-sizing: border-box;
}

.cw-sovereign-anchor h1,
.cw-sovereign-anchor h2,
.cw-sovereign-anchor h3 {
    font-family: Georgia, "Times New Roman", serif;
    color: #102d50;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
}

.cw-sovereign-anchor h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin: 0 0 1rem;
}

.cw-sovereign-anchor h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    margin: 2rem 0 1rem;
}

.cw-sovereign-anchor h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    margin: 1.5rem 0 1rem;
}

.cw-sovereign-anchor p,
.cw-sovereign-anchor li {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 100%;
    margin: 0 0 1.15rem;
}

.cw-sovereign-anchor .cw-record-header {
    text-align: center;
    margin: 0 auto 2.5rem;
    padding: 1rem 0;
}

.cw-sovereign-anchor .cw-kicker {
    color: #6f572b;
    font-variant: small-caps;
    letter-spacing: .06em;
}

.cw-sovereign-anchor .cw-deck {
    font-style: italic;
    color: #4b5563;
}

.cw-sovereign-anchor .cw-polygraphia,
.cw-sovereign-anchor .cw-diplomatic-translation,
.cw-sovereign-anchor .cw-sovereign-record,
.cw-sovereign-anchor .cw-postliminal-note {
    width: 100%;
    max-width: 100%;
    margin: 0 0 2.5rem;
}

.cw-sovereign-anchor .cw-official-portrait {
    width: 100%;
    max-width: 520px;
    margin: 2rem auto;
    text-align: center;
}

.cw-sovereign-anchor .cw-official-portrait img {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #d5d8dc;
}

.cw-sovereign-anchor .cw-official-portrait figcaption {
    font-family: Georgia, "Times New Roman", serif;
    font-size: .95rem;
    line-height: 1.65;
    text-align: left;
    margin-top: 1rem;
    color: #374151;
}

.cw-sovereign-anchor blockquote {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    border-left: 3px solid #b69b63;
    margin: 1.5rem 0;
    padding: .5rem 1.25rem;
    color: #344054;
}

.cw-sovereign-anchor blockquote cite {
    display: block;
    font-size: .9rem;
    margin-top: .5rem;
}

.cw-sovereign-anchor .cw-postliminal-note {
    border-top: 1px solid #d9dce1;
    border-bottom: 1px solid #d9dce1;
    padding: 1.5rem 0;
}

@media (max-width: 700px) {
    .cw-sovereign-anchor {
        font-size: 1rem;
    }

    .cw-sovereign-anchor p,
    .cw-sovereign-anchor li {
        font-size: 1rem;
        line-height: 1.7;
    }

    .cw-sovereign-anchor .cw-official-portrait {
        max-width: 100%;
    }

    .cw-sovereign-anchor .cw-official-portrait img {
        max-width: 100%;
    }
}

/* END SOVEREIGN RECORD TYPOGRAPHY */


/* COMMON ACCESS PORTAL TYPOGRAPHY */

#common-access-portal-record {
    margin: 3.5rem 0;
    width: 100%;
}

#common-access-portal-record > header {
    padding: 1.35rem 1.75rem;
}

#common-access-portal-record > header h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.3;
    letter-spacing: 0.015em;
}

#common-access-portal-record > div {
    padding: clamp(1.35rem, 4vw, 2.75rem);
}

#common-access-portal-record > div > p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1rem, 1.35vw, 1.12rem);
    line-height: 1.9;
    margin: 0 0 1.45rem;
    overflow-wrap: break-word;
    text-align: left;
    max-width: 78ch;
}

#common-access-portal-record > div > p:first-child {
    font-size: 0.92rem;
    line-height: 1.6;
    letter-spacing: 0.035em;
    margin-bottom: 2rem;
}

#common-access-portal-record > div > div {
    margin-top: 2.5rem;
    padding: clamp(1.15rem, 3vw, 1.75rem);
    border-radius: 2px;
}

#common-access-portal-record > div > div h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.4;
    margin-bottom: 1rem;
}

#common-access-portal-record > div > div p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    max-width: 78ch;
}

#common-access-portal-record > div > div p:last-child {
    margin-bottom: 0;
}

@media (max-width: 700px) {

    #common-access-portal-record {
        margin: 2.25rem 0;
    }

    #common-access-portal-record > header {
        padding: 1.1rem 1.2rem;
    }

    #common-access-portal-record > div {
        padding: 1.2rem;
    }

    #common-access-portal-record > div > p {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 1.3rem;
    }

    #common-access-portal-record > div > div {
        margin-top: 2rem;
        padding: 1.15rem;
    }
}



/* PORTAL DECLARATION EMPHASIS */

#common-access-portal-record strong {
    font-weight: 700;
    color: #102d50;
}

#common-access-portal-record .cw-scripture {
    font-style: italic;
    color: #263447;
}

#common-access-portal-record .cw-scripture-ref {
    font-weight: 700;
    white-space: normal;
}

#common-access-portal-record .cw-latin-formula {
    font-style: italic;
    letter-spacing: 0.012em;
}

#common-access-portal-record .cw-closing-invocation {
    text-align: center;
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 1.5rem auto;
    max-width: 65ch;
}

#common-access-portal-record .cw-closing-invocation:last-of-type {
    margin-bottom: 2rem;
}



/* WHITE PAPER BILINGUAL DECLARATION */

#commonweal-white-paper {
    margin: 3.5rem 0;
    background: #fff;
    border: 1px solid #d5d8dc;
    color: #263447;
    font-family: Georgia, "Times New Roman", serif;
}

#commonweal-white-paper .cw-wp-header {
    background: #102d50;
    color: #fff;
    padding: clamp(1.3rem, 3vw, 2rem);
}

#commonweal-white-paper .cw-wp-kicker {
    color: #d9e3ef;
    font-size: .9rem;
    letter-spacing: .04em;
    margin: 0 0 1rem;
}

#commonweal-white-paper .cw-wp-header h2 {
    color: #fff;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    line-height: 1.4;
    font-weight: 400;
    margin: 0;
}

#commonweal-white-paper .cw-wp-body {
    padding: clamp(1.3rem, 4vw, 2.75rem);
}

#commonweal-white-paper .cw-wp-language {
    color: #102d50;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.4vw, 1.65rem);
    font-weight: 700;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #d5d8dc;
}

#commonweal-white-paper .cw-wp-language:first-child {
    margin-top: 0;
}

#commonweal-white-paper .cw-wp-body > p {
    max-width: 78ch;
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.85;
    margin: 0 0 1.4rem;
    overflow-wrap: break-word;
}

#commonweal-white-paper .cw-wp-provision {
    padding: .85rem 1.15rem;
    margin: .75rem 0;
    background: #f3f6f9;
    border-left: 3px solid #b49a57;
    color: #102d50;
}

#commonweal-white-paper .cw-wp-provision strong {
    font-weight: 700;
}

#commonweal-white-paper .cw-wp-language:nth-of-type(2)
~ p:not(.cw-wp-provision) {
    font-style: italic;
}

#commonweal-white-paper .cw-wp-footer {
    padding: 1.25rem 2rem;
    background: #f3f6f9;
    border-top: 1px solid #d5d8dc;
    font-size: .95rem;
    line-height: 1.7;
    color: #526075;
}

@media (max-width: 700px) {
    #commonweal-white-paper {
        margin: 2.25rem 0;
    }

    #commonweal-white-paper .cw-wp-body {
        padding: 1.2rem;
    }

    #commonweal-white-paper .cw-wp-body > p {
        font-size: 1rem;
        line-height: 1.8;
    }

    #commonweal-white-paper .cw-wp-footer {
        padding: 1.2rem;
    }
}



/* HOLY SEE BILINGUAL DECLARATION */

#holy-see-declaration {
    margin: 3.5rem 0;
    background: #fff;
    border: 1px solid #d5d8dc;
    font-family: Georgia, "Times New Roman", serif;
    color: #263447;
}

#holy-see-declaration .cw-hs-header {
    background: #102d50;
    color: #fff;
    padding: clamp(1.35rem, 3vw, 2.1rem);
}

#holy-see-declaration .cw-hs-kicker {
    font-size: .9rem;
    color: #d9e3ef;
    letter-spacing: .045em;
    margin: 0 0 1rem;
}

#holy-see-declaration .cw-hs-header h2 {
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 .6rem;
}

#holy-see-declaration .cw-hs-header > p:last-child {
    color: #d9e3ef;
    font-size: 1rem;
    margin: 0;
}

#holy-see-declaration .cw-hs-body {
    padding: clamp(1.3rem, 4vw, 2.75rem);
}

#holy-see-declaration .cw-hs-language {
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .085em;
    color: #8a6d30;
    margin-bottom: 1.5rem;
}

#holy-see-declaration .cw-hs-title {
    color: #102d50;
    font-family: Georgia, serif;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    text-align: center;
    line-height: 1.4;
    margin: 1rem 0;
}

#holy-see-declaration .cw-hs-subtitle {
    color: #102d50;
    font-family: Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin: 1.5rem 0;
}

#holy-see-declaration .cw-hs-motto {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: #485568;
    margin: 0 auto 2rem;
    max-width: 65ch;
}

#holy-see-declaration .cw-hs-reading > p {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.85;
    max-width: 78ch;
    margin: 0 0 1.45rem;
    overflow-wrap: break-word;
}

#holy-see-declaration .cw-hs-reading[lang="la"] > p:not(.cw-hs-motto) {
    font-style: italic;
}

#holy-see-declaration .cw-hs-divider {
    text-align: center;
    color: #b49a57;
    font-size: 1.8rem;
    margin: 2.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid #d5d8dc;
    border-bottom: 1px solid #d5d8dc;
}

#holy-see-declaration .cw-hs-footer {
    padding: 1.25rem 2rem;
    background: #f3f6f9;
    border-top: 1px solid #d5d8dc;
    color: #526075;
    font-size: .95rem;
    line-height: 1.7;
}

@media (max-width: 700px) {
    #holy-see-declaration {
        margin: 2.25rem 0;
    }

    #holy-see-declaration .cw-hs-body {
        padding: 1.2rem;
    }

    #holy-see-declaration .cw-hs-reading > p {
        font-size: 1rem;
        line-height: 1.8;
    }

    #holy-see-declaration .cw-hs-footer {
        padding: 1.2rem;
    }
}



/* ICU HISTORICAL DECLARATION */

#icu-authority-action {
    margin: 3.5rem 0;
    background: #fff;
    border: 1px solid #d5d8dc;
    color: #263447;
    font-family: Georgia, "Times New Roman", serif;
}

#icu-authority-action .cw-icu-header {
    background: #102d50;
    color: #fff;
    padding: clamp(1.35rem, 3vw, 2rem);
}

#icu-authority-action .cw-icu-kicker {
    font-size: .9rem;
    color: #d9e3ef;
    letter-spacing: .045em;
    margin: 0 0 1rem;
}

#icu-authority-action .cw-icu-header h2 {
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    line-height: 1.35;
    font-weight: 400;
    margin: 0 0 .7rem;
}

#icu-authority-action .cw-icu-subtitle {
    color: #d9e3ef;
    font-size: 1.05rem;
    margin: 0;
}

#icu-authority-action .cw-icu-body {
    padding: clamp(1.3rem, 4vw, 2.75rem);
}

#icu-authority-action .cw-icu-body p {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.85;
    margin: 0 0 1.5rem;
    max-width: 78ch;
    overflow-wrap: break-word;
}

#icu-authority-action .cw-icu-opening {
    font-size: 1.1rem;
    line-height: 1.9;
}

#icu-authority-action .cw-icu-provision {
    background: #f3f6f9;
    border-left: 3px solid #b49a57;
    padding: 1.1rem 1.3rem;
}

#icu-authority-action .cw-icu-provision strong {
    color: #102d50;
    font-weight: 700;
}

#icu-authority-action .cw-icu-apostille {
    font-style: italic;
    text-align: center;
    color: #596579;
    padding-top: 1rem;
    border-top: 1px solid #d5d8dc;
}

#icu-authority-action .cw-icu-footer {
    background: #f3f6f9;
    border-top: 1px solid #d5d8dc;
    padding: 1.4rem 2rem;
    font-size: .95rem;
    line-height: 1.75;
    color: #526075;
}

#icu-authority-action .cw-icu-footer strong {
    color: #102d50;
}

#icu-authority-action .cw-icu-footer p {
    margin: .65rem 0 0;
}

@media (max-width: 700px) {

    #icu-authority-action {
        margin: 2.25rem 0;
    }

    #icu-authority-action .cw-icu-body {
        padding: 1.2rem;
    }

    #icu-authority-action .cw-icu-body p {
        font-size: 1rem;
        line-height: 1.8;
    }

    #icu-authority-action .cw-icu-provision {
        padding: 1rem;
    }

    #icu-authority-action .cw-icu-footer {
        padding: 1.2rem;
    }
}



/* CONSTITUTIONAL INTRODUCTION */

#commonweal-constitutional-introduction {
    margin: 3.5rem 0;
    background: #fff;
    border: 1px solid #d5d8dc;
    color: #263447;
    font-family: Georgia, "Times New Roman", serif;
}

#commonweal-constitutional-introduction
.cw-constitutional-header {
    background: #102d50;
    color: #fff;
    padding: clamp(1.35rem, 3vw, 2rem);
}

#commonweal-constitutional-introduction
.cw-constitutional-kicker {
    font-size: .9rem;
    color: #d9e3ef;
    letter-spacing: .045em;
    margin: 0 0 1rem;
}

#commonweal-constitutional-introduction
.cw-constitutional-header h2 {
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 .6rem;
}

#commonweal-constitutional-introduction
.cw-constitutional-header > p:last-child {
    color: #d9e3ef;
    font-size: 1rem;
    margin: 0;
}

#commonweal-constitutional-introduction
.cw-constitutional-body {
    padding: clamp(1.3rem, 4vw, 2.75rem);
}

#commonweal-constitutional-introduction
.cw-constitutional-body > p {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.85;
    max-width: 78ch;
    margin: 0 0 1.5rem;
    overflow-wrap: break-word;
}

#commonweal-constitutional-introduction
.cw-constitutional-opening {
    background: #f3f6f9;
    border-left: 3px solid #b49a57;
    padding: 1.2rem 1.35rem;
}

#commonweal-constitutional-introduction
.cw-constitutional-opening strong {
    color: #102d50;
    font-weight: 700;
}

#commonweal-constitutional-introduction
.cw-constitutional-body h3 {
    font-family: Georgia, serif;
    color: #102d50;
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
    margin: 2.5rem 0 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #d5d8dc;
}

#commonweal-constitutional-introduction
.cw-constitutional-body em {
    font-style: italic;
}

#commonweal-constitutional-introduction
.cw-constitutional-body strong {
    color: #102d50;
}

#commonweal-constitutional-introduction
.cw-constitutional-footer {
    background: #f3f6f9;
    border-top: 1px solid #d5d8dc;
    padding: 1.25rem 2rem;
    color: #526075;
    font-size: .95rem;
    line-height: 1.7;
}

@media (max-width: 700px) {
    #commonweal-constitutional-introduction {
        margin: 2.25rem 0;
    }

    #commonweal-constitutional-introduction
    .cw-constitutional-body {
        padding: 1.2rem;
    }

    #commonweal-constitutional-introduction
    .cw-constitutional-body > p {
        font-size: 1rem;
        line-height: 1.8;
    }

    #commonweal-constitutional-introduction
    .cw-constitutional-opening {
        padding: 1rem;
    }

    #commonweal-constitutional-introduction
    .cw-constitutional-footer {
        padding: 1.2rem;
    }
}


/* LEGAL FOUNDATIONS: CONTINUOUS CONSTITUTIONAL EXPOSITION */

#commonweal-legal-foundations {
    margin: 3.5rem 0;
    background: #fff;
    border: 1px solid #d5d8dc;
    color: #263447;
    font-family: Georgia, "Times New Roman", serif;
}

#commonweal-legal-foundations .cw-legal-header {
    background: #102d50;
    color: #fff;
    padding: clamp(1.35rem, 3vw, 2rem);
}

#commonweal-legal-foundations .cw-legal-kicker {
    color: #d9e3ef;
    font-size: .9rem;
    margin: 0 0 1rem;
}

#commonweal-legal-foundations .cw-legal-header h2 {
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 400;
    margin: 0 0 .7rem;
}

#commonweal-legal-foundations .cw-legal-header > p:last-child {
    color: #d9e3ef;
    margin: 0;
    line-height: 1.6;
}

#commonweal-legal-foundations .cw-legal-body {
    padding: clamp(1.3rem, 4vw, 2.75rem);
}

#commonweal-legal-foundations .cw-legal-prose h3 {
    color: #102d50;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.45;
    margin: 2.6rem 0 1.1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid #d5d8dc;
}

#commonweal-legal-foundations .cw-legal-prose h3:first-child {
    margin-top: 0;
}

#commonweal-legal-foundations .cw-legal-prose p {
    max-width: 82ch;
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.9;
    margin: 0 0 1.5rem;
    overflow-wrap: break-word;
}

#commonweal-legal-foundations .cw-legal-final {
    background: #f3f6f9;
    border-left: 3px solid #b49a57;
    padding: 1.35rem;
    text-align: center;
    margin-top: 2.5rem;
}

#commonweal-legal-foundations .cw-legal-footer {
    background: #f3f6f9;
    border-top: 1px solid #d5d8dc;
    padding: 1.3rem 2rem;
    color: #526075;
    font-size: .95rem;
    line-height: 1.75;
}

@media (max-width: 700px) {
    #commonweal-legal-foundations {
        margin: 2.25rem 0;
    }

    #commonweal-legal-foundations .cw-legal-body {
        padding: 1.2rem;
    }

    #commonweal-legal-foundations .cw-legal-prose p {
        font-size: 1rem;
        line-height: 1.8;
    }
}


/* NOTARIAL SUBSECTION ONLY */

#commonweal-legal-foundations
.cw-legal-body h3.cw-notarial-heading {
    font-size: inherit;
    line-height: inherit;
    font-weight: 700;
    letter-spacing: normal;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}


/* FIVE ANCHORS OF SOVEREIGNTY */

.cw-five-anchors {
    padding: 42px 22px;
    color: #f7f1df;
    background: #101f3c;
}

.cw-five-anchors-inner {
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid rgba(214,181,103,.55);
    padding: 34px;
    background: #142747;
}

.cw-five-anchors-header {
    text-align: center;
    margin-bottom: 30px;
}

.cw-five-anchors-kicker {
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #d6b567;
    font-size: .8rem;
}

.cw-five-anchors h2 {
    color: #f2d899;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    margin: 12px 0 18px;
}

.cw-five-anchors h3 {
    color: #f2d899;
    font-size: 1.25rem;
    margin: 0 0 12px;
}

.cw-five-anchors p {
    line-height: 1.85;
    margin: 0 0 14px;
}

.cw-anchor {
    padding: 22px 0;
    border-top: 1px solid rgba(214,181,103,.35);
}

@media (max-width: 650px) {
    .cw-five-anchors {
        padding: 24px 12px;
    }
    .cw-five-anchors-inner {
        padding: 22px 18px;
    }
}


/* GRAND IMPERIAL ARCHIVAL RECORD PRESENTATION */

.cw-restored-record {
    padding: 36px 18px;
}

.cw-restored-record .cw-legal-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid rgba(207,174,105,.65);
    background: #142747;
    color: #f7f1df;
}

.cw-restored-record .cw-legal-body {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.85;
}

.cw-restored-record p {
    margin: 0 0 1.25rem;
    line-height: 1.85;
}

.cw-restored-record h2,
.cw-restored-record h3,
.cw-restored-record h4 {
    color: #f2d899;
    line-height: 1.35;
    margin: 1.8rem 0 1rem;
}

.cw-restored-record a:not(.cw-archive-button) {
    color: #f2d899;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cw-archive-action {
    text-align: center;
    margin: 38px auto 12px;
    padding: 26px 16px;
    border-top: 1px solid rgba(207,174,105,.4);
}

.cw-archive-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 25px;
    background: #d6b567;
    color: #101f3c !important;
    border: 1px solid #f2d899;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease;
}

.cw-archive-button:hover,
.cw-archive-button:focus-visible {
    background: #f2d899;
}

.cw-archive-button-symbol {
    font-size: 1.2rem;
}

.cw-archive-caption {
    margin-top: 14px !important;
    font-size: .88rem;
    color: #e7d9b8;
    line-height: 1.65;
}

@media (max-width: 650px) {
    .cw-restored-record {
        padding: 18px 10px;
    }

    .cw-restored-record .cw-legal-inner {
        padding: 22px 16px;
    }

    .cw-archive-button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* ============================================================
   CITIZEN SERVICES — ROYAL COMMONWEAL TYPOGRAPHY
   Matches established Commonweal editorial hierarchy.
   Content and structure remain untouched.
   ============================================================ */

.content .cw-record {
    line-height: 1.6;
}

/* Principal page title */
.content .cw-record > h1 {
    margin: 0 0 22px;
    color: var(--royal-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    line-height: 1.25;
    font-weight: normal;
}

/* Major constitutional / institutional divisions */
.content .cw-record > h2 {
    margin: 30px 0 14px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--royal-gold);
    color: var(--royal-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.3;
    font-weight: normal;
}

/* Five Anchors and subordinate headings */
.content .cw-record > h3 {
    margin: 24px 0 10px;
    color: var(--royal-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.35;
    font-weight: normal;
}

/* Commonweal kicker */
.content .cw-record .cw-kicker {
    margin: 0 0 7px;
    color: #555;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    line-height: 1.4;
    font-style: italic;
    letter-spacing: .04em;
}

/* Historical record prose */
.content .cw-record p {
    margin: 0 0 14px;
    line-height: 1.6;
}

/* Lists need breathing room without becoming oversized */
.content .cw-record ul,
.content .cw-record ol {
    margin: 10px 0 20px;
    padding-left: 32px;
}

.content .cw-record li {
    margin: 5px 0;
    line-height: 1.55;
}

/* Historical explanatory descriptions */
.content .cw-record em {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.55;
}

/* Keep emphasis strong without turning whole sections into black blocks */
.content .cw-record strong {
    font-weight: 700;
}

/* Links remain in established Royal Commonweal blue */
.content .cw-record a {
    color: #173d70;
}

/* Mobile refinement */
@media (max-width: 700px) {
    .content .cw-record > h1 {
        font-size: 27px;
    }

    .content .cw-record > h2 {
        margin-top: 26px;
        font-size: 21px;
    }

    .content .cw-record > h3 {
        margin-top: 22px;
        font-size: 19px;
    }

    .content .cw-record p,
    .content .cw-record li {
        font-size: 16px;
    }

    .content .cw-record ul,
    .content .cw-record ol {
        padding-left: 26px;
    }
}


/* Government Administration institutional imagery */
#ministry-official-seal .gov-figure {
    max-width: 420px;
    margin: 1.5rem auto 2rem;
}

#ministry-official-seal .gov-figure img {
    display: block;
    width: 100%;
    height: auto;
}

#record-2026-04-14 .gov-figure {
    max-width: 700px;
    margin: 1.5rem auto 1rem;
}

#record-2026-04-14 .gov-figure img {
    display: block;
    width: 100%;
    height: auto;
}

#ministry-official-seal .gov-figure figcaption,
#record-2026-04-14 .gov-figure figcaption {
    margin-top: 0.5rem;
    text-align: center;
}

/* Government Administration image sizing — proportional to page */
#ministry-official-seal .gov-figure {
    width: 58% !important;
    max-width: 360px !important;
    margin: 1.5rem auto 2rem !important;
}

#ministry-official-seal .gov-figure img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

#record-2026-04-14 .gov-figure {
    width: 78% !important;
    max-width: 620px !important;
    margin: 1.5rem auto 1rem !important;
}

#record-2026-04-14 .gov-figure img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

#ministry-official-seal .gov-figure figcaption,
#record-2026-04-14 .gov-figure figcaption {
    width: 100%;
    margin-top: .5rem;
    text-align: center;
}

@media (max-width: 600px) {
    #ministry-official-seal .gov-figure {
        width: 62% !important;
    }

    #record-2026-04-14 .gov-figure {
        width: 82% !important;
    }
}

/* Final proportional sizing for Government Administration seal */
#ministry-official-seal .gov-figure {
    width: 42% !important;
    max-width: 300px !important;
    margin: 1.25rem auto 1.5rem !important;
}

#ministry-official-seal .gov-figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

@media (max-width: 600px) {
    #ministry-official-seal .gov-figure {
        width: 42% !important;
        max-width: 260px !important;
    }
}

/* Government Administration archival illustrations */
.gov-portrait,
.gov-map {
    margin: 1.5rem auto 2rem;
    text-align: center;
}

.gov-portrait img {
    display: block;
    width: auto;
    max-width: min(100%, 720px);
    height: auto;
    margin: 0 auto;
}

.grand-ministry-portrait img {
    max-width: min(100%, 680px);
}

.gov-map img {
    display: block;
    width: auto;
    max-width: min(100%, 850px);
    height: auto;
    margin: 0 auto;
}

.gov-portrait figcaption,
.gov-map figcaption {
    max-width: 850px;
    margin: 0.65rem auto 0;
    text-align: center;
    line-height: 1.45;
}

@media (max-width: 700px) {
    .gov-portrait img,
    .grand-ministry-portrait img,
    .gov-map img {
        max-width: 100%;
    }
}


/* ============================================================
   GOVERNMENT ADMINISTRATION
   Unified presentation layer
   ============================================================ */

/* ---------- Principal divisions ---------- */

.gov-wrap .gov-section {
    margin: 2.5rem 0;
    padding: 2rem 2.1rem;
    border: 1px solid rgba(194, 156, 74, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.018);
}

.gov-wrap .gov-section > h2:first-child,
.gov-wrap .gov-section > h3:first-child {
    margin-top: 0;
}


/* ---------- Historical / Chancery records ---------- */

.gov-wrap .gov-record {
    position: relative;
    margin: 2.75rem 0;
    padding: 2rem 2.1rem 2.15rem;
    border: 1px solid rgba(194, 156, 74, 0.34);
    border-top: 3px solid rgba(194, 156, 74, 0.72);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.022);
}

.gov-wrap .gov-record > h2:first-child,
.gov-wrap .gov-record > h3:first-child {
    margin-top: 0;
}

.gov-wrap .historical-record {
    background:
        linear-gradient(
            180deg,
            rgba(194, 156, 74, 0.045),
            rgba(255, 255, 255, 0.012) 8rem
        );
}


/* ---------- Record dates ---------- */

.gov-wrap .record-date {
    display: block;
    margin: 0 0 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    opacity: 0.84;
}


/* ---------- Internal heading hierarchy ---------- */

.gov-wrap .gov-section h3,
.gov-wrap .gov-record h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    line-height: 1.25;
}

.gov-wrap .gov-section h4,
.gov-wrap .gov-record h4 {
    margin-top: 1.55rem;
    margin-bottom: 0.55rem;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}


/* ---------- Body rhythm ---------- */

.gov-wrap .gov-section p,
.gov-wrap .gov-record p {
    margin-top: 0.75rem;
    margin-bottom: 0.9rem;
    line-height: 1.68;
}

.gov-wrap .gov-section ul,
.gov-wrap .gov-section ol,
.gov-wrap .gov-record ul,
.gov-wrap .gov-record ol {
    margin-top: 0.8rem;
    margin-bottom: 1.15rem;
    padding-left: 1.6rem;
}

.gov-wrap .gov-section li,
.gov-wrap .gov-record li {
    margin: 0.42rem 0;
    line-height: 1.58;
}


/* ---------- Offices / institutional blocks ---------- */

.gov-wrap .gov-office {
    margin: 1rem 0;
    padding: 1rem 1.15rem;
    border-left: 3px solid rgba(194, 156, 74, 0.58);
    background: rgba(194, 156, 74, 0.035);
}

.gov-wrap .institutional-chain,
.gov-wrap .institutional-status,
.gov-wrap .icu-status-note,
.gov-wrap .royal-maxim {
    margin: 1.35rem 0;
    padding: 1rem 1.2rem;
    border-left: 3px solid rgba(194, 156, 74, 0.62);
    background: rgba(194, 156, 74, 0.04);
}


/* ---------- Translations / documentary apparatus ---------- */

.gov-wrap .translation {
    margin: 0.65rem 0 1.2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(194, 156, 74, 0.42);
    font-style: italic;
    opacity: 0.9;
}

.gov-wrap .record-colophon {
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(194, 156, 74, 0.28);
    font-size: 0.9rem;
    line-height: 1.55;
}


/* ---------- Government figures ---------- */

.gov-wrap .gov-figure {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gov-wrap .gov-figure img {
    display: block;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.gov-wrap .gov-figure figcaption {
    margin: 0.65rem auto 0;
    max-width: 760px;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
    opacity: 0.78;
}


/* Grand Ministry Building: restored record ID */

#record-14-april-2026-official-portrait .grand-ministry-portrait img {
    width: auto;
    max-width: min(100%, 680px);
}


/* ---------- Long-record readability ---------- */

.gov-wrap .gov-record > *:last-child,
.gov-wrap .gov-section > *:last-child {
    margin-bottom: 0;
}


/* ---------- Mobile normalization ---------- */

@media (max-width: 700px) {

    .gov-wrap .gov-section,
    .gov-wrap .gov-record {
        margin: 1.6rem 0;
        padding: 1.35rem 1.15rem 1.5rem;
    }

    .gov-wrap .gov-section h3,
    .gov-wrap .gov-record h3 {
        margin-top: 1.6rem;
    }

    .gov-wrap .gov-office,
    .gov-wrap .institutional-chain,
    .gov-wrap .institutional-status,
    .gov-wrap .icu-status-note,
    .gov-wrap .royal-maxim {
        padding: 0.85rem 0.95rem;
    }

    #record-14-april-2026-official-portrait .grand-ministry-portrait img {
        max-width: 100%;
    }
}


/* Government Administration royal-blue headings */
.gov-wrap h2,
.gov-wrap h3,
.gov-wrap h4 {
    color: #173f73;
}

/* Government Administration constitutional and institutional diagrams */
.gov-diagram {
    margin: 2rem auto 2.25rem;
    text-align: center;
}

.gov-diagram img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
}

.gov-diagram figcaption {
    max-width: 850px;
    margin: 0.75rem auto 0;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .gov-diagram {
        margin: 1.5rem auto 1.75rem;
    }

    .gov-diagram img {
        max-width: 100%;
    }
}


/* CHRONAEONICA SHARED MARQUEE ANIMATION */

.cl-chronaeonica {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cl-chronaeonica-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    white-space: nowrap;
    animation: npms-chronaeonica-scroll 48s linear infinite;
    will-change: transform;
}

.cl-chronaeonica-track > span {
    display: inline-block;
    flex: 0 0 auto;
    padding-right: 3rem;
}

@keyframes npms-chronaeonica-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}
