/*
 * Paper theme — editorial design tokens + components.
 * Scoped to .aaid-studyclub-paper-theme-theme so Bootstrap-driven layout chrome is unaffected.
 */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap");

.aaid-studyclub-paper-theme-theme {
    --ink: #1a1714;
    --ink-2: #3d362f;
    --ink-3: #6f665b;
    --rule: #e6dfd0;
    --paper: #faf6ec;
    --paper-2: #ffffff;
    --teal: #1f6573;
    --burgundy: #5d1d3a;
    --burgundy-2: #7d2d50;
    --teal-soft: #dfeaec;
    --burgundy-soft: #ecdde2;
    --sage: #d6deca;
    --sand: #efe2c8;
    --shadow-sm: 0 1px 2px rgba(38, 28, 16, .06);
    --shadow-md: 0 12px 28px -14px rgba(38, 28, 16, .18), 0 2px 4px rgba(38, 28, 16, .04);
}

.aaid-studyclub-paper-theme-theme.is-dark,
.aaid-studyclub-paper-theme-theme[data-theme="dark"] {
    --ink: #f1eadb;
    --ink-2: #d3c9b5;
    --ink-3: #a39882;
    --rule: #2e2922;
    --paper: #14110d;
    --paper-2: #1a1612;
    --teal-soft: #182a2e;
    --burgundy-soft: #2a121b;
    --sage: #2a3522;
    --sand: #2a2418;
}

body:has(.aaid-studyclub-paper-theme-theme),
.aaid-studyclub-paper-theme-theme {
    background: var(--paper);
    color: var(--ink);
    font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.aaid-studyclub-paper-theme-theme * { box-sizing: border-box; }
.aaid-studyclub-paper-theme-theme img { max-width: 100%; height: auto; display: block; }
/* Bypass the legacy theme2 `a { color: grey }` cascade — every paper anchor
 * inherits its parent color by default; component classes set their own. */
.aaid-studyclub-paper-theme-theme a,
.aaid-studyclub-paper-theme-theme a:hover,
.aaid-studyclub-paper-theme-theme a:focus,
.aaid-studyclub-paper-theme-theme a:active { color: inherit; text-decoration: none; }
.aaid-studyclub-paper-theme-theme p { margin: 0; }
.aaid-studyclub-paper-theme-theme h1, .aaid-studyclub-paper-theme-theme h2, .aaid-studyclub-paper-theme-theme h3, .aaid-studyclub-paper-theme-theme h4 { margin: 0; }
.aaid-studyclub-paper-theme-theme ul { padding: 0; margin: 0; list-style: none; }
.aaid-studyclub-paper-theme-theme button { font-family: inherit; cursor: pointer; }

.aaid-studyclub-paper-theme-theme .serif {
    font-family: 'Newsreader', Georgia, serif;
    letter-spacing: -0.01em;
}
.aaid-studyclub-paper-theme-theme .display {
    font-family: 'Newsreader', serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-wrap: balance;
}
.aaid-studyclub-paper-theme-theme .italic-soft {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-3);
}

.paper-container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1rem;
    width: 100%;
}
@media (min-width: 480px) { .paper-container { padding-inline: 1.25rem; } }
@media (min-width: 768px) { .paper-container { padding-inline: 2rem; } }

/* Guard against any stray horizontal overflow inside the theme wrapper */
.aaid-studyclub-paper-theme-theme { overflow-x: clip; }

/* eyebrow chip */
.paper-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem .75rem;
    border-radius: 9999px;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
    font-family: 'IBM Plex Sans', sans-serif;
}
.paper-eyebrow__dot {
    width: .375rem;
    height: .375rem;
    border-radius: 9999px;
    background: var(--burgundy);
}

/* buttons — chained `a.paper-btn-…` selectors so legacy theme2 anchor colors can't bleed through */
.aaid-studyclub-paper-theme-theme a.paper-btn-primary,
.aaid-studyclub-paper-theme-theme button.paper-btn-primary,
.paper-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--burgundy);
    color: #ffffff;
    padding: .8125rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .9375rem;
    border: 0;
    text-decoration: none;
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--burgundy) 70%, transparent);
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.aaid-studyclub-paper-theme-theme a.paper-btn-primary:hover,
.aaid-studyclub-paper-theme-theme a.paper-btn-primary:focus,
.aaid-studyclub-paper-theme-theme a.paper-btn-primary:active,
.aaid-studyclub-paper-theme-theme button.paper-btn-primary:hover,
.aaid-studyclub-paper-theme-theme button.paper-btn-primary:focus,
.aaid-studyclub-paper-theme-theme button.paper-btn-primary:active,
.paper-btn-primary:hover {
    background: var(--burgundy-2);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--burgundy) 80%, transparent);
}
.paper-btn-primary--sm { padding: .5rem 1rem; font-size: .85rem; }

.aaid-studyclub-paper-theme-theme a.paper-btn-outline,
.aaid-studyclub-paper-theme-theme button.paper-btn-outline,
.paper-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    padding: .8125rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .9375rem;
    background: transparent;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.aaid-studyclub-paper-theme-theme a.paper-btn-outline:hover,
.aaid-studyclub-paper-theme-theme a.paper-btn-outline:focus,
.aaid-studyclub-paper-theme-theme a.paper-btn-outline:active,
.paper-btn-outline:hover {
    background: var(--ink);
    color: var(--paper);
}
.paper-btn-outline--block { width: 100%; }
.paper-btn-outline--sm { padding: .5rem 1rem; font-size: .85rem; }

.aaid-studyclub-paper-theme-theme a.paper-btn-link,
.paper-btn-link {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    color: var(--burgundy);
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
}
.aaid-studyclub-paper-theme-theme a.paper-btn-link:hover,
.aaid-studyclub-paper-theme-theme a.paper-btn-link:focus,
.paper-btn-link:hover {
    color: var(--burgundy-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* card */
.paper-card {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 12px;
    transition: box-shadow .2s ease, transform .15s ease;
}
.paper-card:hover { box-shadow: var(--shadow-md); }

/* tints */
.paper-tint-teal { background: var(--teal-soft); }
.paper-tint-burgundy { background: var(--burgundy-soft); }
.paper-tint-sage { background: var(--sage); }
.paper-tint-sand { background: var(--sand); }

/* portrait */
.paper-portrait {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 5;
}
.paper-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.paper-portrait__ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--ink) 40%, transparent);
}
.paper-portrait__ph svg { transform: translateY(-12%); }
.paper-portrait__name {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    background: color-mix(in srgb, var(--paper-2) 92%, transparent);
    backdrop-filter: blur(4px);
    border: 1px solid var(--rule);
    border-radius: 9999px;
    padding: .25rem .625rem;
    font-size: .6875rem;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
    max-width: calc(100% - 1rem);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* live dot */
.paper-live-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--burgundy);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--burgundy) 60%, transparent);
    animation: paper-live 1.6s ease-in-out infinite;
}
@keyframes paper-live {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--burgundy) 50%, transparent); }
    50% { box-shadow: 0 0 0 6px transparent; }
}
@media (prefers-reduced-motion: reduce) { .paper-live-dot { animation: none; } }

/* date badge */
.paper-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: .375rem .625rem;
    line-height: 1.1;
    min-width: 52px;
}
.paper-date-badge__mo {
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--burgundy);
}
.paper-date-badge__day {
    font-family: 'Newsreader', serif;
    font-weight: 500;
    font-size: 1.5rem;
}

/* duration / play glyph for video cards */
.paper-duration {
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    background: color-mix(in srgb, var(--ink) 92%, transparent);
    color: var(--paper);
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: .125rem .375rem;
    border-radius: 4px;
}
.paper-play-glyph {
    position: absolute;
    left: .5rem;
    top: .5rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--paper-2) 94%, transparent);
    border: 1px solid var(--rule);
    display: grid;
    place-items: center;
    color: var(--ink);
}

