/* ==========================================================================
   Strata DSA — Shared Slide Styles
   Include via: <link rel="stylesheet" href="slide-css.css">
   Place AFTER the Reveal.js theme CSS and Google Fonts link.
   
   Per-slide overrides (if any) can go in a small <style> block in each HTML.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    --primary: #2c3e50;
    --accent: #d97757;
    --dark: #1a252f;
    --blue-grey: #3a4a5c;
    --warm-cream: #faf6f1;
    --light-grey: #f0eeeb;
}

/* ---------- Base Reset ---------- */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* ---------- Reveal.js Overrides ---------- */
.reveal {
    font-family: 'Outfit', sans-serif;
}

.reveal .slides {
    width: 100% !important;
    height: 100% !important;
}

.reveal .slides section {
    padding: 0;
    text-align: left;
    overflow: hidden;
    box-sizing: border-box;
    height: 100% !important;
    width: 100% !important;
}

/* ---------- Slide Layout (sidebar + main) ---------- */
.slide-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    height: 100%;
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

/* ---------- Sidebar ---------- */
.sidebar {
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 22px;
}

.sidebar-top {
    flex-shrink: 0;
}

.sidebar-middle {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: 'Space Mono', monospace;
    font-size: 0.58rem;
    color: rgba(255,255,255,0.22);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.sidebar-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--accent);
}

.sidebar-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--accent);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-back:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- Main Content Area ---------- */
.main {
    padding: 50px 55px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.main h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.0rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.heading-underline {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 28px;
    border-radius: 2px;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 10px;
}

/* ---------- Pattern A: Icon-Led Points ---------- */
.point {
    display: flex;
    gap: 18px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.point-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 6px;
    background: rgba(217,119,87,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    color: var(--accent);
    font-weight: 700;
}

.point-content h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 4px 0;
}

.point-content p {
    font-family: 'Source Serif 4', serif;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.point-content p strong {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Pattern B: Bullet List ---------- */
.bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bullet-list li {
    font-family: 'Source Serif 4', serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    padding: 10px 0;
    padding-left: 20px;
    position: relative;
    border-bottom: 1px solid #f0eeeb;
}

.bullet-list li:last-child {
    border-bottom: none;
}

.bullet-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 17px;
    width: 8px;
    height: 2px;
    background: var(--accent);
}

.bullet-list li strong {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Pattern C: Callout ---------- */
.callout {
    background: var(--warm-cream);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    margin-top: 20px;
    border-radius: 0 6px 6px 0;
}

.callout p {
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: var(--blue-grey);
    line-height: 1.6;
    margin: 0;
}

.callout strong {
    color: var(--accent);
    font-weight: 600;
}

/* ---------- Pattern D: Two-Column Cards ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.col-card {
    background: var(--warm-cream);
    border-radius: 8px;
    padding: 22px;
    border-top: 3px solid var(--accent);
}

.col-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 8px 0;
}

.col-card p {
    font-family: 'Source Serif 4', serif;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.col-card p strong {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Pattern E: Summary Table ---------- */
.summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.summary-table thead th {
    background: var(--primary);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    padding: 10px 14px;
    text-align: left;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-table tbody td {
    font-family: 'Source Serif 4', serif;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.summary-table tbody td strong {
    color: var(--primary);
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.summary-table tbody tr:hover {
    background: var(--warm-cream);
}

/* ---------- Pattern F: Visual Split (SVG + Text) ---------- */
.visual-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 35px;
    align-items: center;
    height: 100%;
}

.visual-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.visual-area svg {
    width: 100%;
    height: auto;
    max-height: 380px;
}

.visual-text h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px 0;
}

.visual-text p {
    font-family: 'Source Serif 4', serif;
    font-size: 0.92rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.visual-text p strong {
    color: var(--primary);
    font-weight: 600;
}

/* ---------- Title Slide ---------- */
.title-slide-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    width: 100%;
    min-height: 100vh;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.title-slide-layout::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(217,119,87,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(26,37,47,0.3) 0%, transparent 50%);
}

.title-logo {
    position: relative;
    margin-bottom: 30px;
    width: 120px;
    height: auto;
}

.title-logo svg {
    width: 100%;
    height: auto;
}

.title-slide-layout h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #fff;
    margin: 0 0 12px 0;
    position: relative;
    line-height: 1.15;
}

.title-slide-layout .subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 400;
    position: relative;
    letter-spacing: 0.5px;
}

/* ---------- Section Divider Slide ---------- */
.divider-slide-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    height: 100%;
    width: 100%;
    min-height: 100vh;
    background: var(--warm-cream);
}

.divider-slide-layout .sidebar {
    background: var(--primary);
}

.divider-slide-layout .divider-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 60px;
}

.divider-slide-layout .divider-number {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 5px;
}

.divider-slide-layout h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.divider-slide-layout .divider-desc {
    font-family: 'Source Serif 4', serif;
    font-size: 1rem;
    color: #888;
    margin-top: 14px;
    line-height: 1.6;
    max-width: 500px;
}

/* ---------- Utility: Blue Dot (used in introduction_to_debt) ---------- */
.blue-dot {
    color: #1e73be;
    font-size: 1.8em;
}
