body {
    background: #F7F9FC;
    color: #0F172A;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.public-blog-page,
.auth-page,
.account-page {
    --frontend-primary: #2563EB;
    --frontend-primary-hover: #1D4ED8;
    --frontend-primary-rgb: 37, 99, 235;
    --frontend-on-primary: #FFFFFF;
    --frontend-bg: #f4f8ff;
    --frontend-surface: #FFFFFF;
    --frontend-text: #0f172a;
    --frontend-muted-text: #475569;
    --frontend-border: #e6edf8;
    --bs-body-bg: var(--frontend-bg);
    --bs-body-color: var(--frontend-text);
    --bs-primary: var(--frontend-primary);
    --bs-link-color: var(--frontend-primary);
    --bs-link-hover-color: var(--frontend-primary-hover);
    --bs-focus-ring-color: rgba(var(--frontend-primary-rgb), 0.25);
    background: var(--frontend-bg);
    color: var(--frontend-text);
}
.public-blog-page[data-frontend-mode="dark"],
.auth-page[data-frontend-mode="dark"],
.account-page[data-frontend-mode="dark"] {
    color-scheme: dark;
}
.public-blog-page[data-frontend-mode="dark"] .public-blog-hero,
.public-blog-page[data-frontend-mode="dark"] .blog-hero-lite {
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 82%, #000000 18%) 0%, var(--frontend-surface) 100%);
}
.public-blog-page[data-frontend-mode="dark"] .post-editorial-hero,
.public-blog-page[data-frontend-mode="dark"] .post-editorial-shell {
    background: transparent;
}
.public-blog-page[data-frontend-mode="dark"] .post-editorial-main,
.public-blog-page[data-frontend-mode="dark"] .post-sidebar-card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.public-blog-page {
    background: var(--frontend-bg);
    color: var(--frontend-text);
}
.public-container {
    max-width: 1380px;
}
.public-blog-page[data-frontend-content-layout="full_width"] .public-container {
    max-width: 1920px;
    width: 100%;
    padding: 0 50px;
}
.public-main {
    padding-top: 2rem;
    padding-bottom: 3rem;
}
.public-header {
    padding: 0.7rem 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-surface) 82%, var(--frontend-primary) 18%) 0%, var(--frontend-surface) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--frontend-border) 72%, var(--frontend-primary) 28%);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    position: relative;
    z-index: 1;
}

/* .public-blog-page[data-hero-full-width="1"] .public-header {
    padding-bottom: 0.25rem;
} */
.public-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--frontend-primary), var(--frontend-primary-hover));
}
.public-header-centered {
    padding-bottom: 1rem;
}

/* .public-blog-page[data-hero-full-width="1"] .public-header-centered {
    padding-bottom: 0.4rem;
} */
.public-header-centered .public-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.public-header-centered .nav-link {
    border-radius: 999px;
}
.public-header-dark-bar {
    background:
        linear-gradient(180deg, rgba(10, 15, 28, 0.96) 0%, rgba(17, 24, 39, 0.94) 100%),
        linear-gradient(90deg, rgba(var(--frontend-primary-rgb), 0.14) 0%, rgba(255, 255, 255, 0.02) 35%, rgba(var(--frontend-primary-rgb), 0.12) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.public-header-dark-bar .public-brand,
.public-header-dark-bar .public-nav-link,
.public-header-dark-bar .public-user-trigger {
    color: #fff;
}
.public-header-dark-bar .public-nav-link:hover,
.public-header-dark-bar .public-nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
}
.public-header-dark-bar .public-nav-link.active {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}
.public-header-dark-bar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}
.public-header-dark-bar .navbar-toggler-icon {
    filter: invert(1);
}

.public-blog-page[data-frontend-mode="dark"] .navbar-toggler-icon,
.auth-page[data-frontend-mode="dark"] .navbar-toggler-icon,
.account-page[data-frontend-mode="dark"] .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

.public-blog-page[data-frontend-mode="dark"] .navbar-toggler,
.auth-page[data-frontend-mode="dark"] .navbar-toggler,
.account-page[data-frontend-mode="dark"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.28);
}

