/*
Theme Name: YF Covenant Hub
Theme URI: https://yeshuasfaith.com/
Author: Joshua Salva
Description: A standalone faith-centered community hub theme inspired by modern social/community UX. Includes member-style dashboards, groups, activity styling, ministry cards, prayer walls, and optional compatibility styling for BuddyPress/bbPress/WooCommerce/LMS plugins without depending on BuddyBoss or copying BuddyBoss code.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yf-covenant-hub
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
    --yf-bg: #07111f;
    --yf-bg-soft: #0b1728;
    --yf-surface: #10233f;
    --yf-surface-2: #132b4e;
    --yf-border: #22446f;
    --yf-text: #f5f8ff;
    --yf-muted: #afc0dc;
    --yf-link: #74adff;
    --yf-link-hover: #a8cfff;
    --yf-accent: #4a8dff;
    --yf-accent-2: #8cc4ff;
    --yf-gold: #f6d37a;
    --yf-radius-sm: 10px;
    --yf-radius: 18px;
    --yf-radius-lg: 28px;
    --yf-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
    --yf-max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(74, 141, 255, 0.16), transparent 34rem),
        linear-gradient(180deg, #07111f 0%, #081626 50%, #050c16 100%);
    color: var(--yf-text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

body.admin-bar .site-header {
    top: 32px;
}

a {
    color: var(--yf-link);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

a:hover,
a:focus {
    color: var(--yf-link-hover);
}

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

figure {
    margin: 0 0 1.5rem;
}

input,
textarea,
select,
button {
    font: inherit;
}

button,
.button,
input[type="submit"],
.wp-block-button__link,
.yf-button,
.generic-button a,
.bp-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.15rem;
    border: 0;
    border-radius: var(--yf-radius-sm);
    background: linear-gradient(135deg, var(--yf-accent), #2f70d9);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(74, 141, 255, 0.24);
}

button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover,
.yf-button:hover,
.generic-button a:hover,
.bp-primary-action:hover {
    background: linear-gradient(135deg, #6aa8ff, #4a8dff);
    color: #fff;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select,
#whats-new-form textarea {
    width: 100%;
    border: 1px solid #2a527f;
    border-radius: 14px;
    background: #08111f;
    color: var(--yf-text);
    padding: 0.85rem 1rem;
}

textarea {
    min-height: 150px;
}

label {
    color: var(--yf-muted);
    font-weight: 700;
}

.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    z-index: 100000;
    top: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    background: #fff;
    color: #07111f;
}

.site-header {
    position: sticky;
    z-index: 90;
    top: 0;
    background: rgba(8, 17, 31, 0.94);
    border-bottom: 1px solid rgba(74, 141, 255, 0.24);
    backdrop-filter: blur(16px);
}

.header-inner,
.site-main,
.site-footer .footer-inner,
.yf-front-inner {
    width: min(var(--yf-max-width), calc(100% - 2rem));
    margin-inline: auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 1.5rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
}

.custom-logo {
    max-width: 56px;
    border-radius: 16px;
}

.site-title {
    margin: 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.1;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-description {
    margin: 0.15rem 0 0;
    color: var(--yf-muted);
    font-size: 0.92rem;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
}

.primary-menu,
.primary-menu ul,
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.primary-menu a {
    display: block;
    padding: 0.58rem 0.82rem;
    border-radius: 999px;
    color: var(--yf-muted);
    text-decoration: none;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    background: rgba(74, 141, 255, 0.16);
    color: #fff;
}

.primary-menu li {
    position: relative;
}

.primary-menu ul {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 220px;
    padding: 0.45rem;
    border: 1px solid var(--yf-border);
    border-radius: 16px;
    background: #08111f;
    box-shadow: var(--yf-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-main {
    padding: clamp(2rem, 6vw, 4rem) 0;
}

.yf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: start;
}

.yf-content-stack > * + * {
    margin-top: 1.25rem;
}

.yf-hero {
    overflow: hidden;
    border: 1px solid rgba(74, 141, 255, 0.3);
    border-radius: var(--yf-radius-lg);
    background:
        radial-gradient(circle at 15% 20%, rgba(246, 211, 122, 0.14), transparent 14rem),
        radial-gradient(circle at 82% 12%, rgba(74, 141, 255, 0.28), transparent 20rem),
        linear-gradient(135deg, #0b1728 0%, #10233f 55%, #07111f 100%);
    box-shadow: var(--yf-shadow);
}

.yf-hero-content {
    max-width: 760px;
    padding: clamp(2rem, 7vw, 5.5rem);
}

.yf-eyebrow {
    display: inline-flex;
    margin: 0 0 0.8rem;
    padding: 0.22rem 0.72rem;
    border: 1px solid rgba(246, 211, 122, 0.34);
    border-radius: 999px;
    color: var(--yf-gold);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.yf-hero h1,
.page-title,
.entry-title {
    color: #fff;
    line-height: 1.12;
}

.yf-hero h1 {
    max-width: 12ch;
    margin: 0 0 1rem;
    font-size: clamp(2.6rem, 8vw, 5.75rem);
}

.yf-hero p {
    max-width: 62ch;
    margin: 0 0 1.6rem;
    color: #dbe7ff;
    font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.yf-hero-actions,
.yf-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.yf-button.yf-button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.yf-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: clamp(2rem, 6vw, 4rem) 0 1rem;
}

.yf-section-header h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.entry-card,
.widget,
.yf-panel,
.comments-area,
.comment-respond,
.buddypress-wrap .activity-list .activity-item,
.activity-update-form,
.bp-navs,
.bb-grid-cell,
#buddypress .activity-list li,
#buddypress div.item-list-tabs,
#buddypress form#whats-new-form {
    border: 1px solid var(--yf-border);
    border-radius: var(--yf-radius);
    background: linear-gradient(180deg, rgba(16, 35, 63, 0.98), rgba(11, 23, 40, 0.98));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.entry-card {
    overflow: hidden;
}

.entry-card .post-thumbnail {
    display: block;
    max-height: 380px;
    overflow: hidden;
    background: #08111f;
}

.entry-card .post-thumbnail img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.entry-card-inner,
.yf-panel,
.comments-area,
.comment-respond {
    padding: clamp(1.15rem, 3vw, 1.6rem);
}

.entry-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
}

.entry-title a {
    color: #fff;
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--yf-link-hover);
}

.entry-meta,
.entry-footer,
.comment-metadata,
.yf-muted {
    color: var(--yf-muted);
    font-size: 0.94rem;
}

.entry-meta a,
.entry-footer a,
.comment-metadata a {
    color: #cbdafe;
}

.entry-content,
.entry-summary {
    color: #edf3ff;
}

.entry-content > *:first-child,
.entry-summary > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child,
.entry-summary > *:last-child {
    margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    line-height: 1.25;
}

.entry-content blockquote,
.wp-block-quote {
    margin-left: 0;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--yf-accent);
    border-radius: 0 16px 16px 0;
    background: rgba(74, 141, 255, 0.08);
    color: #e7efff;
}

.wp-block-separator {
    border-color: var(--yf-border);
}

.wp-block-table table {
    border-color: var(--yf-border);
}

.wp-block-table td,
.wp-block-table th {
    border-color: var(--yf-border);
}

.yf-sidebar {
    position: sticky;
    top: 110px;
}

.widget {
    padding: 1.25rem;
}

.widget + .widget {
    margin-top: 1rem;
}

.widget-title,
.widget h2,
.yf-panel-title {
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: 1.1rem;
}

.widget ul {
    padding-left: 1.2rem;
}

.search-form {
    display: flex;
    gap: 0.6rem;
}

.search-form label {
    flex: 1;
}

.yf-scripture-card,
.yf-prayer-card {
    position: relative;
    overflow: hidden;
    margin: 1.5rem 0;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    border: 1px solid rgba(74, 141, 255, 0.34);
    border-left: 5px solid var(--yf-accent);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(140, 196, 255, 0.18), transparent 12rem),
        linear-gradient(135deg, #10233f, #173764);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.yf-scripture-card::before {
    content: "\2726";
    position: absolute;
    right: 1.1rem;
    top: 0.35rem;
    color: rgba(255, 255, 255, 0.1);
    font-size: 4rem;
    line-height: 1;
}

.yf-scripture-reference {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--yf-gold);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.yf-prayer-card {
    border-left-color: var(--yf-gold);
    background: linear-gradient(135deg, #132b4e, #12263f);
}

.yf-prayer-button,
.yf-prayer-card .yf-button {
    background: linear-gradient(135deg, #355fa3, #4a8dff);
}

.nav-links,
.post-navigation .nav-links,
.posts-navigation .nav-links,
.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.nav-links a,
.page-numbers {
    display: inline-flex;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--yf-border);
    border-radius: 999px;
    background: rgba(16, 35, 63, 0.78);
    text-decoration: none;
}

.page-numbers.current {
    background: var(--yf-accent);
    color: #fff;
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin-left: 1.25rem;
    padding-left: 1rem;
    border-left: 1px solid var(--yf-border);
}

.comment-body {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid rgba(34, 68, 111, 0.74);
    border-radius: 16px;
    background: rgba(8, 17, 31, 0.66);
}

.avatar {
    border-radius: 999px;
}

.site-footer {
    margin-top: clamp(2rem, 6vw, 4rem);
    border-top: 1px solid rgba(74, 141, 255, 0.2);
    background: #050c16;
    color: #9fb5d6;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.footer-menu a {
    color: #cbdafe;
    text-decoration: none;
}

.yf-empty-state {
    padding: 2rem;
    text-align: center;
}

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

.yf-feed-grid .entry-title {
    font-size: 1.3rem;
}

/* Optional BuddyPress/BuddyBoss plugin surface styling. The theme does not depend on these plugins. */
.buddypress-wrap,
#buddypress {
    color: var(--yf-text);
}

