:root {
    --ftcc-gold: #f0b82d;
    --ftcc-black: #000000;
    --ftcc-white: #ffffff;
    --ftcc-slate: #53565a;
    --ftcc-silver: #e2e1dd;
    --ftcc-blue: #4298b5;
    --ftcc-line: rgba(0, 0, 0, 0.12);
    --ftcc-line-soft: rgba(0, 0, 0, 0.06);
    --ftcc-surface-alt: #f6f6f4;
    --ftcc-card-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --site-width: min(1200px, calc(100vw - 2rem));
    --radius-sm: 0.35rem;
    --radius-md: 0.5rem;
    --focus-ring: 0 0 0 2px var(--ftcc-white), 0 0 0 4px var(--ftcc-blue);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "Source Sans 3", Arial, sans-serif;
    color: var(--ftcc-black);
    background: var(--ftcc-white);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--ftcc-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.masthead__inner,
.page-shell {
    width: var(--site-width);
    margin: 0 auto;
}

.masthead {
    background: var(--ftcc-white);
    border-bottom: 1px solid var(--ftcc-line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.masthead__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding: 0.5rem 1.25rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    color: var(--ftcc-black);
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: clamp(96px, 9vw, 132px);
}

.brand__copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-left: 0.65rem;
    border-left: 1px solid var(--ftcc-line);
}

.brand__eyebrow,
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ftcc-slate);
}

.brand__title {
    display: none;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--ftcc-black);
    background: var(--ftcc-white);
    color: var(--ftcc-black);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.masthead__panel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    justify-content: flex-end;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
}

.site-nav__link,
.catalog-switcher a {
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--ftcc-slate);
    transition: background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.site-nav__link:hover,
.catalog-switcher a:hover {
    background: var(--ftcc-surface-alt);
    color: var(--ftcc-black);
    text-decoration: none;
}

.site-nav__link.is-active,
.catalog-switcher a.is-active {
    color: var(--ftcc-black);
    box-shadow: inset 0 -2px 0 var(--ftcc-gold);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: min(100%, 280px);
}

.site-search input,
.search-panel input,
.search-panel select,
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid var(--ftcc-line);
    background: var(--ftcc-white);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.7rem;
    color: var(--ftcc-black);
    line-height: 1.4;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.search-panel input:focus,
.search-panel select:focus,
.site-search input:focus {
    outline: none;
    border-color: var(--ftcc-blue);
    box-shadow: 0 0 0 2px rgba(66, 152, 181, 0.25);
}

.site-search button,
.button,
button.button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ftcc-black);
    background: var(--ftcc-black);
    color: var(--ftcc-white);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.site-search button:hover,
.button:hover,
button.button:hover {
    background: #202020;
    text-decoration: none;
}

.button--gold {
    background: var(--ftcc-gold);
    border-color: var(--ftcc-gold);
    color: var(--ftcc-black);
}

.button--gold:hover {
    background: #d9a726;
    border-color: #d9a726;
    color: var(--ftcc-black);
}

.button--subtle {
    background: var(--ftcc-white);
    color: var(--ftcc-black);
    border-color: var(--ftcc-line);
}

.button--subtle:hover {
    background: var(--ftcc-surface-alt);
}

.button--ghost {
    background: transparent;
    color: var(--ftcc-black);
    border-color: transparent;
}

.button--ghost:hover {
    background: var(--ftcc-surface-alt);
    color: var(--ftcc-black);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-sm);
    font-weight: 600;
    white-space: nowrap;
    color: var(--ftcc-black);
}

.cart-link:hover {
    background: var(--ftcc-surface-alt);
    text-decoration: none;
}

.cart-link strong {
    display: inline-flex;
    min-width: 1.35rem;
    min-height: 1.35rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ftcc-gold);
    color: var(--ftcc-black);
    padding: 0 0.3rem;
    font-size: 0.82rem;
}

.page-frame {
    flex: 1;
    padding: 0.75rem 0 1.5rem;
}

