/* =========================================================
   FYITK.NET
   Main Site Theme
   Question Everything. Seek Truth.
   ========================================================= */


/* =========================================================
   1. COLOR SYSTEM
   ========================================================= */

:root {
    --fyitk-bg: #080808;
    --fyitk-bg-soft: #101010;
    --fyitk-card: #141414;
    --fyitk-card-hover: #181818;

    --fyitk-text: #eeeeee;
    --fyitk-text-soft: #c8c8c8;
    --fyitk-muted: #949494;

    --fyitk-gold: #d4af37;
    --fyitk-gold-soft: #b99a45;
    --fyitk-gold-dark: #776326;

    --fyitk-border: #292929;
    --fyitk-border-gold: rgba(212, 175, 55, 0.45);

    --fyitk-max-width: 1180px;
    --fyitk-reading-width: 820px;

    --fyitk-radius: 10px;
}


/* =========================================================
   2. RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--fyitk-bg);
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background-color: var(--fyitk-bg) !important;
    background-image: none !important;

    color: var(--fyitk-text);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.7;

    overflow-x: hidden;
}


/* =========================================================
   3. STANDARD TEXT
   ========================================================= */

h1,
h2,
h3,
h4 {
    color: var(--fyitk-text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.25;
    margin-top: 0;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
}

h2 {
    font-size: clamp(1.65rem, 4vw, 2.4rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.55rem);
}

p {
    margin-top: 0;
    margin-bottom: 1.35rem;
}

a {
    color: var(--fyitk-gold);
    text-decoration: none;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

a:hover {
    color: #f0d56b;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   4. HEADER
   ========================================================= */

header {
    width: 100%;

    background: rgba(8, 8, 8, 0.97);
    border-bottom: 1px solid var(--fyitk-border);
}

.header-content {
    width: min(100% - 32px, var(--fyitk-max-width));
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 84px;

    gap: 30px;
}


/* =========================================================
   5. BRAND
   ========================================================= */

.site-brand {
    display: flex;
    align-items: center;

    gap: 14px;

    color: var(--fyitk-text);
    text-decoration: none;
}

.site-brand:hover {
    color: var(--fyitk-text);
}

.logo-img {
    display: block;

    width: 120px;
    height: auto;
    flex-shrink: 0;

    filter:
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45))
        contrast(1.15)
        brightness(1.04);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blessing {
    color: var(--fyitk-text-soft);

    font-size: 0.91rem;
    line-height: 1.35;

    margin: 0;
}

.logo-ref {
    color: var(--fyitk-gold);

    font-size: 0.76rem;
    line-height: 1.3;

    margin: 3px 0 0;
}


/* =========================================================
   6. PRIMARY NAVIGATION
   ========================================================= */

.site-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 24px;
}

.site-links a {
    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;

    letter-spacing: 0.09em;
    text-transform: uppercase;

    padding: 8px 0;

    border-bottom: 1px solid transparent;
}

.site-links a:hover {
    color: var(--fyitk-gold);
    border-bottom-color: var(--fyitk-gold);
}


/* =========================================================
   7. REMOVE LEGACY HEADER ELEMENTS
   ========================================================= */

.header-actions,
.hamburger-left,
.hamburger-center,
.hamburger-right,
.site-links-mobile,
.right-panel-mobile,
.left-panel-mobile {
    display: none;
}


/* =========================================================
   8. MAIN SITE CONTENT
   ========================================================= */

.fyitk-main {
    width: 100%;
    min-height: 70vh;

    background: var(--fyitk-bg) !important;
}

.fyitk-container {
    width: min(100% - 40px, var(--fyitk-max-width));
    margin: 0 auto;
}

.fyitk-reading {
    width: min(100% - 40px, var(--fyitk-reading-width));
    margin: 0 auto;

    padding: 60px 0;
}


/* =========================================================
   9. HOMEPAGE HERO
   ========================================================= */

.fyitk-hero {
    width: min(100% - 40px, var(--fyitk-max-width));
    margin: 0 auto;

    text-align: center;

    padding:
        clamp(70px, 10vw, 130px) 0
        clamp(60px, 8vw, 100px);
}

.fyitk-eyebrow {
    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    margin-bottom: 18px;
}

.fyitk-title {
    color: #ffffff;

    margin-bottom: 14px;

    letter-spacing: 0.025em;
}

.fyitk-subtitle {
    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 600;

    letter-spacing: 0.12em;
    text-transform: uppercase;

    margin-bottom: 34px;
}

.fyitk-kingdom-line {
    max-width: 720px;

    margin: 0 auto 40px;

    color: var(--fyitk-text-soft);

    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-style: italic;
}

.fyitk-motto {
    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;

    margin-bottom: 20px;
}

.fyitk-invitation {
    max-width: 680px;
    margin: 0 auto;

    color: var(--fyitk-text-soft);

    font-size: clamp(1rem, 2vw, 1.2rem);
}


/* =========================================================
   10. DIVIDERS
   ========================================================= */

.fyitk-divider {
    width: 70px;
    height: 1px;

    margin: 36px auto;

    border: 0;

    background: var(--fyitk-gold);

    opacity: 0.75;
}


/* =========================================================
   11. SECTIONS
   ========================================================= */

.fyitk-section {
    padding: clamp(50px, 8vw, 90px) 0;
}

.fyitk-section + .fyitk-section {
    border-top: 1px solid var(--fyitk-border);
}

.fyitk-section-heading {
    text-align: center;

    margin-bottom: 12px;
}

.fyitk-section-intro {
    max-width: 680px;

    margin: 0 auto 40px;

    text-align: center;

    color: var(--fyitk-muted);
}


/* =========================================================
   12. HOMEPAGE FEATURE CARDS
   ========================================================= */

.fyitk-paths {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.fyitk-card {
    display: block;

    padding: clamp(28px, 5vw, 44px);

    background: var(--fyitk-card);

    border: 1px solid var(--fyitk-border);
    border-radius: var(--fyitk-radius);

    color: var(--fyitk-text);
}

.fyitk-card:hover {
    background: var(--fyitk-card-hover);

    border-color: var(--fyitk-border-gold);

    color: var(--fyitk-text);
}

.fyitk-card-label {
    display: block;

    margin-bottom: 12px;

    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.fyitk-card-title {
    display: block;

    margin-bottom: 10px;

    color: #ffffff;

    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
}

.fyitk-card-text {
    display: block;

    color: var(--fyitk-muted);

    font-size: 0.97rem;
    line-height: 1.6;
}


/* =========================================================
   13. RESEARCH TOOLS
   ========================================================= */

.fyitk-tools {
    display: flex;

    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
}

.fyitk-tool {
    display: inline-block;

    padding: 10px 15px;

    background: #101010;

    border: 1px solid var(--fyitk-border);
    border-radius: 6px;

    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
}

.fyitk-tool:hover {
    color: var(--fyitk-gold);

    border-color: var(--fyitk-border-gold);
}


/* =========================================================
   14. STANDARD FYITK BUTTON
   ========================================================= */

.fyitk-button {
    display: inline-block;

    padding: 12px 22px;

    border: 1px solid var(--fyitk-gold);
    border-radius: 6px;

    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fyitk-button:hover {
    background: var(--fyitk-gold);

    color: #080808;
}


/* =========================================================
   15. SCRIPTURE QUOTATIONS
   ========================================================= */

blockquote {
    max-width: 760px;

    margin: 36px auto;
    padding: 20px 24px;

    background: #101010;

    border: 0;
    border-left: 3px solid var(--fyitk-gold);

    color: var(--fyitk-text-soft);

    font-style: italic;
}

blockquote cite {
    display: block;

    margin-top: 12px;

    color: var(--fyitk-gold);

    font-size: 0.88rem;
    font-style: normal;

    text-align: right;
}


/* =========================================================
   16. STANDARD CONTENT PAGES
   ========================================================= */

.fyitk-content {
    width: min(100% - 40px, var(--fyitk-reading-width));

    margin: 0 auto;

    padding: clamp(40px, 7vw, 80px) 0;
}

.fyitk-content h1 {
    margin-bottom: 32px;
}

.fyitk-content h2 {
    margin-top: 46px;
    margin-bottom: 18px;

    color: var(--fyitk-gold);
}

.fyitk-content h3 {
    margin-top: 32px;
}


/* =========================================================
   17. STUDIES HERO
   ========================================================= */

.fyitk-study-hero {
    width: min(100% - 40px, var(--fyitk-max-width));

    margin: 0 auto;

    padding:
        clamp(65px, 9vw, 110px) 0
        clamp(38px, 6vw, 70px);

    text-align: center;
}

.fyitk-study-title {
    color: #ffffff;

    margin-bottom: 18px;
}

.fyitk-study-intro {
    max-width: 720px;

    margin: 0 auto;

    color: var(--fyitk-text-soft);

    font-size: clamp(1rem, 2vw, 1.15rem);
}


/* =========================================================
   18. STUDIES LIBRARY
   ========================================================= */

.studies-library {
    padding-top: 25px;
}

.study-grid {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   19. JAVASCRIPT-GENERATED STUDY CARDS

   Actual structure created by studies.js:

   .study-card
       h3
       p
       button
   ========================================================= */

.study-grid .study-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 285px;

    padding: 30px;

    background: var(--fyitk-card);

    border: 1px solid var(--fyitk-border);
    border-radius: var(--fyitk-radius);

    color: var(--fyitk-text);

    box-shadow: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.study-grid .study-card:hover {
    background: var(--fyitk-card-hover);

    border-color: var(--fyitk-border-gold);

    transform: translateY(-3px);
}


/* Study title */

.study-grid .study-card h3 {
    margin: 0 0 18px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.35;

    text-align: left;

    text-shadow: none;
}


/* File icon */

.study-grid .study-icon {
    margin-right: 8px;

    color: var(--fyitk-gold);

    font-size: 0.9em;
}


/* Description */

.study-grid .study-card p {
    flex: 1;

    margin: 0 0 26px;

    color: var(--fyitk-muted);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.97rem;
    line-height: 1.65;
}


/* Read Study button */

.study-grid .study-card button {
    appearance: none;

    width: 100%;

    margin-top: auto;
    padding: 12px 18px;

    background: transparent;

    border: 1px solid var(--fyitk-gold);
    border-radius: 6px;

    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.study-grid .study-card button:hover {
    background: var(--fyitk-gold);

    color: #080808;
}


/* =========================================================
   20. STUDIES PAGINATION
   ========================================================= */

.pagination {
    display: flex;

    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin: 42px 0 0;
}

.pagination .page-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    min-height: 42px;

    padding: 8px 12px;

    background: #101010;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;

    text-decoration: none;
}

.pagination .page-link:hover {
    color: var(--fyitk-gold);

    border-color: var(--fyitk-border-gold);
}


/* =========================================================
   21. STUDY PDF VIEWER
   ========================================================= */

.fyitk-pdf-viewer {
    width: 100%;

    padding: 40px 0 70px;
	margin-top: 0px;
    background: var(--fyitk-bg);
}

/* Compact Studies heading while viewing a PDF */

.fyitk-study-hero.pdf-mode {
    padding: 20px 0 12px;
}

.fyitk-study-hero.pdf-mode .fyitk-eyebrow {
    margin-bottom: 0;
}

/* PDF toolbar */

.pdf-header {
    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 20px;

    margin-bottom: 22px;
    padding: 18px;

    background: var(--fyitk-card);

    border: 1px solid var(--fyitk-border);
    border-radius: var(--fyitk-radius);
}

.pdf-toolbar {
    display: flex;

    justify-content: flex-start;
}


/* Narrator */

.voice-selector {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;
}

.voice-selector label {
    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.voice-selector select {
    max-width: 220px;

    padding: 9px 12px;

    background: #0c0c0c;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-text);
}


/* PDF audio controls */

.pdf-controls {
    display: flex;

    justify-content: flex-end;
    flex-wrap: wrap;

    gap: 8px;
}

.fyitk-control-button {
    appearance: none;

    padding: 9px 13px;

    background: #0e0e0e;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.76rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.fyitk-control-button:hover {
    color: var(--fyitk-gold);

    border-color: var(--fyitk-border-gold);
}


/* PDF */

.fyitk-pdf-frame {
    display: block;

    width: 100%;
    height: 800px;

    background: #ffffff;

    border: 1px solid var(--fyitk-border);
    border-radius: var(--fyitk-radius);
}

/* PDF.js mobile page reader */

.mobile-pdf-pages {
    display: none;

    width: 100%;

    padding: 12px;

    background: #d8d8d8;

    border: 1px solid var(--fyitk-border);
    border-radius: var(--fyitk-radius);
}

.mobile-pdf-page {
    width: 100%;

    margin: 0 auto 16px;

    background: #ffffff;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.mobile-pdf-page:last-child {
    margin-bottom: 0;
}

.mobile-pdf-canvas {
    display: block;

    width: 100%;
    height: auto;
}

.pdf-loading-message,
.pdf-error-message {
    margin: 0;
    padding: 28px 18px;

    color: #222222;

    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}

.pdf-error-message a {
    color: #6d4f00;
    font-weight: 700;
}
/* =========================================================
   22. BACK TO TOP
   ========================================================= */

.back-to-top {
    margin: 50px auto 20px;

    text-align: center;
}

.back-to-top a {
    padding: 8px;

    background: none;
    border: 0;

    color: var(--fyitk-muted);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
}

.back-to-top a:hover {
    color: var(--fyitk-gold);
}


/* =========================================================
   23. FOOTER
   ========================================================= */

footer {
    margin-top: 50px;

    background: #060606;

    border-top: 1px solid var(--fyitk-border);

    color: var(--fyitk-muted);
}

.footer-content {
    width: min(100% - 40px, var(--fyitk-max-width));

    margin: 0 auto;

    padding: 34px 0;

    text-align: center;

    font-size: 0.85rem;
}

footer a {
    color: var(--fyitk-text-soft);
}

footer a:hover {
    color: var(--fyitk-gold);
}


/* =========================================================
   24. ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--fyitk-gold);

    outline-offset: 4px;
}


/* =========================================================
   25. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .header-content {
        min-height: 74px;
    }

    .logo-img {
        width: 52px;
    }

    .blessing,
    .logo-ref {
        display: none;
    }

    .site-links {
        gap: 15px;
    }

    .site-links a {
        font-size: 0.7rem;
    }


    /* Study PDF viewer */

    .pdf-header {
        grid-template-columns: 1fr;
    }

    .pdf-toolbar,
    .pdf-controls {
        justify-content: center;
    }

}


/* =========================================================
   26. MOBILE / iPHONE
   ========================================================= */

@media (max-width: 700px) {

    body {
        font-size: 16px;
    }


    /* Header */

    .header-content {
        width: min(100% - 28px, var(--fyitk-max-width));

        flex-direction: column;

        justify-content: center;

        gap: 10px;

        padding: 16px 0;
    }

    .site-brand {
        justify-content: center;
    }

    .logo-img {
        width: 55px;
    }

    .site-links {
        width: 100%;

        justify-content: center;
        flex-wrap: wrap;

        gap: 5px 16px;
    }

    .site-links a {
        padding: 6px 0;

        font-size: 0.68rem;
    }


    /* Homepage */

    .fyitk-hero {
        width: min(100% - 32px, var(--fyitk-max-width));

        padding: 60px 0 55px;
    }

    .fyitk-container {
        width: min(100% - 32px, var(--fyitk-max-width));
    }

    .fyitk-reading,
    .fyitk-content {
        width: min(100% - 32px, var(--fyitk-reading-width));
    }

    .fyitk-paths {
        grid-template-columns: 1fr;
    }

    .fyitk-card {
        padding: 28px 24px;
    }


    /* Studies */

    .fyitk-study-hero {
        width: calc(100% - 32px);

        padding-top: 55px;
    }

    .study-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .study-grid .study-card {
        min-height: 0;

        padding: 24px 22px;
    }

    .study-grid .study-card h3 {
        font-size: 1.3rem;
    }


    /* Study viewer */

    .pdf-header {
        padding: 15px;
    }

    .voice-selector {
        flex-direction: column;
    }

    .voice-selector select {
        width: 100%;
        max-width: 100%;
    }

    .pdf-controls {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        width: 100%;
    }

    .fyitk-control-button {
        width: 100%;
    }

   .fyitk-pdf-frame {
   	 display: none;
	}

	.mobile-pdf-pages {
   	 display: block;

    	padding: 6px;
	}

	.mobile-pdf-page {
    	margin-bottom: 10px;
	}

}


/* =========================================================
   27. VERY SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .site-links {
        gap: 2px 11px;
    }

    .site-links a {
        font-size: 0.64rem;

        letter-spacing: 0.06em;
    }

    .fyitk-hero {
        width: calc(100% - 26px);
    }

    .fyitk-container,
    .fyitk-reading,
    .fyitk-content {
        width: calc(100% - 26px);
    }

    .study-grid .study-card {
        padding: 21px 18px;
    }

    .pdf-controls {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   28. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}

/* =========================================================
   FYITK SCRIPTURE READING PLAN
   ========================================================= */


/* Scripture hero */

.fyitk-scripture-hero {
    width: min(100% - 40px, var(--fyitk-max-width));
    margin: 0 auto;

    padding:
        clamp(65px, 8vw, 105px) 0
        clamp(35px, 5vw, 60px);

    text-align: center;
}

.fyitk-scripture-title {
    margin-bottom: 18px;

    color: #ffffff;
}

.fyitk-scripture-intro {
    max-width: 680px;
    margin: 0 auto;

    color: var(--fyitk-text-soft);

    font-size: clamp(1rem, 2vw, 1.15rem);
}


/* Scripture library */

.scripture-library {
    padding-top: 25px;
}

.book-list {
    width: 100%;
    max-width: 980px;

    margin: 0 auto;
}


/* =========================================================
   TESTAMENT SECTIONS

   Gospels
   Acts
   Pauline Epistles
   General Epistles
   Revelation
   ========================================================= */

.book-list .section-divider {
    margin: 55px 0 25px;
    padding-bottom: 12px;

    border-bottom: 1px solid var(--fyitk-border);

    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.14em;
    text-align: left;
    text-transform: uppercase;
}

.book-list .section-divider:first-child {
    margin-top: 0;
}


/* =========================================================
   INDIVIDUAL BOOK ROW
   ========================================================= */

.book-section {
    display: grid;

    grid-template-columns: 190px 1fr;

    align-items: start;

    gap: 20px;

    padding: 18px 0;

    border-bottom: 1px solid #1d1d1d;
}


/* Book name */

.book-label {
    margin: 0;
    padding-top: 7px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;

    line-height: 1.4;
}


/* =========================================================
   CHAPTER BUTTONS
   ========================================================= */

.chapter-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin: 0;
    padding: 0;
}

.chapter-buttons button {
    appearance: none;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    height: 42px;

    padding: 0 10px;

    background: #111111;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.chapter-buttons button:hover {
    color: var(--fyitk-gold);

    background: var(--fyitk-card-hover);

    border-color: var(--fyitk-border-gold);

    transform: translateY(-1px);
}


/* =========================================================
   COMPLETED CHAPTER
   ========================================================= */

.chapter-buttons button.completed {
    background: #6d6434;

    border-color: #a89f68;

    color: #ffffff;
}

.chapter-buttons button.completed:hover {
    background: #7c7240;

    border-color: var(--fyitk-gold);

    color: #ffffff;
}


/* =========================================================
   SCRIPTURE READING PLAN - TABLET
   ========================================================= */

@media (max-width: 700px) {

    .fyitk-scripture-hero {
        width: calc(100% - 32px);

        padding-top: 55px;
    }

    .scripture-library {
        padding-top: 15px;
    }

    .book-section {
        grid-template-columns: 1fr;

        gap: 10px;

        padding: 20px 0;
    }

    .book-label {
        padding-top: 0;

        font-size: 1.1rem;
    }

    .chapter-buttons {
        gap: 7px;
    }

}


/* =========================================================
   SCRIPTURE READING PLAN - SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .chapter-buttons button {
        min-width: 39px;
        height: 39px;

        padding: 0 8px;

        font-size: 0.74rem;
    }

}

/* =========================================================
   FYITK NEW TESTAMENT CHAPTER READER
   ========================================================= */


.fyitk-reader {
    width: 100%;

    background: var(--fyitk-bg);

    padding:
        clamp(45px, 6vw, 75px) 0
        70px;
}


.fyitk-reader-container {
    width: min(100% - 40px, 940px);

    margin: 0 auto;
}


/* =========================================================
   READER HEADING
   ========================================================= */

.reader-heading {
    text-align: center;

    margin-bottom: 30px;
}


.reader-chapter-title {
    margin: 0;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(2rem, 6vw, 3.4rem);

    line-height: 1.2;
}


/* =========================================================
   AUDIO / NARRATOR PANEL
   ========================================================= */

.reader-control-panel {
    margin-bottom: 24px;
    padding: 20px;

    background: var(--fyitk-card);

    border: 1px solid var(--fyitk-border);
    border-radius: var(--fyitk-radius);
}


/* Narrator */

.reader-voice-selector {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}


.reader-voice-selector label {
    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.76rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.reader-voice-selector select {
    width: min(100%, 360px);

    padding: 10px 12px;

    background: #0c0c0c;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-text);

    font-family: Arial, Helvetica, sans-serif;
}


/* Audio buttons */

.reader-audio-controls {
    display: flex;

    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}


.reader-button {
    appearance: none;

    padding: 10px 14px;

    background: #0e0e0e;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.76rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}


.reader-button:hover {
    color: var(--fyitk-gold);

    border-color: var(--fyitk-border-gold);
}


.reader-button-primary {
    border-color: var(--fyitk-border-gold);

    color: var(--fyitk-gold);
}


/* =========================================================
   PROGRESS
   ========================================================= */

.reader-progress {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 22px;
    padding: 15px 18px;

    background: #101010;

    border: 1px solid var(--fyitk-border);
    border-radius: 7px;
}


.reader-progress p {
    margin: 0;

    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.84rem;
}


.reader-small-button {
    appearance: none;

    padding: 8px 12px;

    background: transparent;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-muted);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.72rem;
    font-weight: 600;

    cursor: pointer;
}


.reader-small-button:hover {
    color: var(--fyitk-gold);

    border-color: var(--fyitk-border-gold);
}


/* =========================================================
   SCRIPTURE / VERSES
   ========================================================= */

.reader-scripture {
    margin-top: 10px;
}


.verse-list {
    display: flex;

    flex-direction: column;

    gap: 8px;
}


.verse {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        38px
        34px;

    align-items: start;

    gap: 10px;

    padding: 16px 14px;

    background: #101010;

    border: 1px solid #1f1f1f;
    border-left: 3px solid #292929;

    border-radius: 6px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}


.verse:hover {
    background: #131313;

    border-left-color: var(--fyitk-gold-dark);
}


/* Verse text */

.verse-text {
    min-width: 0;

    color: var(--fyitk-text-soft);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.05rem;

    line-height: 1.75;
}


.verse-text strong {
    color: var(--fyitk-gold);

    font-size: 0.87em;
}


/* =========================================================
   SPEAK INDIVIDUAL VERSE
   ========================================================= */

.speak-verse {
    appearance: none;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    margin: 0;

    background: transparent;

    border: 1px solid transparent;
    border-radius: 5px;

    color: var(--fyitk-muted);

    font-size: 1rem;

    cursor: pointer;
}


.speak-verse:hover {
    color: var(--fyitk-gold);

    border-color: var(--fyitk-border-gold);
}


/* Font Awesome may not be present in the new shell.
   If the icon library is loaded later, the icon displays normally. */

.speak-verse i {
    pointer-events: none;
}


/* =========================================================
   VERSE CHECKBOX
   ========================================================= */

.verse-checkbox {
    width: 21px;
    height: 21px;

    margin-top: 7px;

    accent-color: var(--fyitk-gold);

    cursor: pointer;
}


/* =========================================================
   SPOKEN VERSE
   ========================================================= */

.verse-text.speaking {
    padding-left: 9px;

    background: rgba(212, 175, 55, 0.08);

    border-left: 3px solid var(--fyitk-gold);

    color: #ffffff;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


/* =========================================================
   BOOK / CHAPTER NAVIGATION
   ========================================================= */

.reader-navigation {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 10px;

    margin-top: 32px;
}


.reader-nav-button {
    appearance: none;

    min-height: 48px;

    padding: 10px 14px;

    background: var(--fyitk-card);

    border: 1px solid var(--fyitk-border);
    border-radius: 6px;

    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.75rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}


.reader-nav-button:hover {
    color: var(--fyitk-gold);

    background: var(--fyitk-card-hover);

    border-color: var(--fyitk-border-gold);
}


/* =========================================================
   BOTTOM ACTIONS
   ========================================================= */

.reader-bottom-actions {
    display: flex;

    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


.reader-return-link,
.reader-home-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 9px 15px;

    background: transparent;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-muted);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 0.74rem;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;
}


.reader-return-link:hover,
.reader-home-button:hover {
    color: var(--fyitk-gold);

    border-color: var(--fyitk-border-gold);
}


/* Existing JS expects these IDs.
   They no longer need visible sidebar indicators. */

.reader-compatibility {
    display: none;
}


/* =========================================================
   CHAPTER READER - TABLET
   ========================================================= */

@media (max-width: 800px) {

    .reader-navigation {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   CHAPTER READER - iPHONE / MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .fyitk-reader {
        padding-top: 40px;
    }

    .fyitk-reader-container {
        width: calc(100% - 28px);
    }

    .reader-control-panel {
        padding: 16px 13px;
    }

    .reader-voice-selector {
        flex-direction: column;

        gap: 7px;
    }

    .reader-voice-selector select {
        width: 100%;
    }

    .reader-audio-controls {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;
    }

    .reader-button {
        width: 100%;

        min-height: 42px;
    }

    .reader-progress {
        align-items: stretch;
        flex-direction: column;

        gap: 10px;
    }

    .reader-small-button {
        width: 100%;
    }

    .verse {
        grid-template-columns:
            minmax(0, 1fr)
            36px
            28px;

        padding: 14px 10px;

        gap: 6px;
    }

    .verse-text {
        font-size: 1rem;

        line-height: 1.7;
    }

    .reader-navigation {
        grid-template-columns: 1fr 1fr;

        gap: 8px;
    }

}


/* =========================================================
   CHAPTER READER - VERY SMALL PHONES
   ========================================================= */

@media (max-width: 390px) {

    .reader-audio-controls {
        grid-template-columns: 1fr;
    }

    .reader-navigation {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   FYITK NEW TESTAMENT INTERLINEAR
   ========================================================= */

.fyitk-interlinear {
    width: 100%;
    padding: clamp(45px, 6vw, 75px) 0 80px;
    background: var(--fyitk-bg);
}

.fyitk-interlinear-container {
    width: min(100% - 40px, 1180px);
    margin: 0 auto;
}


/* Heading */

.interlinear-heading {
    text-align: center;
    margin-bottom: 30px;
}

.interlinear-title {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(2rem, 6vw, 3.4rem);
}

.interlinear-intro {
    max-width: 700px;
    margin: 0 auto;
    color: var(--fyitk-text-soft);
}


/* =========================================================
   BOOK NAVIGATION
   ========================================================= */

#book-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 8px;

    margin: 25px auto 32px;
}

#book-nav button {
    appearance: none;

    padding: 9px 12px;

    background: #111111;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

#book-nav button:hover {
    color: var(--fyitk-gold);
    background: var(--fyitk-card-hover);
    border-color: var(--fyitk-border-gold);
}


/* =========================================================
   MOBILE BOOK BUTTON
   ========================================================= */

.i-hamburger-wrapper {
    display: none;
    justify-content: center;

    margin: 15px 0;
}

.i-hamburger {
    appearance: none;

    padding: 10px 20px;

    background: var(--fyitk-card);

    border: 1px solid var(--fyitk-border-gold);
    border-radius: 6px;

    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    cursor: pointer;
}


/* =========================================================
   WORKSPACE
   ========================================================= */

.interlinear-workspace {
    padding: 18px;

    background: var(--fyitk-card);

    border: 1px solid var(--fyitk-border);
    border-radius: var(--fyitk-radius);
}


/* Toolbar */

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 18px;
}

#search-input {
    width: min(100%, 420px);

    padding: 11px 13px;

    background: #0c0c0c;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-text);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

#search-input::placeholder {
    color: #707070;
}

#search-input:focus {
    outline: 2px solid var(--fyitk-gold);
    outline-offset: 2px;
}

.interlinear-chapter-status {
    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    white-space: nowrap;
}


/* =========================================================
   TABLE SCROLLING
   ========================================================= */

#tableContainer {
    width: 100%;
    overflow-x: auto;

    border: 1px solid var(--fyitk-border);
    border-radius: 6px;
}

/* Preserve side-by-side comparison */

#tableContainer > div {
    width: 100%;
    max-height: 70vh !important;

    overflow: auto !important;
}


/* =========================================================
   TABLE
   ========================================================= */

.data-table {
    width: 100%;
    min-width: 850px;

    border-collapse: separate;
    border-spacing: 0;

    background: #0d0d0d;

    font-family: Georgia, "Times New Roman", serif;
}

.data-table thead th {
    position: sticky;
    top: 0;

    z-index: 2;

    padding: 13px 14px;

    background: #171717;

    border-bottom: 1px solid var(--fyitk-border-gold);

    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
}

.data-table td {
    padding: 13px 14px;

    border-bottom: 1px solid #202020;

    color: var(--fyitk-text-soft);

    font-size: 0.96rem;
    line-height: 1.6;

    vertical-align: top;
}

.data-table th:first-child,
.data-table td:first-child {
    width: 130px;

    color: var(--fyitk-gold);
}

.data-table tbody tr:nth-child(even) {
    background: #101010;
}

.data-table tbody tr:hover {
    background: #161616;
}


/* Selected verse */

.data-table .verse-row.selected {
    background: rgba(212, 175, 55, 0.10);
}

.data-table .verse-row.selected td:first-child {
    border-left: 3px solid var(--fyitk-gold);
}


/* Search result */

.data-table .verse-row.highlight {
    background: rgba(212, 175, 55, 0.07);
}


/* =========================================================
   CHAPTER BUTTONS
   ========================================================= */

.pagination-wrapper {
    margin-top: 18px;
}

#pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 7px;
}