/* scrolling announcement topbar */
.paper-topbar {
    background: var(--burgundy);
    color: var(--paper);
    overflow: hidden;
    border-bottom: 1px solid color-mix(in srgb, var(--burgundy) 80%, #000);
    font-size: 0.8125rem;
    line-height: 1;
}
.paper-topbar__track {
    display: flex;
    align-items: center;
    width: max-content;
    padding: 0.6rem 0;
    gap: 3rem;
    animation: paper-topbar-scroll 38s linear infinite;
    will-change: transform;
}
.paper-topbar:hover .paper-topbar__track,
.paper-topbar:focus-within .paper-topbar__track {
    animation-play-state: paused;
}
.paper-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.paper-topbar__item a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--paper) 55%, transparent);
}
.paper-topbar__item a:hover { text-decoration-color: var(--paper); }
.paper-topbar__sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--paper) 60%, transparent);
    flex-shrink: 0;
}
@keyframes paper-topbar-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .paper-topbar__track { animation: none; }
}

/* nav blur */
.paper-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid var(--rule);
}
.paper-nav__inner {
    display: flex;
    align-items: center;
    gap: .5rem;
    height: 64px;
    min-width: 0;
}
@media (min-width: 768px) {
    .paper-nav__inner { gap: 1rem; height: 88px; }
}
.paper-nav__brand {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-right: auto;
    min-width: 0;
    flex: 0 1 auto;
}
.paper-nav__brand img {
    width: auto;
    height: 44px;
    max-width: 180px;
    object-fit: contain;
}
@media (min-width: 768px) {
    .paper-nav__brand img { height: 72px; max-width: 260px; }
}
.paper-nav__brand-text {
    line-height: 1.15;
    display: none;
}
.paper-nav__brand-name {
    font-weight: 600;
    font-size: 15px;
    display: block;
}
.paper-nav__brand-tag {
    display: block;
    font-size: 10.5px;
    color: var(--ink-3);
}
.paper-nav__links {
    display: none;
    align-items: center;
    gap: .25rem;
    margin-left: 1.5rem;
}
@media (min-width: 768px) { .paper-nav__links { display: flex; } }
.paper-nav__link {
    padding: .5rem .75rem;
    border-radius: .5rem;
    font-size: .875rem;
    font-weight: 500;
}
.paper-nav__link:hover { background: var(--rule); }
.paper-nav__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .35rem;
    flex: 0 0 auto;
}
@media (min-width: 640px) { .paper-nav__actions { gap: .5rem; } }
.paper-nav__icon-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid var(--rule);
    background: transparent;
    color: var(--ink);
}
.paper-nav__signin {
    display: none;
    font-size: .875rem;
    font-weight: 500;
    padding: .5rem .75rem;
    border-radius: .5rem;
}
.paper-nav__signin:hover { background: var(--rule); }
@media (min-width: 640px) { .paper-nav__signin { display: inline-flex; } }
.paper-nav__cta {
    display: none !important;
    padding: .5rem 1rem !important;
    font-size: .85rem !important;
}
@media (min-width: 640px) { .paper-nav__cta { display: inline-flex !important; } }
.paper-nav__mobile-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid var(--rule);
    background: transparent;
    color: var(--ink);
}
@media (min-width: 768px) { .paper-nav__mobile-btn { display: none; } }
.paper-mobile-menu {
    display: none;
    border-top: 1px solid var(--rule);
    background: var(--paper-2);
}
.paper-mobile-menu.is-open { display: block; }
@media (min-width: 768px) { .paper-mobile-menu { display: none !important; } }
.paper-mobile-menu__inner {
    padding: .75rem 1.25rem;
    display: flex;
    flex-direction: column;
}
.paper-mobile-menu__link {
    padding: .625rem 0;
    font-size: .875rem;
    font-weight: 500;
}
.paper-mobile-menu__cta-row {
    display: flex;
    gap: .5rem;
    padding-top: .75rem;
    margin-top: .5rem;
    border-top: 1px solid var(--rule);
}

/* light dropdown menu mock */
.paper-menu {
    background: var(--ink);
    color: var(--paper);
    border-radius: 10px;
    box-shadow: 0 28px 60px -22px rgba(0, 0, 0, .45);
    padding: .5rem;
    font-size: .8125rem;
    min-width: 220px;
}
.paper-menu__item {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem .625rem;
    border-radius: 6px;
}
.paper-menu__divider {
    height: 1px;
    background: color-mix(in srgb, var(--paper) 16%, transparent);
    margin: .375rem .125rem;
}
.paper-menu__item--danger { color: #f3a4a4; }

/* scroll-x */
.paper-scroll-x {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 1rem;
    padding-bottom: .5rem;
}
.paper-scroll-x::-webkit-scrollbar { display: none; }
.paper-scroll-x > * { scroll-snap-align: start; flex-shrink: 0; }

/* footer */
.paper-footer {
    border-top: 1px solid var(--rule);
    background: var(--paper-2);
}
.paper-footer__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
}
@media (min-width: 768px) {
    .paper-footer__cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
}
.paper-footer__heading {
    margin: 0;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-3);
}
.paper-footer__list { margin-top: 1rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .625rem; font-size: .875rem; }
.paper-footer__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.paper-footer__address { font-size: .875rem; color: var(--ink-2); }
.paper-footer__social {
    margin-top: 1.25rem;
    padding: 0;
    list-style: none;
    display: flex;
    gap: .625rem;
    flex-wrap: wrap;
}
.paper-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rule);
    color: var(--ink-2);
    background: var(--paper);
    font-size: 1.05rem;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.paper-footer__social a:hover {
    color: var(--paper);
    background: var(--ink);
    border-color: var(--ink);
}
.paper-footer__newsletter {
    margin-top: 1.25rem;
    display: flex;
    gap: .5rem;
    max-width: 22rem;
}
.paper-footer__newsletter input {
    flex: 1;
    border-radius: 9999px;
    padding: .5rem 1rem;
    font-size: .875rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    color: var(--ink);
    outline: none;
}
.paper-footer__newsletter input:focus { border-color: var(--ink-3); }
.paper-footer__topics {
    border-top: 1px solid var(--rule);
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.paper-footer__topic-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .5rem .375rem;
    line-height: 1.55;
}
.paper-footer__topic-label {
    flex: 0 0 auto;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-3);
    min-width: 5.5rem;
}
.paper-footer__inline-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: inline;
    font-size: 0;
}
.paper-footer__inline-links li {
    display: inline;
    font-size: .75rem;
}
.paper-footer__inline-links li:not(:last-child)::after {
    content: "|";
    margin: 0 .5rem;
    color: color-mix(in srgb, var(--ink-3) 40%, transparent);
    font-weight: 300;
}
.paper-footer__inline-links a {
    color: var(--ink-3);
    transition: color .15s ease;
    white-space: nowrap;
}
.paper-footer__inline-links a:hover {
    color: var(--burgundy);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.paper-footer__bar {
    border-top: 1px solid var(--rule);
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    align-items: center;
    justify-content: space-between;
    font-size: .75rem;
    color: var(--ink-3);
}
@media (min-width: 640px) {
    .paper-footer__bar { flex-direction: row; }
}

/* utility focus */
.aaid-studyclub-paper-theme-theme :focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    border-radius: 6px;
}

/* section spacing */
.paper-section { padding: 5rem 0; }
.paper-section--first { padding-top: 3rem; padding-bottom: 3.5rem; }
.paper-section--tight { padding: 1.25rem 0; }
.paper-section--alt {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    background: var(--paper-2);
}
@media (min-width: 768px) {
    .paper-section { padding: 6rem 0; }
    .paper-section--first { padding-top: 5rem; padding-bottom: 5rem; }
}

/* section heading row */
.paper-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.paper-section__head-text { max-width: 32rem; }
.paper-section__head--center { justify-content: center; text-align: center; flex-direction: column; align-items: center; }
.paper-section__head--center .paper-section__head-text { text-align: center; }
.paper-section__title {
    margin-top: 1rem;
    font-family: 'Newsreader', serif;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-size: 2.25rem;
}
.paper-section__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--ink-3);
}
@media (min-width: 768px) { .paper-section__title { font-size: 3rem; } }
.paper-section__sub {
    margin-top: .75rem;
    font-size: 1rem;
    color: var(--ink-3);
    max-width: 32rem;
}