.buddypress-wrap .activity-list .activity-item,
.activity-update-form,
.bp-navs,
.bb-grid-cell,
#buddypress .activity-list li,
#buddypress div.item-list-tabs,
#buddypress form#whats-new-form {
    padding: 1.15rem;
}

.activity-content,
.entry-content,
#buddypress .activity-content {
    line-height: 1.8;
}

.activity-meta.action,
#buddypress .activity-meta {
    color: var(--yf-muted);
}

.sidebar,
.widget-area {
    background: transparent;
}

@media (max-width: 900px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .header-inner {
        align-items: flex-start;
        padding: 1rem 0;
    }

    .menu-toggle {
        display: inline-flex;
        margin-top: 0.2rem;
    }

    .main-navigation {
        flex-direction: column;
        align-items: flex-end;
    }

    .primary-menu-container {
        display: none;
        width: min(82vw, 330px);
        padding: 0.8rem;
        border: 1px solid var(--yf-border);
        border-radius: 18px;
        background: #08111f;
        box-shadow: var(--yf-shadow);
    }

    .main-navigation.toggled .primary-menu-container {
        display: block;
    }

    .primary-menu {
        display: block;
    }

    .primary-menu a {
        border-radius: 12px;
    }

    .primary-menu ul {
        position: static;
        display: block;
        min-width: 0;
        margin-left: 0.75rem;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
    }

    .yf-layout {
        grid-template-columns: 1fr;
    }

    .yf-sidebar {
        position: static;
    }

    .yf-feed-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        display: block;
        text-align: center;
    }

    .footer-menu {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 600px) {
    .search-form,
    .yf-section-header,
    .nav-links,
    .post-navigation .nav-links,
    .posts-navigation .nav-links {
        display: block;
    }

    .search-form input[type="submit"] {
        width: 100%;
        margin-top: 0.6rem;
    }

    .nav-links > * + *,
    .post-navigation .nav-links > * + *,
    .posts-navigation .nav-links > * + * {
        margin-top: 0.7rem;
    }
}

