/**
 * Astro Himalayan Community – Premium Spiritual Design
 * Scoped under .ahc- body classes to avoid colliding with main site CSS.
 */

:root {
    --ahc-bg: #f9f6f1;
    --ahc-surface: #ffffff;
    --ahc-text: #2c2a26;
    --ahc-text-muted: #6b6560;
    --ahc-primary: #5c4033;
    --ahc-primary-hover: #4a3329;
    --ahc-accent: #8b6914;
    --ahc-border: #e8e2d9;
    --ahc-success: #2e7d32;
    --ahc-error: #c62828;
    --ahc-radius: 12px;
    --ahc-shadow: 0 4px 20px rgba(44, 42, 38, 0.06);
    --ahc-font-serif: 'Cormorant Garamond', Georgia, serif;
    --ahc-font-sans: 'Source Sans 3', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.ahc-body {
    margin: 0;
    font-family: var(--ahc-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ahc-text);
    background: var(--ahc-bg);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.ahc-header {
    background: var(--ahc-surface);
    border-bottom: 1px solid var(--ahc-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ahc-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ahc-logo {
    text-decoration: none;
    color: var(--ahc-primary);
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.ahc-logo-text {
    font-family: var(--ahc-font-serif);
    font-size: 1.35rem;
    font-weight: 600;
}

.ahc-logo-sub {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ahc-accent);
}

.ahc-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.ahc-nav a {
    text-decoration: none;
    color: var(--ahc-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.ahc-nav a:hover,
.ahc-nav a.active {
    color: var(--ahc-primary);
}

.ahc-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.ahc-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ahc-primary);
    margin: 5px 0;
}

/* Buttons */
.ahc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ahc-btn-primary {
    background: var(--ahc-primary);
    color: #fff;
}

.ahc-btn-primary:hover {
    background: var(--ahc-primary-hover);
    color: #fff;
}

.ahc-btn-outline {
    background: transparent;
    border-color: var(--ahc-primary);
    color: var(--ahc-primary);
}

.ahc-btn-outline:hover {
    background: var(--ahc-primary);
    color: #fff;
}

/* User menu */
.ahc-user-menu {
    position: relative;
}

.ahc-user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--ahc-text);
}

.ahc-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--ahc-border);
}

.ahc-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.4rem;
    background: var(--ahc-surface);
    border: 1px solid var(--ahc-border);
    border-radius: 10px;
    box-shadow: var(--ahc-shadow);
    min-width: 180px;
    padding: 0.4rem 0;
    z-index: 50;
}

.ahc-dropdown.open {
    display: block;
}

.ahc-dropdown a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--ahc-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.ahc-dropdown a:hover {
    background: var(--ahc-bg);
}

/* Flashes */
.ahc-flashes {
    max-width: 1120px;
    margin: 1rem auto 0;
    padding: 0 1.25rem;
}

