:root,
:root[data-bs-theme="dark"] {
    color-scheme: dark;
    --bs-body-font-family: "Vazirmatn", sans-serif;
    --bs-box-shadow: none;
    --bs-box-shadow-sm: none;
    --bs-box-shadow-lg: none;
    --bs-body-bg: #0f1115;
    --bs-body-color: #edf1f5;
    --bs-emphasis-color: #f8fbff;
    --bs-secondary-color: rgba(237, 241, 245, 0.74);
    --bs-secondary-color-rgb: 237, 241, 245;
    --bs-border-color-translucent: rgba(148, 163, 184, 0.18);
    --bs-warning: #e6c99a;
    --bs-warning-rgb: 230, 201, 154;
    --bs-warning-text-emphasis: #151310;
    --bs-warning-bg-subtle: rgba(230, 201, 154, 0.1);
    --bs-warning-border-subtle: rgba(230, 201, 154, 0.26);
    --bs-dark: #171b21;
    --bs-dark-rgb: 23, 27, 33;
    --bg: #0f1115;
    --surface: rgba(20, 24, 30, 0.84);
    --surface-strong: rgba(28, 33, 40, 0.92);
    --border: rgba(148, 163, 184, 0.18);
    --text: #edf1f5;
    --muted: rgba(237, 241, 245, 0.74);
    --accent: #e6c99a;
    --accent-strong: #f0d3a4;
    --shadow: none;
    --radius-lg: 1.8rem;
    --radius-md: 1.4rem;
    --radius-sm: 1rem;
}

:root[data-bs-theme="light"] {
    --bs-body-font-family: "Vazirmatn", sans-serif;
    --bs-box-shadow: none;
    --bs-box-shadow-sm: none;
    --bs-box-shadow-lg: none;
    --bs-body-bg: #f5ede1;
    --bs-body-color: #241910;
    --bs-emphasis-color: #130d08;
    --bs-secondary-color: rgba(36, 25, 16, 0.72);
    --bs-secondary-color-rgb: 36, 25, 16;
    --bs-border-color-translucent: rgba(120, 83, 42, 0.16);
    --bs-warning: #c2873d;
    --bs-warning-rgb: 194, 135, 61;
    --bs-warning-text-emphasis: #1d1208;
    --bs-warning-bg-subtle: rgba(194, 135, 61, 0.14);
    --bs-warning-border-subtle: rgba(194, 135, 61, 0.28);
    --bs-dark: #f8f3ec;
    --bs-dark-rgb: 248, 243, 236;
    --bg: #f5ede1;
    --surface: rgba(255, 250, 244, 0.82);
    --surface-strong: rgba(255, 247, 238, 0.96);
    --border: rgba(120, 83, 42, 0.16);
    --text: #241910;
    --muted: rgba(74, 52, 24, 0.7);
    --accent: #a66b24;
    --accent-strong: #7c4a10;
    --shadow: none;
    --radius-lg: 1.8rem;
    --radius-md: 1.4rem;
    --radius-sm: 1rem;
}

html {
    direction: rtl;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--bs-body-font-family);
    background:
        radial-gradient(circle at top right, rgba(148, 163, 184, 0.14), transparent 24%),
        radial-gradient(circle at bottom left, rgba(96, 110, 128, 0.12), transparent 28%),
        linear-gradient(180deg, #171c23 0%, var(--bg) 100%);
    color: var(--bs-body-color);
    transition: background 0.35s ease, color 0.35s ease;
}

