:root {
    --ink: #17211b;
    --ink-soft: #3c4941;
    --paper: #f8f5ef;
    --paper-deep: #eee7dc;
    --white: #fffdf8;
    --line: #d8d0c2;
    --green: #234838;
    --green-deep: #142d24;
    --gold: #a97932;
    --rose: #8c3f43;
    --panel: #fffdf8;
    --panel-soft: #f3eee5;
    --on-dark: #fffdf8;
    --on-dark-soft: #eadfce;
    --shadow: 0 14px 32px rgba(23, 33, 27, .1);
}

:root[data-theme="dark"] {
    --ink: #f7f1e8;
    --ink-soft: #d8cfc2;
    --paper: #0e1724;
    --paper-deep: #162235;
    --white: #172338;
    --line: #53627a;
    --green: #d8b56f;
    --green-deep: #09111d;
    --gold: #e0b66f;
    --rose: #e4a0aa;
    --panel: #172338;
    --panel-soft: #1f2e45;
    --on-dark: #fff8ed;
    --on-dark-soft: #eadfce;
    --shadow: 0 16px 36px rgba(0, 0, 0, .34);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

p {
    hyphens: none;
}

body,
.site-header,
.student-header,
.credential-panel,
.program-list article,
.standard-list article,
.lesson-content,
.submission-panel,
.next-lesson,
.lesson-map {
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 10;
    background: var(--green);
    color: var(--white);
    padding: .7rem 1rem;
}

.skip-link:focus {
    top: 1rem;
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.home-cinematic {
    position: relative;
    isolation: isolate;
    display: grid;
    height: 50svh;
    overflow: hidden;
    place-items: center;
    background: #081016;
    color: var(--on-dark);
    z-index: 1;
}

.home-cinematic-spacer {
    display: none;
}

.home-cinematic__video,
.home-cinematic__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-cinematic__video {
    z-index: -3;
    object-fit: cover;
    filter: saturate(.92) contrast(1.08);
}

.home-cinematic__shade {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(8, 16, 22, .16) 0%, rgba(8, 16, 22, .55) 56%, rgba(8, 16, 22, .94) 100%),
        radial-gradient(ellipse 72% 58% at 50% 42%, rgba(169, 121, 50, .22), transparent 68%);
}

.home-cinematic__shade::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28vh;
    background: linear-gradient(180deg, transparent, rgba(8, 16, 22, .96));
}

.home-cinematic__inner {
    position: relative;
    z-index: 1;
    padding: clamp(1rem, 3vw, 2rem) 0;
    text-align: center;
}

.home-cinematic__kicker {
    max-width: none;
    margin: 0 0 1.2rem;
    color: rgba(255, 248, 237, .78);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: clamp(.76rem, 1.2vw, .95rem);
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

.home-cinematic h1 {
    max-width: none;
    color: #fff8ed;
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: clamp(4.4rem, 15vw, 12.5rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: .78;
    text-transform: uppercase;
    text-shadow: 0 18px 70px rgba(0, 0, 0, .42);
}

.home-cinematic h1 span {
    color: var(--gold);
}

.home-cinematic__lede {
    max-width: 780px;
    margin: 2rem auto 0;
    color: rgba(255, 248, 237, .92);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: clamp(1.25rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.14;
    text-align: center;
}

.home-cinematic__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: center;
    margin-top: 2.3rem;
}

.home-cinematic__actions .button {
    border-color: rgba(255, 248, 237, .52);
    background: rgba(8, 16, 22, .36);
    color: var(--on-dark);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.home-cinematic__actions .button--primary {
    border-color: var(--gold);
    background: var(--gold);
    color: #081016;
}

.home-cinematic__scroll {
    position: absolute;
    left: 50%;
    bottom: 1.35rem;
    z-index: 1;
    display: grid;
    gap: .55rem;
    justify-items: center;
    color: rgba(255, 248, 237, .72);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.home-cinematic__scroll::after {
    content: "";
    width: 1px;
    height: 34px;
    background: linear-gradient(180deg, var(--gold), transparent);
}

#site-home {
    scroll-margin-top: 112px;
}

.notice-bar {
    background: var(--green-deep);
    color: rgba(255, 253, 248, .88);
    font-size: .9rem;
    letter-spacing: .02em;
}

.notice-bar__inner,
.primary-nav,
.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.notice-bar__inner {
    min-height: 40px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.primary-nav {
    min-height: 92px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
}

.brand__logo {
    display: block;
    width: 92px;
    height: 92px;
    background: transparent;
}

.brand__logo img {
    display: block;
    width: 92px;
    height: 92px;
    object-fit: contain;
}

/* Sticky-header wordmark: calibrated miniature of the home hero
   <h1>. Same Inter Tight extra-bold uppercase treatment, scaled
   for the header band, with the leading A in heritage gold. */
.brand strong {
    display: block;
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff8ed;
}

.brand strong span {
    color: var(--gold);
}

/* Light-mode override: cream-white doesn't read on a light header,
   so the "CADA" portion follows ink while the leading A stays gold. */
[data-theme="light"] .brand strong {
    color: var(--ink);
}

.brand small {
    display: block;
    color: var(--ink-soft);
    font-size: .86rem;
    line-height: 1.2;
}

/* Below ~1180px the full subtitle crowds the 9-item nav; hide it,
   the logo + "ACADA" wordmark still anchors identity. */
@media (max-width: 1180px) and (min-width: 901px) {
    .brand small {
        display: none;
    }
}

.primary-nav__links {
    display: flex;
    align-items: stretch;
    gap: .1rem;
    font-size: .88rem;
    font-weight: 600;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav__item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.primary-nav__item > a {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .55rem .7rem;
    color: var(--ink);
    text-decoration: none;
    border-radius: 6px;
    line-height: 1.2;
    position: relative;
    transition: color .12s ease, background .12s ease;
}

.primary-nav__item > a::after {
    content: "";
    position: absolute;
    left: .7rem;
    right: .7rem;
    bottom: .25rem;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .15s ease;
    border-radius: 1px;
}

.primary-nav__item > a:hover {
    color: var(--green);
    background: var(--panel-soft);
}

.primary-nav__item.is-active > a {
    color: var(--green);
}

.primary-nav__item.is-active > a::after {
    transform: scaleX(1);
}

.primary-nav__caret {
    width: 10px;
    height: 7px;
    flex-shrink: 0;
    transition: transform .15s ease;
}

.primary-nav__item--has-children:hover .primary-nav__caret,
.primary-nav__item--has-children:focus-within .primary-nav__caret {
    transform: rotate(180deg);
}

/* ── Dropdown ─────────────────────────────────────────────────────────── */

.primary-nav__dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: .35rem;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s;
    z-index: 30;
}

.primary-nav__item--has-children:hover .primary-nav__dropdown,
.primary-nav__item--has-children:focus-within .primary-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.primary-nav__dropdown li {
    list-style: none;
}

.primary-nav__dropdown a {
    display: block;
    padding: .55rem .85rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
    border-radius: 4px;
    line-height: 1.3;
}

.primary-nav__dropdown a:hover {
    background: var(--panel-soft);
    color: var(--green);
}

.primary-nav__controls {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.locale-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-width: 116px;
    height: 38px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
}

.locale-toggle__option {
    display: grid;
    place-items: center;
    height: 100%;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}

.locale-toggle__option.is-active {
    background: var(--gold);
    color: var(--green-deep);
}

.theme-toggle {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 76px;
    height: 38px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-soft);
    color: var(--ink);
    cursor: pointer;
    padding: 3px;
}

.theme-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: 34px;
    border-radius: 50%;
    background: var(--gold);
    transition: transform .18s ease;
}

:root[data-theme="dark"] .theme-toggle::before {
    transform: translateX(38px);
}

.theme-toggle__option {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    color: var(--ink-soft);
}

.theme-toggle__option svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:root[data-theme="light"] .theme-toggle__option--sun,
:root[data-theme="dark"] .theme-toggle__option--moon {
    color: var(--green-deep);
}

.theme-toggle:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    grid-area: 1 / 1;
    background: currentColor;
    transition: opacity .18s ease, transform .18s ease;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(7px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg);
}

select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.hero {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-hero,
.profile-hero {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.page-hero__inner {
    max-width: 820px;
    padding: 52px 0 34px;
}

.page-hero h1,
.profile-hero h1,
.catalog-hero h1,
.directory-hero h1,
.admissions-hero h1 {
    font-size: clamp(1.95rem, 4.4vw, 3.7rem);
}

.page-hero p:not(.eyebrow),
.profile-hero p:not(.eyebrow),
.catalog-hero p:not(.eyebrow),
.directory-hero p:not(.eyebrow),
.admissions-hero p:not(.eyebrow) {
    max-width: 720px;
    color: var(--ink-soft);
    font-size: 1.1rem;
}

.profile-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding: 56px 0 44px;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    min-height: 560px;
    padding: 56px 0 44px;
}

.banner-strip,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    width: fit-content;
    margin: 0 0 1rem;
    padding: .58rem .9rem .58rem .58rem;
    border: 1px solid rgba(169, 121, 50, .34);
    background: linear-gradient(90deg, rgba(169, 121, 50, .18), rgba(169, 121, 50, .05));
    color: var(--ink);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
}

.banner-strip::before,
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 2.55rem;
    height: 2.55rem;
    flex: 0 0 2.55rem;
    border: 1px solid rgba(169, 121, 50, .42);
    box-shadow: inset 0 0 0 1px rgba(169, 121, 50, .08);
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23a97932' d='M18 25a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm13-5a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm14 5a7 7 0 1 0 0-14 7 7 0 0 0 0 14Zm7 13a7 7 0 1 0 0-14 7 7 0 0 0 0 14ZM31 27c-8.6 0-15 7-15 13.5C16 46 20 50 26 50c3 0 4.9-1.1 6.4-2.5 1.4 1.4 3.2 2.5 6.1 2.5 6.2 0 10.5-4.8 10.5-10.5C49 33.7 42.1 27 31 27Z'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.7rem 1.7rem;
}

.section-kicker {
    display: block;
    margin-bottom: .95rem;
}

.section-kicker .banner-strip,
.section-kicker .eyebrow {
    margin: 0;
}

.docs-intro__inner > .eyebrow,
.docs-part__header > .eyebrow,
.docs-intro__card > .eyebrow {
    margin-bottom: .85rem;
}

.docs-intro__card > .eyebrow {
    font-size: .78rem;
}

.round-icon,
.course-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
}

.course-mark {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: .88rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.16;
}

h1 {
    max-width: 800px;
    font-size: clamp(2.45rem, 6vw, 5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
    font-size: 1.25rem;
}

.lede {
    max-width: 670px;
    margin: 1.35rem 0 0;
    color: var(--ink-soft);
    font-size: 1.23rem;
    text-align: left;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.hero-media {
    position: relative;
    min-height: 520px;
}

.managed-photo {
    display: grid;
    margin: 0;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, var(--panel), var(--panel-soft));
    box-shadow: var(--shadow);
    color: var(--ink-soft);
    font-weight: 700;
    text-align: center;
}

:root[data-theme="dark"] .managed-photo {
    color: var(--on-dark-soft);
}

.managed-photo span {
    max-width: 220px;
    padding: .8rem;
}

.pet-photo {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
}

.pet-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.managed-photo--large,
.pet-photo--large {
    position: absolute;
    inset: 0 8% 14% 0;
}

.managed-photo--small,
.pet-photo--small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    aspect-ratio: 1 / 1;
}

.credential-card-small {
    position: absolute;
    left: 7%;
    bottom: 6%;
    max-width: 260px;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.credential-card-small span {
    color: var(--gold);
    font-weight: 800;
}

.credential-card-small strong {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
}

.credential-card-small p {
    margin: .35rem 0 0;
    color: var(--ink-soft);
    font-size: .95rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: .72rem 1.15rem;
    border: 1px solid var(--green);
    font-weight: 700;
    text-decoration: none;
}

.button--primary {
    background: var(--green);
    color: var(--white);
}

:root[data-theme="dark"] .button--primary {
    color: var(--green-deep);
}

.button--secondary {
    background: transparent;
    color: var(--green);
}

:root[data-theme="dark"] .button--secondary {
    color: var(--gold);
}

.button--light {
    background: var(--white);
    border-color: var(--white);
    color: var(--green-deep);
}

:root[data-theme="dark"] .button--light {
    background: var(--on-dark);
    border-color: var(--on-dark);
    color: var(--green-deep);
}

.credential-panel {
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.credential-panel__seal {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
}

.credential-panel__label {
    margin: 1.4rem 0 .25rem;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
}

.credential-panel h2 {
    color: var(--green);
}

.credential-panel dl {
    margin: 1.5rem 0;
    border-top: 1px solid var(--line);
}

.credential-panel dl div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
}

.credential-panel dt {
    color: var(--ink-soft);
    font-weight: 700;
}

.credential-panel dd {
    margin: 0;
}

.credential-panel__note {
    margin: 0;
    color: var(--ink-soft);
    font-size: .96rem;
}

/* ── Journey section ─────────────────────────── */

.journey {
    background: var(--paper-deep);
    padding: 72px 0;
}

.journey__heading {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 52px;
}

.journey__sub {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-top: .5rem;
}

.journey-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.journey-step {
    background: var(--panel);
    padding: 2rem 1.75rem 2rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
}

.journey-step__num {
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    background: var(--green);
    color: var(--on-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    margin-top: .15rem;
}

.journey-step__body h3 {
    margin: 0 0 .45rem;
    font-size: 1rem;
    font-weight: 700;
}

.journey-step__body p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.journey__cta {
    text-align: center;
    margin-top: 48px;
}

@media (max-width: 860px) {
    .journey-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .journey-steps {
        grid-template-columns: 1fr;
    }
}

/* ── Institution band ────────────────────────── */

.institution-band {
    background: var(--green-deep);
    color: var(--on-dark);
}

.priority-grid,
.stakeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 253, 248, .22);
}

.stakeholder-intro {
    padding: 60px 0 24px;
}

.stakeholder-intro h2 {
    color: var(--on-dark);
}

.stakeholder-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 60px;
}

.stakeholder-card {
    display: block;
    min-height: 270px;
    padding: 1.35rem;
    border-top: 4px solid var(--gold);
    background: rgba(255, 253, 248, .96);
    color: #17211b;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.stakeholder-card:hover {
    background: #fffdf8;
}

.stakeholder-card span {
    display: block;
    color: #8c3f43;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
}

.stakeholder-card h3 {
    margin-top: .7rem;
    color: #17211b;
    font-size: 1.2rem;
}

.stakeholder-card p {
    color: #3c4941;
}

:root[data-theme="dark"] .stakeholder-card {
    background: #172338;
    color: var(--ink);
}

:root[data-theme="dark"] .stakeholder-card:hover {
    background: #1d2b42;
}

:root[data-theme="dark"] .stakeholder-card span {
    color: var(--rose);
}

:root[data-theme="dark"] .stakeholder-card h3 {
    color: var(--ink);
}

:root[data-theme="dark"] .stakeholder-card p {
    color: var(--ink-soft);
}

.priority-grid article {
    min-height: 260px;
    padding: 2rem;
    background: var(--green);
}

.priority-grid .round-icon {
    background: var(--white);
    margin-bottom: .8rem;
}

.priority-grid span {
    color: #d9b778;
    font-weight: 700;
}

.priority-grid h2 {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.priority-grid p {
    color: rgba(255, 253, 248, .82);
}

.section {
    padding: 88px 0;
}

.hero + .section,
.page-hero + .section,
.profile-hero + .section,
.directory-hero + .section,
.admissions-hero + .section {
    padding-top: 36px;
}

.section__heading {
    max-width: 760px;
}

.section__heading p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.12rem;
}

.program-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .9rem;
    margin-top: 2.4rem;
    background: transparent;
    border: 0;
}

.program-list article {
    min-height: 250px;
    padding: 1.35rem;
    border: 1px solid var(--line);
    background: var(--panel);
}

.program-list article .button {
    margin-top: 1rem;
}

.program-list .course-mark {
    margin-bottom: 1rem;
}

.program-list h3 {
    color: var(--ink);
}

.program-list p,
.standards__copy,
.credential-copy,
.admissions p {
    color: var(--ink-soft);
}

.standards-hero {
    background:
        linear-gradient(180deg, rgba(27, 58, 48, .12), rgba(27, 58, 48, .02)),
        repeating-linear-gradient(0deg, rgba(58, 80, 69, .045) 0, rgba(58, 80, 69, .045) 1px, transparent 1px, transparent 36px),
        var(--paper);
    border-bottom: 3px double var(--line);
}

.standards-hero--centered .page-hero__inner {
    margin: 0 auto;
    text-align: center;
}

.standards-hero--centered .hero__actions {
    justify-content: center;
}

.standards-bulletin,
.standards-intent,
.standards-search-panel {
    padding-bottom: 0;
}

.standards-landing {
    display: grid;
    gap: 1.5rem;
}

.standards-landing p,
.standards-search-panel p,
.standards-document-layout p,
.standards-evidence-stack p {
    text-align: left;
    hyphens: none;
}

.standards-access-panel,
.standards-search-hub,
.standards-publication-row,
.standards-part-index,
.standards-evidence-callout {
    margin: 0 auto;
    width: min(100%, 1040px);
}

.standards-access-panel {
    border: 1px solid rgba(234, 223, 206, .18);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)),
        var(--green-deep);
    color: var(--on-dark);
    padding: 1.5rem;
}

.standards-access-panel__heading {
    max-width: 760px;
    margin-bottom: 1.2rem;
}

.standards-access-panel__label,
.standards-access-card__label {
    display: inline-block;
    margin-bottom: .75rem;
    color: var(--on-dark-soft);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.standards-access-panel__heading h2 {
    color: var(--on-dark);
    font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.standards-access-panel__heading p {
    margin-top: .85rem;
    color: rgba(255, 248, 237, .88);
    font-size: 1.05rem;
}

.standards-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.standards-access-card {
    display: grid;
    align-content: start;
    gap: .85rem;
    min-height: 100%;
    border: 1px solid rgba(234, 223, 206, .2);
    background: rgba(255, 253, 248, .06);
    padding: 1.15rem;
}

.standards-access-card h3,
.standards-access-card p,
.standards-access-card label {
    color: var(--on-dark);
}

.standards-access-card p {
    margin: 0;
    color: rgba(255, 248, 237, .82);
}

.standards-access-card label {
    display: grid;
}

.standards-access-card input {
    min-height: 52px;
    border: 1px solid rgba(234, 223, 206, .28);
    background: rgba(255, 253, 248, .96);
    color: #17211b;
    font: inherit;
    padding: .8rem .9rem;
}

.standards-bulletin__grid,
.standards-document-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    gap: 1.25rem;
    align-items: start;
}

.standards-bulletin__notice,
.standards-meta-panel,
.standards-search-links,
.standards-part-card,
.standards-evidence-card,
.standards-use-grid article,
.standards-part-block,
.standards-evidence-group,
.standards-search-form {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .2)),
        var(--panel);
    box-shadow: none;
}

.standards-bulletin__notice,
.standards-meta-panel,
.standards-part-card,
.standards-evidence-card,
.standards-use-grid article,
.standards-search-form {
    padding: 1.25rem;
}

.standards-bulletin__notice {
    border-top: 6px solid var(--green);
    position: relative;
}

.standards-bulletin__notice span {
    display: inline-block;
    margin-bottom: .65rem;
    color: var(--green);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.standards-bulletin__notice::after {
    content: "Filed for public reference";
    position: absolute;
    right: 1.25rem;
    top: 1.15rem;
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.standards-bulletin__notice h2,
.standards-section-heading h2,
.standards-part-card h3,
.standards-evidence-card h3,
.standards-use-grid h3,
.standards-source-block h3 {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.standards-bulletin__notice p,
.standards-section-heading p:not(.eyebrow),
.standards-part-card p,
.standards-evidence-card p,
.standards-use-grid p,
.standards-meta-panel__note,
.standards-search-form p,
.standards-part-block__header p:not(.eyebrow),
.standards-evidence-group__header p:not(.eyebrow) {
    color: var(--ink-soft);
}

.standards-meta-panel strong {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.2rem;
    line-height: 1.3;
}

.standards-meta-panel__subtitle,
.standards-toc__meta {
    margin: .6rem 0 0;
    color: var(--ink-soft);
    font-size: .92rem;
}

.standards-meta-panel dl {
    margin: 1rem 0;
    border-top: 1px solid var(--line);
}

.standards-meta-panel dl div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
}

.standards-meta-panel dt {
    color: var(--ink-soft);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.standards-meta-panel dd {
    margin: 0;
}

.standards-section-heading {
    max-width: 820px;
    margin-bottom: 1.4rem;
}

.standards-section-heading--compact {
    margin: 0 auto 1rem;
    text-align: center;
}

.standards-section-heading--compact p:not(.eyebrow) {
    color: var(--ink);
}

.standards-principles-grid,
.standards-part-grid,
.standards-evidence-grid,
.standards-use-grid {
    display: grid;
    gap: 1rem;
}

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

.standards-principles-grid article {
    border-left: 4px solid var(--green);
    background: rgba(255, 255, 255, .55);
    padding: 1rem 1rem 1rem 1.15rem;
}

.standards-principles-grid p {
    margin: 0;
    color: var(--ink);
    font-weight: 700;
    text-align: left;
}

.standards-search-links,
.standards-search-form--single {
    display: grid;
    gap: 1rem;
}

.standards-search-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem;
}

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

.standards-search-form {
    display: grid;
    gap: .85rem;
}

.standards-search-form strong,
.standards-search-form span {
    color: var(--ink);
}

.standards-search-form label {
    display: grid;
    gap: .35rem;
    color: var(--ink);
    font-weight: 800;
}

.standards-search-form input {
    min-height: 52px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: .8rem .9rem;
}

.standards-search-form--single {
    max-width: 720px;
}

.standards-quicklinks a,
.standards-link-grid__item {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

.standards-quicklinks a:hover,
.standards-link-grid__item:hover {
    color: var(--gold);
}

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

.standards-part-card,
.standards-evidence-card {
    display: grid;
    align-content: start;
    gap: .75rem;
}

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

.standards-part-list,
.standards-link-grid {
    display: grid;
    gap: 1rem;
}

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

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

.standards-part-list__item,
.standards-link-grid__item {
    display: grid;
    gap: .35rem;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .2)),
        var(--panel);
    padding: 1rem 1.1rem;
}

.standards-part-list__item span,
.standards-link-grid__item span {
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.standards-part-list__item strong,
.standards-link-grid__item strong {
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.3;
}

.standards-part-list__item small {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.45;
}

.standards-publication-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.standards-publication-card,
.standards-search-hub,
.standards-part-index,
.standards-evidence-callout {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: none;
}

.standards-search-hub,
.standards-part-index,
.standards-evidence-callout {
    padding: 1.4rem;
}

.standards-publication-card {
    padding: 1.25rem;
}

.standards-publication-card__label {
    display: inline-block;
    margin-bottom: .7rem;
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.standards-publication-card strong,
.standards-publication-card p,
.standards-publication-card dd,
.standards-publication-card dt,
.standards-evidence-callout p,
.standards-part-index p,
.standards-search-hub p {
    color: var(--ink);
}

.standards-publication-card p {
    margin: .8rem 0 0;
}

.standards-access-panel .eyebrow,
.standards-access-card .eyebrow,
.standards-publication-card .eyebrow,
.standards-document-header .eyebrow,
.standards-document-index .eyebrow,
.standards-evidence-group--plain .eyebrow {
    margin-bottom: .85rem;
}

.standards-publication-meta {
    display: grid;
    gap: .7rem;
    margin: 0;
}

.standards-publication-meta div {
    display: grid;
    gap: .2rem;
}

.standards-publication-meta dt {
    color: var(--green);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.standards-publication-meta dd {
    margin: 0;
}

.standards-part-index {
    padding: 1.5rem;
}

.standards-part-index .standards-section-heading {
    margin-bottom: 1rem;
}

.standards-part-list__item {
    gap: .45rem;
    background: var(--panel-soft);
    text-decoration: none;
}

.standards-part-list__item strong {
    font-size: 1.04rem;
}

.standards-part-list__item small {
    text-align: left;
}

.standards-document-page {
    padding-top: 28px;
}

.standards-document-frame {
    width: min(100%, 1040px);
    margin: 0 auto;
    border: 1px solid var(--line);
    background: var(--white);
    padding: clamp(1.2rem, 2.8vw, 2rem);
}

.standards-document-header {
    display: grid;
    gap: .8rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.standards-document-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.standards-document-meta,
.standards-document-note {
    margin: 0;
    color: var(--ink-soft);
}

.standards-document-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
    padding: 1.15rem 0 1.25rem;
    border-bottom: 1px solid var(--line);
}

.standards-document-search label {
    display: grid;
    gap: .45rem;
    color: var(--ink);
    font-weight: 800;
}

.standards-document-search input {
    min-height: 52px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: .8rem .9rem;
}

.standards-document-search p {
    margin: .55rem 0 0;
}

.standards-document-utility {
    display: grid;
    gap: .45rem;
    justify-items: end;
}

.standards-document-utility a,
.standards-document-index__list a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

.standards-document-utility a:hover,
.standards-document-index__list a:hover {
    color: var(--gold);
}

.standards-document-index {
    padding: 1.15rem 0 1.25rem;
    border-bottom: 1px solid var(--line);
}

.standards-document-index__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem 1.2rem;
}

.standards-article--document,
.standards-evidence-stack--plain {
    gap: 0;
}

.standards-part-block--document,
.standards-evidence-group--plain {
    border: 0;
    background: transparent;
    padding: 1.5rem 0 0;
}

.standards-part-block--document + .standards-part-block--document,
.standards-evidence-group--plain + .standards-evidence-group--plain {
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.standards-part-block__header--document,
.standards-evidence-group__header--plain {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.standards-sections--document,
.standards-evidence-group__sections--plain {
    gap: 0;
    margin-top: 0;
}

.standards-section-block--document,
.standards-source-block--plain {
    border: 0;
    background: transparent;
    padding: 1rem 0;
}

.standards-section-block--document + .standards-section-block--document,
.standards-source-block--plain + .standards-source-block--plain {
    border-top: 1px solid var(--line);
}

.standards-part-list__item:hover,
.standards-link-grid__item:hover {
    border-color: var(--gold);
}

.standards-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: .25rem;
}

.standards-inline-actions a {
    color: var(--green);
    font-size: .94rem;
    font-weight: 700;
    text-decoration: none;
}

.standards-inline-actions a:hover {
    color: var(--gold);
}

.standards-toc__panel {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 1rem;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .25)),
        var(--panel);
    box-shadow: none;
    padding: 1rem;
}

.standards-toc__panel strong {
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.3;
}

.standards-toc__panel nav {
    display: grid;
    gap: .45rem;
}

.standards-toc__panel nav a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.standards-toc__panel nav a:hover {
    color: var(--green);
}

.standards-article,
.standards-evidence-stack {
    display: grid;
    gap: 1rem;
}

.standards-part-block,
.standards-evidence-group {
    padding: clamp(1rem, 2.5vw, 1.4rem);
}

.standards-part-block__header,
.standards-evidence-group__header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.standards-sections,
.standards-evidence-group__sections {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.standards-section-block,
.standards-source-block {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .35)),
        var(--panel-soft);
    padding: 1rem;
}

.standards-section-block__heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.standards-section-code {
    margin: 0 0 .35rem;
    color: var(--green);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.standards-meta-panel dd,
.standards-richtext p,
.standards-richtext li,
.standards-source-block h3,
.standards-section-block h3 {
    text-wrap: pretty;
}

.standards-richtext {
    display: grid;
    gap: .75rem;
}

.standards-richtext h4 {
    font-size: 1.1rem;
}

.standards-richtext p {
    margin: 0;
    color: var(--ink);
    text-align: left;
}

.standards-clause,
.standards-line-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .55rem;
    align-items: start;
}

.standards-clause__label,
.standards-line-item__marker {
    color: var(--green);
    font-weight: 800;
}

.standards-subheading {
    color: var(--ink);
    font-weight: 800;
}

.standards-article.standards-article--document,
.standards-evidence-stack.standards-evidence-stack--plain {
    gap: 0;
}

.standards-part-block.standards-part-block--document,
.standards-evidence-group.standards-evidence-group--plain {
    border: 0;
    background: transparent;
    padding: 1.5rem 0 0;
}

.standards-part-block.standards-part-block--document + .standards-part-block.standards-part-block--document,
.standards-evidence-group.standards-evidence-group--plain + .standards-evidence-group.standards-evidence-group--plain {
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.standards-part-block__header.standards-part-block__header--document,
.standards-evidence-group__header.standards-evidence-group__header--plain {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.standards-sections.standards-sections--document,
.standards-evidence-group__sections.standards-evidence-group__sections--plain {
    gap: 0;
    margin-top: 0;
}

.standards-section-block.standards-section-block--document,
.standards-source-block.standards-source-block--plain {
    border: 0;
    background: transparent;
    padding: 1rem 0;
}

.standards-section-block.standards-section-block--document + .standards-section-block.standards-section-block--document,
.standards-source-block.standards-source-block--plain + .standards-source-block.standards-source-block--plain {
    border-top: 1px solid var(--line);
}

.standards-search-empty {
    border: 1px dashed var(--line);
    background: var(--panel-soft);
    color: var(--ink-soft);
    padding: 1rem;
}

/* ─── Standards viewer — two-panel document reader ──────────────────────── */

.standards-viewer {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: start;
    min-height: calc(100vh - 92px);
}

.standards-viewer__toc {
    position: sticky;
    top: 92px;
    height: calc(100vh - 92px);
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    flex-direction: column;
}

.standards-viewer__toc-head {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--panel);
    z-index: 1;
    flex-shrink: 0;
}

.standards-viewer__toc-head p {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 .6rem;
}

.standards-viewer__toc-head input {
    width: 100%;
    padding: .45rem .65rem;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font-size: .84rem;
    font-family: inherit;
    border-radius: 3px;
}

.standards-viewer__toc-head input::placeholder {
    color: var(--ink-soft);
    opacity: .7;
}

.standards-viewer__toc nav {
    flex: 1;
    overflow-y: auto;
}

.standards-viewer__toc-foot {
    padding: .85rem 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex-shrink: 0;
}

.standards-viewer__toc-foot a {
    font-size: .78rem;
    color: var(--green);
    text-decoration: none;
}

.standards-viewer__toc-foot a:hover {
    color: var(--gold);
}

.standards-toc-part {
    border-bottom: 1px solid var(--line);
}

.standards-toc-part__toggle {
    display: grid;
    grid-template-rows: auto auto;
    gap: .12rem;
    width: 100%;
    text-align: left;
    padding: .65rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
    position: relative;
}

.standards-toc-part__toggle:hover {
    background: var(--paper-deep);
}

.standards-toc-part__toggle span {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
}

.standards-toc-part__toggle strong {
    font-size: .8rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.3;
    color: var(--ink);
}

.standards-toc-sections {
    padding-bottom: .35rem;
}

.standards-toc-link {
    display: block;
    padding: .35rem 1rem .35rem 1.35rem;
    font-size: .78rem;
    color: var(--ink-soft);
    text-decoration: none;
    border-left: 2px solid transparent;
    line-height: 1.35;
    transition: color .12s, background .12s;
}

.standards-toc-link:hover {
    color: var(--green);
    background: var(--paper-deep);
}

.standards-toc-link.is-active {
    color: var(--green);
    border-left-color: var(--green);
    background: var(--paper-deep);
    font-weight: 600;
}

.standards-toc-link.is-filtered {
    opacity: .3;
}

/* Document pane */

.standards-viewer__doc {
    padding: 2rem clamp(1.5rem, 4vw, 3.5rem) 5rem;
    max-width: 860px;
}

.standards-viewer__doc-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--line);
    margin-bottom: 2.5rem;
    font-size: .82rem;
    flex-wrap: wrap;
}