.paper-section__sub--center { margin-left: auto; margin-right: auto; }

.paper-empty {
    padding: 1.5rem;
    border: 1px dashed var(--rule);
    border-radius: 12px;
    text-align: center;
    color: var(--ink-3);
}

/* ---------- Paper-theme preloader ---------- */
/* Overrides the legacy Bootstrap #loader for the paper theme only. */
.aaid-studyclub-paper-theme-theme #loader,
body:has(.aaid-studyclub-paper-theme-theme) #loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    transition: opacity .45s ease, visibility .45s ease;
}
.aaid-studyclub-paper-theme-theme #loader .spinner-border,
body:has(.aaid-studyclub-paper-theme-theme) #loader .spinner-border {
    display: none !important;
}
.aaid-studyclub-paper-theme-theme #loader::before,
body:has(.aaid-studyclub-paper-theme-theme) #loader::before {
    content: "";
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    border: 2px solid color-mix(in srgb, var(--burgundy) 18%, transparent);
    border-top-color: var(--burgundy);
    border-right-color: var(--teal);
    animation: paper-loader-spin 1.1s cubic-bezier(.6,.05,.4,.95) infinite;
}
.aaid-studyclub-paper-theme-theme #loader::after,
body:has(.aaid-studyclub-paper-theme-theme) #loader::after {
    content: "Study Club";
    font-family: 'Newsreader', Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: 1.0625rem;
    letter-spacing: .04em;
    color: var(--ink-3);
    animation: paper-loader-fade 1.6s ease-in-out infinite;
}
.paper-loader--hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@keyframes paper-loader-spin {
    to { transform: rotate(360deg); }
}
@keyframes paper-loader-fade {
    0%, 100% { opacity: .55; letter-spacing: .04em; }
    50%      { opacity: 1;   letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
    .aaid-studyclub-paper-theme-theme #loader::before,
    body:has(.aaid-studyclub-paper-theme-theme) #loader::before {
        animation: none;
        border-top-color: var(--burgundy);
    }
    .aaid-studyclub-paper-theme-theme #loader::after,
    body:has(.aaid-studyclub-paper-theme-theme) #loader::after {
        animation: none;
        opacity: 1;
    }
}

/* =====================================================================
   Paper profile page
   ===================================================================== */
.paper-profile {
    padding: 1rem 0 2.5rem;
    background: var(--paper);
}
@media (min-width: 768px) { .paper-profile { padding: 1.5rem 0 3.5rem; } }
.paper-profile .paper-container { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 768px) { .paper-profile .paper-container { gap: 1.5rem; } }

/* ───── Member-card hero ───── */
.paper-profile__hero {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 1rem;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "avatar identity"
        "actions actions";
    align-items: center;
    gap: .9rem 1rem;
    box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
    .paper-profile__hero {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "avatar identity actions";
        padding: 2rem;
        gap: 1.75rem;
        border-radius: 20px;
    }
}
.paper-profile__avatar { grid-area: avatar; }
.paper-profile__identity { grid-area: identity; min-width: 0; }
.paper-profile__hero-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.paper-profile__hero-actions > * { width: 100%; padding: .55rem .75rem !important; font-size: .8125rem !important; }
@media (min-width: 768px) {
    .paper-profile__hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: .625rem;
    }
    .paper-profile__hero-actions > * {
        white-space: nowrap;
        padding: .8125rem 1.5rem !important;
        font-size: .9375rem !important;
    }
}
.paper-profile__avatar-btn {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 9999px;
    border: 2px solid var(--burgundy);
    padding: 3px;
    background: var(--paper);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}
@media (min-width: 768px) {
    .paper-profile__avatar-btn { width: 88px; height: 88px; padding: 4px; }
}
.paper-profile__avatar-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(38,28,16,.35); }
.paper-profile__avatar-btn img {
    width: 100%; height: 100%;
    border-radius: 9999px;
    object-fit: cover;
    display: block;
}
.paper-profile__avatar-edit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: var(--burgundy);
    color: var(--paper);
    display: grid;
    place-items: center;
    font-size: .85rem;
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
@media (min-width: 768px) {
    .paper-profile__avatar-edit { right: -4px; bottom: -4px; width: 30px; height: 30px; font-size: 1rem; }
}
.paper-profile__name {
    margin: .15rem 0 .35rem;
    font-size: clamp(1.15rem, .95rem + 1.5vw, 2.25rem);
    line-height: 1.1;
    color: var(--ink);
}
.paper-profile__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .65rem;
    color: var(--ink-3);
}
.paper-profile__expiry {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    color: var(--ink-3);
    line-height: 1;
}
.paper-profile__expiry ion-icon { font-size: .9rem; color: var(--ink-3); }
@media (min-width: 768px) {
    .paper-profile__expiry { font-size: .8125rem; }
}
.paper-chip--lg {
    padding: .4rem .75rem;
    font-size: .8125rem;
}
.paper-chip--lg ion-icon { font-size: 1rem; }
.paper-profile__identity .paper-eyebrow {
    padding: .25rem .55rem;
    font-size: .625rem;
}
@media (min-width: 768px) {
    .paper-profile__identity .paper-eyebrow { padding: .375rem .75rem; font-size: .6875rem; }
}
.paper-profile__meta {
    margin-top: .4rem;
    font-size: .75rem;
    color: var(--ink-3);
    word-break: break-word;
}
@media (min-width: 768px) {
    .paper-profile__meta { font-size: .8125rem; margin-top: .35rem; }
}

/* Responsive short/long labels inside buttons */
.paper-label-long { display: none; }
.paper-label-short { display: inline; }
@media (min-width: 640px) {
    .paper-label-long { display: inline; }
    .paper-label-short { display: none; }
}

/* ───── Generic paper chip ───── */
.paper-chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .3rem .65rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1;
    background: var(--paper);
    border: 1px solid var(--rule);
    color: var(--ink-2);
    letter-spacing: .01em;
}
.paper-chip ion-icon { font-size: .9rem; }
.paper-chip--success { background: var(--sage); border-color: color-mix(in srgb, var(--sage) 60%, var(--ink) 40%); color: #243319; }
.paper-chip--danger  { background: var(--burgundy-soft); border-color: color-mix(in srgb, var(--burgundy) 30%, var(--rule)); color: var(--burgundy); }
.paper-chip--info    { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 25%, var(--rule)); color: var(--teal); }
.paper-chip--neutral { background: var(--paper); border-color: var(--rule); color: var(--ink-3); }

/* ───── Membership certificate banner ───── */
.paper-profile__certificate {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
    .paper-profile__certificate { grid-template-columns: minmax(0, 320px) 1fr; border-radius: 20px; }
}
.paper-profile__certificate img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
    background: var(--sand);
}
@media (min-width: 480px) {
    .paper-profile__certificate img { height: 150px; }
}
@media (min-width: 768px) {
    .paper-profile__certificate img { height: auto; max-height: none; object-fit: contain; padding: 1.5rem; background: var(--paper); }
}
.paper-profile__certificate-body {
    padding: 1rem 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 2px solid var(--burgundy);
}
@media (min-width: 768px) {
    .paper-profile__certificate-body { padding: 1.5rem; border-top: 0; }
}
.paper-profile__certificate-title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.2;
    color: var(--ink);
    margin: .5rem 0 .35rem;
}
@media (min-width: 768px) {
    .paper-profile__certificate-title { font-size: 1.75rem; margin: .5rem 0 .5rem; }
}
.paper-profile__certificate-sub {
    font-size: .8125rem;
    color: var(--ink-3);
    margin-bottom: .9rem;
    line-height: 1.45;
}
@media (min-width: 768px) {
    .paper-profile__certificate-sub { font-size: .9375rem; margin-bottom: 1rem; }
}
.paper-profile__certificate-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.paper-profile__certificate-actions > * { width: 100%; }
@media (min-width: 768px) {
    .paper-profile__certificate-actions { display: flex; flex-wrap: wrap; gap: .625rem; }
    .paper-profile__certificate-actions > * { width: auto; }
}