.ahc-flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.ahc-flash-success { background: #e8f5e9; color: #1b5e20; }
.ahc-flash-error { background: #fde8e8; color: #9b1c1c; }
.ahc-flash-info { background: #e3f2fd; color: #0d47a1; }

/* Main layout */
.ahc-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 3rem;
}

.ahc-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* Welcome */
.ahc-welcome {
    background: linear-gradient(135deg, #f3ede4 0%, #eae3d8 100%);
    border-radius: var(--ahc-radius);
    padding: 2rem 1.75rem;
    margin-bottom: 1.75rem;
    text-align: center;
}

.ahc-welcome h1 {
    font-family: var(--ahc-font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    margin: 0 0 0.6rem;
    color: var(--ahc-primary);
}

.ahc-welcome p {
    margin: 0 auto 1.25rem;
    max-width: 540px;
    color: var(--ahc-text-muted);
}

.ahc-welcome-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Feed filters */
.ahc-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.ahc-filter {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--ahc-border);
    background: var(--ahc-surface);
    color: var(--ahc-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.ahc-filter.active,
.ahc-filter:hover {
    background: var(--ahc-primary);
    color: #fff;
    border-color: var(--ahc-primary);
}

/* Post card */
.ahc-post-card {
    background: var(--ahc-surface);
    border: 1px solid var(--ahc-border);
    border-radius: var(--ahc-radius);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    box-shadow: var(--ahc-shadow);
}

.ahc-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ahc-post-header img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.ahc-post-meta {
    flex: 1;
}

.ahc-post-meta .name {
    font-weight: 600;
    color: var(--ahc-text);
    text-decoration: none;
}

.ahc-post-meta .name:hover { color: var(--ahc-primary); }

.ahc-post-meta .sub {
    font-size: 0.8rem;
    color: var(--ahc-text-muted);
}

.ahc-post-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f0ebe3;
    color: var(--ahc-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.ahc-post-title {
    font-family: var(--ahc-font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.ahc-post-title a {
    color: var(--ahc-text);
    text-decoration: none;
}

.ahc-post-title a:hover { color: var(--ahc-primary); }

.ahc-post-excerpt {
    color: var(--ahc-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.ahc-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.ahc-tag {
    font-size: 0.75rem;
    background: #f5f1eb;
    color: var(--ahc-accent);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    text-decoration: none;
}

.ahc-tag:hover { background: #ebe4da; }

.ahc-post-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--ahc-text-muted);
    border-top: 1px solid var(--ahc-border);
    padding-top: 0.75rem;
}

.ahc-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--ahc-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
}

.ahc-action-btn:hover,
.ahc-action-btn.liked {
    color: var(--ahc-primary);
}

/* Sidebar */
.ahc-sidebar {
    position: sticky;
    top: 5.5rem;
}

.ahc-sidebar-card {
    background: var(--ahc-surface);
    border: 1px solid var(--ahc-border);
    border-radius: var(--ahc-radius);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
}

.ahc-sidebar-card h3 {
    font-family: var(--ahc-font-serif);
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
    color: var(--ahc-primary);
}

.ahc-sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ahc-sidebar-card li {
    margin-bottom: 0.4rem;
}

.ahc-sidebar-card a {
    color: var(--ahc-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.ahc-sidebar-card a:hover { color: var(--ahc-primary); }

/* Search box */
.ahc-search-form {
    display: flex;
    gap: 0.4rem;
}

.ahc-search-form input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ahc-border);
    border-radius: 8px;
    font-size: 0.9rem;
}

.ahc-search-form button {
    padding: 0.5rem 0.85rem;
    background: var(--ahc-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Pagination */
.ahc-pagination ul {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    flex-wrap: wrap;
}

.ahc-pagination a,
.ahc-pagination span {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--ahc-border);
    text-decoration: none;
    color: var(--ahc-text);
    font-size: 0.9rem;
}

.ahc-pagination .active span {
    background: var(--ahc-primary);
    color: #fff;
    border-color: var(--ahc-primary);
}

/* Auth forms */
.ahc-auth-box {
    max-width: 420px;
    margin: 2rem auto;
    background: var(--ahc-surface);
    border: 1px solid var(--ahc-border);
    border-radius: var(--ahc-radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--ahc-shadow);
}

.ahc-auth-box h1 {
    font-family: var(--ahc-font-serif);
    font-size: 1.6rem;
    margin: 0 0 1.25rem;
    text-align: center;
    color: var(--ahc-primary);
}

.ahc-form-group {
    margin-bottom: 1rem;
}

.ahc-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.ahc-form-group input,
.ahc-form-group textarea,
.ahc-form-group select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--ahc-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.ahc-form-group input:focus,
.ahc-form-group textarea:focus {
    outline: none;
    border-color: var(--ahc-primary);
    box-shadow: 0 0 0 3px rgba(92, 64, 51, 0.12);
}

.ahc-form-actions {
    margin-top: 1.25rem;
}

.ahc-form-actions .ahc-btn {
    width: 100%;
    padding: 0.7rem;
}

.ahc-auth-links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--ahc-text-muted);
}

.ahc-auth-links a {
    color: var(--ahc-primary);
}

/* Footer */
.ahc-footer {
    background: #3d2b1f;
    color: #e8e2d9;
    padding: 2.5rem 1.25rem 2rem;
    margin-top: 3rem;
}

.ahc-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.6fr;
    gap: 2rem;
}

.ahc-footer a {
    color: #d4cfc6;
    text-decoration: none;
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.ahc-footer a:hover { color: #fff; }

.ahc-disclaimer {
    font-size: 0.8rem;
    opacity: 0.85;
    line-height: 1.5;
}

.ahc-copy {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.75rem;
}

/* Mobile */
@media (max-width: 860px) {
    .ahc-layout {
        grid-template-columns: 1fr;
    }

    .ahc-sidebar {
        position: static;
        order: 2;
    }

    .ahc-feed {
        order: 1;
        min-width: 0;
    }

    .ahc-nav-toggle {
        display: block;
    }

    .ahc-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ahc-surface);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--ahc-border);
        box-shadow: var(--ahc-shadow);
    }

    .ahc-nav.open {
        display: flex;
    }

    .ahc-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ahc-welcome h1 {
        font-size: 1.5rem;
    }
}


/* Community post filters and search on one toolbar */
.ahc-feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.ahc-feed-toolbar .ahc-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    min-width: 0;
}

.ahc-feed-toolbar .ahc-toolbar-search {
    display: flex;
    flex: 1 1 210px;
    max-width: 320px;
    min-width: 0;
    margin-left: auto;
}

.ahc-toolbar-search input {
    min-width: 0;
    width: 100%;
}

.ahc-toolbar-search button {
    white-space: nowrap;
}

@media (max-width: 860px) {
    .ahc-feed-toolbar {
        align-items: stretch;
    }
    .ahc-feed-toolbar .ahc-toolbar-search {
        flex: 1 1 100%;
        max-width: none;
        margin-left: 0;
    }
}

/* Filter and search toolbar */
.ahc-feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ahc-feed-toolbar .ahc-filters {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.ahc-feed-toolbar .ahc-toolbar-search {
    display: flex;
    flex: 1 1 220px;
    min-width: 0;
    max-width: 330px;
    margin-left: auto;
}

.ahc-toolbar-search input {
    min-width: 0;
}

@media (max-width: 860px) {
    .ahc-feed-toolbar .ahc-toolbar-search {
        flex-basis: 100%;
        max-width: none;
        margin-left: 0;
    }
}

/* Compact community topic discovery */
.ahc-topics-subtitle {
    color: var(--ahc-text-muted);
    font-size: 13px;
    margin: -4px 0 14px;
}

.ahc-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ahc-sidebar-card .ahc-topic-link {
    display: flex;
    align-items: center;
    padding: 12px;
    min-height: 48px;
    background: #f6f2ed;
    border: 1px solid #ebe3d9;
    border-radius: 10px;
    color: #45382e;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
}

.ahc-sidebar-card .ahc-topic-link:hover {
    background: #eee4d8;
    border-color: #cbb89f;
}

.ahc-topic-more {
    margin-top: 14px;
}

.ahc-topic-more summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--ahc-primary);
    font-weight: 600;
}

.ahc-topic-more .ahc-topic-grid {
    margin-top: 12px;
}

@media (max-width: 860px) {
    .ahc-sidebar {
        order: 2;
    }
    .ahc-feed {
        order: 1;
    }
}


/* Compact community guidelines */
.ahc-guidelines-compact {
    padding: 16px 18px;
    margin-bottom: 0;
}

.ahc-guidelines-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ahc-guidelines-icon {
    width: 35px;
    height: 35px;
    min-width: 35px;
    background: #f0e9df;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #71533f;
    font-size: 18px;
}

.ahc-guidelines-content h3 {
    font-size: 16px;
    margin: 0 0 5px;
}

.ahc-guidelines-content p {
    color: var(--ahc-text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 7px;
}

.ahc-guidelines-content a {
    font-size: 12px;
    font-weight: 600;
    color: var(--ahc-primary);
}

/* Refined compact footer */
.ahc-main {
    padding-bottom: 1.25rem;
}

.ahc-footer {
    margin-top: 0;
    padding: 24px 20px 18px;
}

.ahc-footer-inner {
    gap: 20px;
    align-items: start;
}

.ahc-footer a {
    margin-bottom: 5px;
    font-size: 13px;
}

.ahc-disclaimer {
    font-size: 12px;
    line-height: 1.5;
}

.ahc-copy {
    font-size: 12px;
    margin-top: 8px;
}

@media (max-width: 860px) {
    .ahc-footer {
        padding: 24px 18px 18px;
    }
    .ahc-footer-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}


/* AHC MINIMAL LIGHT FOOTER V1 */

.ahc-main {
    padding-bottom: 24px;
}

.ahc-footer {
    background: #faf8f5 !important;
    color: #453a32 !important;
    border-top: 1px solid #e8e1d8;
    margin-top: 0 !important;
    padding: 24px 22px 18px !important;
}

.ahc-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.5fr);
    gap: 24px;
    align-items: start;
}

.ahc-footer-inner > * {
    min-width: 0;
}

.ahc-footer h2,
.ahc-footer h3,
.ahc-footer h4,
.ahc-footer strong {
    color: #523d30 !important;
}

.ahc-footer p {
    color: #766d64;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 6px;
}

.ahc-footer a {
    display: block;
    color: #65574c !important;
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.ahc-footer a:hover {
    color: #8d6341 !important;
    text-decoration: underline !important;
}

.ahc-footer .ahc-disclaimer {
    font-size: 11px;
    line-height: 1.55;
    color: #8a8178;
    opacity: 1;
}

.ahc-footer .ahc-copy {
    font-size: 11px;
    color: #928981;
    opacity: 1;
    margin-top: 9px;
}

@media (max-width: 860px) {
    .ahc-footer {
        padding: 22px 20px 18px !important;
    }

    .ahc-footer-inner {
        grid-template-columns: minmax(0,1fr);
        gap: 13px;
    }

    .ahc-footer p {
        margin: 4px 0;
    }
}

@media (max-width: 480px) {
    .ahc-footer {
        padding: 20px 16px 16px !important;
    }
}


/* AHC BOTTOM REDESIGN V2 */

/* Smaller, cleaner topic discovery panel */
.ahc-topics-card {
    padding: 18px 20px !important;
}

.ahc-topics-card h3 {
    margin-bottom: 5px !important;
}

.ahc-topics-card .ahc-topics-subtitle {
    margin: 0 0 14px !important;
}

.ahc-topics-card .ahc-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ahc-topics-card .ahc-topic-link {
    padding: 10px 8px;
    min-height: 42px;
    justify-content: center;
    text-align: center;
    background: #faf7f3;
    border: 1px solid #e9e1d8;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.35;
}

.ahc-topics-card .ahc-topic-more {
    margin-top: 12px;
}

/* Completely redesigned footer */
.ahc-footer.ahc-footer-redesigned {
    background: #fcfaf7 !important;
    color: #4d4038 !important;
    border-top: 1px solid #e9e3db;
    padding: 28px 24px 20px !important;
    margin-top: 0 !important;
}

.ahc-bottom-shell {
    max-width: 1120px;
    margin: 0 auto;
}

.ahc-bottom-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 30px;
}

.ahc-bottom-brand {
    min-width: 180px;
}

.ahc-bottom-brand-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
    color: #5b3f30;
}

.ahc-bottom-brand-tag {
    margin-top: 6px;
    color: #a08468;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.ahc-bottom-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.ahc-footer .ahc-bottom-links a {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #62574e !important;
    font-size: 13px !important;
    font-weight: 500;
    text-decoration: none !important;
}

.ahc-footer .ahc-bottom-links a:hover {
    color: #a57951 !important;
}

.ahc-bottom-divider {
    height: 1px;
    background: #e9e3db;
    margin: 23px 0 14px;
}

.ahc-bottom-legal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    color: #837b72;
    font-size: 12px;
}

