﻿/* ============================================================
   Mike Grayson Reading Guides
   Shared by all interactive reading-guide Razor views.
   Prefix: mg-
   ============================================================ */

.mg-reading-page {
    --mg-reading-ink: #17365d;
    --mg-reading-blue: #25639a;
    --mg-reading-muted: #5f7184;
    --mg-reading-line: #dce5ee;
    --mg-reading-soft: #f6f9fc;
    --mg-reading-soft-blue: #eef4fa;
    --mg-reading-success: #28694f;
    background: #fff;
    color: #283b50;
}

/* ============================================================
   Reading guide navigation
   ============================================================ */

.mg-reading-nav {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--mg-reading-line);
    position: sticky;
    top: 0;
    z-index: 1020;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.mg-reading-nav-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 52px;
    gap: 1rem;
}

.mg-reading-home {
    align-items: baseline;
    color: var(--mg-reading-ink);
    display: inline-flex;
    gap: 0.6rem;
    text-decoration: none;
}

    .mg-reading-home:hover,
    .mg-reading-home:focus {
        color: var(--mg-reading-blue);
        text-decoration: none;
    }

.mg-reading-home-name {
    font-size: 0.98rem;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.mg-reading-home-context {
    color: #8190a0;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mg-reading-back {
    align-items: center;
    color: #526579;
    display: inline-flex;
    font-size: 0.84rem;
    font-weight: 650;
    gap: 0.4rem;
    text-decoration: none;
}

    .mg-reading-back:hover,
    .mg-reading-back:focus {
        color: var(--mg-reading-blue);
        text-decoration: none;
    }


.mg-reading-hero {
    background: radial-gradient(circle at 88% 15%, rgba(37, 99, 154, 0.10), transparent 26rem), linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
    border-bottom: 1px solid #e6edf4;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.mg-reading-eyebrow {
    color: var(--mg-reading-blue);
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
}

.mg-reading-hero h1 {
    color: var(--mg-reading-ink);
    font-size: clamp(2.45rem, 5vw, 4.25rem);
    font-weight: 760;
    letter-spacing: -0.045em;
    line-height: 1.02;
    margin-bottom: 0.9rem;
}

.mg-reading-subtitle {
    color: #42566b;
    font-size: clamp(1.14rem, 2vw, 1.42rem);
    line-height: 1.55;
    margin-bottom: 1rem;
    max-width: 760px;
}

.mg-reading-intro-note {
    color: var(--mg-reading-muted);
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 760px;
}

.mg-reading-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.55rem;
}

.mg-reading-btn-primary,
.mg-reading-btn-secondary,
.mg-reading-btn-link {
    align-items: center;
    border-radius: 9px;
    display: inline-flex;
    font-weight: 700;
    gap: 0.45rem;
    justify-content: center;
    text-decoration: none;
    transition: all 0.16s ease;
}

.mg-reading-btn-primary,
.mg-reading-btn-secondary {
    padding: 0.78rem 1.05rem;
}

.mg-reading-btn-primary {
    background: var(--mg-reading-blue);
    border: 1px solid var(--mg-reading-blue);
    color: #fff;
}

    .mg-reading-btn-primary:hover,
    .mg-reading-btn-primary:focus {
        background: #194b77;
        border-color: #194b77;
        color: #fff;
        transform: translateY(-1px);
    }

.mg-reading-btn-secondary {
    background: #fff;
    border: 1px solid #b7c6d6;
    color: var(--mg-reading-ink);
}

    .mg-reading-btn-secondary:hover,
    .mg-reading-btn-secondary:focus {
        background: var(--mg-reading-soft-blue);
        border-color: #8aa7c2;
        color: var(--mg-reading-ink);
    }

.mg-reading-btn-link {
    color: var(--mg-reading-blue);
    padding: 0;
}

    .mg-reading-btn-link:hover,
    .mg-reading-btn-link:focus {
        color: var(--mg-reading-ink);
        text-decoration: underline;
    }

