/* The Exegetical Edit™ — Typology Edition | styles v1.0.0 */
/* Palette: warm cream base + deep amber/gold type accents */

#typ-root {
    max-width: 760px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2a2a2a;
    line-height: 1.5;
}

#typ-root * { box-sizing: border-box; }

/* ── Header ── */
.typ-header { text-align: center; margin-bottom: 1.75rem; }

.typ-tagline {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a7a6a;
    margin: 0 0 0.5rem;
}

.typ-title {
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 0.25rem;
    color: #2a2a2a;
}

.typ-subtitle {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: #8a6a3e;
    margin: 0 0 0.75rem;
    letter-spacing: 0.04em;
}

.typ-intro {
    font-size: 15px;
    color: #5a5a5a;
    margin: 0 auto;
    max-width: 540px;
    line-height: 1.6;
}

/* ── Input card ── */
.typ-input-card {
    background: #faf7f2;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid #ece5d8;
}

#typ-input {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #d6cdb8;
    resize: vertical;
    min-height: 60px;
    background: white;
    color: #2a2a2a;
}

.typ-buttons { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

#typ-go {
    flex: 1;
    min-width: 140px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background: #8a6a3e;
    color: white;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
}

#typ-go:hover { background: #6f5430; }
#typ-go:disabled { opacity: 0.6; cursor: not-allowed; }

#typ-clear {
    min-width: 90px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #d6cdb8;
    background: white;
    cursor: pointer;
    font-size: 15px;
    color: #5a5a5a;
    font-family: inherit;
}

#typ-clear:hover { background: #f5f0e6; }

