/* --------------Style.CSS File Start Here----------------*/

/* =========================================================
   FAMILY REFLECTIVE CONVERSATIONS — MASTER STYLESHEET
   ---------------------------------------------------------
   Layout, Components, and Interactions
   Version: 1.0 (Clean + Hostinger-Optimized)
   Last Updated: 2025-12-03
   ========================================================= */


   /* ================================================================
     RLMS UI CONSTITUTION — CONTRIBUTOR WARNING HEADER
     ⚠️ RLMS UI CONSTITUTION — CONTRIBUTOR WARNING
      ================================================================
   
      Project: RLMS — Reflective Learning Management System
      Version: UI V1.0 (Frozen)
      Status: Production-Ready / Governed System
   
      ---------------------------------------------------------------
      IMPORTANT — READ BEFORE MODIFYING THIS FILE
      ---------------------------------------------------------------
   
      This UI is NOT a collection of ad-hoc styles or scripts.
      It is a deliberately architected, layered, and cognitively
      governed learning system.
   
      Every class, variable, layout, shadow, color, and interaction
      exists to serve:
        • reading dignity
        • reflective cognition
        • calm attention
        • minimal visual noise
        • long-form engagement
   
      ---------------------------------------------------------------
      ARCHITECTURAL RULES (NON-NEGOTIABLE)
      ---------------------------------------------------------------
   
      1. LAYER GOVERNANCE
         - UI is structured into logical layers (L0–L6)
         - Visuals are governed by Surface Planes (S0–S4)
         - Do NOT blur layer responsibilities
         - Do NOT move components across layers casually
   
      2. MODE SYMMETRY
         - Light Mode and Dim Mode must remain structurally symmetric
         - Visual values may differ; geometry and hierarchy must NOT
         - Never "fix" one mode without verifying the other
   
      3. TYPOGRAPHY FIRST
         - Text is the primary medium of RLMS
         - Shapes, colors, shadows are secondary
         - Avoid decorative emphasis, icons, emojis, or visual noise
   
      4. NO GLOBAL SIDE EFFECTS
         - Avoid modifying global selectors (<em>, <strong>, p, div)
         - Scope changes tightly (e.g., .content-display, .rc-thread)
         - If you break reading cognition, the change is invalid
   
      5. RC SYSTEM IS SACRED
         - RC (Reflective Conversations) is the ONLY write-enabled zone
         - Do NOT introduce styles or logic that leak into reading areas
         - Buttons, inputs, and cards must respect RC boundaries
   
      ---------------------------------------------------------------
      CHANGE DISCIPLINE
      ---------------------------------------------------------------
   
      ✔ Allowed:
        - Micro-refinements
        - Geometry harmonization
        - Contrast tuning
        - Cognitive readability improvements
        - Bug fixes with clear root-cause understanding
   
      ✖ Forbidden:
        - Decorative enhancements
        - Visual experiments without rationale
        - Quick fixes that introduce side effects
        - Adding features without architectural mapping
   
      ---------------------------------------------------------------
      IF YOU MUST CHANGE SOMETHING
      ---------------------------------------------------------------
   
      Ask yourself FIRST:
        • Which Layer (L?) does this belong to?
        • Which Surface (S?) does this touch?
        • Does this affect reading cognition?
        • Does this break Light/Dim symmetry?
        • Is this solving a root cause or a symptom?
   
      If you cannot answer clearly — STOP.
   
      ---------------------------------------------------------------
      FINAL NOTE
      ---------------------------------------------------------------
   
      RLMS is a learning system, not a website.
      Treat it with the dignity of a book, not an app.
   
      ================================================================ */
   

/* =========================================================
   CORE RESET AND TYPOGRAPHY
   ========================================================= */


   /* =========================================================
   DEFINING THE ARCHITECTURAL CONSTANTS
   ========================================================= */


   :root {
    --top-pane-height: 140px;          /* sticky top + padding */
    --invocation-bar-height: 40px;      /* after your refinement */
    --tile-bar-height: 70px;            /* sticky horizontal bar */
    --rlms-line-height-reading: 1.7;    /*Introduce - DAY 1 ONE controlled vertical rhythm constant*/
}

/* =========================================================
   GLOBAL TYPOGRAPHY BASELINE — RLMS V1.0
   Purpose: Ensure consistent reading weight across platforms 
   for online site
   ========================================================= */

  /* added post-launch DAY 1 */
   html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    color: #222;
}


/*--- Added as DAY 5 Fix to limit global gag order for hot
having horizontal scroll bar in anycase as 5% right-side 
UI hidden on very small mobile screens---*/


/*---To prevents implicit viewport locking on desktop---*/
html, body {
    height: auto;
}

html {
    overflow-x: auto;
}

body {
    overflow-x: hidden;
}


/* =========================================================
   GLOBAL ONCLICK CARET SUPPRESSION — NON-AUTHORING UI
   “Nothing blinks unless I need to type”
   reader-dignity-first UI
   ========================================================= */

   body {
    caret-color: transparent;
}


/*Explicitly allow .content-display to scroll if needed
Add once, globally (safe): This alone may already solve 
the “one word clipped” issue- DAY 5 Fix */

.content-display {
    max-width: 100%;
    overflow-x: auto;
}


/*explicit box sizing safety (this is the missing piece)
Add once, globally: 

Without this, padding + width: 100% can exceed viewport by a few pixels.
This alone often fixes the “one word clipped” bug.*/

*, *::before, *::after {
    box-sizing: border-box;
}



/* =========================================================
   FOCUS VISIBILITY — QUIET & CONSISTENT
   ========================================================= */