[data-bs-theme="light"] body {
    background:
        radial-gradient(circle at top right, rgba(214, 172, 109, 0.18), transparent 24%),
        radial-gradient(circle at bottom left, rgba(176, 116, 61, 0.14), transparent 28%),
        linear-gradient(180deg, #fbf6ef 0%, var(--bg) 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.site-header,
.site-footer,
.home-shell,
.page-shell {
    position: relative;
    z-index: 1;
}

.site-header {
    padding: 2rem 0 1.5rem;
}

.panel-surface,
.topline-pill,
.navbar-shell,
.footer-panel,
.site-offcanvas {
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.topline-pill,
.navbar-shell,
.footer-panel,
.site-offcanvas,
.site-footer {
    border-radius: var(--radius-md);
}

.panel-surface {
    border-radius: var(--radius-lg);
}

.topline-pill {
    color: var(--muted);
}

.topline-pill a,
.topic-pill,
.news-flash a,
.footer-link-list a {
    color: var(--accent);
}

.site-blog-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.site-blog-header-row {
    min-height: 5.75rem;
}

.site-brand-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: auto;
    text-align: center;
    text-decoration: none;
}

.site-brand-copy {
    display: grid;
    gap: 0.1rem;
    justify-items: center;
}

.site-header-actions {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
}

.site-header-actions-start {
    justify-content: flex-start;
}

.site-header-actions-end {
    justify-content: flex-end;
}

.site-header-form {
    margin: 0;
}

.site-nav-scroller {
    position: relative;
    z-index: 2;
    overflow-y: hidden;
    padding: 0.35rem 0 0.15rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.site-main-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.75rem;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.site-main-nav::-webkit-scrollbar {
    display: none;
}

.shadow,
.shadow-sm,
.shadow-lg,
.btn:focus,
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.page-link:focus,
.nav-link:focus,
.navbar-toggler:focus,
.offcanvas,
.dropdown-menu {
    box-shadow: none !important;
}

.navbar-brand-mark {
    display: block;
    flex-shrink: 0;
    width: clamp(4.8rem, 9vw, 6.2rem);
    max-width: 100%;
    height: auto;
}

.brand-logo-mark {
    color: #000000;
    transition: color 0.25s ease;
}

.navbar-brand-mark-sm {
    width: clamp(5rem, 11vw, 7rem);
}

[data-bs-theme="dark"] .brand-logo-mark {
    color: var(--accent);
}

.brand-copy strong {
    display: block;
    font-family: "Alexandria", sans-serif;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    line-height: 1;
}

.brand-copy small {
    display: block;
    max-width: 28rem;
    line-height: 1.55;
    font-size: 0.84rem;
    color: var(--muted);
}

.site-brand-copy small {
    max-width: 18rem;
}

.site-main-nav .nav-chip {
    border: 0;
    background: transparent;
    border-radius: 0;
    padding: 0.5rem 0 !important;
    position: relative;
    color: var(--muted);
    font-size: 0.96rem;
}

.site-main-nav .nav-chip::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.05rem;
    border-bottom: 1px solid transparent;
}

.site-main-nav .nav-chip:hover::after,
.site-main-nav .nav-chip.active::after {
    border-bottom-color: var(--accent);
}

.site-main-nav .nav-chip:hover,
.site-main-nav .nav-chip.active {
    background: transparent;
    border-color: transparent;
    color: var(--bs-emphasis-color);
}

.site-header .theme-toggle {
    width: 2rem;
    height: 2rem;
    border-radius: 0;
    border-bottom: 0;
    padding: 0;
}

.site-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-header-icon:hover,
.site-header-icon:focus {
    color: var(--accent);
}

.site-header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.2rem 0;
    border: 1px solid transparent;
    background: transparent;
    color: var(--bs-emphasis-color);
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.15;
    text-decoration: none;
}

.site-header-link:hover,
.site-header-link:focus {
    color: var(--accent);
    border-color: transparent;
}

.site-header-link-accent {
    color: var(--accent);
    padding-inline: 0.8rem;
    border-color: var(--border);
}

@media (min-width: 1200px) {
    .site-main-nav {
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .site-blog-header {
        padding-bottom: 0.85rem;
    }

    .site-header-actions {
        gap: 0.75rem;
    }

    .site-main-nav {
        gap: 1.15rem;
    }

    .site-brand-copy small {
        max-width: 16rem;
    }
}

@media (max-width: 767.98px) {
    .site-blog-header-row {
        min-height: 0;
    }

    .site-brand-link {
        gap: 0.45rem;
    }

    .site-header-actions-start,
    .site-header-actions-end {
        justify-content: center;
    }

    .site-nav-scroller {
        margin-bottom: 1rem;
    }
}

.footer-link-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin: 0;
}

.footer-link-list a {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
    color: var(--bs-emphasis-color);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link-list a:hover,
.footer-link-list a:focus {
    color: var(--accent);
    border-bottom-color: currentColor;
}

.nav-chip,
.topic-pill,
.btn-gold,
.btn-outline-gold {
    border-radius: 999px;
    padding: 0.7rem 1rem;
}

.nav-chip,
.topic-pill {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
}

.nav-chip {
    padding: 0.7rem 1rem !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-chip:hover,
.nav-chip.active {
    background: rgba(230, 201, 154, 0.12);
    border-color: rgba(230, 201, 154, 0.32);
}

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.theme-toggle i {
    font-size: 1.05rem;
}

.theme-toggle:hover,
.theme-toggle:focus {
    background: transparent;
    color: var(--accent-strong);
    transform: translateY(-1px);
    opacity: 1;
}

@media (max-width: 991.98px) {
    .site-utility-actions {
        width: 100%;
    }

    .site-utility-actions > .btn,
    .site-utility-actions > a,
    .site-utility-actions > form,
    .site-utility-actions > form .btn {
        width: 100%;
    }
}

.eyebrow {
    display: inline-flex;
    font-family: "Alexandria", sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--accent-strong);
}

.meta-row {
    color: rgba(247, 241, 229, 0.68);
    font-size: 0.95rem;
}

.btn-gold,
.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.btn-gold {
    background: var(--accent);
    color: #1a140f;
}

.btn-outline-gold {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.footer-title {
    font-family: "Alexandria", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: 0.9rem;
}

.pagination {
    --bs-pagination-color: var(--accent);
    --bs-pagination-bg: rgba(255, 255, 255, 0.03);
    --bs-pagination-border-color: rgba(230, 201, 154, 0.16);
    --bs-pagination-hover-color: var(--bs-emphasis-color);
    --bs-pagination-hover-bg: rgba(230, 201, 154, 0.12);
    --bs-pagination-hover-border-color: rgba(230, 201, 154, 0.28);
    --bs-pagination-focus-color: var(--bs-emphasis-color);
    --bs-pagination-focus-bg: rgba(230, 201, 154, 0.16);
    --bs-pagination-focus-box-shadow: none;
    --bs-pagination-active-color: #1a140f;
    --bs-pagination-active-bg: var(--accent);
    --bs-pagination-active-border-color: var(--accent);
}

.home-shell,
.page-shell {
    padding-bottom: 4rem;
}

.home-hero-shell {
    margin-bottom: 2rem;
}

.home-hero-feature {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.home-hero-feature .lead-story-copy {
    padding: 1.75rem 0;
}

.home-hero-feature .lead-story-art {
    padding: 0;
    min-height: 100%;
}

.home-hero-feature .lead-story-art a {
    display: block;
    height: 100%;
}

.lead-story-copy,
.lead-story-art,
.story-card-copy,
.stats-panel,
.news-flash,
.list-story,
.site-footer,
.archive-hero,
.news-story-frame,
.static-page-frame,
.empty-panel,
.post-content-frame,
.related-panel,
.author-panel {
    padding: 1.5rem;
}

.lead-story-copy h1,
.section-heading h2,
.archive-hero h1,
.post-entry-header h1,
.news-story-frame h1,
.static-page-frame h1,
.empty-panel h1 {
    font-family: "Alexandria", sans-serif;
}

.lead-story-copy h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.2;
    margin: 1rem 0;
}

.home-hero-feature .lead-story-copy h1 {
    font-size: clamp(2.4rem, 4.2vw, 4.6rem);
}

.lead-story-copy p,
.story-card-copy p,
.news-flash p,
.list-story p,
.archive-hero p,
.post-entry-header p,
.news-story-frame p,
.static-page-frame p,
.empty-panel p {
    color: var(--muted);
    line-height: 1.95;
}

.post-entry-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--border);
}

.post-entry-header h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.18;
    margin: 0.8rem 0 1rem;
}

