/* ============================================================
   Capitalism Library — Capitalism Library Styles
   Sits within FTCN chrome; these styles are Capitalism Library-specific.
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
    /* Capitalism Library brand tokens, derived from FTCN/CLib screenshots.
       Hex values are fallbacks for older browsers; OKLCH overrides them in modern browsers. */
    --crc-bg:         #f7f3e8;
    --crc-bg:         oklch(97% 0.012 78);
    --crc-surface:    #ffffff;
    --crc-surface:    oklch(100% 0 0);
    --crc-text:       #25283a;
    --crc-text:       oklch(19% 0.035 265);
    --crc-text-light: #6c7280;
    --crc-text-light: oklch(47% 0.035 260);
    --crc-border:     #e3e5ea;
    --crc-border:     oklch(89% 0.012 250);

    --crc-navy:       #171c3d;
    --crc-navy:       oklch(18% 0.06 270);
    --crc-navy-light: #252b4c;
    --crc-navy-light: oklch(24% 0.055 265);
    --crc-accent:     #4f91df;        /* FTCN blue: functional accents, hover/active states */
    --crc-accent:     oklch(63% 0.16 255);
    --crc-accent-dk:  #337ab7;
    --crc-gold:       #d3a72b;        /* Capitalism Library brand: hero/banner, CTAs, active states */
    --crc-gold:       oklch(78% 0.16 86);
    --crc-gold-light: #e8c94a;
    --crc-rust:       #a94f28;
    --crc-rust:       oklch(52% 0.17 42);
    --crc-white:      #ffffff;

    --crc-font-display: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
    --crc-font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --crc-font-mono:    'Roboto Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;

    --crc-radius:     10px;
}

/* ── Sections ─────────────────────────────────────────────── */
.crc-section {
    padding: 30px 0;
}

.crc-hero {
    background-color: var(--crc-navy);
    color: var(--crc-white);
    text-align: center;
    padding: 50px 0 40px;
}
.crc-hero h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: var(--crc-gold);
}
.crc-hero-sub {
    font-size: 1.1em;
    color: #c0c0c0;
    max-width: 600px;
    margin: 0 auto;
}

.crc-section-desc {
    color: var(--crc-text-light);
    margin-bottom: 20px;
    font-size: 1em;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.crc-breadcrumb {
    font-size: 0.85em;
    color: var(--crc-text-light);
    margin-bottom: 15px;
    padding: 10px 0;
}
.crc-breadcrumb a {
    color: var(--crc-accent);
    text-decoration: none;
}
.crc-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Card Grid ────────────────────────────────────────────── */
.crc-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    align-items: stretch;
    gap: 20px;
    margin: 20px 0;
}
.crc-card-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

/* ── Cards ────────────────────────────────────────────────── */
.crc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius);
    color: var(--crc-text);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    overflow: hidden;
}
.crc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.crc-card-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.crc-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.crc-card-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--crc-navy);
}
.crc-card-desc {
    font-size: 0.9em;
    color: var(--crc-text-light);
    margin: 0 0 10px;
    line-height: 1.4;
}
.crc-card-badge {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--crc-bg);
    color: var(--crc-text-light);
    padding: 3px 8px;
    border-radius: 3px;
}

/* ── Item Card ──────────────────────────────────────────────
   Individual card in a listing/search/related grid. Each card
   has a navy/gold title header (matching the section headers
   used on Related Thinkers) + a body with optional subtitle,
   description, and a meta row (format + thinker pills).
   Title uses a ::before overlay so the whole card is clickable,
   while the thinker pill (z-index:2) keeps its own click.
   ------------------------------------------------------------ */
.crc-itemcard {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.crc-itemcard:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}
.crc-itemcard__head {
    min-width: 0;
    padding: 12px 18px;
    background: var(--crc-navy);
    border-bottom: 2px solid var(--crc-accent);
}
.crc-itemcard__title {
    margin: 0;
    font-size: 1em;
    font-weight: 700;
    color: var(--crc-gold);
    letter-spacing: 0.3px;
    line-height: 1.3;
    min-height: calc(1em * 1.3 * 3); /* reserve 3 lines so card headers align */
    max-height: calc(1em * 1.3 * 3);
    display: -webkit-box;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.crc-itemcard__link {
    color: inherit;
    text-decoration: none;
}
.crc-itemcard__link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.crc-itemcard__link:hover,
.crc-itemcard__link:focus { text-decoration: none; }
.crc-itemcard__body {
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.crc-itemcard__subtitle {
    font-size: 0.85em;
    color: var(--crc-accent-dk);
    font-style: italic;
    margin-bottom: 8px;
}
.crc-itemcard__desc {
    margin: 0 0 12px;
    font-size: 0.9em;
    color: var(--crc-text-light);
    line-height: 1.5;
    display: -webkit-box;
    min-height: calc(3 * 1.5em);
    max-height: calc(3 * 1.5em);
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
.crc-itemcard__meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    position: relative;
    z-index: 2;  /* above the overlay link so pill clicks work */
}
.crc-itemcard__badge {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--crc-bg);
    color: var(--crc-text-light);
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: 0.3px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.crc-itemcard__duration {
    flex: 1 1 130px;
    min-width: 0;
    color: var(--crc-text-light);
    font-size: 0.78em;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.crc-itemcard__thinker {
    display: inline-flex;
    flex: 1 1 100%;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 30px;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    background: var(--crc-navy);
    color: var(--crc-white);
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.2px;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background 0.15s ease, color 0.15s ease;
}
.crc-itemcard__thinker:hover,
.crc-itemcard__thinker:focus {
    background: var(--crc-accent);
    color: var(--crc-navy);
    text-decoration: none;
}

/* ── List Card ──────────────────────────────────────────────
   Container pattern for the Related Thinkers sidebar: single
   container, stacked rows with dividers, one navy/gold header
   at the top.
   ------------------------------------------------------------ */
.crc-listcard {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}
.crc-listcard__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--crc-navy);
    border-bottom: 2px solid var(--crc-accent);
}
.crc-listcard__title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--crc-gold);
    letter-spacing: 0.3px;
}
.crc-listcard__count {
    color: rgba(255,255,255,0.7);
    font-size: 0.85em;
    font-weight: 600;
}
.crc-listcard__empty {
    padding: 30px 20px;
    color: var(--crc-text-light);
    font-style: italic;
    text-align: center;
    margin: 0;
}
.crc-listcard__body { display: flex; flex-direction: column; }
.crc-listcard__item {
    position: relative;
    padding: 14px 20px;
    border-top: 1px solid var(--crc-border);
    transition: background 0.15s ease;
}
.crc-listcard__item:first-child { border-top: 0; }
.crc-listcard__item:hover { background: var(--crc-bg); }
.crc-listcard__item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.crc-listcard__item-title {
    margin: 0;
    font-size: 1em;
    font-weight: 700;
    color: var(--crc-navy);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}
/* Title link uses a ::before overlay so the whole row is clickable,
   while inner links (e.g. Thinker pill) sit above via z-index. */
.crc-listcard__item-link {
    color: inherit;
    text-decoration: none;
}
.crc-listcard__item-link::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.crc-listcard__item-link:hover,
.crc-listcard__item-link:focus { text-decoration: none; }
.crc-listcard__item-arrow {
    flex-shrink: 0;
    display: flex;
    color: var(--crc-text-light);
    transition: transform 0.15s ease, color 0.15s ease;
}
.crc-listcard__item:hover .crc-listcard__item-arrow {
    color: var(--crc-accent);
    transform: translate(2px, -2px);
}
.crc-listcard__item-subtitle {
    margin-top: 4px;
    font-size: 0.9em;
    color: var(--crc-accent-dk);
    font-style: italic;
}
.crc-listcard__item-desc {
    margin: 6px 0 0;
    font-size: 0.9em;
    color: var(--crc-text-light);
    line-height: 1.5;
}
.crc-listcard__item-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;  /* above the overlay link so pill clicks work */
}
.crc-listcard__item-badge {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--crc-bg);
    color: var(--crc-text-light);
    padding: 3px 10px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}
.crc-listcard__item-thinker {
    display: inline-block;
    font-size: 0.72em;
    font-weight: 600;
    background: var(--crc-navy);
    color: var(--crc-white);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    letter-spacing: 0.2px;
    transition: background 0.15s ease, color 0.15s ease;
}
.crc-listcard__item-thinker:hover,
.crc-listcard__item-thinker:focus {
    background: var(--crc-accent);
    color: var(--crc-navy);
    text-decoration: none;
}

/* Homepage cards */
.crc-card-home {
    background: var(--crc-navy-light);
    border-color: rgba(212,175,55,0.2);
}
.crc-card-home .crc-card-title {
    color: var(--crc-gold);
}
.crc-card-home .crc-card-desc {
    color: #a0a0b0;
}
.crc-card-home:hover {
    border-color: var(--crc-accent);
}

/* ── Detail Layout ────────────────────────────────────────── */
.crc-detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin: 20px 0;
}
@media screen and (max-width: 768px) {
    .crc-detail-layout {
        grid-template-columns: 1fr;
    }
}