/* ───── Stat cards ───── */
.paper-profile__stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .paper-profile__stats { grid-template-columns: repeat(3, 1fr); } }
.paper-profile__stat {
    --accent: var(--burgundy);
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--accent);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.paper-profile__stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -16px rgba(38,28,16,.25);
    color: var(--ink);
}
.paper-profile__stat-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.paper-profile__stat-value {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1;
    color: var(--ink);
}
.paper-profile__stat-link {
    margin-top: .35rem;
    font-size: .8125rem;
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

/* ───── Tabs ───── */
.paper-profile__tabs {
    display: flex;
    gap: .25rem;
    border-bottom: 1px solid var(--rule);
    overflow-x: auto;
    scrollbar-width: none;
    margin: .5rem 0 0;
    padding-bottom: 0;
    scroll-snap-type: x mandatory;
}
.paper-profile__tabs::-webkit-scrollbar { display: none; }
.paper-profile__tab {
    flex: 0 0 auto;
    background: none;
    border: 0;
    padding: .85rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-3);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
    scroll-snap-align: start;
    white-space: nowrap;
}
.paper-profile__tab ion-icon { font-size: 1.05rem; }
.paper-profile__tab:hover { color: var(--ink); }
.paper-profile__tab.is-active {
    color: var(--burgundy);
    border-bottom-color: var(--burgundy);
}

/* ───── Tab panel chrome ───── */
.paper-profile__panels { padding-top: .5rem; }
.paper-profile__panel { display: none; }
.paper-profile__panel.is-active { display: block; animation: paper-profile-fade .25s ease; }
@keyframes paper-profile-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}
.paper-profile__panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.paper-profile__panel-meta {
    font-size: .75rem;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .12em;
}

/* ───── Paper table (desktop) ───── */
.paper-table-wrap {
    border: 1px solid var(--rule);
    border-radius: 14px;
    background: var(--paper-2);
    overflow: hidden;
}
.paper-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.paper-table thead th {
    text-align: left;
    padding: .85rem 1rem;
    background: var(--paper);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    border-bottom: 1px solid var(--rule);
}
.paper-table tbody td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    vertical-align: middle;
}
.paper-table tbody tr:last-child td { border-bottom: 0; }
.paper-table tbody tr:hover td { background: color-mix(in srgb, var(--paper) 50%, var(--paper-2)); }
.paper-table__mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.paper-table__muted { color: var(--ink-3); font-size: .8125rem; }

/* ───── Transaction cards (mobile) ───── */
.paper-tx-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}
.paper-tx-card {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .375rem;
}
.paper-tx-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.paper-tx-card__id {
    font-size: .75rem;
    color: var(--ink-3);
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
}
.paper-tx-card__title {
    margin: 0;
    font-size: .9375rem;
    color: var(--ink);
    line-height: 1.4;
}
.paper-tx-card__foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .8125rem;
}
.paper-tx-card__foot strong {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
}
.paper-tx-card__foot span { color: var(--ink-3); }

/* ───── Certificate cards ───── */
.paper-cert-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) { .paper-cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .paper-cert-grid { grid-template-columns: repeat(3, 1fr); } }
.paper-cert-card {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.paper-cert-card:hover { transform: translateY(-3px); box-shadow: 0 18px 32px -18px rgba(38,28,16,.3); }
.paper-cert-card__thumb {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--burgundy-soft), var(--sand));
    display: grid;
    place-items: center;
    color: var(--burgundy);
    font-size: 3rem;
    border-bottom: 1px solid var(--rule);
}
.paper-cert-card__body {
    padding: 1.1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.paper-cert-card__eyebrow {
    font-size: .6875rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--ink-3);
    margin-bottom: .25rem;
}
.paper-cert-card__title {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0 0 .35rem;
    color: var(--ink);
    line-height: 1.25;
}
.paper-cert-card__meta { font-size: .8125rem; color: var(--ink-3); }

/* ───── Personal info ───── */
.paper-profile-info {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 1.5rem;
}
@media (min-width: 768px) { .paper-profile-info { padding: 2rem; } }
.paper-profile-info__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.paper-profile-info__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 1.5rem;
    margin: 0;
}
@media (min-width: 640px) { .paper-profile-info__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .paper-profile-info__grid { grid-template-columns: repeat(3, 1fr); } }
.paper-profile-info__field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.paper-profile-info__field--wide { grid-column: 1 / -1; }
.paper-profile-info__field dt {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.paper-profile-info__field dd {
    margin: 0;
    font-size: .9375rem;
    color: var(--ink);
    word-break: break-word;
}
.paper-profile-info__foot {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 639.98px) {
    .paper-profile-info__foot > * { width: 100%; justify-content: center; }
}

/* ───── Alerts ───── */
.paper-alert {
    display: flex;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--rule);
    background: var(--paper);
    margin-bottom: 1.25rem;
    font-size: .875rem;
    color: var(--ink-2);
}
.paper-alert ion-icon { font-size: 1.2rem; flex: 0 0 auto; }
.paper-alert p { margin: .25rem 0 0; color: var(--ink-3); font-size: .8125rem; }
.paper-alert--warning { background: color-mix(in srgb, var(--sand) 70%, var(--paper)); border-color: color-mix(in srgb, var(--sand) 70%, var(--ink-3)); }
.paper-alert--success { background: var(--sage); border-color: color-mix(in srgb, var(--sage) 60%, var(--ink-3) 30%); color: #243319; }
.paper-alert--danger  { background: var(--burgundy-soft); border-color: color-mix(in srgb, var(--burgundy) 30%, var(--rule)); color: var(--burgundy); }


/* =====================================================================
   Paper form (profile settings)
   ===================================================================== */
.paper-form-head {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: .5rem;
}
.paper-form-back {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: var(--ink-3);
    font-size: .8125rem;
    font-weight: 600;
    width: max-content;
}
.paper-form-back:hover { color: var(--burgundy); }
.paper-form-title {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    color: var(--ink);
    margin: .25rem 0 0;
}

.paper-form { display: flex; flex-direction: column; gap: 1.25rem; }

.paper-form-section {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 1.5rem;
}
@media (min-width: 768px) { .paper-form-section { padding: 2rem; } }
.paper-form-section__head { margin-bottom: 1.25rem; }
.paper-form-section__title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 1.25rem;
    margin: 0 0 .15rem;
    color: var(--ink);
}
.paper-form-section__sub { margin: 0; color: var(--ink-3); font-size: .875rem; }

.paper-form-section__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 768px) {
    .paper-form-section__body { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
}

.paper-field { display: flex; flex-direction: column; gap: .375rem; min-width: 0; }
.paper-field--wide { grid-column: 1 / -1; }
.paper-field__label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink-2);
}
.paper-field__opt {
    color: var(--ink-3);
    font-weight: 400;
    margin-left: .25rem;
    text-transform: lowercase;
}
.paper-field__hint { font-size: .75rem; color: var(--ink-3); margin-top: .15rem; }
.paper-field__error {
    font-size: .75rem;
    color: var(--burgundy);
    margin-top: .15rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

/* Inputs */
.aaid-studyclub-paper-theme-theme .paper-input,
.paper-input {
    width: 100%;
    padding: .7rem .9rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.paper-input::placeholder { color: color-mix(in srgb, var(--ink-3) 80%, transparent); }
.paper-input:focus,
.paper-input:focus-visible {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--burgundy) 18%, transparent);
    background: var(--paper-2);
}
.paper-input:disabled,
.paper-input[readonly] {
    background: color-mix(in srgb, var(--rule) 30%, var(--paper));
    color: var(--ink-3);
    cursor: not-allowed;
}
.paper-textarea { resize: vertical; min-height: 5rem; }

/* Native select wrapper for chevron */
.paper-select-wrap { position: relative; }
.paper-select-wrap__icon {
    position: absolute;
    right: .9rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--ink-3);
    font-size: 1rem;
}
.paper-select,
.aaid-studyclub-paper-theme-theme .paper-select,
.paper-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.25rem;
    background-image: none;
    width: 100%;
    padding: .7rem 2.25rem .7rem .9rem;
    background-color: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 10px;
    font: inherit;
    color: var(--ink);
    font-size: .9375rem;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.paper-select-wrap select:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--burgundy) 18%, transparent);
}