.post-entry-header .meta-row {
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.post-entry-header .meta-row a {
    color: inherit;
    text-decoration: none;
}

.post-entry-header .topic-strip {
    margin-top: 1rem;
}

.post-entry-header .topic-pill {
    padding: 0 0 0.28rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.hero-actions {
    margin-top: 1.3rem;
}

.home-hero-feature .meta-row {
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.home-hero-feature .topic-pill {
    padding: 0 0 0.28rem;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: transparent;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0.35rem;
    border-bottom: 1px solid var(--border);
    color: var(--bs-emphasis-color);
    font-weight: 700;
}

.hero-link:hover,
.hero-link:focus {
    color: var(--accent);
    border-bottom-color: currentColor;
}

.hero-link-primary {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.lead-story-art img,
.story-card img,
.list-story img,
.post-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-feature .lead-story-art img {
    aspect-ratio: 5 / 4;
}

.hero-side-rail {
    display: grid;
    gap: 1.5rem;
    height: 100%;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-panel {
    display: grid;
    gap: 0.8rem;
}

.hero-side-rail .stats-panel,
.hero-side-rail .news-flash {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.hero-side-rail .stats-panel {
    gap: 0;
}

.hero-side-rail .stats-panel div {
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    padding: 1rem 0;
}

.hero-side-rail .stats-panel div:first-child {
    padding-top: 0;
}

.hero-side-rail .stats-panel div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.stats-panel div {
    border-radius: var(--radius-sm);
    border: 1px solid rgba(230, 201, 154, 0.12);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.1rem;
}

.stats-panel span {
    display: block;
    color: rgba(247, 241, 229, 0.64);
    margin-bottom: 0.3rem;
}

.stats-panel strong {
    font-family: "Alexandria", sans-serif;
    font-size: 2rem;
}

.hero-side-rail .news-flash {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.hero-side-rail .news-flash h2 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    margin: 0.55rem 0 0.75rem;
}

.hero-side-rail .news-flash a {
    display: inline-flex;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid currentColor;
}

.topic-scroller-wrap,
.section-block {
    margin-top: 1.5rem;
}

.home-shell > .section-block + .section-block,
.home-shell > .section-block + .topic-scroller-wrap,
.home-shell > .topic-scroller-wrap + .section-block {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.home-simple-grid {
    margin-top: 0.25rem;
}

.home-grid-column {
    display: grid;
    gap: 1.1rem;
}

.home-grid-heading {
    padding-bottom: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.home-grid-heading h3 {
    margin: 0.45rem 0 0;
    font-family: "Alexandria", sans-serif;
    font-size: 1.45rem;
}

.home-grid-list {
    display: grid;
    gap: 1rem;
}

.home-grid-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    align-items: start;
}

.home-grid-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.home-grid-item img {
    border-radius: 0;
    aspect-ratio: 4 / 3;
}

.home-grid-item h3 {
    margin: 0.4rem 0 0;
    font-size: 1.02rem;
}

.home-grid-item p {
    margin: 0.45rem 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.home-grid-item .meta-row {
    font-size: 0.82rem;
}

.home-grid-item-text {
    gap: 0;
}

.home-grid-empty {
    margin: 0;
    color: var(--muted);
}

.topic-scroller {
    padding: 1.1rem 1.25rem;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.story-card,
.video-card,
.related-panel,
.author-panel,
.empty-panel {
    border-radius: var(--radius-lg);
}

@media (max-width: 991.98px) {
    .home-hero-feature .lead-story-copy {
        padding: 1.25rem 0 0;
    }

    .hero-side-rail {
        padding: 1.25rem 0;
    }

    .home-grid-column {
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }

    .home-simple-grid > div:first-child .home-grid-column {
        padding-top: 0;
        border-top: 0;
    }
}

.story-card {
    overflow: hidden;
}

.story-card img {
    aspect-ratio: 4 / 3;
}

.story-card-copy h3,
.news-flash h2,
.list-story h3,
.mini-story h3 {
    font-family: "Alexandria", sans-serif;
    line-height: 1.55;
    margin: 0.8rem 0;
}

.story-card-copy h3,
.news-flash h2,
.list-story h3 {
    font-size: 1.2rem;
}

.list-story {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
    gap: 1rem;
}

.list-story-image img {
    border-radius: var(--radius-sm);
    aspect-ratio: 4 / 3;
}

.site-footer {
    margin: 4rem auto 2rem;
    border-radius: 0;
}

.footer-shell {
    padding-top: clamp(1.6rem, 2.4vw, 2.5rem);
    border-top: 1px solid var(--border);
}

.footer-brand {
    display: inline-flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
}

.footer-brand-copy {
    display: grid;
    gap: 0.15rem;
    justify-items: start;
    text-align: right;
}

.footer-brand .navbar-brand-mark-sm {
    width: clamp(4.8rem, 8vw, 6rem);
}

.footer-column {
    position: relative;
}

.footer-bottom {
    margin-top: clamp(1.4rem, 2vw, 2rem);
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-caption {
    color: var(--muted);
    font-size: 0.88rem;
    letter-spacing: 0.03em;
}

@media (min-width: 992px) {
    .footer-column {
        padding-inline-start: 1.5rem;
    }

    .footer-column::before {
        content: "";
        position: absolute;
        inset-inline-start: 0;
        top: 0.2rem;
        bottom: 0.2rem;
        width: 1px;
        background: var(--border);
    }
}

@media (max-width: 991.98px) {
    .footer-column {
        padding-top: 1rem;
        border-top: 1px solid var(--border);
    }
}

.archive-hero,
.post-hero {
    background: linear-gradient(180deg, var(--surface-strong) 0%, var(--surface) 100%);
}

.post-hero-media img,
.author-visual,
.topic-cover {
    width: 100%;
    min-height: 18rem;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    object-fit: cover;
}

.post-content-frame iframe {
    border: 0;
    border-radius: var(--radius-sm);
}

.rich-copy {
    font-size: 1.08rem;
    line-height: 2.1;
}

.rich-copy h2,
.rich-copy h3,
.rich-copy h4,
.rich-copy strong {
    font-family: "Alexandria", sans-serif;
}

.rich-copy img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.author-panel {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.author-panel img,
.author-avatar-large {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-large {
    width: 112px;
    height: 112px;
    border: 4px solid rgba(230, 201, 154, 0.22);
    margin-bottom: 1rem;
}

.mini-story {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
}

.mini-story img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0.9rem;
}

.mini-story h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
}

.mini-story p {
    margin: 0.5rem 0 0;
    color: rgba(247, 241, 229, 0.75);
}

.text-only-story {
    grid-template-columns: 1fr;
}

.author-hero-frame,
.topic-cover {
    overflow: hidden;
}

.author-hero-copy {
    margin-top: 1.25rem;
}

.empty-panel {
    text-align: center;
}

@media (max-width: 991px) {
    .list-story,
    .author-panel,
    .mini-story {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (min-width: 992px) {
    .home-grid-column {
        min-height: 100%;
        padding-inline-start: 1.5rem;
        border-inline-start: 1px solid var(--border);
    }

    .home-simple-grid > div:first-child .home-grid-column {
        padding-inline-start: 0;
        border-inline-start: 0;
    }
}

@media (max-width: 767px) {
    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.dashboard-app {
    background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(84, 128, 174, 0.1), transparent 30%),
    linear-gradient(180deg, #141820 0%, #0d1014 100%);
}

    [data-bs-theme="light"] .dashboard-app {
        background:
        radial-gradient(circle at top right, rgba(194, 135, 61, 0.14), transparent 26%),
        radial-gradient(circle at bottom left, rgba(99, 130, 162, 0.12), transparent 28%),
        linear-gradient(180deg, #fbf5ec 0%, #f3eadb 100%);
    }

.dashboard-layout-title,
.dashboard-main-title {
    font-family: "Alexandria", sans-serif;
}

.dashboard-nav-user {
    min-width: 0;
}

.dashboard-nav-copy {
    min-width: 0;
}

.dashboard-nav-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.dashboard-nav-form {
    margin: 0;
    display: flex;
}

.dashboard-sidebar-panel {
    position: sticky;
    top: 1.5rem;
}

.dashboard-avatar,
.dashboard-user-avatar {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.22), rgba(83, 127, 174, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.24);
    font-family: "Alexandria", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-emphasis-color);
}

.dashboard-user-avatar {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.dashboard-user-avatar-sm {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.85rem;
}

.dashboard-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--muted);
    border: 1px solid rgba(230, 201, 154, 0.1);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 999px;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.dashboard-nav-link:hover,
.dashboard-nav-link:focus {
    color: var(--bs-emphasis-color);
    background: rgba(230, 201, 154, 0.08);
    border-color: rgba(230, 201, 154, 0.24);
}

.dashboard-section {
    scroll-margin-top: 2rem;
}

.dashboard-metric-card,
.dashboard-list-item,
.dashboard-news-item,
.dashboard-author-card,
.dashboard-data-row,
.dashboard-membership-card,
.dashboard-activity-item,
.dashboard-user-item,
.dashboard-author-note {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(230, 201, 154, 0.12);
}

.dashboard-list-item,
.dashboard-news-item,
.dashboard-data-row,
.dashboard-activity-item,
.dashboard-user-item,
.dashboard-author-card,
.dashboard-author-note {
    border-radius: 1.1rem;
    padding: 1rem 1.1rem;
}

.dashboard-thumb {
    width: 8rem;
    min-width: 8rem;
    height: 6rem;
    object-fit: cover;
}

.dashboard-role-row .progress {
    height: 0.7rem;
    border-radius: 999px;
}

.dashboard-user-item,
.dashboard-activity-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.dashboard-author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(230, 201, 154, 0.24);
}

.dashboard-settings-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(230, 201, 154, 0.12);
}

.dashboard-form-control {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(230, 201, 154, 0.18);
    color: var(--bs-emphasis-color);
}

.dashboard-form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(230, 201, 154, 0.4);
    color: var(--bs-emphasis-color);
}

.dashboard-role-form {
    padding-top: 1rem;
    border-top: 1px solid rgba(230, 201, 154, 0.12);
}

.dashboard-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 201, 154, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.dashboard-role-pill.is-active {
    border-color: rgba(230, 201, 154, 0.35);
    background: rgba(230, 201, 154, 0.08);
}

.dashboard-role-pill.is-disabled {
    opacity: 0.7;
}

.auth-status-link {
    word-break: break-all;
}

@media (max-width: 1199px) {
    .dashboard-sidebar-panel {
        position: static;
    }
}

@media (max-width: 767px) {
    .dashboard-nav-bar,
    .dashboard-nav-form {
        display: flex;
    }

    .dashboard-nav-form,
    .dashboard-nav-link {
        width: 100%;
    }

    .dashboard-nav-user {
        align-items: flex-start;
    }

    .dashboard-user-item,
    .dashboard-activity-item {
        grid-template-columns: 1fr;
    }

    .dashboard-thumb {
        width: 100%;
        min-width: 100%;
        height: 12rem;
    }
}

.auth-main {
    position: relative;
}

.auth-card {
    border-radius: 1.75rem;
}

.auth-title {
    font-family: "Alexandria", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.auth-feature-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(230, 201, 154, 0.12);
}

.auth-feature-row i {
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.auth-form-control {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(230, 201, 154, 0.18);
    color: var(--bs-emphasis-color);
}

.auth-form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(230, 201, 154, 0.4);
    color: var(--bs-emphasis-color);
}

.auth-note {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(230, 201, 154, 0.12);
}

[data-bs-theme="light"] .panel-surface,
[data-bs-theme="light"] .topline-pill,
[data-bs-theme="light"] .navbar-shell,
[data-bs-theme="light"] .footer-panel,
[data-bs-theme="light"] .site-offcanvas,
[data-bs-theme="light"] .topic-scroller {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow);
}

[data-bs-theme="light"] .nav-chip,
[data-bs-theme="light"] .topic-pill,
[data-bs-theme="light"] .stats-panel div,
[data-bs-theme="light"] .dashboard-nav-link,
[data-bs-theme="light"] .dashboard-metric-card,
[data-bs-theme="light"] .dashboard-list-item,
[data-bs-theme="light"] .dashboard-news-item,
[data-bs-theme="light"] .dashboard-author-card,
[data-bs-theme="light"] .dashboard-data-row,
[data-bs-theme="light"] .dashboard-membership-card,
[data-bs-theme="light"] .dashboard-activity-item,
[data-bs-theme="light"] .dashboard-user-item,
[data-bs-theme="light"] .dashboard-author-note,
[data-bs-theme="light"] .dashboard-settings-panel,
[data-bs-theme="light"] .dashboard-role-pill,
[data-bs-theme="light"] .auth-feature-row,
[data-bs-theme="light"] .auth-note {
    background: rgba(124, 91, 46, 0.05);
    border-color: rgba(124, 91, 46, 0.14);
}

[data-bs-theme="light"] .nav-chip:hover,
[data-bs-theme="light"] .nav-chip.active,
[data-bs-theme="light"] .dashboard-nav-link:hover,
[data-bs-theme="light"] .dashboard-nav-link:focus,
[data-bs-theme="light"] .theme-toggle:hover,
[data-bs-theme="light"] .theme-toggle:focus {
    background: rgba(194, 135, 61, 0.12);
    color: var(--accent-strong);
}

[data-bs-theme="light"] .theme-toggle {
    color: rgba(74, 52, 24, 0.82);
}

[data-bs-theme="light"] .site-header-link {
    color: var(--bs-emphasis-color);
}

[data-bs-theme="light"] .site-header-link:hover,
[data-bs-theme="light"] .site-header-link:focus,
[data-bs-theme="light"] .site-header-link-accent,
[data-bs-theme="light"] .hero-link:hover,
[data-bs-theme="light"] .hero-link:focus,
[data-bs-theme="light"] .hero-link-primary {
    color: var(--accent-strong);
}

[data-bs-theme="light"] .site-main-nav .nav-chip,
[data-bs-theme="light"] .site-main-nav .nav-chip:hover,
[data-bs-theme="light"] .site-main-nav .nav-chip.active,
[data-bs-theme="light"] .home-hero-feature .topic-pill,
[data-bs-theme="light"] .hero-link,
[data-bs-theme="light"] .hero-side-rail .stats-panel div,
[data-bs-theme="light"] .hero-side-rail .news-flash {
    background: transparent;
    border-radius: 0;
}

[data-bs-theme="light"] .site-main-nav .nav-chip:hover,
[data-bs-theme="light"] .site-main-nav .nav-chip.active {
    color: var(--bs-emphasis-color);
}

[data-bs-theme="light"] .meta-row,
[data-bs-theme="light"] .stats-panel span,
[data-bs-theme="light"] .mini-story p {
    color: rgba(74, 52, 24, 0.68);
}

[data-bs-theme="light"] .dashboard-form-control,
[data-bs-theme="light"] .auth-form-control {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(124, 91, 46, 0.18);
    color: var(--bs-body-color);
}

[data-bs-theme="light"] .dashboard-form-control:focus,
[data-bs-theme="light"] .auth-form-control:focus {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(194, 135, 61, 0.38);
    color: var(--bs-body-color);
}

[data-bs-theme="light"] .btn-outline-light {
    --bs-btn-color: #4b3318;
    --bs-btn-border-color: rgba(124, 91, 46, 0.18);
    --bs-btn-hover-color: #1d1208;
    --bs-btn-hover-bg: rgba(194, 135, 61, 0.12);
    --bs-btn-hover-border-color: rgba(194, 135, 61, 0.28);
    --bs-btn-focus-shadow-rgb: 194, 135, 61;
    --bs-btn-active-color: #1d1208;
    --bs-btn-active-bg: rgba(194, 135, 61, 0.16);
    --bs-btn-active-border-color: rgba(194, 135, 61, 0.34);
}

[data-bs-theme="light"] .btn-close {
    filter: none;
}

@media (max-width: 767px) {
    .auth-feature-row {
        grid-template-columns: 1fr;
    }
}