.page-shell {
    display: grid;
    gap: 1rem;
}

.page-header {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 0 0.85rem;
    border-top: 2px solid var(--ftcc-gold);
    border-bottom: 1px solid var(--ftcc-line);
    margin-bottom: 0.25rem;
}

.page-header h1 {
    margin: 0;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    line-height: 1.15;
    color: var(--ftcc-black);
}

.page-header__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ftcc-slate);
}

.page-header__sub {
    margin: 0;
    max-width: 60ch;
    color: var(--ftcc-slate);
    font-size: 1rem;
    line-height: 1.5;
}

.page-header .button-row {
    margin-top: 0.15rem;
}

.page-header--compact {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "eyebrow eyebrow"
        "title   actions"
        "sub     sub";
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.3rem;
    padding: 0.7rem 0 0.6rem;
}

.page-header--compact .page-header__eyebrow {
    grid-area: eyebrow;
}

.page-header--compact h1 {
    grid-area: title;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.page-header--compact .page-header__sub {
    grid-area: sub;
    font-size: 0.95rem;
}

.page-header--compact .button-row {
    grid-area: actions;
    margin-top: 0;
    justify-self: end;
}

.page-header__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    padding-top: 0.55rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--ftcc-line);
}

.page-header__stat {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.page-header__stat strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ftcc-black);
}

.page-header__stat span {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ftcc-slate);
}

.content-card,
.catalog-group,
.course-card,
.summary-card,
.status-panel,
.search-panel,
.form-shell,
.empty-state,
.table-shell,
.callout-card,
.fact-grid__item {
    background: var(--ftcc-white);
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-md);
    box-shadow: var(--ftcc-card-shadow);
}

.welcome-banner {
    display: grid;
    gap: 0.6rem;
}

.welcome-banner h1 {
    margin: 0;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    color: var(--ftcc-black);
}

.welcome-banner__sub {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ftcc-slate);
}

.welcome-banner p {
    margin: 0;
    line-height: 1.55;
    color: var(--ftcc-slate);
}

.content-card h1,
.content-card h2,
.status-panel h1,
.status-panel h2,
.summary-card h2,
.search-panel h1,
.course-card h3 {
    margin: 0;
    line-height: 1.15;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
    color: var(--ftcc-black);
}

.content-card p,
.summary-card p,
.status-panel p,
.empty-state p,
.callout-card p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ftcc-slate);
}

.content-grid,
.facts-grid,
.search-results,
.page-stack {
    display: grid;
    gap: 0.65rem;
}

.page-stack {
    gap: 1rem;
}

.pill-row,
.course-card__eyebrow,
.button-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.summary-card,
.callout-card {
    padding: 1rem 1.1rem;
}

.metric-grid,
.card-grid,
.content-grid,
.facts-grid,
.checkout-grid,
.course-grid,
.content-card__split,
.course-detail,
.form-grid {
    display: grid;
    gap: 0.85rem;
}

.metric strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ftcc-black);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--ftcc-slate);
    margin-bottom: -0.15rem;
}

.breadcrumb a {
    color: var(--ftcc-slate);
    font-weight: 600;
}

.breadcrumb a:hover {
    color: var(--ftcc-blue);
}

.breadcrumb span[aria-hidden] {
    opacity: 0.5;
}

.page-header__id {
    font-size: 0.82rem;
    color: var(--ftcc-slate);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.course-glance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem 1.5rem;
    margin: 0;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--ftcc-line);
}

.course-glance > div {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.course-glance dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ftcc-slate);
}

.course-glance dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ftcc-black);
    overflow-wrap: anywhere;
}

.metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric,
.fact-grid__item,
.content-card,
.form-shell,
.status-panel,
.search-panel,
.empty-state,
.table-shell {
    padding: clamp(0.9rem, 1.6vw, 1.2rem);
}

.card-grid,
.course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card__split,
.checkout-grid,
.course-detail {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
}