.typ-suggests { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.typ-suggests-label { font-size: 13px; color: #8a7a6a; margin-right: 4px; }

.typ-suggest {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #d6cdb8;
    background: white;
    cursor: pointer;
    color: #5a5a5a;
    font-family: inherit;
}

.typ-suggest:hover { background: #f5f0e6; }

/* ── Status ── */
#typ-status { font-size: 14px; color: #5a5a5a; text-align: center; min-height: 20px; margin-bottom: 0.5rem; }
.typ-error { color: #b04040; }

/* ── Shared ── */
.typ-card {
    background: white;
    border: 1px solid #ece5d8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.typ-section { margin-bottom: 1.75rem; }

.typ-section h3 {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 0.5rem;
    color: #2a2a2a;
}

.typ-section-sub { font-size: 13px; color: #8a7a6a; margin: 0 0 1rem; }

.typ-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a6a3e;
    margin-bottom: 6px;
    font-weight: 500;
}

/* ── Subject card ── */
.typ-subject-header { margin-bottom: 0.75rem; }

.typ-subject-name {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    margin: 4px 0 6px;
    color: #2a2a2a;
}

.typ-time-period {
    font-size: 13px;
    color: #8a7a6a;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.typ-orientation { font-size: 15px; color: #2a2a2a; line-height: 1.7; margin: 0; }

/* ── Primary type cards ── */
.typ-primary-card {
    background: white;
    border: 1px solid #ece5d8;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.typ-primary-num {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a6a3e;
    font-weight: 500;
    margin-bottom: 6px;
}

.typ-primary-title {
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 1.25rem;
    color: #2a2a2a;
}

.typ-primary-cols {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 1.25rem;
}

.typ-primary-arrow {
    font-size: 24px;
    color: #c9a875;
    padding-top: 1.5rem;
    align-self: start;
}

.typ-primary-col {
    background: #faf7f2;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #ece5d8;
}

.typ-col-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a6a3e;
    margin-bottom: 6px;
    font-weight: 500;
}

.typ-col-ref {
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 8px;
}

.typ-col-text { font-size: 14px; color: #5a5a5a; line-height: 1.6; margin: 0; }

/* Explicit/implicit tag */
.typ-explicit-tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 500;
    margin-bottom: 8px;
}

.typ-explicit-explicit { background: #e8f5e9; color: #2e7d32; }
.typ-explicit-implicit { background: #fff3e0; color: #e65100; }
.typ-explicit-both     { background: #e3f2fd; color: #1565c0; }

.typ-explicit-note { font-size: 13px; color: #5a5a5a; font-style: italic; margin: 0 0 1rem; }

/* Second Temple context box */
.typ-stc-box {
    background: #f5f0e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e8d9bf;
}

.typ-stc-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a6a3e;
    margin-bottom: 8px;
    font-weight: 500;
}

.typ-stc-box p { font-size: 14px; color: #2a2a2a; line-height: 1.65; margin: 0; }

/* Why it matters box */
.typ-matters-box {
    background: #fff8ec;
    border-left: 3px solid #c9a875;
    padding: 0.875rem 1rem;
    border-radius: 0 8px 8px 0;
}

.typ-matters-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8a6a3e;
    margin-bottom: 6px;
    font-weight: 500;
}

.typ-matters-box p { font-size: 14px; color: #2a2a2a; line-height: 1.65; margin: 0; }

/* ── Additional connections ── */
.typ-addl-grid { display: grid; gap: 10px; }

.typ-addl-card {
    background: white;
    border: 1px solid #ece5d8;
    border-radius: 10px;
    padding: 1rem 1.125rem;
}

.typ-addl-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.typ-addl-title {
    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 500;
    color: #2a2a2a;
}

.typ-addl-refs {
    font-size: 12px;
    color: #8a6a3e;
    font-style: italic;
    white-space: nowrap;
}

.typ-addl-text { font-size: 14px; color: #5a5a5a; line-height: 1.6; margin: 0; }

/* ── What this is NOT ── */
.typ-not-card {
    background: #fdf8f0;
    border: 1px solid #e8d9bf;
    border-radius: 10px;
    padding: 1rem 1.125rem;
    margin-bottom: 10px;
}

.typ-not-claim {
    font-family: Georgia, serif;
    font-size: 15px;
    font-style: italic;
    color: #8a6a3e;
    margin-bottom: 8px;
    font-weight: 500;
}

.typ-not-why { font-size: 14px; color: #5a5a5a; line-height: 1.6; margin: 0; }

/* ── Second Temple context (full) ── */
.typ-stc-full {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.75;
    color: #2a2a2a;
    padding: 1.25rem;
    background: #faf7f2;
    border-radius: 12px;
    border: 1px solid #ece5d8;
}

/* ── Redemptive arc ── */
.typ-arc {
    font-family: Georgia, serif;
    font-size: 17px;
    line-height: 1.75;
    color: #2a2a2a;
    margin: 0;
    padding-left: 1.25rem;
    border-left: 3px solid #c9a875;
    font-style: italic;
}

/* ── Key passages ── */
.typ-passages { display: grid; gap: 0; }

.typ-passage-row {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ece5d8;
    align-items: baseline;
}

.typ-passage-row:last-child { border-bottom: none; }

.typ-passage-ref {
    font-family: Georgia, serif;
    font-size: 14px;
    font-weight: 500;
    color: #8a6a3e;
    min-width: 160px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.typ-passage-testament {
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: #faf7f2;
    color: #8a6a3e;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid #e8d9bf;
    font-weight: 500;
}

.typ-passage-note { font-size: 14px; color: #5a5a5a; flex: 1; line-height: 1.6; }

/* ── Questions ── */
.typ-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 0.5rem;
}

.typ-questions-col {
    background: #faf7f2;
    border: 1px solid #ece5d8;
    border-radius: 12px;
    padding: 1.25rem;
}

.typ-questions-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a6a3e;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.typ-questions-list { margin: 0; padding-left: 1.25rem; color: #2a2a2a; }
.typ-questions-list li { font-size: 14.5px; line-height: 1.65; margin-bottom: 0.75rem; padding-left: 0.25rem; }
.typ-questions-list li:last-child { margin-bottom: 0; }

.typ-questions-actions { display: flex; gap: 8px; margin-top: 1rem; flex-wrap: wrap; }

.typ-print-btn {
    font-family: inherit;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #8a6a3e;
    background: #8a6a3e;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

.typ-print-btn:hover { background: #6f5430; border-color: #6f5430; }

.typ-print-btn-secondary { background: white; color: #8a6a3e; }
.typ-print-btn-secondary:hover { background: #f5f0e6; color: #6f5430; }

/* ── Footer ── */
.typ-footer-note {
    background: #faf7f2;
    border: 1px solid #ece5d8;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 14px;
    color: #5a5a5a;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.typ-footer-note strong { font-weight: 500; color: #2a2a2a; }

.typ-copyright {
    text-align: center;
    font-size: 12px;
    color: #8a7a6a;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ece5d8;
    letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .typ-primary-cols {
        grid-template-columns: 1fr;
    }
    .typ-primary-arrow { display: none; }
}
