/* European Digital Certification Agency — house style.
 *
 * The reference points are institutional publishing rather than product
 * marketing: a fixed measure, a serif for anything that carries authority,
 * hairline rules instead of shadows, numbered sections, and colour used to
 * classify rather than to decorate. Nothing animates that a printed document
 * could not do.
 */

:root {
    --navy: #12315c;
    --navy-dark: #0b2244;
    --navy-mid: #1c4276;
    --navy-soft: #e8edf5;

    --gold: #9a7b25;
    --gold-bright: #c2a24a;
    --gold-soft: #f5efdd;

    --ink: #191c21;
    --body: #333a45;
    --muted: #5d6774;
    --faint: #8b95a3;

    --rule: #d3d9e2;
    --rule-strong: #b3bcc9;
    --paper: #ffffff;
    --tint: #f5f7fa;
    --tint-warm: #faf8f3;

    --valid: #1e6b45;
    --valid-bg: #e8f2ec;
    --suspended: #97650f;
    --suspended-bg: #fbf1dd;
    --withdrawn: #96271f;
    --withdrawn-bg: #f9eae8;
    --expired: #5d6774;
    --expired-bg: #eef0f3;

    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
        Georgia, "Times New Roman", "Liberation Serif", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
        Arial, "Liberation Sans", sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Consolas,
        "Liberation Mono", Menlo, monospace;

    --wrap: 1180px;
    --measure: 74ch;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.65;
    font-feature-settings: "kern" 1;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 28px;
}

/* --- typography -------------------------------------------------------- */

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.008em;
    margin: 0 0 0.5em;
}

h1 {
    font-size: clamp(2rem, 1.4rem + 2.2vw, 3.05rem);
    letter-spacing: -0.018em;
}

h2 {
    font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem);
}

h3 {
    font-size: 1.24rem;
}

h4 {
    font-size: 1.05rem;
    font-family: var(--sans);
    font-weight: 650;
    letter-spacing: 0;
}

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--navy-mid);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 0.06em;
    text-decoration-color: var(--rule-strong);
}

a:hover {
    color: var(--navy);
    text-decoration-color: currentColor;
}

strong {
    font-weight: 650;
    color: var(--ink);
}

.lead {
    font-size: 1.16rem;
    line-height: 1.62;
    color: var(--body);
}

.prose {
    max-width: var(--measure);
}

.prose ul,
.prose ol {
    margin: 0 0 1.2em;
    padding-left: 1.25em;
}

.prose li {
    margin-bottom: 0.42em;
}

.eyebrow {
    font-family: var(--sans);
    font-size: 0.735rem;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 0.9em;
}

.eyebrow--light {
    color: var(--gold-bright);
}

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

.small {
    font-size: 0.875rem;
    line-height: 1.55;
}

.mono {
    font-family: var(--mono);
    font-size: 0.92em;
    letter-spacing: 0.02em;
}

/* --- skip link --------------------------------------------------------- */

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    z-index: 100;
}

.skip:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--navy-mid);
    outline-offset: 2px;
}

/* --- utility strip ----------------------------------------------------- */

.utility {
    background: var(--navy-dark);
    color: #c3cede;
    font-size: 0.755rem;
    letter-spacing: 0.045em;
}

.utility .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 34px;
    flex-wrap: wrap;
}

.utility__notice {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #97a8c0;
}

.utility a {
    color: #dbe4ef;
    text-decoration: none;
    margin-left: 20px;
}

.utility a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- masthead ---------------------------------------------------------- */

.masthead {
    background: var(--navy);
    color: #fff;
    border-bottom: 3px solid var(--gold);
}

.masthead .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
}

.brand__emblem {
    width: 46px;
    height: 54px;
    flex: none;
}

.brand__text {
    display: block;
}

.brand__name {
    font-family: var(--serif);
    font-size: 1.3rem;
    line-height: 1.15;
    color: #fff;
    letter-spacing: 0.005em;
}

.brand__sub {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.155em;
    text-transform: uppercase;
    color: #9fb2ca;
    margin-top: 5px;
}