.course-card {
    padding: 0.85rem;
    display: grid;
    gap: 0.55rem;
}

.course-card h3 {
    font-size: 1.1rem;
    line-height: 1.2;
}

.course-card p {
    margin: 0;
    color: var(--ftcc-slate);
    line-height: 1.45;
    font-size: 0.95rem;
}

.course-card__footer,
.section-heading,
.summary-row,
.info-list div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.85rem;
}

.section-heading {
    align-items: end;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    color: var(--ftcc-black);
}

.catalog-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.55rem;
    background: var(--ftcc-white);
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-md);
    box-shadow: var(--ftcc-card-shadow);
}

.catalog-group {
    overflow: hidden;
}

.catalog-group summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 1rem;
}

.catalog-group summary::-webkit-details-marker {
    display: none;
}

.catalog-group__body {
    padding: 0 1rem 1rem;
}

.catalog-group__count,
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ftcc-surface-alt);
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ftcc-slate);
}

.rich-text {
    line-height: 1.65;
    color: var(--ftcc-slate);
    font-size: 1rem;
    max-width: 68ch;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text blockquote {
    margin: 0 0 0.75rem;
}

.rich-text ul,
.rich-text ol {
    padding-left: 1.35rem;
}

.rich-text blockquote {
    padding-left: 0.85rem;
    border-left: 3px solid var(--ftcc-gold);
}

.rich-text :last-child {
    margin-bottom: 0;
}

.course-section-divider {
    display: grid;
    gap: 0.55rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ftcc-line);
}

.course-section-divider h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.collapsible-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.collapsible-card summary::-webkit-details-marker {
    display: none;
}

.collapsible-card__chevron {
    font-size: 1rem;
    color: var(--ftcc-slate);
    transition: transform 150ms ease;
    flex-shrink: 0;
}

details[open].collapsible-card .collapsible-card__chevron {
    transform: rotate(180deg);
}

.collapsible-card__body {
    padding-top: 0.7rem;
    margin-top: 0.55rem;
    border-top: 1px solid var(--ftcc-line);
    max-width: none;
}

.table-shell {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.65rem 0.6rem;
    border-bottom: 1px solid var(--ftcc-line-soft);
    vertical-align: top;
}

th {
    color: var(--ftcc-slate);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    background: var(--ftcc-surface-alt);
}

.price {
    font-weight: 700;
    font-size: 1.05rem;
}

.status-banner {
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--ftcc-surface-alt);
    border: 1px solid var(--ftcc-line);
    color: var(--ftcc-black);
}

.status-banner--success {
    background: #edf7f1;
    border-color: rgba(46, 125, 50, 0.28);
}

.status-banner--warning {
    background: #fff5e8;
    border-color: rgba(196, 106, 0, 0.24);
}

.form-shell form,
.search-panel form,
.page-stack form {
    display: grid;
    gap: 0.85rem;
}

.form-section {
    display: grid;
    gap: 0.7rem;
}

.form-section h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: grid;
    gap: 0.3rem;
}

.form-field label {
    font-weight: 600;
    font-size: 0.92rem;
}

.form-field--full {
    grid-column: 1 / -1;
}

.autocomplete {
    position: relative;
}

.autocomplete__panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    max-height: 14rem;
    overflow-y: auto;
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-sm);
    background: var(--ftcc-white);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.12);
    padding: 0.25rem;
}

.autocomplete__option {
    appearance: none;
    display: block;
    width: 100%;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ftcc-black);
    cursor: pointer;
    font: inherit;
    padding: 0.45rem 0.55rem;
    text-align: left;
}

.autocomplete__option:hover,
.autocomplete__option.is-active {
    background: rgba(240, 184, 45, 0.18);
}

.rich-text-source {
    display: none;
}

.rich-text-editor {
    min-height: 10rem;
    background: var(--ftcc-white);
}

