/* ==========================================================================
    CSS CHARTER — MAINTENANCE RULE
    --------------------------------------------------------------------------
    PROHIBITION: Do NOT use `!important` or ad-hoc “duct tape” overrides.

    Rationale:
    - If a rule appears to require `!important`, the underlying selector,
    cascade order, or structural intent is incorrect.
    - Fix the root cause instead: scope the selector properly, simplify the
    cascade, or refactor conflicting rules.
    - `!important` is treated here as technical debt, not a solution.

    FORMATTING:
    I always only use four space indendation.  By keeping the styles simple,
    I can get away with four spaces without fear of running out of real estate.
    
    This stylesheet is intentionally kept small, coherent, and deterministic.
    (I don't know how well I can call 874 lines "small.")
    
    Preserve that small, coherent, and deterministic property.
    ========================================================================== */


/* ---------- Base ---------- */

/* ============================================================
   TYPOGRAPHY — Modernized
   ============================================================ */

:root{
    --paper: #f6f3ee;
}


/* Body: modern sans serif (current look) */
body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.55;
}

/* Headings: keep a tasteful serif for "Bible study" tone */
h1, h2, h3, h4, h5, h6 {
    font-family: "Crimson Pro", Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/*
 * NOTICE BOX EXCEPTION:
 * You stated the only other headings are inside .notice-box.
 * If you want those headings to match the body (more utilitarian),
 * override them here.
 */
.notice-box h1,
.notice-box h2,
.notice-box h3,
.notice-box h4,
.notice-box h5,
.notice-box h6 {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.container {
/*    background: #f4f1ea;  */
    position: relative;
    box-sizing: border-box;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 50px;
    color: #222;
    border-radius: 8px;
    border: 1px solid #999;
    overflow: visible;
}

/* Shared paper surface */
.container,
.cb-entry,
.cb-badge,
.cb-form,
.cb-form button {
    background: var(--paper);
}

/* ---------- Back button: default, just larger BELOW ---------- */
.back-tapper {
    display: flex;
    justify-content: flex-end;
    margin: 0.5em 0;
}

.back-tapper > button,
.back-tapper > a {
    font-size: 1.1rem;
    padding: 0.5em 1.2em;
}

/* If it's actually a button, do not fight the browser */
.back-tapper > button {
    cursor: pointer;
}

/* If it's an anchor, make it look like a neutral button */
.back-tapper > a {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    background: #eee;
    border: 1px solid #777;
    border-radius: 4px;
}

/* Optional “pressed” feel for the anchor version */
.back-tapper > a:active {
    background: #ddd;
}

/* ---------- Back Tapper: default, just larger ABOVE ---------- */

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

/* ---------- 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;
}

.footnotes {
    font-size: 0.9em;
    opacity: 0.9;
}
.footnotes ol {
    margin-top: 0.5rem;
}
.footnotes li {
    margin-bottom: 0.75rem;
}

pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Footnote markers next to verse numbers (minimal + ignorable) */
.fn-markers {
    margin-left: 0.25rem;
}

.fn-marker {
    font-size: 0.85em;      /* slightly larger, still subordinate */
    line-height: 1;         /* restores a usable click height */
    vertical-align: super;
    margin-left: 0.2rem;
}

.fn-marker a {
    text-decoration: none;
    padding: 0 0.15em;      /* increases click target without visual noise */
    font-weight: 600;       /* “fatter” numeral, still quiet */
}


/* Divider between entries (every item after the first) */
.changeblog {
    border-top: 2px solid red;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

/* BELOW are the styles for NEW changeblog */
/* =========================
   Changeblog (cb-*) styles
   Stacked beige cards on dark gray feed background
   ========================= */

/* =========================
   Changeblog (cb-*) styles
   Stacked beige cards on dark gray feed background
   HEX ONLY • NO OPACITY • MINIMAL PALETTE
   ========================= */



.cb-page {
    margin-top: 1rem;
}

body.cb-page .container{
    background-color: #000;
    color: #eee;
    border: none;
    padding:20px;
}

body.cb-page .cb-entry { border: none; }

/* Feed wrapper: dark background */
.cb-feed {
    background: #333;
    color: #eee;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

body.cb-page button.hamburger {
    color: var(--paper);
    border-color: var(--paper);
}

/* Entry cards: single beige */
.cb-entry {
    border: 1px solid #999;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.cb-entry:last-child {
    margin-bottom: 0;
}

/* Meta: no opacity; use smaller size and slightly lighter dark gray */
.cb-meta {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.35rem;
}

.cb-title {
    font-size: 1.25rem;
    margin: 0 0 0.35rem 0;
    line-height: 1.2;
    
}

.cb-body {
    white-space: pre-wrap; /* preserves pasted formatting */
    line-height: 1.45;
    color:#222;
}

/* Badge: minimal. No extra colors; use border and text only. */
.cb-badge {
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid #999;
    margin-left: 0.5rem;
}

/* Private badge: distinguish by border style (not color) */
.cb-badge-private {
    border-style: dashed;
}

/* Controls row (pagination etc.) */
.cb-controls {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Pagination links: keep them consistent with feed (dark) */
.cb-pagination a {
    display: inline-block;
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    text-decoration: none;

    background: #333;
    color: #eee;
    border: 1px solid #777;
}

.cb-pagination a:hover {
    text-decoration: underline;
}

/* Form container: beige card */
.cb-form {
    border: 1px solid #999;
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
}

.cb-form label {
    display: block;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    
}

/* Inputs: keep neutral and readable */
.cb-form input[type="text"],
.cb-form textarea,
.cb-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;

    border: 1px solid #777;
    background: #fff;
    
}

.cb-form textarea {
    min-height: 180px;
    resize: vertical;
}

.cb-form-actions {
    margin-top: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons: beige, same palette, no hover filters */
.cb-form button {
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #777;
    cursor: pointer;
}

.cb-form button:hover {
    text-decoration: underline;
}

/* Notice: neutral (no green/red), distinguished by border style */
.cb-notice {
    margin-top: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #777;
}

/* Optional: if you want a stronger “notice” signal without new colors */
.cb-notice.strong {
    border-width: 2px;
}

.superscription {
    font-style: italic;
    margin-bottom: 0.75em;
    font-size:0.75em;
    text-align:center;
    font-weight:bold;
}


/* ============================================================
   CONTACT FORM & ADMIN INBOX STYLES
   Follows existing site palette: beige paper, minimal colors
   ============================================================ */

/* ---------- Contact Form ---------- */
.contact-form {
    max-width: 600px;
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.form-group .required {
    color: #c0392b;
}

/* NOTE:
 * The following block intentionally duplicates core input/textarea styles used elsewhere.
 * The duplication is currently preferred to avoid refactoring and reordering
 * during active development.
 *
 * If/when these styles are unified, extract the shared properties
 * (width, box-sizing, padding, border, border-radius, font-family, background)
 * into a single base rule, and leave only context-specific differences here.
 *
 * Do not "tweak" one copy without evaluating the other.
 */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 1px solid #777;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #222;
    border-width: 2px;
    padding: calc(0.75rem - 1px); /* Compensate for thicker border */
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #555;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    margin-top: 1.5rem;
}

/* Actual <button> elements in forms */
.contact-form button[type="submit"],
.admin-notes-section button[type="submit"],
.message-actions button {
    background: var(--paper);
    color: #222;
    border: 1px solid #777;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}

.contact-form button[type="submit"]:hover,
.admin-notes-section button[type="submit"]:hover,
.message-actions button:hover {
    border-color: #222;
    text-decoration: underline;
}

/* Smaller buttons in message actions */
.message-actions button {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Delete action button - dashed border */
.message-actions button.delete-action {
    border-style: dashed;
    color: #c0392b;
}

.message-actions button.delete-action:hover {
    border-color: #c0392b;
    border-style: solid;
}

/* Back tapper (anchor styled as a tapper) */
.back-tapper-link {
    background: var(--paper);
    color: #222;
    border: 1px solid #777;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.back-tapper-link:hover {
    border-color: #222;
    text-decoration: underline;
}

.success-message {
    background: var(--paper);
    border: 2px solid #222;
    color: #222;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-weight: 600;
}

.error-message {
    background: var(--paper);
    border: 2px dashed #c0392b;
    color: #222;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.error-message ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.error-message li {
    margin-bottom: 0.25rem;
}

/* ---------- Admin Inbox ---------- */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #333;
    border-radius: 8px;
}

.filter-tappers {
    display: flex;
    gap: 0.5rem;
}

.filter-tapper {
    padding: 0.5rem 1rem;
    background: var(--paper);
    color: #222;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #777;
    font-weight: 500;
}

.filter-tapper:hover {
    border-color: #222;
    text-decoration: underline;
}

.filter-tapper.active {
    border: 2px solid #222;
    padding: calc(0.5rem - 1px) calc(1rem - 1px);
}

.no-messages {
    padding: 2rem;
    text-align: center;
    color: #555;
    font-style: italic;
}

.message-list {
    margin-top: 1.5rem;
}

.message-card {
    background: var(--paper);
    border: 1px solid #999;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.message-card.unread {
    border-left: 4px solid #222;
    border-left-width: 6px;
}

.message-card.read {
    opacity: 0.85;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #999;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-id {
    color: #222;
    font-size: 1rem;
    font-weight: 600;
}

.unread-badge {
    background: #222;
    color: var(--paper);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.message-date {
    color: #555;
    font-size: 0.875rem;
    font-weight:bold;    
}

.message-actions {
    display: flex;
    gap: 0.5rem;
}

.message-details {
    margin-bottom: 1rem;
}

.detail-row {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-label {
    display: inline-block;
    min-width: 60px;
    font-weight: 600;
    color: #555;
}

.detail-row a {
    color: #222;
    text-decoration: underline;
}

.detail-row a:hover {
    text-decoration: none;
}

.message-body {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #999;
}

.message-body strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #222;
}

.message-text {
    color: #222;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.admin-notes-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #999;
}

.admin-notes-section label {
    display: block;
    margin-bottom: 0.5rem;
    color: #222;
    font-weight: 600;
}

/* NOTE:
 * The following block intentionally duplicates core input/textarea styles used elsewhere.
 * The duplication is currently preferred to avoid refactoring and reordering
 * during active development.
 *
 * If/when these styles are unified, extract the shared properties
 * (width, box-sizing, padding, border, border-radius, font-family, background)
 * into a single base rule, and leave only context-specific differences here.
 *
 * Do not "tweak" one copy without evaluating the other.
 */

.admin-notes-section textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 1px solid #777;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 0.5rem;
    background: #fff;
}

.admin-notes-section textarea:focus {
    outline: none;
    border-color: #222;
    border-width: 2px;
    padding: calc(0.75rem - 1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .admin-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-tappers {
        flex-direction: column;
    }
    
    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .message-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Hamburger dropdown wrapper */
.menu-wrap {
    position: relative;
    display: inline-block;
}

/* Button styling */
button.hamburger {
    font-size: 1.2rem;
    background: none;
    border: 1px solid #777;
    padding: 0.25em 0.55em;
    border-radius: 4px;
    cursor: pointer;
}

/* Dropdown panel */
nav.menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;

    min-width: 200px;
    padding: 8px 0;

    background: #f7f2e8;          /* match your page tone */
    border: 1px solid #999;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);

    z-index: 1000;
}

/* Menu links as menu items */
nav.menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #111;
}

nav.menu a:hover,
nav.menu a:focus-visible {
    background: #e6dfd0;
    outline: none;
}


@media (max-width: 600px) {

      /* Make the container tight on phone */
    body.cb-page .container {
        padding: 0;
    }

      /* Put the “air” back only where you want it (header) */
    body.cb-page header {
        padding: 16px;
    }

      /* No inner frame padding */
    body.cb-page .cb-feed {
        padding: 0;
        margin: 0;
    }

      /* Cards are flush to container edges */
    body.cb-page .cb-entry {
        margin: 0 0 1rem 0;   /* no left/right margin */
        border-radius: 10px;  /* keep your look */
    }
}

/* Mobile form ergonomics */
@media (max-width: 700px) {

    /* Inputs and buttons should be finger-sized */
    input[type="text"],
    input[type="search"],
    button,
    input[type="submit"] {
        font-size: 18px;
        line-height: 1.2;
    }

    input[type="text"],
    input[type="search"] {
        width: 100%;
        max-width: 100%;
        padding: 10px 12px;
        box-sizing: border-box;
    }

    button,
    input[type="submit"] {
        padding: 10px 14px;
    }

    /* Checkbox: make it readable and allow the text to wrap */
    label {
        display: inline-block;
        line-height: 1.35;
    }

    input[type="checkbox"] {
        transform: scale(1.2);
        transform-origin: left center;
        margin-right: 10px;
    }
}  


.prosopography-banner {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 1.25rem auto;
}


.date_citation {
    font-size: 0.9em;
    color: #555;
    font-style: italic;
    margin-left: 1rem;
}


.date_citation::before {
    content: "⟶ ";
    color: #999;
}


.scripture-quote {
    margin: 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid #999;
}

.scripture-quote p {
    margin: 0;
    font-style: italic;
}

.scripture-cite {
    margin-top: 0.25rem;
}


/* “Important” sidebar — factual emphasis, not alarm BELOW */
/* inspired by the For Dummies books */
.important {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;

    border-left: 4px solid #999;
    background: #f7f2e8; /* same family as paper, slightly lighter */

    font-size: 0.95em;
}

.important p {
    margin: 0;
}

.important::before {
    content: "Important";
    display: block;

    font-weight: 600;
    font-size: 0.8em;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: #555;
    margin-bottom: 0.25rem;
}

@media print {
  .print-break { break-before: page; page-break-before: always; }
}
/* “Important” sidebar — factual emphasis, not alarm ABOVE */



/* ============================================================
   VOCAB APP (scoped)
   HEX ONLY. NO OPACITY. NO RGBA.
   Safe: all selectors begin with .vocab-app and use vocab-*.
   ============================================================ */

.vocab-app .vocab-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.vocab-app .vocab-muted {
    color: #666;
    font-size: 0.95rem;
}

.vocab-app .vocab-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.vocab-app .vocab-panel {
    padding: 16px 20px;
    margin: 16px 0;
    border: 1px solid #cbbfae;
    border-radius: 8px;
    background: #efe6d6;
}

.vocab-app .vocab-button,
.vocab-app button.vocab-button {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #bda98e;
    background: var(--paper);
    color: #222;
    text-decoration: none;
    cursor: pointer;
}

.vocab-app .vocab-button:hover,
.vocab-app button.vocab-button:hover {
    background: #dfd2bd;
}

.vocab-app .vocab-term {
    border-left: 4px solid #bda98e;
}

.vocab-app .vocab-term-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.vocab-app .vocab-term-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
}

.vocab-app .vocab-badge {
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid #bda98e;
    background: var(--paper);
    color: #222;
    white-space: nowrap;
}

.vocab-app .vocab-badge.vocab-badge-alt {
    background: #dfd2bd;
}

.vocab-app .vocab-modern-sense {
    margin: 8px 0 12px 0;
    font-style: italic;
    color: #333;
}

.vocab-app .vocab-section {
    margin: 12px 0;
}

.vocab-app .vocab-section-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #222;
}

.vocab-app .vocab-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vocab-app .vocab-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid #bda98e;
    background: var(--paper);
    color: #222;
}

.vocab-app .vocab-two-col {
    columns: 2;
    column-gap: 32px;
    margin-left: 20px;
}

@media (max-width: 720px) {
    .vocab-app .vocab-header {
        flex-direction: column;
        align-items: stretch;
    }

    .vocab-app .vocab-two-col {
        columns: 1;
    }
}



/*NAVIGATION STYLES BELOW */
.chapter-footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.chapter-nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(0,0,0,0.35);
    border-radius: 999px;
    text-decoration: none;
    font-size: 2rem;
    line-height: 1;
}

.chapter-nav-arrow.is-disabled {
    opacity: 0.35;
}
/*NAVIGATION STYLES ABOVE */


/* OTHER NEW NAV STYLES BELOW */
.notice-box {
    max-width: 720px;
    margin: 2rem auto;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 12px;
    background: rgba(255,255,255,0.65);
}

/* OTHER NEW NAV STYLES ABOVE */


/* “Irregular” sidebar — system notice / abnormal flow  BELOW */
/* used for redirects, missing parameters, maintenance notices */
.irregular {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;

    border-left: 4px solid #7a5a2a;   /* warm brown, not gray */
    background: #fff6da;              /* pale “notice” tone */

    font-size: 0.95em;
}

.irregular p {
    margin: 0;
}

.irregular p + p {
    margin-top: 0.6rem; /* allow multiple paragraphs */
}

.irregular::before {
    content: "Notice";
    display: block;

    font-weight: 600;
    font-size: 0.8em;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: #6b4c1f;
    margin-bottom: 0.25rem;
}
/* “Irregular” sidebar — system notice / abnormal flow  ABOVE */

/* vocab_editor (BELOW)*/

.muted{
    margin: 0.25rem 0 0.5rem 0;
}

.vocab-commit {
    display: block;
}


/* Vocabulary: editor - field usability */
.vocab-editor textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
}


.vocab-editor input[type="text"],
.vocab-editor input,
.vocab-editor select {
    box-sizing: border-box;
    font-size: 14px;
}


/* vocab_editor (ABOVE)*/


/* “Inference” sidebar — text-permitted conclusion drawn from cited evidence BELOW */
/* purpose: separate observation/inference from raw citation and prevent drift */
.inference {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;

    border-left: 4px solid #6b7280; /* neutral slate */
    background: #f4f6f8; /* light neutral, distinct from important */

    font-size: 0.95em;
}


.sidebar.method-note {
    border-left-color: #c9c9c9;
    background: #fbfbfb;
    font-size: 0.92em;
    opacity: 0.92;
    border-left: 3px solid #ddd;
}


.study-block {
    border: 1px solid #999;
    border-radius: 10px;
    padding: 0.9rem 1rem;
    margin: 1.25rem 0;
    background: #e7ddcc;
}

.study-block h3 {
    margin: 0 0 0.5rem 0;
}

.study-block p:last-child {
    margin-bottom: 0;
}

.study-ref {
    margin: 0 0 0.75rem 0;
}

.layer_block {
    border-left: 4px solid #aaa;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.layer_block {
    border-left: 4px solid #aaa;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}


/* ============================================================
   LAYER SYSTEM
   Structural container + subtle visual differentiation
   ============================================================ */

/* Shared structure */
.layer_block {
    border-left: 4px solid #aaa;   /* default neutral */
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

/* Layer 1 — Observational */
.layer_1 {
    border-left-color: #888;       /* muted gray */
}

.layer_1 > h2 {
    border-bottom: 1px solid #888;
    padding-bottom: 0.25rem;
}

/* Layer 2 — Interpretive */
.layer_2 {
    border-left-color: #5f7f99;    /* muted blue-gray */
}

.layer_2 > h2 {
    border-bottom: 1px solid #5f7f99;
    padding-bottom: 0.25rem;
}


/* Footnote attach tool: existing attachments list */
.attached-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
}

.attached-table th,
.attached-table td {
    border: 1px solid #999;
    padding: 0.6rem 0.7rem;
    vertical-align: top;
}

.attached-ref {
    white-space: nowrap;
    width: 1%;
}

.attached-text {
    line-height: 1.5;
}