.public-blog-page[data-frontend-mode="dark"] .public-nav-link.active,
.auth-page[data-frontend-mode="dark"] .public-nav-link.active,
.account-page[data-frontend-mode="dark"] .public-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}
.public-brand {
    font-size: 1.15rem;
    color: var(--frontend-text);
    letter-spacing: 0.2px;
    padding-left: 5px;
}
.public-nav-link {
    color: var(--frontend-text);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 1rem !important;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.public-nav-link:hover {
    color: var(--frontend-primary);
    background: rgba(var(--frontend-primary-rgb), 0.12);
}
.public-nav-btn {
    padding: 0.58rem 1.15rem !important;
    border-radius: 999px;
    background: var(--frontend-primary);
    border: 1px solid var(--frontend-primary);
    color: var(--frontend-on-primary) !important;
    font-weight: 700;
    transition: all 0.2s ease;
}
.public-nav-btn:hover {
    background: var(--frontend-primary-hover);
    border-color: var(--frontend-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(var(--frontend-primary-rgb), 0.28);
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #FFFFFF;
    border-right: 1px solid #E2E8F0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

.topbar {
    min-height: 72px;
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.topbar-blog-meta {
    min-width: 0;
    line-height: 1.15;
}

.topbar-blog-link {
    margin-top: 0.15rem;
    font-size: 0.78rem;
    color: #64748B;
    text-decoration: none;
    word-break: break-all;
}

.topbar-blog-link:hover {
    color: #0F172A;
    text-decoration: underline;
}

.topbar-user-toggle {
    width: 52px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 1.95rem;
    color: #334155;
    transition: color 0.2s ease;
}

.topbar-user-toggle i,
.topbar-user-toggle-indicator {
    color: inherit;
    transition: color 0.2s ease;
}

.topbar-user-toggle::after {
    display: none;
}

.topbar-user-toggle:focus,
.topbar-user-toggle:active,
.topbar-user-toggle.show {
    outline: none;
    background: transparent !important;
    border-color: transparent;
    box-shadow: none;
    color: #334155;
}

.topbar-user-toggle:hover {
    color: #0F172A;
    background: transparent;
    border-color: transparent;
}

.topbar-user-toggle-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1;
}

.topbar-user-menu {
    min-width: 220px;
    border: 1px solid var(--frontend-border);
    border-radius: 16px;
    padding: 0.4rem;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.topbar-user-name {
    color: var(--frontend-text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    word-break: break-word;
}

.topbar-user-menu .dropdown-item {
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.page-content {
    padding: 24px;
}

.app-card {
    background: var(--frontend-surface);
    border: 1px solid var(--frontend-border);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.settings-accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-active-color: var(--frontend-text);
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-border-color: var(--frontend-border);
    --bs-accordion-btn-icon-width: 1rem;
}

.settings-accordion .accordion-item {
    background: transparent;
    border-color: var(--frontend-border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.settings-accordion .accordion-header {
    background: #FFFFFF;
    border-radius: 6px;
}

.settings-accordion .accordion-button {
    background: #FFFFFF;
    color: var(--frontend-text);
    font-weight: 600;
    box-shadow: none;
}

.settings-accordion .accordion-button:not(.collapsed) {
    background: #FFFFFF;
    color: var(--frontend-text);
    box-shadow: none;
}

.settings-accordion .accordion-button:focus {
    box-shadow: none;
}

.settings-accordion .accordion-button::after {
    opacity: 0.75;
}

.settings-accordion .accordion-body {
    color: var(--frontend-text);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-link.active,
.sidebar-link:hover {
    background: rgba(var(--frontend-primary-rgb), 0.12);
    color: var(--frontend-primary);
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-group-toggle {
    width: 100%;
    justify-content: space-between;
    border: 0;
    background: transparent;
}

.sidebar-group-toggle .sidebar-group-caret {
    transition: transform 0.2s ease;
}

.sidebar-group-toggle[aria-expanded="true"] .sidebar-group-caret {
    transform: rotate(180deg);
}

.sidebar-submenu {
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-sublink.active,
.sidebar-sublink:hover {
    background: rgba(var(--frontend-primary-rgb), 0.10);
    color: var(--frontend-primary);
}

.public-page-hero {
    background: linear-gradient(135deg, rgba(var(--frontend-primary-rgb), 0.10), var(--frontend-surface));
}

.public-page-title {
    color: var(--frontend-text);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.public-page-content {
    color: var(--frontend-text);
}

.public-page-content .public-page-body {
    line-height: 1.8;
    font-size: 1rem;
    min-height: 30vh;
}

.public-page-content .public-page-body h1,
.public-page-content .public-page-body h2,
.public-page-content .public-page-body h3 {
    color: var(--frontend-text);
    font-family: Georgia, "Times New Roman", serif;
    margin-top: 1.5rem;
}

.public-page-content .public-page-body p:last-child {
    margin-bottom: 0;
}

.status-badge {
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success-soft {
    background: #ECFDF5;
    color: #16A34A;
}

.badge-warning-soft {
    background: #FFF7ED;
    color: #F59E0B;
}

.badge-danger-soft {
    background: #FEF2F2;
    color: #DC2626;
}

.badge-info-soft {
    background: #EFF6FF;
    color: #2563EB;
}

.template-card {
    border: 1px solid #E2E8F0;
    border-radius: 18px;
    transition: all 0.2s ease;
}

.template-card:hover,
.template-card.selected {
    border-color: var(--frontend-primary);
    box-shadow: 0 12px 30px rgba(var(--frontend-primary-rgb), 0.12);
}

.theme-mode-card,
.theme-palette-card {
    width: 100%;
    border: 1px solid #dbe5f5;
    background: #ffffff;
    border-radius: 18px;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-mode-card:hover,
.theme-palette-card:hover {
    border-color: #b6c8ef;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.theme-mode-card.active,
.theme-palette-card.active {
    border-color: var(--frontend-primary);
    box-shadow: 0 12px 30px rgba(var(--frontend-primary-rgb), 0.12);
}

.theme-check {
    color: var(--frontend-primary);
    font-size: 1.05rem;
}

.theme-swatch-row {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.theme-swatch {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-preview-shell {
    --preview-primary: #2563EB;
    --preview-primary-hover: #1D4ED8;
    --preview-background: #F8FAFC;
    --preview-surface: #FFFFFF;
    --preview-text: #111827;
    --preview-muted-text: #6B7280;
    --preview-border: #E5E7EB;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #dbe5f5;
    background: var(--preview-background);
}

.theme-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    background: var(--preview-surface);
    border-bottom: 1px solid var(--preview-border);
}

.theme-preview-brand,
.theme-preview-link {
    color: var(--preview-text);
    font-weight: 700;
}

.theme-preview-link {
    color: var(--preview-primary);
}

.theme-preview-hero {
    padding: 1rem;
    background: linear-gradient(180deg, var(--preview-background) 0%, var(--preview-surface) 100%);
}

.theme-preview-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    background: color-mix(in srgb, var(--preview-primary) 14%, var(--preview-surface) 86%);
    color: var(--preview-primary);
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

.theme-preview-title {
    color: var(--preview-text);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.theme-preview-text {
    color: var(--preview-muted-text);
    font-size: 0.92rem;
    line-height: 1.6;
}

.theme-preview-pill,
.theme-preview-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.theme-preview-pill {
    background: var(--preview-surface);
    color: var(--preview-text);
    border: 1px solid var(--preview-border);
}

.theme-preview-pill.active,
.theme-preview-badge {
    background: var(--preview-primary);
    color: #ffffff;
    border: 1px solid var(--preview-primary);
}

.theme-preview-card {
    margin: 1rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--preview-border);
    background: var(--preview-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.setup-stepper-card {
    overflow: hidden;
}

.setup-stepper {
    --line-color: #bfdbfe;
    --step-future-bg: #eff6ff;
    --step-future-border: #2563eb;
    --step-future-text: #2563eb;
    --step-active-bg: #2563eb;
    --step-active-border: #2563eb;
    --step-active-text: #ffffff;
    --step-done-bg: #16a34a;
    --step-done-border: #16a34a;
    --step-done-text: #ffffff;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--steps-count), minmax(110px, 1fr));
    gap: 8px;
}

.setup-stepper::before {
    content: "";
    position: absolute;
    left: 80px;
    right: 80px;
    top: 20px;
    height: 3px;
    background: var(--line-color);
    z-index: 0;
}

.setup-step {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: #475569;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.setup-step-circle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--step-future-bg);
    border: 2px solid var(--step-future-border);
    color: var(--step-future-text);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.setup-step-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
}

.setup-step.done .setup-step-circle {
    background: var(--step-done-bg);
    border-color: var(--step-done-border);
    color: var(--step-done-text);
}

.setup-step.active .setup-step-circle {
    background: var(--step-active-bg);
    border-color: var(--step-active-border);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    color: var(--step-active-text);
}

.setup-step.active .setup-step-label {
    color: #1d4ed8;
}

.setup-step.done .setup-step-label {
    color: #166534;
}

.setup-step.todo .setup-step-label {
    color: #64748b;
}

.setup-step.todo .setup-step-circle {
    background: var(--step-future-bg);
    border-color: var(--step-future-border);
    color: var(--step-future-text);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.editor-sidebar {
    position: sticky;
    top: 96px;
}

.public-blog-hero {
    background: linear-gradient(135deg, rgba(var(--frontend-primary-rgb), 0.10), var(--frontend-surface));
    border-radius: 28px;
    padding: 56px 32px;
}
.blog-hero-lite {
    text-align: center;
    border: 1px solid var(--frontend-border);
    border-radius: 24px;
    padding: 34px 28px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 24%, rgba(var(--frontend-primary-rgb), 0.16) 0 24px, transparent 25px),
        radial-gradient(circle at 38% 42%, rgba(var(--frontend-primary-rgb), 0.11) 0 10px, transparent 11px),
        radial-gradient(circle at 74% 26%, rgba(var(--frontend-primary-rgb), 0.09) 0 14px, transparent 15px),
        linear-gradient(180deg, var(--frontend-bg) 0%, var(--frontend-surface) 100%);
}

.blog-hero-lite::before {
    content: none;
}

.blog-hero-lite > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: var(--frontend-text);
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-transform: capitalize;
}

.hero-subtitle {
    width: 100%;
    max-width: 760px;
    margin: 0 0 1rem;
    text-align: left;
    color: var(--frontend-muted-text);
    font-size: clamp(1rem, 1.7vw, 1.125rem);
    line-height: 1.7;
}

.public-hero-full-width .hero-subtitle-centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.public-hero-full-width .public-hero-content .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.public-blog-page[data-hero-full-width="1"] .hero-split .public-hero-split-copy {
    /* padding-left: max(1.5rem, calc((100vw - 1160px) / 2));
    padding-right: 1.5rem; */
}

.public-blog-page[data-hero-full-width="1"] .hero-minimal-banner .public-hero-minimal-content {
    /* padding-left: max(1.5rem, calc((100vw - 1160px) / 2));
    padding-right: max(1.5rem, calc((100vw - 1160px) / 2)); */
}

.category-pill {
    border: 1px solid var(--frontend-border);
    color: var(--frontend-text);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 40px;
    padding: 0.52rem 1.2rem;
    background: var(--frontend-surface);
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: rgba(var(--frontend-primary-rgb), 0.10);
    border-color: var(--frontend-primary);
    color: var(--frontend-primary);
}

.category-pill.active {
    background: var(--frontend-primary);
    border-color: var(--frontend-primary);
    color: var(--frontend-on-primary);
}

.post-card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--frontend-border);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.11);
}

.public-pagination-shell {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.9rem 1.15rem;
}

.public-pagination-meta {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--frontend-surface) 90%, var(--frontend-primary) 10%);
    border: 1px solid color-mix(in srgb, var(--frontend-border) 72%, var(--frontend-primary) 28%);
    color: var(--frontend-muted-text);
    font-size: 0.92rem;
    font-weight: 600;
}

.public-pagination-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.public-pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-pagination-list .page-item {
    margin: 0;
}

.public-pagination-list .page-link {
    min-width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--frontend-border) 78%, var(--frontend-primary) 22%);
    background: linear-gradient(180deg, var(--frontend-surface) 0%, color-mix(in srgb, var(--frontend-surface) 92%, var(--frontend-primary) 8%) 100%);
    color: var(--frontend-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.95rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.public-pagination-list .page-link:hover {
    color: var(--frontend-primary);
    border-color: var(--frontend-primary);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(var(--frontend-primary-rgb), 0.10);
}

.public-pagination-list .page-item.active .page-link {
    background: linear-gradient(135deg, var(--frontend-primary) 0%, var(--frontend-primary-hover) 100%);
    border-color: var(--frontend-primary);
    color: var(--frontend-on-primary);
    box-shadow: 0 14px 26px rgba(var(--frontend-primary-rgb), 0.24);
}

.public-pagination-list .page-item.disabled .page-link {
    color: #94a3b8;
    background: color-mix(in srgb, var(--frontend-surface) 84%, var(--frontend-border) 16%);
    box-shadow: none;
}

.public-pagination-control {
    width: 46px;
    padding: 0;
    font-size: 1rem;
}

.public-pagination-number {
    min-width: 46px;
}

.public-pagination-ellipsis {
    border-style: dashed;
    color: #94a3b8;
    background: transparent;
}

.post-card-image-wrap {
    height: 250px;
    background: rgba(var(--frontend-primary-rgb), 0.08);
    border-bottom: 1px solid var(--frontend-border);
}

.post-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.post-card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-category-badge {
    background: rgba(var(--frontend-primary-rgb), 0.12);
    color: var(--frontend-primary) !important;
    font-size: 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(var(--frontend-primary-rgb), 0.22);
}
.post-meta-date {
    font-size: 0.78rem;
    white-space: nowrap;
}
.post-card-title {
    font-size: 1.18rem;
    line-height: 1.42;
}
.post-card-title.tag-h1 { font-size: 2rem; line-height: 1.2; }
.post-card-title { 
    font-size: 20px;
    line-height: 1.24; 
}
.post-card-title.tag-h3 { font-size: 1.4rem; line-height: 1.28; }
.post-card-title.tag-h4 { font-size: 1.2rem; line-height: 1.35; }
.post-card-title.tag-h5 { font-size: 1.05rem; line-height: 1.42; }
.post-card-title.tag-h6 { font-size: 0.94rem; line-height: 1.45; }

.post-title-link {
    color: var(--frontend-text);
}

.post-title-link:hover {
    color: var(--frontend-primary);
}
.archive-post-card .post-title-link {
    color: var(--archive-card-title-color, #fff);
}
.archive-post-card .post-title-link:hover {
    color: color-mix(in srgb, var(--archive-card-title-color, #fff) 82%, #000 18%);
}

.read-more-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--frontend-primary);
    text-decoration: none;
    margin-top: auto;
}
.read-more-link:hover { color: var(--frontend-primary-hover); }
.post-card-excerpt {
    color: var(--frontend-muted-text) !important;
    line-height: 1.65;
    font-size: 0.95rem;
}

.read-more-link.disabled {
    color: #94a3b8;
}

.public-footer .footer-link {
    color: var(--frontend-primary);
    text-decoration: none;
}

.public-footer .footer-link:hover {
    text-decoration: underline;
}
.public-footer {
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-surface) 90%, var(--frontend-primary) 10%) 0%, color-mix(in srgb, var(--frontend-bg) 78%, var(--frontend-primary) 22%) 100%);
    border-top: 1px solid color-mix(in srgb, var(--frontend-border) 72%, var(--frontend-primary) 28%);
}

.public-footer.public-footer-editorial {
    background:
        linear-gradient(180deg, rgba(10, 15, 28, 0.98) 0%, rgba(17, 24, 39, 0.96) 100%),
        linear-gradient(90deg, rgba(var(--frontend-primary-rgb), 0.14) 0%, rgba(255, 255, 255, 0.02) 35%, rgba(var(--frontend-primary-rgb), 0.10) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.12);
}

.public-footer.public-footer-editorial .footer-link {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.public-footer.public-footer-editorial .footer-link:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    border-color: rgba(255, 255, 255, 0.16);
}

.public-footer.public-footer-editorial h5,
.public-footer.public-footer-editorial h6,
.public-footer.public-footer-editorial .small,
.public-footer.public-footer-editorial .text-muted {
    color: rgba(255, 255, 255, 0.82) !important;
}

.public-footer.public-footer-editorial .public-footer-editorial-shell {
    padding: 0.35rem 0 0.25rem;
}

.public-footer.public-footer-editorial .public-footer-editorial-links {
    gap: 0.5rem 0.75rem;
}

.public-footer-columns .row > div,
.public-footer-editorial-shell,
.public-footer-simple {
    position: relative;
}
.public-footer-divider {
    border-top: 1px solid color-mix(in srgb, var(--frontend-border) 72%, var(--frontend-primary) 28%);
    margin: 1.5rem 0 1rem;
}

.public-footer h5,
.public-footer h6 {
    color: var(--frontend-text);
}

.public-footer .small,
.public-footer .text-muted {
    color: var(--frontend-muted-text) !important;
}

.public-footer .footer-link {
    color: #3F3F3F;
    font-weight: 600;
    padding: 4px 0;
    display: inline-block;
}
.public-blog-page[data-frontend-mode="dark"] .public-footer .footer-link {
    color: #fff;
}

.public-footer-editorial-shell {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0 0.25rem;
}

.public-footer-editorial-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
}

.public-hero {
    padding: 1.5rem 0 0;
}

.public-hero-full-width {
    padding-top: 0;
}

.public-home-categories {
    padding: 0.25rem 0 0.5rem;
}

.public-hero-card,
.public-hero-minimal-card {
    /* background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 82%, var(--frontend-primary) 18%) 0%, var(--frontend-surface) 100%); */
    /* border: 1px solid color-mix(in srgb, var(--frontend-border) 75%, var(--frontend-primary) 25%); */
    border-radius: 28px;
    overflow: hidden;
    /* box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05); */
}

.public-hero-card {
    display: grid;
    gap: 0;
}

.hero-centered .public-hero-card-centered {
    position: relative;
    display: block;
}

.public-hero-image,
.public-hero-visual-image,
.public-hero-visual-fallback {
    min-height: 220px;
    background-size: cover;
    background-position: center;
}

.public-hero-content {
    padding: 2rem 1.25rem;
}

.hero-centered .public-hero-card-centered .public-hero-image {
    min-height: 420px;
}

.hero-centered .public-hero-overlay-container {
    /* position: absolute; */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding-left: 0;
    padding-right: 0;
}
.hero-centered .public-hero-overlay-container .public-hero-content{
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}
.hero-centered .public-hero-card-centered{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.hero-centered .public-hero-card-centered .public-hero-content {
    /* background: color-mix(in srgb, var(--frontend-bg) 70%, transparent); */
    color: #fff;
    padding: 4.7rem 1.25rem;
}
.public-hero-card-centered .public-hero-overlay-container{
    border-radius: 0 0 15px 15px;
}

.public-blog-page[data-frontend-mode="light"] .hero-centered .public-hero-card-centered .public-hero-content {
    background: rgba(var(--frontend-primary-rgb), 0.7);
}

.hero-centered .public-hero-card-centered .hero-title,
.hero-centered .public-hero-card-centered .hero-subtitle {
    color: #fff;
}

.hero-centered .public-hero-card-centered .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.layout-preview-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    background: rgba(var(--frontend-primary-rgb), 0.12);
    color: var(--frontend-primary);
    font-weight: 700;
    font-size: 0.76rem;
    margin-bottom: 0.85rem;
}

.public-hero-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1.25rem;
    align-items: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 85%, var(--frontend-primary) 15%) 0%, var(--frontend-surface) 100%);
    border-bottom: 1px solid color-mix(in srgb, var(--frontend-border) 75%, var(--frontend-primary) 25%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.public-hero-split-copy {
    padding: 2rem 1.5rem 2rem 1.5rem;
}

.public-hero-split-visual {
    min-height: 280px;
    height: 100%;
    display: flex;
    border-radius: 28px;
    overflow: hidden;
}

.public-hero-split-visual .public-hero-visual-image,
.public-hero-split-visual .public-hero-visual-fallback {
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex: 1;
    border-radius: inherit;
}

.public-hero-visual-fallback {
    background: radial-gradient(circle at 20% 30%, rgba(var(--frontend-primary-rgb), 0.20) 0 72px, transparent 73px), linear-gradient(135deg, var(--frontend-bg), var(--frontend-surface));
}

.public-hero-minimal-card {
    padding: 1.5rem 1.25rem;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    position: relative;
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 82%, var(--frontend-primary) 18%) 0%, var(--frontend-surface) 100%);
    background-size: cover;
    background-position: center;
    border: 1px solid color-mix(in srgb, var(--frontend-border) 75%, var(--frontend-primary) 25%);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.public-hero-full-width .public-hero-card,
.public-hero-full-width .public-hero-split-grid,
.public-hero-full-width .public-hero-minimal-card {
    border-radius: 0;
}

/* .public-hero-minimal-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.12) 100%);
    pointer-events: none;
} */

.public-hero-minimal-card.has-image {
    color: #fff;
}

.public-hero-minimal-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.public-hero-minimal-card.has-image .hero-title {
    color: #fff;
}

.public-hero-minimal-card.has-image .hero-subtitle {
    color: rgba(255, 255, 255, 0.86);
}

.public-hero-minimal-card.has-image .category-pill {
    background: rgba(15, 23, 42, 0.44);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(8px);
}

.public-hero-minimal-card.has-image .category-pill:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.public-hero-minimal-card.has-image .category-pill.active {
    background: var(--frontend-primary);
    border-color: var(--frontend-primary);
    color: var(--frontend-on-primary);
}

.layout-preview-card {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--frontend-border) 60%, var(--frontend-primary) 40%);
    border-radius: 20px;
    background: #ffffff;
    padding: 1rem;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    display: block;
    overflow: hidden;
}

.layout-preview-card:hover {
    border-color: var(--frontend-primary);
    box-shadow: 0 12px 30px rgba(var(--frontend-primary-rgb), 0.12);
    transform: translateY(-1px);
}

.layout-preview-card.active {
    border-color: var(--frontend-primary);
    box-shadow: 0 0 0 3px rgba(var(--frontend-primary-rgb), 0.14), 0 12px 28px rgba(var(--frontend-primary-rgb), 0.10);
    transform: translateY(-1px);
    border: 1px solid;
}

.layout-preview-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 4px;
    width: 100%;
    background: var(--frontend-border);
}

.layout-preview-card[data-layout-type="header"]::before {
    background: linear-gradient(90deg, var(--frontend-primary), var(--frontend-primary-hover));
}

.layout-preview-card[data-layout-type="hero"]::before {
    background: linear-gradient(90deg, color-mix(in srgb, var(--frontend-primary) 82%, #ffffff 18%), var(--frontend-primary-hover));
}

.layout-preview-card[data-layout-type="footer"]::before {
    background: linear-gradient(90deg, color-mix(in srgb, var(--frontend-primary) 65%, var(--frontend-surface) 35%), var(--frontend-primary-hover));
}

.layout-preview-card[data-layout-type="single-page"]::before {
    background: linear-gradient(90deg, var(--frontend-primary), color-mix(in srgb, var(--frontend-primary-hover) 80%, #ffffff 20%));
}

.single-page-setting-panel {
    /* background: #051a05b5; */
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 18px 42px rgba(5, 26, 5, 0.16);
}

.single-page-setting-title {
    color: #000;
    font-size: 1.15rem;
}

.single-page-setting-subtitle {
    color: #000 !important;
    font-size: 0.96rem;
}

.single-page-layout-card {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 28px rgba(3, 18, 3, 0.08);
}

.single-page-layout-card:hover,
.single-page-layout-card.active {
    border-color: rgba(3, 18, 3, 0.55);
    box-shadow: 0 16px 34px rgba(3, 18, 3, 0.16);
}

.single-page-layout-label {
    color: #081508;
    font-size: 1.02rem;
}

.single-page-layout-description {
    color: #234123;
    line-height: 1.5;
}

.layout-preview {
    min-height: 140px;
    border-radius: 16px;
    padding: 1rem 0.9rem 0.9rem;
    border: 1px solid color-mix(in srgb, var(--frontend-border) 50%, var(--frontend-primary) 50%);
    background: linear-gradient(180deg, var(--frontend-bg) 0%, color-mix(in srgb, var(--frontend-bg) 92%, var(--frontend-primary) 8%) 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0.15rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.layout-preview-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.layout-preview-header.layout-preview-header_classic {
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-surface) 92%, var(--frontend-primary) 8%) 0%, var(--frontend-surface) 100%);
    border: 1px solid color-mix(in srgb, var(--frontend-border) 70%, var(--frontend-primary) 30%);
    min-height: 96px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.70);
}

.layout-preview-header.layout-preview-header_centered {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 84%, var(--frontend-primary) 16%) 0%, var(--frontend-surface) 100%);
    border: 1px solid color-mix(in srgb, var(--frontend-border) 70%, var(--frontend-primary) 30%);
    min-height: 96px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.layout-preview-header.layout-preview-header_dark_bar {
    background: linear-gradient(180deg, #101827 0%, #1f2937 100%);
    border: 1px solid color-mix(in srgb, #101827 82%, var(--frontend-border) 18%);
    min-height: 96px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.layout-preview-header-card,
.layout-preview-header-card-row,
.layout-preview-header-card-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.layout-preview-header-card-row {
    justify-content: space-between;
}

.layout-preview-header-card-top {
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.layout-preview-header-card.layout-preview-header_centered {
    flex-direction: column;
    align-items: stretch;
}

.layout-preview-header-card.layout-preview-header_centered .layout-preview-header-card-top {
    align-items: center;
}

.layout-preview-header-links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.layout-preview-header-links-centered {
    justify-content: center;
}

.layout-preview-header-card-links {
    font-size: 0.78rem;
}

.layout-preview-header-divider {
    width: 100%;
    height: 1px;
    background: var(--frontend-border);
    margin: 0.2rem 0 0.1rem;
}

.layout-preview-logo,
.layout-preview-user,
.layout-preview-link,
.layout-preview-footer-brand,
.layout-preview-footer-copy {
    color: var(--frontend-text);
    font-weight: 700;
    font-size: 0.85rem;
}

.layout-preview-link,
.layout-preview-footer-copy {
    font-weight: 600;
    color: var(--frontend-muted-text);
}

.layout-preview-link-accent {
    color: var(--frontend-primary);
}

.layout-preview-user {
    display: inline-flex;
    align-items: center;
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-logo,
.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-link,
.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-user {
    color: #fff;
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-link {
    padding: 0.42rem 0.74rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.07);
    color: #fff !important;
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.layout-preview-header-card.layout-preview-header_dark_bar {
    background: linear-gradient(180deg, #0d1322 0%, #1a2233 100%) !important;
    border: 1px solid rgba(15, 23, 42, 0.16);
    min-height: 96px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px rgba(15, 23, 42, 0.12);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-header-card-row {
    gap: 0.8rem;
    align-items: center;
    width: 100%;
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-logo {
    font-size: 0.88rem;
    color: #fff !important;
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-user {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.22rem 0.3rem;
    color: #fff !important;
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-header-links {
    gap: 0.45rem;
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-link-accent {
    background: var(--frontend-primary);
    color: #fff !important;
    border-color: var(--frontend-primary);
    box-shadow: 0 8px 16px rgba(var(--frontend-primary-rgb), 0.24);
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-link:not(.layout-preview-link-accent) {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}

.layout-preview-header-card.layout-preview-header_classic .layout-preview-link,
.layout-preview-header-card.layout-preview-header_centered .layout-preview-link {
    color: var(--frontend-text);
}

.layout-preview-header-card.layout-preview-header_dark_bar .layout-preview-link-accent {
    color: #fff;
    background: var(--frontend-primary);
    border-color: var(--frontend-primary);
    box-shadow: 0 8px 18px rgba(var(--frontend-primary-rgb), 0.24);
}

.layout-preview-header-card.layout-preview-header_dark_bar,
.layout-preview-footer.layout-preview-footer_editorial {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.layout-preview-hero {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
}

.layout-preview-hero.layout-preview-hero_centered {
    background:
        radial-gradient(circle at 18% 20%, rgba(var(--frontend-primary-rgb), 0.13) 0 18px, transparent 19px),
        radial-gradient(circle at 80% 24%, rgba(var(--frontend-primary-rgb), 0.08) 0 11px, transparent 12px),
        linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 80%, var(--frontend-primary) 20%) 0%, var(--frontend-surface) 100%);
    border: 1px solid color-mix(in srgb, var(--frontend-border) 70%, var(--frontend-primary) 30%);
    min-height: 140px;
}

.layout-preview-hero.layout-preview-hero_minimal_banner {
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 74%, var(--frontend-primary) 26%) 0%, var(--frontend-surface) 100%);
    border: 1px solid color-mix(in srgb, var(--frontend-border) 70%, var(--frontend-primary) 30%);
    min-height: 140px;
}

.layout-preview-hero.layout-preview-hero_split {
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 76%, var(--frontend-primary) 24%) 0%, var(--frontend-surface) 100%);
    border: 1px solid color-mix(in srgb, var(--frontend-border) 70%, var(--frontend-primary) 30%);
    min-height: 140px;
}

.layout-preview-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(88px, 0.75fr);
    gap: 0.75rem;
    align-items: stretch;
    min-height: 110px;
}

.layout-preview-hero-copy,
.layout-preview-hero-banner {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.layout-preview-hero-visual {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--frontend-border);
    background: linear-gradient(135deg, rgba(var(--frontend-primary-rgb), 0.12), rgba(var(--frontend-primary-rgb), 0.02));
    min-height: 110px;
    overflow: hidden;
}

.layout-preview-hero-image {
    position: absolute;
    inset: 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--frontend-primary), var(--frontend-primary-hover));
}

.layout-preview-hero-image-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    right: 16px;
    bottom: 16px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.layout-preview-heading {
    color: var(--frontend-text);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
}

.layout-preview-copy {
    color: var(--frontend-muted-text);
    font-size: 0.82rem;
}

.layout-preview-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.layout-preview-pills span,
.layout-preview-footer-links span {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.22rem 3px;
    border: 1px solid var(--frontend-border);
    color: var(--frontend-text);
    font-size: 11px;
    background: var(--frontend-surface);
}

.layout-preview-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: space-between;
}
.layout-preview-footer_simple{
    padding: 48px 15px;
}

.layout-preview-footer.layout-preview-footer_simple {
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-surface) 90%, var(--frontend-primary) 10%) 0%, var(--frontend-bg) 100%);
    border: 1px solid color-mix(in srgb, var(--frontend-border) 70%, var(--frontend-primary) 30%);
    min-height: 112px;
}

.layout-preview-footer.layout-preview-footer_columns {
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 82%, var(--frontend-primary) 18%) 0%, var(--frontend-surface) 100%);
    border: 1px solid color-mix(in srgb, var(--frontend-border) 70%, var(--frontend-primary) 30%);
    min-height: 112px;
}

.layout-preview-footer.layout-preview-footer_editorial {
    background: linear-gradient(180deg, #0d1322 0%, #1a2233 100%);
    border: 1px solid rgba(15, 23, 42, 0.16);
    min-height: 112px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 12px 28px rgba(15, 23, 42, 0.12);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.layout-preview-footer-simple,
.layout-preview-footer-columns {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.layout-preview-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}

.layout-preview-footer-heading {
    color: var(--frontend-text);
    font-weight: 800;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.layout-preview-footer-line {
    height: 3px;
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--frontend-primary), var(--frontend-primary-hover));
}

.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-line {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(var(--frontend-primary-rgb), 0.92));
}

.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-editorial-shell {
    gap: 0.9rem;
    color: #fff;
}

.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-editorial-links {
    gap: 0.45rem 0.55rem;
}

.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-editorial-links span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.3rem 0.58rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-brand,
.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-copy,
.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-heading {
    color: #fff;
}

.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-copy {
    color: rgba(255, 255, 255, 0.78);
}

.layout-preview-footer-links {
    display: block;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.layout-preview-single-page {
    min-height: 140px;
}

.layout-preview-single-page-row {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(96px, 0.75fr);
    gap: 0.75rem;
    width: 100%;
}

.layout-preview-single-page-article,
.layout-preview-single-page-full,
.layout-preview-single-page-sidebar {
    border-radius: 14px;
    background: #bac3b9;
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 0.7rem;
}

.layout-preview-single-page-article,
.layout-preview-single-page-full {
    display: grid;
    gap: 0.55rem;
}

.layout-preview-single-page-image {
    height: 52px;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.layout-preview-single-page-image-wide {
    height: 60px;
}

.layout-preview-single-page-lines {
    display: grid;
    gap: 0.35rem;
}

.layout-preview-single-page-lines span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
}

.layout-preview-single-page-lines span:nth-child(1) {
    width: 90%;
}

.layout-preview-single-page-lines span:nth-child(2) {
    width: 82%;
}

.layout-preview-single-page-lines span:nth-child(3) {
    width: 74%;
}

.layout-preview-single-page-lines span:nth-child(4) {
    width: 60%;
}

.layout-preview-single-page-sidebar {
    display: grid;
    gap: 0.45rem;
    align-content: space-between;
}

.layout-preview-single-page-sidebar-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
}

.layout-preview-single-page-sidebar-item {
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.layout-preview-header.layout-preview-header_dark_bar,
.layout-preview-footer.layout-preview-footer_editorial {
    background: linear-gradient(180deg, #0d1322 0%, #1a2233 100%);
    color: #fff;
}

.layout-preview-header.layout-preview-header_dark_bar .layout-preview-link-accent,
.layout-preview-header.layout-preview-header_dark_bar .layout-preview-footer-copy {
    color: rgba(255, 255, 255, 0.82);
}

.layout-preview-header.layout-preview-header_dark_bar .layout-preview-logo,
.layout-preview-header.layout-preview-header_dark_bar .layout-preview-link,
.layout-preview-header.layout-preview-header_dark_bar .layout-preview-user,
.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-brand,
.layout-preview-footer.layout-preview-footer_editorial .layout-preview-footer-copy {
    color: #fff;
}

.layout-live-preview-stack {
    display: grid;
    gap: 1rem;
}

.layout-live-preview-item {
    border: 1px solid var(--preview-border, #E5E7EB);
    border-radius: 16px;
    padding: 0.9rem;
    background: var(--preview-surface, #fff);
}

.layout-live-header,
.layout-live-hero,
.layout-live-footer {
    min-height: auto;
}

.layout-live-header {
    padding: 0.8rem 0.9rem;
}

.layout-live-hero {
    padding: 0.95rem;
}

.layout-live-footer {
    padding: 0.9rem;
}

.layout-live-header.layout-live-header-header_centered .layout-preview-user {
    margin-left: 0;
}

.layout-live-header.layout-live-header-header_dark_bar,
.layout-live-footer.layout-live-footer-footer_editorial {
    color: #fff;
}

.layout-live-header.layout-live-header-header_dark_bar {
    background:
        linear-gradient(180deg, rgba(10, 15, 28, 0.98) 0%, rgba(17, 24, 39, 0.96) 100%),
        linear-gradient(90deg, rgba(var(--preview-primary, #2563EB), 0.14) 0%, rgba(255, 255, 255, 0.02) 35%, rgba(var(--preview-primary, #2563EB), 0.10) 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.layout-live-header.layout-live-header-header_dark_bar .layout-preview-logo,
.layout-live-header.layout-live-header-header_dark_bar .layout-preview-link,
.layout-live-header.layout-live-header-header_dark_bar .layout-preview-user,
.layout-live-footer.layout-live-footer-footer_editorial .layout-preview-footer-brand,
.layout-live-footer.layout-live-footer-footer_editorial .layout-preview-footer-copy,
.layout-live-footer.layout-live-footer-footer_editorial .layout-preview-footer-links span {
    color: #fff;
}

.layout-live-header.layout-live-header-header_dark_bar .layout-preview-link {
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.06);
}

.layout-live-header.layout-live-header-header_dark_bar .layout-preview-link-accent {
    color: #fff;
    background: var(--preview-primary, #2563EB);
    border-color: var(--preview-primary, #2563EB);
    box-shadow: 0 8px 18px rgba(var(--preview-primary-rgb, 37, 99, 235), 0.24);
}

.layout-live-header.layout-live-header-header_dark_bar,
.layout-live-footer.layout-live-footer-footer_editorial {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
}

.layout-live-hero.layout-live-hero-hero_split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(84px, 0.9fr);
    gap: 0.75rem;
}

.layout-live-hero.layout-live-hero-hero_split .layout-preview-hero-visual {
    min-height: 92px;
}

.layout-live-hero.layout-live-hero-hero_minimal_banner {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.layout-live-hero.layout-live-hero-hero_minimal_banner .layout-preview-pills {
    display: none;
}

.layout-live-footer.layout-live-footer-footer_columns .layout-preview-footer-links {
    flex-direction: column;
    align-items: flex-start;
}

.frontend-page-preview {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--preview-border, #E5E7EB);
    background: var(--preview-background, #F8FAFC);
}

.frontend-page-preview-frame {
    display: grid;
    gap: 0;
}

.frontend-page-preview-header,
.frontend-page-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    background: var(--preview-surface, #fff);
}

.frontend-page-preview-header {
    border-bottom: 1px solid var(--preview-border, #E5E7EB);
}

.frontend-page-preview .layout-preview-heading {
    color: var(--preview-text, #111827);
}

.frontend-page-preview .layout-preview-copy {
    color: var(--preview-muted-text, #6B7280);
}

.frontend-page-preview .layout-preview-logo,
.frontend-page-preview .layout-preview-user,
.frontend-page-preview .layout-preview-link,
.frontend-page-preview .layout-preview-footer-brand,
.frontend-page-preview .layout-preview-footer-copy,
.frontend-page-preview .layout-preview-footer-heading {
    color: var(--preview-text, #111827);
}

.frontend-page-preview[data-preview-mode="dark"] .layout-preview-logo,
.frontend-page-preview[data-preview-mode="dark"] .layout-preview-user,
.frontend-page-preview[data-preview-mode="dark"] .layout-preview-link,
.frontend-page-preview[data-preview-mode="dark"] .layout-preview-footer-brand,
.frontend-page-preview[data-preview-mode="dark"] .layout-preview-footer-copy,
.frontend-page-preview[data-preview-mode="dark"] .layout-preview-footer-heading,
.frontend-page-preview[data-preview-mode="dark"] .layout-preview-heading,
.frontend-page-preview[data-preview-mode="dark"] .layout-preview-copy {
    color: #fff;
}

.frontend-page-preview[data-preview-mode="dark"] .layout-preview-copy,
.frontend-page-preview[data-preview-mode="dark"] .layout-preview-footer-copy {
    color: rgba(255, 255, 255, 0.78);
}

.frontend-page-preview[data-preview-mode="dark"] .frontend-page-preview-footer .layout-preview-footer-heading {
    color: #fff;
}

.frontend-page-preview[data-preview-mode="dark"] .frontend-page-preview-footer .layout-preview-footer-links span,
.frontend-page-preview[data-preview-mode="dark"] .frontend-page-preview-footer .layout-preview-footer-links a {
    color: #fff;
}

.frontend-page-preview[data-preview-mode="dark"] .layout-preview-link:not(.layout-preview-link-accent) {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.frontend-page-preview[data-preview-mode="dark"] .layout-preview-link-accent {
    color: #fff;
}

.frontend-page-preview[data-preview-mode="dark"] .frontend-page-preview-body strong {
    color: #fff;
}

.frontend-page-preview-header-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
}

.frontend-page-preview-hero {
    padding: 1rem 1.1rem 1.15rem;
    border-bottom: 1px solid var(--preview-border, #E5E7EB);
    background: linear-gradient(180deg, color-mix(in srgb, var(--preview-background, #F8FAFC) 82%, var(--preview-primary, #2563EB) 18%) 0%, var(--preview-surface, #fff) 100%);
}

.frontend-page-preview-hero.is-full-width {
    padding-left: 0;
    padding-right: 0;
}

.frontend-page-preview-hero-centered,
.frontend-page-preview-hero-split,
.frontend-page-preview-hero-minimal {
    display: none;
}

.frontend-page-preview-hero.layout-live-hero-hero_centered .frontend-page-preview-hero-centered {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.frontend-page-preview-hero.layout-live-hero-hero_split .frontend-page-preview-hero-split {
    display: block;
    position: relative;
    width: 100%;
    min-width: 100%;
    min-height: 220px;
}

.frontend-page-preview-hero.layout-live-hero-hero_split {
    background: var(--preview-surface, #fff);
}

.frontend-page-preview-hero.layout-live-hero-hero_minimal_banner .frontend-page-preview-hero-minimal {
    display: flex;
    align-items: flex-end;
    min-height: 190px;
    position: relative;
    overflow: hidden;
    padding: 1rem;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.14) 0%, rgba(15, 23, 42, 0.68) 100%),
        linear-gradient(135deg, color-mix(in srgb, var(--preview-primary, #2563EB) 22%, var(--preview-surface, #fff) 78%), color-mix(in srgb, var(--preview-primary-hover, #1D4ED8) 40%, var(--preview-background, #F8FAFC) 60%));
    color: #fff;
}

.frontend-page-preview-hero.layout-live-hero-hero_minimal_banner .frontend-page-preview-hero-minimal-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.26) 0 68px, transparent 69px),
        linear-gradient(135deg, color-mix(in srgb, var(--preview-primary, #2563EB) 26%, #FFFFFF 74%), color-mix(in srgb, var(--preview-primary-hover, #1D4ED8) 52%, var(--preview-background, #F8FAFC) 48%));
    opacity: 0.95;
}

.frontend-page-preview-hero.layout-live-hero-hero_minimal_banner .frontend-page-preview-hero-minimal-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    color: #fff;
}

.frontend-page-preview-hero.is-full-width.layout-live-hero-hero_centered .frontend-page-preview-hero-centered,
.frontend-page-preview-hero.is-full-width.layout-live-hero-hero_split .frontend-page-preview-hero-split,
.frontend-page-preview-hero.is-full-width.layout-live-hero-hero_minimal_banner .frontend-page-preview-hero-minimal {
    border-radius: 0;
}

.frontend-page-preview-hero-split-copy {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 42%;
    min-width: 0;
    padding-right: 1rem;
    justify-content: center;
    overflow: hidden;
}

.frontend-page-preview-hero-split-visual {
    position: absolute;
    top: 0;
    left: 58%;
    right: 0;
    bottom: 0;
    min-width: 0;
    min-height: 210px;
    border-radius: 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--preview-primary, #2563EB) 18%, var(--preview-surface, #fff) 82%), color-mix(in srgb, var(--preview-primary-hover, #1D4ED8) 38%, var(--preview-background, #F8FAFC) 62%));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.frontend-page-preview-hero-split-image {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--preview-primary, #2563EB), var(--preview-primary-hover, #1D4ED8));
}

.frontend-page-preview-hero-split-image::before {
    content: none;
}

.frontend-page-preview-categories {
    padding: 0.95rem 1.1rem;
    border-bottom: 1px solid var(--preview-border, #E5E7EB);
    background: var(--preview-surface, #fff);
}

.frontend-page-preview-body {
    padding: 1rem 1.1rem;
    background: var(--preview-background, #F8FAFC);
}

.frontend-page-preview-footer {
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--preview-border, #E5E7EB);
    border-bottom: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--preview-surface, #fff) 88%, var(--preview-primary, #2563EB) 12%) 0%, color-mix(in srgb, var(--preview-background, #F8FAFC) 78%, var(--preview-primary, #2563EB) 22%) 100%);
}

.frontend-page-preview-header.layout-live-header-header_dark_bar,
.frontend-page-preview-footer.layout-live-footer-footer_editorial {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
}

.frontend-page-preview-header.layout-live-header-header_dark_bar .layout-preview-logo,
.frontend-page-preview-header.layout-live-header-header_dark_bar .layout-preview-link,
.frontend-page-preview-header.layout-live-header-header_dark_bar .layout-preview-user,
.frontend-page-preview-footer.layout-live-footer-footer_editorial .layout-preview-footer-brand,
.frontend-page-preview-footer.layout-live-footer-footer_editorial .layout-preview-footer-copy,
.frontend-page-preview-footer.layout-live-footer-footer_editorial .layout-preview-footer-links span {
    color: #fff;
}

.frontend-page-preview-header.layout-live-header-header_centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.frontend-page-preview-header.layout-live-header-header_centered .frontend-page-preview-header-links {
    justify-content: center;
}

.frontend-page-preview-hero.layout-live-hero-hero_split {
    gap: 0;
}

.frontend-page-preview-footer-simple,
.frontend-page-preview-footer-columns,
.frontend-page-preview-footer-editorial {
    display: none;
    width: 100%;
}

.frontend-page-preview-footer.layout-live-footer-footer_simple .frontend-page-preview-footer-simple {
    display: grid;
    gap: 0.45rem;
}
.layout-live-footer-footer_simple .layout-preview-footer-copy.text-center{
    border-top: solid 1px rgb(0,0,0,0.2);
    padding-top: 7px;
}
.frontend-page-preview-footer-columns .layout-preview-footer-links span{
    padding: 0;
    display: block;
}
.frontend-page-preview-footer-columns .layout-preview-footer-copy.text-center{
    border-top: solid 1px rgb(0,0,0,0.2);
    padding-top: 7px;
}
.layout-preview-footer_columns .layout-preview-footer-copy.text-center{
    border-top: solid 1px rgb(0,0,0,0.2);
    padding-top: 7px;
}
.layout-preview-footer_simple .layout-preview-footer-copy.text-center{
    border-top: solid 1px rgb(0,0,0,0.2);
    padding-top: 7px;
}
.layout-preview-footer_columns .layout-preview-footer-links span{
    padding: 0;
    display: block;
}

.frontend-page-preview-footer.layout-live-footer-footer_columns .frontend-page-preview-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.frontend-page-preview-footer.layout-live-footer-footer_editorial .frontend-page-preview-footer-editorial {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.post-hero {
    text-align: left;
    padding: 24px;
}

.post-meta-row {
    justify-content: flex-start;
}

.back-link {
    color: var(--frontend-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.post-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--frontend-text);
    line-height: 1.1;
}

.post-excerpt {
    max-width: 760px;
    color: var(--frontend-muted-text);
    font-size: 1rem;
}

.post-detail-card {
    max-width: 980px;
    margin: 0 auto;
    border-radius: 14px;
}

.post-detail-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.post-detail-content {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.65;
    color: var(--frontend-text);
}

.post-detail-content h1,
.post-detail-content h2,
.post-detail-content h3 {
    color: var(--frontend-text);
    font-weight: 700;
}

.archive-layout,
.archive-preview-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.archive-year-group {
    margin-bottom: 32px;
}

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

.archive-year-heading {
    color: var(--frontend-text);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--frontend-border);
}

.archive-month-group {
    margin-bottom: 24px;
}

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

.archive-month-heading {
    color: var(--frontend-muted-text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.archive-layout.layout-grid .archive-post-card,
.archive-preview-layout.layout-grid .archive-card {
    grid-column: span 4;
}

.archive-layout.layout-masonry .archive-post-card:nth-child(1),
.archive-preview-layout.layout-masonry .archive-card:nth-child(1),
.archive-layout.layout-mixed_asymmetric .archive-post-card:nth-child(1),
.archive-preview-layout.layout-mixed_asymmetric .archive-card:nth-child(1) {
    grid-column: span 3;
    min-height: 260px;
}
.archive-layout.layout-masonry .archive-post-card:nth-child(2),
.archive-preview-layout.layout-masonry .archive-card:nth-child(2),
.archive-layout.layout-mixed_asymmetric .archive-post-card:nth-child(2),
.archive-preview-layout.layout-mixed_asymmetric .archive-card:nth-child(2) {
    grid-column: span 6;
    min-height: 340px;
}
.archive-layout.layout-masonry .archive-post-card:nth-child(3),
.archive-preview-layout.layout-masonry .archive-card:nth-child(3),
.archive-layout.layout-mixed_asymmetric .archive-post-card:nth-child(3),
.archive-preview-layout.layout-mixed_asymmetric .archive-card:nth-child(3) {
    grid-column: span 3;
    min-height: 260px;
}
.archive-layout.layout-masonry .archive-post-card:nth-child(n+4),
.archive-preview-layout.layout-masonry .archive-card:nth-child(n+4),
.archive-layout.layout-mixed_asymmetric .archive-post-card:nth-child(n+4),
.archive-preview-layout.layout-mixed_asymmetric .archive-card:nth-child(n+4) {
    grid-column: span 4;
}

.archive-layout.layout-list .archive-post-card,
.archive-preview-layout.layout-list .archive-card {
    grid-column: span 12;
}

.archive-layout.layout-featured_center .archive-post-card:nth-child(1),
.archive-preview-layout.layout-featured_center .archive-card:nth-child(1) {
    grid-column: 3 / span 8;
    min-height: 360px;
}
.archive-layout.layout-featured_center .archive-post-card:nth-child(n+2),
.archive-preview-layout.layout-featured_center .archive-card:nth-child(n+2) {
    grid-column: span 4;
}

.archive-post-card,
.archive-card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    min-height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--archive-card-background-color, #b8bcc4);
    color: var(--archive-card-body-color, #fff);
    display: flex;
    flex-direction: column;
}

.archive-post-card.image-background,
.archive-card.bg-image {
    background-size: cover;
    background-position: center;
}

.archive-post-card.image-top .archive-media,
.archive-card.top-image .archive-media {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.archive-post-card.image-horizontal,
.archive-card.horizontal {
    flex-direction: row;
}
.archive-post-card.image-horizontal.image-right,
.archive-card.horizontal.right {
    flex-direction: row-reverse;
}

.archive-post-card.image-horizontal .archive-media,
.archive-card.horizontal .archive-media {
    width: 42%;
    min-height: 100%;
    background-size: cover;
    background-position: center;
}

.archive-content-wrap {
    display: flex;
    flex: 1;
}

.archive-content {
    padding: 20px;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-main-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.archive-post-card.content-top .archive-main-content,
.archive-card.content-top .archive-main-content {
    justify-content: flex-start;
}
.archive-post-card.content-middle .archive-main-content,
.archive-card.content-middle .archive-main-content {
    justify-content: center;
}
.archive-post-card.content-bottom .archive-main-content,
.archive-card.content-bottom .archive-main-content {
    justify-content: flex-end;
}

.archive-post-card.align-left .archive-content,
.archive-card.align-left .archive-content { text-align: left; }
.archive-post-card.align-center .archive-content,
.archive-card.align-center .archive-content { text-align: center; }
.archive-post-card.align-right .archive-content,
.archive-card.align-right .archive-content { text-align: right; }

.archive-post-card.align-center .archive-top-row,
.archive-post-card.align-right .archive-top-row,
.archive-card.align-center .archive-top-row,
.archive-card.align-right .archive-top-row {
    justify-content: center !important;
    flex-direction: column;
}

.archive-title,
.archive-post-card .post-card-title,
.archive-post-card .post-card-title a {
    color: var(--archive-card-title-color, #fff);
}

.archive-post-card .post-meta-date,
.archive-post-card .post-category-badge,
.archive-post-card .read-more-link,
.archive-card .archive-category,
.archive-card .archive-read-more {
    color: var(--archive-card-body-color, #fff);
}

.archive-card .archive-meta {
    color: var(--archive-card-post-date-color, var(--archive-card-body-color, #fff));
}

.archive-post-card .post-meta-date {
    color: var(--archive-card-post-date-color, var(--archive-card-body-color, #fff)) !important;
}

/* Keep read-more inside the content flow so content position (top/middle/bottom) works. */
.archive-post-card .read-more-link {
    margin-top: 4px;
    color: var(--archive-card-read-more-color, var(--archive-card-body-color, #fff));
}
.archive-card .archive-read-more {
    color: var(--archive-card-read-more-color, var(--archive-card-body-color, #fff));
}
.archive-post-card .read-more-link:hover {
    color: color-mix(in srgb, var(--archive-card-read-more-color, #fff) 82%, #000 18%);
}
.archive-card .archive-read-more:hover {
    color: color-mix(in srgb, var(--archive-card-read-more-color, #fff) 82%, #000 18%);
}
.archive-category-row {
    margin-top: 8px;
    display: flex;
    width: 100%;
    flex-direction: row !important;
    align-items: center;
}
.archive-category-row.align-left { justify-content: flex-start !important; }
.archive-category-row.align-center { justify-content: center !important; }
.archive-category-row.align-right { justify-content: flex-end !important; }
.archive-category-row .post-category-badge {
    display: inline-flex;
    width: auto;
    max-width: max-content;
    white-space: nowrap;
    color: var(--archive-card-category-color, #fff) !important;
    background: var(--archive-card-category-bg, rgba(37, 99, 235, 0.95));
    border-color: color-mix(in srgb, var(--archive-card-category-bg, #2563EB) 78%, #000 22%);
}

.archive-text-font-inter .archive-body-text,
.archive-text-font-inter .post-meta-date,
.archive-text-font-inter .read-more-link,
.archive-text-font-inter .archive-meta,
.archive-text-font-inter .archive-excerpt { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.archive-text-font-georgia .archive-body-text,
.archive-text-font-georgia .post-meta-date,
.archive-text-font-georgia .read-more-link,
.archive-text-font-georgia .archive-meta,
.archive-text-font-georgia .archive-excerpt { font-family: Georgia, "Times New Roman", serif; }
.archive-text-font-poppins .archive-body-text,
.archive-text-font-poppins .post-meta-date,
.archive-text-font-poppins .read-more-link,
.archive-text-font-poppins .archive-meta,
.archive-text-font-poppins .archive-excerpt { font-family: Poppins, "Segoe UI", sans-serif; }
.archive-text-font-merriweather .archive-body-text,
.archive-text-font-merriweather .post-meta-date,
.archive-text-font-merriweather .read-more-link,
.archive-text-font-merriweather .archive-meta,
.archive-text-font-merriweather .archive-excerpt { font-family: Merriweather, Georgia, serif; }
.archive-text-font-source_sans .archive-body-text,
.archive-text-font-source_sans .post-meta-date,
.archive-text-font-source_sans .read-more-link,
.archive-text-font-source_sans .archive-meta,
.archive-text-font-source_sans .archive-excerpt { font-family: "Source Sans 3", "Segoe UI", sans-serif; }
.archive-text-font-lora .archive-body-text,
.archive-text-font-lora .post-meta-date,
.archive-text-font-lora .read-more-link,
.archive-text-font-lora .archive-meta,
.archive-text-font-lora .archive-excerpt { font-family: Lora, Georgia, serif; }
.archive-text-font-open_sans .archive-body-text,
.archive-text-font-open_sans .post-meta-date,
.archive-text-font-open_sans .read-more-link,
.archive-text-font-open_sans .archive-meta,
.archive-text-font-open_sans .archive-excerpt { font-family: "Open Sans", "Segoe UI", sans-serif; }

.archive-title-font-inter,
.archive-title-font-inter .post-title-link { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.archive-title-font-georgia,
.archive-title-font-georgia .post-title-link { font-family: Georgia, "Times New Roman", serif; }
.archive-title-font-poppins,
.archive-title-font-poppins .post-title-link { font-family: Poppins, "Segoe UI", sans-serif; }
.archive-title-font-merriweather,
.archive-title-font-merriweather .post-title-link { font-family: Merriweather, Georgia, serif; }
.archive-title-font-source_sans,
.archive-title-font-source_sans .post-title-link { font-family: "Source Sans 3", "Segoe UI", sans-serif; }
.archive-title-font-lora,
.archive-title-font-lora .post-title-link { font-family: Lora, Georgia, serif; }
.archive-title-font-open_sans,
.archive-title-font-open_sans .post-title-link { font-family: "Open Sans", "Segoe UI", sans-serif; }

.font-size-sm { font-size: 0.84rem; }
.font-size-md { font-size: 0.95rem; }
.font-size-lg { font-size: 1.05rem; }

.archive-excerpt {
    margin: 0 0 6px;
    color: var(--archive-card-body-color, rgba(255, 255, 255, 0.95));
    line-height: 1.45;
}

.archive-excerpt.lines-3,
.archive-excerpt.lines-4 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
}

.archive-excerpt.lines-3 { -webkit-line-clamp: 3; }
.archive-excerpt.lines-4 { -webkit-line-clamp: 4; }

.archive-card .archive-title { font-size: 1.9rem; line-height: 1.15; margin: 0; }
.archive-card .archive-title.tag-h1 { font-size: 2rem; line-height: 1.2; }
.archive-card .archive-title.tag-h2 { font-size: 1.65rem; line-height: 1.24; }
.archive-card .archive-title.tag-h3 { font-size: 1.4rem; line-height: 1.28; }
.archive-card .archive-title.tag-h4 { font-size: 1.2rem; line-height: 1.35; }
.archive-card .archive-title.tag-h5 { font-size: 1.05rem; line-height: 1.42; }
.archive-card .archive-title.tag-h6 { font-size: 0.94rem; line-height: 1.45; }

.ck-editor__editable_inline {
    min-height: 360px;
}
.archive-card .archive-meta { font-size: 0.95rem; opacity: 0.9; }
.archive-card .archive-read-more {
    margin-top: 4px;
    text-decoration: none;
    font-weight: 600;
}

.archive-preview-layout .archive-card.pattern-0,
.archive-preview-layout .archive-card.pattern-1,
.archive-preview-layout .archive-card.pattern-2,
.archive-preview-layout .archive-card.pattern-3,
.archive-preview-layout .archive-card.pattern-4 {
    background-color: color-mix(in srgb, var(--frontend-surface) 72%, var(--frontend-primary) 28%);
}

@media (max-width: 1199px) {
    .archive-layout.layout-grid .archive-post-card,
    .archive-layout.layout-masonry .archive-post-card,
    .archive-layout.layout-featured_center .archive-post-card,
    .archive-layout.layout-mixed_asymmetric .archive-post-card {
        grid-column: span 6 !important;
    }
    .archive-layout.layout-list .archive-post-card {
        grid-column: span 12 !important;
    }
    .archive-preview-layout.layout-grid .archive-card,
    .archive-preview-layout.layout-masonry .archive-card,
    .archive-preview-layout.layout-featured_center .archive-card,
    .archive-preview-layout.layout-mixed_asymmetric .archive-card {
        grid-column: span 6 !important;
    }
}

@media (max-width: 991px) {
    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .page-content {
        padding: 16px;
    }

    .editor-sidebar {
        position: static;
    }

    .public-main {
        padding-top: 1.4rem;
        padding-bottom: 2.2rem;
    }

    .blog-hero-lite {
        padding: 28px 20px;
    }

    .post-card-image-wrap { height: 200px; }

    .post-title {
        font-size: clamp(1.65rem, 8vw, 2.35rem);
    }

    .archive-layout .archive-post-card,
    .archive-preview-layout .archive-card {
        grid-column: span 12 !important;
    }

    .archive-post-card.image-horizontal,
    .archive-card.horizontal {
        flex-direction: column !important;
    }

    .archive-post-card.image-horizontal .archive-media,
    .archive-card.horizontal .archive-media {
        width: 100%;
        height: 170px;
    }

    .setup-stepper {
        grid-template-columns: repeat(3, minmax(110px, 1fr));
        row-gap: 14px;
    }

    .setup-stepper::before {
        display: none;
    }
}

@media (max-width: 767px) {
    .public-header {
        padding: 0.5rem 0;
    }

    .blog-hero-lite {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: clamp(1.7rem, 9vw, 2.25rem);
    }

    .category-pill {
        min-height: 38px;
        font-size: 0.84rem;
        padding: 0.45rem 0.95rem;
    }

    .post-card-image-wrap {
        height: 220px;
    }

    .hero-centered .public-hero-card-centered .public-hero-image {
        min-height: 320px;
    }

    .hero-centered .public-hero-card-centered .public-hero-content {
        padding: 1.1rem 1rem;
    }
}

.post-editorial-hero {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--frontend-border);
    background: linear-gradient(180deg, color-mix(in srgb, var(--frontend-bg) 84%, var(--frontend-primary) 16%) 0%, var(--frontend-surface) 100%);
    min-height: 230px;
}

.post-editorial-hero-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.post-editorial-hero-fallback {
    height: 250px;
    background: radial-gradient(circle at 20% 40%, rgba(var(--frontend-primary-rgb), 0.18) 0 80px, transparent 81px), linear-gradient(120deg, var(--frontend-bg) 0%, var(--frontend-surface) 100%);
}

.post-editorial-shell {
    background: transparent;
    border-radius: 0;
    border: 0;
    padding: 0;
}

.post-editorial-main {
    background: var(--frontend-surface);
    border: 1px solid var(--frontend-border);
    border-radius: 14px;
    padding: 24px;
}

.post-editorial-category {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    color: var(--frontend-muted-text);
    font-weight: 700;
}

.post-editorial-title {
    color: var(--frontend-text);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.18;
    font-weight: 500;
    font-family: Georgia, "Times New Roman", serif;
}

.post-editorial-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--frontend-muted-text);
    font-size: 0.82rem;
}

.post-editorial-content {
    color: var(--frontend-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    font-size: 1rem;
}

/* CKEditor stores inline images at their original dimensions. Keep them inside
   the public article card while preserving their aspect ratio. */
.post-editorial-content figure,
.post-editorial-content img {
    max-width: 100%;
}

.post-editorial-content img {
    height: auto;
}

.post-editorial-content figure.image img {
    display: block;
}

.post-editorial-content h1,
.post-editorial-content h2,
.post-editorial-content h3,
.post-editorial-content h4,
.post-editorial-content h5,
.post-editorial-content h6 {
    color: var(--frontend-text);
    font-family: inherit;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 1.2em;
    margin-bottom: 0.5rem;
}

.post-editorial-content h1:first-child {
    margin-top: 0.8rem;
}

.post-editorial-content p,
.post-editorial-content ul,
.post-editorial-content ol,
.post-editorial-content blockquote,
.post-editorial-content figure {
    margin-bottom: 1em;
}

.post-editorial-content p:last-child,
.post-editorial-content ul:last-child,
.post-editorial-content ol:last-child,
.post-editorial-content blockquote:last-child,
.post-editorial-content figure:last-child {
    margin-bottom: 0;
}

.post-editorial-sidebar {
    position: sticky;
    top: 90px;
}

.post-sidebar-card {
    background: var(--frontend-surface);
    border: 1px solid var(--frontend-border);
    border-radius: 12px;
    padding: 16px;
}

.post-sidebar-title {
    font-size: 1rem;
    color: var(--frontend-text);
    font-weight: 600;
    margin-bottom: 12px;
    font-family: Georgia, "Times New Roman", serif;
}

.post-sidebar-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--frontend-border);
}

.post-sidebar-item.no-post-date {
    align-items: center;
}

.post-sidebar-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.post-sidebar-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-sidebar-thumb-fallback {
    background: color-mix(in srgb, var(--frontend-surface) 70%, var(--frontend-primary) 30%);
}

.post-sidebar-item-body {
    min-width: 0;
}

.post-sidebar-item-title {
    color: var(--frontend-text);
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 3px;
    font-weight: 600;
}

.post-sidebar-item-date {
    color: var(--frontend-muted-text);
    font-size: 0.72rem;
    margin-bottom: 0;
}

.post-sidebar-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--frontend-text);
    font-size: 0.83rem;
    padding: 9px 0;
    border-bottom: 1px solid var(--frontend-border);
}

.post-sidebar-category:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.post-sidebar-category:hover {
    color: var(--frontend-primary);
}

.post-sidebar-category-count {
    color: var(--frontend-muted-text);
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 12px;
}

.auth-page,
.account-page {
    background: linear-gradient(180deg, var(--frontend-bg) 0%, color-mix(in srgb, var(--frontend-bg) 86%, var(--frontend-primary) 14%) 100%);
}

.auth-page-shell {
    min-height: calc(100vh - 72px);
    padding: 24px;
}

.auth-page-shell-login {
    padding-top: 48px;
}

.auth-card {
    width: 100%;
    max-width: 720px;
    border-radius: 24px;
    border: 1px solid var(--frontend-border);
    background: var(--frontend-surface);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(var(--frontend-primary-rgb), 0.12);
    color: var(--frontend-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-title {
    color: var(--frontend-text);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
}

.auth-subtitle {
    color: var(--frontend-muted-text);
}

.auth-link {
    color: var(--frontend-primary);
    text-decoration: none;
}

.auth-link:hover {
    color: var(--frontend-primary-hover);
    text-decoration: underline;
}

.auth-primary-btn {
    background: var(--frontend-primary);
    border-color: var(--frontend-primary);
    font-weight: 700;
    color: var(--frontend-on-primary);
}

.auth-primary-btn:hover {
    background: var(--frontend-primary-hover);
    border-color: var(--frontend-primary-hover);
}

.auth-primary-btn-success {
    background: #22c55e;
    border-color: #22c55e;
}

.auth-primary-btn-success:hover {
    background: #16a34a;
    border-color: #16a34a;
}

.verification-code-group {
    margin: 0.25rem 0 0.5rem;
}

.verification-code-input {
    width: 56px;
    height: 64px;
    padding: 0;
    border-radius: 12px;
    border-color: var(--frontend-border);
    box-shadow: none;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--frontend-text);
}

.verification-code-input:focus {
    border-color: var(--frontend-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--frontend-primary-rgb), 0.12);
}

.auth-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--frontend-surface);
    border-bottom: 1px solid var(--frontend-border);
}

.password-toggle {
    min-width: 52px;
}

.public-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    color: var(--frontend-text);
    font-weight: 700;
    padding: 0.45rem 0.8rem;
}

.public-user-trigger::after {
    margin-left: 0.35rem;
}

.public-user-initials,
.account-avatar,
.post-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--frontend-primary-rgb), 0.14);
    color: var(--frontend-primary);
    font-weight: 800;
    flex-shrink: 0;
}

.public-user-menu {
    border: 1px solid var(--frontend-border);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    padding: 0.35rem;
    background: var(--frontend-surface);
}

.public-user-menu .dropdown-item {
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
}

.public-user-menu .dropdown-item:hover {
    background: rgba(var(--frontend-primary-rgb), 0.12);
}

.post-comments-section {
    border-top: 1px solid var(--frontend-border);
    padding-top: 1.25rem;
}

.post-comments-title {
    color: var(--frontend-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.post-comment-access-card,
.post-comment-form-card,
.post-comment-card,
.account-summary-card,
.account-comment-card,
.account-empty-state,
.post-comment-empty {
    background: var(--frontend-surface);
    border: 1px solid var(--frontend-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.post-comment-access-card,
.post-comment-form-card,
.account-summary-card,
.account-comment-card,
.account-empty-state,
.post-comment-empty {
    padding: 1rem 1.1rem;
}

.post-comment-card {
    padding: 0.9rem 1rem;
}

.post-comment-card .d-flex {
    min-height: 28px;
}

.post-comment-name,
.account-page-title {
    color: var(--frontend-text);
    font-family: Georgia, "Times New Roman", serif;
}

.post-comment-name {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.1;
}

.post-comment-date,
.account-comment-meta,
.account-page-subtitle,
.summary-label {
    color: var(--frontend-muted-text);
    font-size: 0.82rem;
}

.post-comment-body,
.account-comment-body,
.summary-value {
    color: var(--frontend-text);
    line-height: 1.7;
    white-space: pre-wrap;
}

.post-comment-avatar,
.account-avatar {
    width: 58px;
    height: 58px;
    font-size: 1rem;
}

.post-comment-date {
    padding-top: 0.35rem;
}

.post-comment-body {
    margin-top: 0.35rem !important;
    font-size: 1rem;
}

.action-btn-col label{
    visibility: hidden;
}

.account-page-head {
    padding-bottom: 0.25rem;
}

.account-page-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 600;
}

.account-comment-card {
    padding: 1.1rem 1.2rem;
}

.account-empty-state,
.post-comment-empty {
    color: var(--frontend-muted-text);
    font-weight: 500;
}

.profile-saving-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--frontend-surface) 80%, transparent 20%);
    backdrop-filter: blur(1px);
    border-radius: 16px;
}

.profile-toast {
    min-width: 320px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 1;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.profile-toast-success {
    border-left: 4px solid #22c55e !important;
}

.profile-toast-error {
    border-left: 4px solid #ef4444 !important;
}

.profile-toast-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--frontend-primary) 18%, var(--frontend-surface) 82%);
    color: var(--frontend-primary);
    font-size: 1.1rem;
}

.profile-toast-error .profile-toast-icon {
    background: color-mix(in srgb, #ef4444 18%, var(--frontend-surface) 82%);
    color: #ef4444;
}

.profile-toast-title {
    color: var(--frontend-text);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
}

.profile-toast-subtitle {
    color: #334155;
    font-size: 0.96rem;
    line-height: 1.35;
    margin-top: 2px;
}

.public-blog-page .form-control,
.public-blog-page .form-select,
.public-blog-page .input-group-text,
.public-blog-page .btn-outline-secondary,
.auth-page .form-control,
.auth-page .form-select,
.auth-page .input-group-text,
.auth-page .btn-outline-secondary,
.account-page .form-control,
.account-page .form-select,
.account-page .input-group-text,
.account-page .btn-outline-secondary {
    background-color: var(--frontend-surface);
    color: var(--frontend-text);
    border-color: var(--frontend-border);
}

.public-blog-page .form-control:focus,
.public-blog-page .form-select:focus,
.auth-page .form-control:focus,
.auth-page .form-select:focus,
.account-page .form-control:focus,
.account-page .form-select:focus {
    border-color: var(--frontend-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--frontend-primary-rgb), 0.15);
}

.public-blog-page .btn-outline-secondary,
.auth-page .btn-outline-secondary,
.account-page .btn-outline-secondary {
    color: var(--frontend-text);
    border-color: var(--frontend-border);
}

.public-blog-page .btn-outline-secondary:hover,
.auth-page .btn-outline-secondary:hover,
.account-page .btn-outline-secondary:hover {
    background-color: rgba(var(--frontend-primary-rgb), 0.10);
    color: var(--frontend-primary);
    border-color: var(--frontend-primary);
}

.public-blog-page .btn-primary,
.auth-page .btn-primary,
.account-page .btn-primary {
    background-color: var(--frontend-primary);
    border-color: var(--frontend-primary);
    color: var(--frontend-on-primary);
}

.public-blog-page .btn-primary:hover,
.auth-page .btn-primary:hover,
.account-page .btn-primary:hover {
    background-color: var(--frontend-primary-hover);
    border-color: var(--frontend-primary-hover);
    color: var(--frontend-on-primary);
}

.public-blog-page .text-muted,
.auth-page .text-muted,
.account-page .text-muted {
    color: var(--frontend-muted-text) !important;
}

.public-blog-page .badge.text-bg-light,
.auth-page .badge.text-bg-light,
.account-page .badge.text-bg-light {
    background: var(--frontend-surface) !important;
    color: var(--frontend-text) !important;
    border-color: var(--frontend-border) !important;
}

.public-blog-page .dropdown-menu,
.auth-page .dropdown-menu,
.account-page .dropdown-menu {
    background: var(--frontend-surface);
    color: var(--frontend-text);
    border-color: var(--frontend-border);
}

.public-blog-page .dropdown-item,
.auth-page .dropdown-item,
.account-page .dropdown-item {
    color: var(--frontend-text);
}

.public-blog-page .dropdown-item:hover,
.auth-page .dropdown-item:hover,
.account-page .dropdown-item:hover {
    background: rgba(var(--frontend-primary-rgb), 0.10);
    color: var(--frontend-primary);
}



.image-horizontal.image-left .archive-content-wrap{
    width: 60%;
}
.image-horizontal.image-right .archive-content-wrap{
    width: 60%;
}




@media (max-width: 1680px) {
    .layout-preview-logo, .layout-preview-user, .layout-preview-link, .layout-preview-footer-brand, .layout-preview-footer-copy{
        font-size: 10px !important;
    }
    .layout-preview-pills span, .layout-preview-footer-links span{
        font-size: 9px !important;
    }
    .layout-preview-footer-tagline{
        font-size: 9px !important;
    }
    
}



@media (max-width: 991px) {
    .post-editorial-shell {
        padding: 0;
    }

    .post-editorial-main {
        padding: 18px;
    }

    .post-editorial-sidebar {
        position: static;
    }
}



.public-blog-page[data-frontend-content-layout="full_width"] .public-container.public-hero-overlay-container{
    padding: 0 0;
    margin-bottom: 30px;
}
.public-blog-page[data-frontend-content-layout="full_width"] .public-container.public-hero-overlay-container .public-hero-content{
    border-radius: 0;
}
.public-blog-page[data-frontend-content-layout="full_width"] .public-hero.hero-minimal-banner{
    padding: 0 0;
    margin-bottom: 30px;
}
.public-blog-page[data-frontend-content-layout="full_width"] .public-hero.hero-split{
    padding: 0 0;
    margin-bottom: 30px;
}

@media (max-width: 767px){
    .public-hero-split-visual{
        display: none;
    }
    .public-hero-split-grid {
        display: block;
    }
}








.dashboard-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 12px 14px;
    box-sizing: border-box;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Card */
.stat-card {
    min-height: 146px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 22px;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 18px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.035),
        0 2px 8px rgba(15, 23, 42, 0.02);
    box-sizing: border-box;
}

/* Left area */
.stat-card__left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

/* Large circle icon */
.stat-card__icon {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.stat-card__icon svg {
    width: 34px;
    height: 34px;
}

/* Text */
.stat-card__content {
    display: flex;
    flex-direction: column;
}

.stat-card__title {
    margin: 0 0 8px;
    color: #44516c;
    font-size: 20px;
  font-weight: 700;
    line-height: 1.3;
}

.stat-card__description {
    margin: 0;
    color: #66738f;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

/* Right count */
.stat-card__value {
    min-width: 70px;
    text-align: right;
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1px;
}

/* =========================
   BLUE CARD
========================= */

.stat-card--blue .stat-card__icon {
    background: #eef5ff;
    border: 1px solid #d9e7ff;
    color: #075fff;
}

.stat-card--blue .stat-card__value {
    color: #0557e8;
}

/* =========================
   PURPLE CARD
========================= */

.stat-card--purple .stat-card__icon {
    background: #f5efff;
    border: 1px solid #e8dcff;
    color: #7438e8;
}

.stat-card--purple .stat-card__value {
    color: #6130cc;
}

/* =========================
   GREEN CARD
========================= */

.stat-card--green .stat-card__icon {
    background: #eafaf2;
    border: 1px solid #d2f1e1;
    color: #05aa61;
}

.stat-card--green .stat-card__value {
    color: #079853;
}

/* =========================
   Responsive
========================= */

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

@media (max-width: 700px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }

    .stat-card {
        min-height: 135px;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 20px 16px;
    }

    .stat-card__left {
        gap: 14px;
    }

    .stat-card__icon {
        width: 62px;
        height: 62px;
        min-width: 62px;
    }

    .stat-card__icon svg {
        width: 28px;
        height: 28px;
    }

    .stat-card__value {
        font-size: 34px;
        min-width: 55px;
    }

    .stat-card__description {
        font-size: 13px;
    }
}







.analytics-stats {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 22px;
    margin-bottom: 24px;
}

.analytics-card {
    min-height: 175px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
    padding: 28px 30px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left side */
.analytics-card-left {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    min-width: 0;
}

/* Circle icon */
.analytics-main-icon {
    width: 86px;
    height: 86px;
    min-width: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analytics-main-icon svg {
    width: 37px;
    height: 37px;
}

.analytics-card--views .analytics-main-icon {
    background: #eef4ff;
    color: #1160ff;
}

.analytics-card--post .analytics-main-icon {
    background: #f4efff;
    color: #6e35ee;
}

/* Content */
.analytics-card-content {
    min-width: 0;
}

.analytics-card-title {
    margin: 0 0 8px;
    color: #344054;
    font-size: 25px;
  font-weight: 700;
    line-height: 1.3;
}

.analytics-post-title {
    margin: 0;
    color: #536178;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

/* Right count */
.analytics-card-count {
    flex-shrink: 0;
    margin-left: 30px;
    text-align: right;
}

.analytics-card-count .count-label {
    display: block;
    margin-bottom: 7px;
    color: #667085;
    font-size: 14px;
    font-weight: 500;
}

.analytics-card-count .count-value {
    color: #101828;
    font-size: 43px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.analytics-card--post .count-value {
    color: #6b32eb;
}


/* Responsive */
@media (max-width: 1000px) {
    .analytics-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .analytics-card {
        min-height: 140px;
        padding: 20px;
    }

    .analytics-card-left {
        gap: 16px;
    }

    .analytics-main-icon {
        width: 65px;
        height: 65px;
        min-width: 65px;
    }

    .analytics-main-icon svg {
        width: 30px;
        height: 30px;
    }

    .analytics-card-title {
        font-size: 16px;
    }

    .analytics-post-title {
        font-size: 14px;
    }

    .analytics-card-count {
        margin-left: 15px;
    }

    .analytics-card-count .count-value {
        font-size: 34px;
    }
}