.rich-text-field .ql-toolbar.ql-snow,
.rich-text-field .ql-container.ql-snow {
    border-color: var(--ftcc-line);
}

.rich-text-field .ql-toolbar {
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
}

.rich-text-field .ql-container {
    min-height: 10rem;
    border-bottom-left-radius: var(--radius-sm);
    border-bottom-right-radius: var(--radius-sm);
    font: inherit;
}

.email-template-preview-text,
.email-template-preview-frame {
    width: 100%;
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-sm);
    background: var(--ftcc-white);
}

.email-template-preview-text {
    min-height: 12rem;
    margin: 0;
    padding: 0.8rem;
    overflow: auto;
    white-space: pre-wrap;
}

.email-template-preview-frame {
    min-height: 20rem;
}

.checkbox {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    font-weight: 600;
}

.checkbox input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
}

.validation-summary-errors,
.field-validation-error {
    color: #8f1d15;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-validation-error {
    border-color: #8f1d15;
}

.summary-list,
.info-list {
    display: grid;
    gap: 0.55rem;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
}

.status-chip--paid {
    background: #edf7f1;
    color: #215a2d;
}

.status-chip--declined,
.status-chip--canceled,
.status-chip--pending {
    background: var(--ftcc-surface-alt);
    color: var(--ftcc-slate);
}

.status-chip--open {
    background: #edf7f1;
    color: #215a2d;
}

.status-chip--filling {
    background: #fff5e8;
    color: #7a4a00;
}

.status-chip--full,
.status-chip--closed {
    background: var(--ftcc-surface-alt);
    color: var(--ftcc-slate);
}

.admin-row-list {
    display: grid;
    gap: 0.65rem;
}

.admin-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    gap: 0.65rem;
    align-items: end;
    padding: 0.7rem;
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-sm);
    background: var(--ftcc-surface-alt);
}

.admin-row--schedule {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.admin-row--section {
    grid-template-columns: minmax(12rem, 0.35fr) minmax(0, 1fr) auto;
}

.admin-row__remove {
    align-self: center;
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.js [data-shipping-fields].is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .content-card__split,
    .checkout-grid,
    .course-detail {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .card-grid,
    .course-grid,
    .form-grid,
    .admin-row,
    .admin-row--schedule,
    .admin-row--section,
    .report-metrics {
        grid-template-columns: 1fr;
    }

    .page-header--compact {
        grid-template-columns: 1fr;
        grid-template-areas:
            "eyebrow"
            "title"
            "sub"
            "actions";
    }

    .page-header--compact .button-row {
        justify-self: start;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .masthead__panel {
        display: none;
    }

    .nav-open .masthead__panel {
        display: flex;
        flex-direction: column;
        flex-basis: 100%;
        gap: 0.65rem;
        padding-bottom: 0.55rem;
        align-items: stretch;
    }

    .nav-open .site-nav,
    .nav-open .cart-link {
        width: 100%;
    }

    .site-nav {
        flex-direction: column;
    }

    .site-nav__link {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .masthead__inner,
    .page-shell {
        width: min(100vw - 1rem, 100%);
    }

    .masthead__inner {
        padding: 0.55rem 0.85rem;
    }

    .brand__copy {
        display: none;
    }

    .page-frame {
        padding-top: 0.5rem;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    .welcome-banner h1 {
        font-size: 1.4rem;
    }

    .summary-row,
    .info-list div {
        flex-direction: column;
    }

    .table-shell {
        overflow-x: visible;
    }

    .table-shell table,
    .table-shell thead,
    .table-shell tbody,
    .table-shell tr,
    .table-shell td {
        display: block;
        width: 100%;
    }

    .table-shell thead {
        display: none;
    }

    .table-shell tr {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--ftcc-line);
    }

    .table-shell tbody tr:first-child {
        padding-top: 0;
    }

    .table-shell tbody tr:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .table-shell td {
        display: block;
        padding: 0.35rem 0;
        border-bottom: 0;
        overflow-wrap: anywhere;
    }

    .table-shell td::before {
        content: attr(data-label);
        display: block;
        color: var(--ftcc-slate);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin-bottom: 0.15rem;
    }

    .table-shell td .button-row {
        justify-content: flex-start;
    }
}

.button--small,
.course-card .button,
.table-shell .button {
    padding: 0.35rem 0.6rem;
    font-size: 0.88rem;
    line-height: 1.15;
}

.button.is-disabled {
    opacity: 0.48;
    cursor: default;
}

.button-row--compact {
    gap: 0.4rem;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding: 0.4rem;
    background: var(--ftcc-white);
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-md);
    box-shadow: var(--ftcc-card-shadow);
}

.admin-nav__link {
    min-height: 2.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--ftcc-slate);
}

.admin-nav__link:hover {
    background: var(--ftcc-surface-alt);
    color: var(--ftcc-black);
    text-decoration: none;
}

.admin-nav__link.is-active {
    background: var(--ftcc-black);
    color: var(--ftcc-white);
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.admin-dashboard-tile {
    display: grid;
    gap: 0.45rem;
    min-height: 9rem;
    padding: 0.85rem;
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-md);
    background: var(--ftcc-white);
    box-shadow: var(--ftcc-card-shadow);
    color: var(--ftcc-black);
}

.admin-dashboard-tile:hover {
    border-color: rgba(66, 152, 181, 0.45);
    text-decoration: none;
}

.admin-dashboard-tile strong {
    font-size: 1.35rem;
    line-height: 1.1;
}

.admin-dashboard-tile span:last-child {
    color: var(--ftcc-slate);
}

.pagination-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    background: var(--ftcc-white);
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-md);
    box-shadow: var(--ftcc-card-shadow);
}