.mg-reading-progress-shell {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--mg-reading-line);
    position: sticky;
    top: 52px;
    z-index: 1010;
}

.mg-reading-progress-meta {
    align-items: center;
    display: flex;
    font-size: 0.8rem;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.6rem 0 0.45rem;
}

.mg-reading-progress-label {
    color: #50657a;
    font-weight: 650;
}

.mg-reading-progress-value {
    color: var(--mg-reading-blue);
    font-variant-numeric: tabular-nums;
    font-weight: 750;
}

.mg-reading-progress-track {
    background: #e8eef4;
    height: 3px;
    overflow: hidden;
}

.mg-reading-progress-bar {
    background: var(--mg-reading-blue);
    height: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.12s linear;
    width: 100%;
}

.mg-reading-layout {
    padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 6rem);
}

.mg-reading-article {
    margin-inline: auto;
    max-width: 790px;
}

.mg-reading-opening {
    border-bottom: 1px solid var(--mg-reading-line);
    margin-bottom: 2.7rem;
    padding-bottom: 2.3rem;
}

.mg-reading-opening-question {
    color: var(--mg-reading-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.45rem, 2.7vw, 1.95rem);
    font-weight: 600;
    line-height: 1.35;
    margin: 1.3rem 0 0;
}

.mg-reading-scripture {
    border-left: 3px solid #9fbad3;
    color: #42566b;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 1.6rem 0;
    padding: 0.1rem 0 0.1rem 1.35rem;
}

    .mg-reading-scripture cite {
        color: #6a7d90;
        display: block;
        font-family: inherit;
        font-size: 0.88rem;
        font-style: normal;
        margin-top: 0.55rem;
    }

.mg-reading-section {
    scroll-margin-top: 110px;
}

/*
   Reading-guide sections are parts of one continuous article, not
   independent site sections. Keep their vertical rhythm consistent
   regardless of whether another section, feedback panel, callout, or
   other element precedes them.
*/
.mg-reading-article > .mg-reading-section {
    margin-top: 2rem;
    padding: 0;
}

    .mg-reading-article > .mg-reading-section:first-of-type {
        margin-top: 0;
    }