:focus-visible {
    outline: 2px solid rgba(212,175,55,0.65);
    outline-offset: 2px;
    border-radius: 6px;
}


/* =========================================================
   TOP PANE (L1)
   ========================================================= */

.top-pane {
    text-align: center;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 2rem 1rem 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative;

/* Harmonize with reading environment typography */
      
font-weight: 500;                  /* balanced, calm */
letter-spacing: 0.2px;             /* subtle precision */

}

.top-pane h1 {
    margin: 0;
    font-size: 2.2rem; /* 2rem; */
    font-weight: 600;
}

.top-pane .subtitle {
    margin: 0.4rem 0 1.5rem;
    font-size: 1.2rem; /*1.1rem; */
    font-style: italic;
    color: #e2e8f0;
}

.main-title-block {
    margin-top: 2rem;
    line-height: 1.6;
    font-size: 1.1rem; /*1rem;*/
    color: #f3f4f6;
}

.main-title-block small {
    display: block;
    margin-top: 1rem;
    color: #cbd5e1;
    font-size:1.0rem; /*0.9rem;*/
    font-style: italic;
}

.theme-toggle {
    position: absolute;
    top: 12px;
    right: 18px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 10px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.3s ease;
}

.theme-toggle:hover {
    background: rgba(255,255,255,0.35);
}


/* =========================================================
   TILES SUB-SYSTEM — SHARED STRUCTURE (MODE-AGNOSTIC)
   Vertical + Horizontal Tiles
   ========================================================= */

/* Shared tile base (horizontal tiles use .tile; vertical use .vertical-tile) */
.tile,
.vertical-tile {
    box-sizing: border-box; /* fix to let vertical tiles appear fully within vertical scroll pane */
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.4rem;
    line-height: 1.25;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* Hover intent — spatial, not color */
.tile:hover,
.vertical-tile:hover {
    transform: translateY(-3px);
}

/* Active intent — semantic, not chromatic */
.tile.active,
.vertical-tile.active {
    font-weight: 700;
}

/* Width semantics */
.tile {
    width: 220px;
    flex: 0 0 220px;
}

.vertical-tile {
    width: 100%;
}

/* Tile-bar alignment and collision prevention */
.tile-bar-pane + .middle-pane-container {
    padding-top: 0.5rem;
}

/* Make content start after tile bar (subtle) */
.content-area {
    scroll-margin-top: 140px; /* equals vertical-pane top logic */
}

/* =========================================================
   HORIZONTAL TILE CONTAINER — FINAL, CLEAN, MODE-AGNOSTIC
   ========================================================= */

/* Tiles container:
   - Row 1: left aligned (always)
   - Row 2+: visually centered because container is centered
*/
/* =========================================================
   L3 — HORIZONTAL TILE CONTAINER (FINAL + RESTORED BEHAVIOUR)
   ========================================================= */
   .tiles-container {
    display: flex;
    flex-wrap: wrap;

    /* Both rows now centered */
    justify-content:center; /* controls centr alignment of summary tile */
    align-content:center;

    gap: 0.75rem;

    /* Restores correct left/right breathing space */
    max-width: calc(220px * 5 + 0.75rem * 4 + 3rem);

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   HORIZONTAL TILE BAR
   ========================================================= */

/* FINAL TILE-BAR PADDING — identical in both modes */
.tile-bar-pane {
    position: sticky;
    top: calc(100px);
    z-index: 999;
    background-color: #f9fafb;
    padding: 0.35rem 1.5rem 0.5rem 1.5rem;  /* top, right, bottom, left */
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.2rem;
}

/* =========================================================
   TILES SUB-SYSTEM - LIGHT MODE
   Horizontal + Vertical + Invocation band
   ========================================================= */

body:not(.dark-mode) .tile,
body:not(.dark-mode) .vertical-tile {
    background-color: #e0e7ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);

     /* Harmonize with reading environment typography */
      
     font-weight: 500;                  /* balanced, calm */
     letter-spacing: 0.2px;             /* subtle precision */
}

/* Hover — lift, not brightness */
body:not(.dark-mode) .tile:hover,
body:not(.dark-mode) .vertical-tile:hover {
    background-color: #c7d2fe;
}

/* Active — semantic anchor */
body:not(.dark-mode) .tile.active,
body:not(.dark-mode) .vertical-tile.active {
    background-color: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
    box-shadow: 0 2px 6px rgba(30,58,138,0.2);
}

/* Vertical tiles — lateral motion cue */
body:not(.dark-mode) .vertical-tile:hover {
    transform: translateX(3px);
}

/* Smooth seam for tile bar in light mode */
body:not(.dark-mode) .tile-bar-pane {
    border-bottom: 1px solid rgba(226,232,240,0.8);
}

/* LIGHT MODE — INVOCATION BAND (S1 SURFACE SYNERGY TUNING)
   Matches tile-bar surface, tile radius, and reading text style   */

   body:not(.dark-mode) .invocation-band {
    background: #e0e7ff;              /* SAME surface as horizontal tiles */
    color: #1e3a8a;                   /* SAME text color as tiles */

    /* Same elevation feel as tile-bar */
    border-bottom: 1px solid #e2e8f0; /* subtle light-mode seam */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);

    /* -----------------------------------------
       NEW — Perfectly matching Dim-Mode tuning
       ----------------------------------------- */

    border-radius: 10px;              /* same radius as .tile */

    /* Reading environment typography harmony */
    font-size: 1.05rem;               /* match content-display */
    line-height: 1.75;
    font-weight: 500;
    letter-spacing: 0.2px;

    padding: 0.65rem 0.9rem;          /* same breathing as dim-mode block */
}


/* =========================================================
   DIM-MODE — TILE SUB-SYSTEM (FINAL & CONSOLIDATED)
   Includes A → E (Refinement + Core Tiles + Seam Logic)
   ========================================================= */

/* --- Surface tokens (Phase 1) — single authoritative block --- */
body.dark-mode {
    --dm-bg-page: #1e2533;
    --dm-surface-base: #2a3243;
    --dm-surface-raised: #323b4f;
    --dm-surface-active: #3c4760;

    --dm-border-soft: #3a4457;

    --dm-text-primary: #e8eef7;
    --dm-text-muted: #c7d2e0;

    --dm-accent-gold: #d4af37;
    --dm-surface-orient: #3a4358;

    --dm-input-surface: var(--dm-surface-active);
}

/* Tile-bar gradient separator (soft seam) */
body.dark-mode .tile-bar-pane::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 8px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(42,50,67,0.9),
        rgba(42,50,67,0)
    );
}