.ahc-footer .ahc-bottom-disclaimer {
    max-width: 900px;
    margin: 10px 0 0 !important;
    font-size: 11px;
    line-height: 1.5;
    color: #a09890 !important;
}

/* Narrow screens */
@media (max-width: 860px) {
    .ahc-footer.ahc-footer-redesigned {
        padding: 24px 20px 18px !important;
    }

    .ahc-bottom-main {
        gap: 17px;
    }

    .ahc-bottom-links {
        justify-content: flex-start;
        gap: 10px 18px;
    }
}

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

    .ahc-footer.ahc-footer-redesigned {
        padding: 22px 16px 16px !important;
    }

    .ahc-bottom-brand-name {
        font-size: 25px;
    }

    .ahc-bottom-links {
        gap: 9px 15px;
    }

    .ahc-bottom-divider {
        margin: 17px 0 12px;
    }
}


/* AHC FOOTER LAYOUT REFINEMENT V3 */

.ahc-footer.ahc-footer-redesigned {
    padding: 20px 22px 16px !important;
}

.ahc-bottom-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
}

.ahc-bottom-brand-name {
    font-size: 25px;
}

.ahc-bottom-brand-tag {
    font-size: 9px;
    letter-spacing: 1.2px;
}

.ahc-bottom-links {
    display: grid !important;
    grid-template-columns: repeat(2, max-content);
    gap: 9px 22px;
    justify-content: end;
}