.masthead__aside {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- primary navigation ------------------------------------------------ */

.nav {
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list a {
    display: block;
    padding: 13px 17px;
    color: #d3dcea;
    text-decoration: none;
    font-size: 0.815rem;
    letter-spacing: 0.075em;
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 3px solid transparent;
}

.nav__list a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.nav__list a[aria-current="page"] {
    color: #fff;
    border-bottom-color: var(--gold-bright);
}

.nav__toggle {
    display: none;
}

/* --- buttons ----------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 650;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.btn:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
    color: #fff;
}

.btn--gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}

.btn--gold:hover {
    background: #866819;
    border-color: #866819;
}

.btn--ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--rule-strong);
}

.btn--ghost:hover {
    background: var(--tint);
    color: var(--navy-dark);
    border-color: var(--navy);
}

.btn--onblue {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.btn--onblue:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.755rem;
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

/* --- page furniture ---------------------------------------------------- */

.breadcrumb {
    background: var(--tint);
    border-bottom: 1px solid var(--rule);
    font-size: 0.79rem;
    color: var(--muted);
}

.breadcrumb .wrap {
    padding-top: 9px;
    padding-bottom: 9px;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
    margin: 0 8px;
    color: var(--faint);
}

.page-head {
    border-bottom: 1px solid var(--rule);
    padding: 52px 0 42px;
}

.page-head--tinted {
    background: var(--tint);
}

.page-head h1 {
    max-width: 20ch;
}

.page-head .lead {
    max-width: 66ch;
    margin-bottom: 0;
}

section {
    padding: 56px 0;
}

section + section {
    border-top: 1px solid var(--rule);
}

.section--tint {
    background: var(--tint);
}

.section--warm {
    background: var(--tint-warm);
}

.section--navy {
    background: var(--navy);
    color: #c9d5e5;
    border-top: none;
}

.section--navy h2,
.section--navy h3 {
    color: #fff;
}

.section--navy a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

.section__head {
    margin-bottom: 34px;
    max-width: 68ch;
}

.section__head p {
    margin-bottom: 0;
}

/* Numbered headings, as in a printed standard. */
.numbered {
    counter-reset: sect;
}

.numbered > .clause > h2::before {
    counter-increment: sect;
    content: counter(sect) ".";
    color: var(--gold);
    font-family: var(--sans);
    font-size: 0.72em;
    font-weight: 650;
    margin-right: 0.7em;
    vertical-align: 0.08em;
}

.clause {
    padding: 40px 0;
}

.clause + .clause {
    border-top: 1px solid var(--rule);
}

/* --- home hero --------------------------------------------------------- */

.hero {
    background: var(--navy);
    color: #cbd7e7;
    padding: 0;
    position: relative;
    border-bottom: 3px solid var(--gold);
}

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
}

.hero h1 {
    color: #fff;
    max-width: 17ch;
    margin-bottom: 22px;
}

.hero__motto {
    font-family: var(--serif);
    font-size: 1.32rem;
    font-style: italic;
    color: var(--gold-bright);
    margin: 0 0 26px;
}

.hero__lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #c2cfe1;
    max-width: 56ch;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero__panel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 30px 30px 32px;
}

.hero__panel h2 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 6px;
}

.hero__panel p {
    font-size: 0.9rem;
    color: #a9bad0;
}

/* --- verification box -------------------------------------------------- */

.verify-form {
    display: flex;
    gap: 0;
    margin-top: 18px;
}

.verify-form input {
    flex: 1;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid var(--rule-strong);
    border-right: none;
    background: #fff;
    font-family: var(--mono);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.verify-form input::placeholder {
    color: var(--faint);
    letter-spacing: 0.02em;
}

.verify-form button {
    border-radius: 0;
    white-space: nowrap;
}

/* --- statistics strip -------------------------------------------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--rule);
    background: #fff;
}

.stats__item {
    padding: 26px 24px;
    border-right: 1px solid var(--rule);
}

.stats__item:last-child {
    border-right: none;
}

.stats__value {
    font-family: var(--serif);
    font-size: 2.1rem;
    line-height: 1;
    color: var(--navy);
    display: block;
}

.stats__label {
    display: block;
    margin-top: 9px;
    font-size: 0.755rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

/* --- grids and cards --------------------------------------------------- */

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.card {
    background: #fff;
    border: 1px solid var(--rule);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
}

.card--link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.12s ease;
}