/* =========================================================
   CORE TILES (Vertical + Horizontal) — Dim Mode
   ========================================================= */

body.dark-mode .tile,
body.dark-mode .vertical-tile {
    background-color: #323c52;
    color: #e4e9f2;
    border: 1px solid #3f4b63;
  
       /* Harmonize with reading environment typography */
      
       font-weight: 500;                  /* balanced, calm */
       letter-spacing: 0.2px;             /* subtle precision */
         
}

/* Horizontal-only inactive override (placed after core tiles) */
body.dark-mode .tile:not(.active) {
    background-color: var(--dm-surface-orient);
    color: var(--dm-text-primary);
}

/* Active state */
body.dark-mode .tile.active,
body.dark-mode .vertical-tile.active {
    background-color: var(--dm-accent-gold);
    color: #1f2937;
}

/* Vertical tiles motion cue (subtle lateral) */
body.dark-mode .vertical-tile:hover {
    transform: translateX(3px);
}


/* =========================================================
   CONTAINERS + LAYOUT REFINEMENTS — Dim Mode
   ========================================================= */


/*  DIM MODE — INVOCATION BAND (S1 SURFACE SYNERGY TUNING)
   Matches tile-bar surface, tile radius, and reading text style */

body.dark-mode .invocation-band {
    background: #323c52;               /* same material as tiles */
    color: #e4e9f2;                    /* same text color as tiles */

    /* same elevation feel as horizontal tile-bar */
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.35);

    /* -----------------------------------------
       NEW (AS YOU REQUESTED)
       ----------------------------------------- */

    border-radius: 10px;               /* same as .tile & .vertical-tile */

    /* Harmonize with reading environment typography */
    font-size: 1.05rem;                /* same as content-display */
    line-height: 1.75;                 /* same vertical rhythm */
    font-weight: 500;                  /* balanced, calm */
    letter-spacing: 0.2px;             /* subtle precision */

    padding: 0.65rem 0.9rem;           /* breath similar to reading pane */
}


   /* Horizontal tiles container surface */
body.dark-mode .tiles-container {
    background: var(--dm-surface-base);
}

/* Tile bar surface (soft seam and elevation) */
body.dark-mode .tile-bar-pane {
    background: linear-gradient(
        to bottom,
        var(--dm-bg-page) 0%,
        var(--dm-surface-base) 55%
    );
    border-bottom: none;
    box-shadow: 0 6px 12px -8px rgba(0,0,0,0.55);
}

/* Vertical pane background fully restored for dark mode */
body.dark-mode .vertical-pane {
    background: linear-gradient(180deg, #252d3d, #1e2533);
    border-right: none;
}

/* DIM MODE — L4 Learning Workspace Container (middle pane) */
body.dark-mode .middle-pane-container {
    background-color: var(--dm-surface-base); /* deep neutral surface */
}

/* DIM MODE — CLOSURE / FOOTNOTE LAYER (L5) */
body.dark-mode .bottom-pane {
    background: linear-gradient(
        to bottom,
        var(--dm-surface-base) 0%,
        var(--dm-bg-page) 70%
    );
    color: var(--dm-text-muted);
    box-shadow: 0 -6px 14px rgba(0,0,0,0.35);
}



/* =========================================================
   MIDDLE PANE LAYOUT (L4)
   ========================================================= */

.middle-pane-container {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 250px);
    overflow-x: hidden;
    margin-top: 0;
}




/* ===============================================================
   SCROLL OWNERSHIP — OPTION A (DESKTOP SAFE + MOBILE GOVERNED)
   Restores viewport scroll on desktop
   Keeps content-display scroll
   Mobile-only hard scroll ownership
   =============================================================== */

