/**
 * assets/css/legal-evidentiary-use.css
 * EVIDE for Legal & Evidentiary Use - shared stylesheet
 *
 * Loaded by: pages/legal-evidentiary-use.php, pages/evidentiary-questions.php,
 * pages/evidentiary-question-view.php, and (future) AI Law / Cases and
 * Developments pages. Fix typography/spacing HERE, not per-page, so every
 * page in the section stays consistent automatically.
 *
 * Type scale (2026-08-26 readability pass):
 *   body/list text     18px / 1.7
 *   intro copy         19-20px / 1.7
 *   card titles        19px
 *   card descriptions  17px
 *   section h2         26px
 *   H1 stays large and was bumped slightly so the gap to body text,
 *   which grew, does not visually collapse.
 */

.leu-section-wrap { max-width: 780px; margin: 0 auto; padding: 0 16px 80px; }
.leu-section-wrap * { box-sizing: border-box; }
.leu-section-wrap p, .leu-section-wrap li { font-size: 18px; line-height: 1.7; color: #333; }

.leu-back { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #3C3489; text-decoration: none; margin: 28px 0 22px; }
.leu-back:hover { text-decoration: underline; }

/* Browse Evidentiary Questions - a real CTA, not another "back" link.
   Compact on purpose: it sits above the H1 and must not compete with it.
   Scoped negative top-margin pulls it close to .leu-back ONLY when the
   two appear together (single-question page) - .leu-back's own default
   spacing stays untouched everywhere else (e.g. the index page). */
.eqv-browse-cta {
    display: inline-flex; align-items: center; gap: 6px;
    background: #3C3489; color: #fff; text-decoration: none;
    font-size: 14px; font-weight: 600; padding: 8px 16px;
    border-radius: 20px; margin: -14px 0 22px;
}
.eqv-browse-cta:hover { background: #2A2570; }
.eqv-browse-cta:focus-visible { outline: 3px solid #AFA9EC; outline-offset: 2px; }

.leu-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8b1a1a; margin: 0 0 12px; }

.leu-section-wrap h1 { font-size: 32px; font-weight: 700; color: #0b2a5c; line-height: 1.3; margin: 0; }
.leu-section-wrap h2 { font-size: 26px; font-weight: 700; color: #0b2a5c; margin: 0 0 16px; scroll-margin-top: 24px; }
.leu-section-wrap h3 { font-size: 19px; font-weight: 700; color: #0b2a5c; margin: 0 0 8px; }

.leu-intro { font-size: 20px; color: #444; line-height: 1.7; margin: 0 0 40px; max-width: 640px; }
.leu-meta { font-size: 14px; color: #888; margin: 0 0 36px; }

/* Intro takeaway - a brief key-message box under short_intro, kept
   semantically separate from it (own data field, own class). Elegant
   and secondary: dashed border, very light fill, no heading, no icon. */
.eqv-intro-takeaway {
    border: 1.5px dashed #AFA9EC;
    background: #FBFAFF;
    border-radius: 10px;
    padding: 16px 20px;
    margin: -8px 0 28px;
    font-size: 17px;
    font-weight: 600;
    color: #3C3489;
    line-height: 1.6;
}

.leu-section { margin-bottom: 48px; }

/* -------------------------------------------------------------------
   Boundary box - "EVIDE does not determine liability..." and similar.
   Needs strong visual presence, immediately readable at a glance.
   ------------------------------------------------------------------- */
.leu-boundary-box { background: #EEEDFE; border: 1px solid #AFA9EC; border-radius: 12px; padding: 26px 30px; margin: 0 auto 48px; max-width: 660px; text-align: center; }
.leu-boundary-box p { font-size: 21px; font-weight: 600; color: #26215C; line-height: 1.5; margin: 0; }

/* -------------------------------------------------------------------
   Selectable Evidentiary Question - the ONE component every question,
   today and in the future, must use. Pale warm yellow, not a banner,
   not a warning. Works identically whether there is 1 question or 50.
   ------------------------------------------------------------------- */
.leu-eq-list { display: flex; flex-direction: column; gap: 14px; }

.leu-eq-card {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: #FFFBEA; border: 1px solid #F0E2A3; border-radius: 12px;
    padding: 22px 26px; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s;
}
.leu-eq-card:hover { background: #FFF6D6; border-color: #E8D584; }
.leu-eq-card:focus-visible { outline: 3px solid #3C3489; outline-offset: 2px; }
.leu-eq-card:active { transform: scale(.997); }

.leu-eq-card-body { flex: 1 1 auto; min-width: 0; }
.leu-eq-card-q { font-size: 19px; font-weight: 700; color: #0b2a5c; margin: 0 0 8px; line-height: 1.4; }
.leu-eq-card-intro { font-size: 17px; color: #4a4326; line-height: 1.6; margin: 0 0 12px; }
.leu-eq-card-topics { display: flex; flex-wrap: wrap; gap: 6px; }
.leu-eq-topic-tag { font-size: 13px; font-weight: 600; color: #534AB7; background: #EEEDFE; padding: 4px 11px; border-radius: 20px; }

.leu-eq-card-chevron { flex: 0 0 auto; color: #8a7b2e; font-size: 22px; line-height: 1; transition: transform .15s; }
.leu-eq-card:hover .leu-eq-card-chevron { transform: translateX(3px); }

.leu-eq-empty { color: #888; font-size: 17px; }

/* "Start here" explanatory instruction, sits between the h2 and the list */
.leu-eq-instruction { font-size: 17px; color: #555; line-height: 1.6; margin: 0 0 22px; }

/* -------------------------------------------------------------------
   Generic info card (route cards on the homepage, related-question
   links, etc.) - visually distinct from the yellow selectable-question
   card, so the two never get confused.
   ------------------------------------------------------------------- */
.leu-info-card { border: 1px solid #e0e4ef; border-radius: 12px; padding: 24px 26px; text-decoration: none; display: block; transition: all .15s; }
.leu-info-card:hover { border-color: #AFA9EC; background: #F8F7FF; }
.leu-info-card:focus-visible { outline: 3px solid #3C3489; outline-offset: 2px; }
.leu-info-card p { font-size: 17px; color: #555; margin: 0; }
.leu-info-card.is-disabled { opacity: .6; cursor: default; }
.leu-info-card .leu-soon { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8b1a1a; margin-top: 10px; }

.leu-route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }

/* -------------------------------------------------------------------
   Method sequence ("From problem to evidentiary action") - the
   recognizable 5-step path every Evidentiary Question follows.
   Two-column grid on desktop (5 numbered steps + 1 closing cell that
   fills the sixth slot), single column on mobile.
   ------------------------------------------------------------------- */
.leu-method-sequence { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 8px; }
.leu-method-step { background: #fff; border: 1px solid #e0e4ef; border-radius: 12px; padding: 24px 26px; }
.leu-method-num { font-size: 30px; font-weight: 700; color: #AFA9EC; line-height: 1; margin-bottom: 12px; }
.leu-method-q { font-size: 18px; font-weight: 700; color: #0b2a5c; line-height: 1.4; margin: 0 0 10px; }
.leu-method-desc { font-size: 16px; color: #555; line-height: 1.6; margin: 0; }

.leu-method-closing {
    background: #3C3489; border-radius: 12px; padding: 24px 26px;
    display: flex; align-items: center;
}
.leu-method-closing p { font-size: 18px; font-weight: 600; color: #fff; line-height: 1.55; margin: 0; }

@media (max-width: 700px) {
    .leu-method-sequence { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .leu-section-wrap h1 { font-size: 25px; }
    .leu-section-wrap h2 { font-size: 22px; }
    .leu-intro { font-size: 18px; }
    .leu-boundary-box p { font-size: 19px; }
    .leu-eq-card { flex-direction: column; align-items: flex-start; }
    .leu-eq-card-chevron { align-self: flex-end; }
    .leu-route-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   Single-question page (evidentiary-question-view.php)
   ===================================================================== */
.eqv-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }

.eqv-model { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.eqv-model-layer { border: 1px solid #e0e4ef; border-left: 4px solid #3C3489; border-radius: 0 10px 10px 0; padding: 16px 20px; background: #fff; }
.eqv-model-layer-name { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3C3489; margin-bottom: 5px; }
.eqv-model-layer-label { font-size: 17px; font-weight: 600; color: #1a1a2e; margin-bottom: 5px; }
.eqv-model-layer-note { font-size: 18px; color: #555; line-height: 1.7; }
.eqv-model-arrow { text-align: center; color: #AFA9EC; font-size: 20px; line-height: 1; }

.eqv-central-question { background: #EEEDFE; border-left: 4px solid #534AB7; border-radius: 0 10px 10px 0; padding: 20px 24px; margin: 22px 0; font-size: 19px; font-weight: 600; color: #26215C; line-height: 1.5; }
.eqv-neutrality-note { font-size: 16px; color: #666; font-style: italic; margin-top: 12px; line-height: 1.65; }

.eqv-list { list-style: none; padding: 0; margin: 16px 0 0; }
.eqv-list li { padding: 8px 0 8px 24px; position: relative; font-size: 18px; color: #333; line-height: 1.7; }
.eqv-list li::before { content: '\2192'; position: absolute; left: 0; color: #3C3489; font-weight: 700; }

.eqv-preserve-card { background: #fff; border: 1px solid #e0e4ef; border-radius: 12px; padding: 20px 24px; margin-bottom: 14px; }
.eqv-preserve-mechanism { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #534AB7; text-transform: uppercase; margin-bottom: 9px; }
.eqv-preserve-card p { font-size: 18px; color: #444; margin: 0; line-height: 1.7; }

.eqv-boundary-box { background: #F7F7F9; border-left: 3px solid #D5D5DC; border-radius: 0 10px 10px 0; padding: 24px 28px; }
.eqv-boundary-box h2 { color: #0b2a5c; margin-bottom: 4px; }
.eqv-boundary-box p { font-size: 18px; color: #444; line-height: 1.7; margin: 0 0 12px; }
.eqv-boundary-point { padding-top: 22px; margin-top: 22px; border-top: 1px solid #E2E2E7; }
.eqv-boundary-point:first-of-type { border-top: none; padding-top: 0; margin-top: 18px; }
.eqv-boundary-point p:last-child { margin-bottom: 0; }
.eqv-boundary-heading { font-size: 18px; font-weight: 700; color: #0b2a5c; line-height: 1.5; margin: 0 0 10px; padding-left: 22px; position: relative; }
.eqv-boundary-heading::before { content: '\2013'; position: absolute; left: 0; color: #999; font-weight: 700; }

.eqv-architectural-note { background: #F0F0FA; border-left: 3px solid #AFA9EC; border-radius: 0 8px 8px 0; padding: 16px 20px; margin-top: 16px; font-size: 17px; color: #444; font-style: italic; line-height: 1.65; }

.eqv-lawframework-card, .eqv-case-card { border: 1px solid #e0e4ef; border-radius: 12px; padding: 20px 24px; margin-bottom: 14px; }
.eqv-lawframework-title, .eqv-case-title { font-size: 18px; font-weight: 700; color: #0b2a5c; margin: 0 0 5px; }
.eqv-lawframework-meta, .eqv-case-meta { font-size: 14px; color: #888; margin-bottom: 9px; }
.eqv-case-status { display: inline-block; background: #FEF9E7; color: #6b5f00; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 20px; margin-bottom: 12px; }
.eqv-case-card p { font-size: 17px; color: #444; margin: 0 0 12px; line-height: 1.7; }
.eqv-case-notyet li { font-size: 18px; line-height: 1.65; }
.eqv-case-notyet li::before { content: '\2022'; color: #AFA9EC; }
.eqv-source-verification { font-size: 13px; color: #999; font-style: italic; margin-top: 8px; }

.eqv-related { display: flex; flex-direction: column; gap: 10px; }
.eqv-related a { display: block; padding: 14px 18px; border: 1px solid #e0e4ef; border-radius: 8px; text-decoration: none; color: #0b2a5c; font-weight: 600; font-size: 18px; }
.eqv-related a:hover { background: #F8F7FF; border-color: #AFA9EC; }
.eqv-related a:focus-visible { outline: 3px solid #3C3489; outline-offset: 2px; }

/* =====================================================================
   A practical EVIDE workflow: overview diagram + numbered steps +
   without/with comparison. Shared component - future AI Law / Cases
   pages can reuse the same classes for their own workflows.
   ===================================================================== */

.eqv-workflow-diagram {
    display: flex; flex-direction: column; gap: 0;
    background: #F8F7FF; border: 1px solid #E8E7FD; border-radius: 14px;
    padding: 24px 26px; margin: 24px 0 8px;
}
.eqv-workflow-diagram-item { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.eqv-workflow-diagram-num {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
    background: #3C3489; color: #fff; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.eqv-workflow-diagram-label { font-size: 17px; font-weight: 600; color: #1a1a2e; }
.eqv-workflow-diagram-connector { width: 34px; display: flex; justify-content: center; color: #AFA9EC; font-size: 16px; }

.eqv-step-card { border: 1px solid #e0e4ef; border-radius: 14px; padding: 26px 28px; margin-bottom: 18px; scroll-margin-top: 24px; }
.eqv-step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.eqv-step-num { font-size: 15px; font-weight: 700; color: #AFA9EC; letter-spacing: .04em; flex: 0 0 auto; }
.eqv-step-title { font-size: 21px; font-weight: 700; color: #0b2a5c; margin: 0; }
.eqv-step-card p { font-size: 18px; color: #444; line-height: 1.7; margin: 0 0 12px; }
.eqv-step-card p:last-of-type { margin-bottom: 0; }
.eqv-step-primitive {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .03em;
    color: #534AB7; background: #EEEDFE; padding: 6px 14px; border-radius: 8px;
    margin-top: 14px; font-family: 'Courier New', monospace;
}
.eqv-step-cta {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
    background: #3C3489; color: #fff; text-decoration: none;
    font-size: 15px; font-weight: 600; padding: 10px 20px; border-radius: 8px;
}
.eqv-step-cta:hover { background: #2A2570; }

.eqv-comparison { display: flex; flex-direction: column; gap: 18px; margin: 24px 0; }
.eqv-comparison-col { border-radius: 12px; padding: 22px 26px; }
.eqv-comparison-col.without { background: #F7F7F9; border: 1px solid #E2E2E7; }
.eqv-comparison-col.with { background: #F8F7FF; border: 1px solid #E8E7FD; }
.eqv-comparison-title { font-size: 19px; font-weight: 700; margin: 0 0 16px; }
.eqv-comparison-col.without .eqv-comparison-title { color: #555; }
.eqv-comparison-col.with .eqv-comparison-title { color: #3C3489; }
.eqv-comparison-flow { list-style: none; padding: 0; margin: 0; }
.eqv-comparison-flow li { font-size: 18px; color: #333; padding: 7px 0 7px 22px; position: relative; line-height: 1.65; }
.eqv-comparison-flow li::before { content: '\2193'; position: absolute; left: 0; color: #AFA9EC; font-size: 13px; top: 9px; }
.eqv-comparison-flow li:first-child::before { content: ''; }
.eqv-comparison-takeaway { font-size: 18px; font-weight: 600; color: #26215C; background: #EEEDFE; border-radius: 10px; padding: 18px 22px; margin-top: 4px; line-height: 1.6; }

@media (max-width: 600px) {
    .eqv-header-row { flex-direction: column; }
    .eqv-central-question { font-size: 18px; }
    .eqv-workflow-diagram-label { font-size: 16px; }
    .eqv-step-title { font-size: 19px; }
}

/* -------------------------------------------------------------------
   Table of contents - prominent border, as requested. Only lists
   sections actually present in the given question record.
   ------------------------------------------------------------------- */
.eqv-toc { border: 2px solid #AFA9EC; border-radius: 12px; padding: 22px 26px; margin: 8px 0 40px; background: #FBFBFF; }

.eqv-hero-image { margin: 0 0 40px; }
.eqv-hero-image img { display: block; width: 100%; height: auto; border-radius: 12px; }
.eqv-toc-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3C3489; margin-bottom: 14px; }
.eqv-toc-list { list-style: upper-alpha; padding-left: 22px; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.eqv-toc-list li { font-size: 18px; }
.eqv-toc-list a { color: #0b2a5c; font-weight: 600; text-decoration: none; }
.eqv-toc-list a:hover { text-decoration: underline; color: #3C3489; }
.eqv-toc-list a:focus-visible { outline: 3px solid #3C3489; outline-offset: 2px; }

/* Small badge tying a section back to the homepage's 5-step method
   ("From problem to evidentiary action") without renaming the section
   itself. */
.eqv-method-badge { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #8b7d2e; background: #FDF8E3; display: inline-block; padding: 4px 12px; border-radius: 20px; margin: 0 0 10px; }

/* -------------------------------------------------------------------
   Top action row: Share | Copy link | TRANSLATION on one line.
   The inline Share component keeps its own default margin everywhere
   else it's used - reset ONLY here, where it sits beside Translation.
   ------------------------------------------------------------------- */
.eqv-toprow-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
.eqv-toprow-actions .evide-share--inline { margin: 0; }

/* GTranslate integration: we style ONLY our own wrapper-level elements
   (eqv-translate-control, eqv-translate-label) - never the markup
   GTranslate's own script injects inside .gtranslate_wrapper, so a
   future update to their widget cannot silently break our styling. */
/* GTranslate integration: fc.js renders its own flags+codes selector
   directly inside .gtranslate_wrapper. We impose only flex alignment
   on the wrapper itself (our own div) so it sits inline with Share/
   Copy link - never a rule targeting GTranslate's internal markup,
   and explicitly never position:fixed/absolute, so it cannot become
   a floating corner widget regardless of what fc.js does internally. */
.eqv-translate-control { display: inline-flex; align-items: center; }
.eqv-translate-control .gtranslate_wrapper { display: inline-flex; align-items: center; position: static !important; }

/* Machine Translation notice - visible but secondary, never dominant. */
.eqv-mt-notice { background: #F7F7F9; border-left: 3px solid #D5D5DC; border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 0 0 28px; }
.eqv-mt-notice strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #555; margin-bottom: 6px; }
.eqv-mt-notice p { font-size: 17px; color: #555; line-height: 1.65; margin: 0 0 8px; }
.eqv-mt-notice a { font-size: 14px; font-weight: 700; color: #3C3489; text-decoration: none; }
.eqv-mt-notice a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .eqv-toprow-actions { row-gap: 12px; }
}
