/* Player Chrome, Sidebar, Modals */

:root {
    --primary-color: #823447;
    --accent-color: #f0ad4e;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

#player-root {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh; /* dvh = dynamic viewport height — excludes mobile browser chrome bar */
    background: #f5f5f5;
    position: relative; /* offset parent for the resume overlay */
}

/* Player Container */
.player-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Navigation */
.sidebar {
    width: 240px;
    background: #fff;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.sidebar-section {
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    margin: 0;
}

.sidebar-section-title {
    background: var(--primary-color);
    color: white;
    padding: 12px 16px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    margin: 0;
    border: none;
    background: none;
    text-align: left;
    font-size: 13px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.sidebar-item:hover {
    background: #f9f9f9;
    border-left-color: var(--accent-color);
}

.sidebar-item.active {
    background: #f0f0f0;
    color: var(--primary-color);
    font-weight: 600;
    border-left-color: var(--primary-color);
}

/* Sidebar is embedded in slide HTML — custom sidebar column is not rendered */
.sidebar {
    display: none;
}

/* Canvas Container */
.canvas-container {
    position: relative; /* establishes offset parent for .slide-canvas-wrapper (position:absolute) */
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.slide-canvas-wrapper {
    /* Padding-bottom trick for aspect ratio: 720/1280 = 56.25% */
    /* This is defined in slide-base.css - don't override here */
}

/* Make background images non-interactive */
.slide-canvas img {
    pointer-events: none;
    display: block;
}

/* Allow interactions on foreground elements */
.slide-canvas a,
.slide-canvas button,
.slide-canvas [role="button"] {
    pointer-events: auto;
}

/* ---- Modal pop-up lightbox ------------------------------------------------ */
/* Glossary / additional-info pop-ups float over a dimmed backdrop on top of the
   current slide; the deck slide and progress counter stay unchanged behind. */
.popup-lightbox {
    position: absolute;
    inset: 0;
    display: none; /* toggled to flex in JS */
    background: rgba(0, 0, 0, 0.35); /* dim the live slide so the box stands out */
    z-index: 60;
    animation: popup-fade-in 0.15s ease-out;
}

.popup-lightbox-stage {
    position: absolute;
    width: 1280px;
    height: 720px;
    transform-origin: 0 0;
    background: transparent !important; /* override slide-base .slide-canvas-wrapper #fff */
    box-shadow: none !important;
    overflow: hidden;
    animation: popup-pop-in 0.18s ease-out;
}

@keyframes popup-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes popup-pop-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Resume-where-you-left-off dialog (matches original iSpring) ---------- */
.resume-overlay {
    position: absolute;
    inset: 0;
    z-index: 200;
    background: #8f8f8f;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 28px 44px 24px;
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.35);
    text-align: center;
    max-width: 440px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.resume-icon {
    width: 36px;
    height: 36px;
    line-height: 32px;
    border-radius: 50%;
    border: 2px solid #9aa0a6;
    color: #9aa0a6;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 16px;
}

.resume-msg {
    color: #4a4f55;
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 22px;
}

.resume-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.resume-btns button {
    background: #8B2E48;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 9px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s ease;
}

.resume-btns button:hover {
    background: #73253b;
}

/* Mobile portrait header — slide counter + resources icon. Hidden by default. */
.mobile-portrait-header {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    flex-shrink: 0;
    min-height: 44px;
}

.mph-counter {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.mph-resources-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.mph-resources-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.mph-resources-btn:active { background: rgba(0,0,0,0.08); }

/* Module Header (logo + PDF download) — English modules only */
.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    padding: 8px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.module-header-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.module-header-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.module-header-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s;
}

.module-header-pdf:hover {
    background: #e0a040;
}

.pdf-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.pdf-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

/* On narrow screens hide 'Download ' word so button reads '⭳ PDF' without clipping */
@media (max-width: 480px) {
    .module-header { padding: 6px 10px !important; gap: 8px !important; }
    .module-header-logo img { height: 30px !important; }
    .module-header-pdf { padding: 6px 10px !important; font-size: 12px !important; }
    .pdf-label { display: none; }
}

/* Player Chrome / Controls */
.player-chrome {
    display: flex;
    flex-direction: column;
    background: var(--primary-color);
    color: white;
    padding: 8px 20px 10px;
    gap: 6px;
    flex-shrink: 0;
}

/* Audio progress scrubber — full-width row above the controls */
.audio-scrubber-row {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 2px 0;
}

.audio-scrubber {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(
        to right,
        var(--accent-color) 0% var(--audio-pct, 0%),
        rgba(255, 255, 255, 0.25) var(--audio-pct, 0%) 100%
    );
    cursor: pointer;
    outline: none;
    border: none;
}

.audio-scrubber::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
    transition: transform 0.1s;
}

.audio-scrubber::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.audio-scrubber::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--accent-color);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.audio-scrubber::-moz-range-track {
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.25);
}