/* DESKTOP / TABLET DEFAULT — viewport scroll allowed */
html, body {
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Middle layout grows naturally */
.middle-pane-container {
    min-height: calc(100vh - 250px);
}

/* Reading pane keeps internal scroll */
.content-display {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}



/* =========================================================
   VERTICAL PANE (L4a)
   ========================================================= */

.vertical-pane {
    width: 220px;
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
    border-right: 1px solid #e2e8f0;
    box-shadow: inset -2px 0 3px rgba(0,0,0,0.02);
    padding: 1rem 0.8rem;
    position: relative;
    top: 140px;
    
    /* L4a — VERTICAL PANE (HEIGHT HARMONIZATION WITH READING PANE) */
    /* 122vh intentionally exceeds viewport to ensure
    full vertical-pane scroll dominance on tall content */

    height: calc(122vh - (var(--top-pane-height) + var(--invocation-bar-height) + var(--tile-bar-height)));

    overflow: visible; /* critical for sticky corner image visual escape */

    border-bottom-right-radius: 12px;   /* same radius as content-display */
    z-index: 4;
}


/* sole scroll owner - vertical pane scroll area */
.vertical-pane-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.vertical-tiles-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* VERTICAL PANE — IMAGE CAP (LIGHT MODE) */
.vertical-pane-cap {
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    height: 120px;
    background-image: url("images/falcon-family.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
    z-index: 2;
}


/* =========================================================
   CONTENT AREA (L4b)
   ========================================================= */

.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.5rem 2rem 2rem;
    gap: 1rem;
}

/* Invocation band (L2) — shared */
.invocation-band {
    text-align: center;
    font-style: italic;
    font-size: 1.2rem; /* 0.95rem; */
    color: #475569;
    padding: 0.6rem 0;
    background-color: #e0e7ff; /* same as .tile-bar-pane in light */
    border-bottom: 1px solid #e2e8f0;
}

.tile-summary {
    max-height: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    align-self: flex-start;
}


/* =========================================================
   BOTTOM PANE — Ethical Closure (L5)
   ========================================================= */

.bottom-pane {
    text-align: center;
    background: linear-gradient(
      to bottom,
      #f1f5f9 0%,
      #f9fafb 35%
    );
    padding: 7px 20px 12px;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.4;
    border-top: none;
    box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.04);
}


/* =========================================================
   COLLAPSIBLES — SHARED STRUCTURE (MODE-AGNOSTIC)
   ========================================================= */

summary::marker {
    content: "";
}

.vertical-content details,
.content-display details {
    margin-bottom: 1rem;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.35s ease;
}

.vertical-content details summary,
.content-display details summary {
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-left: 1.2rem;
    padding-right: 1.5rem;
}

.vertical-content details summary::before,
.content-display details summary::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0.05rem;
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.vertical-content details summary::after,
.content-display details summary::after {
    content: "▸";
    position: absolute;
    right: 0.25rem;
    top: 0.15rem;
    font-size: 0.95rem;
    transition: transform 0.25s ease;
}

.vertical-content details[open] summary::before,
.vertical-content details[open] summary::after,
.content-display details[open] summary::before,
.content-display details[open] summary::after {
    transform: rotate(90deg);
}

.vertical-content details[open] > *:not(summary),
.content-display details[open] > *:not(summary) {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Light-mode collapsibles */
body:not(.dark-mode) .vertical-content details,
body:not(.dark-mode) .content-display details {
    background: #fdfbf5;
    border: 1px solid #e6dcc2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

body:not(.dark-mode) .vertical-content details:hover,
body:not(.dark-mode) .content-display details:hover {
    background: #fffdf2;
}

body:not(.dark-mode) .vertical-content details summary,
body:not(.dark-mode) .content-display details summary {
    color: #1e293b;
}

body:not(.dark-mode) .vertical-content details .content,
body:not(.dark-mode) .content-display details .content {
    color: #334155;
    margin-top: 0.5rem;
    line-height: 1.55;
}

/* Dim-mode collapsibles */
body.dark-mode .vertical-content details,
body.dark-mode .content-display details {
    background: var(--dm-surface-base);
    border: 1px solid var(--dm-border-soft);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.35);
}

body.dark-mode .vertical-content details:hover,
body.dark-mode .content-display details:hover {
    background: var(--dm-surface-active);
}

body.dark-mode .vertical-content details summary,
body.dark-mode .content-display details summary {
    color: var(--dm-text-primary);
}

body.dark-mode .vertical-content details .content,
body.dark-mode .content-display details .content {
    color: var(--dm-text-primary);
    margin-top: 0.5rem;
    line-height: 1.55;
}


/* =========================================================
   READING ENVIRONMENT SUB-SYSTEM — CONTENT DISPLAY (Shared)
   ========================================================= */

  
  /* DAY 1 font-metric fixing on public web - only in reading environment */
   .content-display {
    line-height: var(--rlms-line-height-reading);
}


.content-display {
    position: relative; /* REQUIRED for readingContextLabel anchoring */
    border-radius: 12px;
    padding: 0.4rem 2.5rem 2.2rem;
    min-height: 200px;
    max-width: 950px;
    max-height: 72vh;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 auto;
    line-height: 1.75;
    font-size: 1.05rem;
}


.content-display p {
    margin-bottom: 1.4rem;
    text-align: justify;
}

.content-display strong {
    font-weight: 600;
    padding: 0 2px;
}

.content-display em {
    font-style: italic;
    padding: 0 2px;
}

.content-display::after {
    content: "";
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 32px;
    pointer-events: none;
}

/* TWO-COLUMN INSTRUCTION BLOCK 
   Used in Vertical Tile 6 — "How To Go Through" */

   .content-display .two-col {
    display: flex;
    gap: 2.2rem;                 /* cognitive breathing space */
    align-items: flex-start;
    margin: 1.4rem 0;
}

/* Each column */
.content-display .two-col > div {
    flex: 1;
    min-width: 0;                /* prevents overflow wrapping issues */
}

/* Headings inside columns */
.content-display .two-col h4 {
    margin-bottom: 0.6rem;
    font-weight: 700;
}

/* Mobile safety */
@media (max-width: 768px) {
    .content-display .two-col {
        flex-direction: column;
        gap: 1.2rem;
    }
}



/* --- L4b — READING ENVIRONMENT (CONTENT-DISPLAY)
   BULLET LIST MICRO-TYPOGRAPHY REFINEMENT - Shared ---*/
  

/* Base list readability */
.content-display ul {
    margin-top: 0.4rem;
    margin-bottom: 1.1rem;
    padding-left: 1.15rem;     /* soft indent, readable */
    line-height: 1.65;         /* same rhythm as paragraphs */
    font-size: 1.04rem;        /* harmonized size */
}

/* List items */
.content-display ul li {
    margin-bottom: 0.28rem;    /* micro-spacing between lines */
    text-align: left;
}

/* Strong inside list — slight visual anchor */
.content-display ul li strong {
    font-weight: 600;
    letter-spacing: 0.1px;
}

/* Natural “section break” inside long lists */
.content-display ul li + br {
    line-height: 1.0;
    margin-bottom: 0.4rem;
}

/* Optional: give long lists a slightly calmer tone */
body.dark-mode .content-display ul {
    color: #e6eaf0;            /* same as reading text */
}

body:not(.dark-mode) .content-display ul {
    color: #1e293b;            /* optimized quiet blue-grey */
}

/* Prevent bullet lists from shrinking too narrow
   when video-block is tall */
.content-row ul {
    flex: 1;
    min-width: 48%;
}

/* Keep list from touching video-block too closely */
.content-row {
    gap: 1.6rem;                /* breathing room */
}



/*INSERT THIS BLOCK (verbatim)-DAY 6 insertion to have floating label sticky to reading pane and linked to scrolling*/
/* =========================================================
   FLOATING READING CONTEXT LABEL (RLMS)
   Appears only during reader scroll interaction
   ========================================================= */

#readingContextLabel {
    position: absolute;
    top: 12px;
    left: -14px; /* floats just OUTSIDE content-display */
    transform: translateX(-100%);

    max-width: 220px;
    padding: 0.45rem 0.7rem;

    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;

    border-radius: 8px;
    white-space: normal;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;

    z-index: 8;
}