#pagination button {
    appearance: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;

    padding: 0 10px;

    background: #101010;

    border: 1px solid var(--fyitk-border);
    border-radius: 5px;

    color: var(--fyitk-text-soft);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;

    cursor: pointer;
}

#pagination button:hover {
    color: var(--fyitk-gold);
    border-color: var(--fyitk-border-gold);
}

#pagination button:disabled {
    background: var(--fyitk-gold);

    border-color: var(--fyitk-gold);

    color: #080808;

    opacity: 1;

    cursor: default;
}


/* =========================================================
   INTERLINEAR MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .fyitk-interlinear {
        padding-top: 40px;
    }

    .fyitk-interlinear-container {
        width: calc(100% - 24px);
    }

    .i-hamburger-wrapper {
        display: flex;
    }

    #book-nav {
        display: none;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;

        margin: 15px 0 25px;
    }

    #book-nav.active {
        display: grid;
    }

    #book-nav button {
        width: 100%;

        padding: 10px 7px;
    }

    .interlinear-workspace {
        padding: 10px;
    }

    .table-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    #search-input {
        width: 100%;
        max-width: none;
    }

    .interlinear-chapter-status {
        text-align: center;
    }

    /*
       Keep the four languages side-by-side.
       The table scrolls horizontally instead of
       shrinking into unreadable text.
    */

    .data-table {
        min-width: 780px;
    }

    .data-table td {
        font-size: 0.91rem;
    }

}


