/* ---------- Base ---------- */
body {
  background-color: #333;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 20px;
  line-height: 1.75;
  margin: 2em auto;
  /* Let the c o n t a i n e r control page width; removing body max-width prevents odd layouts */
}


.container {
  position: relative;
  box-sizing: border-box;

  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 50px;

  background-color: rgba(247, 240, 223, 0.92);
  background-image: url("/images/papyrus.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: center top;

  border-radius: 8px;
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.12),
    0 0 14px rgba(0,0,0,0.35);

  overflow: visible;
}

/* Images inside the reading frame */
.container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border-radius: 6px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}


/* 
back button
*/
/* ---------- Back button (unify <a> and <button>) ---------- */
.back-button { display: flex; justify-content: flex-end; margin: 0.5em 0; }

/* Style either element type, with or without the .btn-back class */
.back-button > a#backLink,
.back-button > button#backLink,
.back-button > a.btn-back,
.back-button > button.btn-back {
  display: inline-block;
  padding: 0.35em 0.9em;
  background: #abcdef; /* d7c39a;      /* parchment-like tan */
  color: #2c1a0f;           /* dark ink text */
  font-family: "Crimson Pro", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid #8b7a5d; /* aged edge */
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 2px 3px rgba(0,0,0,0.25);
  transition: background 0.15s ease, transform 0.1s ease;
  margin: 0.5em;
}