/* Greyed-out state when audio hasn't started yet (autoplay blocked) */
.audio-scrubber:disabled,
.chrome-volume:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Row that holds the left/right control groups */
.player-chrome-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.player-chrome-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-chrome-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.player-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.player-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.player-button.primary {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

.player-button.primary:hover {
    background: #e0a040;
}

.audio-control {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.audio-control:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Icon-only play/pause variant */
.audio-play-btn {
    padding: 0;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
}

.audio-play-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}

/* Icon-only chrome buttons (Prev, Next) — compact square, no text */
.chrome-icon-btn {
    padding: 0 !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.chrome-icon-btn svg {
    width: 16px;
    height: 16px;
    display: block;
    pointer-events: none;
}

/* Speed button in portrait chrome — wider to fit text like "0.75×" */
.chrome-speed-btn {
    width: auto !important;
    padding: 0 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

/* Nav button icon/label toggle -------------------------------------------- */
/* Desktop: show text label, hide SVG icon.                                   */
/* Mobile portrait (≤520px): hide text label, show SVG icon.                 */
.btn-icon { display: none; }
.btn-label { display: inline; }

/* Speed: desktop shows label+select, mobile portrait shows compact text button */
.chrome-speed-mobile { display: none; }

@media (max-width: 520px) and (orientation: portrait) {
    /* Switch header: hide logo/PDF bar, show mobile counter + resources icon */
    .module-header          { display: none !important; }
    .mobile-portrait-header { display: flex !important; }

    /* Icon-only nav buttons */
    .btn-icon  { display: inline-flex; align-items: center; }
    .btn-label { display: none; }

    .player-button {
        padding: 0 !important;
        width: 34px !important;
        height: 34px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .btn-icon svg { width: 16px; height: 16px; pointer-events: none; }

    /* Hide counter and volume on compact mobile bar */
    .progress-info   { display: none !important; }
    .chrome-vol-wrap { display: none !important; }
    .chrome-label    { display: none !important; }
    .chrome-speed-label  { display: none !important; }
    .chrome-speed-select { display: none !important; }
    .chrome-speed-mobile { display: inline-flex !important; }

    .player-chrome { padding: 6px 12px 8px !important; gap: 4px !important; }
    .player-chrome-left, .player-chrome-right { gap: 6px !important; }
}

/* Speed + Volume controls */
.chrome-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    white-space: nowrap;
}

.chrome-select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.chrome-select:hover {
    background: rgba(255, 255, 255, 0.25);
}

.chrome-select option {
    background: #444;
    color: white;
}

.chrome-vol-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chrome-vol-icon {
    font-size: 14px;
    line-height: 1;
    cursor: default;
    user-select: none;
}

.chrome-volume {
    width: 72px;
    height: 4px;
    cursor: pointer;
    accent-color: var(--accent-color);
    vertical-align: middle;
}

.progress-info {
    font-size: 13px;
    opacity: 0.9;
}

/* Modal / Popup Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
    max-width: 320px;
    width: 80%;
    max-height: 55vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.modal-body dt {
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 4px;
}

.modal-body dd {
    margin: 0 0 12px 0;
    color: #555;
}

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

/* Focus Visible for Keyboard Navigation */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
        position: absolute;
        height: 100%;
        z-index: 100;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .player-chrome {
        flex-wrap: wrap;
    }

    .modal-content {
        width: 95%;
        padding: 16px;
    }
}

/* Main content area — desktop/portrait: column; landscape mobile: row (overridden below) */
.main-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

/* ---- Landscape scrubber bar ------------------------------------------- */
/* Thin audio-progress strip at the foot of the canvas, landscape only.    */
.landscape-scrubber-bar {
    display: none; /* shown by landscape media query */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 18px;
    padding: 4px 8px;
    background: var(--primary-color);
    z-index: 10;
    align-items: center;
}

/* .landscape-scrubber reuses .audio-scrubber for fill/thumb styles */
.landscape-scrubber {
    width: 100%;
}

/* ---- Landscape rail ---------------------------------------------------- */
/* Right-side icon bar in landscape mobile; hidden in portrait/desktop.     */
.landscape-rail {
    display: none; /* shown by landscape media query */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 60px;
    flex-shrink: 0;
    background: var(--primary-color);
    padding: 12px 0;
}

/* Push the prev/next pair to the bottom of the rail, creating a natural
   visual break between the audio controls and the navigation buttons. */
.ls-btn-prev {
    margin-top: auto;
}

.landscape-rail-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.landscape-rail-btn:hover,
.landscape-rail-btn:active {
    background: rgba(255, 255, 255, 0.3);
}

.landscape-rail-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.landscape-rail-btn svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
    display: block;
    flex-shrink: 0;
}

/* ---- Speed popup (landscape) ------------------------------------------ */
.ls-speed-popup {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.22);
    min-width: 150px;
    overflow: hidden;
    font-family: inherit;
}