/* Very small phones */

@media (max-width: 390px) {

    #book-nav {
        grid-template-columns: 1fr 1fr;
    }

    .fyitk-interlinear-container {
        width: calc(100% - 18px);
    }

}

/* =========================================================
   FYITK RESEARCH TOOLS
   ========================================================= */

.fyitk-research-page {
    width: 100%;
    padding: clamp(50px, 7vw, 85px) 0 80px;
    background: var(--fyitk-bg);
}

.fyitk-research-container {
    width: min(100% - 40px, 1000px);
    margin: 0 auto;
}


/* Heading */

.research-heading {
    text-align: center;
    margin-bottom: 40px;
}

.research-title {
    margin-bottom: 18px;

    color: #ffffff;

    font-size: clamp(2rem, 6vw, 3.4rem);
}

.research-intro {
    max-width: 650px;
    margin: 0 auto;

    color: var(--fyitk-text-soft);

    font-size: clamp(1rem, 2vw, 1.1rem);
}


/* =========================================================
   ALPHABET GRID
   ========================================================= */

.alphabet-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.alphabet-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 22px 18px;

    background: var(--fyitk-card);

    border: 1px solid var(--fyitk-border);
    border-radius: 8px;

    text-align: center;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.alphabet-card:hover {
    background: var(--fyitk-card-hover);

    border-color: var(--fyitk-border-gold);

    transform: translateY(-2px);
}

.alphabet-character {
    display: block;

    margin-bottom: 7px;

    color: var(--fyitk-gold);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    line-height: 1.2;
}

.alphabet-name {
    display: block;

    margin-bottom: 5px;

    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.alphabet-pronunciation {
    display: block;

    color: var(--fyitk-muted);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.78rem;

    line-height: 1.45;
}


/* Return */

.research-return {
    margin-top: 40px;
    text-align: center;
}


/* Tablet */

@media (max-width: 750px) {

    .alphabet-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* iPhone */

@media (max-width: 480px) {

    .fyitk-research-container {
        width: calc(100% - 28px);
    }

    .alphabet-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .alphabet-card {
        padding: 18px 10px;
    }

    .alphabet-character {
        font-size: 1.7rem;
    }

    .alphabet-name {
        font-size: 1rem;
    }

    .alphabet-pronunciation {
        font-size: 0.7rem;
    }

}

/* =========================================================
   SEMANTIC ALPHABET TABLE
   ========================================================= */

.alphabet-table-wrapper {
    width: 100%;
    overflow-x: auto;

    border: 1px solid var(--fyitk-border);
    border-radius: var(--fyitk-radius);

    background: var(--fyitk-card);
}

.alphabet-table {
    width: 100%;
    min-width: 620px;

    border-collapse: collapse;

    background: transparent;
}

.alphabet-table thead {
    background: #171717;
}

.alphabet-table th,
.alphabet-table td {
    padding: 15px 18px;

    border-bottom: 1px solid var(--fyitk-border);

    color: var(--fyitk-text-soft);

    text-align: left;
    vertical-align: middle;
}

.alphabet-table thead th {
    color: var(--fyitk-gold);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.alphabet-table tbody th {
    color: #ffffff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.alphabet-table tbody tr:nth-child(even) {
    background: #101010;
}

.alphabet-table tbody tr:hover {
    background: var(--fyitk-card-hover);
}

.alphabet-table tbody tr:last-child th,
.alphabet-table tbody tr:last-child td {
    border-bottom: 0;
}

.alphabet-symbol {
    color: var(--fyitk-gold) !important;

    font-size: 1.8rem;
    line-height: 1;

    text-align: center !important;
}

.paleo-symbol {
    font-size: 2rem;
}


/* iPhone */

@media (max-width: 600px) {

    .alphabet-table {
        min-width: 540px;
    }

    .alphabet-table th,
    .alphabet-table td {
        padding: 12px 13px;
    }

    .alphabet-symbol {
        font-size: 1.55rem;
    }

    .paleo-symbol {
        font-size: 1.7rem;
    }

}

/* Alphabet reference notes */

.alphabet-note {
    max-width: 700px;

    margin: 24px auto 0;
    padding: 14px 18px;

    background: #101010;

    border-left: 3px solid var(--fyitk-gold);

    color: var(--fyitk-text-soft);

    font-size: 0.9rem;
    line-height: 1.6;
}

.alphabet-note strong {
    color: var(--fyitk-gold);
}

.alphabet-value {
    color: var(--fyitk-gold) !important;

    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;

    text-align: center !important;
}

.alphabet-note + .alphabet-note {
    margin-top: 10px;
}

/* The three numeral-only signs */
.numeral-gap-row {
    background: rgba(212, 175, 55, 0.05) !important;
}

.alphabet-translit {
    color: #ffffff !important;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    text-align: center !important;
}

.alphabet-value {
    color: var(--fyitk-gold) !important;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    text-align: center !important;
}

.greek-alphabet-table {
    min-width: 850px;
}


/* Biblical Greek examples inside reference note */

.biblical-greek-examples {
    margin-top: 12px;
}

.biblical-greek-examples p {
    margin: 7px 0;
}

.greek-term {
    color: var(--fyitk-gold);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;

    margin-right: 8px;
}

.greek-translit {
    color: #ffffff;

    font-style: italic;

    margin-right: 4px;
}


/* iPhone */

@media (max-width: 600px) {

    .biblical-greek-examples p {
        margin: 12px 0;
        line-height: 1.6;
    }

}

/* =========================================================
   THE PARABLES OF JESUS CHRIST
   ========================================================= */

.parables-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   PAGE HEADING
   --------------------------------------------------------- */

.parables-heading {
    text-align: center;
    margin: 0 auto 35px;
}

.parables-heading h1 {
    margin: 0 0 12px;
    color: #d4af37;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
}

.parables-heading p {
    max-width: 700px;
    margin: 0 auto;
    color: #c9c9c9;
    font-size: 1.05rem;
    line-height: 1.7;
}


/* ---------------------------------------------------------
   PARABLES GRID
   --------------------------------------------------------- */

.parables-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}


/* ---------------------------------------------------------
   INDIVIDUAL PARABLE CARD
   --------------------------------------------------------- */

.parable-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            #151515 0%,
            #0c0c0c 100%
        );

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 12px;

    padding: 24px 24px 22px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Gold accent along top edge */

.parable-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 20px;
    right: 20px;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #d4af37,
        transparent
    );
}


/* ---------------------------------------------------------
   CARD HOVER
   --------------------------------------------------------- */

.parable-card:hover {
    transform: translateY(-3px);

    border-color: #d4af37;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(212, 175, 55, 0.10);
}


/* ---------------------------------------------------------
   PARABLE NUMBER
   --------------------------------------------------------- */

.parable-number {
    display: inline-block;

    margin-bottom: 10px;

    color: #d4af37;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.15em;
}


/* ---------------------------------------------------------
   PARABLE TITLE
   --------------------------------------------------------- */

.parable-card h2 {
    margin: 0 0 12px;

    color: #f4f1e8;

    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;

    line-height: 1.35;

    text-align: left;

    text-shadow: none;
}


/* ---------------------------------------------------------
   SCRIPTURE REFERENCES
   --------------------------------------------------------- */

.parable-card p {
    margin: 0;

    color: #b9b9b9;

    font-size: 0.98rem;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   BACK TO TOP
   --------------------------------------------------------- */

.parables-back-top {
    text-align: center;
    margin-top: 40px;
}

.parables-back-top a {
    display: inline-block;

    padding: 10px 18px;

    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.parables-back-top a:hover {
    background-color: #d4af37;
    color: #080808;
    border-color: #d4af37;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .parables-section {
        padding: 25px 16px 50px;
    }

    .parables-grid {
        gap: 14px;
    }

    .parable-card {
        padding: 20px;
    }

}


/* =========================================================
   IPHONE / MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .parables-section {
        padding: 20px 12px 45px;
    }

    .parables-heading {
        margin-bottom: 25px;
    }

    .parables-heading h1 {
        font-size: 2rem;
    }

    .parables-heading p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /*
       One card per row on phones.
       This avoids the narrow three-column problem
       from the legacy site.
    */

    .parables-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .parable-card {
        padding: 19px 18px;
        border-radius: 10px;
    }

    .parable-card h2 {
        font-size: 1.15rem;
    }

    .parable-card p {
        font-size: 0.94rem;
    }

    /*
       Hover movement isn't useful on touch devices,
       so remove it for the mobile layout.
    */

    .parable-card:hover {
        transform: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .parables-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .parables-heading h1 {
        font-size: 1.75rem;
    }

    .parable-card {
        padding: 17px 16px;
    }

}


/* =========================================================
   THE COMMANDMENTS OF JESUS CHRIST
   ========================================================= */

.commandments-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}


/* =========================================================
   MAIN PAGE HEADING
   ========================================================= */

.commandments-heading {
    text-align: center;
    margin: 0 auto 35px;
}

.commandments-heading h1 {
    margin: 0 0 10px;
    color: #d4af37;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;
}

