:root {
    --bg: #fbf8f1;
    --paper: #ffffff;
    --ink: #1f1b16;
    --muted: #675f55;
    --line: #e4d9c8;
    --accent: #8a6728;
    --accent-dark: #5f4519;
    --soft: #f1eadf;
    --shadow: 0 12px 30px rgba(31, 27, 22, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.6;
}

a {
    color: var(--accent-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: rgba(251, 248, 241, 0.96);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.site-logo {
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo:hover {
    text-decoration: none;
}

.site-logo-main {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-logo-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.site-nav a {
    color: var(--ink);
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    text-decoration: none;
    border-bottom-color: var(--accent);
}

.hero {
    padding: 74px 0 62px;
    background:
        radial-gradient(circle at 80% 10%, rgba(138, 103, 40, 0.14), transparent 28%),
        linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 42px;
    align-items: center;
}

.eyebrow {
    color: var(--accent-dark);
    font-family: Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 12px;
}

h1, h2, h3 {
    line-height: 1.15;
    margin: 0 0 18px;
}

h1 {
    font-size: clamp(42px, 6vw, 72px);
    max-width: 850px;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 24px;
}

.hero-lede {
    max-width: 760px;
    color: var(--muted);
    font-size: 22px;
    margin: 0 0 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-block;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 20px;
    border: 1px solid var(--accent);
}

.button:hover {
    text-decoration: none;
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-secondary {
    background: transparent;
    color: var(--accent-dark);
}

.method-card,
.info-card,
.quote-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.method-card {
    padding: 28px;
}

.method-card h2 {
    font-size: 28px;
}

.method-card ul {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
}

.section {
    padding: 62px 0;
}

.section-muted {
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.info-card {
    padding: 24px;
}

.info-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 42px;
    align-items: center;
}

.two-column p {
    color: var(--muted);
}

.quote-box {
    padding: 28px;
    font-size: 23px;
    color: var(--accent-dark);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.link-grid a {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    color: var(--ink);
}

.link-grid a:hover {
    border-color: var(--accent);
    text-decoration: none;
}

main article,
main > h1,
main > p {
    width: min(900px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

main article {
    padding: 50px 0;
}

main article h1 {
    font-size: clamp(38px, 5vw, 60px);
}

blockquote {
    border-left: 4px solid var(--accent);
    margin-left: 0;
    padding: 14px 20px;
    background: var(--soft);
}


@media (max-width: 850px) {
    .header-inner,
    .hero-grid,
    .two-column {
        grid-template-columns: 1fr;
        display: grid;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .card-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 48px 0;
    }

    body {
        font-size: 17px;
    }
}

.page-hero {
    padding: 54px 0 36px;
    background: linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}

.page-intro {
    max-width: 850px;
    color: var(--muted);
    font-size: 22px;
    margin: 0;
}

.content-page {
    max-width: 900px;
}

.content-page h2 {
    margin-top: 34px;
}

.content-page p,
.content-page li {
    color: var(--muted);
}

.content-page strong {
    color: var(--ink);
}

/* Hero and page title sizing */
h1 {
    font-size: clamp(34px, 4.5vw, 54px);
    letter-spacing: -0.025em;
}

.hero-lede {
    font-size: 20px;
}

.page-hero {
    padding: 42px 0 28px;
}

.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.02em;
}

.page-intro {
    font-size: 20px;
}

@media (max-width: 850px) {
    h1 {
        font-size: clamp(32px, 9vw, 44px);
    }

    .page-hero h1 {
        font-size: clamp(30px, 8vw, 40px);
    }

    .hero-lede,
    .page-intro {
        font-size: 18px;
    }
}

.source-list {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.source-card,
.empty-note {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.source-card h2 {
    font-size: 24px;
    margin-bottom: 8px;
}

.source-meta {
    margin: 0 0 10px;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.source-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.source-labels span {
    display: inline-block;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.empty-note p {
    margin-top: 0;
}


/* Footer */
.site-footer {
    padding: 42px 0 18px;
    background: #17130f;
    color: #f7efe2;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.5fr) minmax(160px, 0.4fr);
    gap: 34px;
    align-items: start;
}

.footer-brand h2 {
    font-size: 26px;
    margin: 0 0 10px;
    color: #ffffff;
}

.footer-brand p {
    max-width: 560px;
    margin: 0;
    color: #c9bda8;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.footer-links h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.footer-links a {
    display: block;
    color: #c9bda8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    margin: 5px 0;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(247, 239, 226, 0.16);
    color: #a99b87;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

@media (max-width: 800px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
        margin: 4px 0;
    }
}

/* Article pages */
.article-list {
    display: grid;
    gap: 20px;
}

.article-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.article-card h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.article-card h2 a {
    color: var(--ink);
}

.article-card p {
    color: var(--muted);
    margin-top: 0;
}

.article-card-meta,
.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.article-card-meta span,
.article-meta-bar span {
    display: inline-block;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.article-subtitle {
    font-size: 19px;
    color: var(--accent-dark);
}

.read-more {
    display: inline-block;
    margin-top: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.article-hero .page-intro {
    max-width: 900px;
}

.article-intro {
    max-width: 900px;
    color: var(--muted);
    font-size: 20px;
    margin: 18px 0 0;
}

.article-image-wrap {
    margin-top: 34px;
}

.article-hero-image {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.article-content {
    max-width: 900px;
}

.article-content p,
.article-content li {
    color: var(--muted);
}

.article-content h2 {
    margin-top: 34px;
}

.article-section {
    margin-bottom: 34px;
}

.article-box,
.conclusion-box,
.sources-used {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.conclusion-box {
    background: #fffdf8;
    border-color: rgba(138, 103, 40, 0.35);
}

.sources-used ul {
    padding-left: 20px;
}

.sources-used li {
    margin-bottom: 10px;
}

.sources-used span {
    display: inline-block;
    margin-left: 6px;
    color: var(--accent-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.richtext-intro p {
    margin-top: 0;
}

@media (max-width: 750px) {
    .article-card {
        padding: 20px;
    }

    .article-card h2 {
        font-size: 25px;
    }

    .article-intro {
        font-size: 18px;
    }
}

/* Article fallback visual */
.article-fallback-visual {
    min-height: 220px;
    border-radius: 18px;
    border: 1px solid rgba(138, 103, 40, 0.32);
    background:
        radial-gradient(circle at 20% 20%, rgba(138, 103, 40, 0.18), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(95, 69, 25, 0.12), transparent 30%),
        linear-gradient(135deg, #fffdf8 0%, #f1eadf 100%);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 30px;
}

.fallback-mark {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    border: 2px solid rgba(138, 103, 40, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    line-height: 1;
    color: var(--accent-dark);
    font-family: Georgia, "Times New Roman", serif;
    background: rgba(255, 255, 255, 0.55);
}

.fallback-title {
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 700;
}

.fallback-text {
    margin: 0;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 650px) {
    .article-fallback-visual {
        min-height: 180px;
        align-items: flex-start;
        flex-direction: column;
        padding: 24px;
    }

    .fallback-mark {
        width: 64px;
        height: 64px;
        font-size: 40px;
    }
}

/* Homepage latest articles */
.latest-articles-section {
    background: #fffdf8;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.homepage-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.homepage-article-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.homepage-article-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.homepage-article-card h3 a {
    color: var(--ink);
}

.homepage-article-card p {
    color: var(--muted);
    margin-top: 0;
}

@media (max-width: 850px) {
    .homepage-article-grid {
        grid-template-columns: 1fr;
    }
}

/* Scripture pages */
.scripture-list {
    display: grid;
    gap: 20px;
}

.scripture-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.scripture-card h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.scripture-card h2 a {
    color: var(--ink);
}

.scripture-card p {
    color: var(--muted);
    margin-top: 0;
}

.scripture-meta,
.scripture-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.scripture-meta span,
.scripture-meta-bar span {
    display: inline-block;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.scripture-issue,
.scripture-moral-issue {
    color: var(--accent-dark);
}

.scripture-content {
    max-width: 900px;
}

.scripture-content p,
.scripture-content li {
    color: var(--muted);
}

.scripture-section {
    margin-bottom: 34px;
}

.scripture-section h2,
.passage-box h2 {
    margin-top: 0;
}

.passage-box,
.scripture-box,
.scripture-source-note {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.passage-box blockquote {
    margin: 0;
    font-size: 21px;
    color: var(--ink);
    background: #fffdf8;
}

.scripture-source-note {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: var(--muted);
}

@media (max-width: 750px) {
    .scripture-card {
        padding: 20px;
    }

    .scripture-card h2 {
        font-size: 25px;
    }

    .passage-box blockquote {
        font-size: 18px;
    }
}

/* Q&A and FAQ pages */
.qa-list,
.faq-list {
    display: grid;
    gap: 18px;
}

.qa-card,
.faq-card,
.qa-box,
.faq-answer-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.qa-card h2,
.faq-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.qa-card h2 a,
.faq-card h2 a {
    color: var(--ink);
}

.qa-card p,
.faq-card p,
.qa-content p,
.qa-content li,
.faq-content p,
.faq-content li {
    color: var(--muted);
}

.qa-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.qa-meta-bar span {
    display: inline-block;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.qa-content,
.faq-content {
    max-width: 900px;
}

.qa-section {
    margin-bottom: 34px;
}

.qa-section h2 {
    margin-top: 0;
}

.faq-answer-box {
    font-size: 20px;
}

@media (max-width: 750px) {
    .qa-card,
    .faq-card,
    .qa-box,
    .faq-answer-box {
        padding: 20px;
    }

    .qa-card h2,
    .faq-card h2 {
        font-size: 24px;
    }

    .faq-answer-box {
        font-size: 18px;
    }
}

/* Blog pages */
.blog-list {
    display: grid;
    gap: 20px;
}

.blog-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.blog-card h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.blog-card h2 a {
    color: var(--ink);
}

.blog-card p,
.blog-content p,
.blog-content li {
    color: var(--muted);
}

.blog-date {
    color: var(--accent-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
}

.blog-topic-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.blog-topic-bar span {
    display: inline-block;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.blog-content {
    max-width: 900px;
}

.blog-content h2 {
    margin-top: 34px;
}

@media (max-width: 750px) {
    .blog-card {
        padding: 20px;
    }

    .blog-card h2 {
        font-size: 25px;
    }
}

/* Topics pages */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.topic-card,
.topic-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.topic-card h2 {
    font-size: 25px;
    margin-bottom: 10px;
}

.topic-card h2 a,
.topic-item h3 a {
    color: var(--ink);
}

.topic-card p,
.topic-item p,
.muted-note {
    color: var(--muted);
}

.topic-detail-layout {
    display: grid;
    gap: 34px;
}

.topic-content-block h2 {
    margin-bottom: 16px;
}

.topic-item-list {
    display: grid;
    gap: 14px;
}

.topic-item h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

@media (max-width: 950px) {
    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }

    .topic-card,
    .topic-item {
        padding: 20px;
    }
}

/* Religions and belief systems pages */
.religion-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.religion-card,
.religion-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.religion-card h2 {
    font-size: 25px;
    margin-bottom: 10px;
}

.religion-card h2 a,
.religion-item h3 a {
    color: var(--ink);
}

.religion-card p,
.religion-item p {
    color: var(--muted);
}

.religion-detail-layout {
    display: grid;
    gap: 34px;
}

.religion-content-block h2 {
    margin-bottom: 16px;
}

.religion-item-list {
    display: grid;
    gap: 14px;
}

.religion-item h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

@media (max-width: 950px) {
    .religion-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .religion-grid {
        grid-template-columns: 1fr;
    }

    .religion-card,
    .religion-item {
        padding: 20px;
    }
}

/* Header/navigation responsive improvement */
.site-header {
    backdrop-filter: blur(8px);
}

.header-inner {
    align-items: flex-start;
}

.site-nav {
    max-width: 760px;
    line-height: 1.2;
}

.site-nav a {
    white-space: nowrap;
}

@media (max-width: 1050px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-nav {
        justify-content: flex-start;
        max-width: none;
        gap: 10px 14px;
    }
}

@media (max-width: 650px) {
    .site-header {
        position: static;
    }

    .header-inner {
        padding: 12px 0;
    }

    .site-logo-main {
        font-size: 22px;
    }

    .site-logo-sub {
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .site-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        padding: 6px 0 2px;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav a {
        flex: 0 0 auto;
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 7px 11px;
        font-size: 13px;
    }

    .site-nav a:hover {
        border-bottom-color: var(--line);
        border-color: var(--accent);
    }
}

/* Findings pages */
.finding-list {
    display: grid;
    gap: 20px;
}

.finding-card,
.finding-box,
.conclusion-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.finding-card h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.finding-card h2 a {
    color: var(--ink);
}

.finding-card p,
.finding-content p,
.finding-content li {
    color: var(--muted);
}

.finding-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.finding-meta span {
    display: inline-block;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.finding-meta-large {
    margin-top: 18px;
    margin-bottom: 0;
}

.finding-content {
    max-width: 900px;
}

.finding-section {
    margin-bottom: 34px;
}

.finding-section h2 {
    margin-top: 0;
}

.conclusion-box {
    border-color: rgba(138, 103, 40, 0.35);
    background: #fffaf0;
}

@media (max-width: 750px) {
    .finding-card,
    .finding-box,
    .conclusion-box {
        padding: 20px;
    }

    .finding-card h2 {
        font-size: 25px;
    }
}

/* Practice / Practical Wisdom pages */
.practice-list {
    display: grid;
    gap: 20px;
}

.practice-card,
.practice-box,
.practice-principle-box,
.related-findings-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.practice-card h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.practice-card h2 a,
.related-findings-box a {
    color: var(--ink);
}

.practice-card p,
.practice-content p,
.practice-content li {
    color: var(--muted);
}

.practice-content {
    max-width: 900px;
}

.practice-section {
    margin-bottom: 34px;
}

.practice-section h2,
.practice-principle-box h2 {
    margin-top: 0;
}

.practice-principle-box {
    border-color: rgba(138, 103, 40, 0.35);
    background: #fffaf0;
    margin-bottom: 34px;
}

.practice-topic-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.practice-topic-bar span {
    display: inline-block;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 750px) {
    .practice-card,
    .practice-box,
    .practice-principle-box,
    .related-findings-box {
        padding: 20px;
    }

    .practice-card h2 {
        font-size: 25px;
    }
}

/* Footer column refinement */
.footer-grid {
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
    gap: 32px;
}

@media (max-width: 850px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Thinkers section */
.thinker-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.thinker-card,
.thinker-box {
    background: #ffffff;
    border: 1px solid rgba(28, 35, 48, 0.10);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 14px 34px rgba(28, 35, 48, 0.08);
}

.thinker-card h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    margin: 12px 0;
}

.thinker-card h2 a,
.related-findings-box a {
    color: #182033;
    text-decoration: none;
}

.thinker-card h2 a:hover,
.related-findings-box a:hover {
    color: #8a6728;
}

.thinker-card p,
.thinker-content p,
.thinker-content li {
    line-height: 1.75;
}

.thinker-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.thinker-meta span,
.thinker-topic-bar span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(138, 103, 40, 0.10);
    color: #5f471b;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 10px;
}

.thinker-meta-large {
    margin-top: 24px;
}

.thinker-note {
    max-width: 920px;
    margin-top: 18px;
    color: #5d6678;
    font-size: 0.98rem;
}

.thinker-content {
    max-width: 920px;
}

.thinker-section {
    margin-bottom: 34px;
}

.thinker-section h2 {
    color: #182033;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    margin-bottom: 14px;
}

.thinker-topic-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

@media (max-width: 800px) {
    .thinker-list {
        grid-template-columns: 1fr;
    }

    .thinker-card,
    .thinker-box {
        padding: 20px;
    }
}

/* Topic related Thinkers */
.topic-thinker-item p:first-of-type {
    color: #8a6728;
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Thinker visible images */
.thinker-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 2rem;
    align-items: center;
}

.thinker-hero-image,
.thinker-primary-image,
.thinker-gallery figure {
    margin: 0;
}

.thinker-hero-image img,
.thinker-primary-image img,
.thinker-gallery img,
.thinker-card-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.thinker-hero-image img,
.thinker-card-image img {
    object-fit: cover;
}

.thinker-primary-image {
    margin-bottom: 2rem;
}

.thinker-primary-image figcaption,
.thinker-gallery figcaption {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: #6d6257;
}

.thinker-primary-image figcaption span,
.thinker-gallery figcaption span {
    display: block;
    font-style: italic;
}

.thinker-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.thinker-card-image {
    display: block;
    margin: -1rem -1rem 1rem;
}

.thinker-card-image img {
    border-radius: 18px 18px 0 0;
}

@media (max-width: 760px) {
    .thinker-hero-grid {
        grid-template-columns: 1fr;
    }

    .thinker-gallery {
        grid-template-columns: 1fr;
    }
}

/* Simplified Thinker hero image captions */
.thinker-hero-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6d6257;
}

.thinker-hero-image figcaption span {
    display: block;
    font-style: italic;
}

/* Clickable full-size image links */
.image-fullsize-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.image-fullsize-link::after {
    content: "View full size";
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.68);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1;
    padding: 0.45rem 0.55rem;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-fullsize-link:hover::after,
.image-fullsize-link:focus::after {
    opacity: 1;
}

.image-fullsize-link img {
    transition: opacity 0.2s ease;
}

.image-fullsize-link:hover img,
.image-fullsize-link:focus img {
    opacity: 0.92;
}

/* Common visible page image system */
.page-image-system-wrap {
    margin-top: 2rem;
}

.page-hero-visible-image,
.page-gallery-system figure {
    margin: 0;
}

.page-hero-visible-image img,
.page-gallery-system img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.page-hero-visible-image figcaption,
.page-gallery-system figcaption {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6d6257;
}

.page-hero-visible-image figcaption span,
.page-gallery-system figcaption span {
    display: block;
    font-style: italic;
}

.page-gallery-system-wrap {
    margin-top: 2rem;
}

.page-gallery-system {
    padding-top: 1rem;
}

.page-gallery-system h2 {
    margin-bottom: 1rem;
}

.page-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (max-width: 760px) {
    .page-gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* Freedom and Authoritarianism pages */
.freedom-page-hero {
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(95, 69, 25, 0.12),
            transparent 30%
        ),
        linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
}

.freedom-principles,
.freedom-card,
.freedom-box,
.correction-box,
.reply-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.freedom-principles {
    margin-bottom: 28px;
    border-left: 5px solid var(--accent);
}

.freedom-principles h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.freedom-principles p {
    color: var(--muted);
    margin: 0;
}

.freedom-list {
    display: grid;
    gap: 20px;
}

.freedom-card h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.freedom-card h2 a {
    color: var(--ink);
}

.freedom-card p,
.freedom-content p,
.freedom-content li {
    color: var(--muted);
}

.freedom-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-family: Arial, Helvetica, sans-serif;
}

.freedom-meta span {
    display: inline-block;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.freedom-meta-large {
    margin-top: 18px;
    margin-bottom: 0;
}

.freedom-content {
    max-width: 900px;
}

.freedom-section {
    margin-bottom: 34px;
}

.freedom-section h2 {
    margin-top: 0;
}

.established-facts-box {
    border-left: 5px solid #50724c;
}

.allegations-box {
    border-left: 5px solid #9b6a2f;
}

.lawful-response-box {
    border-left: 5px solid #4e6781;
}

.correction-box {
    border-left: 5px solid #9a493f;
}

.reply-box {
    border-left: 5px solid #6a5b86;
}

.freedom-caution {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

@media (max-width: 750px) {
    .freedom-principles,
    .freedom-card,
    .freedom-box,
    .correction-box,
    .reply-box {
        padding: 20px;
    }

    .freedom-card h2 {
        font-size: 25px;
    }
}

/* Quote Verification pages */
.quotation-page-hero {
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(138, 103, 40, 0.11),
            transparent 26%
        ),
        linear-gradient(180deg, #fffdf8 0%, var(--bg) 100%);
}

.quotation-principles,
.quotation-result-box {
    background: #fffdf8;
    border: 1px solid rgba(138, 103, 40, 0.35);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.quotation-principles h2,
.quotation-result-box h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.quotation-principles p,
.quotation-result-box p {
    color: var(--muted);
}

.quotation-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
    margin: 0 0 28px;
    padding: 20px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.quotation-filters div {
    flex: 1 1 260px;
}

.quotation-filters label {
    display: block;
    margin-bottom: 5px;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.quotation-filters input,
.quotation-filters select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    padding: 9px 12px;
    font: inherit;
    font-size: 16px;
}

.quotation-filters button {
    min-height: 44px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    padding: 9px 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.quotation-clear-filter {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 9px 6px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.quotation-list {
    display: grid;
    gap: 20px;
}

.quotation-card {
    width: auto;
    margin: 0;
    padding: 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.quotation-card blockquote,
.quotation-hero-quote {
    margin: 14px 0;
    font-size: 23px;
    color: var(--ink);
}

.quotation-card p {
    color: var(--muted);
}

.quotation-attribution {
    margin: 12px 0;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

.quotation-attribution-large {
    font-size: 17px;
}

.quotation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
}

.quotation-meta span,
.quotation-topic-bar span {
    display: inline-block;
    border: 1px solid var(--line);
    background: var(--soft);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.quotation-meta-large {
    margin-top: 18px;
}

.quotation-verdict-verified {
    background: #edf8ef !important;
    border-color: #aed4b4 !important;
}

.quotation-verdict-probably_authentic,
.quotation-verdict-paraphrase {
    background: #f3f7e8 !important;
    border-color: #c9d6a5 !important;
}

.quotation-verdict-edited,
.quotation-verdict-disputed,
.quotation-verdict-unresolved {
    background: #fff6d8 !important;
    border-color: #dbc982 !important;
}

.quotation-verdict-misattributed,
.quotation-verdict-unsupported,
.quotation-verdict-fabricated {
    background: #fff0ed !important;
    border-color: #dfb3aa !important;
}

.quotation-content {
    max-width: 900px;
}

.quotation-content p,
.quotation-content li {
    color: var(--muted);
}

.quotation-section {
    margin-bottom: 34px;
}

.quotation-section h2 {
    margin-top: 0;
}

.quotation-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.quotation-result-name {
    color: var(--accent-dark) !important;
    font-size: 24px;
    font-weight: 700;
}

.quotation-topic-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: Arial, Helvetica, sans-serif;
}

@media (max-width: 750px) {
    .quotation-card,
    .quotation-box,
    .quotation-result-box,
    .quotation-principles {
        padding: 20px;
    }

    .quotation-card blockquote,
    .quotation-hero-quote {
        font-size: 19px;
    }

    .quotation-filters {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* Grouped Scripture and primary-text index */
.scripture-group {
    margin-bottom: 54px;
}

.scripture-group:last-child {
    margin-bottom: 0;
}

.scripture-group-header {
    max-width: 900px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.scripture-group-header h2 {
    margin: 0 0 8px;
    font-size: 38px;
}

.scripture-group-classification {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.scripture-group-summary {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
}

.scripture-group .scripture-card h3 {
    margin: 0 0 10px;
    font-size: 30px;
}

.scripture-group .scripture-card h3 a {
    color: var(--ink);
}

@media (max-width: 750px) {
    .scripture-group {
        margin-bottom: 40px;
    }

    .scripture-group-header h2 {
        font-size: 31px;
    }

    .scripture-group .scripture-card h3 {
        font-size: 25px;
    }
}


/* Scripture index content menu */
.scripture-content-menu {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.scripture-content-menu-inner {
    padding: 20px 0;
}

.scripture-content-menu-title {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.scripture-content-menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.scripture-content-menu-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent-dark);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.scripture-content-menu-links a:hover,
.scripture-content-menu-links a:focus {
    background: var(--paper);
    border-color: var(--accent);
    color: var(--ink);
}

.scripture-group {
    scroll-margin-top: 24px;
}

@media (max-width: 750px) {
    .scripture-content-menu-inner {
        padding: 16px 0;
    }

    .scripture-content-menu-links {
        gap: 7px;
    }

    .scripture-content-menu-links a {
        min-height: 34px;
        padding: 6px 11px;
        font-size: 13px;
    }
}

/* Finding detail heading size adjustment */
.template-finding-page .page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.12;
}

.template-finding-page .finding-section h2,
.template-finding-page .finding-content .rich-text h2 {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.25;
}

@media (max-width: 700px) {
    .template-finding-page .page-hero h1 {
        font-size: 1.85rem;
    }

    .template-finding-page .finding-section h2,
    .template-finding-page .finding-content .rich-text h2 {
        font-size: 1.3rem;
    }
}
/* End Finding detail heading size adjustment */

/* Homepage dynamic content and images */
.homepage-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.homepage-hero-image {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 55px rgba(18, 35, 51, 0.14);
}

.homepage-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.homepage-hero-image figcaption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 1rem;
    color: #5d6872;
    font-size: 0.8rem;
}

.homepage-method-strip {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(18, 35, 51, 0.1);
    border-bottom: 1px solid rgba(18, 35, 51, 0.1);
}

.homepage-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.homepage-method-grid article {
    padding: 1rem 1.15rem;
    border-left: 3px solid #b18a47;
}

.homepage-method-grid h2 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.homepage-method-grid p {
    margin: 0;
    font-size: 0.92rem;
}

.homepage-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.homepage-content-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(18, 35, 51, 0.12);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(18, 35, 51, 0.07);
}

.homepage-card-image {
    display: block;
    overflow: hidden;
    background: #e9edf0;
}

.homepage-card-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 7;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.homepage-content-card:hover .homepage-card-image img {
    transform: scale(1.025);
}

.homepage-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.homepage-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.homepage-card-meta span {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #f0f3f5;
    color: #44515d;
    font-size: 0.76rem;
    font-weight: 700;
}

.homepage-content-card h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    line-height: 1.25;
}

.homepage-content-card h3 a {
    color: inherit;
    text-decoration: none;
}

.homepage-content-card h3 a:hover {
    text-decoration: underline;
}

.homepage-content-card p {
    margin-top: 0;
}

.homepage-content-card .read-more {
    margin-top: auto;
}

.homepage-section-link {
    margin: 2rem 0 0;
    text-align: center;
}

@media (max-width: 980px) {
    .homepage-hero-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 650px) {
    .homepage-method-grid,
    .homepage-content-grid {
        grid-template-columns: 1fr;
    }

    .homepage-hero-image figcaption {
        display: block;
    }

    .homepage-hero-image figcaption span {
        display: block;
    }
}
/* End homepage dynamic content and images */

/* Accessible visually hidden content */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Collapse landing-page hero when text is visually hidden */
.page-hero:has(> .site-wrap.visually-hidden) {
    padding: 0;
    margin: 0;
    min-height: 0;
    background: none;
    border: 0;
}