.ls-speed-popup-title {
    padding: 14px 18px 6px;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
}

.ls-speed-popup-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    font-family: inherit;
}

.ls-speed-popup-row:hover {
    background: #f5f5f5;
}

.ls-speed-popup-row.active {
    font-weight: 600;
}

.ls-speed-popup-check {
    width: 16px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Resources / PDF panel -------------------------------------------- */
/* Full-screen overlay: used by mobile portrait and landscape                 */
.ls-resources-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: stretch;
    z-index: 2000;
}

.ls-resources-modal {
    background: #eff1f4;
    border-radius: 0;
    width: 100%;
    overflow-y: auto;
}

/* Desktop popover: anchored below the trigger button, no backdrop           */
.ls-resources-popover {
    background: #fff;
    border-radius: 14px;
    min-width: 300px;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.18);
}

.ls-resources-hdr {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.ls-resources-hdr .ls-resources-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.ls-resources-close {
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    color: #555;
    line-height: 1;
    flex-shrink: 0;
}

.ls-resources-close:hover {
    background: rgba(0, 0, 0, 0.18);
}

.ls-resources-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: transparent;
    text-decoration: none;
    color: inherit;
}

.ls-resources-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.ls-resources-file-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: #6b7280;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ls-resources-file-icon svg {
    width: 22px;
    height: 22px;
}

.ls-resources-fname {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.4;
}

.ls-resources-ftype {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

/* ---- Landscape mobile layout (@media) ---------------------------------- */
@media (orientation: landscape) and (max-height: 500px) {
    .module-header       { display: none !important; }
    .player-chrome       { display: none !important; }

    .main-area {
        flex-direction: row !important;
    }

    .landscape-rail {
        display: flex;
    }

    .landscape-scrubber-bar {
        display: flex;
    }
}

/* ---- Enrollment period HTML tables (Medicare slides 19 & 20) ------------ */

/* Fix position so table cells flow normally inside the absolute canvas */
.et-container * {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    transform-origin: initial !important;
    box-sizing: border-box !important;
    white-space: normal !important;
}

/* CLEAN SLATE: remove every border on every table element, then re-add only
   the borders we actually want. */
.et-container table,
.et-container thead,
.et-container tbody,
.et-container tr,
.et-container th,
.et-container td {
    border: none !important;
}

/* ---- Container ---- */
.et-container {
    font-family: inherit;
    font-size: 14.667px;
    line-height: 20px;
    color: #333;
    width: 100%;
}

/* ---- Outer table ---- */
.et-outer {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    outline: 1px solid #c8bfc4;   /* outline doesn't participate in collapse */
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.18);
}