.mg-reading-section h2 {
    color: var(--mg-reading-ink);
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 760;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.mg-reading-section h3 {
    color: var(--mg-reading-ink);
    font-size: 1.32rem;
    font-weight: 740;
    line-height: 1.3;
    margin: 2rem 0 0.9rem;
}

.mg-reading-section p,
.mg-reading-section li {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.075rem;
    line-height: 1.65;
}

.mg-reading-section p {
    margin-bottom: 0.85rem;
}

/*
   Use this only where the author intentionally wants the reader
   to pause before the next idea. This preserves rhetorical pacing
   without making every paragraph equally distant from the next.
*/
.mg-reading-thought-break {
    margin-top: 1.45rem !important;
}

/* ============================================================
   Thought groups
   Short one-sentence paragraphs that form one developing idea.
   ============================================================ */

.mg-reading-thought-group {
    margin: 1.125rem 0;
}

    .mg-reading-thought-group p {
        margin: 0 0 0.375rem;
    }

        .mg-reading-thought-group p:last-child {
            margin-bottom: 0;
        }

.mg-reading-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.mg-reading-section li {
    margin-bottom: 0.45rem;
}

.mg-reading-emphasis {
    color: var(--mg-reading-ink);
    font-weight: 700;
}

.mg-reading-short-lines {
    color: var(--mg-reading-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.65;
    margin: 1.6rem 0;
}

    .mg-reading-short-lines span {
        display: block;
    }

.mg-reading-footnote {
    align-items: center;
    background: var(--mg-reading-soft-blue);
    border: 0;
    border-radius: 999px;
    color: var(--mg-reading-blue);
    cursor: pointer;
    display: inline-flex;
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 750;
    height: 1.2rem;
    justify-content: center;
    line-height: 1;
    margin-left: 0.14rem;
    padding: 0;
    position: relative;
    top: -0.28em;
    width: 1.2rem;
}

    .mg-reading-footnote:hover,
    .mg-reading-footnote:focus {
        background: #dceaf6;
        color: #17365d;
        outline: none;
    }

.mg-reading-persuasion {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    display: grid;
    gap: 0.7rem 1.25rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 1.75rem 0 0;
    padding: 1rem 1.1rem;
}

.mg-reading-persuasion-question {
    color: var(--mg-reading-ink);
    font-family: var(--default-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.mg-reading-persuasion-options {
    align-items: center;
    background: #f4f7fb;
    border: 1px solid #d7e2ec;
    border-radius: 10px;
    display: inline-flex;
    gap: 3px;
    padding: 4px;
}

.mg-reading-persuasion-option {
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: #40566d;
    font-family: var(--default-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    min-width: 68px;
    padding: 0.48rem 0.8rem;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

    .mg-reading-persuasion-option:hover,
    .mg-reading-persuasion-option:focus {
        background: #e7eef6;
        color: var(--mg-reading-ink);
        outline: none;
    }

    .mg-reading-persuasion-option:focus-visible {
        box-shadow: 0 0 0 3px rgba(37, 99, 154, 0.16);
    }

    .mg-reading-persuasion-option.mg-reading-selected {
        background: #376ba3;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
        color: #ffffff;
    }

    .mg-reading-persuasion-option:disabled {
        cursor: wait;
        opacity: 0.72;
    }

.mg-reading-persuasion-status {
    color: var(--mg-reading-success);
    font-family: var(--default-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    font-size: 0.76rem;
    font-weight: 600;
    grid-column: 1 / -1;
    line-height: 1.4;
    min-height: 0;
}

    .mg-reading-persuasion-status:empty {
        display: none;
    }

.mg-reading-book-callout {
    align-items: center;
    background: #17365d;
    border-radius: 16px;
    color: #fff;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin: 3.2rem 0;
    padding: 1.55rem 1.7rem;
}

.mg-reading-book-callout-copy strong {
    display: block;
    font-size: 1.02rem;
    margin-bottom: 0.25rem;
}

.mg-reading-book-callout-copy span {
    color: #cfdae6;
    display: block;
    font-size: 0.88rem;
    line-height: 1.5;
}

.mg-reading-book-callout .mg-reading-btn-secondary {
    flex: 0 0 auto;
}

.mg-reading-finish-later {
    background: #f2f7fb;
    border: 1px solid #d5e3ef;
    border-radius: 18px;
    margin: 3.6rem 0;
    padding: clamp(1.5rem, 4vw, 2.25rem);
}

    .mg-reading-finish-later h2,
    .mg-reading-question-box h2,
    .mg-reading-end-book h2 {
        color: var(--mg-reading-ink);
        font-size: clamp(1.55rem, 3vw, 2rem);
        font-weight: 760;
        letter-spacing: -0.025em;
        margin-bottom: 0.55rem;
    }

    .mg-reading-finish-later p,
    .mg-reading-question-box p,
    .mg-reading-end-book p {
        color: #52687e;
        font-family: Arial, sans-serif;
        font-size: 0.95rem;
        line-height: 1.65;
    }

.mg-reading-form-row {
    align-items: end;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 1rem;
}

.mg-reading-field label {
    color: #31495f;
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.38rem;
}

.mg-reading-field input,
.mg-reading-field textarea {
    background: #fff;
    border: 1px solid #b7c7d7;
    border-radius: 9px;
    color: #20364c;
    font-size: 0.95rem;
    padding: 0.72rem 0.8rem;
    width: 100%;
}

    .mg-reading-field input:focus,
    .mg-reading-field textarea:focus {
        border-color: var(--mg-reading-blue);
        box-shadow: 0 0 0 0.2rem rgba(37, 99, 154, 0.12);
        outline: none;
    }

.mg-reading-field textarea {
    min-height: 132px;
    resize: vertical;
}

.mg-reading-consent {
    color: #64778a;
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0.65rem 0 0;
}

.mg-reading-form-status {
    font-size: 0.84rem;
    font-weight: 650;
    margin-top: 0.75rem;
    min-height: 1.2rem;
}

    .mg-reading-form-status.mg-reading-success {
        color: var(--mg-reading-success);
    }

    .mg-reading-form-status.mg-reading-error {
        color: #9b3131;
    }

.mg-reading-question-box {
    border-top: 1px solid var(--mg-reading-line);
    margin-top: 3.8rem;
    padding-top: 3rem;
}

    .mg-reading-question-box .mg-reading-field + .mg-reading-field {
        margin-top: 0.9rem;
    }

.mg-reading-question-actions {
    margin-top: 0.95rem;
}

.mg-reading-honeypot {
    left: -10000px !important;
    opacity: 0 !important;
    position: absolute !important;
    top: auto !important;
}

.mg-reading-end-book {
    background: #17365d;
    border-radius: 18px;
    color: #fff;
    margin-top: 3.8rem;
    padding: clamp(1.8rem, 4vw, 2.7rem);
}

    .mg-reading-end-book h2 {
        color: #fff;
    }

    .mg-reading-end-book p {
        color: #d3deea;
        max-width: 680px;
    }

.mg-reading-buy-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.mg-reading-popover .popover-body {
    color: #344b61;
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: 340px;
}


/* ============================================================
   End-of-guide navigation
   ============================================================ */

.mg-reading-continue {
    align-items: center;
    background: var(--mg-reading-soft);
    border: 1px solid var(--mg-reading-line);
    border-radius: 14px;
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
}

.mg-reading-continue-copy {
    min-width: 0;
}

.mg-reading-continue .mg-reading-eyebrow {
    margin-bottom: 0.3rem;
}

.mg-reading-continue h2 {
    color: var(--mg-reading-ink);
    font-size: 1.3rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.25;
    margin: 0 0 0.35rem;
}

.mg-reading-continue p {
    color: var(--mg-reading-muted);
    font-family: var(--default-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.mg-reading-source-note {
    color: #718398;
    font-size: 0.8rem;
    line-height: 1.55;
    margin-top: 2.6rem;
}

@media (max-width: 767.98px) {
    .mg-reading-progress-shell {
        top: 0;
    }

    .mg-reading-persuasion {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .mg-reading-persuasion-options {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .mg-reading-persuasion-option {
        min-width: 0;
        width: 100%;
    }

    .mg-reading-book-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .mg-reading-form-row {
        grid-template-columns: 1fr;
    }

        .mg-reading-form-row .mg-reading-btn-primary {
            width: 100%;
        }
}

@media (max-width: 575.98px) {
    .mg-reading-hero-actions a {
        width: 100%;
    }

    .mg-reading-section p,
    .mg-reading-section li {
        font-size: 1.02rem;
        line-height: 1.62;
    }

    .mg-reading-buy-options a {
        width: 100%;
    }
}

.mg-reading-figure {
    margin: 1.7rem auto 2rem;
    max-width: 500px;
}

    .mg-reading-figure img {
        border-radius: 10px;
        display: block;
        height: auto;
        margin-inline: auto;
        max-width: 100%;
    }

    .mg-reading-figure figcaption {
        color: #718398;
        font-size: 0.78rem;
        line-height: 1.5;
        margin-top: 0.55rem;
        text-align: center;
    }


@media (max-width: 767.98px) {
    .mg-reading-nav-inner {
        min-height: 48px;
    }

    .mg-reading-home-context {
        display: none;
    }

    .mg-reading-back {
        font-size: 0.8rem;
    }

    .mg-reading-progress-shell {
        top: 48px;
    }

    .mg-reading-section {
        scroll-margin-top: 104px;
    }

    .mg-reading-continue {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

        .mg-reading-continue .mg-reading-btn-secondary {
            width: 100%;
        }
}