/* Light mode — inherits tile material */
body:not(.dark-mode) #readingContextLabel {
    background: #e0e7ff;
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Dim mode — inherits tile material */
body.dark-mode #readingContextLabel {
    background: #323c52;
    color: #e4e9f2;
    border: 1px solid #3f4b63;
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

/* Visible state (JS controlled) */
#readingContextLabel.visible {
    opacity: 1;
}

/* Mobile safety — silently disable if space insufficient */
@media (max-width: 520px) {
    #readingContextLabel {
        display: none;
    }
}

/*---End of CSS block for - FLOATING READING CONTEXT LABEL (RLMS)---*/



/* =========================================================
   READING ENVIRONMENT SUB-SYSTEM — CONTENT DISPLAY (LIGHT-MODE)
   ========================================================= */

   /* Light-mode content surface */
body:not(.dark-mode) .content-display {
    background: #ffffff;
    color: #1e293b;
}

body:not(.dark-mode) .content-display p {
    color: #1e293b;
}

body:not(.dark-mode) .content-display em {
    color: #1e40af;
    opacity: 0.9;
}

body:not(.dark-mode) .content-display::after {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,1)
    );
}


/*Chapter 5 Closing Dua uses reading text color (dark grey), not blue- LIGHT-MODE */

/* =========================================================
   🌸 CLOSING DUA — LIGHT MODE
   Calm body voice + intentional emphasis
   ========================================================= */