.card--link:hover {
    border-color: var(--navy);
    color: inherit;
}

.card__code {
    font-family: var(--mono);
    font-size: 0.715rem;
    letter-spacing: 0.11em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 0.925rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.card__foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 650;
    color: var(--navy-mid);
}

/* Level cards carry a rank stripe, so the hierarchy reads without labels. */
.level-card {
    border-top: 4px solid var(--navy);
}

.level-card[data-level="SR"] {
    border-top-color: #7d93b0;
}

.level-card[data-level="SV"] {
    border-top-color: var(--navy-mid);
}

.level-card[data-level="AC"] {
    border-top-color: var(--navy);
}

.level-card[data-level="TT"] {
    border-top-color: var(--gold);
}

.level-card__ordinal {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 650;
}

/* --- definition rows --------------------------------------------------- */

.deflist {
    margin: 0;
    border-top: 1px solid var(--rule);
}

.deflist__row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}

.deflist__key {
    font-size: 0.78rem;
    letter-spacing: 0.085em;
    text-transform: uppercase;
    font-weight: 650;
    color: var(--muted);
    padding-top: 2px;
}

.deflist__val {
    color: var(--ink);
}

.deflist__val > :last-child {
    margin-bottom: 0;
}

/* --- tables ------------------------------------------------------------ */

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--rule);
    background: #fff;
}

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
}

table.data caption {
    text-align: left;
    padding: 16px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 650;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    background: var(--tint);
}

table.data th {
    text-align: left;
    padding: 12px 18px;
    background: var(--navy);
    color: #fff;
    font-size: 0.735rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 650;
    white-space: nowrap;
}

/* Sortable column headers. Links rather than script: the register must sort
   for a reader with no JavaScript, and each order is then a shareable URL. */
table.data th a.sort {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

table.data th a.sort:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sort__mark {
    font-size: 0.72em;
    opacity: 0.35;
    line-height: 1;
}

.sort--active .sort__mark {
    opacity: 1;
    color: var(--gold-bright);
}

table.data th[aria-sort] {
    background: var(--navy-dark);
}

table.data td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

table.data tbody tr:last-child td {
    border-bottom: none;
}

table.data tbody tr:hover {
    background: var(--tint);
}

table.data a {
    text-decoration: none;
    font-weight: 600;
    color: var(--navy-mid);
}

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

/* --- status badges ----------------------------------------------------- */

.status {
    display: inline-block;
    padding: 3px 11px 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid;
    white-space: nowrap;
}

.status--valid {
    color: var(--valid);
    background: var(--valid-bg);
    border-color: #b6d5c4;
}

.status--suspended {
    color: var(--suspended);
    background: var(--suspended-bg);
    border-color: #e3cd9c;
}

.status--withdrawn {
    color: var(--withdrawn);
    background: var(--withdrawn-bg);
    border-color: #e5bbb6;
}

.status--expired {
    color: var(--expired);
    background: var(--expired-bg);
    border-color: var(--rule-strong);
}

/* --- notices ----------------------------------------------------------- */

.notice {
    border-left: 4px solid var(--navy);
    background: var(--tint);
    padding: 20px 24px;
    font-size: 0.92rem;
}

.notice > :last-child {
    margin-bottom: 0;
}

.notice__title {
    font-weight: 650;
    color: var(--ink);
    display: block;
    margin-bottom: 6px;
}

.notice--warning {
    border-left-color: var(--suspended);
    background: var(--suspended-bg);
}

.notice--error {
    border-left-color: var(--withdrawn);
    background: var(--withdrawn-bg);
}

.notice--success {
    border-left-color: var(--valid);
    background: var(--valid-bg);
}

.notice--gold {
    border-left-color: var(--gold);
    background: var(--gold-soft);
}

/* --- process stages ---------------------------------------------------- */

.stage {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 28px;
    padding: 30px 0;
    border-bottom: 1px solid var(--rule);
}

.stage:last-child {
    border-bottom: none;
}

.stage__num {
    font-family: var(--serif);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--navy-soft);
    font-weight: 600;
    text-align: right;
    padding-top: 4px;
}