.ahc-footer .ahc-bottom-links a {
    font-size: 12px !important;
    white-space: nowrap;
}

.ahc-bottom-divider {
    margin: 16px 0 11px;
}

.ahc-bottom-legal {
    font-size: 11px;
}

.ahc-footer .ahc-bottom-disclaimer {
    font-size: 10px;
    margin-top: 7px !important;
}

@media (max-width: 860px) {
    .ahc-bottom-main {
        grid-template-columns: minmax(0,1fr);
        gap: 15px;
    }

    .ahc-bottom-links {
        grid-template-columns: repeat(2, minmax(0,1fr));
        justify-content: start;
        gap: 10px 15px;
    }

    .ahc-footer .ahc-bottom-links a {
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .ahc-footer.ahc-footer-redesigned {
        padding: 18px 16px 14px !important;
    }

    .ahc-bottom-brand-name {
        font-size: 24px;
    }

    .ahc-bottom-legal {
        gap: 5px;
    }
}

/* Astro Himalayan premium brown footer */
.ahc-footer.ahc-footer-redesigned {
    background: #453025 !important;
    color: #f1e4d5 !important;
    border-top: 1px solid #6d5140 !important;
}

.ahc-footer .ahc-bottom-brand-name {
    color: #f8ebdd !important;
}

.ahc-footer .ahc-bottom-brand-tag {
    color: #d8b68c !important;
}

.ahc-footer .ahc-bottom-links a {
    color: #f1e4d5 !important;
}

.ahc-footer .ahc-bottom-links a:hover {
    color: #e5be86 !important;
}

.ahc-footer .ahc-bottom-divider {
    background: #7b6150 !important;
}

.ahc-footer .ahc-bottom-legal,
.ahc-footer .ahc-bottom-legal span {
    color: #cdbeb0 !important;
}

.ahc-footer .ahc-bottom-disclaimer {
    color: #c5b4a4 !important;
}


/* AHC COMPACT MOBILE NAV V1 */
@media (max-width: 860px) {

    #ahc-nav.ahc-nav {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        right: 12px !important;
        left: auto !important;
        width: min(340px, calc(100vw - 24px)) !important;
        max-height: min(70vh, 480px) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        padding: 14px !important;
        background: #faf7f3 !important;
        border: 1px solid #e5dacf !important;
        border-radius: 16px !important;
        box-shadow: 0 16px 45px rgba(48,31,20,.18) !important;
        z-index: 9999 !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    #ahc-nav.ahc-nav:not(.open) {
        display: none !important;
    }

    #ahc-nav.ahc-nav.open {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        align-items: stretch !important;
    }

    #ahc-nav.ahc-nav > a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 10px 6px !important;
        border: 1px solid #e9dfd3 !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        color: #50392c !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        box-sizing: border-box !important;
    }

    #ahc-nav.ahc-nav > a:hover,
    #ahc-nav.ahc-nav > a[aria-current="page"] {
        background: #eee6dc !important;
        color: #52382a !important;
    }

    #ahc-nav.ahc-nav > .ahc-user-menu {
        grid-column: 1 / -1 !important;
        border-top: 1px solid #e5dacf;
        padding-top: 10px !important;
        margin-top: 4px !important;
        min-width: 0;
    }

    #ahc-nav.ahc-nav .ahc-user-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 6px 8px !important;
        color: #50392c !important;
    }

    #ahc-nav.ahc-nav > .ahc-btn {
        grid-column: auto !important;
    }
}