.crc-detail-title {
    font-size: 1.8em;
    color: var(--crc-navy);
    margin-bottom: 8px;
}
.crc-detail-meta {
    font-size: 0.9em;
    color: var(--crc-text-light);
    margin-bottom: 12px;
}
.crc-detail-desc {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}
.crc-detail-body {
    line-height: 1.7;
    margin-bottom: 20px;
}

.crc-resource-media {
    margin: 20px 0 24px;
}
.crc-resource-media__embed {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--crc-navy);
    border: 1px solid rgba(26, 26, 46, 0.12);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.12);
}
.crc-resource-media__embed::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}
.crc-resource-media__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.crc-resource-media__iframe iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.crc-resource-media__pdf {
    display: block;
    width: 100%;
    min-height: 720px;
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    background: var(--crc-white);
}
.crc-resource-media--consent {
    padding: 20px;
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    background: var(--crc-bg);
}
.crc-resource-media--consent p {
    margin: 0;
}
.crc-resource-media--podcast .crc-resource-media__embed {
    margin-top: 12px;
    background: transparent;
    box-shadow: none;
}
.crc-resource-media--podcast .crc-resource-media__embed::before {
    display: none;
}
.crc-resource-media__podcast-frame {
    display: block;
    width: 100%;
    min-height: 352px;
    border: 0;
    border-radius: 10px;
}

/* Tags row */
.crc-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.crc-tag {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 600;
    background: var(--crc-bg);
    color: var(--crc-text-light);
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid var(--crc-border);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.crc-detail-sidebar {
    padding: 0;
}
.crc-ftcn-pairing {
    background: var(--crc-bg);
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius);
    padding: 20px;
}
.crc-ftcn-pairing h3 {
    font-size: 1em;
    font-weight: 700;
    color: var(--crc-navy);
    margin: 0 0 12px;
}
.crc-ftcn-pairing ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.crc-ftcn-pairing li {
    padding: 6px 0;
    border-bottom: 1px solid var(--crc-border);
}
.crc-ftcn-pairing li:last-child {
    border-bottom: none;
}
.crc-ftcn-pairing a {
    color: var(--crc-gold);
    text-decoration: none;
    font-size: 0.9em;
}
.crc-ftcn-pairing a:hover {
    text-decoration: underline;
}

/* ── Action Row ───────────────────────────────────────────── */
.crc-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.crc-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--crc-radius);
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid transparent;
}
/* FTCN-style CTAs: navy at rest, accent blue on hover, white text throughout */
.crc-btn-primary {
    background: var(--crc-navy);
    color: var(--crc-white);
}
.crc-btn-primary:hover {
    background: var(--crc-accent);
    color: var(--crc-white);
    text-decoration: none;
}
.crc-btn-secondary {
    background: var(--crc-navy);
    color: var(--crc-white);
}
.crc-btn-secondary:hover {
    background: var(--crc-accent);
    color: var(--crc-white);
    text-decoration: none;
}
.crc-btn-outline {
    background: transparent;
    border-color: var(--crc-border);
    color: var(--crc-text-light);
}
.crc-btn-outline:hover {
    border-color: var(--crc-accent);
    color: var(--crc-navy);
    text-decoration: none;
}

/* ── Filter Bar ───────────────────────────────────────────── */
.crc-filter-bar {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--crc-border);
}
.crc-filter-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.crc-filter-group label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--crc-text-light);
}
.crc-filter-select {
    padding: 5px 10px;
    border: 1px solid var(--crc-border);
    border-radius: 4px;
    font-size: 0.85em;
    background: var(--crc-white);
}

/* ── Search ───────────────────────────────────────────────── */
.crc-search-form {
    margin: 20px 0;
}
.crc-search-form form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}
.crc-search-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius);
    font-size: 1em;
}
.crc-search-input:focus {
    outline: none;
    border-color: var(--crc-accent);
}
.crc-search-count {
    color: var(--crc-text-light);
    margin: 15px 0;
}

/* ── Related ──────────────────────────────────────────────── */
.crc-related {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--crc-border);
}
.crc-related h2 {
    font-size: 1.3em;
    color: var(--crc-navy);
    margin-bottom: 15px;
}

/* ── Empty state ──────────────────────────────────────────── */
.crc-empty {
    color: var(--crc-text-light);
    font-style: italic;
    padding: 30px 0;
}

/* ============================================================
   Thinker Detail Page
   Standalone profile layout: hero banner, featured video,
   supporting video row, tabbed content, sidebar. Used only
   for /thinkers/<slug>/.
   ============================================================ */

.crc-thinker-page {
    padding-top: 15px;
}
/* Cap the thinker page container narrower than the default FTCN/Bootstrap
   width. This scales everything down together — banner, player, video row,
   tabs, sidebar — so the video sits at a reasonable size without stranding
   any of the surrounding elements in whitespace. */
.crc-thinker-page .container {
    max-width: 1100px;
    margin-left: auto;   /* explicit centering — some FTCN CSS resets Bootstrap's */
    margin-right: auto;  /* .container auto margins, leaving content left-aligned */
}

/* ── Title banner ─────────────────────────────────────────── */
.crc-thinker-banner {
    background: var(--crc-navy);
    color: var(--crc-white);
    border-radius: 10px 10px 0 0;
    padding: 28px 32px 20px;
}
.crc-thinker-banner__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}
.crc-thinker-banner__titles { min-width: 0; }
.crc-thinker-banner__title {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--crc-white);
}
.crc-thinker-banner__subtitle {
    margin: 4px 0 0;
    font-size: 1.1em;
    font-style: italic;
    color: var(--crc-gold);
}
.crc-thinker-banner__time {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}
.crc-thinker-banner__pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.crc-thinker-pill {
    background: rgba(255,255,255,0.15);
    color: var(--crc-white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.crc-thinker-banner__question {
    display: inline-block;
    max-width: 100%;
    margin-top: 16px;
    padding: 12px 20px;
    background: rgba(212,175,55,0.22);
    border-left: 3px solid var(--crc-gold);
    border-radius: 0 6px 6px 0;
    font-size: 1.05em;
    font-style: italic;
    color: var(--crc-white);
}
.crc-thinker-banner__question-label {
    font-weight: 700;
    font-style: normal;
    margin-right: 4px;
    color: var(--crc-gold);
    letter-spacing: 0.3px;
}

/* ── Two-column layout ────────────────────────────────────── */
.crc-thinker-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-top: 0;
}
.crc-thinker-main {
    background: var(--crc-white);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    min-width: 0;
}
@media screen and (max-width: 900px) {
    .crc-thinker-layout { grid-template-columns: 1fr; }
    .crc-thinker-main   { border-radius: 0 0 10px 10px; }
}

/* ── Inline player + Now Playing band ────────────────────── */
.crc-thinker-player {
    background: var(--crc-white);
}
.crc-thinker-player__embed {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}
.crc-thinker-player__iframe,
.crc-thinker-player__embed > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.crc-thinker-player__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crc-white);
    text-decoration: none;
    background: linear-gradient(135deg, var(--crc-navy), #0d1520);
    font-weight: 600;
}
.crc-thinker-player__info {
    padding: 14px 20px 16px;
    background: #fafbfc;
    border-bottom: 1px solid var(--crc-border);
}
.crc-thinker-player__label {
    font-size: 0.7em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--crc-gold);
    margin-bottom: 4px;
}
.crc-thinker-player__title {
    margin: 0 0 8px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--crc-navy);
    line-height: 1.3;
}
.crc-thinker-player__meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.82em;
    color: var(--crc-text-light);
}
.crc-thinker-player__meta > [hidden] { display: none; }
.crc-thinker-player__badge {
    background: rgba(0,0,0,0.75);
    color: var(--crc-white);
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 3px;
}
.crc-thinker-player__badge.is-ftcn {
    background: var(--crc-gold);
    color: var(--crc-navy);
}
.crc-thinker-player__notes {
    margin: 10px 0 0;
    font-size: 0.85em;
    color: var(--crc-text-light);
    font-style: italic;
    line-height: 1.4;
}
.crc-thinker-player__notes[hidden] { display: none; }
.crc-thinker-player__source-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--crc-gold);
    font-weight: 700;
}

/* ── Supporting videos row ────────────────────────────────── */
.crc-thinker-videos {
    background: #f4f5f7;
    border-bottom: 1px solid var(--crc-border);
    padding: 16px 20px;
}
.crc-thinker-videos__header {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #8a9aaa;
    margin-bottom: 12px;
}
.crc-thinker-videos__row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.crc-thinker-video-card {
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex; flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.crc-thinker-video-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
    text-decoration: none;
    color: inherit;
}
.crc-thinker-video-card.is-active {
    outline: 2px solid var(--crc-accent);
    outline-offset: -2px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.crc-thinker-video-card.is-active .crc-thinker-video-card__title {
    color: var(--crc-navy);
}
.crc-thinker-video-card__thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--crc-navy), #263c5c);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.crc-thinker-video-card__thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.crc-thinker-video-card__play {
    position: relative;
    z-index: 1;
}
.crc-thinker-video-card__badge {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(0,0,0,0.6);
    color: var(--crc-white);
    font-size: 0.6em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 3px;
    z-index: 2;
}
.crc-thinker-video-card__badge.is-ftcn {
    background: var(--crc-gold);
    color: var(--crc-navy);
}
.crc-thinker-video-card__duration {
    position: absolute;
    bottom: 6px; right: 6px;
    background: rgba(0,0,0,0.7);
    color: var(--crc-white);
    font-size: 0.65em;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 2;
}
.crc-thinker-video-card__body { padding: 10px 12px; }
.crc-thinker-video-card__title {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--crc-navy);
    line-height: 1.3;
}
.crc-thinker-video-card__source {
    font-size: 0.7em;
    color: #8a9aaa;
    margin-top: 3px;
}