/* Segmented control */
.paper-segmented {
    display: inline-flex;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 9999px;
    padding: 4px;
    gap: 4px;
    width: max-content;
    max-width: 100%;
}
.paper-segmented__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.paper-segmented__option {
    padding: .55rem 1.1rem;
    border-radius: 9999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-3);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    user-select: none;
    white-space: nowrap;
}
.paper-segmented__input:checked + .paper-segmented__option {
    background: var(--burgundy);
    color: #fff;
    box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--burgundy) 60%, transparent);
}
.paper-segmented__input:focus-visible + .paper-segmented__option {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--burgundy) 25%, transparent);
}

/* Avatar + file picker */
.paper-avatar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.paper-avatar-row__img,
.paper-avatar-row__placeholder {
    width: 80px;
    height: 80px;
    border-radius: 9999px;
    border: 1px solid var(--rule);
    object-fit: cover;
    background: var(--paper);
}
.paper-avatar-row__placeholder {
    display: grid;
    place-items: center;
    color: var(--ink-3);
    font-size: 1.8rem;
}
.paper-file {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    flex: 1 1 auto;
    min-width: 0;
    border: 1px dashed var(--rule);
    border-radius: 12px;
    padding: .55rem .55rem .55rem 1rem;
    background: var(--paper);
    cursor: pointer;
}
.paper-file:hover { border-color: var(--burgundy); }
.paper-file__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
.paper-file__cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .85rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 9999px;
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
}
.paper-file__name {
    font-size: .8125rem;
    color: var(--ink-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form footer actions */
.paper-form-foot {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
    padding-top: .5rem;
}
@media (max-width: 639.98px) {
    .paper-form-foot { flex-direction: column-reverse; }
    .paper-form-foot > * { width: 100%; }
}

/* =====================================================================
   Paper speakers / faculty index
   ===================================================================== */
.paper-speakers {
    padding: 2rem 0 3.5rem;
    background: var(--paper);
}
.paper-speakers .paper-container { display: flex; flex-direction: column; gap: 1.5rem; }

/* Page header */
.paper-speakers__head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .paper-speakers__head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 2rem;
    }
}
.paper-speakers__title {
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
    color: var(--ink);
    margin: .5rem 0 .5rem;
}
.paper-speakers__sub {
    color: var(--ink-3);
    font-size: .9375rem;
    max-width: 38rem;
    line-height: 1.55;
}
.paper-speakers__meta { flex: 0 0 auto; }