.standards-viewer__doc-bar a {
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
}

.standards-viewer__doc-bar a:hover {
    color: var(--gold);
}

.standards-viewer__doc-bar span {
    color: var(--ink-soft);
    font-size: .78rem;
}

.standards-doc-part {
    margin-bottom: 3.5rem;
}

.standards-doc-part__header {
    padding-bottom: 1.25rem;
    border-bottom: 3px solid var(--green);
    margin-bottom: .25rem;
}

.standards-doc-part__code {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 .4rem;
}

.standards-doc-part h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    color: var(--ink);
    margin: 0 0 .5rem;
    letter-spacing: .01em;
}

.standards-doc-part__header p:not(.standards-doc-part__code) {
    color: var(--ink-soft);
    margin: 0;
    font-size: .92rem;
}

.standards-doc-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
}

.standards-doc-section:last-child {
    border-bottom: none;
}

.standards-doc-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.1rem;
}

.standards-doc-section__code {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--green);
    margin: 0 0 .25rem;
    line-height: 1.1;
}

.standards-doc-section h3 {
    font-size: clamp(.92rem, 2vw, 1.1rem);
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.35;
}

.standards-cite-btn {
    flex-shrink: 0;
    margin-top: .2rem;
    font-size: .72rem;
    padding: .28rem .65rem;
    border: 1px solid var(--line);
    background: none;
    color: var(--ink-soft);
    cursor: pointer;
    border-radius: 3px;
    white-space: nowrap;
    font-family: inherit;
    transition: border-color .12s, color .12s;
}

.standards-cite-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.standards-search-empty button.standards-search-clear {
    background: none;
    border: none;
    padding: 0;
    color: var(--green);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
}

.standards-viewer__doc-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--ink-soft);
    display: grid;
    gap: .4rem;
}

.standards-viewer__doc-footer p {
    margin: 0;
}

/* ─── Standards landing masthead ─────────────────────────────────────────── */

.standards-masthead {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.5rem;
}

.standards-masthead__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
    margin: 0 0 .8rem;
    display: block;
}

.standards-masthead h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    color: var(--ink);
    font-size: clamp(.95rem, 2.5vw, 1.45rem);
    margin: 0 0 1.25rem;
    letter-spacing: .02em;
    line-height: 1.3;
}

.standards-masthead__meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: .55rem 2.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.standards-masthead__meta-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: .5rem;
    align-items: baseline;
}

.standards-masthead__meta-label {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    white-space: nowrap;
    padding-top: .1rem;
}

.standards-masthead__meta-value {
    font-size: .85rem;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.35;
}

.standards-masthead__notice {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .8rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

/* ─── Standards landing TOC table ────────────────────────────────────────── */

.standards-index-block {
    margin-bottom: 2.5rem;
}

.standards-index-block__heading {
    margin-bottom: 1.25rem;
}

.standards-index-block__heading h2 {
    margin: .35rem 0 .5rem;
}

.standards-index-block__heading p {
    color: var(--ink-soft);
    margin: 0;
    font-size: .9rem;
}

.standards-toc-table {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.standards-toc-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: background .1s;
}

.standards-toc-row:last-child {
    border-bottom: none;
}

.standards-toc-row:hover {
    background: var(--paper-deep);
}

.standards-toc-row:hover .standards-toc-row__code {
    color: var(--gold);
}

.standards-toc-row__code {
    padding: .9rem 1rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    font-size: .88rem;
    color: var(--green);
    border-right: 1px solid var(--line);
    display: flex;
    align-items: center;
    transition: color .1s;
}

.standards-toc-row__content {
    padding: .9rem 1.25rem;
    display: grid;
    gap: .2rem;
    align-content: center;
}

.standards-toc-row__content strong {
    font-size: .9rem;
    color: var(--ink);
    display: block;
}

.standards-toc-row__content small {
    font-size: .78rem;
    color: var(--ink-soft);
    display: block;
    line-height: 1.4;
}

.standards-landing-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1rem;
}

/* ─── Citations page ──────────────────────────────────────────────────────── */

.standards-citations-page {
    display: grid;
    gap: 0;
}

.standards-citations-toolbar {
    margin-bottom: 2rem;
    display: grid;
    gap: 1rem;
}

.standards-citations-search-label {
    display: block;
}

.standards-citations-search-input {
    width: 100%;
    padding: .65rem 1rem;
    font-size: .95rem;
    font-family: inherit;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    border-radius: 3px;
}

.standards-citations-search-input::placeholder {
    color: var(--ink-soft);
    opacity: .7;
}

.standards-citations-jumpnav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .85rem;
    font-size: .8rem;
}

.standards-citations-jumpnav a {
    color: var(--green);
    text-decoration: none;
}

.standards-citations-jumpnav a:hover {
    color: var(--gold);
}

.standards-citations-stack {
    display: grid;
    gap: 2.5rem;
}

.standards-citations-group {
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.standards-citations-group__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--panel-soft);
    border-bottom: 1px solid var(--line);
}

.standards-citations-group__header h2 {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    margin: .3rem 0 .5rem;
    font-family: "Libre Baskerville", Georgia, serif;
}

.standards-citations-group__header p {
    color: var(--ink-soft);
    margin: 0;
    font-size: .88rem;
}

.standards-citations-group__link {
    flex-shrink: 0;
    font-size: .78rem;
    color: var(--green);
    text-decoration: none;
    padding-top: .3rem;
    white-space: nowrap;
}

.standards-citations-group__link:hover {
    color: var(--gold);
}

.standards-citations-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
}

.standards-citations-section:last-child {
    border-bottom: none;
}

.standards-citations-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .9rem;
}

.standards-citations-section__head h3 {
    font-size: .98rem;
    font-family: "Libre Baskerville", Georgia, serif;
    color: var(--ink);
    margin: 0;
}

.standards-citations-section__link {
    flex-shrink: 0;
    font-size: .75rem;
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
}

.standards-citations-section__link:hover {
    color: var(--gold);
}

.standards-richtext--citations .standards-subheading {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 1rem 0 .5rem;
}

.standards-richtext--citations .standards-line-item {
    gap: .5rem;
    font-size: .88rem;
    padding: .2rem 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .standards-viewer {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .standards-viewer__toc {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 2px solid var(--line);
        max-height: 50vh;
    }

    .standards-viewer__doc {
        max-width: 100%;
    }

    .standards-masthead__meta-row {
        grid-template-columns: 70px 1fr;
    }
}

@media (max-width: 620px) {
    .standards-viewer__doc-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: .4rem;
    }

    .standards-toc-row {
        grid-template-columns: 80px 1fr;
    }

    .standards-masthead__meta {
        grid-template-columns: 1fr;
    }

    .standards-citations-group__header {
        flex-direction: column;
    }
}

/* ────────────────────────────────────────────────────────────────────────
   ACADA Docs Reader — modern reference UI for Standards Code & Citations
   ──────────────────────────────────────────────────────────────────────── */

.docs-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 92px);
    background: var(--paper, #fff);
    color: var(--ink);
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */

.docs-sidebar {
    position: sticky;
    top: 92px;
    align-self: start;
    height: calc(100vh - 92px);
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    flex-direction: column;
}

.docs-sidebar__header {
    padding: 1rem 1.1rem .9rem;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
}

.docs-sidebar__tabs {
    display: flex;
    margin-bottom: .75rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--paper);
}

.docs-sidebar__tabs a {
    flex: 1;
    padding: .42rem .5rem;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background .12s, color .12s;
}

.docs-sidebar__tabs a + a {
    border-left: 1px solid var(--line);
}

.docs-sidebar__tabs a:hover {
    color: var(--green);
}

.docs-sidebar__tabs a.is-active {
    background: var(--green);
    color: #fff;
}

.docs-sidebar__search {
    width: 100%;
    padding: .5rem .75rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
    font-family: inherit;
    font-size: .88rem;
    transition: border-color .12s, box-shadow .12s;
}

.docs-sidebar__search:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(35, 72, 56, .12);
}

.docs-sidebar__search::placeholder {
    color: var(--ink-soft);
    opacity: .8;
}

.docs-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0 2rem;
}

.docs-nav__group {
    margin-bottom: 1.4rem;
    padding: 0 .6rem;
}

.docs-nav__group[hidden] {
    display: none;
}

.docs-nav__group-label {
    display: block;
    padding: 0 .6rem .15rem;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
}

.docs-nav__group-title {
    display: block;
    padding: 0 .6rem .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
}

.docs-nav__link {
    display: block;
    padding: .32rem .65rem .32rem 1.25rem;
    font-size: .82rem;
    line-height: 1.4;
    color: var(--ink-soft);
    text-decoration: none;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: color .1s, border-color .1s, background .1s;
}

.docs-nav__link:hover {
    color: var(--green);
    background: var(--panel-soft);
}

.docs-nav__link.is-active {
    color: var(--green);
    border-left-color: var(--green);
    background: var(--panel-soft);
    font-weight: 600;
}

.docs-nav__link.is-filtered {
    opacity: .3;
}

/* ── Main content ──────────────────────────────────────────────────────── */

.docs-main {
    padding: 2.5rem clamp(1.25rem, 5vw, 4rem) 5rem;
    max-width: 880px;
    min-width: 0;
}

.docs-top-anchor {
    display: block;
    height: 0;
    scroll-margin-top: 128px;
}

.docs-main__header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.docs-main__breadcrumb {
    font-size: .78rem;
    color: var(--ink-soft);
    margin: 0 0 .55rem;
    letter-spacing: .02em;
}