/* AHC THREE FIXES V2 */

/* White text on primary Join buttons */
.ahc-header .ahc-btn-primary,
.ahc-nav .ahc-btn-primary,
.ahc-welcome .ahc-btn-primary {
    color: #ffffff !important;
}

/* Wider search box on desktop */
@media (min-width: 1050px) {
    .ahc-feed-toolbar .ahc-toolbar-search {
        max-width: 390px !important;
    }
}


/* AHC DISCOVERY SIDEBAR V1 */

.ahc-discovery-card {
    padding: 19px 20px;
}

.ahc-discovery-card h3 {
    font-size: 19px;
    margin: 0 0 8px;
    color: #624737;
}

.ahc-discovery-description {
    font-size: 13px;
    color: #837970;
    line-height: 1.6;
    margin: 0 0 12px;
}

.ahc-trending-item {
    display: block !important;
    padding: 13px 0;
    border-bottom: 1px solid #eee7df;
    text-decoration: none !important;
}

.ahc-trending-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.ahc-trending-item strong {
    display: block;
    color: #40352f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 5px;
}

.ahc-trending-item span {
    display: block;
    color: #92877d;
    font-size: 11px;
}

.ahc-trending-item:hover strong {
    color: #a47952;
}

.ahc-join-discovery {
    background: #eee6db;
    border: 1px solid #e3d5c4;
    padding: 22px 20px;
    text-align: center;
}