/* ── Tabs ─────────────────────────────────────────────────── */
.crc-thinker-tabs { background: var(--crc-white); }
.crc-thinker-tabs__nav {
    display: flex;
    border-bottom: 2px solid #eef1f5;
    flex-wrap: wrap;
}
.crc-thinker-tabs__btn {
    background: none;
    border: none;
    padding: 14px 20px;
    font-size: 0.9em;
    font-weight: 400;
    color: var(--crc-text-light);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: -2px;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.crc-thinker-tabs__btn:hover { color: var(--crc-navy); }
.crc-thinker-tabs__btn.is-active {
    font-weight: 700;
    color: var(--crc-navy);
    border-bottom-color: var(--crc-accent);
}
.crc-thinker-tabs__panel { padding: 24px 28px; }
.crc-thinker-tabs__panel[hidden] { display: none; }

/* ── Flat sections (detail-thinker-flat.php) ────────────── */
.crc-thinker-sections {
    background: var(--crc-white);
}
.crc-thinker-section {
    padding: 20px 28px 24px;
    border-top: 2px solid #eef1f5;
}
.crc-thinker-section:first-child { border-top: 0; }
.crc-thinker-section__heading {
    margin: 0 0 16px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--crc-navy);
    text-transform: none;
    letter-spacing: 0.2px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--crc-accent);
    display: inline-block;
}

.crc-thinker-section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--crc-navy);
    margin: 0 0 12px;
}
.crc-thinker-coreidea {
    font-size: 1em;
    line-height: 1.7;
    color: #3a4555;
    margin: 0 0 20px;
}
.crc-thinker-takeaway {
    background: #f8f6f0;
    border: 1px solid #e8dcc8;
    border-radius: 8px;
    padding: 16px 20px;
}
.crc-thinker-takeaway__label {
    font-size: 0.75em;
    font-weight: 700;
    color: #b8860b;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.crc-thinker-takeaway__text {
    font-size: 1em;
    line-height: 1.6;
    color: #3a4555;
    margin: 0;
    font-style: italic;
}
.crc-thinker-tagrow {
    margin-top: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.crc-thinker-chip {
    display: inline-block;
    background: var(--crc-navy);
    color: var(--crc-white);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.crc-thinker-chip:hover,
.crc-thinker-chip:focus {
    background: var(--crc-accent);
    color: var(--crc-navy);
    text-decoration: none;
}

/* ── Sources (Explore the Idea tab) ───────────────────────── */
.crc-thinker-source {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid var(--crc-border);
    text-decoration: none;
    color: inherit;
    margin-bottom: 12px;
}
.crc-thinker-source:last-child { margin-bottom: 0; }
a.crc-thinker-source:hover {
    border-color: #c0c8d0;
    text-decoration: none;
    color: inherit;
}
.crc-thinker-source.is-optional { opacity: 0.85; }
.crc-thinker-source__icon {
    color: #b8860b;
    margin-top: 2px;
    flex-shrink: 0;
}
.crc-thinker-source.is-optional .crc-thinker-source__icon { color: #8a9aaa; }
.crc-thinker-source__body { flex: 1; min-width: 0; }
.crc-thinker-source__title {
    font-weight: 600;
    font-size: 0.95em;
    color: var(--crc-navy);
}
.crc-thinker-source__meta {
    font-size: 0.8em;
    color: var(--crc-text-light);
    margin-top: 2px;
}
.crc-thinker-source__note {
    font-size: 0.85em;
    color: #7a8a9a;
    margin-top: 6px;
    font-style: italic;
}

/* ── Real-World Examples tab ──────────────────────────────── */
.crc-thinker-examples__lead {
    font-size: 0.9em;
    color: var(--crc-text-light);
    margin: 0 0 16px;
}
.crc-thinker-examples {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.crc-thinker-examples__item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fb;
    border-radius: 8px;
    border: 1px solid #eef1f5;
    font-size: 0.95em;
    color: #3a4555;
}
.crc-thinker-examples__check {
    color: #b8860b;
    flex-shrink: 0;
    display: flex;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.crc-thinker-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding-top: 16px;
}
@media screen and (max-width: 900px) {
    .crc-thinker-sidebar { margin-top: 16px; }
}

/* Pair with FTCN card */
.crc-thinker-pair {
    background: var(--crc-white);
    border: 2px solid var(--crc-gold);
    border-radius: 10px;
    overflow: hidden;
}
.crc-thinker-pair__head {
    background: #fdf8ef;
    padding: 14px 20px;
    border-bottom: 1px solid #f0e0c0;
    font-size: 1em;
    font-weight: 700;
    color: var(--crc-navy);
}
.crc-thinker-pair__list {
    list-style: none;
    margin: 0;
    padding: 12px 20px 16px;
}
.crc-thinker-pair__list li {
    border-bottom: 1px solid #f0f2f5;
}
.crc-thinker-pair__list li:last-child { border-bottom: none; }
.crc-thinker-pair__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #3a6fa0;
    text-decoration: none;
    font-size: 0.9em;
}
.crc-thinker-pair__link:hover { text-decoration: underline; }
.crc-thinker-pair__link.is-pending { color: var(--crc-text-light); }
.crc-thinker-pair__link.is-pending:hover { text-decoration: none; cursor: default; }
.crc-thinker-pair__icon { flex-shrink: 0; display: flex; }
.crc-thinker-pair__pending {
    font-size: 0.8em;
    font-style: italic;
    color: #a0a0a0;
    margin-left: auto;
}

/* Action buttons (stacked, full-width) */
.crc-thinker-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.crc-thinker-btn {
    display: block;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.85em;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.crc-thinker-btn--primary {
    background: var(--crc-navy);
    color: var(--crc-white);
}
.crc-thinker-btn--primary:hover {
    background: var(--crc-accent);
    color: var(--crc-white);
    text-decoration: none;
}
.crc-thinker-btn--outline {
    background: var(--crc-white);
    color: var(--crc-navy);
    border-color: #c0c8d0;
}
.crc-thinker-btn--outline:hover {
    border-color: var(--crc-accent);
    color: var(--crc-navy);
    text-decoration: none;
}

/* Related Thinkers renders as a .crc-listcard (unified container pattern).
   No sidebar-specific CSS needed — see includes/thinker-sidebar.php. */

/* ── Prose (utility pages: Privacy Policy, About, etc.) ─────────────── */
.crc-prose {
    max-width: 780px;
    line-height: 1.65;
    font-size: 16px;
    color: var(--crc-text);
}
.crc-prose h2 {
    margin-top: 1.6em;
    margin-bottom: 0.5em;
    color: var(--crc-navy);
    font-size: 20px;
}
.crc-prose p,
.crc-prose ul {
    margin: 0 0 1em;
}
.crc-prose ul {
    padding-left: 1.4em;
}
.crc-prose code {
    background: #f0f2f5;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.92em;
}
.crc-prose a {
    color: var(--crc-accent-dk);
}

/* ── Consent banner ─────────────────────────────────────────────────── */
.crc-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--crc-navy);
    color: var(--crc-white);
    padding: 16px 22px;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.25);
    border-top: 2px solid var(--crc-gold);
    font-size: 14px;
    line-height: 1.5;
}
.crc-consent-banner__text {
    flex: 1 1 420px;
}
.crc-consent-banner__text a {
    color: var(--crc-accent);
    text-decoration: underline;
}
.crc-consent-banner__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.crc-consent-banner__btn {
    border: 1px solid transparent;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.crc-consent-banner__btn--accept {
    background: var(--crc-accent);
    color: var(--crc-white);
}
.crc-consent-banner__btn--accept:hover {
    background: var(--crc-white);
    color: var(--crc-navy);
}
.crc-consent-banner__btn--reject {
    background: transparent;
    color: var(--crc-white);
    border-color: rgba(255, 255, 255, 0.5);
}
.crc-consent-banner__btn--reject:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--crc-white);
}
.crc-consent-banner[hidden],
.crc-consent-manage[hidden] {
    display: none;
}
.crc-consent-manage {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 9998;
    border: 1px solid var(--crc-accent);
    border-radius: 3px;
    background: var(--crc-white);
    color: var(--crc-navy);
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
@media (max-width: 640px) {
    .crc-consent-banner {
        flex-direction: column;
        align-items: stretch;
    }
    .crc-consent-banner__actions {
        justify-content: flex-end;
    }
}

/* ── Admin dashboard (standalone layout, not inside FTCN chrome) ────── */
body.crc-admin {
    background: #f5f6f8;
    color: var(--crc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
}

/* Login */
.crc-admin-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.crc-admin-auth__card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 36px 32px;
    border-radius: 6px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}
.crc-admin-auth__title {
    color: var(--crc-navy);
    font-size: 24px;
    margin: 0 0 20px;
    text-align: center;
    letter-spacing: 0.02em;
}
.crc-admin-auth__error {
    background: #fff3f3;
    color: #b03535;
    padding: 10px 12px;
    border-radius: 3px;
    margin-bottom: 16px;
    font-size: 14px;
}
.crc-admin-auth__form label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    color: #444;
}
.crc-admin-auth__form input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    margin-top: 4px;
    border: 1px solid #cdd3d9;
    border-radius: 3px;
    font-size: 15px;
    box-sizing: border-box;
}
.crc-admin-auth__form input:focus {
    outline: 2px solid var(--crc-accent);
    outline-offset: 1px;
    border-color: var(--crc-accent);
}
.crc-admin-auth__submit {
    width: 100%;
    margin-top: 8px;
    padding: 11px 18px;
    background: var(--crc-navy);
    color: var(--crc-white);
    border: 0;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s ease;
}
.crc-admin-auth__submit:hover { background: var(--crc-accent); }