.stage__meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    font-size: 0.79rem;
    color: var(--muted);
}

.stage__meta b {
    color: var(--ink);
    font-weight: 650;
}

.stage h3 {
    margin-bottom: 8px;
}

.stage p {
    margin-bottom: 0;
    max-width: 70ch;
}

/* --- forms ------------------------------------------------------------- */

.form {
    max-width: 780px;
}

fieldset {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 0 0 8px;
    padding: 26px 0 8px;
}

legend {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--navy);
    padding: 0 14px 0 0;
}

.field {
    margin-bottom: 20px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

label {
    display: block;
    font-size: 0.83rem;
    font-weight: 650;
    color: var(--ink);
    margin-bottom: 6px;
}

.field__hint {
    display: block;
    font-weight: 400;
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 3px;
}

.req {
    color: var(--withdrawn);
    font-weight: 400;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--rule-strong);
    background: #fff;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
    border-radius: 0;
}

textarea {
    min-height: 130px;
    resize: vertical;
    line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--navy-mid);
    outline: 2px solid rgba(28, 66, 118, 0.16);
    outline-offset: 0;
}

select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 19px) 51%, calc(100% - 13px) 51%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 38px;
}

.checkbox {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.checkbox input {
    margin-top: 4px;
}

.checkbox label {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--body);
    margin: 0;
}

.form__actions {
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* --- register search --------------------------------------------------- */

.filters {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 22px 24px;
    background: var(--tint);
    border: 1px solid var(--rule);
    margin-bottom: 26px;
}

.filters .field {
    margin: 0;
    min-width: 190px;
    flex: 1;
}

.filters .field--wide {
    flex: 2.2;
}

/* --- certificate document ---------------------------------------------- */

.certificate {
    border: 1px solid var(--rule);
    border-top: 5px solid var(--navy);
    background: #fff;
    padding: 0;
}

.certificate__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 36px;
    padding: 40px 44px 34px;
    border-bottom: 1px solid var(--rule);
    align-items: center;
}

.certificate__seal {
    width: 170px;
    height: 170px;
    justify-self: center;
}

.certificate__number {
    font-family: var(--mono);
    font-size: 1.45rem;
    letter-spacing: 0.075em;
    color: var(--navy);
    font-weight: 600;
    margin: 4px 0 16px;
}

.certificate__holder {
    font-family: var(--serif);
    font-size: 1.9rem;
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 8px;
}

.certificate__body {
    padding: 34px 44px 40px;
}

.certificate__foot {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 28px 44px 34px;
    border-top: 1px solid var(--rule);
    background: var(--tint);
}

.certificate__qr {
    width: 132px;
    height: 132px;
    background: #fff;
    border: 1px solid var(--rule);
    padding: 8px;
}

.certificate__qr svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Status banner above the document: the answer, before the detail. */
.verdict {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border: 1px solid;
    margin-bottom: 28px;
}

.verdict__icon {
    width: 44px;
    height: 44px;
    flex: none;
}

.verdict h2 {
    margin: 0 0 3px;
    font-size: 1.3rem;
}

.verdict p {
    margin: 0;
    font-size: 0.92rem;
}

.verdict--valid {
    background: var(--valid-bg);
    border-color: #b6d5c4;
    color: var(--valid);
}

.verdict--valid h2 {
    color: var(--valid);
}

.verdict--invalid {
    background: var(--withdrawn-bg);
    border-color: #e5bbb6;
    color: var(--withdrawn);
}

.verdict--invalid h2 {
    color: var(--withdrawn);
}

.verdict--caution {
    background: var(--suspended-bg);
    border-color: #e3cd9c;
    color: var(--suspended);
}

.verdict--caution h2 {
    color: var(--suspended);
}

.verdict--neutral {
    background: var(--expired-bg);
    border-color: var(--rule-strong);
    color: var(--expired);
}

.verdict--neutral h2 {
    color: var(--ink);
}

/* --- footer ------------------------------------------------------------ */

.footer {
    background: var(--navy-dark);
    color: #9fb0c6;
    font-size: 0.87rem;
    padding: 52px 0 0;
    border-top: 3px solid var(--gold);
}