.commandments-subtitle {
    margin: 0;
    color: #c9c9c9;
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.commandments-intro {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 30px;

    background:
        linear-gradient(
            145deg,
            rgba(21, 21, 21, 0.96),
            rgba(10, 10, 10, 0.96)
        );

    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.commandments-intro p {
    margin: 0 0 20px;
    color: #d6d6d6;
    font-size: 1.03rem;
    line-height: 1.85;
}

.commandments-intro p:last-child {
    margin-bottom: 0;
}


/* Opening paragraph */

.commandments-lead {
    color: #eee9dc !important;
    font-size: 1.08rem !important;
}


/* Book note */

.commandments-book-note {
    margin-top: 28px !important;
    padding-top: 20px;

    border-top: 1px solid rgba(212, 175, 55, 0.25);

    color: #c8b97b !important;
    text-align: center;
}


/* =========================================================
   FEATURE SECTIONS
   ========================================================= */

.commandments-feature-section {
    max-width: 1000px;
    margin: 0 auto 60px;
}

.commandments-section-heading {
    text-align: center;
    margin-bottom: 28px;
}

.commandments-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #d4af37;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.commandments-section-heading h2 {
    margin: 0;

    color: #f4f1e8;

    font-family: inherit;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 600;

    line-height: 1.25;
    text-align: center;

    text-shadow: none;
}

.commandments-section-intro {
    max-width: 680px;
    margin: 12px auto 0;

    color: #b8b8b8;

    font-size: 1rem;
    line-height: 1.65;
}


/* =========================================================
   LONG-FORM PROSE
   ========================================================= */

.commandments-prose {
    max-width: 850px;
    margin: 0 auto 30px;
}

.commandments-prose p {
    margin: 0 0 20px;

    color: #d0d0d0;

    font-size: 1.02rem;
    line-height: 1.85;
}

.commandments-prose p:last-child {
    margin-bottom: 0;
}

.commandments-prose em {
    color: #eee9dc;
}


/* =========================================================
   FOUNDATIONAL COMMANDMENT CARDS
   ========================================================= */

.commandments-foundation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin: 30px auto;
}

.foundation-card {
    position: relative;

    padding: 26px 24px;

    background:
        linear-gradient(
            145deg,
            #161616 0%,
            #0b0b0b 100%
        );

    border: 1px solid rgba(212, 175, 55, 0.48);
    border-radius: 12px;

    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    overflow: hidden;
}

.foundation-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}

.foundation-card-wide {
    max-width: 850px;
    margin: 28px auto;
}

.foundation-number {
    display: inline-block;

    margin-bottom: 10px;

    color: #d4af37;

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.15em;
}

.foundation-card h3 {
    margin: 0 0 15px;

    color: #f4f1e8;

    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 600;

    line-height: 1.4;
    text-align: left;

    text-shadow: none;
}

.foundation-quote {
    margin: 0 0 14px;

    color: #d6d6d6;

    font-size: 1rem;
    font-style: italic;
    line-height: 1.75;
}

.commandment-reference {
    margin: 0;

    color: #bda958;

    font-size: 0.93rem;
    line-height: 1.6;
}


/* =========================================================
   SCRIPTURE HIGHLIGHT
   ========================================================= */

.scripture-highlight {
    max-width: 850px;

    margin: 32px auto;
    padding: 25px 28px;

    background: rgba(212, 175, 55, 0.055);

    border-left: 3px solid #d4af37;
    border-radius: 0 10px 10px 0;
}

.scripture-highlight h3 {
    margin: 0 0 12px;

    color: #d4af37;

    font-family: inherit;
    font-size: 1.2rem;

    text-align: left;
    text-shadow: none;
}

.scripture-highlight p {
    margin: 0;

    color: #d0d0d0;

    font-size: 1rem;
    line-height: 1.8;
}

.scripture-highlight em {
    color: #eee9dc;
}


/* =========================================================
   59 SPECIFIC COMMANDMENTS
   ========================================================= */

.specific-commandments {
    margin-top: 65px;
}

.commandments-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}

.commandment-card {
    position: relative;

    padding: 24px;

    background:
        linear-gradient(
            145deg,
            #151515 0%,
            #0b0b0b 100%
        );

    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 12px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

    overflow: hidden;
}


/* Gold detail */

.commandment-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}


/* Hover */

.commandment-card:hover {
    transform: translateY(-3px);

    border-color: #d4af37;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(212, 175, 55, 0.10);
}


/* Number */

.commandment-number {
    display: inline-block;

    margin-bottom: 10px;

    color: #d4af37;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.15em;
}


/* Title */

.commandment-card h3 {
    margin: 0 0 12px;

    color: #f4f1e8;

    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;

    line-height: 1.4;

    text-align: left;
    text-shadow: none;
}


/* Scripture reference */

.commandment-card p {
    margin: 0;

    color: #b9b9b9;

    font-size: 0.96rem;
    line-height: 1.65;
}


/* =========================================================
   VERSE-REF ELEMENTS
   ========================================================= */

.commandments-section .verse-ref {
    color: #d4af37;
    cursor: pointer;

    text-decoration: none;

    transition: color 0.2s ease;
}

.commandments-section .verse-ref:hover {
    color: #f1d675;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.commandments-back-top {
    text-align: center;

    margin-top: 45px;
}

.commandments-back-top a {
    display: inline-block;

    padding: 10px 18px;

    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.commandments-back-top a:hover {
    background-color: #d4af37;

    color: #080808;

    border-color: #d4af37;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .commandments-section {
        padding: 25px 16px 50px;
    }

    .commandments-intro {
        padding: 25px 22px;
    }

    .commandments-grid,
    .commandments-foundation-grid {
        gap: 14px;
    }

    .commandment-card,
    .foundation-card {
        padding: 21px;
    }

}


/* =========================================================
   IPHONE / MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .commandments-section {
        padding: 20px 12px 45px;
    }


    /* Header */

    .commandments-heading {
        margin-bottom: 25px;
    }

    .commandments-heading h1 {
        font-size: 2rem;
    }

    .commandments-subtitle {
        font-size: 1rem;
    }


    /* Introduction */

    .commandments-intro {
        margin-bottom: 42px;

        padding: 21px 18px;

        border-radius: 10px;
    }

    .commandments-intro p,
    .commandments-prose p {
        font-size: 0.97rem;
        line-height: 1.75;
    }


    /* Feature sections */

    .commandments-feature-section {
        margin-bottom: 48px;
    }

    .commandments-section-heading {
        margin-bottom: 22px;
    }

    .commandments-section-heading h2 {
        font-size: 1.65rem;
    }


    /* Collapse all grids to one column */

    .commandments-grid,
    .commandments-foundation-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    /* Cards */

    .commandment-card,
    .foundation-card {
        padding: 19px 18px;

        border-radius: 10px;
    }

    .commandment-card h3,
    .foundation-card h3 {
        font-size: 1.12rem;
    }

    .commandment-card p {
        font-size: 0.93rem;
    }


    /* Scripture highlight */

    .scripture-highlight {
        padding: 20px 18px;
    }

    .scripture-highlight p {
        font-size: 0.96rem;
        line-height: 1.7;
    }


    /* Don't lift cards on touch layouts */

    .commandment-card:hover {
        transform: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .commandments-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .commandments-heading h1 {
        font-size: 1.75rem;
    }

    .commandments-intro {
        padding: 18px 15px;
    }

    .commandment-card,
    .foundation-card {
        padding: 17px 16px;
    }

}


/* =========================================================
   THE GREAT PROMISES OF JESUS CHRIST
   ========================================================= */

.promises-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}


/* =========================================================
   MAIN PAGE HEADING
   ========================================================= */

.promises-heading {
    max-width: 850px;
    margin: 0 auto 45px;
    text-align: center;
}

.promises-eyebrow {
    display: block;
    margin-bottom: 8px;

    color: #d4af37;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.promises-heading h1 {
    margin: 0 0 16px;

    color: #d4af37;

    font-family: inherit;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;

    text-align: center;
    text-shadow: none;
}

.promises-intro {
    max-width: 720px;
    margin: 0 auto;

    color: #c9c9c9;

    font-size: 1.05rem;
    line-height: 1.75;
}


/* =========================================================
   SHARED SECTION HEADINGS
   ========================================================= */

.promises-section-heading {
    max-width: 800px;
    margin: 0 auto 28px;

    text-align: center;
}

.promises-section-eyebrow {
    display: block;
    margin-bottom: 7px;

    color: #d4af37;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.promises-section-heading h2 {
    margin: 0;

    color: #f4f1e8;

    font-family: inherit;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 600;
    line-height: 1.25;

    text-align: center;
    text-shadow: none;
}

.promises-section-heading p {
    margin: 10px 0 0;

    color: #bda958;

    font-size: 0.95rem;
    line-height: 1.6;
}


/* =========================================================
   THE BEATITUDES
   ========================================================= */

.beatitudes-section {
    position: relative;

    margin: 0 auto 65px;
    padding: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(22, 22, 22, 0.98),
            rgba(8, 8, 8, 0.98)
        );

    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 16px;

    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    overflow: hidden;
}


/* Decorative gold line */

.beatitudes-section::before {
    content: "";

    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}


/* Beatitudes grid */

.beatitudes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px;
}


/* Individual Beatitude */

.beatitude-card {
    position: relative;

    padding: 20px 20px 20px 54px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.beatitude-card:hover {
    background: rgba(212, 175, 55, 0.055);
    border-color: rgba(212, 175, 55, 0.5);
}


/* Beatitude number */

.beatitude-number {
    position: absolute;
    top: 20px;
    left: 18px;

    color: #d4af37;

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}


/* Beatitude text */

.beatitude-card p {
    margin: 0;

    color: #e1ddd2;

    font-size: 1rem;
    line-height: 1.7;
}


/* =========================================================
   GREAT PROMISES SECTION
   ========================================================= */

.great-promises-section {
    margin-top: 20px;
}

.promises-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}


/* =========================================================
   INDIVIDUAL PROMISE CARD
   ========================================================= */

.promise-card {
    position: relative;

    padding: 25px 24px 23px;

    background:
        linear-gradient(
            145deg,
            #151515 0%,
            #0b0b0b 100%
        );

    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 12px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Gold line at top */

.promise-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}


/* Card hover */

.promise-card:hover {
    transform: translateY(-3px);

    border-color: #d4af37;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(212, 175, 55, 0.10);
}


/* =========================================================
   PROMISE NUMBER
   ========================================================= */

.promise-number {
    display: inline-block;

    margin-bottom: 10px;

    color: #d4af37;

    font-size: 0.8rem;
    font-weight: 700;

    letter-spacing: 0.15em;
}


/* =========================================================
   PROMISE TITLE
   ========================================================= */

.promise-card h3 {
    margin: 0 0 15px;

    color: #f4f1e8;

    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;

    line-height: 1.4;

    text-align: left;
    text-shadow: none;
}


/* =========================================================
   SCRIPTURE TEXT
   ========================================================= */

.promise-scripture {
    margin: 0 0 16px;

    color: #d2d2d2;

    font-size: 0.98rem;
    line-height: 1.75;
}


/*
   Some long promise cards contain multiple Scripture
   paragraphs. Keep spacing between them controlled.
*/

.promise-card .promise-scripture + .promise-scripture {
    margin-top: -4px;
}


/* =========================================================
   SCRIPTURE REFERENCE
   ========================================================= */

.promise-reference {
    margin: 18px 0 0;
    padding-top: 13px;

    color: #c4ad55;

    border-top: 1px solid rgba(212, 175, 55, 0.18);

    font-size: 0.9rem;
    font-weight: 600;

    line-height: 1.55;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.promises-back-top {
    text-align: center;

    margin-top: 45px;
}

.promises-back-top a {
    display: inline-block;

    padding: 10px 18px;

    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.promises-back-top a:hover {
    background-color: #d4af37;

    color: #080808;

    border-color: #d4af37;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .promises-section {
        padding: 25px 16px 50px;
    }

    .beatitudes-section {
        padding: 26px 22px;
    }

    .beatitudes-grid,
    .promises-grid {
        gap: 14px;
    }

    .promise-card {
        padding: 21px;
    }

}


/* =========================================================
   IPHONE / MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .promises-section {
        padding: 20px 12px 45px;
    }


    /* Main header */

    .promises-heading {
        margin-bottom: 32px;
    }

    .promises-heading h1 {
        font-size: 2rem;
    }

    .promises-intro {
        font-size: 0.96rem;
        line-height: 1.7;
    }


    /* Section headings */

    .promises-section-heading h2 {
        font-size: 1.65rem;
    }


    /* Beatitudes */

    .beatitudes-section {
        margin-bottom: 48px;

        padding: 23px 16px;

        border-radius: 11px;
    }

    .beatitudes-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }

    .beatitude-card {
        padding: 17px 16px 17px 48px;
    }

    .beatitude-number {
        top: 18px;
        left: 15px;
    }

    .beatitude-card p {
        font-size: 0.95rem;
        line-height: 1.65;
    }


    /* Promises */

    .promises-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .promise-card {
        padding: 19px 18px;

        border-radius: 10px;
    }

    .promise-card h3 {
        font-size: 1.12rem;
    }

    .promise-scripture {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .promise-reference {
        font-size: 0.87rem;
    }


    /* Disable lift effect for touch layouts */

    .promise-card:hover {
        transform: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .promises-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .promises-heading h1 {
        font-size: 1.75rem;
    }

    .beatitudes-section {
        padding-left: 13px;
        padding-right: 13px;
    }

    .promise-card {
        padding: 17px 16px;
    }

}

/* =========================================================
   THE MIRACLES OF JESUS CHRIST
   ========================================================= */

.miracles-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.miracles-heading {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
}

.miracles-eyebrow {
    display: block;
    margin-bottom: 8px;

    color: #d4af37;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.miracles-heading h1 {
    margin: 0 0 16px;

    color: #d4af37;

    font-family: inherit;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;

    text-align: center;
    text-shadow: none;
}

.miracles-intro {
    max-width: 720px;
    margin: 0 auto;

    color: #c9c9c9;

    font-size: 1.05rem;
    line-height: 1.75;
}


/* =========================================================
   MIRACLES GRID
   ========================================================= */

.miracles-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;

    width: 100%;
}