.docs-main__title {
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .5rem;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.docs-main__lede {
    font-size: 1rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
    max-width: 60ch;
}

/* ── Part block ───────────────────────────────────────────────────────── */

.docs-part {
    margin-bottom: 4rem;
}

.docs-part[hidden] {
    display: none;
}

.docs-part__header {
    padding-bottom: .85rem;
    border-bottom: 2px solid var(--green);
    margin-bottom: 1.5rem;
    scroll-margin-top: 110px;
}

.docs-part__title {
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .45rem;
    letter-spacing: -.005em;
    line-height: 1.25;
}

.docs-part__summary {
    font-size: .92rem;
    color: var(--ink-soft);
    margin: 0;
    max-width: 60ch;
    line-height: 1.5;
}

/* ── Section block ─────────────────────────────────────────────────────── */

.docs-section {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 110px;
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section[hidden] {
    display: none;
}

.docs-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.docs-section__head > div {
    min-width: 0;
}

.docs-section__id {
    font-size: .82rem;
    font-weight: 700;
    color: var(--green);
    margin: 0 0 .15rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

.docs-section__title {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -.005em;
}

.docs-section__copy {
    flex-shrink: 0;
    padding: .3rem .65rem;
    font-size: .72rem;
    color: var(--ink-soft);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: border-color .12s, color .12s;
}

.docs-section__copy:hover {
    border-color: var(--green);
    color: var(--green);
}

.docs-section__references {
    margin: -.25rem 0 1rem;
    font-size: .82rem;
    color: var(--ink-soft);
}

.docs-alert {
    margin: 0 0 1rem;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    background: var(--panel);
    color: var(--ink);
    font-weight: 700;
}

.docs-alert--error {
    border-left-color: var(--rose);
}

.docs-section__comment-actions {
    margin: .15rem 0 1rem;
}

.docs-section__comment-actions--after {
    margin: 1.1rem 0 0;
}

.docs-section__comment,
.docs-section__citation-comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: .48rem .8rem;
    border: 1px solid rgba(223, 184, 89, .75);
    border-radius: 4px;
    background: rgba(223, 184, 89, .18);
    color: var(--ink);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
}

.docs-section__comment {
    width: 100%;
    max-width: 360px;
}

.docs-section__comment:hover,
.docs-section__citation-comment:hover {
    border-color: var(--gold);
    background: rgba(223, 184, 89, .3);
    color: var(--ink);
}

.docs-section__references summary {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .6rem;
    color: var(--ink-soft);
    background: rgba(223, 184, 89, .08);
    border: 1px solid rgba(223, 184, 89, .35);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.docs-section__references summary::-webkit-details-marker {
    display: none;
}

.docs-section__references summary::before {
    content: "+";
    color: var(--green);
    font-weight: 800;
}

.docs-section__references[open] summary::before {
    content: "-";
}

.docs-section__references ol {
    margin: .7rem 0 0;
    padding: .75rem .9rem .75rem 1.75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.docs-section__references li {
    margin: 0 0 .7rem;
}

.docs-section__references li:last-child {
    margin-bottom: 0;
}

.docs-section__references a {
    display: inline-block;
    margin-left: .35rem;
    color: var(--green);
    font-weight: 700;
}

.docs-section__references small {
    display: block;
    margin-top: .25rem;
    line-height: 1.45;
}

.docs-section__citation-comment {
    margin: .45rem 0 0;
}

.standards-comment {
    padding: clamp(2rem, 5vw, 4rem) 0;
    max-width: 900px;
}

.standards-comment__header {
    margin: 1.2rem 0;
}

.standards-comment__header h1 {
    margin: .2rem 0 .4rem;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.standards-comment__citation,
.standards-comment__intro,
.standards-comment__form {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.standards-comment__intro {
    margin: 0 0 1rem;
    padding: 1rem;
    border-left: 5px solid var(--gold);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.65;
}

.standards-comment__citation {
    display: grid;
    gap: .25rem;
    margin: 0 0 1rem;
    padding: 1rem;
}

.standards-comment__citation small {
    color: var(--ink-soft);
    font-weight: 700;
}

.standards-comment__form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.standards-comment__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.standards-comment__form label {
    display: grid;
    gap: .35rem;
    font-weight: 800;
}

.standards-comment__form input,
.standards-comment__form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink);
    font: inherit;
    padding: .75rem;
}

.standards-comment__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Section body content ─────────────────────────────────────────────── */

.docs-section__body {
    font-size: .95rem;
    line-height: 1.65;
    color: var(--ink);
}

.docs-section__body p {
    margin: 0 0 .85rem;
}

.docs-section__body p:last-child {
    margin-bottom: 0;
}

.docs-section__body strong {
    color: var(--ink);
    font-weight: 700;
}

.docs-section__return {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.1rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(223, 184, 89, .25);
}

.docs-section__return a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 2.2rem;
    padding: .35rem .7rem;
    border: 1px solid rgba(223, 184, 89, .55);
    border-radius: 4px;
    background: rgba(223, 184, 89, .1);
    color: var(--gold);
    font-size: .8rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.docs-section__return a:hover {
    border-color: var(--gold);
    background: rgba(223, 184, 89, .2);
    color: var(--ink);
}

.docs-section__return span[aria-hidden="true"] {
    font-size: 1.1rem;
    line-height: 1;
}

.docs-section__body .standards-clause,
.docs-section__body .standards-line-item {
    display: grid;
    grid-template-columns: 2.2rem 1fr;
    gap: .25rem .55rem;
    align-items: start;
    margin: .35rem 0;
}

.docs-section__body .standards-clause__label,
.docs-section__body .standards-line-item__marker {
    color: var(--green);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.docs-section__body .standards-subheading {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 1.25rem 0 .5rem;
}

.docs-section__body ul,
.docs-section__body ol {
    margin: 0 0 .85rem 1.25rem;
    padding: 0;
}

.docs-section__body li {
    margin-bottom: .35rem;
}

/* ── Empty state ──────────────────────────────────────────────────────── */

.docs-empty {
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: .92rem;
    border: 1px dashed var(--line);
    border-radius: 6px;
    margin: 2rem 0;
    background: var(--panel-soft);
}

/* ── Landing intro ────────────────────────────────────────────────────── */

.docs-intro {
    padding: 3rem 0 1rem;
}

.docs-intro__inner {
    max-width: 880px;
}

.docs-intro__title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .75rem;
    letter-spacing: -.015em;
    line-height: 1.15;
}

.docs-intro__lede {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin: 0 0 2rem;
    max-width: 62ch;
    line-height: 1.55;
}

.docs-intro__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: 4px;
    background: var(--paper);
    margin: 0 0 2.5rem;
}

.docs-intro__meta dt {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 .15rem;
}

.docs-intro__meta dd {
    font-size: .9rem;
    color: var(--ink);
    margin: 0;
    font-weight: 600;
}

.docs-intro__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.docs-intro__card {
    display: block;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.docs-intro__card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(35, 72, 56, .08);
}

.docs-intro__card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .5rem;
    letter-spacing: -.005em;
}

.docs-intro__card-desc {
    font-size: .9rem;
    color: var(--ink-soft);
    margin: 0 0 1rem;
    line-height: 1.5;
}

.docs-intro__card-stats {
    display: flex;
    gap: 1.25rem;
    font-size: .78rem;
    color: var(--ink-soft);
    padding-top: .85rem;
    border-top: 1px solid var(--line);
}

.docs-intro__card-stats strong {
    color: var(--green);
    font-weight: 700;
}

.docs-intro__card-arrow {
    font-size: .85rem;
    color: var(--green);
    font-weight: 600;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .docs-shell {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        position: static;
        height: auto;
        max-height: 55vh;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .docs-main {
        padding: 2rem 1.25rem 4rem;
    }
    .docs-section__head {
        gap: .75rem;
    }
}

@media (max-width: 620px) {
    .docs-section__head {
        flex-direction: column;
        gap: .5rem;
    }
    .docs-section__copy {
        align-self: flex-start;
    }
}

.standard-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.standard-list article {
    min-height: 240px;
    padding: 1.5rem;
    background: var(--white);
}

.standard-list h2 {
    color: var(--green);
    font-size: 1.35rem;
}

.standard-list p {
    color: var(--ink-soft);
}

.student-services-grid {
    margin-top: 2rem;
}

.student-services-grid article {
    display: grid;
    align-content: start;
    gap: .75rem;
}

.student-services-grid .button {
    align-self: end;
    justify-self: start;
    margin-top: .4rem;
}

.credential-example {
    display: inline-block;
    margin: .5rem 0 0;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--green);
    font-weight: 700;
}

.credential-lookup {
    display: grid;
    gap: .85rem;
    max-width: 680px;
    width: min(680px, 100%);
    margin-inline: auto;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: clamp(1.2rem, 4vw, 2rem);
    box-shadow: var(--shadow);
}

.credential-lookup label {
    display: grid;
    gap: .45rem;
    color: var(--ink);
    font-weight: 800;
}

.credential-lookup input {
    min-height: 56px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding: .75rem 1rem;
    text-transform: uppercase;
}

.credential-lookup p {
    margin: 0;
    color: var(--ink-soft);
}

.credential-lookup__error {
    color: var(--rose) !important;
    font-weight: 800;
}

.standards {
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.standards__grid,
.section--split,
.admissions__inner {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.standards__grid {
    padding: 88px 0;
}

.standards__copy p:first-child,
.credential-copy p:first-child,
.admissions p {
    margin-top: 0;
}

.check-list {
    display: grid;
    gap: .65rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.45rem;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
}

.admissions {
    background: var(--green-deep);
    color: var(--white);
}

.admissions h2 {
    color: var(--gold);
}

.admissions__inner {
    align-items: center;
    padding: 72px 0;
}

.admissions p {
    max-width: 680px;
    color: rgba(255, 253, 248, .78);
}

.site-footer {
    background: var(--green-deep);
    color: var(--on-dark-soft);
    font-size: .95rem;
}

.site-footer__inner {
    min-height: 96px;
}

.site-footer p {
    margin: 0;
}

.site-flash {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: .95rem 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1.45;
}

.site-flash--error {
    border: 1px solid rgba(140, 63, 67, .42);
    background: #fff1f1;
    color: #5f1d22;
}

.site-flash--success {
    border: 1px solid rgba(35, 72, 56, .38);
    background: #eff8f1;
    color: #142d24;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .85rem 1.1rem;
    font-weight: 700;
}

.site-footer__links a {
    color: var(--on-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.site-footer__access-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: .55rem;
    color: var(--on-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.site-footer__access-link svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-footer__access-link:hover,
.site-footer__access-link:focus-visible {
    color: var(--gold);
}

.catalog-hero {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.catalog-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding: 56px 0 40px;
}

.catalog-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--ink-soft);
    font-size: 1.18rem;
}

.catalog-stat-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1.3rem;
    box-shadow: var(--shadow);
}

.catalog-stat-panel span {
    display: block;
    color: var(--green);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 3rem;
    line-height: 1;
}

.catalog-stat-panel p {
    margin: .35rem 0 1rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.catalog-shell {
    padding: 42px 0 84px;
}

.catalog-toolbar {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.audience-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.audience-tabs button {
    min-height: 40px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: .45rem .75rem;
}

.audience-tabs button.is-active {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}

:root[data-theme="dark"] .audience-tabs button.is-active {
    color: var(--green-deep);
}

.audience-note {
    margin-bottom: 1.2rem;
    border-left: 5px solid var(--gold);
    background: var(--panel);
    color: var(--ink-soft);
    padding: .9rem 1rem;
    font-weight: 700;
}

.track-catalog {
    display: grid;
    gap: .9rem;
}

.catalog-track,
.catalog-module {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: 0 8px 22px rgba(23, 33, 27, .05);
}

.catalog-track__summary,
.catalog-module__summary {
    display: grid;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.catalog-track__summary {
    grid-template-columns: 76px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.catalog-track__summary img,
.lesson-card img,
.drawer-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--paper);
    border: 1px solid var(--line);
}

.catalog-track__summary strong,
.catalog-module__summary span {
    color: var(--gold);
    font-size: .82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.catalog-track__summary em {
    display: block;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.35rem;
    font-style: normal;
}

.catalog-track__summary small {
    display: block;
    color: var(--ink-soft);
}

.catalog-track__body {
    border-top: 1px solid var(--line);
    padding: 1rem;
}

.catalog-track__intro {
    max-width: 900px;
    color: var(--ink-soft);
}

.catalog-module {
    margin-top: .8rem;
}

.catalog-module__summary {
    gap: .25rem;
    padding: .9rem 1rem;
}

.catalog-module__summary strong {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.18rem;
}

.catalog-module__body {
    border-top: 1px solid var(--line);
    padding: 1rem;
}

.lesson-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .8rem;
}

.lesson-card button {
    display: grid;
    width: 100%;
    min-height: 210px;
    grid-template-rows: auto auto 1fr auto;
    gap: .55rem;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    padding: .9rem;
    text-align: left;
}

.lesson-card button:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 24px rgba(23, 33, 27, .12);
}

.lesson-card__number {
    color: var(--gold);
    font-weight: 800;
}

.lesson-card strong {
    font-family: "Libre Baskerville", Georgia, serif;
    line-height: 1.25;
}

.lesson-card small {
    color: var(--ink-soft);
    font-weight: 700;
}

.lesson-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: end;
    background: rgba(0, 0, 0, .45);
}

.lesson-drawer__panel {
    width: min(620px, 100%);
    max-height: 100vh;
    overflow: auto;
    background: var(--panel);
    color: var(--ink);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.lesson-drawer__close {
    float: right;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: .45rem .7rem;
}

.lesson-drawer p {
    color: var(--ink-soft);
}

.student-surface {
    background: #f3f0e8;
}

:root[data-theme="dark"] .student-surface {
    background: var(--paper);
}

.student-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.student-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
}

.student-nav__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.student-nav__meta span,
.student-nav__meta a,
.student-nav__meta button {
    padding: .35rem .6rem;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink-soft);
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.student-nav__meta form {
    margin: 0;
}

.locale-toggle--student {
    min-width: 138px;
    height: 34px;
    background: var(--paper);
    flex: 0 0 auto;
}

.locale-toggle--student .locale-toggle__option {
    font-size: .78rem;
    padding: 0 .45rem;
}

.student-dashboard {
    padding: 54px 0 76px;
}

.student-dashboard__intro {
    max-width: 780px;
}

.student-dashboard__intro p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.15rem;
}

.progress-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 2rem;
    border: 1px solid var(--line);
    background: var(--line);
}

.progress-strip article {
    padding: 1.2rem;
    background: var(--white);
}

.progress-strip span {
    display: block;
    color: var(--green);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2.35rem;
    line-height: 1;
}

.progress-strip p {
    margin: .45rem 0 0;
    color: var(--ink-soft);
    font-weight: 700;
}

.next-lesson,
.lesson-map {
    margin-top: 1.4rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    background: var(--white);
}

.next-lesson {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: center;
}

/* About page editorial story */
.about-hero {
    background:
        radial-gradient(circle at 12% 15%, rgba(169, 121, 50, .16), transparent 30%),
        linear-gradient(135deg, var(--paper), var(--paper-deep));
    border-bottom: 1px solid var(--line);
}

.about-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.about-hero h1 {
    max-width: 880px;
    font-size: clamp(2.8rem, 7vw, 6.4rem);
    line-height: .98;
}

.about-hero__copy > p:not(.eyebrow) {
    max-width: 680px;
    margin: 1.35rem 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.12rem, 2vw, 1.32rem);
    line-height: 1.55;
    text-align: left;
}

.about-mission {
    border: 1px solid rgba(169, 121, 50, .38);
    border-top: 7px solid var(--gold);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: clamp(1.4rem, 3vw, 2rem);
}

.about-mission p:not(.eyebrow) {
    margin: 0 0 1rem;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.62;
    text-align: left;
}

.about-mission p:last-child {
    margin-bottom: 0;
}

.about-story-band,
.about-purpose,
.about-close {
    background: var(--green-deep);
    color: var(--on-dark);
}

.about-story-grid,
.about-purpose__grid {
    display: grid;
    grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.about-story-band h2,
.about-purpose h2 {
    color: var(--on-dark);
    font-size: clamp(2rem, 4.6vw, 4rem);
}

.about-story-band p:not(.eyebrow),
.about-purpose p:not(.eyebrow) {
    color: rgba(255, 248, 237, .82);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    text-align: left;
}

.about-chapters {
    display: grid;
    gap: clamp(3rem, 7vw, 5rem);
    padding-top: clamp(4rem, 8vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.about-chapter,
.about-founders,
.about-open-standard {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: start;
}

.about-chapter--reverse {
    grid-template-columns: 76px minmax(280px, 420px) minmax(0, 1fr);
}

.about-chapter--reverse .about-chapter__copy {
    grid-column: 3;
    grid-row: 1;
}

.about-chapter--reverse .about-image {
    grid-column: 2;
    grid-row: 1;
}

.about-chapter__marker {
    position: sticky;
    top: 120px;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
}

.about-chapter h2,
.about-risk h2,
.about-founders h2,
.about-access h2,
.about-open-standard h2 {
    max-width: 820px;
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 3.4rem);
}

.about-chapter p:not(.eyebrow),
.about-risk p,
.about-founders p,
.about-access p,
.about-open-standard p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.72;
    text-align: left;
}

.about-pullquote,
.about-legal-callout {
    margin: 2rem 0 0;
    border-left: 5px solid var(--gold);
    background: linear-gradient(90deg, rgba(169, 121, 50, .12), rgba(169, 121, 50, .03));
    padding: 1.25rem 1.4rem;
}

.about-pullquote p,
.about-legal-callout p {
    margin: 0;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.12rem, 2vw, 1.35rem);
    line-height: 1.5;
}

.about-image {
    display: grid;
    min-height: 320px;
    margin: 0;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    box-shadow: var(--shadow);
}

.about-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image--placeholder {
    padding: 1.5rem;
    text-align: center;
}

.about-image--placeholder span {
    display: block;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.about-image--placeholder small {
    display: block;
    max-width: 22rem;
    margin-top: .6rem;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.45;
}

.about-growth {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.about-growth__heading {
    max-width: 820px;
    margin-bottom: 2rem;
}

.about-growth__heading h2 {
    font-size: clamp(2rem, 5vw, 4.4rem);
}

.about-growth__heading p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.12rem;
    line-height: 1.7;
    text-align: left;
}

.about-stat-wall {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.about-stat-wall article {
    min-height: 220px;
    background: var(--panel);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.about-stat-wall span {
    display: block;
    color: var(--gold);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 800;
    line-height: .95;
}

.about-stat-wall strong {
    display: block;
    margin-top: 1.25rem;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.05rem;
}

.about-stat-wall p {
    margin: .45rem 0 0;
    color: var(--ink-soft);
    font-size: .96rem;
    text-align: left;
}

.about-risk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: clamp(2rem, 5vw, 4rem);
    padding-top: clamp(4rem, 8vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.about-risk__statement {
    grid-row: span 2;
}

.about-source-quote {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1.5rem;
}

.about-source-quote p {
    margin: 0;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.55;
}

.about-source-quote cite {
    display: block;
    margin-top: 1rem;
    color: var(--ink-soft);
    font-style: normal;
    font-weight: 700;
}

.about-founders {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    padding-top: clamp(4rem, 8vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.about-access {
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-access__inner {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding: clamp(4rem, 8vw, 6rem) 0;
}

.about-access__principle {
    border-top: 6px solid var(--gold);
    padding-top: 1.5rem;
}

.about-open-standard {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    padding-top: clamp(4rem, 8vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

.about-close__inner {
    max-width: 900px;
    padding: clamp(4rem, 8vw, 6rem) 0;
    text-align: center;
}

.about-close p {
    margin: 0 auto;
    color: var(--on-dark);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    line-height: 1.35;
    text-align: center;
}

.about-close .hero__actions {
    justify-content: center;
}

.home-mission-band {
    border-top: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(169, 121, 50, .12), transparent 36%),
        var(--paper);
}

.home-mission-band__inner {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    align-items: center;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.home-mission-band__inner > p:not(.eyebrow) {
    margin: 0;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.05rem, 2vw, 1.32rem);
    line-height: 1.55;
    text-align: left;
}

/* About page, story-led design */
.about-page {
    overflow-x: clip;
    background: var(--paper);
}

.about-opening {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(169, 121, 50, .28);
    background:
        linear-gradient(120deg, rgba(8, 16, 22, .96), rgba(20, 45, 36, .9)),
        radial-gradient(circle at 84% 18%, rgba(169, 121, 50, .24), transparent 30%);
    color: var(--on-dark);
}

.about-opening::after {
    content: "";
    position: absolute;
    right: -8vw;
    bottom: -18vw;
    width: 46vw;
    height: 46vw;
    border: 1px solid rgba(224, 182, 111, .2);
    border-radius: 50%;
    pointer-events: none;
}

.about-opening__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
    min-height: 0;
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}

.about-opening .eyebrow,
.about-prologue .eyebrow,
.about-answer .eyebrow,
.about-open .eyebrow {
    color: var(--on-dark);
    background: rgba(255, 248, 237, .08);
}

.about-opening .eyebrow::before,
.about-prologue .eyebrow::before,
.about-answer .eyebrow::before,
.about-open .eyebrow::before {
    background-color: rgba(255, 248, 237, .94);
}

.about-opening h1 {
    max-width: 980px;
    color: var(--on-dark);
    font-size: clamp(3rem, 6.2vw, 5.8rem);
    line-height: .96;
    letter-spacing: 0;
}

.about-opening--about h1 {
    max-width: 900px;
    font-size: clamp(1.9rem, 3.05vw, 2.75rem);
    line-height: 1.12;
}

.history-opening h1 {
    max-width: 880px;
    font-size: clamp(2.65rem, 4.9vw, 4.65rem);
    line-height: 1.02;
}

.about-opening__copy > p:not(.eyebrow) {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: rgba(255, 248, 237, .82);
    font-size: clamp(1.05rem, 1.7vw, 1.24rem);
    line-height: 1.55;
    text-align: left;
}

.about-opening__side {
    display: grid;
    gap: 1rem;
}

.about-charter {
    border: 1px solid rgba(224, 182, 111, .45);
    background: rgba(255, 248, 237, .07);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    padding: clamp(1.3rem, 3vw, 2rem);
    backdrop-filter: blur(12px);
}

.about-charter__label {
    display: block;
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.about-charter p {
    margin: 0 0 1rem;
    color: rgba(255, 248, 237, .88);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1rem, 1.7vw, 1.16rem);
    line-height: 1.65;
    text-align: left;
}

.about-charter p:last-child {
    margin-bottom: 0;
}

.about-prologue,
.about-answer,
.about-open,
.about-final {
    background: var(--green-deep);
    color: var(--on-dark);
}

.about-prologue__inner {
    max-width: 960px;
    padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.about-prologue h2,
.about-answer h2,
.about-open h2 {
    color: var(--on-dark);
    font-size: clamp(1.45rem, 2.15vw, 2.25rem);
    line-height: 1.12;
}

.about-prologue p:not(.eyebrow),
.about-answer p,
.about-open p {
    max-width: 760px;
    color: rgba(255, 248, 237, .82);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.7;
    text-align: left;
}

.about-timeline {
    position: relative;
    display: grid;
    gap: clamp(4rem, 8vw, 7rem);
    padding-top: clamp(4.5rem, 8vw, 7rem);
    padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.about-timeline::before {
    content: "";
    position: absolute;
    top: clamp(4.5rem, 8vw, 7rem);
    bottom: clamp(4.5rem, 8vw, 7rem);
    left: 8px;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
}

.about-timeline__item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.about-timeline__date {
    position: sticky;
    top: 122px;
    padding-left: 2rem;
    color: var(--gold);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: clamp(1.15rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
}

.about-timeline__date::before {
    content: "";
    position: absolute;
    top: .34em;
    left: 2px;
    width: 13px;
    height: 13px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    background: var(--paper);
}

.about-timeline__body {
    position: relative;
}

.about-timeline__body::before {
    content: none;
}

.about-timeline h2,
.about-floor h2,
.about-foundation h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.45rem, 2.15vw, 2.25rem);
    line-height: 1.12;
}

.history-page .about-timeline h2 {
    max-width: 760px;
    font-size: clamp(1.55rem, 2.55vw, 2.45rem);
    line-height: 1.16;
}

.history-page .about-answer h2 {
    font-size: clamp(1.9rem, 3.4vw, 3.15rem);
    line-height: 1.08;
}

.about-timeline p:not(.eyebrow),
.about-floor p,
.about-foundation p {
    color: var(--ink-soft);
    font-size: 1.06rem;
    line-height: 1.72;
    text-align: left;
}

.about-image {
    display: grid;
    min-height: 340px;
    margin: 0;
    overflow: hidden;
    place-items: center;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(169, 121, 50, .12), transparent),
        var(--panel-soft);
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image--placeholder {
    padding: 1.5rem;
    text-align: center;
}

.about-image--placeholder span {
    display: block;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.about-image--placeholder small {
    display: block;
    max-width: 22rem;
    margin-top: .6rem;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.45;
}

.about-quote,
.about-trust-card {
    margin-top: 2rem;
    border-left: 6px solid var(--gold);
    background: linear-gradient(90deg, rgba(169, 121, 50, .14), rgba(169, 121, 50, .03));
    padding: 1.35rem 1.5rem;
}

.about-quote p,
.about-trust-card p {
    margin: 0;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.18rem, 2.3vw, 1.7rem);
    line-height: 1.42;
}

.about-modern {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
}

.about-modern__grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(360px, 1.14fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.about-modern h2 {
    font-size: clamp(1.45rem, 2.15vw, 2.25rem);
    line-height: 1.12;
}

.about-modern p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.1rem;
    line-height: 1.72;
    text-align: left;
}

.about-data-wall {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.about-data-wall article {
    display: grid;
    grid-template-columns: minmax(0, 13.5rem) minmax(12rem, 1fr);
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1.3rem, 3vw, 2rem);
    border-bottom: 1px solid var(--line);
}

.about-data-wall article:last-child {
    border-bottom: 0;
}

.about-data-wall span {
    min-width: 0;
    color: var(--gold);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: clamp(2.45rem, 3.8vw, 3.35rem);
    font-weight: 800;
    line-height: .9;
    white-space: nowrap;
}

.about-data-wall strong {
    display: block;
    min-width: 0;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.1rem;
    line-height: 1.3;
}

.about-data-wall p {
    min-width: 0;
    margin: .35rem 0 0;
    color: var(--ink-soft);
    line-height: 1.4;
    text-align: left;
}

.about-floor {
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.about-floor__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: clamp(2rem, 5vw, 4rem);
}

.about-floor__copy {
    grid-row: span 2;
}

.about-citation {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1.5rem;
}

.about-citation p {
    margin: 0;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.55;
}

.about-citation cite {
    display: block;
    margin-top: 1rem;
    color: var(--ink-soft);
    font-style: normal;
    font-weight: 700;
}

.about-answer__grid,
.about-open__grid {
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.about-foundation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-top: clamp(4.5rem, 8vw, 7rem);
    padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.about-open__grid {
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
}

.about-open .about-image {
    border-color: rgba(224, 182, 111, .4);
    background: rgba(255, 248, 237, .08);
}

.about-final {
    background:
        radial-gradient(circle at 16% 10%, rgba(169, 121, 50, .22), transparent 28%),
        var(--green-deep);
    color: var(--on-dark);
}

.about-final__inner {
    max-width: 960px;
    padding: clamp(4rem, 8vw, 6rem) 0;
    text-align: center;
}

.about-final p {
    margin: 0 auto;
    color: var(--on-dark);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.55rem, 3.4vw, 2.8rem);
    line-height: 1.32;
    text-align: center;
}

.about-final .hero__actions {
    justify-content: center;
}

.about-opening__actions {
    margin-top: 1.75rem;
}

.about-faq {
    position: relative;
    overflow: hidden;
    border-block: 1px solid rgba(169, 121, 50, .24);
    background:
        linear-gradient(135deg, rgba(255, 248, 237, .96), rgba(241, 235, 222, .92)),
        radial-gradient(circle at 10% 15%, rgba(169, 121, 50, .16), transparent 34%);
}

.about-faq::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 45, 36, .08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(20, 45, 36, .06) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .35;
    pointer-events: none;
}

.about-faq__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding-top: clamp(4.5rem, 8vw, 7rem);
    padding-bottom: clamp(4.5rem, 8vw, 7rem);
}

.about-faq__heading {
    position: sticky;
    top: 122px;
}

.about-faq__heading h2 {
    max-width: 620px;
    font-size: clamp(1.95rem, 3vw, 3.15rem);
    line-height: 1.08;
}

.about-faq__heading p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.68;
    text-align: left;
}

.about-faq__list {
    display: grid;
    gap: .9rem;
    counter-reset: about-faq;
}

.about-faq__item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(169, 121, 50, .32);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 18px 46px rgba(18, 27, 22, .1);
}

.about-faq__item::before {
    counter-increment: about-faq;
    content: counter(about-faq, decimal-leading-zero);
    position: absolute;
    top: 1.1rem;
    right: 1rem;
    color: rgba(169, 121, 50, .16);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.about-faq__item[open] {
    border-color: rgba(169, 121, 50, .62);
    background: var(--panel);
}

.about-faq__item summary {
    position: relative;
    display: grid;
    gap: .45rem;
    min-height: 96px;
    padding: 1.25rem 4.75rem 1.25rem 1.35rem;
    cursor: pointer;
    list-style: none;
}

.about-faq__item summary::-webkit-details-marker {
    display: none;
}

.about-faq__item summary::after {
    content: "+";
    position: absolute;
    right: 1.3rem;
    bottom: 1.15rem;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(169, 121, 50, .55);
    border-radius: 50%;
    color: var(--green-deep);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.about-faq__item[open] summary::after {
    content: "-";
    background: var(--green-deep);
    color: var(--on-dark);
}

.about-faq__item summary span {
    width: fit-content;
    border: 1px solid rgba(169, 121, 50, .28);
    border-radius: 999px;
    background: rgba(169, 121, 50, .1);
    color: var(--rust);
    padding: .28rem .62rem;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.about-faq__item summary strong {
    max-width: 720px;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    line-height: 1.32;
}

.about-faq__answer {
    border-top: 1px solid rgba(169, 121, 50, .22);
    padding: 1.1rem 1.35rem 1.35rem;
}

.about-faq__answer p {
    max-width: 760px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

.about-faq__answer p + p {
    margin-top: .85rem;
}

.about-faq--lead {
    overflow: visible;
    border: 1px solid rgba(224, 182, 111, .42);
    border-radius: 8px;
    background: rgba(5, 16, 20, .72);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
    padding: clamp(1rem, 2vw, 1.35rem);
}

.about-faq--lead::before {
    content: none;
}

.about-faq--lead .about-faq__heading {
    position: static;
    margin-bottom: .85rem;
}

.about-faq--lead .about-faq__heading h2 {
    max-width: none;
    margin: .55rem 0 0;
    color: var(--on-dark);
    font-size: clamp(1.12rem, 1.8vw, 1.45rem);
    line-height: 1.22;
}

.about-faq--lead .eyebrow {
    color: var(--on-dark);
    background: rgba(255, 248, 237, .09);
}

.about-faq--lead .about-faq__list {
    gap: .65rem;
}

.about-faq--lead .about-faq__item {
    border-color: rgba(224, 182, 111, .34);
    background: rgba(255, 248, 237, .08);
    box-shadow: none;
}

.about-faq--lead .about-faq__item[open] {
    border-color: rgba(224, 182, 111, .7);
    background: rgba(255, 248, 237, .12);
}

.about-faq--lead .about-faq__item::before {
    color: rgba(224, 182, 111, .16);
    font-size: clamp(2rem, 3.6vw, 3rem);
}

.about-faq--lead .about-faq__item summary {
    min-height: 78px;
    padding: 1rem 4rem 1rem 1rem;
}

.about-faq--lead .about-faq__item summary span {
    border-color: rgba(224, 182, 111, .4);
    background: rgba(224, 182, 111, .16);
    color: var(--gold);
}

.about-faq--lead .about-faq__item summary strong {
    color: var(--on-dark);
    font-size: clamp(.98rem, 1.45vw, 1.14rem);
}

.about-faq--lead .about-faq__item summary::after {
    border-color: rgba(224, 182, 111, .6);
    color: var(--on-dark);
}

.about-faq--lead .about-faq__item[open] summary::after {
    background: var(--gold);
    color: var(--green-deep);
}

.about-faq--lead .about-faq__answer {
    border-top-color: rgba(255, 248, 237, .16);
}

.about-faq--lead .about-faq__answer p {
    color: rgba(255, 248, 237, .86);
    font-size: .95rem;
}
.faq-page .faq-opening {
    border-bottom: 1px solid rgba(169, 121, 50, .24);
    background:
        linear-gradient(135deg, rgba(255, 248, 237, .98), rgba(241, 235, 222, .95)),
        radial-gradient(circle at 84% 18%, rgba(169, 121, 50, .18), transparent 30%);
    color: #211b14;
}
.faq-page .faq-opening::after {
    border-color: rgba(169, 121, 50, .22);
}
.faq-page .faq-opening .eyebrow {
    color: #211b14;
    background: rgba(169, 121, 50, .12);
}
.faq-page .faq-opening .eyebrow::before {
    background-color: #fffaf0;
}
.faq-page .faq-opening h1 {
    max-width: 820px;
    color: #211b14;
    font-size: clamp(2.2rem, 5vw, 4.8rem);
    line-height: .98;
}
.faq-page .about-opening__copy > p:not(.eyebrow) {
    color: #4b4035;
}
.faq-opening__note {
    align-self: center;
    border-color: rgba(169, 121, 50, .34);
    background: rgba(255, 253, 248, .78);
    box-shadow: 0 18px 50px rgba(18, 27, 22, .1);
}
.faq-opening__note .eyebrow {
    color: #211b14;
    background: rgba(169, 121, 50, .12);
}
.faq-opening__note .eyebrow::before {
    background-color: #fffaf0;
}
.faq-opening__note p {
    color: #4b4035;
}
.faq-page__accordion {
    min-height: 62vh;
}
.faq-page .about-faq__heading h2 {
    color: #211b14;
}
.faq-page .about-faq__heading p:not(.eyebrow),
.faq-page .about-faq__answer p {
    color: #4b4035;
}
.faq-page .about-faq__heading .eyebrow {
    color: #211b14;
}
.faq-page .about-faq__item {
    background: rgba(255, 255, 255, .82);
}
.faq-page .about-faq__item[open] {
    background: #fffdf8;
}
.faq-page .about-faq__item summary span {
    color: #8f5f24;
}
.faq-page .about-faq__item summary strong {
    color: #211b14;
}
.faq-page .about-faq__item summary::after {
    color: #142d24;
}
.faq-page__grid {
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
}
.faq-page .about-faq__list {
    gap: 1rem;
}
.faq-page .about-faq__item summary {
    min-height: 104px;
}

/* Who ACADA serves */
.serve-page {
    background: var(--paper);
}

.serve-hero {
    border-bottom: 1px solid rgba(169, 121, 50, .26);
    background:
        linear-gradient(120deg, rgba(8, 16, 22, .96), rgba(20, 45, 36, .9)),
        radial-gradient(circle at 88% 16%, rgba(169, 121, 50, .23), transparent 30%);
    color: var(--on-dark);
}

.serve-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: end;
    padding: clamp(5rem, 9vw, 8rem) 0 clamp(4rem, 7vw, 6rem);
}

.serve-hero .eyebrow {
    color: var(--on-dark);
    background: rgba(255, 248, 237, .08);
}

.serve-hero .eyebrow::before {
    background-color: rgba(255, 248, 237, .94);
}

.serve-hero h1 {
    max-width: 920px;
    color: var(--on-dark);
    font-size: clamp(2.55rem, 5.2vw, 5rem);
    line-height: 1;
    letter-spacing: 0;
}

.serve-hero p {
    max-width: 780px;
    color: rgba(255, 248, 237, .82);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.68;
    text-align: left;
}

.serve-principle {
    border: 1px solid rgba(224, 182, 111, .45);
    background: rgba(255, 248, 237, .07);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.serve-principle strong {
    display: block;
    color: var(--gold);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.serve-principle p {
    margin: .75rem 0 0;
    font-size: 1rem;
}

.serve-matrix {
    display: grid;
    gap: clamp(3rem, 6vw, 5rem);
    padding-top: clamp(4rem, 7vw, 6rem);
    padding-bottom: clamp(4rem, 7vw, 6rem);
}

.serve-group__heading {
    margin-bottom: 1rem;
}

.serve-independence {
    background: var(--green-deep);
    color: var(--on-dark);
}

.serve-independence__grid {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding: clamp(4rem, 7vw, 6rem) 0;
}

.serve-independence .eyebrow {
    color: var(--on-dark);
    background: rgba(255, 248, 237, .08);
}

.serve-independence .eyebrow::before {
    background-color: rgba(255, 248, 237, .94);
}

.serve-independence h2 {
    color: var(--on-dark);
    font-size: clamp(1.9rem, 3.2vw, 3.4rem);
    line-height: 1.08;
}

.serve-independence p {
    max-width: 760px;
    color: rgba(255, 248, 237, .82);
    font-size: clamp(1.05rem, 1.7vw, 1.2rem);
    line-height: 1.68;
    text-align: left;
}

.serve-board {
    background: var(--paper);
}

.serve-board__inner {
    width: min(100% - 2rem, 1560px);
    margin: 0 auto;
    padding-top: clamp(3.5rem, 7vw, 6rem);
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.serve-board__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.25rem;
}

.serve-filter {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    padding: .6rem .85rem;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
}

.serve-filter.is-active,
.serve-filter:hover {
    border-color: var(--gold);
    background: var(--green-deep);
    color: var(--on-dark);
}

.serve-matrix-shell {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.serve-board .serve-matrix {
    display: grid;
    gap: 0;
    min-width: 1180px;
    background: var(--panel);
    padding: 0;
}

.serve-matrix__head,
.serve-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.05fr) minmax(180px, 1fr) minmax(175px, .95fr) minmax(190px, .95fr) minmax(190px, 1fr) 92px;
    gap: 0;
}

.serve-matrix__head {
    position: static;
    z-index: 2;
    background: var(--green-deep);
    color: var(--on-dark);
}

.serve-matrix__head span {
    border-right: 1px solid rgba(255, 248, 237, .14);
    padding: .75rem .85rem;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.serve-row {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.serve-row:hover,
.serve-row.is-active {
    background: color-mix(in srgb, var(--gold) 10%, var(--panel));
}

.serve-row.is-active {
    box-shadow: inset 5px 0 0 var(--gold);
}

.serve-row[hidden] {
    display: none;
}

.serve-row > span {
    min-width: 0;
    border-right: 1px solid var(--line);
    padding: .85rem;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.35;
}

.serve-row > span:last-child,
.serve-matrix__head span:last-child {
    border-right: 0;
}

.serve-row__stakeholder small {
    display: block;
    margin-bottom: .25rem;
    color: var(--rust);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.serve-row__stakeholder strong {
    display: block;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1rem;
    line-height: 1.22;
}

.serve-row__cost {
    color: var(--ink);
    font-weight: 800;
}

.serve-row__action {
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.serve-modal[hidden] {
    display: none;
}

.serve-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.serve-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 14, .72);
    backdrop-filter: blur(6px);
}

.serve-modal__panel {
    position: relative;
    width: min(100%, 760px);
    max-height: min(86vh, 780px);
    overflow: auto;
    border: 1px solid rgba(224, 182, 111, .5);
    border-top: 6px solid var(--gold);
    border-radius: 22px;
    background: var(--green-deep);
    color: var(--on-dark);
    box-shadow: 0 32px 90px rgba(0, 0, 0, .44);
    padding: clamp(1.35rem, 3.2vw, 2.4rem);
}

.serve-modal__close {
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    margin-left: auto;
    margin-bottom: 1rem;
    border: 1px solid rgba(224, 182, 111, .65);
    border-radius: 999px;
    background: rgba(255, 248, 237, .1);
    color: var(--on-dark);
    padding: .45rem .9rem;
    font: inherit;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.serve-modal__close:hover {
    background: var(--gold);
    color: var(--green-deep);
}

.serve-modal .eyebrow {
    color: var(--on-dark);
    background: rgba(255, 248, 237, .08);
}

.serve-modal .eyebrow::before {
    background-color: rgba(255, 248, 237, .94);
}

.serve-modal h2 {
    color: var(--on-dark);
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    line-height: 1.06;
}

.serve-modal p,
.serve-modal dd {
    color: rgba(255, 248, 237, .84);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    line-height: 1.62;
    text-align: left;
}

.serve-modal dl {
    display: grid;
    gap: .85rem;
    margin: 1.4rem 0 0;
}

.serve-modal dl > div {
    border-top: 1px solid rgba(255, 248, 237, .16);
    padding-top: .8rem;
}

.serve-modal dt {
    color: var(--gold);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.serve-modal dd {
    margin: .25rem 0 0;
}

.serve-modal-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .about-data-wall article {
        grid-template-columns: 1fr;
        align-items: start;
        gap: .75rem;
    }
}

@media (max-width: 900px) {
    .about-opening__grid,
    .serve-hero__grid,
    .serve-independence__grid,
    .about-modern__grid,
    .about-floor__grid,
    .about-answer__grid,
    .about-foundation,
    .about-faq__grid,
    .about-open__grid {
        grid-template-columns: 1fr;
    }

    .about-opening__grid {
        align-items: start;
        min-height: auto;
    }

    .serve-matrix__head,
    .serve-row {
        min-width: 1180px;
    }

    .about-opening h1 {
        font-size: clamp(3.15rem, 12vw, 6rem);
    }

    .about-opening--about h1 {
        font-size: clamp(1.75rem, 5.4vw, 2.45rem);
    }

    .history-opening h1 {
        font-size: clamp(2.35rem, 7vw, 3.9rem);
    }

    .about-timeline {
        gap: 3.5rem;
    }

    .about-timeline::before {
        left: 8px;
    }

    .about-timeline__item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .about-timeline__date {
        position: static;
        grid-column: 2;
        font-size: 1rem;
        padding-left: 0;
    }

    .about-timeline__date::before {
        left: -34px;
        top: .18em;
    }

    .about-timeline__body {
        grid-column: 2;
    }

    .about-timeline__item .about-image {
        grid-column: 2;
    }

    .about-floor__copy {
        grid-row: auto;
    }

    .about-faq__heading {
        position: static;
    }

    .about-open__grid .about-image {
        order: 2;
    }
}

@media (max-width: 620px) {
    .about-opening::after {
        width: 90vw;
        height: 90vw;
        right: -42vw;
        bottom: -38vw;
    }

    .about-opening__grid,
    .serve-hero__grid,
    .about-prologue__inner,
    .about-modern__grid,
    .about-floor,
    .about-answer__grid,
    .about-foundation,
    .about-faq__grid,
    .about-open__grid,
    .about-final__inner {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .serve-matrix,
    .serve-independence__grid {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .serve-hero h1 {
        font-size: clamp(2.25rem, 10vw, 3.4rem);
        line-height: 1.04;
    }

    .serve-board__inner {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .serve-filter {
        flex: 1 1 auto;
    }

    .serve-matrix__head {
        display: none;
    }

    .serve-board .serve-matrix {
        gap: .75rem;
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .serve-row,
    .serve-matrix__head {
        min-width: 0;
    }

    .serve-row {
        display: grid;
        grid-template-columns: 1fr;
        border: 1px solid var(--line);
        border-top: 5px solid var(--gold);
        box-shadow: 0 12px 34px rgba(18, 27, 22, .08);
    }

    .serve-row > span {
        border-right: 0;
        border-top: 1px solid var(--line);
        padding: .75rem .85rem;
    }

    .serve-row > span::before {
        display: block;
        margin-bottom: .22rem;
        color: var(--rust);
        font-size: .68rem;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .serve-row > span:nth-child(2)::before {
        content: "ACADA Provides";
    }

    .serve-row > span:nth-child(3)::before {
        content: "Path";
    }

    .serve-row > span:nth-child(4)::before {
        content: "Cost";
    }

    .serve-row > span:nth-child(5)::before {
        content: "Value";
    }

    .serve-row > span:nth-child(6)::before {
        content: "Details";
    }

    .serve-row__stakeholder {
        border-top: 0;
    }

    .serve-row__action {
        display: block;
        place-items: initial;
        color: var(--gold);
    }

    .serve-modal {
        align-items: end;
        padding: .75rem;
    }

    .serve-modal__panel {
        width: 100%;
        max-height: 90vh;
        border-radius: 18px 18px 8px 8px;
        padding: 1rem;
    }

    .about-opening h1 {
        font-size: clamp(2.75rem, 13vw, 4.6rem);
        line-height: .94;
    }

    .about-opening--about h1 {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
    }

    .history-opening h1 {
        font-size: clamp(2.15rem, 10vw, 3.25rem);
    }

    .history-page .about-timeline h2 {
        font-size: clamp(1.42rem, 7vw, 2rem);
    }

    .history-page .about-answer h2 {
        font-size: clamp(1.6rem, 7vw, 2.35rem);
    }

    .about-charter {
        padding: 1.15rem;
    }

    .about-timeline {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .about-timeline::before {
        top: 3.25rem;
        bottom: 3.25rem;
    }

    .about-timeline__item {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 1rem;
    }

    .about-timeline__date::before {
        left: -27px;
    }

    .about-image {
        min-height: 260px;
    }

    .about-data-wall article {
        grid-template-columns: 1fr;
        gap: .55rem;
    }

    .about-data-wall p {
        grid-column: 1;
        margin: 0;
    }

    .about-faq__item summary {
        min-height: 86px;
        padding: 1rem 3.8rem 1rem 1rem;
    }

    .about-faq__item::before {
        top: 1rem;
        right: .85rem;
        font-size: 2.35rem;
    }

    .about-faq__item summary::after {
        right: 1rem;
        bottom: 1rem;
        width: 30px;
        height: 30px;
    }

    .about-faq__answer {
        padding: 1rem;
    }

    .about-quote,
    .about-trust-card,
    .about-citation {
        padding: 1.15rem;
    }
}

.next-lesson p:not(.eyebrow),
.lesson-map__heading p {
    color: var(--ink-soft);
}

.lesson-map__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.lesson-map__heading h2,
.next-lesson h2,
.lesson-content h2,
.submission-panel h2 {
    font-size: 1.45rem;
}

.student-onboarding {
    grid-template-columns: minmax(0, .9fr) minmax(340px, 1.1fr);
}

.student-onboarding__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.student-onboarding__list a {
    display: grid;
    gap: .25rem;
    min-height: 76px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink);
    padding: .8rem;
    text-decoration: none;
}

.student-onboarding__list a:focus-visible,
.student-onboarding__list a:hover {
    border-color: var(--gold);
}

.student-onboarding__list span {
    color: var(--gold);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.student-onboarding__list .is-done span {
    color: var(--green);
}

.student-onboarding__list strong {
    font-size: .92rem;
    line-height: 1.25;
}

.student-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.student-track-list {
    display: grid;
    gap: .75rem;
}

.student-track-list article {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
}

.notification-list article {
    grid-template-columns: minmax(0, 1fr) auto;
}

.notification-list p {
    margin: .55rem 0 0;
    color: var(--ink);
    font-weight: 600;
}

.notification-list__item--unread {
    border-left: 5px solid var(--gold);
}

.student-track-list strong,
.student-track-list span {
    display: block;
}

.student-track-list span {
    color: var(--ink-soft);
    font-weight: 700;
}

.student-progress-bar {
    height: 10px;
    margin-top: .7rem;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
}

.student-progress-bar span {
    display: block;
    height: 100%;
    background: var(--gold);
}

.transcript-action-panel {
    border-left: 5px solid var(--gold);
}

.transcript-action {
    display: grid;
    gap: .55rem;
}

.transcript-action .button {
    justify-self: start;
}

.transcript-track-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.transcript-track {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
}

.transcript-track header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.transcript-track strong,
.transcript-track span {
    display: block;
}

.transcript-track span,
.student-record-note {
    color: var(--ink-soft);
    font-weight: 700;
}

.transcript-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem .8rem;
    margin-top: 1rem;
}

.student-status-pill {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink);
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 900;
    padding: .24rem .55rem;
    text-transform: uppercase;
}

.student-status-pill--requirements_met,
.student-status-pill--advisor_approved,
.student-status-pill--certified {
    border-color: #7ea177;
    background: #e3eddf;
    color: #234838;
}

:root[data-theme="dark"] .student-status-pill--requirements_met,
:root[data-theme="dark"] .student-status-pill--advisor_approved,
:root[data-theme="dark"] .student-status-pill--certified {
    background: #203829;
    color: #cfe6c8;
}

.credential-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.credential-summary-grid article {
    background: var(--white);
    padding: 1.15rem;
}

.credential-summary-grid span {
    display: block;
    color: var(--green);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2.35rem;
    line-height: 1;
}

.credential-summary-grid strong {
    display: block;
    margin-top: .35rem;
    color: var(--ink-soft);
}

.public-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.public-portfolio-grid article {
    border: 1px solid var(--line);
    background: var(--white);
}

.public-portfolio-grid img,
.public-portfolio-grid video {
    aspect-ratio: 4 / 3;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    object-fit: cover;
    width: 100%;
}

.public-portfolio-grid article > div {
    padding: 1rem;
}

.public-portfolio-grid strong,
.public-portfolio-grid span {
    display: block;
}

.public-portfolio-grid span {
    color: var(--ink-soft);
    font-weight: 700;
}

.credential-contact-list {
    display: grid;
    gap: .75rem;
}

/* ── Public review section on /pro/{credential} ──────────── */
.rc-public-score {
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.rc-public-score__number {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.rc-public-score__max {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink-soft);
}

.rc-public-score__meta {
    font-size: .82rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

.rc-public-reviews {
    display: grid;
    gap: 1rem;
}

.rc-public-review {
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel-soft);
}

.rc-public-review__header {
    display: flex;
    align-items: baseline;
    gap: .85rem;
    margin-bottom: .55rem;
    flex-wrap: wrap;
}

.rc-public-review__author {
    font-weight: 600;
    font-size: .92rem;
}

.rc-public-review__score {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: .95rem;
    font-weight: 700;
    color: var(--gold);
}

.rc-public-review__score--excluded {
    color: var(--ink-soft);
    text-decoration: line-through;
}

.rc-public-review__score small {
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 400;
    font-size: .72rem;
    text-decoration: none;
    display: inline;
    margin-left: .25rem;
}

.rc-public-review__date {
    font-size: .78rem;
    color: var(--ink-soft);
    margin-left: auto;
}

.rc-public-review__text {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--ink);
}

.rc-public-review__edited {
    font-size: .72rem;
    color: var(--ink-soft);
    font-style: italic;
    margin-left: .35rem;
}

.rc-public-review__admin-note {
    margin: .75rem 0 0;
    padding: .65rem .85rem;
    border-left: 3px solid var(--gold);
    font-style: italic;
    font-size: .85rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.rc-public-review__admin-note strong {
    font-style: normal;
    color: var(--ink);
}

.directory-hero {
    background: var(--ink);
    color: var(--paper);
    padding: 3.25rem 0 2.5rem;
}

.directory-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 2rem;
    align-items: end;
}

.directory-hero h1 {
    color: var(--paper);
}

.directory-hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, .82);
    max-width: 720px;
}

.directory-summary {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
}

.directory-summary article {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.directory-summary article:last-child {
    border-bottom: 0;
}

.directory-summary span {
    display: block;
    color: var(--gold);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2.2rem;
    line-height: 1;
}

.directory-summary strong {
    display: block;
    margin-top: .35rem;
    color: var(--paper);
}

.directory-filter {
    display: grid;
    grid-template-columns: 1.4fr .7fr 1.3fr .9fr auto auto;
    gap: .75rem;
    align-items: end;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.directory-filter label {
    display: grid;
    gap: .3rem;
}

.directory-filter span {
    color: var(--ink-soft);
    font-weight: 900;
    font-size: .86rem;
}

.directory-filter input,
.directory-filter select {
    min-height: 44px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: .55rem .7rem;
}

.directory-result-heading {
    margin: 2rem 0 1rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.directory-result-heading p {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 700;
}

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

.directory-card,
.directory-empty {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.directory-card {
    display: grid;
    gap: 1rem;
}

.directory-card__top {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.directory-card__photo {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid var(--gold);
    background: var(--panel-soft);
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    font-weight: 900;
}

.directory-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directory-card h2 {
    font-size: 1.35rem;
    margin: .15rem 0;
}

.directory-card p {
    margin: 0;
}

.directory-card__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.directory-card__metrics span {
    background: var(--paper);
    color: var(--ink-soft);
    font-weight: 900;
    font-size: .9rem;
    padding: .65rem;
}

.directory-card__service {
    border-left: 4px solid var(--gold);
    background: var(--panel-soft);
    padding: .75rem;
    color: var(--ink);
    font-weight: 800;
}

.directory-card__list {
    display: grid;
    gap: .35rem;
}

.directory-card__list strong {
    font-size: .86rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.directory-card__list span {
    color: var(--ink);
    font-weight: 700;
}

.directory-card__portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
}

.directory-card__portfolio img,
.directory-card__portfolio video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border: 1px solid var(--line);
    background: var(--paper);
}

.directory-card__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.directory-empty {
    grid-column: 1 / -1;
}

.admissions-hero {
    background: var(--green-deep);
    color: var(--on-dark);
    padding: 3.25rem 0 2.5rem;
}

.admissions-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 2rem;
    align-items: end;
}

.admissions-hero h1 {
    color: var(--on-dark);
}

.admissions-hero p:not(.eyebrow) {
    color: rgba(255, 253, 248, .82);
    max-width: 720px;
}

.admissions-hero aside {
    border: 1px solid rgba(255, 253, 248, .22);
    background: rgba(255, 253, 248, .06);
    padding: 1rem;
}

.admissions-hero aside strong {
    color: var(--gold);
    font-family: "Libre Baskerville", Georgia, serif;
}

.admissions-form {
    display: grid;
    gap: 1rem;
}

.admissions-form > section {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 1.5rem;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.admissions-form h2 {
    margin-top: 0;
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    line-height: 1.2;
}

.admissions-form__fields {
    display: grid;
    gap: .9rem;
}

.admissions-form label:not(.admin-checkbox),
.admissions-form fieldset {
    display: grid;
    gap: .35rem;
}

.admissions-form label span,
.admissions-form legend {
    color: var(--ink-soft);
    font-weight: 900;
}

.admissions-form input,
.admissions-form textarea,
.admissions-form select,
.admissions-form__fields input,
.admissions-form__fields select,
.admissions-form__fields textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: .65rem .75rem;
}

.admissions-form__fields input[type="text"],
.admissions-form__fields input[type="search"] {
    background: var(--panel);
}

.business-option-group {
    display: grid;
    gap: .65rem;
    margin: .25rem 0 0;
    border: 0;
    padding: 0;
}

.business-option-group legend {
    margin: 0;
    color: var(--ink);
    font-size: .95rem;
    font-weight: 900;
}

.business-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.business-option {
    display: grid !important;
    grid-template-columns: 1.15rem minmax(0, 1fr);
    gap: .65rem !important;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    padding: .85rem .95rem;
    cursor: pointer;
}

.business-option input[type="checkbox"] {
    width: 1.05rem;
    height: 1.05rem;
    margin: .15rem 0 0;
}

.business-option span {
    color: var(--ink) !important;
    font-weight: 700 !important;
    line-height: 1.4;
}

.business-option strong {
    display: block;
    color: var(--ink);
    font-size: .96rem;
}

.business-option--checkbox {
    max-width: 560px;
    background: var(--panel-soft);
}

.business-option--compact {
    align-items: center;
    padding: .7rem .8rem;
}

.business-option--compact input[type="checkbox"] {
    margin-top: 0;
}

.business-password-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 340px));
    gap: 1rem;
    align-items: start;
}

.business-welcome {
    min-height: 62vh;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at 18% 12%, rgba(169, 121, 50, .16), transparent 28%),
        var(--paper);
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.business-welcome__panel {
    max-width: 820px;
    border: 1px solid var(--line);
    border-top: 6px solid var(--gold);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.business-welcome__panel h1 {
    font-size: clamp(1.75rem, 3.4vw, 3rem);
}

.business-welcome__panel p {
    color: var(--ink-soft);
    font-size: 1.08rem;
    line-height: 1.65;
    text-align: left;
}

.admissions-required-track {
    border: 1px solid var(--line);
    border-left: 5px solid var(--gold);
    background: var(--panel-soft);
    padding: 1rem;
}

.admissions-required-track strong,
.admissions-required-track span {
    display: block;
}

.admissions-required-track span {
    color: var(--gold-strong);
    font-weight: 900;
    margin-top: .25rem;
}

.admissions-track-interest {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 1rem;
}

.admissions-track-interest label {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    padding: .35rem 0;
}

.admissions-admin-detail {
    display: grid;
    gap: .45rem;
    margin-top: .75rem;
}

.admissions-admin-detail p {
    margin: 0;
}

.student-media-list {
    display: grid;
    gap: .8rem;
}

.student-media-list article {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 1rem;
}

.student-media-list img,
.student-media-list video {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    border: 1px solid var(--line);
    background: var(--paper);
}

.student-course-map {
    margin-top: 1.4rem;
}

.student-course-map__tracks,
.student-module-stack {
    display: grid;
    gap: 1rem;
}

.student-course-track {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
}

.student-course-track header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.student-course-track h3 {
    font-size: 1.35rem;
}

.student-course-track header span {
    color: var(--gold);
    font-weight: 900;
}

.student-module-stack {
    margin-top: 1rem;
}

.student-module-card {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 1rem;
}

.student-module-card__heading {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.student-module-card__heading img,
.student-lesson-heading img {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.student-module-card__heading strong,
.student-module-card__heading span {
    display: block;
}

.student-module-card__heading span {
    color: var(--ink-soft);
    font-weight: 800;
}

.student-lesson-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.student-lesson-tile {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: .45rem .65rem;
    min-height: 130px;
    align-content: start;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    padding: .8rem;
    text-decoration: none;
}

.student-lesson-tile img {
    grid-row: span 3;
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.student-lesson-tile span {
    color: var(--gold);
    font-weight: 900;
}

.student-lesson-tile strong {
    line-height: 1.2;
}

.student-lesson-tile small {
    color: var(--ink-soft);
    font-weight: 900;
}

.student-lesson-tile--approved {
    border-top: 4px solid #7ea177;
}

.student-lesson-tile--submitted,
.student-lesson-tile--in_progress {
    border-top: 4px solid #d4b45d;
}

.student-lesson-tile--retry_required {
    border-top: 4px solid var(--rose);
}

.student-lesson-tile--locked {
    opacity: .62;
}

.student-lesson-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.student-lesson-heading h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.student-lesson-body {
    color: var(--ink-soft);
}

.student-lesson-body h3 {
    margin: 1.5rem 0 .5rem;
    font-size: 1.2rem;
}

.student-lesson-body p,
.student-lesson-body li {
    color: var(--ink-soft);
}

.assessment-stack {
    display: grid;
    gap: 1rem;
}

.assessment-panel {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 1rem;
}

.assessment-panel__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.assessment-panel__heading h3 {
    margin: .2rem 0 0;
    font-size: 1.15rem;
}

.assessment-panel__heading span {
    color: var(--gold-strong);
    font-weight: 900;
    white-space: nowrap;
}

.assessment-question {
    display: grid;
    gap: .7rem;
    border: 1px solid var(--line);
    margin: 0;
    padding: 1rem;
}

.assessment-question legend {
    color: var(--ink);
    font-weight: 900;
    padding: 0 .35rem;
}

.assessment-choice {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: .6rem !important;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: .65rem .75rem;
}

.assessment-choice input {
    width: auto !important;
}

.transcript-heading {
    max-width: 900px;
}

.transcript-record {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    background: var(--line);
}

.transcript-record div {
    min-height: 118px;
    background: var(--white);
    padding: 1rem;
}

.transcript-record span {
    display: block;
    color: var(--ink-soft);
    font-weight: 800;
}

.transcript-record strong {
    display: block;
    margin-top: .45rem;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    line-height: 1.2;
}

.student-auth h1 {
    max-width: 780px;
}

.lesson-token-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(44px, 1fr));
    gap: .5rem;
}

.lesson-token {
    display: grid;
    min-height: 48px;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.lesson-token--approved {
    background: #dfe9df;
    border-color: #9dbb9f;
    color: #1f4a2f;
}

.lesson-token--submitted {
    background: #f4e8bd;
    border-color: #d4b45d;
    color: #5d4815;
}

.lesson-token--retry {
    background: #f0d5d7;
    border-color: #c88c91;
    color: #79353a;
}

.lesson-player {
    padding: 40px 0 76px;
}

.lesson-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.2rem;
    color: var(--ink-soft);
    font-size: .95rem;
    font-weight: 700;
}

.lesson-breadcrumb a {
    color: var(--green);
}

.lesson-breadcrumb a::after {
    content: "/";
    margin-left: .45rem;
    color: var(--line);
}

.lesson-player__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 1.25rem;
    align-items: start;
}

.lesson-content,
.submission-panel {
    border: 1px solid var(--line);
    background: var(--white);
}

.lesson-content {
    padding: clamp(1.3rem, 4vw, 2.4rem);
}

.lesson-block {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.lesson-block p,
.submission-panel p {
    color: var(--ink-soft);
}

.assessment-card__header {
    text-align: center;
    margin: 0 0 1.5rem;
    padding: 1.1rem 1rem;
    background: var(--paper-deep);
    border: 1px solid rgba(169, 121, 50, .28);
}

.assessment-card__header p {
    margin: 0 0 .35rem;
    color: var(--gold);
    font-family: "Inter Tight", Arial, sans-serif;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.2;
}

.assessment-card__header h2 {
    margin: 0;
    color: var(--on-dark);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
}

.submission-panel {
    position: sticky;
    top: 104px;
    padding: 1.2rem;
}

.submission-panel .button {
    width: 100%;
    margin-top: 1rem;
}

.student-submission-form {
    display: grid;
    gap: .75rem;
}

.student-submission-form label {
    display: grid;
    gap: .35rem;
    color: var(--ink);
    font-weight: 800;
}

.student-submission-form input,
.student-submission-form textarea,
.student-submission-form select {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: .65rem;
}

.submission-panel .button:disabled {
    cursor: not-allowed;
    opacity: .68;
}

.word-meter {
    height: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
}

.word-meter span {
    display: block;
    height: 100%;
    background: var(--gold);
}

.submission-panel__meta {
    margin: .45rem 0 0;
    font-size: .92rem;
    font-weight: 700;
}

.admin-surface {
    background: #f2f4f1;
}

:root[data-theme="dark"] .admin-surface {
    background: var(--paper);
}

.admin-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.admin-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 84px;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .7rem;
}

.admin-nav a,
.admin-nav button {
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    min-height: 40px;
    padding: .45rem .7rem;
    text-decoration: none;
}

.admin-nav a[href*="admin/login"],
.admin-nav a[href$="/public/"],
.admin-nav button {
    border-radius: 4px;
}

.admin-nav form {
    margin: 0;
}

.admin-shell {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: var(--line);
}

.admin-shell__group {
    background: var(--panel);
    padding: .8rem;
}

.admin-shell__group h2 {
    margin: 0 0 .55rem;
    color: var(--ink-soft);
    font-size: .72rem;
    font-family: inherit;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-shell__group div {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.admin-shell__group a {
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--ink);
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.2;
    padding: .35rem .48rem;
    text-decoration: none;
}

.admin-shell__group a:hover,
.admin-shell__group a.is-active {
    border-color: var(--green);
    background: var(--panel-soft);
    color: var(--green);
}

.admin-main {
    padding: 42px 0 84px;
}

.admin-page-heading {
    max-width: 840px;
}

.admin-page-heading p:not(.eyebrow) {
    color: var(--ink-soft);
    font-size: 1.14rem;
}

.admin-auth {
    max-width: 720px;
}

.admin-alert {
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    font-weight: 800;
    padding: .9rem 1rem;
}

.admin-alert--success {
    border-left: 5px solid var(--green);
}

.admin-alert--error {
    border-left: 5px solid var(--rose);
}

.admin-alert--warning,
.admin-alert--info {
    border-left: 5px solid var(--gold);
}

.admin-form {
    display: grid;
    gap: 1rem;
    width: 100%;
}

.admin-form--narrow {
    max-width: 520px;
    margin-top: 1.5rem;
}

.admin-form label,
.admin-checkbox {
    display: grid;
    gap: .35rem;
    color: var(--ink);
    font-weight: 800;
}

.admin-checkbox {
    display: flex;
    align-items: center;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.media-upload-form input,
.media-upload-form textarea,
.media-upload-form select {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink);
    font: inherit;
    padding: .7rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-form__row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.admin-edit-panel,
.admin-table-wrap,
.admin-subpanel {
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.admin-subpanel h2 {
    font-size: 1.35rem;
}

.admin-help-text {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 700;
}

.admin-status-note {
    border: 1px solid var(--line);
    border-left: 5px solid var(--rose);
    background: var(--panel-soft);
    color: var(--ink);
    font-weight: 800;
    margin: 1rem 0;
    padding: .85rem 1rem;
}

.admin-status-note--ready {
    border-left-color: var(--green);
}

.admin-stat-grid,
.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 2rem;
    border: 1px solid var(--line);
    background: var(--line);
}

.admin-stat-grid article,
.admin-action-grid a {
    background: var(--panel);
    padding: 1.15rem;
}

.admin-stat-grid span {
    display: block;
    color: var(--green);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2.4rem;
    line-height: 1;
}

.admin-stat-grid p {
    margin: .35rem 0 0;
    color: var(--ink-soft);
    font-weight: 800;
}

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

.admin-action-grid a {
    color: var(--ink);
    min-height: 150px;
    text-decoration: none;
}

.admin-action-grid strong {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.35rem;
}

.admin-action-grid span {
    display: block;
    margin-top: .5rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.admin-stat-grid--operations {
    grid-template-columns: repeat(4, 1fr);
}

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

.admin-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.admin-filter-form {
    margin-top: 1rem;
}

.admin-table--dense th,
.admin-table--dense td {
    padding: .7rem;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 900;
    padding: .22rem .55rem;
}

.admin-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.admin-delete-panel {
    max-width: 840px;
    margin-top: 1.5rem;
    border: 1px solid var(--rose);
    background: var(--panel);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.admin-delete-panel h2 {
    margin-top: 0;
}

.admin-delete-impact {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 1rem 0;
    border: 1px solid var(--line);
    background: var(--line);
}

.admin-delete-impact article {
    background: var(--panel-soft);
    padding: .85rem;
}

.admin-delete-impact span {
    display: block;
    color: var(--rose);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.8rem;
    line-height: 1;
}

.admin-delete-impact p {
    margin: .35rem 0 0;
    color: var(--ink-soft);
    font-size: .82rem;
    font-weight: 800;
}

.admin-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.admin-panel h2 {
    font-size: 1.28rem;
    margin-bottom: .9rem;
}

.admin-definition-list {
    display: grid;
    grid-template-columns: minmax(120px, .4fr) minmax(0, 1fr);
    gap: .7rem 1rem;
    margin: 0;
}

.admin-definition-list dt {
    color: var(--ink);
    font-weight: 900;
}

.admin-definition-list dd {
    color: var(--ink-soft);
    margin: 0;
}

.admin-checkbox-row {
    align-items: center;
    display: flex;
    gap: .6rem;
    min-height: 42px;
}

.admin-checkbox-row input {
    width: 20px;
    height: 20px;
}

.admin-checklist-mini {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
}

.admin-checklist-mini span {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink-soft);
    font-size: .74rem;
    font-weight: 900;
    padding: .18rem .45rem;
}

.admin-checklist-mini .is-done {
    border-color: color-mix(in srgb, var(--green) 55%, var(--line));
    color: var(--green);
}

.admin-checklist-mini .is-needed {
    border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
    color: var(--gold);
}

.admin-timeline {
    display: grid;
    gap: .75rem;
}

.admin-timeline article {
    border-left: 4px solid var(--gold);
    background: var(--panel-soft);
    padding: .75rem .9rem;
}

.admin-timeline strong,
.admin-timeline span {
    display: block;
}

.admin-timeline span {
    color: var(--ink-soft);
    font-size: .86rem;
    font-weight: 700;
}

.admin-timeline p {
    margin: .35rem 0 0;
}

.admin-pill--ready,
.admin-pill--approved,
.admin-pill--submitted,
.admin-pill--passed,
.admin-pill--graded,
.admin-pill--requirements_met,
.admin-pill--advisor_approved,
.admin-pill--certified {
    border-color: #7ea177;
    background: #e3eddf;
    color: #234838;
}

.admin-pill--danger,
.admin-pill--resubmitted,
.admin-pill--needs_rewrite,
.admin-pill--needs_media,
.admin-pill--needs_assessment,
.admin-pill--retry_required,
.admin-pill--rejected,
.admin-pill--sealed,
.admin-pill--failed,
.admin-pill--voided {
    border-color: #c79095;
    background: #f1dadc;
    color: #79353a;
}

.admin-pill--review,
.admin-pill--draft_complete,
.admin-pill--under_review {
    border-color: #d4b45d;
    background: #f4e8bd;
    color: #5d4815;
}

.admin-pill--in_progress {
    border-color: #89a8c8;
    background: #dce8f2;
    color: #224a70;
}

.admin-pill--incomplete,
.admin-pill--not_reviewed,
.admin-pill--not_started {
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink-soft);
}

:root[data-theme="dark"] .admin-pill--ready,
:root[data-theme="dark"] .admin-pill--approved,
:root[data-theme="dark"] .admin-pill--submitted,
:root[data-theme="dark"] .admin-pill--passed,
:root[data-theme="dark"] .admin-pill--graded,
:root[data-theme="dark"] .admin-pill--requirements_met,
:root[data-theme="dark"] .admin-pill--advisor_approved,
:root[data-theme="dark"] .admin-pill--certified {
    background: #203829;
    color: #cfe6c8;
}

:root[data-theme="dark"] .admin-pill--danger,
:root[data-theme="dark"] .admin-pill--resubmitted,
:root[data-theme="dark"] .admin-pill--needs_rewrite,
:root[data-theme="dark"] .admin-pill--needs_media,
:root[data-theme="dark"] .admin-pill--needs_assessment,
:root[data-theme="dark"] .admin-pill--retry_required,
:root[data-theme="dark"] .admin-pill--rejected,
:root[data-theme="dark"] .admin-pill--sealed,
:root[data-theme="dark"] .admin-pill--failed,
:root[data-theme="dark"] .admin-pill--voided {
    background: #44242a;
    color: #ffd5da;
}

:root[data-theme="dark"] .admin-pill--review,
:root[data-theme="dark"] .admin-pill--draft_complete,
:root[data-theme="dark"] .admin-pill--under_review {
    background: #423419;
    color: #ffe1a6;
}

:root[data-theme="dark"] .admin-pill--in_progress {
    background: #1f344b;
    color: #c9e4ff;
}

.curriculum-checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2rem;
    border: 1px solid var(--line);
    background: var(--line);
}

.curriculum-check {
    min-height: 130px;
    background: var(--panel);
    padding: 1rem;
}

.curriculum-check strong,
.curriculum-check span {
    display: block;
}

.curriculum-check strong {
    color: var(--ink-soft);
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.curriculum-check span {
    margin-top: .65rem;
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.curriculum-check--needed {
    border-top: 5px solid var(--rose);
}

.curriculum-check--ready {
    border-top: 5px solid var(--green);
}

.admin-checkbox--stacked {
    align-content: start;
    display: grid;
}

.admin-note-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.admin-note-list article {
    display: grid;
    gap: .25rem;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    padding: .85rem;
}

.admin-note-list strong,
.admin-note-list span,
.admin-note-list small {
    display: block;
}

.admin-note-list span,
.admin-note-list small {
    color: var(--ink-soft);
    font-weight: 700;
}

.admin-history-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-report-section {
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
    box-shadow: var(--shadow);
}

.admin-report-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-report-heading h2 {
    margin: 0;
    font-size: 1.4rem;
}

.admin-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-report-action-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.admin-report-action,
.admin-report-empty {
    min-height: 110px;
    background: var(--panel-soft);
    color: var(--ink);
    padding: 1rem;
    text-decoration: none;
}

.admin-report-action {
    display: grid;
    align-content: start;
    gap: .45rem;
}

.admin-report-action span {
    color: var(--green);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
}

.admin-report-action strong {
    display: block;
}

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

.admin-dashboard-queue small {
    display: block;
    margin-top: .15rem;
    color: var(--ink-soft);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.35;
}

.admin-dashboard-areas {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-dashboard-areas .admin-record-list a {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--ink);
    text-decoration: none;
}

.admin-report-action--danger {
    border-top: 5px solid var(--rose);
}

.admin-report-action--review {
    border-top: 5px solid var(--gold);
}

.admin-report-action--ready {
    border-top: 5px solid var(--green);
}

.admin-report-list {
    display: grid;
    gap: .7rem;
}

.admin-report-list a,
.admin-report-list p {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink);
    padding: .85rem;
    text-decoration: none;
}

.admin-report-list a {
    display: grid;
    gap: .25rem;
}

.admin-report-list span {
    color: var(--ink-soft);
    font-weight: 700;
}

.admin-stat-grid--reports {
    grid-template-columns: repeat(4, 1fr);
}

.career-ready-grid,
.career-affiliation-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

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

.career-ready-card,
.career-affiliation-card {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
}

.career-ready-card strong,
.career-affiliation-card strong {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.08rem;
}

.career-ready-card span,
.career-affiliation-card span {
    display: block;
    color: var(--ink-soft);
    font-weight: 700;
    margin-top: .25rem;
}

.career-ready-card ul {
    margin: .85rem 0;
    padding-left: 1.1rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.career-affiliation-card {
    display: grid;
    gap: .7rem;
}

.career-readiness-table td {
    vertical-align: top;
}

.portfolio-media-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.portfolio-media-strip figure {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: .55rem;
}

.portfolio-media-strip img,
.portfolio-media-strip video {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.portfolio-media-strip figcaption {
    color: var(--ink-soft);
    font-size: .86rem;
    font-weight: 700;
    margin-top: .45rem;
}

.portfolio-media-form {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.certificate-template-seal {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
}

.certificate-template-seal--large {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
}

.certificate-logo-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.certificate-color-swatch {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    vertical-align: middle;
}

.certificate-template-details {
    min-width: min(760px, 82vw);
}

.certificate-template-details summary {
    cursor: pointer;
    display: inline-flex;
}

.certificate-template-details .certificate-template-form {
    margin-top: 1rem;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 1rem;
}

.certificate-artifact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.certificate-artifact-grid article {
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
}

.certificate-artifact-grid h3 {
    margin-top: 0;
    font-size: 1.05rem;
}

.certificate-artifact-grid article > div {
    display: grid;
    gap: .35rem;
    border-top: 1px solid var(--line);
    padding: .75rem 0;
}

.certificate-artifact-grid article > div:first-of-type {
    border-top: 0;
}

.certificate-artifact-grid span {
    color: var(--ink-soft);
    font-weight: 700;
}

.admin-comm-settings,
.admin-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
    margin-top: 1rem;
}

.admin-comm-settings article,
.admin-template-grid article {
    background: var(--panel-soft);
    padding: 1rem;
}

.admin-comm-settings strong,
.admin-comm-settings span,
.admin-template-grid strong,
.admin-template-grid span {
    display: block;
}

.admin-comm-settings span,
.admin-template-grid span {
    color: var(--ink-soft);
    font-weight: 700;
}

.admin-template-grid p {
    margin-bottom: 0;
}

.admin-smtp-form,
.admin-smtp-test {
    margin-top: 1rem;
}

.admin-smtp-test {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.admin-muted {
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 700;
}

.admin-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
    gap: 1rem;
}

.admin-record-list {
    display: grid;
    gap: .65rem;
    margin: 0;
}

.admin-record-list div {
    display: grid;
    grid-template-columns: minmax(120px, .4fr) 1fr;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: .55rem;
}

.admin-record-list dt {
    color: var(--ink-soft);
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-record-list dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.admin-standard-stack {
    display: grid;
    gap: .75rem;
}

.admin-standard-stack section {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    padding: .85rem;
}

.admin-standard-stack strong {
    color: var(--green);
    display: block;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-standard-stack p {
    margin: .35rem 0 0;
}

.admin-written-evidence {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.7;
    margin: 1rem 0;
    padding: 1rem;
}

.admin-media-evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.admin-media-evidence-grid article {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    display: grid;
    gap: .65rem;
    padding: .85rem;
}

.admin-media-evidence-grid strong,
.admin-media-evidence-grid span {
    display: block;
}

.admin-media-evidence-grid span {
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 800;
}

.admin-media-evidence-grid img,
.admin-media-evidence-grid video {
    aspect-ratio: 4 / 3;
    background: var(--paper);
    border: 1px solid var(--line);
    object-fit: contain;
    width: 100%;
}

.curriculum-lesson-preview {
    display: grid;
    gap: 1rem;
}

.curriculum-lesson-preview .spec {
    border: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 1rem;
}

.lesson-content-body {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    padding: clamp(1rem, 3vw, 1.6rem);
}

.lesson-content-body h3 {
    margin-top: 1.25rem;
    font-size: 1.15rem;
}

.lesson-content-body h3:first-child {
    margin-top: 0;
}

.admin-checklist {
    display: grid;
    gap: .6rem;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: .85rem;
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--ink-soft);
    font-size: .86rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-table td small {
    display: block;
    color: var(--ink-soft);
}

.admin-inline-form {
    display: grid;
    gap: .45rem;
    min-width: 260px;
}

.admin-inline-form input,
.admin-inline-form textarea,
.admin-inline-form select {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    color: var(--ink);
    font: inherit;
    padding: .55rem;
}

.admin-module-list {
    display: grid;
    gap: .8rem;
    margin-top: 1.5rem;
}

.admin-module-list h2 {
    font-size: 1.55rem;
}

.admin-module-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
}

.admin-module-list span {
    display: block;
    color: var(--ink-soft);
    font-weight: 700;
}

.admin-upload-preview {
    margin: 1rem 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper);
}

.admin-upload-preview img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.admin-brand-preview {
    display: grid;
    max-width: 240px;
    margin: 0 0 1rem;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 1rem;
}

.admin-brand-preview img {
    display: block;
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.admin-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.admin-brand-preview figcaption {
    margin-top: .65rem;
    color: var(--ink-soft);
    font-weight: 900;
    text-align: center;
}

.admin-brand-preview--round {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.curriculum-section-grid {
    display: grid;
    gap: .85rem;
    margin-top: 1rem;
}

.curriculum-section-grid article {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) minmax(280px, 380px);
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    padding: 1rem;
}

.curriculum-section-grid__mark {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
}

.curriculum-section-grid__mark img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.curriculum-section-grid strong,
.curriculum-section-grid span {
    display: block;
}

.curriculum-section-grid span {
    color: var(--ink-soft);
    font-weight: 800;
}

.media-brief-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 2rem 0;
    border: 1px solid var(--line);
    background: var(--line);
}

.media-brief-summary article {
    background: var(--panel);
    padding: 1.2rem;
}

.media-brief-summary span {
    display: block;
    color: var(--green);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2.5rem;
    line-height: 1;
}

.media-brief-summary p {
    margin: .45rem 0 0;
    color: var(--ink-soft);
    font-weight: 700;
}

.media-brief-list {
    display: grid;
    gap: 1rem;
}

.media-brief-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 1rem;
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 1rem;
}

.media-status {
    margin: 0 0 .5rem;
    color: var(--gold);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.media-brief-card h2 {
    font-size: 1.45rem;
}

.media-brief-card dl {
    display: grid;
    gap: .75rem;
}

.media-brief-card dt {
    color: var(--ink);
    font-weight: 800;
}

.media-brief-card dd {
    margin: 0;
    color: var(--ink-soft);
}

.media-upload-form {
    display: grid;
    gap: .9rem;
    border-left: 1px solid var(--line);
    padding-left: 1rem;
}

.media-upload-form label {
    display: grid;
    gap: .35rem;
    color: var(--ink);
    font-weight: 800;
}

@media (min-width: 901px) and (max-width: 1320px) {
    .primary-nav {
        gap: .65rem;
    }

    .brand {
        gap: .55rem;
    }

    .brand__logo {
        width: 58px;
        height: 58px;
    }

    .brand strong {
        font-size: 1rem;
    }

    .brand small {
        font-size: .68rem;
    }

    .primary-nav__links {
        font-size: .78rem;
    }

    .primary-nav__item > a {
        padding-inline: .42rem;
    }

    .primary-nav__controls {
        gap: .4rem;
    }

    .locale-toggle {
        min-width: 92px;
    }

    .locale-toggle__option {
        font-size: .74rem;
    }

    .theme-toggle {
        width: 66px;
    }

    .theme-toggle::before {
        width: 29px;
    }

    :root[data-theme="dark"] .theme-toggle::before {
        transform: translateX(31px);
    }
}

@media (max-width: 900px) {
    .notice-bar__inner,
    .site-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }

    .notice-bar {
        display: none;
    }

    .primary-nav {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 78px;
        padding: .55rem 0;
    }

    .primary-nav__links {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        border: 0 solid var(--line);
        background: var(--panel);
        box-shadow: var(--shadow);
        opacity: 0;
        transition: max-height .22s ease, opacity .18s ease, border-width .18s ease;
        font-size: 1rem;
    }

    .primary-nav.is-menu-open .primary-nav__links {
        max-height: 720px;
        overflow-y: auto;
        border-width: 1px;
        opacity: 1;
    }

    .primary-nav__item {
        display: block;
        border-bottom: 1px solid var(--line);
    }

    .primary-nav__item:last-child {
        border-bottom: 0;
    }

    .primary-nav__item > a {
        display: block;
        padding: .9rem 1rem;
        border-radius: 0;
        background: transparent;
    }

    .primary-nav__item > a::after {
        display: none;
    }

    .primary-nav__item.is-active > a {
        background: var(--panel-soft);
        border-left: 3px solid var(--green);
        padding-left: calc(1rem - 3px);
    }

    /* On mobile the dropdown is inline-expanded under its parent */
    .primary-nav__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--line);
        border-radius: 0;
        background: var(--panel-soft);
        padding: 0;
    }

    .primary-nav__dropdown a {
        padding: .8rem 1rem .8rem 2rem;
        border-radius: 0;
        font-size: .92rem;
    }

    .primary-nav__caret {
        display: none;
    }

    .primary-nav__controls {
        justify-content: end;
    }

    .menu-toggle {
        display: grid;
    }

    .brand__logo,
    .brand__logo img {
        width: 72px;
        height: 72px;
    }

    .brand strong {
        font-size: 1.4rem;
    }

    .brand small {
        max-width: 250px;
    }

    .home-cinematic {
        top: 78px;
        height: 50svh;
    }

    .home-cinematic-spacer {
        min-height: 50svh;
    }

    .about-hero__inner,
    .about-story-grid,
    .about-purpose__grid,
    .about-risk,
    .about-founders,
    .about-access__inner,
    .about-open-standard,
    .home-mission-band__inner {
        grid-template-columns: 1fr;
    }

    .about-chapter,
    .about-chapter--reverse {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .about-chapter .about-image,
    .about-chapter--reverse .about-image,
    .about-chapter--reverse .about-chapter__copy {
        grid-column: 2;
        grid-row: auto;
    }

    .about-chapter__marker {
        width: 44px;
        height: 44px;
    }

    .about-stat-wall {
        grid-template-columns: 1fr;
    }

    .about-stat-wall article {
        min-height: auto;
    }

    .home-mission-band__inner {
        align-items: start;
    }

    .hero__grid,
    .admissions-hero__grid,
    .directory-hero__grid,
    .profile-hero__grid,
    .catalog-hero__grid,
    .lesson-player__grid,
    .student-record-grid,
    .media-brief-card,
    .student-onboarding,
    .admin-detail-grid,
    .admin-shell,
    .curriculum-section-grid article,
    .standards__grid,
    .section--split,
    .admissions__inner {
        grid-template-columns: 1fr;
    }

    .hero__grid {
        min-height: auto;
    }

    .hero-media {
        min-height: 440px;
    }

    .priority-grid,
    .stakeholder-grid,
    .program-list,
    .standard-list,
    .transcript-record,
    .progress-strip,
    .admin-stat-grid,
    .admin-action-grid,
    .curriculum-checklist-grid,
    .admin-form-grid--four,
    .admin-history-grid,
    .admin-delete-impact,
    .career-ready-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-form__row {
        grid-template-columns: 1fr 1fr;
    }

    .lesson-token-grid {
        grid-template-columns: repeat(6, minmax(44px, 1fr));
    }

    .submission-panel {
        position: static;
    }

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

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

    .student-onboarding__list {
        grid-template-columns: 1fr;
    }

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

@media (prefers-reduced-motion: reduce) {
    .primary-nav__links,
    .menu-toggle span {
        transition: none;
    }

    .home-cinematic__video {
        display: none;
    }

    .home-cinematic {
        transition: none;
    }
}

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

    .wrap {
        width: min(100% - 28px, 1120px);
    }

    .brand small {
        display: none;
    }

    .brand__logo,
    .brand__logo img {
        width: 62px;
        height: 62px;
    }

    .theme-toggle {
        width: 68px;
        height: 36px;
    }

    .theme-toggle::before {
        width: 30px;
    }

    .home-cinematic {
        top: 76px;
        height: 50svh;
    }

    .home-cinematic-spacer {
        min-height: 50svh;
    }

    .home-cinematic__inner {
        padding: clamp(.75rem, 2vw, 1.5rem) 0;
    }

    .home-cinematic h1 {
        font-size: clamp(3.8rem, 22vw, 6.5rem);
    }

    .home-cinematic__lede {
        font-size: clamp(1.05rem, 6vw, 1.55rem);
    }

    .home-cinematic__actions {
        margin-top: 2rem;
    }

    .home-cinematic__actions,
    .home-cinematic__actions .button {
        width: 100%;
    }

    .about-hero__inner,
    .about-story-grid,
    .about-purpose__grid,
    .about-access__inner,
    .about-close__inner {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .about-chapters,
    .about-risk,
    .about-founders,
    .about-open-standard {
        padding-top: 3.25rem;
        padding-bottom: 3.25rem;
    }

    .about-chapter,
    .about-chapter--reverse {
        grid-template-columns: 1fr;
    }

    .about-chapter__marker,
    .about-chapter .about-image,
    .about-chapter--reverse .about-image,
    .about-chapter--reverse .about-chapter__copy {
        grid-column: 1;
    }

    .about-chapter__marker {
        position: static;
    }

    .about-image {
        min-height: 240px;
    }

    .about-mission,
    .about-source-quote {
        padding: 1.15rem;
    }

    :root[data-theme="dark"] .theme-toggle::before {
        transform: translateX(32px);
    }

    .hero__grid,
    .profile-hero__grid,
    .section,
    .standards__grid,
    .admissions__inner {
        padding: 56px 0;
    }

    .hero__actions,
    .hero__actions .button {
        width: 100%;
    }

    .hero-media {
        min-height: auto;
        display: grid;
        gap: 1rem;
    }

    .managed-photo--large,
    .managed-photo--small,
    .pet-photo--large,
    .pet-photo--small,
    .credential-card-small {
        position: static;
        width: 100%;
    }

    .managed-photo--large,
    .managed-photo--small,
    .pet-photo--large,
    .pet-photo--small {
        aspect-ratio: 4 / 3;
    }

    .priority-grid,
    .stakeholder-grid,
    .program-list,
    .standard-list {
        grid-template-columns: 1fr;
    }

    .priority-grid article,
    .stakeholder-card,
    .program-list article,
    .standard-list article {
        min-height: auto;
    }

    .credential-panel dl div {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .student-nav,
    .next-lesson,
    .lesson-map__heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .next-lesson {
        display: flex;
    }

    .next-lesson .button {
        width: 100%;
    }

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

    .admin-review-grid,
    .admin-media-evidence-grid,
    .admin-report-grid,
    .admin-detail-grid,
    .directory-grid,
    .transcript-track-grid,
    .credential-summary-grid,
    .public-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .admin-report-action-list,
    .admin-dashboard-queue,
    .admin-stat-grid--reports,
    .career-ready-grid,
    .portfolio-media-strip,
    .admin-comm-settings,
    .admin-template-grid,
    .admin-dashboard-areas {
        grid-template-columns: 1fr 1fr;
    }

    .transcript-record {
        grid-template-columns: 1fr;
    }

    .assessment-panel__heading {
        display: grid;
    }

    .assessment-panel__heading span {
        white-space: normal;
    }

    .student-course-track header,
    .student-lesson-heading {
        display: grid;
    }

    .student-lesson-grid {
        grid-template-columns: 1fr;
    }

    .student-onboarding__list {
        grid-template-columns: 1fr;
    }

    .transcript-track header,
    .transcript-metrics {
        display: grid;
        grid-template-columns: 1fr;
    }

    .media-brief-summary {
        grid-template-columns: 1fr;
    }

    .directory-filter,
    .admissions-hero__grid,
    .admissions-form > section,
    .directory-hero__grid,
    .certificate-logo-panel,
    .certificate-artifact-grid,
    .directory-card__metrics {
        grid-template-columns: 1fr;
    }

    .directory-result-heading {
        display: grid;
    }

    .media-upload-form {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 1rem 0 0;
    }

    .admin-brand-grid {
        grid-template-columns: 1fr;
    }

    .curriculum-section-grid article {
        align-items: start;
    }

    .lesson-token-grid {
        grid-template-columns: repeat(4, minmax(44px, 1fr));
    }

    .lesson-card-grid {
        grid-template-columns: 1fr;
    }

    .catalog-track__summary {
        grid-template-columns: 1fr;
    }

    .admin-form-grid,
    .admin-form-grid--four,
    .admin-form__row,
    .business-choice-grid,
    .business-password-grid,
    .admin-stat-grid,
    .admin-action-grid,
    .admin-detail-grid,
    .admin-shell,
    .curriculum-checklist-grid,
    .admin-history-grid,
    .admin-delete-impact,
    .career-ready-grid,
    .portfolio-media-strip {
        grid-template-columns: 1fr;
    }

    .admin-module-list article {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-record-list div {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .admin-report-heading {
        display: grid;
    }

    .admin-report-action-list,
    .admin-dashboard-queue,
    .admin-stat-grid--reports,
    .career-ready-grid,
    .portfolio-media-strip,
    .admin-comm-settings,
    .admin-template-grid,
    .admin-dashboard-areas {
        grid-template-columns: 1fr;
    }

    .admin-table-wrap {
        overflow-x: auto;
    }
}

@media (max-width: 900px) {
    .standards-bulletin__grid,
    .standards-document-layout,
    .standards-access-grid,
    .standards-search-links,
    .standards-search-links--three,
    .standards-publication-row,
    .standards-principles-grid,
    .standards-part-grid,
    .standards-evidence-grid,
    .standards-use-grid,
    .standards-part-list,
    .standards-link-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .standards-part-block__header,
    .standards-evidence-group__header,
    .standards-section-block__heading {
        flex-direction: column;
    }

    .standards-meta-panel dl div,
    .standards-clause,
    .standards-line-item {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .standards-bulletin__notice::after {
        position: static;
        display: block;
        margin-bottom: .7rem;
    }
}

/* ------------------------------------------------------------------ */
/* Portfolio prompt callout — student lesson page                      */
/* ------------------------------------------------------------------ */

.portfolio-prompt-callout {
    border-left: 4px solid var(--gold);
    background: var(--paper-deep);
    border-radius: .5rem;
    padding: 0 !important;
    overflow: hidden;
}

.portfolio-prompt-callout__inner {
    padding: 1.5rem 1.75rem;
}

.portfolio-prompt-callout__header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.portfolio-prompt-callout__type {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gold);
    background: rgba(169, 121, 50, .12);
    border-radius: 999px;
    padding: .15em .65em;
}

.portfolio-prompt-callout h3 {
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 .5rem;
}

.portfolio-prompt-callout p {
    color: var(--ink-soft);
    margin: 0 0 .75rem;
}

.portfolio-prompt-callout__note {
    font-size: .875rem;
    font-style: italic;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    padding-top: .75rem;
    margin-top: .75rem !important;
}

/* ------------------------------------------------------------------ */
/* Portfolio prompt admin — index page                                 */
/* ------------------------------------------------------------------ */

.prompt-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.prompt-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: 1.25rem 1.5rem;
}

.prompt-card--inactive {
    opacity: .6;
}

.prompt-card__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .35rem;
}

.prompt-card h3 {
    font-size: 1rem;
    margin: 0 0 .4rem;
}

.prompt-card p {
    font-size: .9rem;
    color: var(--ink-soft);
    margin: 0 0 .4rem;
}

.prompt-card__lesson {
    font-size: .8rem;
    color: var(--green);
}

.prompt-card__lesson--unlinked {
    color: var(--rose);
}

.prompt-badge {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: 999px;
    padding: .15em .65em;
}

.prompt-badge--video { background: rgba(35, 72, 56, .12); color: var(--green); }
.prompt-badge--photo { background: rgba(169, 121, 50, .12); color: var(--gold); }
.prompt-badge--both  { background: rgba(140, 63, 67, .12); color: var(--rose); }
.prompt-badge--inactive { background: var(--paper-deep); color: var(--ink-soft); }

.prompt-edit {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

.prompt-edit summary {
    cursor: pointer;
    font-size: .875rem;
    color: var(--green);
    font-weight: 600;
    list-style: none;
}

.prompt-edit summary::-webkit-details-marker { display: none; }

.prompt-edit .admin-form--stack {
    margin-top: 1rem;
}

.admin-form__actions {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.button--danger {
    background: var(--rose);
    color: var(--on-dark);
    border-color: var(--rose);
}

.button--danger:hover {
    background: #6e2e32;
    border-color: #6e2e32;
}

/* ------------------------------------------------------------------ */
/* Portfolio — verified badge and two-section public display           */
/* ------------------------------------------------------------------ */

.portfolio-card {
    position: relative;
    border: 1px solid var(--line);
    background: var(--white);
}

.portfolio-card--verified {
    border-color: var(--gold);
}

.portfolio-card__verified-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: var(--gold);
    color: var(--on-dark);
    border-radius: 999px;
    padding: .2em .75em;
}

/* ------------------------------------------------------------------ */
/* Portfolio prompt context banner — student portfolio page            */
/* ------------------------------------------------------------------ */

.portfolio-prompt-context-banner {
    border-left: 4px solid var(--gold);
    background: var(--paper-deep);
    border-radius: .5rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.portfolio-prompt-context-banner__inner {
    padding: 1.5rem 1.75rem;
}

.portfolio-prompt-context-banner h2 {
    font-size: 1.15rem;
    margin: .25rem 0 .5rem;
}

.portfolio-prompt-context-banner p {
    color: var(--ink-soft);
    margin: 0 0 .75rem;
}

/* ────────────────────────────────────────────────────────────────────────
   Student Services — auth pages (login/setup) layout
   ──────────────────────────────────────────────────────────────────────── */

.student-auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.student-auth-card,
.student-auth-aside {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
    padding: 1.75rem 1.85rem;
}

.student-auth-card h2 {
    margin: .35rem 0 .75rem;
    font-size: 1.35rem;
    color: var(--ink);
}

.student-auth-card > p {
    color: var(--ink-soft);
    margin: 0 0 1.25rem;
    line-height: 1.55;
}

.student-auth-card code {
    background: var(--panel-soft);
    padding: .05rem .35rem;
    border-radius: 3px;
    font-size: .88em;
}

.student-auth-card__aside {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: .88rem;
    color: var(--ink-soft);
}

.student-auth-card__aside a {
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
}

.student-auth-card__aside a:hover {
    color: var(--gold);
}

.student-auth-aside {
    background: var(--panel-soft);
    border-left: 3px solid var(--green);
}

.student-auth-aside h3 {
    margin: .35rem 0 .75rem;
    font-size: 1.1rem;
    color: var(--ink);
}

.student-auth-aside h4 {
    margin: 0 0 .4rem;
    font-size: .92rem;
    color: var(--ink);
}

.student-auth-aside p {
    color: var(--ink-soft);
    margin: 0 0 1rem;
    line-height: 1.55;
    font-size: .92rem;
}

.student-auth-aside hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 1.25rem 0;
}

.student-auth-aside a {
    color: var(--green);
}

.student-auth-aside .button {
    margin-bottom: .25rem;
}

.admin-form small {
    display: block;
    font-size: .75rem;
    color: var(--ink-soft);
    margin-top: .35rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

@media (max-width: 820px) {
    .student-auth-grid {
        grid-template-columns: 1fr;
    }
}

/* ────────────────────────────────────────────────────────────────────────
   Admin "Preview as student" mode
   ──────────────────────────────────────────────────────────────────────── */

.admin-preview-banner {
    background: var(--gold);
    color: #1a1208;
    padding: .65rem 1.25rem;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-bottom: 2px solid rgba(0, 0, 0, .18);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-preview-banner strong {
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .8rem;
    padding: .15rem .5rem;
    background: rgba(0, 0, 0, .18);
    color: #fffdf8;
    border-radius: 3px;
}

.admin-preview-banner__user {
    font-style: italic;
    color: rgba(26, 18, 8, .75);
}

.admin-preview-banner a {
    margin-left: auto;
    color: #1a1208;
    text-decoration: underline;
    font-weight: 700;
}

.admin-preview-banner a:hover {
    color: #000;
}

.student-surface--preview .student-header {
    top: auto;
}

.student-nav__preview-tag {
    background: var(--gold);
    color: #1a1208;
    font-weight: 800;
    letter-spacing: .08em;
    font-size: .72rem;
    padding: .15rem .55rem;
    border-radius: 3px;
}

.preview-disabled-note {
    margin: .75rem 0 0;
    padding: .65rem .85rem;
    background: rgba(169, 121, 50, .12);
    border-left: 3px solid var(--gold);
    color: var(--ink-soft);
    font-size: .88rem;
    font-style: italic;
}

.admin-page-heading__actions {
    margin-top: 1rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────────────────
   Blackboard-style course shell (student lesson view)
   ──────────────────────────────────────────────────────────────────────── */

.bb-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 92px);
    background: var(--paper);
    align-items: start;
}

/* ── Course menu sidebar ─────────────────────────────────────────────── */

.bb-coursemenu {
    position: sticky;
    top: 92px;
    align-self: start;
    height: calc(100vh - 92px);
    overflow-y: auto;
    border-right: 1px solid var(--line);
    background: var(--panel);
    display: flex;
    flex-direction: column;
}

.bb-coursemenu__header {
    padding: 1rem 1.1rem .9rem;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
    position: sticky;
    top: 0;
    z-index: 1;
    flex-shrink: 0;
}

.bb-coursemenu__header .eyebrow {
    margin: 0 0 .25rem;
    font-size: .65rem;
}

.bb-coursemenu__header strong {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
}

.bb-coursemenu__progress {
    margin: .65rem 0 .4rem;
    font-size: .75rem;
    color: var(--ink-soft);
}

.bb-coursemenu__progress-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--paper-deep);
    overflow: hidden;
}

.bb-coursemenu__progress-bar > span {
    display: block;
    height: 100%;
    background: var(--green);
    transition: width .25s ease;
}

.bb-coursemenu__nav {
    flex: 1;
    padding: .85rem 0 2rem;
}

.bb-coursemenu__module {
    padding: 0 .7rem .85rem;
    margin-bottom: .5rem;
}

.bb-coursemenu__module-title {
    margin: .65rem .35rem .5rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--line);
    font-size: .76rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: .02em;
    line-height: 1.3;
}

.bb-coursemenu__lesson {
    display: grid;
    grid-template-columns: 22px 28px 1fr;
    gap: .5rem;
    align-items: center;
    padding: .38rem .45rem;
    border-radius: 4px;
    font-size: .82rem;
    line-height: 1.35;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background .1s, color .1s, border-color .1s;
    border-left: 3px solid transparent;
}

.bb-coursemenu__lesson + .bb-coursemenu__lesson {
    margin-top: 2px;
}

.bb-coursemenu__lesson:hover {
    background: var(--paper-deep);
    color: var(--ink);
}

.bb-coursemenu__lesson.is-current {
    background: var(--paper-deep);
    color: var(--green);
    font-weight: 600;
    border-left-color: var(--green);
}

.bb-coursemenu__lesson.is-locked {
    color: var(--ink-soft);
    opacity: .55;
    cursor: not-allowed;
}

.bb-coursemenu__lesson-num {
    font-variant-numeric: tabular-nums;
    font-size: .72rem;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: .02em;
}

.bb-coursemenu__lesson.is-current .bb-coursemenu__lesson-num {
    color: var(--green);
}

.bb-coursemenu__lesson-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Status pips ─────────────────────────────────────────────────────── */

.bb-pip {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.bb-pip.is-approved {
    background: var(--green);
    color: #fff;
}

.bb-pip.is-pending {
    background: var(--gold);
    color: #fff;
}

.bb-pip.is-retry {
    background: var(--rose);
    color: #fff;
}

.bb-pip.is-not-started {
    background: transparent;
    border: 1.5px solid var(--line);
    color: transparent;
}

/* ── Main panel ──────────────────────────────────────────────────────── */

.bb-main {
    min-width: 0;
}

.bb-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .85rem clamp(1rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
    font-size: .82rem;
    color: var(--ink-soft);
}

.bb-breadcrumb a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

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

.bb-breadcrumb__crumb {
    color: var(--ink-soft);
    font-weight: 500;
}

.bb-breadcrumb__current {
    color: var(--ink);
    font-weight: 700;
}

.bb-breadcrumb__sep {
    color: var(--ink-soft);
    opacity: .5;
}

/* ── Item-type badge on lesson heading ───────────────────────────────── */

.bb-item-type {
    display: inline-block;
    margin-top: .45rem;
    padding: .12rem .55rem;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 3px;
    background: var(--panel-soft);
    color: var(--ink-soft);
    border: 1px solid var(--line);
}

.bb-item-type--quiz {
    background: rgba(35, 72, 56, .08);
    color: var(--green);
    border-color: rgba(35, 72, 56, .25);
}

.bb-item-type--written-submission {
    background: rgba(169, 121, 50, .12);
    color: var(--gold);
    border-color: rgba(169, 121, 50, .35);
}

.bb-item-type--advisor-review {
    background: rgba(140, 63, 67, .1);
    color: var(--rose);
    border-color: rgba(140, 63, 67, .3);
}

/* ── Override the old lesson-player layout when inside bb-shell ──────── */

.bb-main .lesson-player {
    padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 4rem;
}

.bb-main .lesson-player__grid {
    display: block;
}

.bb-main .submission-panel {
    margin-top: 1.5rem;
}

.bb-main .lesson-breadcrumb {
    display: none;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .bb-shell {
        grid-template-columns: 1fr;
    }
    .bb-coursemenu {
        position: static;
        height: auto;
        max-height: 320px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }
    .bb-coursemenu__header {
        position: static;
    }
}

/* ────────────────────────────────────────────────────────────────────────
   Admissions — info page (/admissions) and apply page (/admissions/apply)
   ──────────────────────────────────────────────────────────────────────── */

.admissions-hero__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.admissions-hero__back {
    margin-top: 1rem;
    font-size: .95rem;
}

.admissions-hero__back a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .875rem;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    transition: background .15s, border-color .15s;
}
.admissions-hero__back a:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.admissions-tuition-note {
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
    padding: 1.1rem 1.15rem;
}

.admissions-tuition-note .eyebrow {
    color: var(--on-dark);
    background: rgba(169, 121, 50, .22);
    border-color: rgba(169, 121, 50, .55);
    margin-bottom: .65rem;
}

.admissions-tuition-note strong {
    display: block;
    color: var(--gold);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: .55rem;
}

.admissions-tuition-note p {
    color: rgba(255, 253, 248, .82);
    margin: 0 0 .5rem;
    font-size: .95rem;
}

.admissions-tuition-note__contact a {
    color: var(--gold);
    text-decoration: underline;
}

.admissions-after__header {
    max-width: 720px;
    margin-bottom: 2rem;
}

.admissions-after__lede {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.admissions-after__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    counter-reset: admissions-after;
}

.admissions-after__steps li {
    position: relative;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
}

.admissions-after__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--ink);
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    margin-bottom: .75rem;
}

.admissions-after__steps h3 {
    font-size: 1.1rem;
    margin: 0 0 .5rem;
    color: var(--ink);
}

.admissions-after__steps p {
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.55;
}

.admissions-after__steps code {
    background: rgba(169, 121, 50, .12);
    padding: 0 .35rem;
    border-radius: 2px;
    font-size: .9em;
}

.admissions-before__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 2.25rem;
    align-items: start;
}

.admissions-before__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .75rem;
}

.admissions-before__list li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--ink-soft);
    line-height: 1.55;
}

.admissions-before__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
}

.admissions-before__list strong {
    color: var(--ink);
}

.admissions-cta {
    background: var(--green-deep);
    color: var(--on-dark);
    padding: 3rem 0;
    text-align: center;
}

.admissions-cta__inner {
    max-width: 640px;
}

.admissions-cta h2 {
    color: var(--on-dark);
    margin: 0 0 .75rem;
}

.admissions-cta p {
    color: rgba(255, 253, 248, .82);
    margin: 0 0 1.5rem;
}

.admissions-acknowledgments {
    display: grid;
    gap: .85rem;
    border: 1px solid var(--gold);
    background: rgba(169, 121, 50, .06);
    padding: 1.1rem 1.15rem;
    margin-bottom: .25rem;
}

.admissions-acknowledgment {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
    line-height: 1.5;
    color: var(--ink);
    cursor: pointer;
}

.admissions-acknowledgment input[type="checkbox"] {
    margin-top: .25rem;
    width: 1.1rem;
    height: 1.1rem;
}

.admissions-acknowledgment strong {
    display: block;
    color: var(--ink);
    margin-bottom: .15rem;
}

.admissions-form__finehelp {
    margin-top: .85rem;
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.55;
}

@media (max-width: 820px) {
    .admissions-before__grid {
        grid-template-columns: 1fr;
    }

    .admissions-after__steps {
        grid-template-columns: 1fr;
    }
}

/* ── Quiz performance widget (dashboard) ─────────────────────────────────── */

.quiz-perf-widget {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
    margin-top: 1.4rem;
    padding: 1.6rem;
    border: 1px solid var(--line);
    background: var(--white);
}

.quiz-perf-widget__ring-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

/* SVG score ring */
.score-ring {
    display: block;
    overflow: visible;
    transform: rotate(-90deg);
}

.score-ring__track {
    fill: none;
    stroke: var(--paper-deep);
    stroke-width: 9;
}

.score-ring__fill {
    fill: none;
    stroke-width: 9;
    stroke-linecap: round;
    transition: stroke-dashoffset .6s ease;
}

.score-ring__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
}

.score-ring__pct {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 700;
}

.score-ring__caption {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-soft);
}

.quiz-perf-widget__stats h2 {
    font-size: 1.35rem;
    margin: .25rem 0 1rem;
}

.quiz-perf-stat-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quiz-perf-stat {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.quiz-perf-stat strong {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--green);
}

.quiz-perf-stat span {
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-soft);
}

.quiz-perf-widget__recent {
    border-left: 1px solid var(--line);
    padding-left: 1.5rem;
}

.quiz-result-row {
    display: grid;
    grid-template-columns: 48px 56px 1fr;
    align-items: center;
    gap: .6rem;
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
}

.quiz-result-row:last-child {
    border-bottom: 0;
}

.quiz-result-row:hover .quiz-result-title {
    color: var(--green);
    text-decoration: underline;
}

.quiz-result-score {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--score-color, var(--ink));
    text-align: right;
    white-space: nowrap;
}

.quiz-result-pill {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
    text-align: center;
}

.quiz-result-pill--pass {
    background: rgba(90, 158, 111, .15);
    color: #3a7e53;
}

.quiz-result-pill--fail {
    background: rgba(192, 96, 90, .15);
    color: #a03830;
}

.quiz-result-title {
    font-size: .88rem;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ── Quiz score cards (lesson page assessment history) ───────────────────── */

.quiz-history-stack {
    display: grid;
    gap: .75rem;
    margin-top: .75rem;
}

.quiz-score-card {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    background: var(--panel-soft);
    position: relative;
    overflow: hidden;
}

.quiz-score-card__pct {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.quiz-score-card__body {
    display: grid;
    gap: .2rem;
}

.quiz-score-card__body strong {
    font-size: .95rem;
    line-height: 1.25;
}

.quiz-score-card__body span {
    display: block;
    font-size: .8rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.quiz-score-card__pill {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}

.quiz-score-card__pill--pass {
    background: rgba(90, 158, 111, .15);
    color: #3a7e53;
    border: 1px solid rgba(90, 158, 111, .3);
}

.quiz-score-card__pill--fail {
    background: rgba(192, 96, 90, .15);
    color: #a03830;
    border: 1px solid rgba(192, 96, 90, .3);
}

.quiz-score-card--superseded {
    opacity: .48;
    filter: grayscale(.65);
}

.quiz-score-card--superseded .quiz-score-card__pct {
    position: relative;
}

.quiz-score-card--superseded .quiz-score-card__pct::after {
    content: "";
    position: absolute;
    left: -.4rem;
    right: -.4rem;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    background: rgba(160, 56, 48, .82);
    transform: rotate(-18deg);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .45);
}

.quiz-score-card__pill--pending {
    background: rgba(196, 154, 60, .12);
    color: #8a6210;
    border: 1px solid rgba(196, 154, 60, .3);
}

/* ── Dark mode overrides for quiz components ─────────────────────────────── */

:root[data-theme="dark"] .quiz-result-pill--pass {
    background: rgba(90, 158, 111, .22);
    color: #8ed4a8;
}

:root[data-theme="dark"] .quiz-result-pill--fail {
    background: rgba(192, 96, 90, .22);
    color: #e8948f;
}

:root[data-theme="dark"] .quiz-score-card__pill--pass {
    background: rgba(90, 158, 111, .22);
    color: #8ed4a8;
    border-color: rgba(90, 158, 111, .35);
}

:root[data-theme="dark"] .quiz-score-card__pill--fail {
    background: rgba(192, 96, 90, .22);
    color: #e8948f;
    border-color: rgba(192, 96, 90, .35);
}

:root[data-theme="dark"] .score-ring__track {
    stroke: rgba(255, 255, 255, .08);
}

/* ── Responsive quiz widget ──────────────────────────────────────────────── */

@media (max-width: 900px) {
    .quiz-perf-widget {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .quiz-perf-widget__recent {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 1rem;
    }
}

@media (max-width: 580px) {
    .quiz-perf-widget {
        grid-template-columns: 1fr;
    }

    .quiz-perf-widget__ring-col {
        flex-direction: row;
        gap: 1.25rem;
    }

    .quiz-result-row {
        grid-template-columns: 44px 52px 1fr;
        gap: .4rem;
    }

    .quiz-score-card {
        grid-template-columns: 60px 1fr auto;
    }

    .quiz-score-card__pct {
        font-size: 1.6rem;
    }
}

/* ── P-E-T objective cards ───────────────────────────────────────────────── */

.pet-cards {
    display: grid;
    gap: .75rem;
    margin: 1.4rem 0;
}

.pet-card {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: 1rem 1.1rem;
    border-radius: 4px;
    border-left: 4px solid var(--gold);
    background: var(--panel-soft);
}

.pet-card--proficiency { border-left-color: #5a9e6f; }
.pet-card--evaluation  { border-left-color: var(--gold); }
.pet-card--testing     { border-left-color: #6b8cbf; }

.pet-card__icon {
    flex-shrink: 0;
    margin-top: .1rem;
    color: var(--ink-soft);
    opacity: .7;
}

.pet-card--proficiency .pet-card__icon { color: #5a9e6f; opacity: 1; }
.pet-card--evaluation  .pet-card__icon { color: var(--gold); opacity: 1; }
.pet-card--testing     .pet-card__icon { color: #6b8cbf; opacity: 1; }

.pet-card__label {
    margin: 0 0 .25rem;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ink-soft);
}

.pet-card--proficiency .pet-card__label { color: #4a8a5f; }
.pet-card--evaluation  .pet-card__label { color: #8a6210; }
.pet-card--testing     .pet-card__label { color: #4a6a9e; }

:root[data-theme="dark"] .pet-card--proficiency .pet-card__label { color: #8ed4a8; }
:root[data-theme="dark"] .pet-card--evaluation  .pet-card__label { color: #e0b66f; }
:root[data-theme="dark"] .pet-card--testing     .pet-card__label { color: #9ab4e0; }

.pet-card__text {
    margin: 0;
    font-size: .925rem;
    line-height: 1.55;
    color: var(--ink);
}

/* ── Quiz gate divider ───────────────────────────────────────────────────── */

.quiz-gate {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.25rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    position: relative;
}

.quiz-gate::before {
    content: '';
    position: absolute;
    top: -1.25rem;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.quiz-gate--open {
    border-color: #6b8cbf;
    background: rgba(107, 140, 191, .06);
}

.quiz-gate--complete {
    border-color: #5a9e6f;
    background: rgba(90, 158, 111, .07);
}

.quiz-gate__icon {
    flex-shrink: 0;
}

.quiz-gate--open    .quiz-gate__icon { color: #6b8cbf; }
.quiz-gate--complete .quiz-gate__icon { color: #5a9e6f; }

.quiz-gate__heading {
    margin: 0 0 .2rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
}

.quiz-gate__sub {
    margin: 0;
    font-size: .875rem;
    color: var(--ink-soft);
}

/* ── Listen-to-lesson audio bar ──────────────────────────────────────────── */

.lesson-listen-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    padding: .9rem 1.1rem;
    margin-bottom: 1.25rem;
    background: var(--green);
    color: var(--white);
    border-radius: 4px;
}

.lesson-listen-bar__label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    font-weight: 700;
}

.lesson-listen-bar__title {
    color: rgba(255,255,255,.7);
    font-weight: 400;
    font-size: .85rem;
}

.lesson-listen-bar__player {
    height: 36px;
    min-width: 220px;
    max-width: 360px;
    flex: 1;
    accent-color: var(--gold);
}

/* ── Lesson header video / image ─────────────────────────────────────────── */

.lesson-header-video {
    margin-bottom: 1.25rem;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
}

.lesson-header-video video {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.lesson-header-video__caption,
.lesson-header-image__caption {
    padding: .5rem .75rem;
    font-size: .8rem;
    color: var(--ink-soft);
    background: var(--panel-soft);
}

.lesson-header-image {
    margin-bottom: 1.25rem;
    border-radius: 4px;
    overflow: hidden;
}

.lesson-header-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

/* ── Lesson body media figures ───────────────────────────────────────────── */

.lesson-block--media {
    display: grid;
    gap: 1.25rem;
}

.lesson-media-figure {
    margin: 0;
}

.lesson-media-figure img {
    display: block;
    max-width: 100%;
    border-radius: 3px;
}

.lesson-media-figure video {
    display: block;
    width: 100%;
    border-radius: 3px;
}

.lesson-media-figure figcaption {
    margin-top: .4rem;
    font-size: .8rem;
    color: var(--ink-soft);
    font-style: italic;
}

.lesson-media-label {
    margin: 0 0 .35rem;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-soft);
}

.lesson-audio-inline {
    padding: .75rem;
    background: var(--panel-soft);
    border-radius: 4px;
}

.lesson-audio-inline audio {
    display: block;
    width: 100%;
    margin-top: .35rem;
    accent-color: var(--gold);
}

/* ── Scenario callout block ──────────────────────────────────────────────── */

.lesson-scenario-block {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--gold);
    background: var(--panel-soft);
}

.lesson-scenario-block__label {
    margin: 0 0 .75rem;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gold);
}

/* ── Download area ───────────────────────────────────────────────────────── */

.lesson-downloads {
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.lesson-downloads h2 {
    font-size: 1rem;
    margin: 0 0 .75rem;
}

.lesson-downloads .button {
    display: block;
    margin-bottom: .4rem;
    text-align: left;
}

/* ── Completed lesson panel ──────────────────────────────────────────────── */

.submission-panel--complete {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .5rem;
    padding: 2rem 1.25rem;
    border-color: #5a9e6f;
    background: rgba(90, 158, 111, .07);
}

.submission-complete-mark {
    display: grid;
    place-items: center;
    width: 4.4rem;
    height: 4.4rem;
    margin: 0 auto .8rem;
    border-radius: 999px;
    background: rgba(90, 158, 111, .14);
    border: 2px solid rgba(90, 158, 111, .42);
    font-size: 3.1rem;
    font-weight: 900;
    line-height: 1;
    color: #2f8f4f;
}

.submission-complete-label {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
}

.submission-complete-sub {
    margin: 0;
    font-size: .8rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

/* ── Responsive lesson media ─────────────────────────────────────────────── */

@media (max-width: 720px) {
    .lesson-listen-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .lesson-listen-bar__player {
        width: 100%;
        max-width: 100%;
    }

    .pet-cards {
        grid-template-columns: 1fr;
    }

    .quiz-gate {
        align-items: flex-start;
    }
}

/* ── Advisor assignment panel ────────────────────────────────────────────── */

.assignment-panel {
    margin-top: 1.4rem;
    padding: 1.25rem;
    border: 2px solid var(--gold);
    background: linear-gradient(135deg, var(--panel), rgba(169,121,50,.06));
}

.assignment-panel__header {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
    font-size: .75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--gold);
}

.assignment-panel h2 {
    font-size: 1.2rem;
    margin: 0 0 .3rem;
}

.assignment-panel__type {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-soft);
    margin: 0 0 .3rem;
}

.assignment-panel__due {
    font-size: .82rem;
    font-weight: 700;
    color: #c0605a;
    margin: 0 0 .75rem;
}

.assignment-panel__instructions {
    font-size: .9rem;
    line-height: 1.6;
    color: var(--ink);
    padding: .75rem;
    background: var(--panel-soft);
    border-left: 3px solid var(--gold);
    margin: .75rem 0 1rem;
}

.assignment-panel__submitted {
    font-size: .9rem;
    font-weight: 700;
    color: #5a9e6f;
    margin: 0 0 .75rem;
}

.assignment-panel__history {
    font-size: .82rem;
    color: var(--ink-soft);
    padding: .5rem .75rem;
    background: var(--panel-soft);
    margin-bottom: .4rem;
}

/* ── Portfolio floating button ───────────────────────────────────────────── */

.portfolio-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 400;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
}

.portfolio-float__trigger {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    background: var(--green);
    color: var(--white);
    border: none;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(0,0,0,.22);
    transition: background .15s;
}

.portfolio-float__trigger:hover {
    background: var(--green-deep);
}

.portfolio-float__drawer {
    width: 300px;
    padding: 1.1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

.portfolio-float__drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.portfolio-float__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ink-soft);
    padding: .2rem;
    line-height: 1;
}

.portfolio-float__close:hover {
    color: var(--ink);
}

@media (max-width: 580px) {
    .portfolio-float {
        bottom: 1rem;
        right: 1rem;
    }

    .portfolio-float__drawer {
        width: calc(100vw - 2rem);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Accessibility floating panel
   ═══════════════════════════════════════════════════════════════════════════ */

.a11y-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 200;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: .75rem;
}

.a11y-float__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--green);
    color: var(--on-dark);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
    transition: background .15s, transform .1s;
    flex-shrink: 0;
}

.a11y-float__trigger:hover {
    background: var(--green-deep);
    transform: scale(1.06);
}

.a11y-float__trigger:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.a11y-float__trigger svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.a11y-float__drawer {
    width: 292px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.a11y-float__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--line);
}

.a11y-float__header strong {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
}

.a11y-float__close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink-soft);
    padding: .3rem;
    border-radius: 4px;
    line-height: 1;
    transition: color .1s;
}

.a11y-float__close:hover {
    color: var(--ink);
}

.a11y-float__controls {
    padding: .75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.a11y-control-group {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    padding: .6rem .75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.a11y-control-label {
    font-size: .78rem;
    color: var(--ink-soft);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.a11y-size-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .35rem;
}

.a11y-size-btn {
    padding: .4rem .25rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 5px;
    cursor: pointer;
    font-size: .85rem;
    color: var(--ink);
    transition: background .1s, border-color .1s;
    text-align: center;
}

.a11y-size-btn[aria-pressed="true"] {
    background: rgba(35, 72, 56, .12);
    border-color: var(--green);
    font-weight: 600;
}

:root[data-theme="dark"] .a11y-size-btn[aria-pressed="true"] {
    background: rgba(216, 181, 111, .15);
}

.a11y-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
    padding: .6rem .75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font-size: .88rem;
    color: var(--ink);
    text-align: left;
    transition: background .1s, border-color .1s;
}

.a11y-toggle::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 18px;
    border-radius: 9px;
    background: var(--line);
    flex-shrink: 0;
    transition: background .15s;
}

.a11y-toggle[aria-pressed="true"] {
    background: rgba(35, 72, 56, .1);
    border-color: var(--green);
}

.a11y-toggle[aria-pressed="true"]::after {
    background: var(--green);
}

:root[data-theme="dark"] .a11y-toggle[aria-pressed="true"] {
    background: rgba(216, 181, 111, .12);
}

.a11y-float__footer {
    padding: .6rem 1rem .85rem;
    border-top: 1px solid var(--line);
}

.a11y-reset {
    width: 100%;
    padding: .45rem;
    background: none;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font-size: .82rem;
    color: var(--ink-soft);
    transition: color .1s, border-color .1s;
}

.a11y-reset:hover {
    color: var(--ink);
    border-color: var(--ink-soft);
}

@media (max-width: 580px) {
    .a11y-float {
        bottom: 1rem;
        left: 1rem;
    }

    .a11y-float__drawer {
        width: calc(100vw - 2rem);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Accessibility override states
   ═══════════════════════════════════════════════════════════════════════════ */

html[data-a11y-text="large"] {
    font-size: 112.5%;
}

html[data-a11y-text="larger"] {
    font-size: 131.25%;
}

html[data-a11y-spacing] p,
html[data-a11y-spacing] li,
html[data-a11y-spacing] td,
html[data-a11y-spacing] th,
html[data-a11y-spacing] label {
    line-height: 1.95 !important;
    letter-spacing: 0.04em !important;
    word-spacing: 0.1em !important;
}

html[data-a11y-contrast],
html[data-a11y-contrast][data-theme="dark"],
html[data-a11y-contrast][data-theme="light"] {
    --ink: #000000;
    --ink-soft: #111111;
    --paper: #ffffff;
    --paper-deep: #f0f0f0;
    --white: #ffffff;
    --line: #000000;
    --green: #004d00;
    --green-deep: #002800;
    --gold: #7a5200;
    --rose: #8b0000;
    --panel: #f5f5f5;
    --panel-soft: #e8e8e8;
    --on-dark: #ffffff;
    --on-dark-soft: #f0f0f0;
    --shadow: 0 4px 12px rgba(0, 0, 0, .45);
}

html[data-a11y-motion] *,
html[data-a11y-motion] *::before,
html[data-a11y-motion] *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

html[data-a11y-font] body,
html[data-a11y-font] p,
html[data-a11y-font] li,
html[data-a11y-font] td,
html[data-a11y-font] th,
html[data-a11y-font] label,
html[data-a11y-font] input,
html[data-a11y-font] button,
html[data-a11y-font] h1,
html[data-a11y-font] h2,
html[data-a11y-font] h3,
html[data-a11y-font] h4,
html[data-a11y-font] h5,
html[data-a11y-font] h6 {
    font-family: 'Atkinson Hyperlegible', sans-serif !important;
}

html[data-a11y-links] a {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

/* ── Footer accessibility statement ──────────────────────────────────────── */

.site-footer__statement {
    border-bottom: 1px solid rgba(255, 253, 248, .1);
    padding: 2.5rem 0;
}

.site-footer__statement h2 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--on-dark);
    margin: 0 0 .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.site-footer__statement p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.8;
    color: var(--on-dark-soft);
    max-width: 860px;
}

/* Accessibility report page */

.access-report-hero {
    background:
        linear-gradient(135deg, rgba(20, 45, 36, .96), rgba(8, 16, 26, .96)),
        radial-gradient(circle at 80% 20%, rgba(224, 182, 111, .22), transparent 34%);
    color: var(--on-dark);
    border-bottom: 1px solid rgba(255, 253, 248, .12);
}

.access-report-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.access-report-hero h1,
.access-report-heading h2,
.access-report-copy h2,
.access-report-contact h2 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    letter-spacing: 0;
}

.access-report-hero h1 {
    max-width: 780px;
    font-size: clamp(2.2rem, 5vw, 4.9rem);
    line-height: 1.03;
}

.access-report-hero__lede {
    max-width: 720px;
    margin: 1.25rem 0 0;
    color: var(--on-dark-soft);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.access-score-card {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 2rem;
    text-align: center;
    background: rgba(255, 253, 248, .08);
    border: 1px solid rgba(224, 182, 111, .7);
    border-radius: 8px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .3);
}

.access-score-card__score {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(4.5rem, 9vw, 7rem);
    line-height: .9;
    color: var(--gold);
}

.access-score-card__label {
    display: block;
    margin-top: .8rem;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.access-score-card__meta {
    display: block;
    color: var(--on-dark-soft);
    font-size: .88rem;
}

.access-statement {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
}

.access-statement__inner {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.access-statement h2 {
    margin: 0 0 1rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.access-statement p {
    max-width: 940px;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    line-height: 1.85;
}

.access-statement__note {
    margin-top: 1.25rem !important;
    padding: 1rem 1.15rem;
    border-left: 4px solid var(--gold);
    background: var(--paper-deep);
    color: var(--ink) !important;
    font-weight: 600;
}

.access-testing-note {
    margin-top: 1rem !important;
    padding: 1rem 1.15rem;
    background: rgba(169, 121, 50, .1);
    border: 1px solid rgba(169, 121, 50, .32);
    border-radius: 8px;
}

.access-testing-note strong {
    color: var(--green);
}

.access-report-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.access-report-section--soft {
    background: var(--paper-deep);
    border-block: 1px solid var(--line);
}

.access-report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.access-report-summary article,
.access-video-card,
.access-check-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.access-report-summary article {
    padding: 1.4rem;
}

.access-report-summary span {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2.8rem;
    line-height: 1;
    color: var(--green);
}

.access-report-summary h2,
.access-video-card h3,
.access-check-card h3 {
    margin: .7rem 0 .45rem;
    font-size: 1.05rem;
    line-height: 1.25;
}

.access-report-summary p,
.access-video-card p,
.access-check-card p,
.access-report-heading p,
.access-report-copy p,
.access-report-contact p {
    color: var(--ink-soft);
}

.access-report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
}

.access-report-copy h2,
.access-report-heading h2,
.access-report-contact h2 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.1;
}

.access-video-card {
    padding: 1.5rem;
    border-left: 4px solid var(--gold);
}

.access-video-card code {
    padding: .1rem .3rem;
    border-radius: 4px;
    background: var(--paper-deep);
}

.access-report-heading {
    max-width: 780px;
    margin-bottom: 1.5rem;
}

.access-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.access-check-card {
    padding: 1.25rem;
}

.access-check-card > span {
    display: inline-flex;
    margin-bottom: .5rem;
    padding: .2rem .5rem;
    border-radius: 4px;
    background: rgba(169, 121, 50, .14);
    color: var(--green);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.access-passed-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.access-passed-list li {
    position: relative;
    padding: .85rem .95rem .85rem 2.35rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink-soft);
}

.access-passed-list li::before {
    content: "";
    position: absolute;
    left: .9rem;
    top: 1.18rem;
    width: .65rem;
    height: .35rem;
    border-left: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    transform: rotate(-45deg);
}

.access-report-contact {
    background: var(--green-deep);
    color: var(--on-dark);
}

.access-report-contact__inner {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.access-report-contact p {
    max-width: 760px;
    color: var(--on-dark-soft);
}

@media (max-width: 820px) {
    .access-report-hero__grid,
    .access-report-grid,
    .access-report-summary,
    .access-check-grid,
    .access-passed-list {
        grid-template-columns: 1fr;
    }

    .access-score-card {
        min-height: auto;
    }

    .access-report-contact__inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ────────────────────────────────────────────────────────────────────────
   Headquarters page (/headquarters) + Grand Nationals page (/grand-nationals)
   ──────────────────────────────────────────────────────────────────────── */

.hq-hero,
.gn-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--green-deep);
    color: var(--on-dark);
}

.hq-hero__media,
.gn-hero__media {
    position: absolute;
    inset: 0;
    margin: 0;
}

.hq-hero__media img,
.gn-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hq-hero__shade,
.gn-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 17, 29, .35) 0%, rgba(9, 17, 29, .15) 35%, rgba(9, 17, 29, .85) 100%);
}

.hq-hero__inner,
.gn-hero__inner {
    position: relative;
    z-index: 2;
    padding: 6rem 0 3rem;
    max-width: 820px;
}

.hq-hero .eyebrow,
.gn-hero .eyebrow {
    color: var(--gold);
    border-color: rgba(169, 121, 50, .55);
    background: rgba(169, 121, 50, .18);
}

.hq-hero h1,
.gn-hero h1 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.85rem);
    color: var(--on-dark);
    margin: .65rem 0 1rem;
    letter-spacing: -.005em;
    line-height: 1.05;
}

.hq-hero__lede,
.gn-hero__lede {
    color: rgba(255, 253, 248, .9);
    font-size: 1.08rem;
    max-width: 680px;
    line-height: 1.55;
    margin: 0 0 1.6rem;
}

.hq-hero__actions,
.gn-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.hq-hero__actions .button--secondary,
.gn-hero__actions .button--secondary {
    background: rgba(255, 253, 248, .08);
    border-color: rgba(255, 253, 248, .35);
    color: var(--on-dark);
}

.hq-hero__actions .button--secondary:hover,
.gn-hero__actions .button--secondary:hover {
    background: rgba(255, 253, 248, .18);
    border-color: var(--on-dark);
}

.hq-section {
    padding: 3.5rem 0;
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

.hq-section + .hq-section {
    padding-top: 0;
}

.hq-prose {
    max-width: 720px;
}

.hq-prose .eyebrow {
    margin-bottom: .35rem;
}

.hq-prose h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    margin: 0 0 1rem;
    color: var(--ink);
    line-height: 1.2;
}

.hq-prose p {
    color: var(--ink);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0 0 1rem;
}

.hq-prose p:last-child {
    margin-bottom: 0;
}

.hq-photo {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--panel);
}

.hq-photo--wide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.hq-photo figcaption {
    padding: .65rem 1rem;
    font-size: .85rem;
    color: var(--ink-soft);
    font-style: italic;
    border-top: 1px solid var(--line);
    background: var(--panel-soft);
}

.hq-pullquote-band {
    background: var(--green-deep);
    color: var(--on-dark);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 253, 248, .08);
    border-bottom: 1px solid rgba(255, 253, 248, .08);
    margin: 2rem 0;
}

.hq-pullquote {
    margin: 0 auto;
    max-width: 820px;
    text-align: center;
    border: none;
    padding: 0;
}

.hq-pullquote p {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    line-height: 1.4;
    color: var(--on-dark);
    margin: 0 0 1.25rem;
    font-style: italic;
    position: relative;
    padding: 0 1rem;
}

.hq-pullquote p::before {
    content: "\201C";
    position: absolute;
    left: -1.5rem;
    top: -1rem;
    font-size: 5rem;
    color: var(--gold);
    opacity: .35;
    line-height: 1;
}

.hq-pullquote cite {
    display: block;
    font-style: normal;
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
}

.hq-cta {
    background: var(--panel-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 3.5rem 0;
    margin-top: 2rem;
}

.hq-cta__inner {
    max-width: 720px;
    text-align: center;
}

.hq-cta .eyebrow {
    margin: 0 auto .5rem;
}

.hq-cta h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    color: var(--ink);
    margin: 0 0 1rem;
    line-height: 1.2;
}

.hq-cta p {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.gn-section {
    padding: 3.5rem 0;
}

.gn-intro {
    max-width: 760px;
}

.gn-intro h2,
.gn-eligibility__heading h2,
.gn-categories__heading h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    color: var(--ink);
    line-height: 1.2;
    margin: .35rem 0 1rem;
}

.gn-intro p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 1rem;
}

.gn-intro p:last-child {
    margin-bottom: 0;
}

.gn-eligibility {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: start;
}

.gn-eligibility__heading p {
    color: var(--ink-soft);
}

.gn-eligibility__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.gn-eligibility__list li {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 6px;
    background: var(--panel);
    color: var(--ink);
    line-height: 1.55;
}

.gn-eligibility__list strong {
    display: block;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: .25rem;
}

.gn-eligibility__note {
    grid-column: 1 / -1;
    color: var(--ink-soft);
    font-size: .92rem;
    margin: .5rem 0 0;
    line-height: 1.55;
    font-style: italic;
}

/* ── Grand Nationals — tiered awards layout ──────────────────────────── */

.gn-awards-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.gn-awards-heading {
    max-width: 760px;
    margin: 0 0 2.5rem;
}

.gn-awards-heading h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    color: var(--ink);
    line-height: 1.2;
    margin: .35rem 0 .85rem;
}

.gn-awards-heading__lede {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.gn-tier {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}

.gn-tier:first-of-type {
    border-top: none;
    padding-top: 0;
}

.gn-tier__label {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: .75rem;
    align-items: center;
    position: sticky;
    top: 110px;
}

.gn-tier__num {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--green);
    color: var(--on-dark);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.gn-tier__name {
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.25;
}

.gn-tier__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.gn-award {
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-top: 4px solid var(--green);
    background: var(--panel);
    border-radius: 0 0 6px 6px;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}

.gn-award:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(35, 72, 56, .08);
}

.gn-award--canine {
    border-top-color: var(--green);
}

.gn-award--feline {
    border-top-color: var(--rose);
}

.gn-award--open {
    border-top-color: var(--gold);
}

.gn-award--honor {
    border-top-color: var(--ink-soft);
}

/* Certificate-style species nameplate — gold rule, serif small-caps */
.gn-award__species {
    display: inline-block;
    margin: 0 0 .9rem;
    padding: .4rem 1rem .35rem;
    background: linear-gradient(180deg, rgba(169, 121, 50, .16), rgba(169, 121, 50, .05));
    color: var(--gold);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    border: 1px solid rgba(169, 121, 50, .55);
    border-radius: 2px;
    box-shadow: inset 0 0 0 3px rgba(255, 253, 248, .04);
}

.gn-award h3 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.15rem;
    color: var(--ink);
    margin: 0 0 .6rem;
    line-height: 1.3;
}

.gn-award p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .93rem;
    line-height: 1.6;
}

/* ── The Crown Award (National Best in Show) ─────────────────────────── */

.gn-crown {
    margin: 2.5rem 0 0;
    padding: 2rem 2.5rem 2.5rem 2rem;
    background:
        radial-gradient(circle at top right, rgba(169, 121, 50, .18), transparent 60%),
        var(--green-deep);
    color: var(--on-dark);
    border-radius: 10px;
    border: 1px solid rgba(169, 121, 50, .55);
    border-top: 4px solid var(--gold);
    position: relative;
    overflow: hidden;
}

.gn-crown::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(169, 121, 50, .12), transparent 70%);
    pointer-events: none;
}