/* Horizontal rule between each outer-table row */
.et-outer > tbody > tr + tr > td,
.et-outer > tbody > tr + tr > th {
    border-top: 1px solid #c8bfc4 !important;
}

/* ---- Label column ---- */
.et-label {
    width: 140px;
    text-align: center;
    vertical-align: middle !important;
    font-weight: 700;
    padding: 14px 10px !important;
}

.et-label-maroon { color: #823447; background: #f9f1f6; }
.et-label-gold   { color: #b5a150; background: #f9f3e6; }
.et-label-plain  { color: #333;    font-weight: 600; }
.et-label-bg-maroon { background: #f9f1f6 !important; }
.et-label-bg-gold   { background: #f9f3e6 !important; }

/* Vertical rule between label and body columns */
.et-outer > tbody > tr > .et-body {
    border-left: 1px solid #c8bfc4 !important;
}

/* The footnote sits in a row where the label is on the left spanning with rowspan=2.
   Both the label (rowspan=2) and the footnote share the maroon background color.
   Since there is a horizontal border by default between outer rows, we override it
   below so there is NO border-top between the inner dates row and the footnote-solo row,
   allowing the label and footnote backgrounds/contours to blend in beautifully. */
.et-outer > tbody > tr:has(> .et-footnote-solo) {
    border-top: none !important;
}
.et-outer > tbody > tr:has(> .et-footnote-solo) > td {
    border-top: none !important;
}

/* ---- Body column ---- */
.et-body {
    background: #fff;
    vertical-align: top !important;
    padding: 8px 14px !important;
}

.et-body:has(> .et-inner) { padding: 0 !important; border-bottom: 1px solid #c8bfc4 !important; }

/* ---- Inner dates table ---- */
.et-inner {
    width: 100%;
    border-collapse: collapse;
    font-size: inherit;
}

/* Header row */
.et-inner > thead > tr > th {
    background: #823447;
    color: #fff;
    padding: 14px 10px !important;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid rgba(255,255,255,0.35) !important;
}
.et-inner > thead > tr > th:last-child { border-right: none !important; }

.et-inner-gold > thead > tr > th { background: #b5a150; }

/* Body rows: horizontal separator + vertical column separator */
.et-inner > tbody > tr + tr > td {
    border-top: 1px solid #ddd !important;
}
.et-inner > tbody > tr > td + td {
    border-left: 1px solid #ddd !important;
}

.et-inner > tbody > tr > td {
    padding: 4px 10px;
    vertical-align: top;
    background: #fff;
}
.et-inner > tbody > tr:nth-child(odd)  > td { background: #fdf6f8; }
.et-inner > tbody > tr:nth-child(even) > td { background: #fff; }

/* ---- Footnote row ---- */
/* The Dates label above has rowspan=2 so it spans this row too — no left
   border needed on the footnote cell (the label cell provides it). */
.et-footnote-solo {
    background: #f9f1f6 !important;
    font-style: italic;
    font-size: 13px;
    line-height: 16px;
    color: #4a4a4a;
    padding: 8px 12px 8px 12px !important;
    vertical-align: top !important;
    border-left: none !important;
}

/* ---- Misc ---- */
.et-section-spacer { display: none; }
.et-bold { font-weight: 700; }

.et-body ul, .et-body ol { margin: 4px 0 0 0; padding-left: 18px; }
.et-body li { margin-bottom: 3px; line-height: 1.4; }