/* Search bar */
.paper-speakers__search {
    position: relative;
    max-width: 36rem;
}
.paper-speakers__search input.paper-input {
    padding-left: 2.6rem;
    padding-right: 2.6rem;
    font-size: 1rem;
}
.paper-speakers__search-icon {
    position: absolute;
    top: 50%;
    left: .9rem;
    transform: translateY(-50%);
    color: var(--ink-3);
    font-size: 1.1rem;
    pointer-events: none;
}
.paper-speakers__search-clear {
    position: absolute;
    top: 50%;
    right: .55rem;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    border: 0;
    background: var(--rule);
    color: var(--ink);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.paper-speakers__search-clear:hover { background: var(--burgundy); color: var(--paper); }

/* Grid */
.paper-speakers__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
@media (min-width: 480px) { .paper-speakers__grid { gap: 1rem; } }
@media (min-width: 768px) { .paper-speakers__grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width: 1024px) { .paper-speakers__grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* Card */
.aaid-studyclub-paper-theme-theme a.paper-speakers__card,
.paper-speakers__card {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.aaid-studyclub-paper-theme-theme a.paper-speakers__card:hover,
.paper-speakers__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 38px -22px rgba(38, 28, 16, .3);
    border-color: color-mix(in srgb, var(--burgundy) 30%, var(--rule));
    color: var(--ink);
}
.paper-speakers__portrait {
    border-radius: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.paper-speakers__portrait img { object-position: center top; }

/* Arrow chip top-right */
.paper-speakers__card-arrow {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--paper-2) 88%, transparent);
    backdrop-filter: blur(4px);
    color: var(--burgundy);
    display: grid;
    place-items: center;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
    z-index: 2;
}
.paper-speakers__card:hover .paper-speakers__card-arrow {
    opacity: 1;
    transform: translateY(0);
    background: var(--burgundy);
    color: var(--paper);
}

/* Card body */
.paper-speakers__card-body {
    padding: .9rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1 1 auto;
    min-width: 0;
}
.paper-speakers__card-name {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.paper-speakers__card-degree {
    font-size: .8125rem;
    color: var(--ink-3);
    margin: .25rem 0 0;
    line-height: 1.3;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.paper-speakers__card-location {
    font-size: .75rem;
    color: var(--ink-3);
    margin: .5rem 0 0;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.paper-speakers__card-location ion-icon { font-size: .85rem; }

@media (max-width: 479.98px) {
    .paper-speakers__card-body { padding: .75rem .85rem 1rem; }
    .paper-speakers__card-name { font-size: 1rem; }
    .paper-speakers__card-degree { font-size: .75rem; }
}

/* =====================================================================
   Paper homepage speakers-carousel tile (smaller on mobile)
   ===================================================================== */
.paper-speaker-tile {
    display: block;
    flex: 0 0 auto;
    width: 120px;
}
@media (min-width: 480px) { .paper-speaker-tile { width: 140px; } }
@media (min-width: 640px) { .paper-speaker-tile { width: 160px; } }
@media (min-width: 768px) { .paper-speaker-tile { width: 180px; } }

.paper-speaker-tile__name {
    margin-top: .5rem;
    font-weight: 600;
    font-size: .8125rem;
    line-height: 1.25;
    color: var(--ink);
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) {
    .paper-speaker-tile__name { font-size: .875rem; margin-top: .75rem; }
}
.paper-speaker-tile__degree {
    font-size: .6875rem;
    color: var(--ink-3);
    line-height: 1.3;
    margin-top: .15rem;
    /* clamp to 1 line on mobile to keep tile heights even */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) {
    .paper-speaker-tile__degree { font-size: .75rem; -webkit-line-clamp: 2; }
}

/* =====================================================================
   Paper homepage "Featured faculty" grid (2 cols mobile, 3 cols ≥768)
   ===================================================================== */
.paper-speakers-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
@media (min-width: 480px) { .paper-speakers-feature-grid { gap: 1rem; } }
@media (min-width: 768px) { .paper-speakers-feature-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.paper-speakers-feature-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.paper-speakers-feature-card__body {
    padding: .75rem .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1 1 auto;
}
@media (min-width: 768px) { .paper-speakers-feature-card__body { padding: 1.25rem; gap: .5rem; } }
.paper-speakers-feature-card__name {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) { .paper-speakers-feature-card__name { font-size: 1.125rem; font-weight: 600; } }
.paper-speakers-feature-card__degree {
    font-size: .75rem;
    color: var(--ink-3);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 768px) { .paper-speakers-feature-card__degree { font-size: .875rem; -webkit-line-clamp: 2; } }
.paper-speakers-feature-card__desc {
    font-size: .8125rem;
    color: var(--ink-2);
    line-height: 1.4;
    margin: 0;
    /* hide on mobile to save room — show from ≥640 px */
    display: none;
}
@media (min-width: 640px) {
    .paper-speakers-feature-card__desc {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* =====================================================================
   Paper premium-video detail page
   ===================================================================== */
.paper-video-detail {
    padding: 1rem 0 3rem;
    background: var(--paper);
}
@media (min-width: 768px) { .paper-video-detail { padding: 1.5rem 0 4rem; } }
.paper-video-detail .paper-container { display: flex; flex-direction: column; gap: 1.25rem; }

/* Breadcrumb */
.paper-breadcrumb {
    font-size: .75rem;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.aaid-studyclub-paper-theme-theme a.paper-breadcrumb a,
.paper-breadcrumb a { color: var(--ink-3); }
.paper-breadcrumb a:hover { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; }
.paper-breadcrumb__current { color: var(--ink); font-weight: 500; }

/* Layout: 8/4 grid on desktop */
.paper-video-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 1024px) {
    .paper-video-layout {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }
}
.paper-video-layout__main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.paper-video-layout__sidebar { display: none; }
@media (min-width: 1024px) { .paper-video-layout__sidebar { display: block; } }

/* Player */
.paper-video-player {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 36px -20px rgba(38, 28, 16, .35);
}
.paper-video-player .video-js {
    width: 100%;
    height: auto;
    border-radius: 16px;
}
.paper-video-player .vjs-big-play-button {
    background: rgba(0,0,0,.6);
    border: 2px solid #fff;
    border-radius: 50%;
    width: 3.2em;
    height: 3.2em;
    line-height: 3.2em;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Title block */
.paper-video-title {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 1.25rem;
}
@media (min-width: 768px) { .paper-video-title { padding: 1.75rem; } }
.paper-video-title__heading {
    font-size: clamp(1.35rem, 1rem + 2vw, 2.25rem);
    color: var(--ink);
    margin: .5rem 0 .25rem;
    line-height: 1.15;
}
.paper-video-title__course {
    margin: .35rem 0 0;
    font-size: .8125rem;
    color: var(--ink-3);
}
.paper-video-title__course a {
    color: var(--burgundy);
    font-weight: 600;
}
.paper-video-title__course a:hover { text-decoration: underline; text-underline-offset: 2px; }
.paper-video-title__meta {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .5rem;
}

/* Generic section block inside the page */
.paper-video-section {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 1.25rem;
}
@media (min-width: 768px) { .paper-video-section { padding: 1.75rem; } }
.paper-video-section__head {
    margin-bottom: 1.1rem;
}
.paper-video-section__title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--ink);
    margin: .4rem 0 0;
}
@media (min-width: 768px) { .paper-video-section__title { font-size: 1.5rem; } }
.paper-video-section__sub { margin: .25rem 0 0; color: var(--ink-3); font-size: .85rem; }

/* Faculty chip row */
.paper-faculty-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: .75rem;
}
.aaid-studyclub-paper-theme-theme a.paper-faculty-chip,
.paper-faculty-chip {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    border-radius: 14px;
    border: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.aaid-studyclub-paper-theme-theme a.paper-faculty-chip:hover,
.paper-faculty-chip:hover {
    border-color: color-mix(in srgb, var(--burgundy) 30%, var(--rule));
    background: var(--paper-2);
    transform: translateY(-1px);
    color: var(--ink);
}
.paper-faculty-chip__avatar {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--sand);
    display: grid;
    place-items: center;
    color: var(--ink-3);
    border: 1px solid var(--rule);
}
.paper-faculty-chip__avatar img { width: 100%; height: 100%; object-fit: cover; }
.paper-faculty-chip__body { display: flex; flex-direction: column; min-width: 0; }
.paper-faculty-chip__name {
    font-weight: 600;
    font-size: .8125rem;
    color: var(--ink);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.paper-faculty-chip__role {
    font-size: .7rem;
    color: var(--ink-3);
    line-height: 1.2;
}

/* Prose for descriptions */
.paper-prose {
    color: var(--ink-2);
    font-size: .95rem;
    line-height: 1.65;
}
.paper-prose p { margin: 0 0 .75rem; }
.paper-prose p:last-child { margin-bottom: 0; }
.paper-prose ul, .paper-prose ol { margin: .5rem 0 .75rem 1.25rem; }
.paper-prose li { margin-bottom: .25rem; }
.paper-prose a { color: var(--burgundy); text-decoration: underline; text-underline-offset: 2px; }
.paper-prose strong { color: var(--ink); }

/* Chapters */
.paper-chapters {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.paper-chapter-section {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 12px;
    overflow: hidden;
}
.paper-chapter-section[open] {
    border-color: color-mix(in srgb, var(--burgundy) 18%, var(--rule));
}
.paper-chapter-section__head {
    list-style: none;
    cursor: pointer;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 600;
    color: var(--ink);
    font-size: .9rem;
}
.paper-chapter-section__head::-webkit-details-marker { display: none; }
.paper-chapter-section__name { flex: 1 1 auto; }
.paper-chapter-section__count {
    background: var(--rule);
    color: var(--ink-2);
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .55rem;
    border-radius: 9999px;
    letter-spacing: .04em;
}
.paper-chapter-section__chev {
    color: var(--ink-3);
    transition: transform .2s ease;
}
.paper-chapter-section[open] .paper-chapter-section__chev { transform: rotate(180deg); }

.paper-chapter-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
    background: var(--paper-2);
}
.paper-chapter-list li + li { border-top: 1px solid var(--rule); }
.aaid-studyclub-paper-theme-theme a.paper-chapter-row,
.paper-chapter-row {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .8rem 1rem;
    color: var(--ink-2);
    transition: background .15s ease, color .15s ease;
}
.paper-chapter-row:hover { background: var(--paper); color: var(--ink); }
.paper-chapter-row.is-active {
    background: color-mix(in srgb, var(--burgundy-soft) 60%, var(--paper-2));
    color: var(--burgundy);
    border-left: 3px solid var(--burgundy);
    padding-left: calc(1rem - 3px);
}
.paper-chapter-row__num {
    font-variant-numeric: tabular-nums;
    font-size: .75rem;
    font-weight: 700;
    color: var(--ink-3);
    flex: 0 0 auto;
    min-width: 1.75rem;
}
.paper-chapter-row.is-active .paper-chapter-row__num { color: var(--burgundy); }
.paper-chapter-row__body { flex: 1 1 auto; min-width: 0; }
.paper-chapter-row__title {
    display: block;
    font-size: .875rem;
    line-height: 1.35;
    color: inherit;
}
.paper-chapter-row__status {
    color: var(--ink-3);
    flex: 0 0 auto;
    font-size: 1.1rem;
}
.paper-chapter-row.is-active .paper-chapter-row__status { color: var(--burgundy); }

/* Sticky sidebar */
.paper-video-sticky {
    position: sticky;
    top: 96px;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.paper-video-sticky__title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--ink);
    margin: .35rem 0 .35rem;
    line-height: 1.2;
}
.paper-video-sticky__meta { font-size: .8rem; color: var(--ink-3); margin: 0; }
.paper-video-sticky__faculty { font-size: .8rem; color: var(--ink-3); margin: .35rem 0 0; }

/* ─────────── Related video card grid + card ─────────── */
.paper-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 600px) { .paper-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .paper-video-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.aaid-studyclub-paper-theme-theme a.paper-video-card,
.paper-video-card {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.aaid-studyclub-paper-theme-theme a.paper-video-card:hover,
.paper-video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -20px rgba(38, 28, 16, .3);
    border-color: color-mix(in srgb, var(--burgundy) 25%, var(--rule));
    color: var(--ink);
}
.paper-video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--sand);
    overflow: hidden;
}
.paper-video-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.paper-video-card__thumb-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 3rem;
    color: color-mix(in srgb, var(--ink) 35%, transparent);
}
.paper-video-card__badge {
    position: absolute;
    bottom: .55rem;
    left: .55rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .55rem;
    border-radius: 9999px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1;
    backdrop-filter: blur(6px);
}
.paper-video-card__badge ion-icon { font-size: .8rem; }
.paper-video-card__badge--premium {
    background: color-mix(in srgb, var(--burgundy) 90%, transparent);
    color: #fff;
}
.paper-video-card__badge--free {
    background: color-mix(in srgb, var(--sage) 80%, transparent);
    color: #243319;
}
.paper-video-card__featured {
    position: absolute;
    top: .55rem;
    right: .55rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .55rem;
    border-radius: 9999px;
    font-size: .65rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--sand) 95%, transparent);
    color: #6c4a14;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.paper-video-card__featured ion-icon { color: #c98a18; font-size: .75rem; }

.paper-video-card__body {
    padding: 1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    flex: 1 1 auto;
}
.paper-video-card__title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--ink);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.paper-video-card__desc {
    color: var(--ink-3);
    font-size: .8125rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.paper-video-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    font-size: .75rem;
    color: var(--ink-3);
    padding-top: .5rem;
    border-top: 1px solid var(--rule);
}
.paper-video-card__meta-item { display: inline-flex; align-items: center; gap: .25rem; }
.paper-video-card__meta-item ion-icon { font-size: .85rem; }
.paper-video-card__price {
    margin-left: auto;
    color: var(--burgundy);
    font-weight: 700;
    font-size: .875rem;
}
.paper-video-card__cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--burgundy);
    margin-top: .25rem;
}
.paper-video-card__cta ion-icon { transition: transform .2s ease; }
.paper-video-card:hover .paper-video-card__cta ion-icon { transform: translateX(3px); }