.gn-crown__eyebrow {
    color: var(--gold);
    border-color: rgba(169, 121, 50, .55);
    background: rgba(169, 121, 50, .18);
    margin: 0 0 1.25rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.gn-crown__main {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.gn-crown__seal {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gn-crown__seal img {
    display: block;
    width: 100%;
    max-width: 140px;
    height: auto;
}

.gn-crown__body > *:first-child {
    margin-top: 0;
}

.gn-crown__body > *:last-child {
    margin-bottom: 0;
}

.gn-crown h3 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    color: var(--on-dark);
    margin: 0 0 .9rem;
    line-height: 1.2;
    letter-spacing: -.005em;
}

.gn-crown p {
    color: rgba(255, 253, 248, .9);
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    max-width: 62ch;
}

.gn-announce {
    background: var(--paper-deep);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 3.5rem 0;
    margin: 2rem 0;
}

.gn-announce__inner {
    max-width: 760px;
    text-align: center;
}

.gn-announce h2 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    color: var(--ink);
    margin: .35rem 0 1rem;
    line-height: 1.25;
}

.gn-announce p {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto 1rem;
    max-width: 620px;
}

.gn-announce__contact {
    margin-top: 1.25rem;
    font-size: .9rem;
    color: var(--ink-soft);
}

.gn-announce__contact a {
    color: var(--green);
    font-weight: 600;
}

@media (max-width: 820px) {
    .gn-eligibility {
        grid-template-columns: 1fr;
    }

    .hq-hero__inner,
    .gn-hero__inner {
        padding: 4rem 0 2.5rem;
    }

    .hq-hero,
    .gn-hero {
        min-height: 420px;
    }

    .hq-pullquote-band,
    .hq-cta,
    .gn-announce {
        padding: 2.5rem 0;
    }

    .gn-tier {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem 0;
    }

    .gn-tier__label {
        position: static;
    }

    .gn-crown {
        padding: 1.75rem 1.5rem 2rem;
    }

    .gn-crown__main {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .gn-crown__seal {
        justify-self: start;
    }

    .gn-crown__seal img {
        max-width: 110px;
    }
}

/* ────────────────────────────────────────────────────────────────────────
   Tier 2 Blackboard: sidebar type chips, prev/next nav, module landing,
   admin quick-preview form
   ──────────────────────────────────────────────────────────────────────── */

/* ── Sidebar item-type chips ─────────────────────────────────────────── */

.bb-coursemenu__lesson {
    grid-template-columns: 22px 28px minmax(0, 1fr) auto;
    gap: .4rem;
}

.bb-coursemenu__type {
    flex-shrink: 0;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .1rem .35rem;
    border-radius: 2px;
    background: var(--paper-deep);
    color: var(--ink-soft);
    line-height: 1.4;
    white-space: nowrap;
}

.bb-coursemenu__type--quiz {
    background: rgba(35, 72, 56, .12);
    color: var(--green);
}

.bb-coursemenu__type--text {
    background: rgba(58, 80, 69, .10);
    color: var(--ink-soft);
}

.bb-coursemenu__type--written-submission {
    background: rgba(169, 121, 50, .15);
    color: var(--gold);
}

.bb-coursemenu__type--video-submission,
.bb-coursemenu__type--photo-submission {
    background: rgba(140, 63, 67, .12);
    color: var(--rose);
}

.bb-coursemenu__type--live-demonstration {
    background: rgba(169, 121, 50, .18);
    color: var(--gold);
}

.bb-coursemenu__lesson.is-current .bb-coursemenu__type {
    background: rgba(35, 72, 56, .18);
    color: var(--green);
}

/* ── Previous / Next lesson navigation ───────────────────────────────── */

.bb-prevnext {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2.5rem 0 .5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
}

.bb-prevnext__item {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.bb-prevnext__item--next {
    text-align: right;
}

.bb-prevnext__item--beacon {
    position: relative;
    border-color: rgba(196, 154, 60, .78);
    box-shadow: 0 0 0 0 rgba(196, 154, 60, .34), 0 12px 28px rgba(35, 72, 56, .12);
    animation: lesson-next-beacon 1.9s ease-in-out infinite;
}

.bb-prevnext__item--beacon::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(196, 154, 60, .58);
    border-radius: 12px;
    pointer-events: none;
    animation: lesson-next-ring 1.9s ease-in-out infinite;
}

.bb-prevnext__item--placeholder {
    border: 1px dashed var(--line);
    background: transparent;
    opacity: .3;
}

.bb-prevnext__item:not(.bb-prevnext__item--placeholder):hover {
    border-color: var(--green);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(35, 72, 56, .08);
}

.bb-prevnext__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.bb-prevnext__item:hover .bb-prevnext__label {
    color: var(--green);
}

.bb-prevnext__title {
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
}

@keyframes lesson-next-beacon {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(196, 154, 60, .3), 0 12px 28px rgba(35, 72, 56, .12);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(196, 154, 60, .12), 0 14px 32px rgba(35, 72, 56, .17);
    }
}

@keyframes lesson-next-ring {
    0%, 100% {
        opacity: .42;
        transform: scale(.99);
    }
    50% {
        opacity: .95;
        transform: scale(1.025);
    }
}

/* ── Module landing page ─────────────────────────────────────────────── */

.bb-module-page {
    padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 4rem;
    max-width: 880px;
}

.bb-module-page__header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.bb-module-page__header h1 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.55rem, 3.2vw, 2.1rem);
    margin: .35rem 0 .75rem;
    line-height: 1.2;
    color: var(--ink);
}