.footer__cols {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer h4 {
    color: #fff;
    font-size: 0.755rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 14px;
    font-family: var(--sans);
    font-weight: 700;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer li {
    margin-bottom: 8px;
}

.footer a {
    color: #b9c7da;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer__legal {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    padding: 22px 0 30px;
    font-size: 0.8rem;
    color: #8194ad;
}

.footer__legal p {
    margin: 0 0 8px;
    max-width: 100ch;
}

.footer__brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.footer__brand svg {
    flex: none;
}

.footer__brand strong {
    color: #fff;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.02rem;
}

/* --- misc -------------------------------------------------------------- */

.rule {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 32px 0;
}

.tag {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 650;
    color: var(--navy);
    background: var(--navy-soft);
    padding: 3px 10px 4px;
    margin: 0 6px 6px 0;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 11px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 13px;
    height: 7px;
    border-left: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(-45deg);
}

.empty {
    padding: 56px 28px;
    text-align: center;
    border: 1px dashed var(--rule-strong);
    background: var(--tint);
    color: var(--muted);
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
    font-size: 0.85rem;
}

.pagination a,
.pagination span {
    padding: 7px 13px;
    border: 1px solid var(--rule);
    text-decoration: none;
    color: var(--navy-mid);
}

.pagination span[aria-current] {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

/* --- responsive -------------------------------------------------------- */

@media (max-width: 980px) {
    .hero .wrap {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 52px;
        padding-bottom: 52px;
    }

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

    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__item:nth-child(2) {
        border-right: none;
    }

    .stats__item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--rule);
    }

    .certificate__head {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .certificate__seal {
        order: -1;
        justify-self: start;
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .wrap {
        padding: 0 20px;
    }

    .masthead .wrap {
        flex-wrap: wrap;
        gap: 16px;
    }

    .masthead__aside {
        width: 100%;
    }

    .masthead__aside .btn {
        flex: 1;
        text-align: center;
    }

    /* The main navigation becomes a disclosure rather than a scrolling row:
       ten institutional labels do not fit any phone. */
    .nav__toggle {
        display: block;
        width: 100%;
        padding: 12px 0;
        background: none;
        border: none;
        color: #d3dcea;
        font: inherit;
        font-size: 0.8rem;
        font-weight: 650;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        text-align: left;
        cursor: pointer;
    }

    .nav__toggle::after {
        content: "+";
        float: right;
        font-size: 1.2rem;
        line-height: 1;
    }

    .nav__list {
        display: none;
        flex-direction: column;
        padding-bottom: 10px;
    }

    .nav[open] .nav__list,
    .nav__list.is-open {
        display: flex;
    }

    .nav__toggle[aria-expanded="true"]::after {
        content: "−";
    }

    .nav__list a {
        padding: 11px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav__list a[aria-current="page"] {
        border-bottom-color: var(--gold-bright);
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .deflist__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .stage {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .stage__num {
        text-align: left;
        font-size: 1.7rem;
        color: var(--gold);
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stats__item {
        border-right: none;
        border-bottom: 1px solid var(--rule);
    }

    .certificate__head,
    .certificate__body,
    .certificate__foot {
        padding-left: 24px;
        padding-right: 24px;
    }

    .certificate__foot {
        grid-template-columns: 1fr;
    }

    .verify-form {
        flex-direction: column;
    }

    .verify-form input {
        border-right: 1px solid var(--rule-strong);
    }

    section {
        padding: 40px 0;
    }
}

/* --- print ------------------------------------------------------------- */

@media print {
    .utility,
    .nav,
    .breadcrumb,
    .footer,
    .no-print,
    .masthead__aside {
        display: none !important;
    }

    body {
        font-size: 11pt;
        color: #000;
    }

    .masthead {
        background: none;
        color: #000;
        border-bottom: 2px solid #000;
    }

    .brand__name,
    .brand__sub {
        color: #000;
    }

    .certificate {
        border: 1px solid #000;
        page-break-inside: avoid;
    }

    .certificate__foot {
        background: none;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    section {
        padding: 16pt 0;
    }
}