/* Base Dua voice */
body:not(.dark-mode) .closing-dua em {
    color: #1e293b;              /* reading environment text */
    font-style: italic;
    font-weight: 400;
    opacity: 0.95;

    /* HARD RESET of global <em> ornamentation */
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Only intentional emphasis */
body:not(.dark-mode) .closing-dua em strong {
    color: #2563eb;              /* reading emphasis blue */
    font-weight: 600;
}




/* =========================================================
   READING ENVIRONMENT SUB-SYSTEM — CONTENT DISPLAY (DIM-MODE)
   ========================================================= */

/* Dim-mode content surface */
body.dark-mode .content-display {
    background: var(--dm-surface-raised);
    color: var(--dm-text-primary);
    font-weight: 400; /* calming weight for long reads */
}

body.dark-mode .content-display p {
    color: var(--dm-text-primary);
}

body.dark-mode .content-display em {
    color: var(--dm-accent-gold);
}

body.dark-mode .content-display::after {
    background: linear-gradient(
        to bottom,
        rgba(15,18,24,0),
        rgba(15,18,24,0.95)
    );
}


/*Chapter 5 Closing Dua uses reading text color (soft white), not golden - DIM-MODE*/
/* =========================================================
   🌸 CLOSING DUA — DIM MODE
   Soft spiritual voice + warm peaks
   ========================================================= */

/* Base Dua voice */
body.dark-mode .closing-dua em {
    color: #e4e9f2;              /* reading environment white */
    font-style: italic;
    font-weight: 400;
    opacity: 0.92;

    /* HARD RESET of global <em> ornamentation */
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Intentional emphasis only */
body.dark-mode .closing-dua em strong {
    color: #f5c77a;              /* golden emphasis */
    font-weight: 600;
}

/* Optional: subtle final cadence */
body.dark-mode .closing-dua em strong:last-child {
    letter-spacing: 0.4px;
}



/* =========================================================
   TABLES — Chapter Tables (Global- SHARED + LIGHT MODE)
   ========================================================= */

.chapter-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.6rem 0;
    font-size: 0.95rem;
    line-height: 1.55;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chapter-table th {
    background-color: #eef2ff;
    color: #1e293b;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #dbeafe;
}

.chapter-table td {
    padding: 0.75rem 0.85rem;
    vertical-align: top;
    color: #334155;
    border-bottom: 1px solid #e5e7eb;
}

.chapter-table tr:last-child td {
    border-bottom: none;
}

.chapter-table tr:nth-child(even) td {
    background-color: #f8fafc;
}

details .chapter-table {
    margin-top: 1.25rem;
}

/* =========================================================
   TABLES — Chapter Tables (DIM-MODE)
   ========================================================= */

/* Dim-mode chapter-table overrides */
body.dark-mode .chapter-table {
    background-color: var(--dm-surface-raised);
    color: var(--dm-text-primary);
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
}

body.dark-mode .content-display table.chapter-table thead th {
    background-color: var(--dm-surface-orient);
    color: var(--dm-text-primary);
    border-bottom: 1px solid var(--dm-border-soft);
}

body.dark-mode .chapter-table td {
    color: var(--dm-text-primary);
    border-bottom: 1px solid var(--dm-border-soft);
}

body.dark-mode .chapter-table tr:nth-child(even) td {
    background-color: rgba(255,255,255,0.03);
}

body.dark-mode .chapter-table thead th {
    position: relative;
    z-index: 1;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
}


/* =================================================================
   VIDEO POPUP MODAL (100% FIXED + MOBILE SAFE) DR SALMAN VIDEO POPUP
   ================================================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background: #000;
    width: 90%;
    max-width: 720px;
    border-radius: 12px;
    overflow: hidden;
}

.modal .close {
    position: absolute;
    top: 8px;
    right: 16px;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 1001;
}

.modal iframe {
    width: 100%;
    height: 405px;
    border: none;
}


/* =========================================================
   RC SUB-SYSTEM — SHARED (MODE-AGNOSTIC)
   Scope: L4b-B only (Reflective Conversations)
   ========================================================= */

.rc-thread {
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.thread-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.thread-meta-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
}

.meta-row {
    font-size: 0.92rem;
}

.rc-label {
    font-weight: 600;
    margin-right: 6px;
    font-size: 0.88rem;
}

.rc-value {
    font-weight: 700;
    font-size: 0.92rem;
}

.thread-title {
    margin: 4px 0 0 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.thread-body {
    margin-top: 12px;
    line-height: 1.55;
}

.rc-text {
    margin-top: 6px;
    white-space: pre-wrap;
}

.rc-replies {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
}

.rc-reply {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.rc-reply-meta {
    font-size: 0.88rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.inline-reply {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.inline-reply .reply-input {
    flex: 1;
    min-height: 80px;
    resize: vertical;
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
}



.rc-thread .btn-toggle-replies,
.rc-thread .reply-post-btn {
    border-radius: 8px; /* button rounded corners */
}


/* RC cursor semantics */
#rcSearch,
#threadTitle,
#threadBody {
    cursor: text;
}

#searchBtn,
#newThreadBtn,
#createThreadBtn,
#cancelThreadBtn {
    cursor: pointer;
}

.rc-thread input[type="text"],
.rc-thread textarea {
    cursor: text;
}

.rc-thread button,
.rc-thread .btn-toggle-replies,
.rc-thread .reply-post-btn {
    cursor: pointer;
}


@media (max-width: 640px) {
    .thread-head {
        flex-direction: column;
        gap: 10px;
    }

    .thread-meta-block {
        min-width: auto;
    }

    .inline-reply {
        flex-direction: column;
    }
}

/* =========================================================
   RC SUB-SYSTEM — LIGHT MODE
   ========================================================= */

body:not(.dark-mode) .content-display {
    --rc-bg: #ffffff;
    --rc-inner-bg: #fffef8;
    --rc-muted: #64748b;
    --rc-accent: #d4af37;
    --rc-btn-bg: #1e3a8a;
    --rc-btn-text: #ffffff;
    --rc-input-bg: #faf8f0;
}

body:not(.dark-mode) .rc-thread {
    background: var(--rc-bg);
    border-left: 4px solid var(--rc-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

body:not(.dark-mode) .meta-row,
body:not(.dark-mode) .rc-label {
    color: var(--rc-muted);
}

body:not(.dark-mode) .rc-value,
body:not(.dark-mode) .thread-title,
body:not(.dark-mode) .thread-body,
body:not(.dark-mode) .rc-text {
    color: #1e293b;
}

body:not(.dark-mode) .rc-replies {
    background: var(--rc-inner-bg);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.03);
}

body:not(.dark-mode) .rc-reply {
    background: var(--rc-inner-bg);
}

body:not(.dark-mode) .reply-input,
body:not(.dark-mode) #rcSearch,
body:not(.dark-mode) #newThreadForm input,
body:not(.dark-mode) #newThreadForm textarea {
    background: var(--rc-input-bg);
    border: 1px solid #e7e0c9;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

body:not(.dark-mode) .reply-post-btn,
body:not(.dark-mode) .btn-toggle-replies,
body:not(.dark-mode) #newThreadBtn,
body:not(.dark-mode) #searchBtn,
body:not(.dark-mode) #createThreadBtn,
body:not(.dark-mode) #cancelThreadBtn {
    background: var(--rc-btn-bg);
    color: var(--rc-btn-text);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

body:not(.dark-mode) .reply-post-btn:hover,
body:not(.dark-mode) .btn-toggle-replies:hover,
body:not(.dark-mode) #newThreadBtn:hover,
body:not(.dark-mode) #searchBtn:hover,
body:not(.dark-mode) #createThreadBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.14);
}

body:not(.dark-mode) #cancelThreadBtn {
    background: #e2e8f0;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}


/* =========================================================
   RC SUB-SYSTEM — DIM MODE
   ========================================================= */

body.dark-mode .rc-thread {
    background: var(--dm-surface-raised);
    color: var(--dm-text-primary);
    border-left: 4px solid var(--dm-accent-gold);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.dark-mode .rc-thread:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.55);
}

body.dark-mode .rc-thread .thread-body,
body.dark-mode .rc-thread .rc-text {
    color: var(--dm-text-primary) !important;
}

body.dark-mode .rc-replies {
    background: var(--dm-surface-base);
    border-radius: 10px;
    padding: 12px;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.35);
}

body.dark-mode .rc-reply {
    background: var(--dm-surface-active);
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}


body.dark-mode .rc-reply-meta {
    color: var(--dm-text-muted) !important;
}


body.dark-mode .rc-reply,
body.dark-mode .rc-reply * {
    color: var(--dm-text-primary) !important;
}

body.dark-mode .rc-thread input,
body.dark-mode .rc-thread textarea,
body.dark-mode #newThreadForm input,
body.dark-mode #newThreadForm textarea,
body.dark-mode #rcSearch {
    background: var(--dm-input-surface) !important;
    color: var(--dm-text-primary) !important;
    border: 1px solid var(--dm-border-soft) !important;
    border-radius: 10px;
    box-shadow:
        inset 0 0 6px rgba(0,0,0,0.55),
        0 2px 6px rgba(0,0,0,0.40);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus {
    outline: none !important;
    border-color: var(--dm-accent-gold) !important;
    box-shadow:
        0 0 0 2px rgba(212,175,55,0.35),
        inset 0 0 6px rgba(0,0,0,0.55),
        0 4px 12px rgba(0,0,0,0.45) !important;
}


/*  RC — DIM MODE — THREAD LEVEL BUTTONS */

   body.dark-mode #newThreadBtn,
   body.dark-mode #createThreadBtn,
   body.dark-mode #searchBtn {
       background: #475266;
       color: #ffffff;
       border: none;
       font-weight: 600;
       box-shadow: 0 3px 8px rgba(0,0,0,0.45);
       transition: background 0.25s ease, transform 0.25s ease;
   }


   /* RC — DIM MODE — CANCEL BUTTON - Destructive presentation */

   body.dark-mode button[id*="cancel"],
body.dark-mode .rc-cancel-btn {
    background: var(--dm-accent-gold) !important;
    color: #1e293b !important;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(0,0,0,0.45);
}

   /*     RC — DIM MODE — REPLY LEVEL BUTTONS
   
        body.dark-mode .reply-post-btn, (Reply)
        body.dark-mode .btn-toggle-replies (Show/Hile) */

body.dark-mode .btn-toggle-replies, /*--- Show/Hile button---*/
body.dark-mode .reply-post-btn {    /*---Reply button---*/
    background: #3f4a5f;
    color: #ffffff;
    border: none;
    font-weight: 600;
    border-radius: 8px; /* button rounded corners */
    box-shadow: 0 2px 6px rgba(0,0,0,0.40);
    transition: background 0.25s ease, transform 0.25s ease;
}


body.dark-mode .reply-post-btn:hover,
body.dark-mode #createThreadBtn:hover,
body.dark-mode #searchBtn:hover {
    background: #636f88;
    transform: translateY(-2px);
}