.bb-module-page__progress {
    font-size: .85rem;
    color: var(--ink-soft);
    margin: 0 0 .4rem;
}

.bb-module-page__bar {
    height: 4px;
    border-radius: 2px;
    background: var(--paper-deep);
    overflow: hidden;
}

.bb-module-page__bar > span {
    display: block;
    height: 100%;
    background: var(--green);
    transition: width .25s ease;
}

.bb-module-page__lessons {
    display: grid;
    gap: .75rem;
}

.bb-module-page__empty {
    color: var(--ink-soft);
    font-style: italic;
    padding: 1.5rem;
    border: 1px dashed var(--line);
    border-radius: 6px;
    text-align: center;
    background: var(--panel-soft);
}

.bb-module-page__back {
    margin: 2.5rem 0 0;
    font-size: .92rem;
}

.bb-module-page__back a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.bb-module-page__back a:hover {
    color: var(--gold);
}

.bb-module-lesson {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.bb-module-lesson:hover {
    border-color: var(--green);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(35, 72, 56, .08);
}

.bb-module-lesson.is-locked {
    opacity: .55;
    cursor: not-allowed;
}

.bb-module-lesson.is-locked:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
}

.bb-module-lesson__pip {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-module-lesson__num {
    margin: 0 0 .25rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.bb-module-lesson__body h3 {
    margin: 0 0 .35rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.02rem;
    color: var(--ink);
    line-height: 1.35;
}

.bb-module-lesson__meta {
    margin: 0;
    display: flex;
    gap: .65rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--ink-soft);
}

.bb-module-lesson__minutes,
.bb-module-lesson__status {
    color: var(--ink-soft);
}

.bb-module-lesson__arrow {
    color: var(--green);
    font-size: 1.2rem;
    font-weight: 700;
}

/* ── Admin: quick-preview input on Curriculum Ops index ──────────────── */

.admin-quick-preview {
    margin-top: 1.25rem;
    display: flex;
    gap: .75rem;
    align-items: end;
    flex-wrap: wrap;
}

.admin-quick-preview label {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.admin-quick-preview label span {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.admin-quick-preview input[type="number"] {
    padding: .5rem .75rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    font-family: inherit;
    font-size: .95rem;
    min-width: 140px;
    width: 160px;
}

.admin-quick-preview input[type="number"]:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(35, 72, 56, .12);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 720px) {
    .bb-prevnext {
        grid-template-columns: 1fr;
    }
    .bb-prevnext__item--placeholder {
        display: none;
    }
    .bb-prevnext__item--next {
        text-align: left;
    }
    .bb-module-lesson {
        grid-template-columns: 28px minmax(0, 1fr);
    }
    .bb-module-lesson__arrow {
        display: none;
    }
}

/* ────────────────────────────────────────────────────────────────────────
   Industry Map (/industry-map)
   ──────────────────────────────────────────────────────────────────────── */

/* The industry map is a full-bleed interactive tool, not a content page.
   Suppress the global site footer (the "Accessibility at ACADA" statement
   plus the copyright/credentials block) on any page containing the map
   shell. The floating accessibility button stays in place because that
   one is an active user tool, not page chrome. */
body:has(.industry-map-shell) .site-footer,
body:has(.rc-page) .site-footer {
    display: none;
}

.industry-map-shell {
    position: relative;
    width: 100%;
    height: calc(100vh - 92px);
    min-height: 600px;
    overflow: hidden;
    background: #0a1320;
}

.industry-map__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0a1320;
}

.industry-map__panel {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 320px;
    max-width: calc(100vw - 40px);
    max-height: calc(100% - 40px);
    overflow-y: auto;
    padding: 1.25rem 1.4rem;
    background: rgba(14, 23, 36, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(169, 121, 50, 0.35);
    border-radius: 8px;
    color: #fff8ed;
    font-family: "Source Sans 3", Arial, sans-serif;
}

.industry-map__panel-header .eyebrow {
    color: var(--gold);
    border-color: rgba(169, 121, 50, 0.45);
    background: rgba(169, 121, 50, 0.18);
    margin: 0 0 .55rem;
}

.industry-map__panel-header h1 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.15rem;
    color: #fff8ed;
    margin: 0 0 .55rem;
    line-height: 1.2;
}

.industry-map__lede {
    font-size: .82rem;
    line-height: 1.5;
    color: rgba(255, 248, 237, 0.78);
    margin: 0 0 1rem;
}

/* ──────────────────────────────────────────────────────────
   Main panel tabs (Countries / Filter / About)
   Top-level navigation between the three concerns: data,
   controls, and editorial copy. Underlined-tab pattern uses
   the same visual language as the region segmented control,
   sized larger because this is primary navigation.
   ────────────────────────────────────────────────────────── */
.industry-map__tabs {
    display: flex;
    gap: 0;
    margin: .35rem -.4rem 1.1rem;
    padding: 0 .4rem;
    border-bottom: 1px solid rgba(255, 248, 237, 0.1);
}

.industry-map__tab {
    flex: 1;
    padding: .65rem .35rem .8rem;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: rgba(255, 248, 237, 0.55);
    font-family: inherit;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease;
    margin-bottom: -1px;
}

.industry-map__tab:hover {
    color: #fff8ed;
}

.industry-map__tab.is-active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.industry-map__tab:focus-visible {
    outline: 0;
    color: #fff8ed;
    border-bottom-color: rgba(169, 121, 50, 0.55);
}

.industry-map__tab-pane {
    animation: industry-map-fade .18s ease-out;
}

@keyframes industry-map-fade {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────────────────
   Prominent back button (returning from country focus).
   Lives at the top of the Countries pane. The earlier "tiny
   text link in the header row" was invisible to most users.
   This is a full pill with arrow and label, gold-tinted.
   ────────────────────────────────────────────────────────── */
.industry-map__back-button {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding: .65rem .85rem;
    margin-bottom: .9rem;
    background: rgba(169, 121, 50, 0.14);
    border: 1px solid rgba(169, 121, 50, 0.45);
    border-radius: 6px;
    color: #fff8ed;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: background .14s, border-color .14s;
}

.industry-map__back-button:hover,
.industry-map__back-button:focus-visible {
    background: rgba(169, 121, 50, 0.24);
    border-color: rgba(169, 121, 50, 0.7);
    outline: 0;
}

.industry-map__back-arrow {
    font-size: 1rem;
    line-height: 1;
    color: var(--gold);
}

.industry-map__back-label {
    flex: 1;
}

/* ──────────────────────────────────────────────────────────
   Filter pane section labels (Region / Map shows)
   ────────────────────────────────────────────────────────── */
.industry-map__filter-label {
    margin: 0 0 .55rem;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 248, 237, 0.48);
}

.industry-map__filter-label + .industry-map__region-tabs,
.industry-map__filter-label + .industry-map__toggles {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.industry-map__filter-footnote {
    margin: .25rem 0 0;
    padding-top: .85rem;
    border-top: 1px solid rgba(255, 248, 237, 0.07);
    font-size: .72rem;
    line-height: 1.5;
    font-style: italic;
    color: rgba(255, 248, 237, 0.5);
}

/* ──────────────────────────────────────────────────────────
   Focused-country card (replaces breakdown list when a
   single country is selected). Big flag, country name as
   editorial display type, two large stats side by side.
   ────────────────────────────────────────────────────────── */
.industry-map__focus-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-bottom: 1.1rem;
}

.industry-map__focus-flag.fi {
    display: inline-block;
    width: 2.4rem;
    height: 1.8rem;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    box-shadow:
        0 0 0 1px rgba(255, 248, 237, 0.12),
        0 3px 7px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.industry-map__focus-name {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff8ed;
    line-height: 1.1;
    letter-spacing: 0;
}

.industry-map__focus-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: .25rem 0;
}

/* Inline shop-type segmented control on the focused-country card.
   Sits between the flag/name header and the stat blocks. Compact
   pill-tray styling with the same colored swatches the Filter pane
   uses, so the legend reads consistently across both views. */
.industry-map__focus-types {
    display: flex;
    gap: .2rem;
    margin: 0 0 1rem;
    padding: .25rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 248, 237, 0.06);
    border-radius: 6px;
}