.ahc-join-symbol {
    color: #92714e;
    font-size: 25px;
    margin-bottom: 8px;
}

.ahc-join-discovery h3 {
    font-size: 23px;
    margin: 0 0 10px;
    color: #5a4031;
}

.ahc-join-discovery p {
    font-size: 13px;
    line-height: 1.7;
    color: #6d5c50;
    margin: 0 0 17px;
}

.ahc-sidebar-card .ahc-join-action {
    display: block;
    background: #604536;
    color: #fff !important;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.ahc-sidebar-card .ahc-join-action:hover {
    background: #493329;
}

.ahc-sidebar-card .ahc-guideline-link {
    font-size: 13px;
    font-weight: 600;
    color: #684a38;
    text-decoration: none;
}

@media (max-width: 860px) {
    .ahc-sidebar {
        order: 2;
        position: static;
    }

    .ahc-feed {
        order: 1;
    }
}

/* AHC SIDEBAR NATURAL SCROLL FIX */
.ahc-layout > .ahc-sidebar {
    position: static !important;
    top: auto !important;
    align-self: start !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.ahc-sidebar > .ahc-sidebar-card {
    display: block;
    position: relative;
    margin-bottom: 18px;
}

@media (max-width: 860px) {
    .ahc-layout > .ahc-sidebar {
        order: 2 !important;
    }

    .ahc-layout > .ahc-feed {
        order: 1 !important;
    }
}


/* AHC DESKTOP SIDEBAR GRID FIX V1 */

@media (min-width: 861px) {
    .ahc-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        align-items: start !important;
        gap: 2rem !important;
    }

    .ahc-layout > .ahc-feed {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .ahc-layout > .ahc-sidebar {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        position: static !important;
    }
}

@media (max-width: 860px) {
    .ahc-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .ahc-layout > .ahc-feed {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .ahc-layout > .ahc-sidebar {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }
}