.pagination-bar__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.65rem;
    color: var(--ftcc-slate);
    font-weight: 600;
    font-size: 0.92rem;
}

.pagination-bar__size,
.pagination-bar__links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pagination-bar__size label {
    font-weight: 600;
    color: var(--ftcc-slate);
    font-size: 0.92rem;
}

.pagination-bar__size select {
    min-height: 2.1rem;
    border: 1px solid var(--ftcc-line);
    border-radius: var(--radius-sm);
    background: var(--ftcc-white);
    padding: 0.3rem 0.5rem;
}

.page-shell--admin {
    gap: 0.85rem;
}

.page-shell--admin .form-shell,
.page-shell--admin .search-panel,
.page-shell--admin .table-shell,
.page-shell--admin .summary-card {
    padding: 0.85rem;
}

.page-shell--admin .section-heading h2,
.page-shell--admin .section-heading h3 {
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.page-shell--admin th,
.page-shell--admin td {
    padding: 0.5rem 0.5rem;
}

.empty-table {
    display: grid;
    gap: 0.5rem;
    padding: 0.65rem 0;
}

.empty-table h2,
.empty-state h2 {
    margin: 0;
    font-family: "Source Sans 3", Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.15;
    color: var(--ftcc-black);
}

.empty-table p {
    margin: 0;
    color: var(--ftcc-slate);
}

.checkout-grid {
    align-items: start;
}

.checkout-grid > aside.summary-card {
    align-self: start;
}

.summary-card {
    min-height: 0;
}

.authorize-net-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.52);
}

.authorize-net-screen[hidden],
.authorize-net-popup[hidden] {
    display: none !important;
}

.authorize-net-popup {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: grid;
    place-items: center;
    padding: 1rem;
    overflow: auto;
}

.authorize-net-popup__outer {
    width: min(100%, 520px);
    max-height: calc(100vh - 2rem);
    background: var(--ftcc-white);
    border: 1px solid var(--ftcc-line);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(15, 23, 42, 0.28);
    overflow: auto;
}

.authorize-net-popup__top {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--ftcc-white);
    border-bottom: 1px solid var(--ftcc-line);
}