/* Covenant Hub community system: original BuddyBoss-inspired UX, no BuddyBoss dependency. */
:root {
    --yfch-card: rgba(16, 35, 63, 0.86);
    --yfch-card-strong: rgba(19, 43, 78, 0.96);
    --yfch-line: rgba(140, 196, 255, 0.20);
    --yfch-glow: 0 24px 70px rgba(74, 141, 255, 0.18);
}

.yfch-app-shell {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) minmax(220px, 300px);
    gap: 1.25rem;
    align-items: start;
    padding-block: 1.5rem 3rem;
}

.yfch-rail {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 1rem;
}

.yfch-profile-mini,
.yfch-widget,
.yfch-composer-card,
.yfch-feature-card,
.yfch-prayer-wall-block,
.yfch-section-card,
.yfch-feed-card,
.yfch-directory-card {
    border: 1px solid var(--yfch-line);
    border-radius: 24px;
    background: linear-gradient(180deg, var(--yfch-card), rgba(8, 17, 31, 0.82));
    box-shadow: var(--yfch-glow);
}

.yfch-profile-mini {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
}

.yfch-profile-mini img,
.yfch-composer-avatar img {
    border-radius: 18px;
    border: 2px solid rgba(246, 211, 122, 0.35);
}

.yfch-profile-mini strong,
.yfch-profile-mini span {
    display: block;
}

.yfch-profile-mini span {
    color: var(--yf-muted);
    font-size: 0.9rem;
}