/* =========================================================
   MIRACLE CARD
   ========================================================= */

.miracle-card {
    position: relative;

    padding: 24px;

    background:
        linear-gradient(
            145deg,
            #151515 0%,
            #0b0b0b 100%
        );

    border: 1px solid rgba(212, 175, 55, 0.42);
    border-radius: 12px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Gold accent across top */

.miracle-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}


/* =========================================================
   CARD HOVER
   ========================================================= */

.miracle-card:hover {
    transform: translateY(-3px);

    border-color: #d4af37;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(212, 175, 55, 0.10);
}


/* =========================================================
   MIRACLE NUMBER
   ========================================================= */

.miracle-number {
    display: inline-block;

    margin-bottom: 10px;

    color: #d4af37;

    font-size: 0.82rem;
    font-weight: 700;

    letter-spacing: 0.15em;
}


/* =========================================================
   MIRACLE TITLE
   ========================================================= */

.miracle-card h2 {
    margin: 0 0 12px;

    color: #f4f1e8;

    font-family: inherit;
    font-size: 1.22rem;
    font-weight: 600;

    line-height: 1.4;

    text-align: left;
    text-shadow: none;
}


/* =========================================================
   SCRIPTURE REFERENCES
   ========================================================= */

.miracle-card p {
    margin: 0;

    color: #b9b9b9;

    font-size: 0.96rem;
    line-height: 1.65;
}


/* Gold treatment for reference needing verification */

.miracle-card .miracle-reference-pending {
    color: #c6a94e;

    font-style: italic;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.miracles-back-top {
    margin-top: 45px;

    text-align: center;
}

.miracles-back-top a {
    display: inline-block;

    padding: 10px 18px;

    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.miracles-back-top a:hover {
    background-color: #d4af37;

    color: #080808;

    border-color: #d4af37;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .miracles-section {
        padding: 25px 16px 50px;
    }

    .miracles-grid {
        gap: 14px;
    }

    .miracle-card {
        padding: 21px;
    }

}


/* =========================================================
   IPHONE / MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .miracles-section {
        padding: 20px 12px 45px;
    }


    /* Heading */

    .miracles-heading {
        margin-bottom: 30px;
    }

    .miracles-heading h1 {
        font-size: 2rem;
    }

    .miracles-intro {
        font-size: 0.96rem;
        line-height: 1.7;
    }


    /* One miracle per row */

    .miracles-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    /* Cards */

    .miracle-card {
        padding: 19px 18px;

        border-radius: 10px;
    }

    .miracle-card h2 {
        font-size: 1.14rem;
    }

    .miracle-card p {
        font-size: 0.93rem;
    }


    /* No lift effect on touch layout */

    .miracle-card:hover {
        transform: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .miracles-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .miracles-heading h1 {
        font-size: 1.75rem;
    }

    .miracle-card {
        padding: 17px 16px;
    }

}

/* =========================================================
   MESSIANIC PROPHECIES FULFILLED
   ========================================================= */

.prophecies-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}


/* =========================================================
   PAGE HEADING
   ========================================================= */

.prophecies-heading {
    max-width: 850px;
    margin: 0 auto 38px;
    text-align: center;
}

.prophecies-eyebrow {
    display: block;
    margin-bottom: 8px;

    color: #d4af37;

    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.prophecies-heading h1 {
    margin: 0 0 16px;

    color: #d4af37;

    font-family: inherit;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 600;
    line-height: 1.15;

    text-align: center;
    text-shadow: none;
}

.prophecies-intro {
    max-width: 720px;
    margin: 0 auto;

    color: #c9c9c9;

    font-size: 1.05rem;
    line-height: 1.75;
}


/* =========================================================
   SEARCH AREA
   ========================================================= */

.prophecy-search-section {
    max-width: 720px;
    margin: 0 auto 35px;

    text-align: center;
}

.prophecy-search-label {
    display: block;

    margin-bottom: 10px;

    color: #f4f1e8;

    font-size: 1.05rem;
    font-weight: 600;
}

.prophecy-search-wrapper {
    position: relative;

    width: 100%;
}

.prophecy-search-box {
    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: 14px 17px;

    background: #101010;
    color: #f4f1e8;

    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;

    font-family: inherit;
    font-size: 1rem;

    outline: none;

    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.35);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.prophecy-search-box::placeholder {
    color: #777;
}

.prophecy-search-box:focus {
    border-color: #d4af37;

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.09),
        inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.prophecy-search-hint {
    margin: 9px 0 0;

    color: #888;

    font-size: 0.86rem;
    line-height: 1.5;
}


/* =========================================================
   DATA SECTION
   ========================================================= */

.prophecy-data-section {
    width: 100%;
}


/* =========================================================
   TABLE WRAPPER
   ========================================================= */

.prophecy-table-wrapper {
    width: 100%;

    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 12px;

    overflow: hidden;

    background: #0d0d0d;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.4);
}


/* =========================================================
   PROPHECY TABLE
   ========================================================= */

.prophecy-table {
    width: 100%;
    border-collapse: collapse;

    background: #0d0d0d;

    color: #d5d5d5;

    table-layout: fixed;
}


/* Column widths */

.prophecy-table th:nth-child(1),
.prophecy-table td:nth-child(1) {
    width: 5%;
}

.prophecy-table th:nth-child(2),
.prophecy-table td:nth-child(2) {
    width: 19%;
}

.prophecy-table th:nth-child(3),
.prophecy-table td:nth-child(3) {
    width: 42%;
}

.prophecy-table th:nth-child(4),
.prophecy-table td:nth-child(4) {
    width: 34%;
}


/* =========================================================
   TABLE HEADER
   ========================================================= */

.prophecy-table thead {
    background:
        linear-gradient(
            180deg,
            #1b1b1b,
            #111111
        );
}

.prophecy-table th {
    padding: 16px 14px;

    color: #d4af37;

    border-bottom: 1px solid rgba(212, 175, 55, 0.55);

    font-size: 0.83rem;
    font-weight: 700;

    letter-spacing: 0.07em;
    text-transform: uppercase;

    text-align: left;
}

.prophecy-table th:first-child {
    text-align: center;
}


/* =========================================================
   STANDARD ROWS
   ========================================================= */

.prophecy-row {
    background: #101010;

    transition:
        background-color 0.2s ease;
}

.prophecy-row:nth-of-type(even) {
    background: #131313;
}

.prophecy-row:hover {
    background: rgba(212, 175, 55, 0.055);
}

.prophecy-row td {
    padding: 17px 14px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    vertical-align: top;

    font-size: 0.96rem;
    line-height: 1.65;

    overflow-wrap: anywhere;
}


/* =========================================================
   NUMBER COLUMN
   ========================================================= */

.prophecy-number {
    color: #777;

    text-align: center;

    font-size: 0.8rem !important;
    font-weight: 600;
}


/* =========================================================
   OLD TESTAMENT REFERENCE
   ========================================================= */

.prophecy-ot {
    color: #d4af37;

    font-weight: 600;
}


/* =========================================================
   PROPHETIC THEME
   ========================================================= */

.prophecy-theme {
    color: #f0ede4;

    font-weight: 500;
}


/* =========================================================
   NEW TESTAMENT FULFILLMENT
   ========================================================= */

.prophecy-nt {
    color: #c8c8c8;
}


/* =========================================================
   OT BOOK DIVIDER
   ========================================================= */

.prophecy-table .section-divider {
    background:
        linear-gradient(
            90deg,
            #17130a,
            #211b0d,
            #17130a
        );
}

.prophecy-table .section-divider td {
    width: auto;

    padding: 11px 18px;

    color: #d4af37;

    border-top: 1px solid rgba(212, 175, 55, 0.32);
    border-bottom: 1px solid rgba(212, 175, 55, 0.32);

    font-size: 0.91rem;
    font-weight: 700;

    letter-spacing: 0.13em;
    text-transform: uppercase;

    text-align: left;
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.prophecy-no-results td {
    padding: 35px 20px !important;

    text-align: center;
}

.prophecy-no-results-message {
    color: #aaa;

    line-height: 1.7;
}

.prophecy-no-results-message strong {
    display: block;

    margin-bottom: 5px;

    color: #d4af37;

    font-size: 1.05rem;
}

.prophecy-no-results-message span {
    display: block;
}


/* =========================================================
   LOAD ERROR
   ========================================================= */

.prophecy-error {
    max-width: 700px;

    margin: 25px auto;
    padding: 16px 18px;

    color: #e1c56c;
    background: rgba(212, 175, 55, 0.06);

    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;

    text-align: center;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination-wrapper {
    display: flex;

    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 28px;
}

.pagination-wrapper[hidden] {
    display: none;
}

.pagination-wrapper button {
    min-width: 39px;
    min-height: 39px;

    padding: 8px 12px;

    background: #111;
    color: #c9c9c9;

    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 7px;

    font-family: inherit;
    font-size: 0.9rem;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.pagination-wrapper button:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.1);

    color: #d4af37;

    border-color: #d4af37;
}

.pagination-wrapper button.active,
.pagination-wrapper button[aria-current="page"] {
    background: #d4af37;

    color: #090909;

    border-color: #d4af37;

    font-weight: 700;
}

.pagination-wrapper button:disabled {
    opacity: 0.35;

    cursor: default;
}

.pagination-nav {
    padding-left: 15px !important;
    padding-right: 15px !important;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.prophecies-back-top {
    margin-top: 42px;

    text-align: center;
}

.prophecies-back-top a {
    display: inline-block;

    padding: 10px 18px;

    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.prophecies-back-top a:hover {
    background: #d4af37;

    color: #080808;

    border-color: #d4af37;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .prophecies-section {
        padding: 25px 16px 50px;
    }

    .prophecy-table th,
    .prophecy-row td {
        padding-left: 11px;
        padding-right: 11px;
    }

    .prophecy-table th:nth-child(1),
    .prophecy-table td:nth-child(1) {
        width: 6%;
    }

    .prophecy-table th:nth-child(2),
    .prophecy-table td:nth-child(2) {
        width: 21%;
    }

    .prophecy-table th:nth-child(3),
    .prophecy-table td:nth-child(3) {
        width: 39%;
    }

    .prophecy-table th:nth-child(4),
    .prophecy-table td:nth-child(4) {
        width: 34%;
    }

}


/* =========================================================
   IPHONE / MOBILE
   TABLE BECOMES PROPHECY CARDS
   ========================================================= */

@media (max-width: 650px) {

    .prophecies-section {
        padding: 20px 12px 45px;
    }


    /* -----------------------------------------------------
       Main heading
       ----------------------------------------------------- */

    .prophecies-heading {
        margin-bottom: 30px;
    }

    .prophecies-heading h1 {
        font-size: 2rem;
    }

    .prophecies-intro {
        font-size: 0.96rem;
        line-height: 1.7;
    }


    /* -----------------------------------------------------
       Search
       ----------------------------------------------------- */

    .prophecy-search-section {
        margin-bottom: 28px;
    }

    .prophecy-search-box {
        padding: 13px 14px;

        font-size: 16px;
    }


    /* -----------------------------------------------------
       Remove desktop table shell
       ----------------------------------------------------- */

    .prophecy-table-wrapper {
        border: none;
        border-radius: 0;

        background: transparent;

        box-shadow: none;

        overflow: visible;
    }

    .prophecy-table,
    .prophecy-table tbody {
        display: block;

        width: 100%;
    }


    /*
       Desktop column headings are unnecessary because
       every mobile field receives its own label.
    */

    .prophecy-table thead {
        display: none;
    }


    /* -----------------------------------------------------
       Book divider
       ----------------------------------------------------- */

    .prophecy-table .section-divider {
        display: block;

        margin: 28px 0 12px;

        background: transparent;
    }

    .prophecy-table .section-divider:first-child {
        margin-top: 0;
    }

    .prophecy-table .section-divider td {
        display: block;

        width: 100% !important;
        box-sizing: border-box;

        padding: 9px 4px;

        color: #d4af37;

        background: transparent;

        border-top: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.4);

        font-size: 0.83rem;
        letter-spacing: 0.15em;
    }


    /* -----------------------------------------------------
       Each prophecy row becomes a card
       ----------------------------------------------------- */

    .prophecy-row,
    .prophecy-row:nth-of-type(even) {
        position: relative;

        display: block;

        width: 100%;
        box-sizing: border-box;

        margin-bottom: 13px;
        padding: 18px;

        background:
            linear-gradient(
                145deg,
                #151515 0%,
                #0b0b0b 100%
            );

        border: 1px solid rgba(212, 175, 55, 0.4);
        border-radius: 10px;

        box-shadow:
            0 5px 18px rgba(0, 0, 0, 0.32);

        overflow: hidden;
    }


    /* Gold accent */

    .prophecy-row::before {
        content: "";

        position: absolute;
        top: 0;
        left: 18px;
        right: 18px;

        height: 2px;

        background:
            linear-gradient(
                90deg,
                transparent,
                #d4af37,
                transparent
            );
    }

    .prophecy-row:hover {
        background:
            linear-gradient(
                145deg,
                #151515 0%,
                #0b0b0b 100%
            );
    }


    /* -----------------------------------------------------
       Mobile cells
       ----------------------------------------------------- */

    .prophecy-row td {
        display: block;

        width: 100% !important;
        box-sizing: border-box;

        padding: 0;

        border: none;

        text-align: left;
    }


    /* Number */

    .prophecy-row .prophecy-number {
        margin-bottom: 13px;

        color: #7f7f7f;

        font-size: 0.76rem !important;
    }


    /* Labels created from data-label attributes */

    .prophecy-row td:not(.prophecy-number)::before {
        content: attr(data-label);

        display: block;

        margin: 0 0 4px;

        color: #8e7a37;

        font-size: 0.68rem;
        font-weight: 700;

        letter-spacing: 0.12em;
        text-transform: uppercase;
    }


    /* OT */

    .prophecy-row .prophecy-ot {
        margin-bottom: 15px;

        color: #d4af37;

        font-size: 0.96rem;
        font-weight: 600;

        line-height: 1.55;
    }


    /* Theme is the centerpiece */

    .prophecy-row .prophecy-theme {
        margin-bottom: 16px;

        color: #f4f1e8;

        font-size: 1.08rem;
        font-weight: 600;

        line-height: 1.55;
    }


    /* Fulfillment */

    .prophecy-row .prophecy-nt {
        padding-top: 14px;

        color: #cfcfcf;

        border-top: 1px solid rgba(212, 175, 55, 0.15);

        font-size: 0.95rem;

        line-height: 1.6;
    }


    /* -----------------------------------------------------
       No results
       ----------------------------------------------------- */

    .prophecy-no-results {
        display: block;
    }

    .prophecy-no-results td {
        display: block;

        width: 100% !important;

        padding: 25px 15px !important;

        background: #101010;

        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 10px;
    }


    /* -----------------------------------------------------
       Pagination
       ----------------------------------------------------- */

    .pagination-wrapper {
        gap: 6px;

        margin-top: 24px;
    }

    .pagination-wrapper button {
        min-width: 37px;
        min-height: 37px;

        padding: 7px 10px;

        font-size: 0.86rem;
    }

    .pagination-nav {
        flex-basis: auto;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .prophecies-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .prophecies-heading h1 {
        font-size: 1.75rem;
    }

    .prophecy-row,
    .prophecy-row:nth-of-type(even) {
        padding: 16px 15px;
    }

    .pagination-wrapper button {
        min-width: 35px;
        padding-left: 8px;
        padding-right: 8px;
    }

}

/* =========================================================
   FYITK CHAPTER READER
   ========================================================= */

.chapter-reader {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
    color: #d6d6d6;
}


/* =========================================================
   BOOK HEADER
   ========================================================= */

.chapter-reader-book-header {
    max-width: 850px;
    margin: 0 auto 30px;
    text-align: center;
}

.chapter-reader-eyebrow {
    display: block;
    margin-bottom: 8px;

    color: #d4af37;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.chapter-reader-book-header h1 {
    margin: 0 0 10px;

    color: #d4af37;

    font-family: inherit;
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 600;
    line-height: 1.15;

    text-align: center;
    text-shadow: none;
}

.chapter-reader-book-header p {
    margin: 0;

    color: #aaa;

    font-size: 1rem;
    line-height: 1.6;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.chapter-reader-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    margin: 0 auto 25px;
}

.chapter-reader-toc-toggle,
.chapter-reader-library-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 42px;
    box-sizing: border-box;

    padding: 9px 17px;

    background: #101010;
    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.48);
    border-radius: 8px;

    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;

    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.chapter-reader-toc-toggle:hover,
.chapter-reader-library-link:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #efd66d;
    border-color: #d4af37;
}


/* =========================================================
   TABLE OF CONTENTS PANEL
   ========================================================= */

.chapter-reader-toc-panel {
    max-width: 850px;
    margin: 0 auto 28px;
    padding: 22px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #161616 0%,
            #0b0b0b 100%
        );

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.38);
}