/* Admin header bar */
.crc-admin-header {
    background: var(--crc-navy);
    color: #fff;
    padding: 14px 22px;
    border-bottom: 2px solid var(--crc-gold);
}
.crc-admin-header__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.crc-admin-header__brand {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.crc-admin-header__title {
    margin: 0;
    font-size: 16px;
    color: var(--crc-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.crc-admin-header__links {
    display: flex;
    gap: 4px;
}
.crc-admin-header__links a {
    padding: 6px 12px;
    color: #cbd2dc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
}
.crc-admin-header__links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.crc-admin-header__links a.is-active {
    color: #fff;
    background: rgba(108, 172, 246, 0.2);
}
.crc-admin-header__nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
}
.crc-admin-header__nav a {
    color: #fff;
    text-decoration: none;
}
.crc-admin-header__nav a:hover { color: var(--crc-accent); text-decoration: underline; }
.crc-admin-header__user {
    color: #aab3c2;
    font-size: 12px;
}

.crc-admin-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 22px 60px;
}

/* Range filter */
.crc-admin-filter {
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
}
.crc-admin-filter__label {
    color: #6b7280;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    margin-right: 4px;
}
.crc-admin-filter__link {
    padding: 5px 11px;
    border-radius: 3px;
    background: #e9ecef;
    color: var(--crc-navy);
    text-decoration: none;
    font-weight: 600;
}
.crc-admin-filter__link:hover { background: #dde2e7; text-decoration: none; }
.crc-admin-filter__link.is-active {
    background: var(--crc-navy);
    color: #fff;
}

/* Totals cards */
.crc-admin-totals {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.crc-admin-totals__card {
    flex: 1 1 180px;
    background: #fff;
    padding: 16px 18px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.crc-admin-totals__label {
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
}
.crc-admin-totals__value {
    margin-top: 4px;
    font-size: 28px;
    font-weight: 700;
    color: var(--crc-navy);
    font-variant-numeric: tabular-nums;
}

/* Data table */
.crc-admin-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.crc-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.crc-admin-table th,
.crc-admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}
.crc-admin-table tr:last-child td { border-bottom: 0; }
.crc-admin-table th {
    background: #f5f6f8;
    font-size: 11px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
    font-weight: 700;
    white-space: nowrap;
}
.crc-admin-table td.num,
.crc-admin-table th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.crc-admin-table__empty {
    text-align: center;
    color: #8a94a0;
    padding: 24px;
}

/* Flash messages */
.crc-admin-flashbar {
    max-width: 1280px;
    margin: 16px auto 0;
    padding: 0 22px;
}
.crc-admin-flash {
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 8px;
}
.crc-admin-flash--success {
    background: #e6f4ea;
    color: #1e6b35;
    border-left: 3px solid #1e6b35;
}
.crc-admin-flash--error {
    background: #fff3f3;
    color: #b03535;
    border-left: 3px solid #b03535;
}

/* User management page */
.crc-admin-card {
    background: #fff;
    padding: 18px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 22px;
}
.crc-admin-card__title {
    margin: 0 0 14px;
    font-size: 14px;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
}
.crc-admin-addform {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.crc-admin-addform label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex: 1 1 180px;
}
.crc-admin-addform input,
.crc-admin-inlineform input[type="password"] {
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #cdd3d9;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--crc-text);
}
.crc-admin-addform input:focus,
.crc-admin-inlineform input:focus {
    outline: 2px solid var(--crc-accent);
    outline-offset: 1px;
    border-color: var(--crc-accent);
}
.crc-admin-btn {
    background: var(--crc-navy);
    color: var(--crc-white);
    border: 0;
    padding: 9px 16px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background 0.15s ease;
}
.crc-admin-btn:hover { background: var(--crc-accent); }
.crc-admin-btn--small {
    padding: 6px 12px;
    font-size: 12px;
}
.crc-admin-btn--danger {
    background: #b03535;
}
.crc-admin-btn--danger:hover { background: #8a2828; }

.crc-admin-inlineform {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 0;
}
.crc-admin-inlineform input[type="password"] {
    width: 160px;
    margin-top: 0;
}

.crc-admin-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 7px;
    background: #e9ecef;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 10px;
    letter-spacing: 0.03em;
}
.crc-admin-pill--admin {
    background: rgba(212, 175, 55, 0.18);
    color: #8a6d00;
}
.crc-admin-pill--staff {
    background: rgba(108, 172, 246, 0.18);
    color: #2164a8;
}
.crc-admin-muted {
    color: #8a94a0;
}

/* Role/event pills styling on cells */
.crc-admin-inlineform select {
    padding: 6px 10px;
    border: 1px solid #cdd3d9;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
}

/* Event pill variants in the timeline */
.crc-admin-eventpill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #e9ecef;
    color: #6b7280;
}
.crc-admin-eventpill--login    { background: #dff5e4; color: #196a32; }
.crc-admin-eventpill--logout   { background: #f4e2e2; color: #8a2828; }
.crc-admin-eventpill--pageview { background: #e5edf7; color: #1f5498; }
.crc-admin-eventpill--external { background: #fff1de; color: #8a4f00; }
.crc-admin-eventpill--internal { background: #e5edf7; color: #1f5498; }

.crc-admin-link {
    color: var(--crc-navy);
    text-decoration: none;
}
.crc-admin-link:hover {
    color: var(--crc-accent-dk);
    text-decoration: underline;
}

.crc-admin-actions {
    margin: 6px 0 18px;
    display: flex;
    justify-content: flex-end;
}
.crc-admin-actions .crc-admin-btn {
    text-decoration: none;
}

.crc-admin-table code {
    font-size: 12px;
    color: #4b5563;
    background: transparent;
}


/* ── Events Page ───────────────────────────────────────────── */
.crc-eyebrow {
    margin: 0 0 8px;
    color: var(--crc-gold);
    font-size: 0.78em;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.crc-events-hero .crc-hero-sub {
    max-width: 780px;
}
.crc-events-featured {
    margin: 10px 0 30px;
    background: var(--crc-navy);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    color: var(--crc-white);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.crc-events-featured__label {
    display: inline-block;
    margin: 20px 24px 0;
    padding: 5px 10px;
    background: rgba(212, 175, 55, 0.16);
    color: var(--crc-gold);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 999px;
    font-size: 0.75em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.crc-events-featured__body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 24px 24px;
}
.crc-events-featured h2 {
    margin: 0 0 8px;
    color: var(--crc-gold);
}
.crc-events-featured p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    line-height: 1.55;
}
.crc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 0;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.crc-button:hover,
.crc-button:focus {
    transform: translateY(-1px);
    text-decoration: none;
}
.crc-button-primary {
    background: var(--crc-gold);
    color: var(--crc-navy);
}
.crc-button-primary:hover,
.crc-button-primary:focus {
    background: var(--crc-gold-light);
    color: var(--crc-navy);
}
.crc-events-intro {
    max-width: 780px;
    margin-bottom: 18px;
}
.crc-events-intro h2 {
    margin-bottom: 8px;
    color: var(--crc-navy);
}
.crc-events-intro p {
    color: var(--crc-text-light);
    line-height: 1.6;
}
.crc-events-grid .crc-event-card {
    text-decoration: none;
}
.crc-event-card__link {
    margin-top: auto;
    color: var(--crc-gold);
    font-weight: 800;
}
.crc-events-submit {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
    gap: 28px;
    margin: 36px 0 10px;
    padding: 28px;
    background: var(--crc-white);
    border: 1px solid var(--crc-border);
    border-radius: 12px;
}
.crc-events-submit__copy h2 {
    margin-top: 0;
    color: var(--crc-navy);
}
.crc-events-submit__copy p {
    color: var(--crc-text-light);
    line-height: 1.6;
}
.crc-events-submit__note {
    padding: 12px 14px;
    background: var(--crc-bg);
    border-left: 3px solid var(--crc-gold);
}
.crc-event-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.crc-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.crc-form-row-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.crc-event-form label {
    color: var(--crc-navy);
    font-weight: 800;
    font-size: 0.88em;
}
.crc-event-form input,
.crc-event-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cdd3d9;
    border-radius: 4px;
    color: var(--crc-text);
    font: inherit;
}
.crc-event-form textarea {
    resize: vertical;
}
.crc-event-form input:focus,
.crc-event-form textarea:focus {
    outline: 2px solid var(--crc-accent);
    outline-offset: 1px;
    border-color: var(--crc-accent);
}
.crc-form-alert {
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--crc-border);
}
.crc-form-alert p {
    margin: 0;
    font-weight: 700;
}
.crc-form-alert ul {
    margin: 8px 0 0 18px;
    padding: 0;
}
.crc-form-alert-success {
    background: #e7f7ec;
    border-color: #afdcbf;
    color: #145c2b;
}
.crc-form-alert-error {
    background: #fff1f0;
    border-color: #f0b8b2;
    color: #8a2828;
}

@media screen and (max-width: 768px) {
    .crc-events-featured__body,
    .crc-events-submit,
    .crc-form-row-two {
        grid-template-columns: 1fr;
    }
    .crc-events-featured__body {
        display: grid;
    }
    .crc-events-submit {
        padding: 20px;
    }
}

/* ── Events Page: polished public-facing layout ────────────── */
.crc-events-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.28), transparent 30%),
        linear-gradient(135deg, #111126 0%, #1a1a2e 54%, #27345a 100%);
}
.crc-events-hero::after {
    content: '';
    position: absolute;
    inset: auto -80px -180px auto;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 44px solid rgba(255,255,255,0.05);
}
.crc-events-hero .container {
    position: relative;
    z-index: 1;
}
.crc-events-hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}
.crc-button-ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.26);
    color: var(--crc-white);
}
.crc-button-ghost:hover,
.crc-button-ghost:focus {
    background: rgba(255,255,255,0.16);
    color: var(--crc-white);
}
.crc-button-secondary {
    background: var(--crc-navy);
    color: var(--crc-white);
}
.crc-button-secondary:hover,
.crc-button-secondary:focus {
    background: var(--crc-navy-light);
    color: var(--crc-white);
}
.crc-events-section {
    background:
        linear-gradient(180deg, #f7f8fb 0%, #fff 38%),
        var(--crc-bg);
}
.crc-events-featured {
    border: 0;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(26,26,46,0.98), rgba(37,37,71,0.96)),
        var(--crc-navy);
    box-shadow: 0 18px 42px rgba(26,26,46,0.22);
}
.crc-events-featured__body {
    align-items: flex-start;
    padding: 22px 28px 30px;
}
.crc-event-mini-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 0;
}
.crc-event-mini-meta div {
    min-width: 180px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
}
.crc-event-mini-meta dt {
    color: rgba(255,255,255,0.62);
    font-size: 0.72em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.crc-event-mini-meta dd {
    margin: 4px 0 0;
    color: var(--crc-white);
    font-weight: 700;
}
.crc-events-panel,
.crc-events-submit {
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(26,26,46,0.08);
}
.crc-events-panel {
    margin: 34px 0;
    padding: 28px;
    background: var(--crc-white);
    border: 1px solid rgba(26,26,46,0.08);
}
.crc-events-intro {
    max-width: none;
    margin-bottom: 20px;
}
.crc-events-intro h2 {
    margin: 0;
    font-size: 1.55em;
}
.crc-events-grid {
    margin-bottom: 0;
}
.crc-event-card {
    border: 1px solid rgba(26,26,46,0.08);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(26,26,46,0.06);
}
.crc-event-card::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, var(--crc-gold), var(--crc-accent));
}
.crc-event-card .crc-card-body {
    min-height: 210px;
}
.crc-events-submit {
    position: relative;
    grid-template-columns: minmax(0, 0.72fr) minmax(340px, 1.28fr);
    gap: 34px;
    margin-top: 48px;
    padding: 34px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    border: 2px solid rgba(51, 122, 183, 0.16);
}
.crc-events-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 7px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, var(--crc-accent), var(--crc-gold));
}
.crc-events-submit__copy {
    padding: 8px 0;
}
.crc-events-submit__copy h2 {
    font-size: 1.65em;
}
.crc-event-form {
    padding: 22px;
    background: var(--crc-white);
    border: 1px solid rgba(26,26,46,0.08);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.crc-event-form input,
.crc-event-form textarea {
    border-radius: 10px;
    border-color: #d5dbe3;
    background: #fbfcff;
}
.crc-event-form--validated input:invalid:not(:placeholder-shown) {
    border-color: #c84a4a;
}
.crc-event-detail-section {
    background: linear-gradient(180deg, #f7f8fb 0%, #fff 40%);
}
.crc-event-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 28px;
    align-items: start;
}
.crc-event-detail-card,
.crc-event-detail-aside {
    background: var(--crc-white);
    border: 1px solid rgba(26,26,46,0.08);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(26,26,46,0.08);
}
.crc-event-detail-card {
    padding: 32px;
}
.crc-event-detail-card h2,
.crc-event-detail-aside h2 {
    margin-top: 0;
    color: var(--crc-navy);
}
.crc-event-detail-card p,
.crc-event-detail-aside p {
    color: var(--crc-text-light);
    line-height: 1.65;
}
.crc-event-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0 0;
}
.crc-event-detail-list div {
    padding: 16px;
    background: var(--crc-bg);
    border: 1px solid var(--crc-border);
    border-radius: 14px;
}
.crc-event-detail-list dt {
    color: var(--crc-text-light);
    font-size: 0.76em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.crc-event-detail-list dd {
    margin: 6px 0 0;
    color: var(--crc-navy);
    font-weight: 800;
}
.crc-event-detail-aside {
    display: grid;
    gap: 14px;
    padding: 26px;
    border-top: 7px solid var(--crc-gold);
}
.crc-event-detail-aside .crc-button {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .crc-events-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .crc-events-featured__body,
    .crc-events-submit,
    .crc-form-row-two,
    .crc-event-detail-layout,
    .crc-event-detail-list {
        grid-template-columns: 1fr;
    }
    .crc-events-featured__body {
        display: grid;
    }
    .crc-events-panel,
    .crc-events-calendar,
    .crc-events-submit,
    .crc-event-detail-card,
    .crc-event-detail-aside {
        padding: 20px;
    }
    .crc-calendar-item {
        grid-template-columns: 72px 1fr;
    }
    .crc-calendar-arrow {
        display: none;
    }
}

/* ── Cohesive 2026 Public Shell ─────────────────────────────
   Shared polish layer for all public CLib surfaces. Keeps the existing PHP
   routing/data model intact while applying the OpenDesign direction across the
   whole library rather than only the example screens.
   ------------------------------------------------------------ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.crc-section {
    font-family: var(--crc-font-body);
}
.crc-section-head,
.crc-page-head {
    max-width: 820px;
    margin: 0 0 26px;
}
.crc-section-head h2,
.crc-page-head h1,
.crc-error-card h1 {
    margin: 0;
    color: var(--crc-navy);
    font-family: var(--crc-font-display);
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-wrap: pretty;
}
.crc-section-head p,
.crc-page-head .crc-section-desc,
.crc-error-card p {
    max-width: 760px;
    margin: 12px 0 0;
    color: var(--crc-text-light);
    font-size: 1.06rem;
    line-height: 1.65;
}
.crc-page-shell .crc-eyebrow,
.crc-home-entry .crc-eyebrow,
.crc-content-panel .crc-eyebrow,
.crc-error-card .crc-eyebrow {
    color: #7a4b00;
    color: color-mix(in srgb, var(--crc-gold) 42%, var(--crc-navy));
}
.crc-home-hero .crc-eyebrow,
.crc-events-hero .crc-eyebrow {
    color: var(--crc-gold);
}
.crc-page-shell {
    background:
        radial-gradient(circle at top right, rgba(211, 167, 43, 0.13), transparent 34rem),
        linear-gradient(180deg, var(--crc-bg), #fff 34rem);
    padding: 42px 0 64px;
}
.crc-content-panel,
.crc-listing-toolbar,
.crc-search-panel,
.crc-empty-card,
.crc-error-card {
    background: var(--crc-white);
    border: 1px solid color-mix(in srgb, var(--crc-border) 86%, var(--crc-navy));
    border-radius: 14px;
    box-shadow: 0 18px 46px rgba(18, 24, 55, 0.08);
}
.crc-content-panel {
    padding: clamp(22px, 4vw, 42px);
}
.crc-listing-toolbar,
.crc-search-panel {
    margin: 0 0 24px;
    padding: 14px;
}
.crc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--crc-text-light);
    font-size: clamp(0.88rem, 1vw, 0.98rem);
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1.35;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.crc-breadcrumb a {
    color: var(--crc-navy);
}
.crc-breadcrumb a:hover,
.crc-breadcrumb a:focus {
    color: var(--crc-accent);
}

/* Home */
.crc-home-hero {
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: clamp(54px, 8vw, 92px) 0;
    background:
        linear-gradient(135deg, rgba(23, 28, 61, 0.96), rgba(18, 23, 50, 0.98)),
        radial-gradient(circle at 82% 20%, rgba(211, 167, 43, 0.28), transparent 26rem);
}
.crc-home-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.58fr);
    gap: clamp(28px, 5vw, 58px);
    align-items: center;
}
.crc-home-hero h1 {
    max-width: 880px;
    margin: 0;
    color: var(--crc-white);
    font-family: var(--crc-font-display);
    font-size: clamp(2.75rem, 6vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    text-wrap: balance;
}
.crc-home-hero .crc-hero-sub {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255,255,255,0.82);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.55;
}
.crc-home-search {
    width: min(720px, 100%);
    margin: 28px 0 0;
    padding: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
}
.crc-home-search form,
.crc-search-form form {
    display: flex;
    gap: 10px;
}
.crc-home-search input,
.crc-search-input {
    min-height: 48px;
    flex: 1;
    width: 100%;
    padding: 0 16px;
    border: 1px solid var(--crc-border);
    border-radius: 10px;
    background: var(--crc-white);
    color: var(--crc-text);
    font-size: 1rem;
}
.crc-home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.crc-home-hero__panel {
    padding: clamp(22px, 4vw, 34px);
    background: rgba(255,255,255,0.96);
    color: var(--crc-text);
    border-top: 5px solid var(--crc-gold);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.22);
}
.crc-home-hero__panel h2 {
    margin: 14px 0 10px;
    color: var(--crc-navy);
    font-family: var(--crc-font-display);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1;
}
.crc-home-hero__panel p {
    margin: 0;
    color: var(--crc-text-light);
    line-height: 1.65;
}
.crc-home-entry {
    background: var(--crc-bg);
}
.crc-home-card-grid .crc-card-home {
    min-height: 210px;
}