.industry-map__focus-type {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .5rem .35rem;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: rgba(255, 248, 237, 0.62);
    font-family: inherit;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.industry-map__focus-type:hover {
    color: #fff8ed;
    background: rgba(255, 248, 237, 0.04);
}

.industry-map__focus-type.is-active {
    background: rgba(169, 121, 50, 0.22);
    color: #fff8ed;
    box-shadow: inset 0 0 0 1px rgba(169, 121, 50, 0.4);
}

.industry-map__focus-type:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 1px var(--gold);
}

.industry-map__focus-type .industry-map__swatch {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
}

.industry-map__toggles {
    display: grid;
    gap: .4rem;
    margin-bottom: 1rem;
}

.industry-map__toggle {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    padding: .55rem .8rem;
    border: 1px solid rgba(255, 248, 237, 0.12);
    background: transparent;
    color: rgba(255, 248, 237, 0.7);
    font-family: inherit;
    font-size: .85rem;
    font-weight: 600;
    text-align: left;
    border-radius: 5px;
    cursor: pointer;
    transition: background .12s, color .12s, border-color .12s;
}

.industry-map__toggle:hover {
    background: rgba(255, 248, 237, 0.06);
    color: #fff8ed;
}

.industry-map__toggle.is-active {
    background: rgba(169, 121, 50, 0.22);
    border-color: rgba(169, 121, 50, 0.55);
    color: #fff8ed;
}