.authorize-net-popup__inner {
    display: grid;
    justify-items: center;
    padding: 0.5rem;
}

.authorize-net-popup iframe {
    max-width: 100%;
    border: 0;
}

.authorize-net-popup-open {
    overflow: hidden;
}

.course-card__eyebrow {
    gap: 0.35rem;
}

.course-card__eyebrow .tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.74rem;
}

.course-card__footer {
    align-items: center;
    gap: 0.55rem;
}

.course-card__footer .price {
    font-size: 0.98rem;
}

.table-shell tbody tr {
    transition: background-color 120ms ease;
}

.table-shell tbody tr:hover {
    background: var(--ftcc-surface-alt);
}

@media (min-width: 1081px) {
    .checkout-grid > aside.summary-card {
        position: sticky;
        top: 4.5rem;
    }
}

@media (max-width: 1080px) {
    .pagination-bar {
        grid-template-columns: 1fr;
    }

    .course-glance {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pagination-bar__size,
    .pagination-bar__links {
        justify-content: flex-start;
    }
}

@media (max-width: 860px) {
    .site-nav__link,
    .cart-link,
    .admin-nav__link {
        min-height: 2.35rem;
    }
}

@media (max-width: 640px) {
    .metric,
    .fact-grid__item,
    .content-card,
    .form-shell,
    .status-panel,
    .search-panel,
    .empty-state,
    .table-shell {
        padding: 0.75rem;
    }

    .page-header__stat strong {
        font-size: 1rem;
        line-height: 1.05;
    }

    .pagination-bar {
        padding: 0.6rem;
    }

    .pagination-bar__size,
    .pagination-bar__links,
    .admin-nav {
        width: 100%;
    }

    .pagination-bar__links .button,
    .pagination-bar__size .button,
    .pagination-bar__size select {
        flex: 1;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .table-shell tr {
        padding: 0.5rem 0;
    }

    .table-shell td {
        padding: 0.32rem 0;
    }

    .table-shell td::before {
        margin-bottom: 0.08rem;
    }

}

/* ============================================================
   Admin UI polish — grouped nav, breathing room, readable tables
   (keeps the existing palette + layout shape)
   ============================================================ */

.admin-nav {
    gap: 0.25rem 0.4rem;
    padding: 0.45rem 0.6rem;
    align-items: center;
}

.admin-nav__sep {
    width: 1px;
    align-self: stretch;
    margin: 0.2rem 0.1rem;
    background: var(--ftcc-line);
}

.admin-nav__group-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ftcc-slate);
    opacity: 0.72;
    padding: 0 0.1rem;
}

.admin-nav__link.is-active {
    box-shadow: inset 0 -2px 0 var(--ftcc-gold);
}

.admin-nav__link--muted {
    color: rgba(83, 86, 90, 0.62);
    font-weight: 500;
}

/* A touch more room so admin pages don't feel cramped */
.page-shell--admin {
    gap: 1rem;
}

.page-shell--admin .form-shell,
.page-shell--admin .search-panel,
.page-shell--admin .table-shell,
.page-shell--admin .summary-card {
    padding: clamp(0.95rem, 1.4vw, 1.15rem);
}

/* Stacked detail sections read as distinct blocks */
.page-shell--admin .section-heading {
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--ftcc-line-soft);
    margin-bottom: 0.3rem;
}

/* Desktop-only table readability: roomier cells, zebra, row hover */
@media (min-width: 641px) {
    .page-shell--admin .table-shell th,
    .page-shell--admin .table-shell td {
        padding: 0.6rem 0.7rem;
    }

    .page-shell--admin .table-shell tbody tr:nth-child(even) {
        background: rgba(0, 0, 0, 0.02);
    }

    .page-shell--admin .table-shell tbody tr:hover {
        background: rgba(66, 152, 181, 0.08);
    }
}

@media (max-width: 640px) {
    .admin-nav__sep,
    .admin-nav__group-label {
        display: none;
    }
}