/* Reset native button appearance so it matches <a> exactly */
.back-button > button#backLink,
.back-button > button.btn-back {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

.back-button > a#backLink:hover,
.back-button > button#backLink:hover,
.back-button > a.btn-back:hover,
.back-button > button.btn-back:hover {
  background: #e3d1aa;
  transform: translateY(-1px);
}

.back-button > a#backLink:active,
.back-button > button#backLink:active,
.back-button > a.btn-back:active,
.back-button > button.btn-back:active {
  background: #cbb589;
  transform: translateY(1px);
}

/* Slightly larger Back button text */
.back-button > button#backLink,
.back-button > button.btn-back,
.back-button > a#backLink,
.back-button > a.btn-back {
  font-size: 1.05em;   /* bump this up or down to taste */
  padding: 0.4em 1.1em; /* a bit more breathing room */
}


.back-button > .btn-back {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.disambiguation{
    font-style: italic; 
    font-size: 1.25rem; 
    color: #000; 
    margin-top: -0.75em;
    font-weight:bold;
}


/* ---------- Verse Numbers ---------- */
/* More consistent than vertical-align: super (varies by font/line-height) */
.verse_num {
  display: inline-block;
  font-size: 0.75em;     /* scales with surrounding text */
  line-height: 1;
  position: relative;
  top: -0.45em;          /* adjust to taste */
  margin-right: 0.25em;
  color: #554515;        /* warm ink tone */
  font-weight:bold;
}
.myblocks{
display: inline-block;
font-size: 1.00em;     /* scales with surrounding text */
line-height: 1;
position: relative;
top: -0.45em;          /* adjust to taste */
margin-right: 0.25em;
color: #000;        /* warm ink tone */
}
.verse_num:hover {
  color: rgba(28, 55, 111, 5);  /* highlight on hover */
}


/* ---------- Tables (fallback if no special table class is used) ---------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5em 0;
}
td {
  border: 2px solid #000;
  padding: 0.5em 0.6em;
}
/* If you use a 'study-table' class, these look great on dark cards:
.study-table { ... }  (happy to provide if you want) */
/*
.poetry{
    margin-left:40px;
    font-style: italic;
}
*/
.poetry {
    margin-left: 1em;
    line-height: 1.7;
}

/* any line you want indented more */
.poetry .indent {
    display: block;
    margin-left: 2em;   /* tweak to taste */
}





.sidebar {
    position: fixed;
    top: 80px;   /* was 40px */
    right: 40px;      /* force right placement */
    left: auto !important; 
    width: 260px;
    min-height: 120px;

    background: rgba(247, 240, 223, 0.96);
    color: #2a1a0a;

    padding: 1em;
    border: 1px solid #8b7a5d;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
    z-index: 3000;
}


.sidebar a {
    color: #1c376f;
    font-weight: bold;
    text-decoration: underline;
}

.sidebar a:hover {
    color: #274f9a;
}
    
    
/* ---- Day of the LORD timeline styles ---- */

.day-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5em 0;
    padding: 0.75em 1em;
    border-left: 3px solid #8b7a5d;
    background: rgba(247, 240, 223, 0.7);
    font-size: 0.9em;
}

.day-timeline-item {
    position: relative;
    padding-left: 0.75em;
    max-width: 220px;
}

.day-timeline-item::before {
    content: "●";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.7em;
    line-height: 1.8;
}

/* Sidebar helpers for lists on this page (optional, re-usable) */

.sidebar-title {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-size: 1.05em;
    font-weight: 700;
}

.sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-links li + li {
    margin-top: 0.4em;
}

.seventy_ad{
    display:block;
    background-color:#ff5555;
}

.final_cosmic{
    display:block;
    background-color:#55ff55;
}

.messianic_millennial{
    display:block;
    background-color:#5555ff;
}



/* NEW TOOLTIP CSS*/

/* ---------------------------------------------------------------- */
/* Tooltip triggers                                                 */
/* ---------------------------------------------------------------- */

/* Default icon for hover tooltips (short notes) */
.tooltip {
    position: relative;
    cursor: help;
    color: #1c376f;
    font-size: 1.25em;
    font-weight: bold;
    text-decoration: none;
}

/* Optional: a tiny gap between text and icon if you ever chain them */
.tooltip + sup.tooltip {
    margin-left: 0.25em;
}

/* Long-note trigger (modal) – looks more “clickable” */
.tooltip.tooltip-modal {
    cursor: pointer;
    color: #00008b;      /* dark red to stand out */
    text-decoration: none;
    font-size:0.75em;
/*    text-decoration-style: dotted; */
/*    text-decoration-thickness: 1px; */
}

/* ---------------------------------------------------------------- */
/* Hover tooltip box (short notes created by JS)                    */
/* ---------------------------------------------------------------- */

.tooltip-box {
    position: fixed;
    z-index: 9999;

    max-width: 26rem;
    max-height: 40vh;        /* cap so it never fills the whole screen */
    overflow-y: auto;

    padding: 0.75rem 1rem;
    background: #fdf9f0;
    border: 1px solid #bba57a;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);

    font-family: "Crimson Pro", Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #2a1a0a;
    white-space: normal;
}

/* --------------------------------------------------------------------- */
/* Modal overlay for long notes (tooltip-modal)     */
/* --------------------------------------------------------------------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;          /* hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-dialog {
    max-width: 40rem;
    max-height: 70vh;
    background: #fdf9f0;
    border: 1px solid #bba57a;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
    position: relative;
    font-family: "Crimson Pro", Georgia, serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-close {
    position: absolute;
    top: 0.3rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    cursor: pointer;
    color: #444;
}

.modal-content {
    margin-top: 0.5rem;
}

.commentary-block{
    font-family: "Montserrat";
    font-size:0.75em;
    margin:35px;    
    line-height: 1.0;
}

.commentary-ref{
    font-weight:bold;
    font-family: "Montserrat";
    font-size:1.00em;
    margin:35px;    
    line-height: 1.0;
}

/* Default: hide all commentary blocks */
.commentary {
    display: none;
}

/* When enabled: show all commentary blocks */
body.show-commentary .commentary {
    display: block;
}

/* Default: hide legal metadata */
.commentary .commentary-legal {
    display: none;
}

/* When enabled: show legal metadata (still only inside visible commentary) */
body.show-legal .commentary .commentary-legal {
    display: block;
}



.commentary {
    margin: 35px;
    padding: 18px 18px 18px 22px;
    border-left: 4px solid rgba(0,0,0,0.45);
    background: rgba(225, 225, 225, 0.5);
    border-radius: 6px;
    font-weight:normal;
}

/* Header + ref */
.commentary-header {
    font-family: "Montserrat", "Crimson Pro", Georgia, serif;
    font-size: 0.95em;
    font-weight: 700;
    margin-bottom: 0.35em;
}

.commentary-ref {
    display: inline-block;
    margin-top: 0.15em;
    font-family: "Montserrat", "Crimson Pro", Georgia, serif;
    font-size: 1.05em;
    font-weight: 700;
}

/* Legal metadata line items */
.commentary-legal {
    font-size: 0.85em;
    line-height: 1.35;
    margin: 0.35em 0 0.75em 0;
}

.commentary-legal .legal-item {
    display: inline-block;
    margin-right: 0.75em;
}

/* Body text */
.commentary-body {
    font-size: 0.92em;
    line-height: 1.55;
    font-weight:normal;    
}

/* === Anchored left-rail row (Word-style “anchoring”) === */
.section-row {
    position: relative;
}

/* Left rail: anchored to section-row, displayed outside the c o n t a i n e r */
.left-rail {
    position: absolute;
    left: -360px;          /* your dial to move it into the dark margin */
    top: 0;

    width: 240px;          /* width of the rail itself */
    padding-left: 24px;    /* keeps it off the screen edge */
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: center;   /* centers the box within the rail */
}

/* Main rail: normal flow inside the c o n t a i n er */
.main-rail {
    /* intentionally empty: inherits normal block layout */
}

/* Common Reference Point note */
.common_reference_point {
    width: 210px;
    background: rgba(255, 255, 255, 0.55);
    border-left: 5px solid rgba(120, 90, 40, 0.45);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85em;
    line-height: 1.35;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.common_reference_point .label {
    font-weight: 700;
    margin-bottom: 6px;
}

/* Vertical nudges (standard, reusable) */
.v-0  { margin-top: 0; }
.v-20 { margin-top: 20px; }
.v-40 { margin-top: 40px; }
.v-60 { margin-top: 60px; }
.v-80 { margin-top: 80px; }