.yfch-side-menu {
    display: grid;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0.8rem;
    border: 1px solid var(--yfch-line);
    border-radius: 24px;
    background: rgba(8, 17, 31, 0.72);
}

.yfch-side-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    color: var(--yf-text);
    text-decoration: none;
}

.yfch-side-menu a:hover,
.yfch-side-menu .current-menu-item > a {
    background: rgba(74, 141, 255, 0.18);
    color: #fff;
}

.yfch-feed-column {
    display: grid;
    gap: 1.2rem;
    min-width: 0;
}

.yfch-dashboard-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 4vw, 3rem);
    border: 1px solid rgba(246, 211, 122, 0.22);
    border-radius: 32px;
    background:
        radial-gradient(circle at 18% 10%, rgba(246, 211, 122, 0.16), transparent 24rem),
        radial-gradient(circle at 86% 0%, rgba(74, 141, 255, 0.26), transparent 28rem),
        linear-gradient(135deg, rgba(16, 35, 63, 0.96), rgba(5, 12, 22, 0.96));
    box-shadow: 0 32px 90px rgba(0,0,0,0.34);
}

.yfch-dashboard-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.yfch-dashboard-hero p:not(.yf-eyebrow) {
    max-width: 720px;
    color: var(--yf-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.yfch-hero-actions,
.yfch-prayer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.2rem;
}

.yfch-button-ghost {
    border: 1px solid rgba(140, 196, 255, 0.32);
    background: rgba(255,255,255,0.06) !important;
    color: #fff;
    box-shadow: none;
}

.yfch-composer-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1rem;
}

.yfch-composer-box {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding-inline: 1rem;
    border: 1px solid rgba(140,196,255,.18);
    border-radius: 18px;
    background: rgba(7,17,31,.76);
    color: var(--yf-muted);
}

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

.yfch-feature-card,
.yfch-directory-card,
.yfch-widget,
.yfch-section-card {
    padding: 1.2rem;
}

.yfch-feature-icon,
.yfch-directory-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(246, 211, 122, 0.13);
    color: var(--yf-gold);
    font-weight: 800;
}

.yfch-feature-card h3,
.yfch-directory-card h2,
.yfch-widget h2,
.yfch-section-card h2 {
    margin-bottom: 0.35rem;
}

.yfch-feature-card p,
.yfch-directory-card p,
.yfch-widget li,
.yfch-feed-card p {
    color: var(--yf-muted);
}

.yfch-prayer-wall-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: linear-gradient(135deg, rgba(74,141,255,.16), rgba(246,211,122,.08));
}

.yfch-post-stack {
    display: grid;
    gap: 1rem;
}

.yfch-feed-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.yfch-feed-thumb img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
    border-radius: 18px;
}

.yfch-read-more {
    font-weight: 800;
    text-decoration: none;
}

.yfch-status-card ul {
    padding-left: 1.2rem;
}

.yfch-members-hub {
    padding-block: 2rem 4rem;
}

.yfch-members-hero {
    margin-bottom: 1.2rem;
}

.yfch-directory-card {
    min-height: 210px;
}

/* Optional compatibility styling for common community plugins. No dependency required. */
#buddypress,
.buddypress-wrap,
.bp-wrap,
.bbpress-wrapper,
.woocommerce,
.learndash-wrapper {
    color: var(--yf-text);
}

#buddypress .activity-list > li,
#buddypress .members-list > li,
#buddypress .groups-list > li,
.bbpress-wrapper .bbp-body ul,
.woocommerce ul.products li.product,
.learndash-wrapper .ld-item-list-item {
    border: 1px solid var(--yfch-line) !important;
    border-radius: 22px !important;
    background: rgba(16,35,63,.76) !important;
    box-shadow: var(--yfch-glow);
}

#buddypress div.item-list-tabs ul li a,
#buddypress .bp-navs ul li a,
.bbpress-wrapper button,
.woocommerce a.button,
.learndash-wrapper .ld-button {
    border-radius: 999px !important;
}

@media (max-width: 1100px) {
    .yfch-app-shell {
        grid-template-columns: minmax(0, 1fr);
    }
    .yfch-rail {
        position: static;
    }
    .yfch-left-rail {
        order: -1;
    }
    .yfch-feature-grid,
    .yfch-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .yfch-feature-grid,
    .yfch-directory-grid,
    .yfch-feed-card,
    .yfch-composer-card {
        grid-template-columns: 1fr;
    }
    .yfch-prayer-wall-block {
        display: block;
    }
}