.industry-map__swatch {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
}

.industry-map__swatch--all    { background: var(--gold); }
.industry-map__swatch--brick  { background: #56a05f; }
.industry-map__swatch--mobile { background: #d8b56f; }

.industry-map__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: .65rem;
    padding: .85rem;
    margin-bottom: .9rem;
    border: 1px solid rgba(255, 248, 237, 0.1);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.18);
}

/* ── Region tabs: segmented control with gold underline ──── */
.industry-map__region-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.3rem;
    border-bottom: 1px solid rgba(255, 248, 237, 0.08);
}

.industry-map__region-tab {
    flex: 1;
    padding: .7rem .4rem .85rem;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    color: rgba(255, 248, 237, 0.5);
    font-family: inherit;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease;
    margin-bottom: -1px; /* overlap parent border-bottom */
}

.industry-map__region-tab:hover {
    color: #fff8ed;
}

.industry-map__region-tab.is-active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.industry-map__region-tab:focus-visible {
    outline: 0;
    color: #fff8ed;
    border-bottom-color: rgba(169, 121, 50, 0.55);
}

/* ──────────────────────────────────────────────────────────
   Country breakdown: now lives inside the Countries tab pane,
   so no outer box. The tab pane itself is the container.
   The old "BY COUNTRY" title row is gone (redundant with the
   active tab label), and the old tiny back-link is replaced
   by the prominent industry-map__back-button above.
   ────────────────────────────────────────────────────────── */
.industry-map__breakdown {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.industry-map__breakdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

/* ── Country row: flag · name · gold count, eyebrow below ── */
.industry-map__bd-row {
    display: grid;
    grid-template-columns: 2.1rem 1fr auto;
    grid-template-areas:
        "flag label locs"
        ".    admin admin";
    align-items: center;
    column-gap: .85rem;
    row-gap: .35rem;
    padding: .9rem 0 .85rem .4rem;
    border-radius: 0;
    border: 0;
    border-left: 2px solid transparent;
    border-bottom: 1px solid rgba(255, 248, 237, 0.045);
    margin-left: -.4rem;
    cursor: pointer;
    transition: background .15s ease, border-left-color .15s ease, padding-left .15s ease;
}

.industry-map__bd-row:last-child {
    border-bottom: 0;
}

.industry-map__bd-row:hover,
.industry-map__bd-row:focus-visible {
    background: linear-gradient(90deg, rgba(169,121,50,0.10), transparent 70%);
    border-left-color: var(--gold);
    outline: 0;
}

.industry-map__bd-row.is-empty {
    opacity: .42;
    cursor: default;
}

.industry-map__bd-row.is-empty:hover {
    background: transparent;
    border-left-color: transparent;
}

/* ── Flag spans: flag-icons CSS sprite (real SVG flags) ───── */
.industry-map__bd-flag {
    grid-area: flag;
    align-self: center;
}

/* When .fi (flag-icons) is applied, force a clean rectangular flag */
.industry-map__bd-flag.fi {
    display: inline-block;
    width: 1.9rem;
    height: 1.425rem;          /* 4:3 ratio */
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    box-shadow:
        0 0 0 1px rgba(255, 248, 237, 0.08),
        0 2px 4px rgba(0, 0, 0, 0.35);
}

/* Title-row flag (when a single country is focused), slightly smaller */
.industry-map__title-flag.fi {
    display: inline-block;
    width: 1.4rem;
    height: 1.05rem;
    background-size: cover;
    background-position: center;
    border-radius: 1.5px;
    margin-right: .55rem;
    vertical-align: -2px;
    box-shadow: 0 0 0 1px rgba(255, 248, 237, 0.1);
}

/* Editorial epigraph beneath the lede: quiet, italic, intentional */
.industry-map__epigraph {
    margin: -.4rem 0 1.1rem;
    padding-left: .85rem;
    border-left: 2px solid var(--gold);
    font-family: "Libre Baskerville", Georgia, serif;
    font-style: italic;
    font-size: .85rem;
    line-height: 1.5;
    color: rgba(255, 248, 237, 0.72);
}

.industry-map__bd-label {
    grid-area: label;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: .98rem;
    font-weight: 400;
    color: #fff8ed;
    line-height: 1.25;
    letter-spacing: 0;
}

.industry-map__bd-locs {
    grid-area: locs;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.45rem;
    color: var(--gold);
    line-height: 1;
    align-self: center;
    letter-spacing: -.01em;
}

.industry-map__bd-row.is-empty .industry-map__bd-locs {
    font-family: inherit;
    font-size: .62rem;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 248, 237, 0.5);
}

.industry-map__bd-admin {
    grid-area: admin;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 248, 237, 0.58);
    line-height: 1.4;
    margin-top: .15rem;
}

/* ── Focus state (clicked country): two large stats side-by-side ── */
/* Focus-state list item: stacks the focus-header and focus-stats
   children vertically (block layout), centered. The grid styling
   from the standard bd-row is overridden. */
.industry-map__bd-row--focus {
    display: block;
    grid-template-columns: none;
    grid-template-areas: none;
    cursor: default;
    padding: .25rem 0 1rem;
    border: 0;
    margin: 0;
    text-align: center;
}

.industry-map__bd-row--focus:hover {
    background: transparent;
    border-left-color: transparent;
}

/* Extras line (e.g., "+1 US territory") shown below focus stats */
.industry-map__bd-row--sub {
    padding: .9rem 0 .25rem;
    border-top: 1px solid rgba(255, 248, 237, 0.07);
    margin-top: .25rem;
}

.industry-map__bd-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
}

.industry-map__bd-stat strong {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.55rem;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -.01em;
}

.industry-map__bd-stat em {
    font-style: normal;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 248, 237, 0.5);
}

.industry-map__stat {
    text-align: center;
}

.industry-map__stat strong {
    display: inline-block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.45rem;
    color: var(--gold);
    line-height: 1.1;
}

.industry-map__stat small {
    font-size: .75rem;
    color: rgba(255, 248, 237, 0.55);
    margin-left: .25rem;
    vertical-align: top;
}

.industry-map__stat span {
    display: block;
    margin-top: .15rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 248, 237, 0.6);
}

.industry-map__loading {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem .75rem;
    margin-bottom: .85rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    font-size: .8rem;
    color: rgba(255, 248, 237, 0.78);
}

.industry-map__spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 248, 237, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: industry-map-spin .9s linear infinite;
}

@keyframes industry-map-spin {
    to { transform: rotate(360deg); }
}

.industry-map__notice {
    margin: 0;
    padding-top: .85rem;
    border-top: 1px solid rgba(255, 248, 237, 0.08);
    font-size: .75rem;
    line-height: 1.5;
    color: rgba(255, 248, 237, 0.6);
}

.industry-map__notice a {
    color: var(--gold);
    font-weight: 600;
}

@media (max-width: 720px) {
    .industry-map-shell {
        height: calc(100vh - 78px);
    }
    .industry-map__panel {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        max-height: 50%;
        border-radius: 0;
        border-width: 0 0 1px 0;
    }
    .industry-map__canvas {
        top: 50%;
        height: 50%;
        inset: auto 0 0 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   GATEWAY CARDS — six stakeholder entry cards on home page
   ═══════════════════════════════════════════════════════════════════════ */

.gateway-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2rem);
    scroll-margin-top: 92px;
}

.gateway-cards__header {
    grid-column: 1 / -1;
    text-align: center;
    padding-bottom: .75rem;
}

.gateway-cards__header h2 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 400;
    line-height: 1.25;
    color: #fff8ed;
}

.gateway-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 460px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background: #06101a;
    border-radius: 16px;
    border: 1px solid var(--gold);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.32);
    transition: transform .32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .32s ease, border-color .32s ease;
}

.gateway-card:hover,
.gateway-card:focus-visible {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--gold);
    outline: none;
}

.gateway-card__media {
    position: relative;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
}

.gateway-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.gateway-card:hover .gateway-card__media img,
.gateway-card:focus-visible .gateway-card__media img {
    transform: scale(1.06);
}

.gateway-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 26, .12) 0%, rgba(6, 16, 26, .68) 100%);
    pointer-events: none;
}

.gateway-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.gateway-card__placeholder svg {
    width: 58px;
    height: 58px;
    opacity: .15;
    fill: var(--gold);
}

.gateway-card__placeholder--salons   { background: linear-gradient(152deg, #061810 0%, #0c2b1a 55%, #061810 100%); }
.gateway-card__placeholder--mobile   { background: linear-gradient(152deg, #070d1e 0%, #0d1d36 55%, #070d1e 100%); }
.gateway-card__placeholder--pros     { background: linear-gradient(152deg, #0d1c10 0%, #172e1c 55%, #0d1c10 100%); }
.gateway-card__placeholder--future   { background: linear-gradient(152deg, #08121e 0%, #111f34 55%, #08121e 100%); }
.gateway-card__placeholder--standard { background: linear-gradient(152deg, #1a1308 0%, #2c2010 55%, #1a1308 100%); }
.gateway-card__placeholder--about    { background: linear-gradient(152deg, #0c1318 0%, #18262e 55%, #0c1318 100%); }

.gateway-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.65rem 1.75rem 2rem;
    background: linear-gradient(180deg, #07111a 0%, #050f18 100%);
    border-top: 1px solid rgba(169, 121, 50, .26);
}

.gateway-card__label {
    margin: 0 0 .55rem;
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .22em;
    line-height: 1.3;
    text-transform: uppercase;
    color: var(--gold);
}

.gateway-card__title {
    margin: 0 0 .35rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.3rem, 1.75vw, 1.65rem);
    font-weight: 700;
    line-height: 1.18;
    color: #fff8ed;
}

.gateway-card__sub {
    margin: 0 0 .85rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: .82rem;
    font-style: italic;
    color: rgba(255, 248, 237, .45);
    line-height: 1.35;
}

.gateway-card__teaser {
    flex: 1;
    margin: 0 0 1.35rem;
    font-size: .91rem;
    line-height: 1.62;
    color: rgba(255, 248, 237, .62);
}

.gateway-card__cta {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}

.gateway-card__arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.gateway-card:hover .gateway-card__arrow,
.gateway-card:focus-visible .gateway-card__arrow {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .gateway-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .gateway-cards {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .gateway-card__media {
        height: 200px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   STAKEHOLDER OUTREACH PAGES — shared components for
   /for-salons, /for-mobile, /for-professionals, /learning-center
   ═══════════════════════════════════════════════════════════════════════ */

.sp-hero {
    background: var(--green-deep);
    color: var(--on-dark);
    padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
    border-bottom: 1px solid rgba(169, 121, 50, .2);
}

.sp-hero .wrap {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 380px);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.sp-hero .eyebrow {
    background: linear-gradient(90deg, rgba(169, 121, 50, .24), rgba(169, 121, 50, .06));
    border-color: rgba(169, 121, 50, .4);
    color: var(--on-dark);
}

.sp-hero h1 {
    font-size: clamp(1.55rem, 2.8vw, 2.4rem);
    color: var(--on-dark);
    margin-top: .75rem;
}

.sp-hero .lede {
    color: var(--on-dark-soft);
    margin-top: 1.1rem;
    max-width: 620px;
    font-size: 1.15rem;
}

.sp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.sp-hero .button--primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #06101a;
}

.sp-hero .button--secondary {
    border-color: rgba(255, 248, 237, .4);
    color: var(--on-dark);
}

.sp-hero .button--secondary:hover {
    border-color: rgba(255, 248, 237, .7);
}

.sp-price-card {
    background: rgba(255, 248, 237, .06);
    border: 1px solid rgba(169, 121, 50, .38);
    padding: 1.85rem 1.6rem 1.75rem;
    align-self: start;
}

.sp-price-card__label {
    margin: 0 0 .65rem;
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
}

.sp-price-card__amount {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff8ed;
    line-height: 1;
    margin-bottom: .3rem;
}

.sp-price-card__period {
    font-size: .87rem;
    color: rgba(255, 248, 237, .55);
}

.sp-price-card__divider {
    margin: 1.2rem 0;
    border: none;
    border-top: 1px solid rgba(169, 121, 50, .22);
}

.sp-price-card__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-price-card__items li {
    position: relative;
    padding-left: 1.25rem;
    font-size: .87rem;
    color: rgba(255, 248, 237, .68);
    line-height: 1.55;
    margin-bottom: .55rem;
}

.sp-price-card__items li:last-child {
    margin-bottom: 0;
}

.sp-price-card__items li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ── Feature grid ──────────────────────────────────────────────────── */

.sp-features {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.sp-features__header {
    max-width: 580px;
    margin-bottom: 2.75rem;
}

.sp-features__header h2 {
    margin-top: .55rem;
}

.sp-features__header p {
    margin-top: .85rem;
    color: var(--ink-soft);
}

.sp-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.sp-feature {
    background: var(--panel);
    padding: 1.85rem 1.65rem 2rem;
}

.sp-feature__icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(169, 121, 50, .32);
    margin-bottom: 1.1rem;
    color: var(--gold);
    flex-shrink: 0;
}

.sp-feature__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sp-feature h3 {
    margin: 0 0 .5rem;
    font-size: 1.05rem;
}

.sp-feature p {
    margin: 0;
    font-size: .91rem;
    color: var(--ink-soft);
    line-height: 1.62;
}

@media (max-width: 780px) {
    .sp-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .sp-features__grid {
        grid-template-columns: 1fr;
    }
}

/* ── How it works ──────────────────────────────────────────────────── */

.sp-steps {
    background: var(--paper-deep);
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.sp-steps__header {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 3rem;
}

.sp-steps__header h2 {
    margin-top: .55rem;
}

.sp-steps__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.sp-step {
    background: var(--panel);
    padding: 2rem 1.75rem 2.25rem;
}

.sp-step__num {
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(169, 121, 50, .6);
    border-radius: 50%;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: .88rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.15rem;
}

.sp-step h3 {
    margin: 0 0 .55rem;
    font-size: 1.1rem;
}

.sp-step p {
    margin: 0;
    font-size: .92rem;
    color: var(--ink-soft);
    line-height: 1.62;
}

@media (max-width: 640px) {
    .sp-steps__row {
        grid-template-columns: 1fr;
    }
}

/* ── Stats band ──────────────────────────────────────────────────────── */

.sp-stats {
    background: var(--green-deep);
    color: var(--on-dark);
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.sp-stats .wrap {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.sp-stats__copy h2 {
    color: var(--on-dark);
    margin-top: .55rem;
}

.sp-stats__copy p {
    margin-top: .8rem;
    color: var(--on-dark-soft);
    font-size: .97rem;
    line-height: 1.65;
}

.sp-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(169, 121, 50, .15);
    border: 1px solid rgba(169, 121, 50, .15);
}

.sp-stat {
    background: var(--green-deep);
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.sp-stat__value {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: .5rem;
}

.sp-stat__label {
    font-size: .86rem;
    color: rgba(255, 248, 237, .58);
    line-height: 1.5;
}

@media (max-width: 780px) {
    .sp-stats .wrap {
        grid-template-columns: 1fr;
    }
    .sp-stats__grid {
        grid-template-columns: 1fr;
    }
}

/* ── CTA band ───────────────────────────────────────────────────────── */

.sp-cta {
    background: var(--green-deep);
    color: var(--on-dark);
    padding: clamp(3rem, 7vw, 5.5rem) 0;
    text-align: center;
    border-top: 1px solid rgba(169, 121, 50, .18);
}

.sp-cta__eyebrow {
    font-family: "Inter Tight", Arial, sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: .8rem;
}

.sp-cta h2 {
    color: var(--on-dark);
    max-width: 680px;
    margin: 0 auto .85rem;
}

.sp-cta p {
    max-width: 520px;
    margin: 0 auto 2rem;
    color: rgba(255, 248, 237, .65);
    font-size: .97rem;
}

.sp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: center;
}

.sp-cta .button--primary {
    background: var(--gold);
    border-color: var(--gold);
    color: #06101a;
}

.sp-cta .button--secondary {
    border-color: rgba(255, 248, 237, .38);
    color: var(--on-dark);
}

/* ── Mobile qualifying question ─────────────────────────────────────── */

.mobile-qualify {
    background: #06101a;
    border-bottom: 1px solid rgba(169, 121, 50, .22);
}

.mobile-qualify__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 140px;
}

.mobile-qualify__question {
    padding: 2rem 2rem 2rem;
    border-right: 1px solid rgba(169, 121, 50, .16);
}

.mobile-qualify__question p {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff8ed;
    margin: 0 0 .4rem;
}

.mobile-qualify__question small {
    font-size: .84rem;
    color: rgba(255, 248, 237, .45);
    line-height: 1.5;
}

.mobile-qualify__choices {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 2rem;
}

.mobile-qualify__btn-yes {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .72rem 1.4rem;
    background: rgba(169, 121, 50, .14);
    border: 1px solid rgba(169, 121, 50, .45);
    color: var(--gold);
    font-family: "Inter Tight", Arial, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease;
}

.mobile-qualify__btn-yes:hover {
    background: rgba(169, 121, 50, .28);
}

.mobile-qualify__btn-no {
    font-family: "Inter Tight", Arial, sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 248, 237, .45);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .18s ease;
}

.mobile-qualify__btn-no:hover {
    color: rgba(255, 248, 237, .8);
}

.mobile-qualify__redirect {
    display: none;
    margin: 0 2rem 2rem;
    padding: 1.4rem 1.5rem;
    background: rgba(169, 121, 50, .1);
    border-left: 3px solid var(--gold);
}

.mobile-qualify__redirect.is-visible {
    display: block;
}

.mobile-qualify__redirect p {
    margin: 0 0 1rem;
    font-size: .93rem;
    color: rgba(255, 248, 237, .72);
    line-height: 1.6;
}

.mobile-qualify__redirect a {
    color: var(--gold);
    font-weight: 700;
}

@media (max-width: 600px) {
    .mobile-qualify__inner {
        grid-template-columns: 1fr;
    }
    .mobile-qualify__question {
        border-right: none;
        border-bottom: 1px solid rgba(169, 121, 50, .16);
    }
}

/* ── Units advisory (4+ mobile units) ──────────────────────────────── */

.units-advisory {
    display: none;
    margin-top: .75rem;
    padding: .9rem 1.1rem;
    background: rgba(169, 121, 50, .1);
    border-left: 3px solid var(--gold);
    font-size: .87rem;
    color: var(--ink-soft);
    line-height: 1.58;
}

.units-advisory.is-visible {
    display: block;
}

/* ── Salon hero photo montage ─────────────────────────────────────────── */

.sp-hero-montage {
    position: relative;
    align-self: center;
    justify-self: end;
    height: 320px;
    width: 100%;
}

.sp-hero-montage__img,
.sp-hero-montage__ph {
    position: absolute;
    width: 235px;
    height: 180px;
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .55);
    border: 2px solid rgba(169, 121, 50, .2);
    object-fit: cover;
}

.sp-hero-montage__img:nth-child(1),
.sp-hero-montage__ph:nth-child(1) {
    top: 15px;
    left: 0;
    transform: rotate(-5deg);
    z-index: 1;
}

.sp-hero-montage__img:nth-child(2),
.sp-hero-montage__ph:nth-child(2) {
    top: 64px;
    left: 62px;
    transform: rotate(2.5deg);
    z-index: 2;
}

.sp-hero-montage__img:nth-child(3),
.sp-hero-montage__ph:nth-child(3) {
    top: 116px;
    left: 125px;
    transform: rotate(-1.5deg);
    z-index: 3;
}

.sp-hero-montage__ph {
    background: rgba(169, 121, 50, .1);
}

/* Decorative licensed grooming photos */

.decorative-photo-band {
    padding: clamp(1.75rem, 4vw, 3rem) 0;
    background: var(--paper);
}

.decorative-photo-band--soft {
    background: var(--paper-deep);
    border-block: 1px solid var(--line);
}

.decorative-photo-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(.8rem, 2vw, 1.25rem);
}

.decorative-photo-strip__item {
    position: relative;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--paper-deep);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.decorative-photo-strip__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.decorative-photo-strip--staggered .decorative-photo-strip__item:nth-child(2) {
    transform: translateY(1rem);
}

.about-photo-hero {
    position: relative;
    contain: layout paint;
    height: clamp(92px, 10vw, 138px);
    overflow: hidden;
    overflow-x: clip;
    max-width: 100%;
    background: #060606;
    border-block: 1px solid rgba(224, 182, 111, .42);
    box-shadow: inset 0 10px 0 #0d0d0d, inset 0 -10px 0 #0d0d0d;
}

.about-photo-hero::before,
.about-photo-hero::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    z-index: 2;
    height: 10px;
    background:
        repeating-linear-gradient(90deg, #fff8ed 0 10px, transparent 10px 24px);
    opacity: .72;
    pointer-events: none;
}

.about-photo-hero::before {
    top: 0;
}

.about-photo-hero::after {
    bottom: 0;
}

.about-photo-hero__track {
    position: absolute;
    inset: 12px auto 12px 0;
    display: flex;
    width: max-content;
    height: auto;
    animation: about-photo-hero-scroll 180s linear infinite;
}

.about-photo-hero img {
    display: block;
    width: clamp(126px, 15vw, 196px);
    height: 100%;
    object-fit: cover;
    flex: 0 0 auto;
    opacity: .96;
    border-inline: 4px solid #060606;
    background: #111;
}

@keyframes about-photo-hero-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .about-photo-hero__track {
        animation: none;
    }
}

@media (max-width: 820px) {
    .sp-hero-montage {
        height: 210px;
        justify-self: stretch;
        margin-top: .5rem;
        overflow: hidden;
        border: 1px solid rgba(169, 121, 50, .24);
        border-radius: 8px;
        box-shadow: 0 10px 32px rgba(0, 0, 0, .35);
    }

    .sp-hero-montage__img,
    .sp-hero-montage__ph {
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none !important;
    }

    .sp-hero-montage__img:nth-child(n+2),
    .sp-hero-montage__ph:nth-child(n+2) {
        display: none;
    }
}

@media (max-width: 680px) {
    .decorative-photo-strip {
        grid-template-columns: 1fr;
    }

    .decorative-photo-strip__item {
        aspect-ratio: 16 / 10;
    }

    .decorative-photo-strip--staggered .decorative-photo-strip__item:nth-child(2) {
        transform: none;
    }
}

/* ── Mobile qualify cards ────────────────────────────────────────────── */

.mobile-qualify-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.mobile-qualify-card {
    display: block;
    text-align: left;
    padding: 1.4rem 1.5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
    font-size: 1rem;
}

.mobile-qualify-card:hover,
.mobile-qualify-card:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
    outline: none;
}

.mobile-qualify-card strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-dark);
    margin-bottom: .5rem;
}

.mobile-qualify-card p {
    margin: 0;
    font-size: .875rem;
    color: var(--ink-soft);
    line-height: 1.55;
}

@media (max-width: 620px) {
    .mobile-qualify-cards {
        grid-template-columns: 1fr;
    }
}

/* ── Learning center journey ─────────────────────────────────────────── */

.lc-journey {
    background: var(--paper-deep);
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.lc-journey__heading {
    text-align: center;
    max-width: 580px;
    margin: 0 auto 52px;
}

.lc-journey__heading h2 {
    margin-top: .55rem;
}

.lc-journey__sub {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-top: .5rem;
}

/* ── Hero responsive ─────────────────────────────────────────────────── */

@media (max-width: 820px) {
    .sp-hero .wrap {
        grid-template-columns: 1fr;
    }
    .sp-price-card {
        max-width: 360px;
    }
}

.quiz-correction-panel {
    scroll-margin-top: 7rem;
}

.quiz-correction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}

#lesson-review,
#quiz-correction {
    scroll-margin-top: 7rem;
}

/* The Daily Pet */
.daily-pet-paper {
    padding: clamp(.25rem, .9vw, .65rem) 0 clamp(2.25rem, 5.5vw, 4rem);
    background: #f7f0df;
    color: #211b14;
}
.daily-pet-paper__header {
    display: grid;
    justify-items: center;
    gap: .2rem;
    padding-bottom: .35rem;
    border-bottom: 4px double #211b14;
    text-align: center;
}
.daily-pet-paper__logo {
    display: block;
    width: min(980px, 100%);
    max-height: clamp(210px, 24vw, 330px);
    object-fit: contain;
}
.daily-pet-paper__header .eyebrow,
.daily-pet-editor-note .eyebrow {
    color: #211b14;
    border-color: rgba(169, 121, 50, .42);
    background: linear-gradient(90deg, rgba(169, 121, 50, .18), rgba(169, 121, 50, .05));
    margin-bottom: .25rem;
}
.daily-pet-paper__header .eyebrow::before,
.daily-pet-editor-note .eyebrow::before {
    background-color: #fffaf0;
}
.daily-pet-paper__date {
    margin: 0;
    color: rgba(33,27,20,.72);
    font-family: "Inter Tight", Arial, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.daily-pet-paper__edition {
    display: grid;
    justify-items: center;
    gap: .1rem;
}
.daily-pet-paper__edition > p:last-child {
    margin: 0;
    color: rgba(33,27,20,.72);
    font-family: "Inter Tight", Arial, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.35;
    text-transform: uppercase;
}
.daily-pet-today {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr);
    gap: 1.4rem;
    align-items: start;
    margin-top: 1.5rem;
}
.daily-pet-issue {
    padding: 1rem;
    border: 1px solid rgba(33,27,20,.35);
    background: rgba(255,255,255,.28);
}
.daily-pet-issue--lead {
    border-width: 2px;
}
.daily-pet-issue header {
    padding-bottom: .8rem;
    border-bottom: 1px solid rgba(33,27,20,.35);
    margin-bottom: .9rem;
}
.daily-pet-issue header p,
.daily-pet-issue header span {
    margin: 0;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(33,27,20,.7);
}
.daily-pet-issue h2 {
    margin: .25rem 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    line-height: 1.08;
    color: #211b14;
}
.daily-pet-column {
    padding: .85rem 0;
    border-bottom: 1px solid rgba(33,27,20,.22);
}
.daily-pet-column:last-child {
    border-bottom: 0;
}
.daily-pet-column__kicker {
    margin: 0 0 .55rem;
    color: #211b14;
    font-size: .78rem;
    letter-spacing: 0;
    text-transform: none;
}
.daily-pet-column__kicker::before {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
    background-size: 1.15rem 1.15rem;
}
.daily-pet-column h3 {
    margin: 0 0 .4rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.2;
    color: #211b14;
}
.daily-pet-column p:not(.daily-pet-column__kicker) {
    margin: 0;
    font-family: Georgia, serif;
    font-size: .94rem;
    line-height: 1.55;
}
.daily-pet-column aside {
    margin-top: .55rem;
    padding-left: .65rem;
    border-left: 3px solid rgba(138,91,19,.45);
    font-size: .82rem;
    font-style: italic;
    color: rgba(33,27,20,.78);
}
.daily-pet-editor-note {
    padding: 1rem;
    border: 2px solid rgba(33,27,20,.42);
    background: rgba(255,255,255,.4);
}
.daily-pet-editor-note img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(33,27,20,.28);
    margin-bottom: 1rem;
}
.daily-pet-editor-note h2 {
    margin: .25rem 0 .65rem;
    font-family: "Libre Baskerville", Georgia, serif;
    color: #211b14;
    font-size: 1.35rem;
    line-height: 1.12;
}
.daily-pet-editor-note p:not(.eyebrow) {
    margin: 0;
    font-family: Georgia, serif;
    color: #211b14;
    font-size: .96rem;
    line-height: 1.55;
}
.daily-pet-editor-note__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
}
.daily-pet-editor-note__actions .button--secondary {
    color: #211b14;
    border-color: rgba(33,27,20,.35);
}
.daily-pet-member-band {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--green-deep);
    color: var(--on-dark);
}
.daily-pet-member-band .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr) auto;
    align-items: center;
    gap: 1.5rem;
}
.daily-pet-member-band h2 {
    margin: .25rem 0 0;
    color: var(--on-dark);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.daily-pet-member-band p {
    margin: 0;
    color: var(--on-dark-soft);
}
.daily-pet-member {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.daily-pet-member__head,
.daily-pet-business-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.daily-pet-member__head h1 {
    margin: .25rem 0 .4rem;
}
.daily-pet-member__head p,
.daily-pet-business-card p {
    max-width: 680px;
    margin: 0;
    color: var(--ink-soft);
}
.daily-pet-month-nav,
.daily-pet-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.daily-pet-tabs {
    margin: 1.5rem 0 1rem;
}
.daily-pet-tabs button {
    padding: .5rem .9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}
.daily-pet-tabs button.is-active {
    background: var(--green);
    border-color: var(--green);
    color: var(--paper);
}
.daily-pet-month {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .5rem;
}
.daily-pet-month__day,
.daily-pet-month__empty {
    min-height: 118px;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}
.daily-pet-month__empty {
    opacity: .35;
}
.daily-pet-month__day strong {
    display: block;
    margin-bottom: .5rem;
    font-family: "Inter Tight", sans-serif;
}
.daily-pet-month__day span {
    display: block;
    color: var(--ink);
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.25;
}
.daily-pet-month__day small {
    display: block;
    margin-top: .5rem;
    color: var(--ink-soft);
}
.daily-pet-member-issue {
    padding: 1.3rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    margin-bottom: 1rem;
}
.daily-pet-member-issue h2 {
    margin: .25rem 0 1rem;
}
.daily-pet-member-issue__ideas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.daily-pet-member-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 8px;
    background: var(--paper-deep);
}
.daily-pet-member-card--wellness { border-left-color: #5b8f61; }
.daily-pet-member-card--acada { border-left-color: var(--gold); }
.daily-pet-member-card--safety { border-left-color: #a34a4a; }
.daily-pet-member-card--seasonal { border-left-color: #8f6a36; }
.daily-pet-member-card--national { border-left-color: #6a5a9e; }
.daily-pet-member-card span {
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.daily-pet-member-card h3 {
    margin: .25rem 0 .6rem;
    font-size: 1rem;
}
.daily-pet-member-card p {
    font-size: .9rem;
    line-height: 1.5;
}
.daily-pet-hashtags {
    color: var(--green);
    font-weight: 700;
}
.daily-pet-member-card aside {
    padding-top: .75rem;
    border-top: 1px dashed var(--line);
    color: var(--ink-soft);
    font-size: .85rem;
}
.daily-pet-preview__notice {
    margin: 1.25rem 0 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(169, 121, 50, .38);
    border-radius: 8px;
    background: #fff8e9;
    color: #2a241c;
    font-size: .95rem;
    line-height: 1.5;
}
.daily-pet-month__day--sample {
    background:
        linear-gradient(145deg, rgba(255,255,255,.82), rgba(247,240,223,.72)),
        var(--panel);
}
.daily-pet-preview-issue {
    background: #fffaf0;
}
.daily-pet-preview-card {
    background: #fffdf7;
}
.daily-pet-preview-card__type {
    margin: 0 0 .45rem;
    color: #211b14;
    font-size: .76rem;
    letter-spacing: 0;
    text-transform: none;
}
.daily-pet-preview-card__type::before {
    width: 1.7rem;
    height: 1.7rem;
    flex-basis: 1.7rem;
    background-color: #fffaf0;
    background-size: 1.05rem 1.05rem;
}
.daily-pet-preview__cta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}
.daily-pet-admin-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.daily-pet-import-form,
.daily-pet-filter-form {
    display: flex;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}
.daily-pet-admin-note {
    margin: .75rem 0 0;
    color: var(--ink-soft);
    font-size: .88rem;
}
.daily-pet-admin-list,
.daily-pet-editor-list {
    display: grid;
    gap: 1rem;
}
.daily-pet-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}
.daily-pet-admin-row h3 {
    margin: .2rem 0 .35rem;
    font-size: 1rem;
}
.daily-pet-admin-row p:last-child {
    margin: 0;
    color: var(--ink-soft);
    font-size: .86rem;
}
.daily-pet-admin-row__meta {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.daily-pet-editor-card {
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}
.daily-pet-editor-card--inactive {
    opacity: .65;
}
.daily-pet-promo {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    background: var(--paper-deep);
}
.daily-pet-promo .wrap {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}
.daily-pet-promo__media {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    padding: .75rem;
    box-shadow: var(--shadow);
}
.daily-pet-promo__media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}
.daily-pet-promo__copy h2 {
    margin: .25rem 0 .8rem;
    font-size: clamp(1.6rem, 3.4vw, 2.45rem);
    line-height: 1.05;
}
.daily-pet-promo__copy > p:not(.eyebrow) {
    max-width: 720px;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
}
.daily-pet-promo blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--gold);
    background: var(--panel);
    color: var(--ink);
}
.daily-pet-promo blockquote p {
    margin: 0;
    font-family: Georgia, serif;
    font-size: .98rem;
    line-height: 1.55;
}
@media (max-width: 900px) {
    .daily-pet-today,
    .daily-pet-member-band .wrap,
    .daily-pet-promo .wrap,
    .daily-pet-admin-row {
        grid-template-columns: 1fr;
    }
    .daily-pet-member__head,
    .daily-pet-business-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .daily-pet-month {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .pp-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .pp-nav__links {
        width: 100%;
    }

    .pp-nav__controls {
        width: 100%;
        justify-content: flex-start;
    }

    .daily-pet-paper__logo {
        max-height: 190px;
    }
    .daily-pet-month {
        grid-template-columns: 1fr;
    }
    .daily-pet-month__empty {
        display: none;
    }
    .daily-pet-admin-summary {
        grid-template-columns: 1fr 1fr;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   PORTAPET — Components
   Appended to the ACADA design system base. Uses only ACADA design tokens.
   ══════════════════════════════════════════════════════════════════════ */

/* ── PortaPet site header ──────────────────────────────────────────── */
.pp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: background-color .18s ease, border-color .18s ease;
}

.pp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 72px;
}

.pp-nav__links {
    display: flex;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: .9rem;
    font-weight: 600;
}

.pp-nav__links a {
    display: inline-block;
    padding: .45rem .7rem;
    color: var(--ink);
    text-decoration: none;
    border-radius: 5px;
    transition: color .12s ease, background .12s ease;
}

.pp-nav__links a:hover {
    color: var(--green);
    background: var(--panel-soft);
}

.pp-nav__controls {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ── PortaPet hero ─────────────────────────────────────────────────── */
.pp-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 60svh;
    place-items: center;
    background: #0d1c14;
    color: var(--on-dark);
    overflow: hidden;
}

.pp-hero__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    opacity: .32;
    filter: saturate(.68) contrast(1.1);
    z-index: -1;
}

.pp-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(13, 28, 20, .18) 0%, rgba(13, 28, 20, .52) 55%, rgba(13, 28, 20, .92) 100%),
        radial-gradient(ellipse 70% 55% at 50% 40%, rgba(169, 121, 50, .18), transparent 65%);
}

.pp-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.pp-hero__kicker {
    display: inline-block;
    margin: 0 0 1.4rem;
    color: var(--gold);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    font-size: clamp(.7rem, 1.05vw, .86rem);
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.pp-hero h1 {
    max-width: 900px;
    margin: 0 auto;
    color: var(--on-dark);
    font-size: clamp(2.4rem, 6.5vw, 5.2rem);
    line-height: 1.05;
}

.pp-hero h1 em {
    font-style: normal;
    color: var(--gold);
}

.pp-hero__sub {
    max-width: 580px;
    margin: 1.7rem auto 0;
    color: rgba(255, 248, 237, .82);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.52;
}

.pp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    justify-content: center;
    margin-top: 2.4rem;
}

.pp-hero__actions .button {
    border-color: rgba(255, 248, 237, .4);
    background: rgba(13, 28, 20, .38);
    color: var(--on-dark);
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    letter-spacing: .06em;
    backdrop-filter: blur(8px);
}

.pp-hero__actions .button--primary {
    border-color: var(--gold);
    background: var(--gold);
    color: #060e0a;
}

/* ── Strip wrapper ─────────────────────────────────────────────────── */
.pp-strip {
    padding: clamp(52px, 8vw, 96px) 0;
}

.pp-strip--tinted {
    background: var(--paper-deep);
}

.pp-strip--dark {
    background: var(--green-deep);
    color: var(--on-dark);
}

.pp-strip__heading {
    max-width: 720px;
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.pp-strip__heading h2 {
    margin-bottom: .6rem;
}

.pp-strip__heading p {
    color: var(--ink-soft);
    font-size: 1.1rem;
    margin: .5rem 0 0;
}

.pp-strip--dark .pp-strip__heading h2 {
    color: var(--on-dark);
}

.pp-strip--dark .pp-strip__heading p {
    color: var(--on-dark-soft);
}

/* ── Who uses PortaPet: audience grid ──────────────────────────────── */
.pp-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.pp-audience-card {
    padding: 1.65rem 1.4rem;
    background: var(--panel);
    display: grid;
    gap: .45rem;
    align-content: start;
}

.pp-audience-card__label {
    display: inline-block;
    color: var(--rose);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .1rem;
}

.pp-audience-card h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.25;
}

.pp-audience-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.58;
}