/* Pagination */
.paper-video-pagination {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}
.paper-video-pagination .pagination {
    display: flex;
    gap: .25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}
.paper-video-pagination .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink-2);
    font-size: .85rem;
    font-weight: 600;
    padding: 0 .65rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.paper-video-pagination .page-item .page-link:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.paper-video-pagination .page-item.active .page-link,
.paper-video-pagination .page-item.current .page-link {
    background: var(--burgundy);
    color: #fff;
    border-color: var(--burgundy);
}
.paper-video-pagination .page-item.disabled .page-link {
    opacity: .4;
    pointer-events: none;
}

/* =====================================================================
   Paper premium-video sales (show_unpaid) — high-conversion layout
   ===================================================================== */
.paper-video-sales {
    padding: 1rem 0 5.5rem; /* extra bottom padding so sticky bar doesn't hide content */
    background: var(--paper);
}
@media (min-width: 768px) { .paper-video-sales { padding: 1.5rem 0 4rem; } }
.paper-video-sales .paper-container { display: flex; flex-direction: column; gap: 1.5rem; }

/* ─────────── Hero ─────────── */
/* ─────────── New hero: banner on top, two-col grid below ─────────── */
.paper-video-sales__hero {
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.paper-video-sales__hero-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    background:
        radial-gradient(140% 100% at 20% 0%, color-mix(in srgb, var(--burgundy-soft) 70%, transparent) 0%, transparent 65%),
        radial-gradient(120% 100% at 100% 100%, color-mix(in srgb, var(--sand) 75%, transparent) 0%, transparent 65%),
        var(--paper);
    overflow: hidden;
}
@media (max-width: 639.98px) { .paper-video-sales__hero-banner { aspect-ratio: 16 / 9; } }
.aaid-studyclub-paper-theme-theme .paper-video-sales__hero-banner img,
.paper-video-sales__hero-banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}
.paper-video-sales__hero-fallback {
    display: grid;
    place-items: center;
    color: color-mix(in srgb, var(--ink) 35%, transparent);
    font-size: 4rem;
    width: 100%;
    height: 100%;
}
.paper-video-sales__hero-ce {
    position: absolute;
    top: .85rem;
    left: .85rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border-radius: 9999px;
    background: var(--burgundy);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--burgundy) 70%, transparent);
}

.paper-video-sales__hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
}
@media (min-width: 768px) {
    .paper-video-sales__hero-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
        gap: 2rem;
        padding: 2rem 2.25rem;
        align-items: start;
    }
}

.paper-video-sales__hero-text {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    min-width: 0;
}
.paper-video-sales__hero-buy {
    background: color-mix(in srgb, var(--paper) 60%, var(--paper-2));
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 1.1rem 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    scroll-margin-top: 90px;
}
@media (min-width: 768px) {
    .paper-video-sales__hero-buy { padding: 1.5rem; position: sticky; top: 96px; }
}

.paper-video-sales__title {
    font-size: clamp(1.45rem, 1rem + 2.5vw, 2.5rem);
    line-height: 1.1;
    color: var(--ink);
    margin: 0;
}
.paper-video-sales__lede {
    color: var(--ink-2);
    font-size: .95rem;
    line-height: 1.55;
    margin: 0;
}
.paper-video-sales__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .5rem;
}

/* Faculty avatar stack in hero */
.paper-video-sales__faculty-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-top: .25rem;
}
.paper-video-sales__faculty-stack { display: inline-flex; flex: 0 0 auto; align-items: center; }
.aaid-studyclub-paper-theme-theme .paper-video-sales__faculty-avatar,
.paper-video-sales__faculty-avatar {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    flex: 0 0 30px;
    border-radius: 9999px;
    border: 2px solid var(--paper-2);
    background: var(--sand);
    overflow: hidden;
    margin-left: -8px;
    color: var(--ink-3);
    font-size: .8rem;
    box-sizing: border-box;
    line-height: 0;
}
.paper-video-sales__faculty-avatar:first-child { margin-left: 0; }
.aaid-studyclub-paper-theme-theme .paper-video-sales__faculty-avatar img,
.paper-video-sales__faculty-avatar img {
    width: 30px !important;
    height: 30px !important;
    max-width: none !important;
    object-fit: cover;
    border-radius: 9999px;
    display: block;
}
.paper-video-sales__faculty-meta { font-size: .8125rem; color: var(--ink-3); line-height: 1.4; }
.paper-video-sales__faculty-meta strong { color: var(--ink); font-weight: 600; }