/* =========================================================
   DAY 6 INSERTION - AUTHORING ZONES — CARET RESTORATION

    RC subsystem works
    Search box works
    Any future editor works
    Browser inconsistencies are neutralized

   ========================================================= */

   input,
   textarea,
   [contenteditable="true"],
   .rc-thread,
   .rc-thread * {
       caret-color: auto;
   }

   
  
/* Allow text selection but prevent focus illusion */
.content-display * {
    user-select: text;
}


/* =========================================================
   FLOATING CONTEXT LABEL — RC SAFETY GATE
   Hide label when user is writing (semantic intent)
   ========================================================= */

.content-display:focus-within #readingContextLabel {
    opacity: 0 !important;
}

/* =========================================================
   FLOATING CONTEXT LABEL — RC SEARCH HARD BLOCK
   Authoring/search intent must NEVER trigger reading label
   ========================================================= */

   #rcSearch:focus ~ #readingContextLabel,
   #rcSearch:focus-within ~ #readingContextLabel {
       opacity: 0 !important;
   }
   

/* =========================================================
   RESPONSIVE DESIGN FIXES
   ========================================================= */
/*below block inserted on DAY 5 - post Hostinger Deployment*/

/* =========================================================
   RESPONSIVE GOVERNANCE ZONE — LAYOUT ONLY
   ---------------------------------------------------------
   Philosophy:
   - Preserve desktop-first reading dignity
   - Degrade gracefully on constrained screens
   - Never alter typography hierarchy here
   ========================================================= */

/* Tablets & small laptops */
@media (max-width: 768px) {
    .vertical-pane {
        width: 160px;
    }

    .tile {
        min-width: 150px;
    }

    .content-display {
        padding: 1rem;
    }

    .modal iframe {
        height: 260px;
    }
}

/* Ultra-small screens (≤420px) — survival mode, not optimization */
/* Ultra-small screens (≤400px) — survival mode, not optimization - changed on DAY 5*/