.chapter-reader-toc-panel[hidden] {
    display: none;
}

.chapter-reader-toc-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    padding-bottom: 15px;
    margin-bottom: 13px;

    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.chapter-reader-toc-eyebrow {
    display: block;
    margin-bottom: 4px;

    color: #8f7934;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.chapter-reader-toc-heading h2 {
    margin: 0;

    color: #f4f1e8;

    font-family: inherit;
    font-size: 1.35rem;
    font-weight: 600;

    text-align: left;
    text-shadow: none;
}

.chapter-reader-toc-close {
    flex: 0 0 auto;

    width: 36px;
    height: 36px;

    padding: 0;

    background: transparent;
    color: #aaa;

    border: 1px solid rgba(212, 175, 55, 0.27);
    border-radius: 7px;

    font-size: 1.4rem;
    line-height: 1;

    cursor: pointer;
}

.chapter-reader-toc-close:hover {
    color: #d4af37;
    border-color: #d4af37;
}


/* =========================================================
   TABLE OF CONTENTS ITEMS
   ========================================================= */

.chapter-reader-toc {
    list-style: none;

    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 7px;
}

.chapter-reader-toc li {
    margin: 0;
}

.chapter-toc-button {
    display: block;

    width: 100%;
    height: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

    background: transparent;
    color: #c4c4c4;

    border: 1px solid transparent;
    border-radius: 7px;

    font-family: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.chapter-toc-button:hover {
    background: rgba(212, 175, 55, 0.055);
    border-color: rgba(212, 175, 55, 0.25);
}

.chapter-toc-button.active,
.chapter-toc-button[aria-current="true"] {
    background: rgba(212, 175, 55, 0.09);
    border-color: rgba(212, 175, 55, 0.55);
}

.chapter-toc-title {
    display: block;

    color: #d4af37;

    font-size: 0.83rem;
    font-weight: 700;

    letter-spacing: 0.05em;
}

.chapter-toc-subtitle {
    display: block;

    margin-top: 3px;

    color: #aaa;

    font-size: 0.86rem;
    line-height: 1.4;
}


/* =========================================================
   LOADING / ERROR STATUS
   ========================================================= */

.chapter-reader-status {
    max-width: 800px;

    margin: 30px auto;
    padding: 25px;

    color: #bcbcbc;

    text-align: center;

    background: #101010;

    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 10px;
}

.chapter-reader-status[hidden] {
    display: none;
}

.chapter-reader-error {
    color: #e0c465;
}


/* =========================================================
   CHAPTER CONTENT PANEL
   ========================================================= */

.chapter-reader-content {
    max-width: 860px;

    margin: 0 auto;
    padding: 42px 46px 50px;

    box-sizing: border-box;

    background:
        linear-gradient(
            180deg,
            #151515 0%,
            #101010 100%
        );

    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 14px;

    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.chapter-reader-content[hidden] {
    display: none;
}


/* =========================================================
   CHAPTER HEADING
   ========================================================= */

.chapter-heading {
    position: relative;

    margin-bottom: 34px;
    padding-bottom: 25px;

    text-align: center;

    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.chapter-heading::after {
    content: "";

    position: absolute;

    bottom: -1px;
    left: 37%;
    right: 37%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}

.chapter-position {
    margin: 0 0 10px;

    color: #87732f;

    font-size: 0.72rem;
    font-weight: 700;

    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.chapter-heading h2 {
    margin: 0;

    color: #d4af37;

    font-family: inherit;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;

    line-height: 1.25;

    text-align: center;
    text-shadow: none;
}

.chapter-subtitle {
    margin: 8px 0 0;

    color: #eee9dc;

    font-size: 1.25rem;
    line-height: 1.45;
}

.chapter-subtitle[hidden] {
    display: none;
}


/* =========================================================
   MANUSCRIPT BODY
   ========================================================= */

.chapter-body {
    color: #d0d0d0;

    font-size: 1.04rem;
    line-height: 1.85;

    overflow-wrap: break-word;
}

.chapter-body p {
    margin: 0 0 1.25em;

    color: inherit;

    font-size: inherit;
    line-height: inherit;
}

.chapter-body p:last-child {
    margin-bottom: 0;
}

.chapter-body strong {
    color: #eee9dc;
    font-weight: 600;
}

.chapter-body em {
    color: #ddd5c2;
}

.chapter-body a {
    color: #d4af37;
}

.chapter-body h1,
.chapter-body h2,
.chapter-body h3,
.chapter-body h4,
.chapter-body h5,
.chapter-body h6 {
    margin: 2em 0 0.75em;

    color: #d4af37;

    font-family: inherit;
    font-weight: 600;

    line-height: 1.35;

    text-align: left;
    text-shadow: none;
}

.chapter-body h3 {
    font-size: 1.35rem;
}

.chapter-body h4 {
    font-size: 1.2rem;
}


/*
   Many manuscript subheads are exported as paragraphs
   containing only a STRONG element. Give them visual weight
   without altering the underlying chapter files.
*/

.chapter-body p > strong:only-child {
    color: #d4af37;
}


/* =========================================================
   LISTS
   ========================================================= */

.chapter-body ul,
.chapter-body ol {
    margin: 1.2em 0 1.4em;
    padding-left: 1.7em;
}

.chapter-body li {
    margin-bottom: 0.7em;
    line-height: 1.7;
}


/* =========================================================
   TABLES INSIDE BOOK
   ========================================================= */

.chapter-body table {
    width: 100%;

    margin: 24px 0;

    border-collapse: collapse;

    color: #d0d0d0;

    font-size: 0.92rem;
}

.chapter-body th,
.chapter-body td {
    padding: 10px 12px;

    border: 1px solid rgba(212, 175, 55, 0.25);

    vertical-align: top;
}

.chapter-body th {
    background: rgba(212, 175, 55, 0.08);
    color: #d4af37;

    font-weight: 600;
}


/* =========================================================
   IMAGES THAT REMAIN IN CHAPTERS
   ========================================================= */

.chapter-body img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 25px auto;

    border-radius: 8px;
}


/* =========================================================
   BLOCKQUOTES
   ========================================================= */

.chapter-body blockquote {
    margin: 25px 0;
    padding: 17px 20px;

    background: rgba(212, 175, 55, 0.05);

    color: #ddd7c8;

    border: none;
    border-left: 3px solid #d4af37;
    border-radius: 0 8px 8px 0;

    box-shadow: none;

    font-family: inherit;
    font-style: italic;

    max-width: none;
}


/* =========================================================
   CHAPTER NAVIGATION
   ========================================================= */

.chapter-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;

    gap: 15px;

    max-width: 860px;
    margin: 24px auto 0;
}

.chapter-navigation[hidden] {
    display: none;
}

.chapter-navigation-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    gap: 7px;

    min-height: 44px;

    padding: 10px 16px;

    background: #101010;
    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;

    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.chapter-navigation-button:first-child {
    justify-self: start;
}

.chapter-navigation-button:last-child {
    justify-self: end;
}

.chapter-navigation-button:hover:not(:disabled) {
    background: #d4af37;
    color: #080808;

    border-color: #d4af37;
}

.chapter-navigation-button:disabled {
    opacity: 0.3;
    cursor: default;
}

.chapter-navigation-position {
    color: #888;

    font-size: 0.83rem;
    white-space: nowrap;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.chapter-reader-back-top {
    margin-top: 38px;

    text-align: center;
}

.chapter-reader-back-top a {
    display: inline-block;

    padding: 9px 16px;

    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;

    text-decoration: none;
}

.chapter-reader-back-top a:hover {
    background: #d4af37;
    color: #080808;
}


/* =========================================================
   FOCUS VISIBILITY
   ========================================================= */

.chapter-reader button:focus-visible,
.chapter-reader a:focus-visible {
    outline: 2px solid #efd66d;
    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .chapter-reader {
        padding: 25px 16px 50px;
    }

    .chapter-reader-content {
        padding: 35px 32px 42px;
    }

}


/* =========================================================
   IPHONE / MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .chapter-reader {
        padding: 20px 12px 45px;
    }


    /* Book identity */

    .chapter-reader-book-header {
        margin-bottom: 23px;
    }

    .chapter-reader-book-header h1 {
        font-size: 2rem;
    }


    /* Toolbar */

    .chapter-reader-toolbar {
        width: 100%;

        gap: 9px;
    }

    .chapter-reader-toc-toggle,
    .chapter-reader-library-link {
        flex: 1;

        padding-left: 12px;
        padding-right: 12px;
    }


    /* Contents */

    .chapter-reader-toc-panel {
        padding: 18px 14px;

        border-radius: 10px;
    }

    .chapter-reader-toc {
        grid-template-columns: 1fr;

        gap: 5px;
    }

    .chapter-toc-button {
        padding: 11px;
    }


    /* Main manuscript */

    .chapter-reader-content {
        padding: 28px 18px 34px;

        border-radius: 10px;
    }

    .chapter-heading {
        margin-bottom: 26px;
        padding-bottom: 21px;
    }

    .chapter-heading h2 {
        font-size: 1.75rem;
    }

    .chapter-subtitle {
        font-size: 1.08rem;
    }

    .chapter-body {
        font-size: 1rem;
        line-height: 1.78;
    }

    .chapter-body p {
        margin-bottom: 1.15em;
    }


    /* Tables can scroll horizontally instead of crushing
       their content on a narrow phone. */

    .chapter-body table {
        display: block;

        max-width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;
    }


    /* Navigation becomes two rows */

    .chapter-navigation {
        grid-template-columns: 1fr 1fr;

        gap: 9px;
    }

    .chapter-navigation-position {
        grid-column: 1 / -1;
        grid-row: 1;

        justify-self: center;

        margin-bottom: 2px;
    }

    .chapter-navigation-button:first-child {
        grid-column: 1;
        grid-row: 2;

        justify-self: stretch;
    }

    .chapter-navigation-button:last-child {
        grid-column: 2;
        grid-row: 2;

        justify-self: stretch;
    }

    .chapter-navigation-button {
        width: 100%;

        padding: 10px 8px;

        font-size: 0.84rem;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .chapter-reader {
        padding-left: 10px;
        padding-right: 10px;
    }

    .chapter-reader-book-header h1 {
        font-size: 1.75rem;
    }

    .chapter-reader-content {
        padding: 25px 15px 30px;
    }

    .chapter-body {
        font-size: 0.97rem;
    }

    .chapter-navigation-button {
        font-size: 0.79rem;
    }

}

/* =========================================================
   FYITK BOOKS LIBRARY
   ========================================================= */

.books-library {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}


/* =========================================================
   LIBRARY HEADER
   ========================================================= */

.books-library-header {
    max-width: 820px;
    margin: 0 auto 45px;
    text-align: center;
}

.books-library-eyebrow {
    display: block;
    margin-bottom: 8px;

    color: #d4af37;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.books-library-header h1 {
    margin: 0 0 15px;

    color: #d4af37;

    font-family: inherit;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 600;
    line-height: 1.15;

    text-align: center;
    text-shadow: none;
}

.books-library-header p {
    max-width: 700px;
    margin: 0 auto;

    color: #c9c9c9;

    font-size: 1.05rem;
    line-height: 1.75;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.books-library-section {
    width: 100%;
}

.books-library-section-heading {
    margin-bottom: 25px;
    text-align: center;
}

.books-library-section-heading > span {
    display: block;
    margin-bottom: 6px;

    color: #9b8435;

    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.books-library-section-heading h2 {
    margin: 0;

    color: #f4f1e8;

    font-family: inherit;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 600;
    line-height: 1.3;

    text-align: center;
    text-shadow: none;
}


/* =========================================================
   BOOK GRID
   ========================================================= */

.books-library-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 22px;

    width: 100%;
}


/*
   While only one book exists, allow it to occupy a
   generous centered position rather than sitting awkwardly
   in half the library.
*/

.books-library-grid > .library-book-card:only-child {
    grid-column: 1 / -1;

    width: 100%;
    max-width: 820px;

    justify-self: center;
}


/* =========================================================
   BOOK CARD
   ========================================================= */

.library-book-card {
    position: relative;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #171717 0%,
            #0b0b0b 100%
        );

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 14px;

    box-shadow:
        0 9px 28px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.library-book-card:hover {
    transform: translateY(-3px);

    border-color: rgba(212, 175, 55, 0.75);

    box-shadow:
        0 13px 32px rgba(0, 0, 0, 0.48),
        0 0 18px rgba(212, 175, 55, 0.07);
}


/* =========================================================
   GOLD CARD ACCENT
   ========================================================= */

.library-book-accent {
    height: 3px;
    width: 100%;

    background:
        linear-gradient(
            90deg,
            transparent 3%,
            #8e7629 25%,
            #d4af37 50%,
            #8e7629 75%,
            transparent 97%
        );
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.library-book-content {
    padding: 31px 32px 32px;
}

.library-book-label {
    display: inline-block;

    margin-bottom: 12px;

    color: #d4af37;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.library-book-card h3 {
    margin: 0 0 15px;

    color: #f4f1e8;

    font-family: inherit;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.3;

    text-align: left;
    text-shadow: none;
}

.library-book-description {
    max-width: 680px;
    margin: 0 0 25px;

    color: #c5c5c5;

    font-size: 1rem;
    line-height: 1.75;
}


/* =========================================================
   BOOK DETAILS
   ========================================================= */

.library-book-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin: 0 0 27px;
    padding: 18px 0;

    border-top: 1px solid rgba(212, 175, 55, 0.17);
    border-bottom: 1px solid rgba(212, 175, 55, 0.17);
}

.library-book-detail {
    min-width: 0;
}

.library-detail-label {
    display: block;

    margin-bottom: 4px;

    color: #83702e;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.library-detail-value {
    display: block;

    color: #ddd7c9;

    font-size: 0.9rem;
    line-height: 1.45;
}


/* =========================================================
   BOOK ACTIONS
   ========================================================= */

.library-book-actions {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}

.library-primary-button,
.library-secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 44px;
    box-sizing: border-box;

    padding: 10px 19px;

    border-radius: 8px;

    font-size: 0.91rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* Primary */

.library-primary-button {
    background: #d4af37;

    color: #090909;

    border: 1px solid #d4af37;
}

.library-primary-button:hover {
    background: #e1c350;

    color: #050505;

    border-color: #e1c350;

    transform: translateY(-1px);
}


/* Secondary */

.library-secondary-button {
    background: transparent;

    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.48);
}

.library-secondary-button:hover {
    background: rgba(212, 175, 55, 0.08);

    color: #efd66d;

    border-color: #d4af37;

    transform: translateY(-1px);
}


/* =========================================================
   LIBRARY NOTE
   ========================================================= */

.books-library-note {
    position: relative;

    max-width: 760px;

    margin: 50px auto 0;
    padding: 24px 28px;

    background: rgba(212, 175, 55, 0.045);

    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 11px;

    text-align: center;
}

.books-library-note::before {
    content: "";

    position: absolute;

    top: 0;
    left: 25%;
    right: 25%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}

.books-library-note-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #d4af37;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.books-library-note p {
    margin: 0;

    color: #bcbcbc;

    font-size: 0.97rem;
    line-height: 1.7;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.books-library-back-top {
    margin-top: 38px;

    text-align: center;
}

.books-library-back-top a {
    display: inline-block;

    padding: 9px 16px;

    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.books-library-back-top a:hover {
    background: #d4af37;
    color: #080808;

    border-color: #d4af37;
}


/* =========================================================
   KEYBOARD FOCUS
   ========================================================= */

.books-library a:focus-visible {
    outline: 2px solid #efd66d;
    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .books-library {
        padding: 25px 16px 50px;
    }

    .library-book-content {
        padding: 27px 25px 28px;
    }

}


/* =========================================================
   IPHONE / MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .books-library {
        padding: 20px 12px 45px;
    }


    /* Header */

    .books-library-header {
        margin-bottom: 34px;
    }

    .books-library-header h1 {
        font-size: 2rem;
    }

    .books-library-header p {
        font-size: 0.96rem;
        line-height: 1.7;
    }


    /* One book per row */

    .books-library-grid {
        grid-template-columns: 1fr;

        gap: 14px;
    }

    .books-library-grid > .library-book-card:only-child {
        grid-column: auto;
    }


    /* Card */

    .library-book-card {
        border-radius: 10px;
    }

    .library-book-card:hover {
        transform: none;
    }

    .library-book-content {
        padding: 24px 18px 22px;
    }

    .library-book-card h3 {
        font-size: 1.5rem;
    }

    .library-book-description {
        font-size: 0.96rem;
        line-height: 1.7;
    }


    /* Details */

    .library-book-details {
        grid-template-columns: 1fr;

        gap: 13px;

        padding: 16px 0;
        margin-bottom: 22px;
    }


    /* Buttons stack for easy tapping */

    .library-book-actions {
        display: grid;
        grid-template-columns: 1fr;

        width: 100%;
    }

    .library-primary-button,
    .library-secondary-button {
        width: 100%;
    }


    /* Closing note */

    .books-library-note {
        margin-top: 38px;

        padding: 21px 17px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .books-library {
        padding-left: 10px;
        padding-right: 10px;
    }

    .books-library-header h1 {
        font-size: 1.8rem;
    }

    .library-book-content {
        padding-left: 15px;
        padding-right: 15px;
    }

}

/* =========================================================
   FYITK ABOUT PAGE
   ========================================================= */

.fyitk-about {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.about-hero {
    max-width: 880px;
    margin: 0 auto 55px;
    text-align: center;
}

.about-eyebrow {
    display: block;
    margin-bottom: 10px;

    color: #d4af37;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.about-hero h1 {
    margin: 0 0 12px;

    color: #d4af37;

    font-family: inherit;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;

    text-align: center;
    text-shadow: none;
}

.about-hero-secondary {
    margin: 0 0 26px;

    color: #eee9dc;

    font-size: clamp(1.05rem, 3vw, 1.35rem);
    line-height: 1.5;
}

.about-hero-statement {
    display: inline-block;

    margin: 0;
    padding: 15px 24px;

    color: #bcbcbc;
    background: rgba(212, 175, 55, 0.045);

    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);

    font-size: 1.03rem;
    line-height: 1.6;
}

.about-hero-statement strong {
    color: #d4af37;
}


/* =========================================================
   SHARED PANELS
   ========================================================= */

.about-panel {
    max-width: 900px;

    margin: 0 auto 32px;
    padding: 31px 34px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            #161616 0%,
            #0b0b0b 100%
        );

    border: 1px solid rgba(212, 175, 55, 0.36);
    border-radius: 13px;

    box-shadow:
        0 8px 27px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


/* =========================================================
   PANEL HEADING
   ========================================================= */

.about-panel-heading {
    display: flex;
    align-items: flex-start;

    gap: 16px;

    margin-bottom: 24px;
    padding-bottom: 18px;

    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.about-panel-number {
    display: flex;
    justify-content: center;
    align-items: center;

    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    color: #090909;
    background: #d4af37;

    border-radius: 50%;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.about-panel-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #9d8532;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.about-panel-heading h2 {
    margin: 0;

    color: #f4f1e8;

    font-family: inherit;
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    font-weight: 600;
    line-height: 1.3;

    text-align: left;
    text-shadow: none;
}


/* =========================================================
   ABOUT PROSE
   ========================================================= */

.about-prose {
    color: #cecece;
}

.about-prose p {
    margin: 0 0 20px;

    color: inherit;

    font-size: 1.02rem;
    line-height: 1.82;
}

.about-prose p:last-child {
    margin-bottom: 0;
}

.about-prose strong {
    color: #eee9dc;
}


/* =========================================================
   SCRIPTURE QUOTATIONS
   ========================================================= */

.about-scripture {
    position: relative;

    max-width: 720px;

    margin: 28px auto;
    padding: 22px 24px;

    box-sizing: border-box;

    background: rgba(212, 175, 55, 0.05);

    border: none;
    border-left: 3px solid #d4af37;
    border-radius: 0 9px 9px 0;

    box-shadow: none;

    font-family: inherit;
    font-style: normal;
}

.about-scripture p {
    margin: 0;

    color: #eee9dc;

    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.75;
}

.about-scripture cite {
    display: block;

    margin-top: 11px;

    color: #d4af37;

    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;

    text-align: right;
}


/* =========================================================
   Q.E.S.T.
   ========================================================= */

.about-quest {
    max-width: 1000px;

    margin: 55px auto 60px;
}

.about-quest-heading {
    margin-bottom: 28px;

    text-align: center;
}

.about-quest-heading h2 {
    margin: 0 0 7px;

    color: #d4af37;

    font-family: inherit;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;

    text-align: center;
    text-shadow: none;
}

.about-quest-definition {
    margin: 0;

    color: #eee9dc;

    font-size: 1.15rem;
    line-height: 1.5;
}

.about-quest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;
}

.about-quest-card {
    position: relative;

    padding: 25px 22px;

    background:
        linear-gradient(
            145deg,
            #161616,
            #0c0c0c
        );

    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 11px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.34);

    overflow: hidden;
}

.about-quest-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 17px;
    right: 17px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}

.about-quest-step {
    display: block;

    margin-bottom: 10px;

    color: #87722d;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.about-quest-card h3 {
    margin: 0 0 10px;

    color: #d4af37;

    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 600;

    text-align: left;
    text-shadow: none;
}

.about-quest-card p {
    margin: 0;

    color: #bdbdbd;

    font-size: 0.95rem;
    line-height: 1.7;
}


/* =========================================================
   EDITORIAL PRINCIPLE
   ========================================================= */

.about-quest-principle {
    max-width: 620px;

    margin: 26px auto 0;
    padding: 19px 22px;

    background: rgba(212, 175, 55, 0.05);

    border-top: 1px solid rgba(212, 175, 55, 0.3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);

    text-align: center;
}

.about-quest-principle span {
    display: block;

    margin-bottom: 5px;

    color: #8d7832;

    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.about-quest-principle strong {
    color: #eee9dc;

    font-size: 1.08rem;
    font-weight: 600;
}


/* =========================================================
   RESOURCES
   ========================================================= */

.about-resources {
    margin: 0 auto 60px;
}

.about-section-heading {
    max-width: 760px;

    margin: 0 auto 28px;

    text-align: center;
}

.about-section-heading h2 {
    margin: 0 0 10px;

    color: #f4f1e8;

    font-family: inherit;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 600;

    text-align: center;
    text-shadow: none;
}

.about-section-heading p {
    margin: 0;

    color: #aaa;

    font-size: 0.98rem;
    line-height: 1.65;
}

.about-resources-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.about-resource-card {
    position: relative;

    padding: 23px 20px;

    box-sizing: border-box;

    background: #101010;

    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.about-resource-card:hover {
    transform: translateY(-2px);

    background: #131313;

    border-color: rgba(212, 175, 55, 0.6);
}

.about-resource-number {
    display: inline-block;

    margin-bottom: 9px;

    color: #806d2d;

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.about-resource-card h3 {
    margin: 0 0 9px;

    color: #d4af37;

    font-family: inherit;
    font-size: 1.12rem;
    font-weight: 600;

    text-align: left;
    text-shadow: none;
}

.about-resource-card p {
    margin: 0;

    color: #b8b8b8;

    font-size: 0.91rem;
    line-height: 1.65;
}


/* =========================================================
   INVITATION
   ========================================================= */

.about-invitation {
    position: relative;

    max-width: 940px;

    margin: 0 auto 45px;
    padding: 38px 32px;

    box-sizing: border-box;

    background:
        linear-gradient(
            145deg,
            rgba(33, 27, 12, 0.75),
            #0d0d0d 55%
        );

    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.42);

    text-align: center;

    overflow: hidden;
}

.about-invitation::before {
    content: "";

    position: absolute;

    top: 0;
    left: 10%;
    right: 10%;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}

.about-invitation h2 {
    margin: 7px 0 8px;

    color: #f4f1e8;

    font-family: inherit;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;

    text-align: center;
    text-shadow: none;
}

.about-invitation h2 span {
    color: #d4af37;
}

.about-invitation-lead {
    margin: 0 0 30px;

    color: #c4c4c4;

    font-size: 1.05rem;
    line-height: 1.65;
}


/* =========================================================
   INVESTIGATIVE PATH
   ========================================================= */

.about-path {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.about-path-item {
    padding: 16px 12px;

    background: rgba(0, 0, 0, 0.24);

    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

.about-path-item span {
    display: block;

    margin-bottom: 5px;

    color: #776525;

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.about-path-item strong {
    display: block;

    color: #ddd8cb;

    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}


/* =========================================================
   CLOSING
   ========================================================= */

.about-closing {
    max-width: 760px;

    margin: 0 auto;

    text-align: center;
}

.about-closing-warning {
    margin: 0 0 7px;

    color: #eee9dc;

    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.6;
}

.about-closing cite {
    color: #d4af37;

    font-size: 0.85rem;
    font-style: normal;
}

.about-closing-divider {
    width: 120px;
    height: 1px;

    margin: 24px auto;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d4af37,
            transparent
        );
}

.about-closing-urgency {
    margin: 0 0 10px;

    color: #bdbdbd;

    font-size: 1rem;
    line-height: 1.6;
}

.about-closing-urgency strong {
    color: #eee9dc;
}

.about-closing-motto {
    margin: 0;

    color: #d4af37;

    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */

.about-back-top {
    margin-top: 40px;

    text-align: center;
}

.about-back-top a {
    display: inline-block;

    padding: 9px 16px;

    color: #d4af37;

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 8px;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.about-back-top a:hover {
    background: #d4af37;

    color: #080808;

    border-color: #d4af37;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .fyitk-about {
        padding: 25px 16px 50px;
    }

    .about-resources-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   IPHONE / MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .fyitk-about {
        padding: 20px 12px 45px;
    }


    /* Hero */

    .about-hero {
        margin-bottom: 38px;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero-secondary {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .about-hero-statement {
        display: block;

        padding: 13px 10px;

        font-size: 0.94rem;
    }


    /* Foundation panels */

    .about-panel {
        padding: 23px 18px;

        border-radius: 10px;
    }

    .about-panel-heading {
        gap: 11px;

        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .about-panel-number {
        width: 32px;
        height: 32px;

        font-size: 0.65rem;
    }

    .about-panel-heading h2 {
        font-size: 1.45rem;
    }

    .about-prose p {
        font-size: 0.97rem;
        line-height: 1.75;
    }


    /* Scripture */

    .about-scripture {
        margin: 23px 0;
        padding: 18px 17px;
    }

    .about-scripture p {
        font-size: 1rem;
        line-height: 1.7;
    }


    /* QEST */

    .about-quest {
        margin-top: 45px;
        margin-bottom: 48px;
    }

    .about-quest-heading h2 {
        font-size: 2rem;
    }

    .about-quest-definition {
        font-size: 1rem;
    }

    .about-quest-grid {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .about-quest-card {
        padding: 20px 18px;
    }


    /* Resources */

    .about-resources {
        margin-bottom: 48px;
    }

    .about-resources-grid {
        grid-template-columns: 1fr;

        gap: 11px;
    }

    .about-resource-card {
        padding: 20px 18px;
    }

    .about-resource-card:hover {
        transform: none;
    }


    /* Invitation */

    .about-invitation {
        padding: 29px 17px;

        border-radius: 11px;
    }

    .about-invitation h2 {
        font-size: 1.65rem;
    }

    .about-invitation-lead {
        font-size: 0.97rem;
    }

    .about-path {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .about-path-item {
        padding: 13px 12px;
    }

}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .fyitk-about {
        padding-left: 10px;
        padding-right: 10px;
    }

    .about-hero h1 {
        font-size: 1.8rem;
    }

    .about-panel {
        padding-left: 15px;
        padding-right: 15px;
    }

    .about-invitation {
        padding-left: 14px;
        padding-right: 14px;
    }

}

/* =========================================================
   FYITK BOOKS — READING ROOM SAMPLE
   ========================================================= */

.book-sample {
    width: 100%;
    max-width: 820px;

    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;

    box-sizing: border-box;

    color: var(--fyitk-text);
}


/* =========================================================
   BOOK SAMPLE HEADER
   ========================================================= */

.book-sample-header {
    text-align: center;

    margin: 0 0 2.75rem;
    padding: 0 0 1.75rem;

    border-bottom: 1px solid rgba(212, 175, 55, 0.55);
}

.book-sample-label {
    margin: 0 0 0.6rem;

    color: var(--fyitk-gold);

    font-size: 0.78rem;
    line-height: 1.4;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.book-sample-header h1 {
    margin: 0;

    color: var(--fyitk-text);

    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;

    font-weight: 600;
}


/* =========================================================
   BEFORE WE BEGIN
   ========================================================= */

.book-sample-intro {
    max-width: 700px;

    margin: 0 auto 4rem;

    text-align: center;
}

.book-sample-intro h2 {
    margin: 0 0 1.75rem;

    color: var(--fyitk-gold);

    font-size: 1.35rem;
    font-weight: 600;

    letter-spacing: 0.04em;
}

.book-sample-intro p {
    margin: 0 0 1.15rem;

    font-size: 1.06rem;
    line-height: 1.75;
}


/* =========================================================
   READER EMPHASIS
   ========================================================= */

.reader-emphasis {
    margin: 1.75rem auto !important;

    color: var(--fyitk-text);

    font-size: 1.22rem !important;
    line-height: 1.6 !important;

    text-align: center;
}

.reader-emphasis strong {
    font-weight: 600;
}


/* =========================================================
   INVESTIGATION INVITATION
   ========================================================= */

.investigation-invitation {
    position: relative;

    max-width: 520px;

    margin: 2.75rem auto 0;
    padding: 1.7rem 2rem;

    border-top: 1px solid rgba(212, 175, 55, 0.65);
    border-bottom: 1px solid rgba(212, 175, 55, 0.65);

    text-align: center;
}

.investigation-invitation p {
    margin: 0.25rem 0;

    font-size: 1.11rem;
}

.investigation-invitation strong {
    color: var(--fyitk-gold);

    font-size: 1.2rem;
}


/* =========================================================
   CHAPTER
   ========================================================= */

.book-chapter {
    max-width: 720px;

    margin: 0 auto;
}

.chapter-header {
    margin: 0 0 3rem;

    text-align: center;
}

.chapter-number {
    margin: 0 0 0.55rem;

    color: var(--fyitk-gold);

    font-size: 0.82rem;
    line-height: 1.4;

    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.chapter-header h2 {
    margin: 0;

    color: var(--fyitk-text);

    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.08;

    font-weight: 600;
    letter-spacing: 0.04em;
}

.chapter-subtitle {
    margin: 0.7rem 0 0;

    color: var(--fyitk-text-soft);

    font-size: 1.08rem;
    line-height: 1.4;

    font-style: italic;
}


/* =========================================================
   CHAPTER BODY
   ========================================================= */

.book-chapter > p {
    margin: 0 0 1.45rem;

    font-size: 1.08rem;
    line-height: 1.82;

    text-align: left;
}

.book-chapter sup {
    color: var(--fyitk-gold);

    font-size: 0.68em;

    vertical-align: super;
}

.book-chapter em {
    font-style: italic;
}


/* =========================================================
   DECLARATION / RHETORICAL LINES
   ========================================================= */

.reader-declaration {
    margin: 2.25rem 0;
    padding: 1.35rem 1.75rem;

    border-left: 3px solid var(--fyitk-gold);

    background: rgba(212, 175, 55, 0.055);
}

.reader-declaration p {
    margin: 0.28rem 0;

    color: var(--fyitk-text);

    font-size: 1.09rem;
    line-height: 1.55;

    font-weight: 500;
}


/* =========================================================
   QUOTATIONS
   ========================================================= */

.book-chapter blockquote {
    position: relative;

    margin: 2.5rem 1.5rem;
    padding: 1.5rem 1.8rem;

    border-left: 3px solid rgba(212, 175, 55, 0.75);

    background: rgba(245, 230, 200, 0.18);

    color: var(--fyitk-text-soft);

    font-size: 1.07rem;
    line-height: 1.75;

    font-style: italic;
}

.book-chapter blockquote::before {
    content: "“";

    position: absolute;
    top: -0.2rem;
    left: 0.45rem;

    color: rgba(212, 175, 55, 0.35);

    font-size: 3.6rem;
    line-height: 1;
}


/* =========================================================
   CHAPTER CLOSING
   ========================================================= */

.chapter-closing {
    margin-top: 2.75rem !important;
    padding-top: 1.5rem;

    border-top: 1px solid rgba(212, 175, 55, 0.4);

    font-size: 1.16rem !important;
    font-style: italic;

    text-align: center !important;
}


/* =========================================================
   THE INVESTIGATION CONTINUES
   ========================================================= */

.book-sample-continue {
    max-width: 700px;

    margin: 4.5rem auto 0;
    padding: 3rem 2.5rem;

    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: 12px;

    background:
        linear-gradient(
            180deg,
            rgba(245, 230, 200, 0.18),
            rgba(255, 250, 240, 0.08)
        );

    text-align: center;
}

.book-sample-continue h2 {
    margin: 0 0 1.75rem;

    color: var(--fyitk-gold);

    font-size: 1.55rem;
    line-height: 1.25;
}

.book-sample-continue > p {
    margin: 0 0 1rem;

    font-size: 1.05rem;
    line-height: 1.7;
}


/* =========================================================
   INVESTIGATION LIST
   ========================================================= */

.investigation-list {
    max-width: 430px;

    margin: 2rem auto;
    padding: 1.5rem 0;

    border-top: 1px solid rgba(212, 175, 55, 0.4);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.investigation-list p {
    margin: 0.4rem 0;

    color: var(--fyitk-text);

    font-size: 1.05rem;
    line-height: 1.45;

    font-style: italic;
}


/* =========================================================
   FINAL QUESTION
   ========================================================= */

.final-question {
    margin-top: 2rem !important;

    color: var(--fyitk-gold);

    font-size: 1.5rem !important;
}

.classroom-line {
    margin-top: 1.8rem !important;

    font-style: italic;
}


/* =========================================================
   CONTINUE INVESTIGATION / COMPLETE BOOK
   ========================================================= */

.continue-investigation {
    margin-top: 2.5rem;
    padding-top: 2rem;

    border-top: 1px solid rgba(212, 175, 55, 0.45);
}

.continue-label {
    margin: 0 0 0.55rem;

    color: var(--fyitk-gold);

    font-size: 0.82rem;
    font-weight: 600;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.continue-investigation > p {
    margin: 0.5rem 0 1.5rem;

    line-height: 1.6;
}


/* =========================================================
   COMPLETE BOOK BUTTON
   ========================================================= */

.book-purchase-link {
    display: inline-block;

    margin-top: 0.5rem;
    padding: 0.8rem 1.5rem;

    border: 1px solid var(--fyitk-gold);
    border-radius: 7px;

    background: transparent;

    color: var(--fyitk-gold);

    font-size: 0.93rem;
    line-height: 1.2;

    font-weight: 600;
    letter-spacing: 0.04em;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.book-purchase-link:hover,
.book-purchase-link:focus-visible {
    background: var(--fyitk-gold);

    color: #241a0e;

    box-shadow: 0 5px 14px rgba(90, 62, 27, 0.18);

    transform: translateY(-1px);
}

.book-purchase-link:focus-visible {
    outline: 2px solid var(--fyitk-text);
    outline-offset: 3px;
}


/* =========================================================
   MOBILE READING ROOM
   ========================================================= */

@media (max-width: 700px) {

    .book-sample {
        padding: 0.5rem 0.35rem 2rem;
    }

    .book-sample-header {
        margin-bottom: 2.1rem;
        padding-bottom: 1.3rem;
    }

    .book-sample-label {
        font-size: 0.7rem;
        letter-spacing: 0.09em;
    }

    .book-sample-intro {
        margin-bottom: 3.25rem;
    }

    .book-sample-intro p,
    .book-chapter > p {
        font-size: 1rem;
        line-height: 1.72;
    }

    .investigation-invitation {
        margin-top: 2rem;
        padding: 1.35rem 0.75rem;
    }

    .chapter-header {
        margin-bottom: 2.25rem;
    }

    .reader-declaration {
        margin: 1.8rem 0;
        padding: 1rem 1rem 1rem 1.2rem;
    }

    .reader-declaration p {
        font-size: 1rem;
    }

    .book-chapter blockquote {
        margin: 2rem 0.35rem;
        padding: 1.25rem 1.1rem 1.25rem 1.35rem;

        font-size: 1rem;
    }

    .book-sample-continue {
        margin-top: 3.5rem;
        padding: 2rem 1rem;

        border-radius: 9px;
    }

    .investigation-list {
        margin: 1.6rem auto;
    }

    .book-purchase-link {
        width: 100%;
        max-width: 290px;

        box-sizing: border-box;

        padding: 0.9rem 1rem;
    }
}