:root {
    --niche-ink: #142033;
    --niche-muted: #5e6b7b;
    --niche-line: #dfe5eb;
    --niche-paper: #ffffff;
    --niche-soft: #f4f7f8;
    --niche-accent: #126b55;
    --niche-accent-dark: #0a4436;
    --niche-accent-pale: #dff4eb;
    --niche-warm: #f7b955;
}

.niche-theme-ledger {
    --niche-accent: #11735b;
    --niche-accent-dark: #073f35;
    --niche-accent-pale: #dff5ed;
    --niche-warm: #efb94d;
}

.niche-theme-faith {
    --niche-accent: #72528f;
    --niche-accent-dark: #3c2853;
    --niche-accent-pale: #eee6f5;
    --niche-warm: #d69a58;
}

.niche-page,
.niche-hub {
    background: var(--niche-paper);
    color: var(--niche-ink);
    font-family: "DM Sans", sans-serif;
    overflow: hidden;
}

.niche-page *,
.niche-hub * {
    box-sizing: border-box;
}

.niche-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

.niche-breadcrumbs {
    align-items: center;
    color: #7c8794;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 9px;
    padding-bottom: 18px;
    padding-top: 20px;
}

.niche-breadcrumbs a {
    color: #536274;
    text-decoration: none;
}

.niche-breadcrumbs a:hover {
    color: var(--niche-accent);
}

.niche-hero {
    background:
        radial-gradient(circle at 6% 10%, var(--niche-accent-pale) 0, transparent 30%),
        linear-gradient(145deg, #fbfcfd 0%, #f0f4f6 100%);
    border-bottom: 1px solid var(--niche-line);
    position: relative;
}

.niche-hero::after {
    background-image: radial-gradient(rgba(20, 32, 51, 0.13) 0.8px, transparent 0.8px);
    background-size: 15px 15px;
    content: "";
    inset: 0 0 0 60%;
    opacity: 0.18;
    pointer-events: none;
    position: absolute;
}

.niche-hero-grid {
    align-items: center;
    display: grid;
    gap: 58px;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    min-height: 650px;
    padding-bottom: 76px;
    padding-top: 76px;
    position: relative;
    z-index: 1;
}

.niche-hero h1,
.niche-hub-hero h1 {
    font-size: clamp(2.65rem, 5vw, 4.85rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.99;
    margin: 0;
    max-width: 760px;
}

.niche-hero-subtitle {
    color: var(--niche-muted);
    font-size: 1.13rem;
    line-height: 1.68;
    margin: 25px 0 0;
    max-width: 620px;
}

.niche-hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 32px;
}

.niche-button {
    align-items: center;
    background: var(--niche-accent);
    border: 1px solid var(--niche-accent);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    justify-content: center;
    min-height: 52px;
    padding: 13px 24px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.niche-button:hover {
    background: var(--niche-accent-dark);
    border-color: var(--niche-accent-dark);
    box-shadow: 0 14px 30px rgba(20, 32, 51, 0.17);
    color: #fff;
    transform: translateY(-2px);
}

.niche-button-light {
    background: #fff;
    border-color: #fff;
    color: var(--niche-accent-dark);
}

.niche-button-light:hover {
    background: var(--niche-accent-pale);
    border-color: var(--niche-accent-pale);
    color: var(--niche-accent-dark);
}

.niche-text-link {
    color: var(--niche-ink);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.niche-text-link:hover {
    color: var(--niche-accent);
}

.niche-benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
}

.niche-benefit-list li {
    align-items: center;
    color: #536274;
    display: flex;
    font-size: 0.82rem;
    font-weight: 700;
    gap: 7px;
}

.niche-benefit-list .material-icons {
    color: var(--niche-accent);
    font-size: 1.1rem;
}

.niche-hero-art {
    position: relative;
}

.niche-hero-image-wrap {
    background: #0f1722;
    border: 8px solid #fff;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(20, 32, 51, 0.22);
    overflow: hidden;
    transform: rotate(1.2deg);
}

.niche-hero-image-wrap img,
.niche-sample-image img,
.niche-directory-image img {
    display: block;
    height: auto;
    width: 100%;
}

.niche-image-placeholder {
    align-items: center;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: 100%;
    justify-content: center;
    min-height: 260px;
}

.niche-image-placeholder .material-icons {
    font-size: 2.8rem;
}

.niche-image-placeholder span:last-child {
    font-size: 0.78rem;
    font-weight: 700;
}

.niche-answer-band {
    background: var(--niche-accent-dark);
    color: #fff;
}

.niche-answer-grid {
    display: grid;
    gap: 70px;
    grid-template-columns: 0.8fr 1.2fr;
    padding-bottom: 66px;
    padding-top: 66px;
}

.niche-answer-band h2 {
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0;
}

.niche-answer-band p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 0;
}

.niche-answer-band .niche-audience-note {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
    margin-top: 25px;
    padding-top: 20px;
}

.niche-section {
    padding-bottom: 96px;
    padding-top: 96px;
}

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

.niche-section-heading {
    margin: 0 auto 46px;
    max-width: 760px;
    text-align: center;
}

.niche-section-heading-left {
    margin-left: 0;
    text-align: left;
}

.niche-section-heading h2,
.niche-topics-grid h2,
.niche-faq-grid h2,
.niche-final-cta h2,
.niche-hub-cta h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    margin: 0;
}