/* Ultra-small screens (≤400px) — survival mode, not optimization */
@media (max-width: 400px) {

    .middle-pane-container {
        flex-direction: column;
    }

    .vertical-pane {
        width: 100%;
        height: auto;
        top: 0;
        border-right: none;
    }

    /* Absorb horizontal pressure here — not in text */
    .content-area {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .content-display {
        max-width: 100%;
        overflow-x: auto;
        padding-left: 0;
        padding-right: 0;
    }

    .tile {
        width: 160px;
        flex: 0 0 160px;
    }
}


/* =========================================================
   VIDEO — SHARED STRUCTURAL LAYOUT (MODE-AGNOSTIC)
   ========================================================= */

.video-block {
    padding: 1em;
    text-align: center;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.video-block > :not(.note-reminder) {
    text-align: center;
}

.content-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    align-items: start;
}

.note-reminder {
    display: inline-block;
    max-width: 42ch;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.45rem 0.6rem;
    font-style: italic;
    font-size: 0.9em;
    line-height: 1.5;
    text-align: left;
    opacity: 0.85;
}


/*---  NOTE-REMINDER GEOMETRIC FIX (Shared for Both Modes)
        - Adds lateral breathing room
        - Produces consistent line-breaking across modes
        - Improves elevation perception ---*/
  

   .note-reminder {
    max-width: 90%;          /* shrink width slightly */
    margin-left: auto;       /* center within video-block */
    margin-right: auto;

    padding-left: 0.75rem;   /* increase side breathing */
    padding-right: 0.75rem;
}


@media (max-width: 768px) {
    .content-row {
        grid-template-columns: 1fr;
    }

    .video-block {
        margin-top: 1rem;
    }
}

/* =========================================================
   ☀️ LIGHT MODE — VIDEO SUB-SYSTEM
   
   ========================================================= */

body:not(.dark-mode) .video-block {
    background: linear-gradient(180deg, #f8f9fb 0%, #f3f6fb 100%);
    border-radius: 12px;
    padding: 1em;
    text-align: center;
    box-shadow:
         0 2px 4px rgba(0,0,0,0.08),
         0 10px 20px rgba(0,0,0,0.12);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

body:not(.dark-mode) .video-block:hover {
    transform: translateY(-4px);
    box-shadow:
        0 4px 8px rgba(0,0,0,0.12),
        0 16px 28px rgba(0,0,0,0.18);
}


body:not(.dark-mode) .video-invite {
    background: #ffffff;
    border-radius: 12px;
    padding: 1em;
    font-size: 1.05em;
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.035),
        0 4px 10px rgba(0,0,0,0.08);
}

body:not(.dark-mode) .video-block .video-link {
    display: inline-block;
    margin-top: 0.6em;
    padding: 0.6em 1.25em;
    background-color: #dc2626;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.15) inset,
        0 3px 0 rgba(0,0,0,0.25),
        0 8px 18px rgba(0,0,0,0.25);
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

body:not(.dark-mode) .video-block .video-link:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
}

/*  NOTE-REMINDER LIGHT MODE <em> COLOR FIX
   Matches video-invite text tone, not reading-emphasis blue 
   Removes global <em> box-appearance inside note-reminder */

   body:not(.dark-mode) .note-reminder em {
    color: #1e293b !important;   /* same tone as video-invite text */
    font-style: italic;
    opacity: 0.95;               /* softer than main reading text */

    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
} 



/* NOTE-REMINDER (LIGHT MODE) — Elevation aligned with video-invite */
body:not(.dark-mode) .note-reminder {
    background-color: rgba(0,0,0,0.045);     /* same softened paper tint */
    border-radius: 6px;
    padding: 0.45rem 0.6rem;

    /* elevation match: same feel as video-invite */
    box-shadow:
        inset 0 0 0 1px rgba(0,0,0,0.03),
        0 4px 10px rgba(0,0,0,0.08);         /* external lift */
}



/* =========================================================
   ☀️ DIM MODE — VIDEO SUB-SYSTEM
   
   ========================================================= */

body.dark-mode .video-block {
    background-color: #465273;
    border-radius: 12px;
    padding: 1em;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.45);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

body.dark-mode .video-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.55);
}

body.dark-mode .video-invite {
    background-color: var(--dm-surface-raised);
    border: none;
    border-radius: 10px;
    padding: 1em;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
}

body.dark-mode .video-link {
    display: inline-block;
    padding: 0.6em 1.2em;
    margin-top: 0.5em;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    background-color: #c81e1e;
    color: #ffffff;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.15) inset,
        0 3px 0 rgba(0,0,0,0.25),
        0 8px 18px rgba(0,0,0,0.25);
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

body.dark-mode .note-reminder em {
    background: none;
}

/* DIM MODE — Note Reminder cleanup */
body.dark-mode .video-block .note-reminder,
body.dark-mode .video-block .note-reminder * {
    background: none !important;
}



/*  NOTE-REMINDER DIM MODE <em> COLOR FIX
   Matches video-invite text tone, not reading-emphasis blue 
   Removes global <em> box-appearance inside note-reminder */

  body.dark-mode .note-reminder em {
    color: #e4e9f2 !important;   /* same as video-invite text */
    font-style: italic;
    opacity: 0.92;               /* soft, luminous whisper */

    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
} 



/* NOTE-REMINDER (DIM MODE) — Elevation aligned with video-invite */
body.dark-mode .note-reminder {
    background-color: rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 0.45rem 0.6rem;

    /* elevation match: same feel as video-invite dim-mode */
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,0.05),
        0 3px 10px rgba(0,0,0,0.45);         /* external lift */
}



/* =========================================================
   UNIVERSAL DARK MODE TEXT SAFETY NET
   ========================================================= */

body.dark-mode a:not(.video-link) {
    color: #80b7ff;
    text-decoration: underline;
}

body.dark-mode li {
    color: var(--dm-text-primary) !important;
}

body.dark-mode hr {
    border-top-color: rgba(255,255,255,0.15);
}

/* -------------- End of style.css -------------- */