/* ── How it works: 3 steps ─────────────────────────────────────────── */
.pp-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.pp-step {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    background: var(--panel);
}

.pp-step__num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--green);
    color: var(--on-dark);
    font-size: .9rem;
    font-weight: 700;
    font-family: "Inter Tight", "Source Sans 3", Arial, sans-serif;
    margin-top: .1rem;
}

.pp-step__body h3 {
    margin: 0 0 .4rem;
    font-size: 1.05rem;
}

.pp-step__body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .94rem;
    line-height: 1.62;
}

/* ── Record demo: two-column split ─────────────────────────────────── */
.pp-record-demo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.pp-record-demo__copy h2 {
    margin-bottom: .9rem;
}

.pp-record-demo__copy p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 480px;
}

.pp-record-demo__copy .button {
    margin-top: 1.6rem;
}

/* ── PortaPet record card ───────────────────────────────────────────── */
.pp-record-card {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pp-record-card__header {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
}

.pp-record-card__photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--line);
    object-fit: cover;
    background: var(--panel-soft);
    display: block;
}

.pp-record-card__photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px dashed var(--line);
    background: var(--panel-soft);
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: .04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.pp-record-card__name {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.35rem;
    margin: 0 0 .15rem;
    line-height: 1.15;
    color: var(--ink);
}

.pp-record-card__breed {
    color: var(--ink-soft);
    font-size: .9rem;
    margin: 0;
    line-height: 1.4;
}

.pp-record-card__body {
    padding: 1.15rem 1.25rem;
    display: grid;
    gap: 0;
}

.pp-record-field {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: .35rem .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .93rem;
    align-items: baseline;
}

.pp-record-field:last-child {
    border-bottom: 0;
}

.pp-record-field dt {
    color: var(--ink-soft);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.45;
    padding-top: .05rem;
}

.pp-record-field dd {
    margin: 0;
    color: var(--ink);
    line-height: 1.45;
}

.pp-record-card__qr {
    padding: .95rem 1.25rem;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: .85rem;
    background: var(--paper-deep);
    font-size: .85rem;
    color: var(--ink-soft);
    line-height: 1.4;
}

.pp-record-card__qr-svg {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border: 1px solid var(--line);
    background: var(--white);
    display: grid;
    place-items: center;
    padding: 4px;
}

.pp-record-card__qr-svg svg {
    width: 100%;
    height: 100%;
}

/* ── Vaccination badge ─────────────────────────────────────────────── */
.pp-vax-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .65rem;
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
}

.pp-vax-badge::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pp-vax-badge--current {
    background: rgba(35, 72, 56, .1);
    color: var(--green);
    border: 1px solid rgba(35, 72, 56, .25);
}

.pp-vax-badge--current::before { background: var(--green); }

.pp-vax-badge--expiring {
    background: rgba(169, 121, 50, .1);
    color: var(--gold);
    border: 1px solid rgba(169, 121, 50, .28);
}

.pp-vax-badge--expiring::before { background: var(--gold); }

.pp-vax-badge--expired {
    background: rgba(140, 63, 67, .09);
    color: var(--rose);
    border: 1px solid rgba(140, 63, 67, .25);
}

.pp-vax-badge--expired::before { background: var(--rose); }

/* ── Privacy toggle ────────────────────────────────────────────────── */
.pp-privacy-section {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.pp-privacy-section__head {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
}

.pp-privacy-section__head h3 {
    margin: 0 0 .2rem;
    font-size: 1rem;
}

.pp-privacy-section__head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .88rem;
}

.pp-privacy-rows {
    padding: .5rem 1.35rem;
}

.pp-privacy-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
}

.pp-privacy-row:last-child {
    border-bottom: 0;
}

.pp-privacy-label strong {
    display: block;
    font-weight: 700;
    font-size: .95rem;
}

.pp-privacy-label small {
    color: var(--ink-soft);
    font-size: .85rem;
}

.pp-toggle-wrap {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.pp-toggle-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: .04em;
    text-transform: uppercase;
    min-width: 60px;
    text-align: right;
}

.pp-toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

.pp-toggle-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--ink-soft);
    transition: transform .18s ease, background .18s ease;
}

.pp-toggle-switch:checked,
.pp-toggle-switch.is-public {
    background: rgba(35, 72, 56, .15);
    border-color: var(--green);
}

.pp-toggle-switch:checked::after,
.pp-toggle-switch.is-public::after {
    background: var(--green);
    transform: translateX(20px);
}

/* ── Lost pet banner ───────────────────────────────────────────────── */
.pp-lost-banner {
    padding: 1.15rem 1.35rem;
    background: rgba(140, 63, 67, .09);
    border: 2px solid var(--rose);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pp-lost-banner__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--rose);
    flex-shrink: 0;
    animation: pp-pulse 1.5s ease-in-out infinite;
}

@keyframes pp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(1.25); }
}

.pp-lost-banner__text {
    font-weight: 700;
    color: var(--rose);
    font-size: 1rem;
    line-height: 1.4;
}

.pp-lost-banner__text small {
    display: block;
    font-weight: 400;
    color: var(--ink-soft);
    font-size: .88rem;
    margin-top: .15rem;
}

/* ── Account dashboard: pet grid ──────────────────────────────────── */
.pp-pet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.pp-pet-tile {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: .9rem;
    align-items: center;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.pp-pet-tile:hover {
    border-color: var(--green);
    box-shadow: 0 6px 22px rgba(35, 72, 56, .14);
}

.pp-pet-tile__photo {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid var(--line);
    object-fit: cover;
    background: var(--panel-soft);
    display: block;
}

.pp-pet-tile__photo-placeholder {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px dashed var(--line);
    background: var(--panel-soft);
    display: grid;
    place-items: center;
    color: var(--ink-soft);
    font-size: .65rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pp-pet-tile__name {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 .15rem;
    line-height: 1.2;
    color: var(--ink);
}

.pp-pet-tile__meta {
    color: var(--ink-soft);
    font-size: .85rem;
    margin: 0;
    line-height: 1.4;
}

.pp-add-pet-tile {
    display: grid;
    place-items: center;
    min-height: 100px;
    padding: 1.5rem;
    border: 2px dashed var(--line);
    background: transparent;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 700;
    font-size: .95rem;
    transition: border-color .15s ease, color .15s ease;
    text-align: center;
}

.pp-add-pet-tile:hover {
    border-color: var(--green);
    color: var(--green);
}

/* ── Record edit form ────────────────────────────────────────────── */
.pp-form-section {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.pp-form-section__header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
    cursor: pointer;
    user-select: none;
}

.pp-form-section__title {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.pp-form-section__subtitle {
    margin: .15rem 0 0;
    color: var(--ink-soft);
    font-size: .85rem;
}

.pp-form-section__toggle {
    width: 24px;
    height: 24px;
    color: var(--ink-soft);
    transition: transform .2s ease;
    flex-shrink: 0;
}

.pp-form-section.is-collapsed .pp-form-section__toggle {
    transform: rotate(-90deg);
}

.pp-form-section__body {
    padding: 1.35rem;
    display: grid;
    gap: 1rem;
}

.pp-form-section__body--two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pp-form-section__body--three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pp-form-section.is-collapsed .pp-form-section__body {
    display: none;
}

.pp-field {
    display: grid;
    gap: .35rem;
}

.pp-field label {
    font-weight: 800;
    font-size: .87rem;
    color: var(--ink);
    line-height: 1.3;
}

.pp-field label small {
    display: block;
    font-weight: 400;
    color: var(--ink-soft);
    font-size: .82rem;
    margin-top: .1rem;
}

.pp-field input,
.pp-field select,
.pp-field textarea {
    min-height: 48px;
    padding: .72rem .9rem;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-size: .97rem;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.pp-field input:focus,
.pp-field select:focus,
.pp-field textarea:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.pp-field textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.55;
}

.pp-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%233c4941' d='M6 7 0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
    padding-right: 2.4rem;
    cursor: pointer;
}

.pp-field--radio-group,
.pp-field--check-group {
    display: grid;
    gap: .5rem;
}

.pp-field--radio-group label,
.pp-field--check-group label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

.pp-field--radio-group input,
.pp-field--check-group input {
    min-height: unset;
    width: auto;
    flex-shrink: 0;
}

.pp-field--span-2 {
    grid-column: span 2;
}

.pp-field--span-3 {
    grid-column: span 3;
}

/* ── Share / QR panel ──────────────────────────────────────────────── */
.pp-share-panel {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
}

.pp-share-panel h3 {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
}

.pp-share-panel p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .9rem;
}

.pp-share-panel__link-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .5rem;
    align-items: stretch;
}

.pp-share-link {
    padding: .68rem .95rem;
    border: 1px solid var(--line);
    background: var(--paper-deep);
    color: var(--ink-soft);
    font-size: .87rem;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* ── Photo drop zone ────────────────────────────────────────────────── */
.pp-drop-zone {
    padding: 2rem 1.5rem;
    border: 2px dashed var(--line);
    background: var(--paper-deep);
    text-align: center;
    color: var(--ink-soft);
    transition: border-color .15s ease, background .15s ease;
    cursor: pointer;
}

.pp-drop-zone.is-active {
    border-color: var(--gold);
    background: rgba(169, 121, 50, .05);
}

.pp-drop-zone p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.55;
}

.pp-drop-zone strong {
    color: var(--green);
}

.pp-photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: .5rem;
    margin-top: .85rem;
}

.pp-photo-thumb {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--panel-soft);
}

.pp-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pp-photo-thumb__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    background: rgba(17, 22, 20, .72);
    color: var(--on-dark);
    border: none;
    border-radius: 50%;
    font-size: .8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

/* ── Flash / alert bar ──────────────────────────────────────────────── */
.pp-alert {
    padding: .85rem 1.15rem;
    border-left: 4px solid var(--green);
    background: rgba(35, 72, 56, .08);
    color: var(--ink);
    font-size: .96rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.pp-alert--error {
    border-color: var(--rose);
    background: rgba(140, 63, 67, .07);
}

.pp-alert--warning {
    border-color: var(--gold);
    background: rgba(169, 121, 50, .07);
}

/* ── Photo-split section ─────────────────────────────────────────── */
.pp-photo-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: clamp(2rem, 5.5vw, 4.5rem);
    align-items: center;
}

.pp-photo-split--reverse {
    grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
}

.pp-photo-split__img {
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.pp-photo-split__img img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.pp-photo-split__copy h2 {
    margin-bottom: .85rem;
}

.pp-photo-split__copy p {
    color: var(--ink-soft);
    font-size: 1.04rem;
    line-height: 1.65;
}

.pp-photo-split__copy .button {
    margin-top: 1.5rem;
}

/* ── Collar / QR promo strip ────────────────────────────────────────── */
.pp-collar-strip {
    background: var(--green-deep);
    color: var(--on-dark);
    padding: clamp(48px, 7vw, 80px) 0;
}

.pp-collar-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.pp-collar-strip h2 {
    color: var(--on-dark);
    margin-bottom: .75rem;
}

.pp-collar-strip p {
    color: rgba(255, 248, 237, .82);
    font-size: 1.06rem;
    max-width: 600px;
    margin: 0 0 1.6rem;
}

.pp-collar-badge {
    width: 130px;
    height: 130px;
    border: 3px solid var(--gold);
    background: rgba(255, 253, 248, .06);
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--gold);
    flex-shrink: 0;
}

.pp-collar-badge__inner {
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.5;
}

/* ── Public record view ────────────────────────────────────────────── */
.pp-record-view {
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.pp-record-section {
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    margin-bottom: 1.1rem;
    overflow: hidden;
}

.pp-record-section__title {
    padding: .9rem 1.2rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: .95rem;
    font-weight: 700;
    margin: 0;
    color: var(--ink-soft);
    letter-spacing: .01em;
}

.pp-record-section__body {
    padding: 1rem 1.2rem;
}

.pp-dl {
    display: grid;
    gap: 0;
}

.pp-dl div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: .5rem .85rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.pp-dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.pp-dl dt {
    color: var(--ink-soft);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.45;
}

.pp-dl dd {
    margin: 0;
    font-size: .96rem;
    line-height: 1.5;
    color: var(--ink);
}

/* ── Vaccination table ───────────────────────────────────────────── */
.pp-vax-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .93rem;
}

.pp-vax-table th {
    text-align: left;
    padding: .55rem .7rem;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--line);
}

.pp-vax-table td {
    padding: .65rem .7rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.pp-vax-table tr:last-child td {
    border-bottom: 0;
}

/* ── Photo gallery on record ─────────────────────────────────────── */
.pp-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: .5rem;
}

.pp-gallery__item {
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid var(--line);
}

.pp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Auth forms (login / register) ──────────────────────────────── */
.pp-auth-wrap {
    min-height: 70svh;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 6vw, 4rem) 0;
}

.pp-auth-card {
    width: min(460px, 100%);
    border: 1px solid var(--line);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pp-auth-card__head {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper-deep);
}

.pp-auth-card__head h1 {
    font-size: 1.55rem;
    margin: 0 0 .25rem;
}

.pp-auth-card__head p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .92rem;
}

.pp-auth-card__body {
    padding: 1.75rem;
    display: grid;
    gap: 1.1rem;
}

.pp-auth-card__footer {
    padding: 1.1rem 1.75rem;
    border-top: 1px solid var(--line);
    background: var(--paper-deep);
    text-align: center;
    font-size: .9rem;
    color: var(--ink-soft);
}

.pp-auth-card__footer a {
    color: var(--green);
    font-weight: 700;
    text-decoration: none;
}

.pp-auth-card__footer a:hover {
    text-decoration: underline;
}

/* ── Dashboard layout ───────────────────────────────────────────── */
.pp-dashboard {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.pp-dashboard__head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pp-dashboard__head h1 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    margin: 0;
}

.pp-dashboard__head p {
    margin: .3rem 0 0;
    color: var(--ink-soft);
    font-size: .97rem;
}

/* ── Reminders / expiration alerts ─────────────────────────────── */
.pp-reminder-list {
    display: grid;
    gap: .6rem;
    margin-bottom: 2rem;
}

.pp-reminder {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.1rem;
    border: 1px solid rgba(169, 121, 50, .3);
    background: rgba(169, 121, 50, .06);
}

.pp-reminder__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
    flex-shrink: 0;
}

.pp-reminder__text {
    font-size: .92rem;
    color: var(--ink);
}

.pp-reminder__text strong {
    color: var(--gold);
}

/* ── Footer (minimal) ───────────────────────────────────────────── */
.pp-footer {
    border-top: 1px solid var(--line);
    background: var(--paper-deep);
    padding: 2rem 0;
    font-size: .88rem;
    color: var(--ink-soft);
}

.pp-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.pp-footer a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.pp-footer a:hover {
    text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .pp-audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-steps {
        grid-template-columns: 1fr;
        background: transparent;
        gap: .75rem;
        border: 0;
    }

    .pp-step {
        border: 1px solid var(--line);
    }

    .pp-record-demo {
        grid-template-columns: 1fr;
    }

    .pp-photo-split,
    .pp-photo-split--reverse {
        grid-template-columns: 1fr;
    }

    .pp-photo-split--reverse .pp-photo-split__img {
        order: -1;
    }

    .pp-collar-wrap {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pp-form-section__body--two-col {
        grid-template-columns: 1fr;
    }

    .pp-form-section__body--three-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-dl div {
        grid-template-columns: 120px 1fr;
    }

    .pp-dashboard__head {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .pp-audience-grid {
        grid-template-columns: 1fr;
    }

    .pp-pet-grid {
        grid-template-columns: 1fr;
    }

    .pp-dl div {
        grid-template-columns: 1fr;
        gap: .2rem;
    }

    .pp-dl dt {
        padding-top: .4rem;
    }

    .pp-share-panel__link-row {
        grid-template-columns: 1fr;
    }

    .pp-form-section__body--three-col {
        grid-template-columns: 1fr;
    }

    .pp-record-field {
        grid-template-columns: 1fr;
        gap: .15rem;
    }

    .pp-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Multi-photo grid ─────────────────────────────────────────────── */
.pp-photo-slot {
    position: relative;
}

.pp-photo-slot.is-empty {
    aspect-ratio: 1;
}

.pp-photo-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--green);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: .03em;
    text-transform: uppercase;
    pointer-events: none;
}

.pp-photo-actions {
    display: flex;
    gap: .3rem;
    margin-top: .4rem;
    flex-wrap: wrap;
}

.pp-photo-action {
    background: none;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: .75rem;
    cursor: pointer;
    color: var(--ink-soft);
    transition: border-color .15s, color .15s;
    font-family: inherit;
    line-height: 1.6;
}

.pp-photo-action:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.pp-photo-delete:hover {
    border-color: var(--rose);
    color: var(--rose);
}

.pp-drop-zone--compact {
    border: 1.5px dashed var(--line);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    background: transparent;
    transition: border-color .15s, background .15s;
}

.pp-drop-zone--compact:hover,
.pp-drop-zone--compact.is-active {
    border-color: var(--green);
    background: rgba(52, 211, 153, .04);
}

.pp-drop-zone--compact p {
    color: var(--ink-soft);
    line-height: 1.6;
}

#photo-upload-status {
    min-height: 1.2em;
}

/* Mobile: collapse to single column */
@media (max-width: 560px) {
    #pp-photo-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── Sticky header nav button override ─────────────────────────────── */
/* Prevent plain-link hover from overriding the gold-pulse button style */
.pp-nav__links a.button--gold-pulse:hover {
    background: var(--gold) !important;
    color: #fff !important;
}

/* ── Photo lightbox ─────────────────────────────────────────────────── */
#pp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#pp-lightbox.is-open {
    display: flex;
}
#pp-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 16, 26, .92);
    cursor: zoom-out;
}
#pp-lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    cursor: default;
}
#pp-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 2;
    background: rgba(255,248,237,.12);
    border: 1.5px solid rgba(255,248,237,.3);
    color: #fff8ed;
    font-size: 1.25rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: background .15s;
}
#pp-lightbox-close:hover {
    background: rgba(255,248,237,.25);
}