/* Compact landing page: four entry buttons directly below search. */
.crc-home-hero.crc-home-hero--compact {
    padding: 32px 0 38px;
}
.crc-home-hero--compact .crc-home-hero__grid {
    grid-template-columns: minmax(0, 760px);
    gap: 0;
}
.crc-home-hero--compact h1 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
}
.crc-home-hero--compact .crc-hero-sub {
    margin-top: 12px;
    font-size: 18px;
}
.crc-home-hero--compact .crc-home-search {
    margin-top: 20px;
}
.crc-home-hero--compact .crc-home-hero__actions {
    margin-top: 12px;
}
.crc-home-hero--compact .crc-button {
    font-size: 16px;
}
.crc-related-media h2 {
    font-size: 24px;
}

/* Cards / controls */
.crc-card,
.crc-itemcard {
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(18, 24, 55, 0.06);
}
.crc-card:hover,
.crc-itemcard:hover {
    box-shadow: 0 20px 52px rgba(18, 24, 55, 0.13);
}
.crc-card-body {
    padding: 22px;
}
.crc-card-badge,
.crc-itemcard__badge {
    width: fit-content;
    border: 1px solid color-mix(in srgb, var(--crc-gold) 38%, var(--crc-border));
    border-radius: 999px;
    background: color-mix(in srgb, var(--crc-gold) 14%, #fff);
    color: var(--crc-navy);
    font-family: var(--crc-font-mono);
    letter-spacing: 0.055em;
}
.crc-card-title,
.crc-itemcard__title {
    text-wrap: pretty;
}
.crc-filter-bar {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}
.crc-filter-group label {
    color: var(--crc-navy);
    font-family: var(--crc-font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.crc-filter-select {
    min-height: 42px;
    padding: 0 36px 0 12px;
    border-radius: 10px;
    color: var(--crc-text);
}
.crc-search-form {
    margin: 0;
}
.crc-search-form form {
    max-width: none;
}
.crc-search-input:focus,
.crc-home-search input:focus,
.crc-filter-select:focus {
    outline: 3px solid color-mix(in srgb, var(--crc-accent) 24%, transparent);
    border-color: var(--crc-accent);
}
.crc-search-count {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin: 0 0 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--crc-gold) 12%, #fff);
    color: var(--crc-navy);
    font-weight: 700;
}
.crc-empty-card,
.crc-error-card {
    padding: clamp(28px, 5vw, 56px);
    text-align: center;
}
.crc-empty-card h2 {
    margin: 0 0 8px;
    color: var(--crc-navy);
    font-family: var(--crc-font-display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.crc-empty-card p {
    margin: 0;
    color: var(--crc-text-light);
}
.crc-error-card {
    max-width: 760px;
    margin: 0 auto;
}

/* Button alignment across old and new templates */
.crc-btn,
.crc-button {
    min-height: 44px;
    border-radius: 10px;
}
.crc-button-primary,
.crc-btn-primary {
    background: var(--crc-gold);
    color: var(--crc-navy);
}
.crc-button-primary:hover,
.crc-button-primary:focus,
.crc-btn-primary:hover,
.crc-btn-primary:focus {
    background: var(--crc-gold-light);
    color: var(--crc-navy);
}

@media (max-width: 780px) {
    .crc-home-hero__grid {
        grid-template-columns: 1fr;
    }
    .crc-home-search form,
    .crc-search-form form,
    .crc-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .crc-home-search .crc-button,
    .crc-search-form .crc-btn,
    .crc-search-form .crc-button {
        width: 100%;
    }
}

/* ── 2026 proportion correction pass ─────────────────────────
   Fixes review feedback: full-bleed section backgrounds without white gutters,
   consistent page widths, less oversized home hero, calmer cards/pills, Events
   aligned with the rest of CLib, and richer generic detail pages. */
.crc-section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}
.crc-section *,
.crc-section *::before,
.crc-section *::after {
    box-sizing: border-box;
}
.crc-section > .container {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(22px, 4vw, 38px);
    padding-right: clamp(22px, 4vw, 38px);
}
.crc-page-shell {
    padding: clamp(30px, 5vw, 54px) 0 clamp(48px, 7vw, 76px);
}
.crc-page-head,
.crc-section-head {
    max-width: 760px;
    margin-bottom: 22px;
}
.crc-page-head h1,
.crc-section-head h2,
.crc-error-card h1 {
    font-size: clamp(2.15rem, 4.4vw, 3.85rem);
    line-height: 1.02;
}
.crc-content-panel {
    padding: clamp(20px, 3vw, 32px);
}

/* Home: smaller, tighter, still premium. */
.crc-home-hero {
    padding: clamp(42px, 6vw, 72px) 0;
}
.crc-home-hero__grid {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    gap: clamp(20px, 3vw, 30px);
    align-items: start;
}
.crc-home-hero__copy,
.crc-home-hero__panel {
    grid-column: 1;
    width: 100%;
}
.crc-home-hero h1 {
    max-width: 760px;
    font-size: clamp(2.35rem, 4.7vw, 4.25rem);
    line-height: 0.99;
}
.crc-home-hero .crc-hero-sub {
    max-width: 660px;
    margin-top: 16px;
    font-size: clamp(1rem, 1.45vw, 1.16rem);
}
.crc-home-search {
    margin-top: 22px;
}
.crc-home-hero__panel {
    max-width: 680px;
    padding: clamp(18px, 3vw, 26px);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}
.crc-home-hero__panel h2 {
    margin-top: 8px;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}
.crc-home-card-grid .crc-card-home {
    min-height: 170px;
}
.crc-card-home .crc-card-title {
    margin-bottom: 10px;
}

/* Card badges: keep useful metadata calm; avoid underlined pill noise. */
.crc-card-badge,
.crc-itemcard__badge,
.crc-listcard__item-badge {
    border-radius: 999px;
    text-decoration: none !important;
}
.crc-card:hover .crc-card-badge,
.crc-card:focus-within .crc-card-badge,
.crc-itemcard:hover .crc-itemcard__badge,
.crc-itemcard:focus-within .crc-itemcard__badge {
    text-decoration: none !important;
}
.crc-card-home .crc-card-badge {
    display: none;
}

/* Events: use the same page shell/proportions as the rest of CLib. */
.crc-events-page {
    background:
        radial-gradient(circle at top right, rgba(211, 167, 43, 0.13), transparent 34rem),
        linear-gradient(180deg, var(--crc-bg), #fff 34rem);
}
.crc-page-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 20px;
}
.crc-events-content {
    display: grid;
    gap: 26px;
}
.crc-events-featured {
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(18, 24, 55, 0.12);
}
.crc-events-featured__body {
    padding: 20px 24px 24px;
}
.crc-events-panel,
.crc-events-submit {
    margin: 0;
    border-radius: 14px;
    box-shadow: none;
}
.crc-events-panel {
    padding: 0;
    border: 0;
    background: transparent;
}
.crc-events-submit {
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid rgba(26,26,46,0.08);
    background: #fbfcff;
}
.crc-events-submit::before,
.crc-event-card::before {
    display: none;
}
.crc-event-card .crc-card-body {
    min-height: 170px;
}
.crc-events-hero,
.crc-events-section {
    background: inherit;
}

/* Generic detail pages: same page width and richer, cleaner sidebar. */
.crc-detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: clamp(22px, 4vw, 34px);
    align-items: start;
    margin: 0;
}
.crc-detail-main,
.crc-detail-sidebar > .crc-action-row,
.crc-detail-facts,
.crc-ftcn-pairing {
    background: var(--crc-white);
    border: 1px solid rgba(26,26,46,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(18, 24, 55, 0.06);
}
.crc-detail-main {
    padding: clamp(22px, 4vw, 36px);
}
.crc-detail-sidebar {
    display: grid;
    gap: 16px;
    padding: 0;
}
.crc-detail-title {
    margin: 0 0 10px;
    color: var(--crc-navy);
    font-family: var(--crc-font-display);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.03;
    letter-spacing: -0.025em;
}
.crc-detail-desc {
    max-width: 780px;
    margin-bottom: 20px;
    color: var(--crc-text-light);
    font-size: 1.06rem;
    line-height: 1.65;
}
.crc-detail-callout {
    margin: 20px 0;
    padding: 16px 18px;
    background: color-mix(in srgb, var(--crc-gold) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--crc-gold) 32%, var(--crc-border));
    border-left: 4px solid var(--crc-gold);
    border-radius: 12px;
}
.crc-detail-callout p {
    margin: 0;
    color: var(--crc-navy);
    line-height: 1.6;
}
.crc-detail-callout__label {
    margin-bottom: 4px !important;
    font-family: var(--crc-font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.crc-detail-sidebar > .crc-action-row {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
}
.crc-detail-sidebar .crc-btn {
    width: 100%;
    text-align: center;
}
.crc-detail-facts,
.crc-ftcn-pairing {
    padding: 18px;
}
.crc-detail-facts h2,
.crc-ftcn-pairing h3,
.crc-related h2 {
    margin: 0 0 12px;
    color: var(--crc-navy);
    font-family: var(--crc-font-display);
    font-size: 1.35rem;
    line-height: 1.1;
}
.crc-detail-facts__list {
    display: grid;
    gap: 10px;
    margin: 0;
}
.crc-detail-facts__list div {
    display: grid;
    gap: 3px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--crc-border);
}
.crc-detail-facts__list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.crc-detail-facts__list dt {
    color: var(--crc-text-light);
    font-family: var(--crc-font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.crc-detail-facts__list dd {
    margin: 0;
    color: var(--crc-navy);
    font-weight: 700;
}
.crc-detail-facts__tags {
    margin-top: 18px;
}
.crc-detail-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.crc-detail-tag-list .crc-tag {
    text-decoration: none;
}
.crc-related {
    margin-top: 28px;
    padding: clamp(20px, 3vw, 28px);
    background: var(--crc-white);
    border: 1px solid rgba(26,26,46,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(18, 24, 55, 0.06);
}
.crc-related .crc-card-grid {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .crc-detail-layout,
    .crc-home-hero__grid,
    .crc-events-submit {
        grid-template-columns: 1fr;
    }
    .crc-home-hero__panel {
        max-width: none;
    }
}
@media (max-width: 640px) {
    .crc-section > .container {
        padding-left: 18px;
        padding-right: 18px;
    }
    .crc-home-search form,
    .crc-search-form form,
    .crc-page-head__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Card anchors should behave like product cards, not underlined text links. */
.crc-card,
.crc-card:hover,
.crc-card:focus,
.crc-card:focus-visible,
.crc-card:visited {
    text-decoration: none;
}
.crc-card .crc-card-title,
.crc-card .crc-card-desc,
.crc-card .crc-event-card__link,
.crc-card:hover .crc-card-title,
.crc-card:hover .crc-card-desc,
.crc-card:hover .crc-event-card__link {
    text-decoration: none;
}

/* Event detail pages should share CLib public shell proportions. */
.crc-event-detail-page {
    background:
        radial-gradient(circle at top right, rgba(211, 167, 43, 0.12), transparent 34rem),
        linear-gradient(180deg, var(--crc-bg), #fff 34rem);
}
.crc-event-detail-page .crc-content-panel {
    max-width: 1120px;
}
.crc-event-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: clamp(22px, 4vw, 34px);
    align-items: start;
}
.crc-event-detail-card,
.crc-event-detail-aside {
    background: var(--crc-white);
    border: 1px solid rgba(26,26,46,0.08);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(18, 24, 55, 0.06);
}
.crc-event-detail-card {
    padding: clamp(22px, 4vw, 34px);
}
.crc-event-detail-card h2,
.crc-event-detail-aside h2 {
    margin: 0 0 12px;
    color: var(--crc-navy);
    font-family: var(--crc-font-display);
    line-height: 1.1;
}
.crc-event-detail-card > p {
    color: var(--crc-text);
    font-size: 1.05rem;
    line-height: 1.65;
}
.crc-event-detail-list {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
}
.crc-event-detail-list div {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--crc-border);
}
.crc-event-detail-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.crc-event-detail-list dt {
    color: var(--crc-text-light);
    font-family: var(--crc-font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.crc-event-detail-list dd {
    margin: 0;
    color: var(--crc-navy);
    font-weight: 700;
}
.crc-event-detail-aside {
    display: grid;
    gap: 12px;
    padding: 18px;
}
.crc-event-detail-aside p {
    margin: 0;
    color: var(--crc-text-light);
    line-height: 1.55;
}
.crc-event-detail-aside .crc-button {
    width: 100%;
    justify-content: center;
    text-align: center;
}
@media (max-width: 900px) {
    .crc-event-detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Staff resource entry/edit workflow */
.crc-admin-pagehead {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}
.crc-admin-pagehead h1 {
    margin: 0 0 6px;
    color: var(--crc-navy);
    font-size: 30px;
}
.crc-admin-pagehead p,
.crc-admin-help {
    margin: 0;
    color: #667085;
    line-height: 1.5;
}
.crc-admin-btn--secondary {
    background: #e9ecef;
    color: var(--crc-navy);
    text-decoration: none;
}
.crc-admin-btn--secondary:hover { background: #d8dee5; color: var(--crc-navy); }
.crc-admin-btn--publish { background: var(--crc-gold, #b78a2c); color: var(--crc-navy); }
.crc-admin-btn--publish:hover { background: var(--crc-accent); color: var(--crc-white); }
.crc-admin-resource-form-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}
.crc-admin-form-errors {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 3px solid #b03535;
    background: #fff3f3;
    color: #842323;
}
.crc-admin-form-errors ul { margin: 8px 0 0 18px; }
.crc-admin-resource-form { margin-top: 6px; }
.crc-admin-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}
.crc-admin-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.crc-admin-field--wide { grid-column: 1 / -1; }
.crc-admin-field input,
.crc-admin-field select,
.crc-admin-field textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cdd3d9;
    border-radius: 4px;
    color: var(--crc-text);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    background: #fff;
}
.crc-admin-field textarea { resize: vertical; min-height: 110px; }
.crc-admin-field input:focus,
.crc-admin-field select:focus,
.crc-admin-field textarea:focus {
    outline: 2px solid var(--crc-accent);
    outline-offset: 1px;
    border-color: var(--crc-accent);
}
.crc-admin-resource-options,
.crc-admin-resource-actions,
.crc-admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.crc-admin-resource-options { margin: 18px 0 14px; }
.crc-admin-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--crc-text);
    font-size: 14px;
    font-weight: 700;
}
.crc-admin-warning {
    margin-top: 4px;
    color: #b03535;
    font-size: 12px;
    font-weight: 700;
}
.crc-admin-resource-desc {
    margin-top: 4px;
    color: #667085;
    font-size: 12px;
    max-width: 520px;
}
.crc-admin-pill--published { background: #e6f4ea; color: #1e6b35; }
.crc-admin-pill--draft { background: #fff4d6; color: #8a5a00; }
@media (max-width: 720px) {
    .crc-admin-pagehead,
    .crc-admin-resource-form-card__head { flex-direction: column; }
    .crc-admin-resource-grid { grid-template-columns: 1fr; }
}

/* ── FTCN chrome typography normalization ────────────────────
   The live FTCN wrapper uses a smaller root font scale than local standalone
   mode. Keep CLib public pages at intentional proportions by using scoped px
   clamps for the surfaces that appear in board/demo screenshots. */
.crc-section,
.crc-page-shell,
.crc-thinker-page {
    font-size: 16px;
}
.crc-section > .container,
.crc-page-shell > .container,
.crc-thinker-page > .container {
    max-width: 1120px;
}
.crc-home-hero h1 {
    font-size: clamp(44px, 5vw, 68px);
}
.crc-home-hero .crc-hero-sub,
.crc-section-head p,
.crc-page-head .crc-section-desc,
.crc-detail-desc,
.crc-event-detail-card p,
.crc-event-detail-aside p {
    font-size: 16px;
    line-height: 1.62;
}
.crc-page-head h1,
.crc-section-head h2,
.crc-error-card h1 {
    font-size: clamp(36px, 4.4vw, 62px);
}
.crc-eyebrow,
.crc-breadcrumb,
.crc-detail-facts__list dt,
.crc-event-detail-list dt {
    font-size: 12px;
}
.crc-breadcrumb {
    font-size: clamp(14px, 1vw, 15.5px);
}
.crc-card-title,
.crc-itemcard__title,
.crc-listcard__title {
    font-size: 22px;
    line-height: 1.15;
}
.crc-card-desc,
.crc-itemcard__desc,
.crc-listcard__desc {
    font-size: 15px;
    line-height: 1.55;
}
.crc-card-badge,
.crc-itemcard__badge,
.crc-listcard__item-badge,
.crc-thinker-pill,
.crc-events-featured__label {
    font-size: 12px;
}
.crc-button,
.crc-btn,
.crc-home-search input,
.crc-search-input,
.crc-filter-select,
.crc-event-form input,
.crc-event-form textarea {
    font-size: 15px;
}
.crc-events-featured h2,
.crc-event-detail-card h2,
.crc-event-detail-aside h2 {
    font-size: clamp(28px, 2.5vw, 38px);
    line-height: 1.08;
}
.crc-event-detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
    gap: 30px;
}
.crc-event-detail-card {
    padding: clamp(28px, 3vw, 38px);
}
.crc-event-detail-aside {
    padding: clamp(24px, 2.5vw, 30px);
}
.crc-event-detail-list dd {
    font-size: 16px;
}
.crc-detail-title {
    font-size: clamp(34px, 4vw, 54px);
}

/* Event detail metadata: long venue/address values need a readable address row,
   not the same narrow tile treatment as Organizer/Type/Date. */
.crc-event-detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}
.crc-event-detail-list__item {
    min-width: 0;
}
.crc-event-detail-list__item:not(.crc-event-detail-list__item--location) dd {
    font-size: 15px;
    line-height: 1.25;
}
.crc-event-detail-list__item--date dd {
    white-space: nowrap;
}
.crc-event-detail-list__item--location {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, #fffaf0, var(--crc-bg));
}
.crc-event-detail-list__item--location dd {
    max-width: 58ch;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
@media (max-width: 900px) {
    .crc-event-detail-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    .crc-event-detail-list {
        grid-template-columns: 1fr;
    }
}

/* ── Pathway steps (ordered sequence on pathway detail pages) ─────── */
.crc-pathway-steps__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.crc-pathway-steps__head h2 {
    margin-bottom: 4px;
}
.crc-pathway-steps__hint {
    margin: 0;
    color: var(--crc-text-light);
    font-size: 15px;
}
.crc-pathway-resume {
    flex-shrink: 0;
    display: inline-block;
    padding: 9px 18px;
    background: var(--crc-gold);
    color: var(--crc-navy);
    font-weight: 700;
    font-size: 15px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease;
}
.crc-pathway-resume:hover,
.crc-pathway-resume:focus {
    background: var(--crc-gold-light);
    text-decoration: none;
}
.crc-pathway-steps__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.crc-pathway-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: var(--crc-surface);
    border: 1px solid var(--crc-border);
    border-radius: var(--crc-radius);
}
/* Connector line between step numbers */
.crc-pathway-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 37px; /* padding 20px + half of 34px circle */
    top: calc(18px + 34px);
    bottom: -15px;
    width: 2px;
    background: color-mix(in srgb, var(--crc-gold) 45%, var(--crc-border));
}
.crc-pathway-step__num {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--crc-navy);
    color: var(--crc-gold);
    font-family: var(--crc-font-mono);
    font-weight: 700;
    font-size: 15px;
    position: relative;
    z-index: 1;
}
.crc-pathway-step__body {
    flex: 1;
    min-width: 0;
}
.crc-pathway-step__kicker {
    margin: 0 0 2px;
    font-family: var(--crc-font-mono);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--crc-gold) 70%, var(--crc-navy));
}
.crc-pathway-step__title {
    margin: 0 0 6px;
    font-family: var(--crc-font-display);
    font-size: 20px;
    line-height: 1.25;
}
.crc-pathway-step__title a {
    color: var(--crc-navy);
    text-decoration: none;
}
.crc-pathway-step__title a:hover,
.crc-pathway-step__title a:focus {
    color: var(--crc-accent-dk);
    text-decoration: underline;
}
.crc-pathway-step__note {
    margin: 0 0 10px;
    color: var(--crc-text-light);
    font-size: 15px;
    line-height: 1.55;
}
.crc-pathway-step__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.crc-pathway-step__duration {
    color: var(--crc-text-light);
    font-size: 13px;
}
.crc-pathway-step__status {
    font-family: var(--crc-font-mono);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}
.crc-pathway-step.is-last-opened .crc-pathway-step__status {
    background: var(--crc-navy);
    color: var(--crc-gold);
}
.crc-pathway-step.is-visited .crc-pathway-step__status {
    background: var(--crc-bg);
    color: var(--crc-text-light);
    border: 1px solid var(--crc-border);
}
.crc-pathway-step.is-last-opened {
    border-color: color-mix(in srgb, var(--crc-gold) 55%, var(--crc-border));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--crc-gold) 40%, transparent);
}
.crc-pathway-step__cta {
    flex-shrink: 0;
    align-self: center;
    padding: 8px 16px;
    background: var(--crc-navy);
    color: var(--crc-white);
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.crc-pathway-step__cta:hover,
.crc-pathway-step__cta:focus {
    background: var(--crc-navy-light);
    color: var(--crc-gold-light);
    text-decoration: none;
}
.crc-pathway-step .crc-itemcard__badge {
    font-size: 12px;
}
@media (max-width: 700px) {
    .crc-pathway-step {
        flex-wrap: wrap;
        padding: 16px;
    }
    .crc-pathway-step:not(:last-child)::after {
        left: 33px; /* padding 16px + half of 34px circle */
    }
    .crc-pathway-step__body {
        flex-basis: calc(100% - 50px);
    }
    .crc-pathway-step__cta {
        align-self: flex-start;
        margin-left: 50px;
    }
}

/* ── Keyboard access, pagination, and utility-page navigation ───── */
.crc-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10000;
    padding: 10px 16px;
    border-radius: 4px;
    background: var(--crc-navy);
    color: var(--crc-white);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-150%);
    transition: transform 0.15s ease;
}
.crc-skip-link:focus {
    color: var(--crc-white);
    transform: translateY(0);
}
.crc-main:focus {
    outline: none;
}
.crc-page-shell a:focus-visible,
.crc-page-shell button:focus-visible,
.crc-page-shell input:focus-visible,
.crc-page-shell select:focus-visible,
.crc-page-shell textarea:focus-visible,
.crc-thinker-tabs__panel:focus-visible {
    outline: 3px solid var(--crc-accent-dk);
    outline-offset: 3px;
}
.crc-search-input:focus-visible {
    border-color: var(--crc-accent-dk);
}
.crc-thinker-tabs__btn:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid var(--crc-accent-dk);
    outline-offset: -3px;
}
.crc-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 8px;
}
.crc-pagination__link {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--crc-border);
    border-radius: 6px;
    background: var(--crc-white);
    color: var(--crc-navy);
    font-weight: 700;
    text-decoration: none;
}
.crc-pagination__link:hover,
.crc-pagination__link:focus-visible {
    border-color: var(--crc-accent-dk);
    color: var(--crc-accent-dk);
    text-decoration: none;
}
.crc-pagination__link.is-current {
    border-color: var(--crc-navy);
    background: var(--crc-navy);
    color: var(--crc-white);
}
.crc-pagination__link.is-disabled {
    color: var(--crc-text-light);
    opacity: 0.55;
}
.crc-pagination__link--direction {
    min-width: 92px;
}
.crc-pagination__ellipsis {
    padding: 0 2px;
    color: var(--crc-text-light);
}
.crc-sitemap > nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    max-width: 1100px;
}
.crc-sitemap__section {
    padding: 20px;
    border: 1px solid var(--crc-border);
    border-radius: 10px;
    background: var(--crc-white);
}
.crc-sitemap__section h2 {
    margin-top: 0;
}
.crc-sitemap__section ul {
    margin-bottom: 0;
}