.niche-section-heading p,
.niche-topics-grid > div > p,
.niche-faq-grid > div > p,
.niche-hub-cta p {
    color: var(--niche-muted);
    line-height: 1.7;
    margin: 19px auto 0;
    max-width: 700px;
}

.niche-section-heading-left p {
    margin-left: 0;
}

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

.niche-sample-card {
    background: #fff;
    border: 1px solid var(--niche-line);
    border-radius: 17px;
    box-shadow: 0 10px 30px rgba(20, 32, 51, 0.06);
    overflow: hidden;
}

.niche-sample-image {
    aspect-ratio: 16 / 9;
    background: #162130;
    overflow: hidden;
}

.niche-sample-image img {
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.niche-sample-card:hover .niche-sample-image img {
    transform: scale(1.025);
}

.niche-sample-copy {
    padding: 23px;
}

.niche-sample-copy h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 9px;
}

.niche-sample-copy > p,
.niche-sample-prompt p {
    color: var(--niche-muted);
    font-size: 0.86rem;
    line-height: 1.62;
    margin: 0;
}

.niche-sample-prompt {
    border-top: 1px solid var(--niche-line);
    margin-top: 18px;
    padding-top: 15px;
}

.niche-sample-prompt summary {
    color: var(--niche-accent);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.niche-sample-prompt p {
    margin-top: 11px;
}

.niche-sample-cta {
    align-items: center;
    color: var(--niche-accent);
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 6px;
    margin-top: 15px;
    text-decoration: none;
}

.niche-sample-cta:hover {
    color: var(--niche-accent-dark);
    text-decoration: underline;
}

.niche-example-disclosure {
    color: #7b8794;
    font-size: 0.73rem;
    line-height: 1.5;
    margin: 20px 0 0;
    text-align: center;
}

.niche-topics-section {
    background: var(--niche-accent-dark);
    color: #fff;
}

.niche-topics-grid {
    align-items: start;
    display: grid;
    gap: 70px;
    grid-template-columns: 0.75fr 1.25fr;
}

.niche-topics-grid > div > p {
    color: rgba(255, 255, 255, 0.68);
}

.niche-topic-list {
    display: grid;
    gap: 11px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.niche-topic-list li {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.87rem;
    font-weight: 700;
    padding: 15px 17px;
}

.niche-step-grid {
    counter-reset: steps;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.niche-step-grid li {
    background: #fff;
    border: 1px solid var(--niche-line);
    border-radius: 15px;
    padding: 29px;
}

.niche-step-grid li > span {
    align-items: center;
    background: var(--niche-accent);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 36px;
    justify-content: center;
    margin-bottom: 35px;
    width: 36px;
}

.niche-step-grid h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 9px;
}

.niche-step-grid p {
    color: var(--niche-muted);
    font-size: 0.86rem;
    line-height: 1.62;
    margin: 0;
}

.niche-faq-grid {
    align-items: start;
    display: grid;
    gap: 80px;
    grid-template-columns: 0.78fr 1.22fr;
}

.niche-faq-grid .niche-text-link {
    display: inline-block;
    margin-top: 24px;
}

.niche-faq-list {
    border-top: 1px solid var(--niche-line);
}

.niche-faq-list details {
    border-bottom: 1px solid var(--niche-line);
    padding: 0;
}

.niche-faq-list summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 0.96rem;
    font-weight: 800;
    gap: 20px;
    justify-content: space-between;
    list-style: none;
    padding: 22px 0;
}

.niche-faq-list summary::-webkit-details-marker {
    display: none;
}

.niche-faq-list summary .material-icons {
    color: var(--niche-accent);
    font-size: 1.2rem;
    transition: transform 150ms ease;
}

.niche-faq-list details[open] summary .material-icons {
    transform: rotate(45deg);
}

.niche-faq-list details p {
    color: var(--niche-muted);
    font-size: 0.88rem;
    line-height: 1.7;
    margin: -4px 46px 23px 0;
}

.niche-final-cta,
.niche-hub-cta {
    background: var(--niche-accent);
    color: #fff;
}

.niche-final-cta-inner,
.niche-hub-cta-inner {
    align-items: center;
    display: flex;
    gap: 50px;
    justify-content: space-between;
    padding-bottom: 76px;
    padding-top: 76px;
}

.niche-final-cta p,
.niche-hub-cta p {
    color: rgba(255, 255, 255, 0.82);
    margin-left: 0;
    max-width: 720px;
}

.niche-final-cta .niche-button,
.niche-hub-cta .niche-button {
    flex: 0 0 auto;
}

/* Directory */
.niche-hub-hero {
    background:
        radial-gradient(circle at 72% 15%, rgba(239, 185, 77, 0.23), transparent 25%),
        linear-gradient(145deg, #0b4035 0%, #102b34 100%);
    color: #fff;
}

.niche-hub-hero-inner {
    padding-bottom: 92px;
    padding-top: 92px;
}

.niche-hub-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.08rem;
    line-height: 1.7;
    margin: 24px 0 0;
    max-width: 680px;
}

.niche-hub-stat {
    align-items: baseline;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 12px;
    margin-top: 44px;
    max-width: 680px;
    padding-top: 23px;
}

.niche-hub-stat strong {
    color: #f0c56f;
    font-size: 2.2rem;
}

.niche-hub-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.niche-hub-content {
    padding-bottom: 100px;
    padding-top: 92px;
}

.niche-cluster + .niche-cluster {
    margin-top: 62px;
}

.niche-cluster-heading {
    align-items: center;
    border-bottom: 1px solid var(--niche-line);
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding-bottom: 14px;
}

.niche-cluster-heading h3 {
    font-size: 1.08rem;
    font-weight: 800;
    margin: 0;
}

.niche-cluster-heading span {
    color: var(--niche-muted);
    font-size: 0.76rem;
}

.niche-directory-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.niche-directory-card {
    background: #fff;
    border: 1px solid var(--niche-line);
    border-radius: 17px;
    color: var(--niche-ink);
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    overflow: hidden;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.niche-directory-card:hover {
    box-shadow: 0 18px 42px rgba(20, 32, 51, 0.12);
    color: var(--niche-ink);
    transform: translateY(-3px);
}

.niche-directory-image {
    background: #17222d;
    min-height: 100%;
}

.niche-directory-image img {
    height: 100%;
    object-fit: cover;
}

.niche-directory-copy {
    padding: 27px;
}

.niche-directory-copy > span {
    color: var(--niche-accent);
    display: block;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.niche-directory-copy h4 {
    font-size: 1.22rem;
    font-weight: 800;
    margin: 0 0 9px;
}

.niche-directory-copy p {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--niche-muted);
    display: -webkit-box;
    font-size: 0.8rem;
    line-height: 1.55;
    margin: 0 0 18px;
    overflow: hidden;
}

.niche-directory-copy strong {
    color: var(--niche-accent);
    font-size: 0.78rem;
}

@media (max-width: 991px) {
    .niche-hero-grid {
        gap: 55px;
        grid-template-columns: 1fr;
        padding-top: 62px;
    }

    .niche-hero-copy {
        max-width: 740px;
    }

    .niche-hero-art {
        margin: 0 auto;
        max-width: 760px;
        width: 100%;
    }

    .niche-answer-grid,
    .niche-topics-grid,
    .niche-faq-grid {
        gap: 42px;
        grid-template-columns: 1fr;
    }

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

    .niche-directory-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .niche-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .niche-hero-grid {
        min-height: 0;
        padding-bottom: 62px;
        padding-top: 48px;
    }

    .niche-hero h1,
    .niche-hub-hero h1 {
        font-size: 2.75rem;
    }

    .niche-hero-actions,
    .niche-final-cta-inner,
    .niche-hub-cta-inner {
        align-items: stretch;
        flex-direction: column;
    }

    .niche-button {
        width: 100%;
    }

    .niche-benefit-list {
        gap: 12px 17px;
    }

    .niche-hero-image-wrap {
        border-width: 5px;
        border-radius: 14px;
        transform: none;
    }

    .niche-answer-grid {
        padding-bottom: 52px;
        padding-top: 52px;
    }

    .niche-section {
        padding-bottom: 72px;
        padding-top: 72px;
    }

    .niche-sample-grid,
    .niche-step-grid,
    .niche-topic-list {
        grid-template-columns: 1fr;
    }

    .niche-final-cta-inner,
    .niche-hub-cta-inner {
        gap: 30px;
        padding-bottom: 62px;
        padding-top: 62px;
    }

    .niche-hub-hero-inner {
        padding-bottom: 72px;
        padding-top: 72px;
    }

    .niche-directory-card {
        grid-template-columns: 1fr;
    }

    .niche-directory-image {
        aspect-ratio: 16 / 9;
    }
}

@media (prefers-reduced-motion: reduce) {
    .niche-page *,
    .niche-hub * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