/* Price bar inside hero buy card */
.paper-video-sales__price-bar {
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--rule);
    margin-bottom: .25rem;
}
.paper-video-sales__price {
    display: inline-flex;
    align-items: baseline;
    gap: .65rem;
    flex-wrap: wrap;
}
.paper-video-sales__price-now {
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.4rem);
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
}
.paper-video-sales__price-old {
    color: var(--ink-3);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    font-size: 1.05rem;
}
.paper-video-sales__price--free,
.paper-video-sales__price--members {
    align-self: flex-start;
    padding: .4rem .8rem;
    border-radius: 9999px;
    font-size: .9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.paper-video-sales__price--free { background: var(--sage); color: #243319; }
.paper-video-sales__price--members { background: var(--burgundy); color: #fff; }
.paper-video-sales__discount-chip { transform: translateY(-.2rem); }
.paper-video-sales__price-sub { font-size: .75rem; color: var(--ink-3); margin: .25rem 0 0; }

.paper-video-sales__cta-row {
    display: flex;
    flex-direction: column;
    gap: .65rem;
    scroll-margin-top: 90px;
}

.paper-video-sales__assurances {
    list-style: none;
    margin: .15rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1rem;
    font-size: .75rem;
    color: var(--ink-3);
}
.paper-video-sales__assurances li {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.paper-video-sales__assurances ion-icon { color: var(--burgundy); font-size: .9rem; }

/* Registration card variant used inside hero */
.paper-reg-card { display: flex; flex-direction: column; gap: .65rem; }
.paper-btn-primary--block,
.paper-btn-outline--block { width: 100%; }
.paper-reg-card__secondary { align-self: center; }

.paper-reg-card__countdown {
    background: var(--burgundy-soft);
    color: var(--burgundy);
    border-radius: 14px;
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    border: 1px solid color-mix(in srgb, var(--burgundy) 25%, var(--rule));
}
.paper-reg-card__countdown-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    color: var(--burgundy);
}
.paper-reg-card__countdown-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4rem;
    text-align: center;
}
.paper-reg-card__countdown-track > div {
    background: rgba(255,255,255,.55);
    border-radius: 8px;
    padding: .35rem .25rem;
}
.paper-reg-card__countdown-track strong {
    display: block;
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.15rem;
    color: var(--burgundy);
    font-weight: 600;
    line-height: 1;
}
.paper-reg-card__countdown-track span {
    font-size: .65rem;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.paper-reg-card__meta {
    margin: .25rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    font-size: .8125rem;
    color: var(--ink-3);
}
.paper-reg-card__meta li { display: inline-flex; align-items: center; gap: .5rem; }
.paper-reg-card__meta ion-icon { color: var(--burgundy); font-size: .95rem; flex: 0 0 auto; }
.paper-reg-card__meta strong { color: var(--ink); font-weight: 600; }

/* ─────────── Trust strip ─────────── */
.paper-video-sales__trust {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
    padding: 1rem;
    background: var(--paper-2);
    border: 1px solid var(--rule);
    border-radius: 16px;
}
@media (min-width: 640px) { .paper-video-sales__trust { grid-template-columns: repeat(4, 1fr); padding: 1.25rem; } }
.paper-video-sales__trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .15rem;
}
.paper-video-sales__trust-item strong {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
}
@media (min-width: 640px) { .paper-video-sales__trust-item strong { font-size: 1.75rem; } }
.paper-video-sales__trust-item span {
    font-size: .7rem;
    color: var(--ink-3);
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ─────────── Benefits grid ─────────── */
.paper-video-sales__benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: .9rem;
}
@media (min-width: 640px) { .paper-video-sales__benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .paper-video-sales__benefits { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.paper-video-sales__benefit {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.paper-video-sales__benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    background: var(--burgundy-soft);
    color: var(--burgundy);
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    margin-bottom: .25rem;
}
.paper-video-sales__benefit-title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0;
}
.paper-video-sales__benefit-desc { color: var(--ink-3); font-size: .8125rem; line-height: 1.5; margin: 0; }

/* ─────────── Faculty grid ─────────── */
.paper-video-sales__faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}
@media (min-width: 768px) { .paper-video-sales__faculty-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .paper-video-sales__faculty-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
.aaid-studyclub-paper-theme-theme a.paper-video-sales__faculty-card,
.paper-video-sales__faculty-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease;
    padding-bottom: .9rem;
}
.paper-video-sales__faculty-card:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -20px rgba(38,28,16,.3); color: var(--ink); }
.paper-video-sales__faculty-card .paper-portrait { border-radius: 0; }
.paper-video-sales__faculty-name {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: .95rem;
    line-height: 1.25;
    margin: .75rem .9rem 0;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.paper-video-sales__faculty-degree { font-size: .7rem; color: var(--ink-3); margin: .15rem .9rem 0; line-height: 1.3; }
.paper-video-sales__faculty-role { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--burgundy); margin: .35rem .9rem 0; }

/* Locked chapter rows on sales page */
.paper-chapter-row--locked .paper-chapter-row__status,
.paper-chapter-row--locked .paper-chapter-row__title { color: var(--ink-3); }
.paper-chapter-section__index {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-right: .5rem;
}

/* ─────────── Mid-page CTA ─────────── */
.paper-video-sales__midcta {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-2) 100%);
    color: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: 0 24px 40px -22px rgba(38, 28, 16, .4);
}
@media (min-width: 768px) {
    .paper-video-sales__midcta { flex-direction: row; align-items: center; justify-content: space-between; padding: 2rem 2.25rem; }
}
.paper-video-sales__midcta .paper-eyebrow {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.85);
}
.paper-video-sales__midcta .paper-eyebrow__dot { background: #fff; }
.paper-video-sales__midcta-title {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.35rem, 1.1rem + 1.5vw, 1.85rem);
    line-height: 1.15;
    color: #fff;
    margin: .5rem 0 .35rem;
    max-width: 32rem;
}
.paper-video-sales__midcta-sub { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; max-width: 32rem; }
.paper-video-sales__midcta-actions { flex: 0 0 auto; }
.paper-video-sales__midcta-actions .paper-btn-primary {
    background: #fff;
    color: var(--burgundy);
    box-shadow: 0 8px 20px -8px rgba(0,0,0,.4);
}
.paper-video-sales__midcta-actions .paper-btn-primary:hover {
    background: var(--paper);
    color: var(--burgundy-2);
}

/* ─────────── FAQ ─────────── */
.paper-faq {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.paper-faq__item {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: .9rem 1.1rem;
    cursor: pointer;
}
.paper-faq__item[open] { border-color: color-mix(in srgb, var(--burgundy) 25%, var(--rule)); }
.paper-faq__item summary {
    list-style: none;
    font-weight: 600;
    color: var(--ink);
    font-size: .95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}
.paper-faq__item summary::-webkit-details-marker { display: none; }
.paper-faq__item summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--burgundy);
    font-weight: 400;
    line-height: 1;
    transition: transform .2s ease;
}
.paper-faq__item[open] summary::after { content: "−"; }
.paper-faq__item p {
    margin: .55rem 0 0;
    color: var(--ink-2);
    font-size: .875rem;
    line-height: 1.55;
}

/* ─────────── Sticky bottom CTA bar (mobile) ─────────── */
.paper-video-stickybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--paper-2) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0));
    display: flex;
    align-items: center;
    gap: .75rem;
    box-shadow: 0 -8px 24px -10px rgba(38,28,16,.18);
}
@media (min-width: 900px) { .paper-video-stickybar { display: none; } }
.paper-video-stickybar__price {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.paper-video-stickybar__price strong {
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.2rem;
    color: var(--ink);
    font-weight: 600;
}
.paper-video-stickybar__old {
    font-size: .7rem;
    color: var(--ink-3);
    text-decoration: line-through;
}
.paper-video-stickybar__cta {
    margin-left: auto;
    padding: .65rem 1.1rem !important;
    font-size: .9rem !important;
}

/* =====================================================================
   Paper sales — single-faculty hero card (when only one instructor)
   ===================================================================== */
.aaid-studyclub-paper-theme-theme a.paper-video-sales__faculty-solo,
.paper-video-sales__faculty-solo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 1.25rem;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
@media (min-width: 640px) {
    .paper-video-sales__faculty-solo {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}
.paper-video-sales__faculty-solo:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px -22px rgba(38, 28, 16, .3);
    border-color: color-mix(in srgb, var(--burgundy) 30%, var(--rule));
    color: var(--ink);
}
.paper-video-sales__faculty-solo-portrait {
    position: relative;
    overflow: hidden;
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    border-radius: 9999px;
    background: var(--burgundy-soft);
    border: 2px solid var(--burgundy);
    padding: 3px;
}
@media (min-width: 640px) {
    .paper-video-sales__faculty-solo-portrait { width: 112px; height: 112px; }
}
.aaid-studyclub-paper-theme-theme .paper-video-sales__faculty-solo-portrait img,
.paper-video-sales__faculty-solo-portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: top center;
    border-radius: 9999px;
    display: block;
}
.paper-video-sales__faculty-solo-portrait .paper-portrait__ph {
    position: absolute; inset: 3px; display: grid; place-items: center;
    color: color-mix(in srgb, var(--ink) 35%, transparent); font-size: 2rem;
    border-radius: 9999px;
}
.paper-video-sales__faculty-solo-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    flex: 1 1 auto;
    min-width: 0;
}
.paper-video-sales__faculty-solo-name {
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    line-height: 1.15;
    color: var(--ink);
    margin: .15rem 0 0;
}
.paper-video-sales__faculty-solo-degree {
    font-size: .875rem;
    color: var(--ink-3);
    margin: 0;
}
.paper-video-sales__faculty-solo-bio {
    color: var(--ink-2);
    font-size: .9rem;
    line-height: 1.55;
    margin: .5rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* SweetAlert2 dialogs — paper theme skin (modal is rendered with target = theme wrapper) */
.aaid-studyclub-paper-theme-theme .paper-swal.swal2-popup {
    background: var(--paper-2);
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 2.25rem 2rem 1.75rem;
    font-family: 'IBM Plex Sans', sans-serif;
}
.aaid-studyclub-paper-theme-theme .paper-swal .paper-swal__title {
    font-family: 'Newsreader', serif;
    font-weight: 600;
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1.2;
}
.aaid-studyclub-paper-theme-theme .paper-swal .paper-swal__text {
    color: var(--ink-3);
    font-size: .95rem;
    line-height: 1.6;
}
.aaid-studyclub-paper-theme-theme .paper-swal .paper-swal__actions {
    gap: .75rem;
    margin-top: 1.5rem;
}
.aaid-studyclub-paper-theme-theme .paper-swal .swal2-icon {
    border-color: color-mix(in srgb, var(--teal) 40%, transparent);
}
.aaid-studyclub-paper-theme-theme .paper-swal .swal2-loader {
    border-color: var(--burgundy) transparent var(--burgundy) transparent;
}
.aaid-studyclub-paper-theme-theme .paper-swal .swal2-timer-progress-bar {
    background: var(--burgundy);
}