/* CLib-only shared-footer contrast correction. The shared footer CSS loads after
   crc.css, so this exact element selector and !important declarations must win
   even when FTCN's cached Bootstrap/footer rules are present. */
html body a.btn.btn-default-footer[role="button"],
html body a.btn.btn-default-footer[role="button"]:visited {
    background: #005a9c !important;
    background-image: none !important;
    border-color: #005a9c !important;
    color: #ffffff !important;
}
html body a.btn.btn-default-footer[role="button"]:hover,
html body a.btn.btn-default-footer[role="button"]:focus {
    background: #004477 !important;
    background-image: none !important;
    border-color: #004477 !important;
    color: #ffffff !important;
}


/* Go-live: inherited FTCN layout containment for Events and resource detail cards. */
.crc-event-mini-meta > div,
.crc-event-detail-list__item {
    min-width: 0;
}
.crc-event-mini-meta dd,
.crc-event-detail-list__item dd {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}
.crc-event-detail-list__item--date,
.crc-event-detail-list__item--location {
    grid-template-columns: minmax(0, 1fr);
}
.crc-detail-facts {
    min-width: 0;
    overflow: hidden;
}
.crc-detail-facts__list > div,
.crc-detail-facts__list dt,
.crc-detail-facts__list dd {
    float: none;
    min-width: 0;
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.crc-related {
    clear: both;
    min-width: 0;
    width: 100%;
}
.crc-related .crc-card-grid,
.crc-related .crc-itemcard {
    min-width: 0;
    max-width: 100%;
}

/* Keep long event dates within narrow mobile cards. */
.crc-event-detail-list__item--date dd { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
