:root {
    --primary: #0f766e;
    --secondary: #f6fbfa;
    --accent: #f59e0b;
    --font: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    --font-size: 16px;
    --menu-bg: rgba(255, 255, 255, 0.88);
    --menu-text: #12343b;
    --menu-font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    --menu-font-size: 15px;
    --footer-bg: #0f172a;
    --footer-text: #f8fafc;
    --footer-font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    --footer-font-size: 14px;
    --module-bg: #ffffff;
    --module-text: #102a43;
    --module-font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    --module-font-size: 16px;
    --site-width: min(1380px, calc(100vw - 48px));
    --site-bar-padding-extra: 0px;
    --site-panel-radius: 0px;
    --site-sidebar-offset: 0px;
    --site-bar-gradient-range: 24%;
    --site-bar-gradient-range-soft: 16%;
    --site-bar-gradient-primary: rgba(15, 118, 110, 0.12);
    --site-bar-gradient-primary-soft: rgba(15, 118, 110, 0.08);
    --site-bar-gradient-accent: rgba(245, 158, 11, 0.16);
    --site-bar-gradient-accent-soft: rgba(245, 158, 11, 0.10);
    --header-height: 0px;
    --menu-height: 0px;
    --footer-height: 0px;
    --page-width: var(--site-width);
    --header-width: var(--site-width);
    --menu-width: var(--site-width);
    --banner-width: var(--site-width);
    --module-width: var(--site-width);
    --footer-width: var(--site-width);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 16px 48px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body,
button,
input,
textarea,
select {
    font-family: var(--font);
}

body {
    margin: 0;
    color: var(--module-text);
    font-size: var(--font-size);
}

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

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

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

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.public-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 10%, rgba(15, 118, 110, 0.045), transparent 22%),
        radial-gradient(circle at 88% 10%, rgba(245, 158, 11, 0.05), transparent 14%),
        linear-gradient(180deg, #fafcfd 0%, #f7fafc 45%, #ffffff 100%);
}

.public-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.015) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 88%);
    z-index: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 18px 0 12px;
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: var(--header-width);
    min-height: var(--header-height);
    margin: 0 auto;
    padding: 20px calc(24px + var(--site-bar-padding-extra));
    border-radius: var(--site-panel-radius);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(16, 185, 129, 0.86));
    color: #f8fffe;
    box-shadow: var(--shadow-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.site-brand-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    flex-shrink: 0;
}

.site-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.site-brand-kicker,
.auth-kicker,
.page-intro-tag,
.section-kicker,
.banner-section,
.admin-eyebrow {
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
}

.site-brand-copy strong {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.1;
}

.site-brand-copy em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.header-entry-link {
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-weight: 700;
    white-space: nowrap;
}

.search {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 4px 5px 4px 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    width: 250px;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    overflow: hidden;
    transform-origin: right center;
    transition: width 0.28s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.site-header .search:focus-within {
    width: 390px;
}

.search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    padding: 0 6px;
    height: 30px;
    line-height: 30px;
}

.search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.search input:focus {
    outline: none;
}

.search button,
.search-panel-form button,
.stack-form button,
.toggle-grid button,
.auth-form button,
body.admin button {
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 12px 22px;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.search button:hover,
.search-panel-form button:hover,
.stack-form button:hover,
.toggle-grid button:hover,
.auth-form button:hover,
body.admin button:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.22);
}

.public-page .search button,
.public-page .search-panel-form button {
    border-radius: 12px;
    flex: 0 0 auto;
}

.public-page .search button {
    padding: 9px 14px;
    min-height: 30px;
    line-height: 1;
}

.site-menu {
    padding: 0 0 22px;
}

.site-menu-inner {
    width: var(--menu-width);
    min-height: var(--menu-height);
    margin: 0 auto;
    padding: 14px calc(18px + var(--site-bar-padding-extra));
    border-radius: var(--site-panel-radius);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%),
        var(--menu-bg);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-menu ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-menu a,
.menu-utility-link {
    padding: 11px 16px;
    border-radius: 12px;
    font-family: var(--menu-font-family);
    font-size: var(--menu-font-size);
    font-weight: 700;
    color: var(--menu-text);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-menu a:hover,
.menu-utility-link:hover,
.site-menu a.is-active {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(245, 158, 11, 0.18));
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hero-wrap {
    width: var(--banner-width);
    margin: 0 auto 28px;
}

.banner-slider,
.hero-fallback {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 500px;
    background: #0f172a;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-fallback {
    padding: 42px calc(42px + var(--site-bar-padding-extra));
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: flex-end;
    padding: 42px calc(42px + var(--site-bar-padding-extra));
}

.banner-slide::before,
.hero-fallback::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(15, 23, 42, 0.82) 5%, rgba(15, 23, 42, 0.32) 48%, rgba(15, 23, 42, 0.82) 100%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.26), transparent 28%);
}

.banner-slide.active {
    opacity: 1;
}

.banner-content,
.hero-copy {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    color: #f8fafc;
}

.banner-content h2,
.hero-copy h1,
.page-intro h1,
.page-intro h2,
.admin-topbar h1,
.auth-side-copy h1 {
    margin: 10px 0 14px;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.banner-content h2,
.hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.banner-content p,
.hero-copy p {
    margin: 0;
    color: rgba(248, 250, 252, 0.86);
    font-size: 1.05rem;
    line-height: 1.8;
}

.banner-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 13px 24px;
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-solid {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-meta,
.hero-pills,
.page-intro-stats,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.banner-meta span,
.hero-pills span,
.page-intro-stats div,
.meta-row span {
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.banner-nav {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 13px;
    height: 13px;
    border-radius: 10px;
    border: 0;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.banner-dot.active {
    background: #ffffff;
}

.page-shell {
    width: var(--module-width);
    margin: 0 auto 48px;
}

.narrow-shell {
    width: min(920px, calc(100vw - 48px));
}

.layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: stretch;
}

.layout.layout-has-left {
    grid-template-columns: 280px minmax(0, 1fr);
}

.layout.layout-has-right {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.layout.layout-main-only {
    grid-template-columns: minmax(0, 1fr);
}

.sidebar,
.main-content {
    align-self: stretch;
    background: linear-gradient(180deg, var(--module-bg), rgba(255, 255, 255, 0.94));
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-soft);
    color: var(--module-text);
}

.sidebar {
    margin-top: var(--site-sidebar-offset);
    border-radius: var(--site-panel-radius);
    padding: 24px;
    overflow: visible;
}

.sidebar-sticky {
    position: sticky;
    top: calc(132px + var(--site-sidebar-offset));
}

.sidebar::before,
.main-content::before,
.admin-panel::before,
.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.1), transparent 35%);
    z-index: 0;
}

.sidebar,
.main-content,
.admin-panel,
.auth-card {
    position: relative;
}

.sidebar > *,
.main-content > *,
.admin-panel > *,
.auth-card > * {
    position: relative;
    z-index: 1;
}

.sidebar > .sidebar-sticky {
    position: sticky;
    z-index: 1;
}

.sidebar-head p,
.panel-heading p,
.page-intro p,
.results-summary,
.settings-preview-copy span {
    color: #52606d;
}

.sidebar-head h3,
.page-intro h1,
.page-intro h2,
.feature-card h3,
.article-list-card h3,
.panel-heading h2,
.metric-card strong,
.auth-title,
.admin-topbar h1 {
    margin: 0;
    color: #102a43;
}

.sidebar-links,
.sidebar-feed,
.admin-feed,
.article-list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.sidebar-links li + li,
.sidebar-feed li + li,
.admin-feed li + li,
.article-list li + li {
    margin-top: 12px;
}

.sidebar-links a,
.sidebar-feed a,
.admin-feed a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sidebar-links a:hover,
.sidebar-feed a:hover,
.admin-feed a:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 118, 110, 0.16);
}

.sidebar-links strong,
.sidebar-feed span {
    color: var(--primary);
    font-weight: 800;
}

.empty-hint,
.empty-inline {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.08);
    color: #486581;
    margin-top: 18px;
}

.main-content {
    border-radius: var(--site-panel-radius);
    padding: 30px;
    font-family: var(--module-font-family);
    font-size: var(--module-font-size);
}

.page-intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 30px;
    padding: 28px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 250, 255, 0.88)),
        linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(245, 158, 11, 0.06));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.page-intro h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.page-intro h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.page-intro p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.85;
}

.page-intro-stats div {
    min-width: 130px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.14);
    padding: 16px 18px;
}

.page-intro-stats strong {
    display: block;
    font-size: 1.8rem;
    color: #102a43;
}

.page-intro-stats span {
    display: block;
    margin-top: 6px;
    color: #52606d;
}

.content-section + .content-section {
    margin-top: 24px;
}

.content-section {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.section-heading h2 {
    margin: 6px 0 0;
    font-size: 1.6rem;
}

.section-count {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
    font-weight: 800;
    white-space: nowrap;
}

.section-description {
    margin: 14px 0 0;
    color: #52606d;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.feature-card,
.theme-preview-card {
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.92));
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.1);
}

.card-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-tag.muted {
    background: rgba(15, 23, 42, 0.08);
    color: #334e68;
}

.feature-card h3,
.article-list-card h3,
.theme-preview-card h3 {
    margin: 18px 0 10px;
    font-size: 1.2rem;
    line-height: 1.45;
}

.feature-card p,
.article-list-card p,
.theme-preview-card p,
.content-body,
.settings-preview-copy p {
    margin: 0;
    color: #52606d;
    line-height: 1.85;
}

.card-meta {
    margin-top: 16px;
    color: #7b8794;
    font-size: 14px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--primary);
    font-weight: 700;
}

.article-list {
    margin-top: 20px;
}

.article-list-card {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.article-list-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    min-width: 120px;
    color: #7b8794;
}

.article-panel .page-intro {
    margin-bottom: 24px;
}

.article-panel-placeholder {
    min-height: 1px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.article-summary {
    font-size: 1.05rem;
}

.content-body {
    padding: 6px 4px 0;
    font-family: var(--module-font-family);
    font-size: var(--module-font-size);
    color: var(--module-text);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: #102a43;
    line-height: 1.3;
}

.prose p,
.prose li,
.prose blockquote {
    color: #334e68;
    line-height: 1.95;
}

.prose img {
    margin: 24px auto;
    border-radius: 14px;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

.prose blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--primary);
    background: rgba(15, 118, 110, 0.08);
    border-radius: 0 14px 14px 0;
}

.prose::after {
    content: "";
    display: block;
    clear: both;
}

.prose figure,
.prose .wp-block-image,
.prose .wp-block-gallery,
.prose .wp-block-columns,
.prose .wp-block-group,
.prose .wp-block-media-text,
.prose .wp-block-cover,
.prose .wp-block-table,
.prose .wp-block-buttons,
.prose .wp-block-embed,
.prose .wp-block-video,
.prose .wp-block-audio {
    margin: 28px 0;
}

.prose figure,
.prose .wp-block-image {
    display: grid;
    gap: 12px;
}

.prose figcaption,
.prose .wp-element-caption,
.prose .blocks-gallery-caption {
    color: #7b8794;
    font-size: 14px;
    line-height: 1.75;
    text-align: center;
}

.prose .aligncenter,
.prose .has-text-align-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.prose .has-text-align-left {
    text-align: left;
}

.prose .has-text-align-right {
    text-align: right;
}

.prose .alignleft {
    float: left;
    margin: 10px 24px 20px 0;
}

.prose .alignright {
    float: right;
    margin: 10px 0 20px 24px;
}

.prose .alignwide,
.prose .alignfull {
    width: min(100%, calc(100% + 96px));
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.prose .wp-block-columns,
.prose .wp-block-media-text,
.prose .is-layout-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: flex-start;
}

.prose .is-layout-flex,
.prose .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.prose .wp-block-column > :first-child,
.prose .wp-block-media-text__content > :first-child,
.prose .wp-block-group > :first-child {
    margin-top: 0;
}

.prose .wp-block-group {
    padding: 24px;
    border-radius: 22px;
    background: rgba(15, 118, 110, 0.05);
}

.prose .wp-block-cover {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 88px) clamp(24px, 5vw, 56px);
    border-radius: 26px;
    background: #102a43;
    color: #ffffff;
}

.prose .wp-block-cover > img,
.prose .wp-block-cover .wp-block-cover__image-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.prose .wp-block-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 42, 67, 0.18), rgba(16, 42, 67, 0.62));
}

.prose .wp-block-cover__inner-container {
    position: relative;
    z-index: 1;
}

.prose .wp-block-table table,
.prose table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
}

.prose .wp-block-table th,
.prose .wp-block-table td,
.prose table th,
.prose table td {
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.prose .wp-block-table th,
.prose table th {
    background: rgba(15, 118, 110, 0.08);
    color: #102a43;
}

.prose .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.prose .wp-block-quote,
.prose .wp-block-pullquote {
    margin: 24px 0;
}

.prose .wp-block-separator {
    width: min(140px, 32%);
    margin: 32px auto;
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.16);
}

.prose .wp-block-embed__wrapper,
.prose iframe,
.prose video {
    width: 100%;
    max-width: 100%;
}

.prose iframe {
    min-height: 420px;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
}

@media (max-width: 860px) {
    .prose .alignleft,
    .prose .alignright {
        float: none;
        display: block;
        margin: 24px auto;
    }

    .prose .alignwide,
    .prose .alignfull {
        width: 100%;
    }

    .prose .wp-block-group,
    .prose .wp-block-cover {
        padding: 20px;
    }

    .prose iframe {
        min-height: 260px;
    }
}

.search-panel-form {
    display: flex;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(243, 248, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.search-panel-form input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0 8px;
}

.search-panel-form input:focus {
    outline: none;
}

.results-summary {
    margin-top: 24px;
    font-weight: 700;
}

.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 48px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-soft);
}

.empty-state.compact {
    padding: 34px 22px;
}

.empty-state h1,
.empty-state h2 {
    margin: 0 0 12px;
    color: #102a43;
}

.empty-state p {
    margin: 0;
    color: #52606d;
    max-width: 560px;
}

.floating-tools {
    position: fixed;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 30;
}

.floating-tools.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-action {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.floating-action.accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.site-footer {
    margin-top: 56px;
    padding: 0 0 24px;
    color: var(--footer-text);
}

.site-footer-inner,
.site-footer-meta {
    width: var(--footer-width);
    margin: 0 auto;
}

.site-footer-inner {
    min-height: var(--footer-height);
    padding: 34px calc(34px + var(--site-bar-padding-extra));
    border-radius: var(--site-panel-radius);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%),
        var(--footer-bg);
    display: flex;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--shadow-strong);
}

.footer-pill {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-page .site-header-inner,
.public-page .site-brand-logo,
.public-page .search,
.public-page .site-menu-inner,
.public-page .site-menu a,
.public-page .banner-slider,
.public-page .hero-fallback,
.public-page .banner-meta span,
.public-page .hero-pills span,
.public-page .page-intro-stats div,
.public-page .meta-row span,
.public-page .sidebar,
.public-page .main-content,
.public-page .sidebar-links a,
.public-page .sidebar-feed a,
.public-page .empty-hint,
.public-page .empty-inline,
.public-page .page-intro,
.public-page .content-section,
.public-page .feature-card,
.public-page .card-tag,
.public-page .section-count,
.public-page .article-list-card,
.public-page .prose img,
.public-page .prose blockquote,
.public-page .search-panel-form,
.public-page .empty-state {
    border-radius: 0;
}

.public-page .site-footer-inner,
.public-page .footer-pill {
    border-radius: 0;
}

.public-page .site-header-inner,
.public-page .site-menu-inner,
.public-page .sidebar,
.public-page .main-content,
.public-page .site-footer-inner,
.public-page .site-footer-meta {
    border-radius: var(--site-panel-radius);
}

.footer-brand h3 {
    margin: 16px 0 10px;
    font-size: 1.9rem;
}

.footer-brand p {
    margin: 0;
    max-width: 480px;
    color: rgba(248, 250, 252, 0.82);
    line-height: 1.85;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 26px;
}

.footer-links h4 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: rgba(248, 250, 252, 0.78);
    margin-bottom: 10px;
}

.site-footer-meta {
    padding: 18px calc(10px + var(--site-bar-padding-extra)) 0;
    border-radius: var(--site-panel-radius);
    text-align: center;
    color: #5a6b7a;
    font-family: var(--footer-font-family);
    font-size: var(--footer-font-size);
}

body.login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 36px 18px;
    background:
        radial-gradient(circle at 12% 12%, rgba(15, 118, 110, 0.18), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(245, 158, 11, 0.18), transparent 24%),
        linear-gradient(180deg, #f5fbfc 0%, #f4f7ff 60%, #ffffff 100%);
    color: #102a43;
}

.auth-hero {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-blob {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: radial-gradient(circle at center, rgba(15, 118, 110, 0.25), transparent 65%);
    filter: blur(24px);
    top: -120px;
    left: -120px;
}

.auth-blob.second {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at center, rgba(245, 158, 11, 0.22), transparent 64%);
    top: auto;
    left: auto;
    right: -160px;
    bottom: -180px;
}

.auth-wrap {
    position: relative;
    z-index: 1;
}

.auth-wide {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.auth-side-copy,
.auth-card {
    padding: 34px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-strong);
    backdrop-filter: blur(18px);
}

.auth-side-copy {
    background:
        linear-gradient(145deg, rgba(15, 118, 110, 0.88), rgba(15, 23, 42, 0.88)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 25%);
    color: #ffffff;
}

.auth-side-copy h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    color: #ffffff;
}

.auth-side-copy p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.85;
}

.auth-feature-list {
    margin: 24px 0 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.9;
}

.auth-card {
    background: rgba(255, 255, 255, 0.84);
}

.auth-title {
    font-size: 2rem;
    font-weight: 800;
}

.auth-sub {
    margin: 8px 0 0;
    color: #52606d;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.auth-form label,
.stack-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: #102a43;
}

.auth-form input,
.stack-form input,
.stack-form textarea,
.stack-form select,
.search-panel-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus,
.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus,
.search-panel-form input:focus {
    border-color: rgba(15, 118, 110, 0.34);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 700;
}

.flash.success {
    background: rgba(34, 197, 94, 0.14);
    color: #166534;
}

.flash.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

body.admin {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 12%, rgba(15, 118, 110, 0.14), transparent 24%),
        radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.14), transparent 18%),
        linear-gradient(180deg, #f5fbfc 0%, #f4f7ff 56%, #ffffff 100%);
    color: #102a43;
}

.admin-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 26px 20px;
    background: rgba(11, 23, 42, 0.94);
    color: #e2e8f0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.06);
}

.admin-brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.admin-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-brand-copy strong {
    color: #ffffff;
}

.admin-brand-copy small {
    color: rgba(226, 232, 240, 0.72);
}

.admin-nav {
    margin-top: 24px;
}

.admin-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.admin-nav a {
    display: block;
    padding: 14px 16px;
    border-radius: 18px;
    color: rgba(226, 232, 240, 0.86);
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.admin-sidebar-footer {
    margin-top: 24px;
    padding: 0 8px;
}

.admin-sidebar-footer a {
    color: rgba(226, 232, 240, 0.78);
}

.admin-main {
    padding: 24px 24px 36px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 26px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-soft);
}

.admin-topbar-copy {
    max-width: 760px;
}

.admin-topbar h1 {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.admin-subtitle {
    margin-top: 10px;
    color: #52606d;
    line-height: 1.8;
}

.admin-topbar-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-user-card,
.admin-action-link {
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-user-card {
    display: grid;
    gap: 6px;
}

.admin-user-role {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.admin-action-link {
    font-weight: 700;
}

.admin-action-link.secondary {
    background: rgba(239, 68, 68, 0.06);
    color: #b91c1c;
}

.admin-page {
    margin-top: 24px;
}

.dashboard-metrics,
.admin-grid {
    display: grid;
    gap: 20px;
}

.dashboard-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.metric-card,
.admin-panel {
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow-soft);
}

.metric-card span {
    color: #52606d;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin-top: 14px;
    font-size: 2.4rem;
}

.metric-card p {
    margin: 12px 0 0;
    color: #52606d;
    line-height: 1.8;
}

.dashboard-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

.admin-form-layout,
.settings-layout,
.themes-layout {
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
}

.panel-heading {
    margin-bottom: 18px;
}

.panel-heading h2 {
    font-size: 1.45rem;
}

.panel-heading p {
    margin: 10px 0 0;
    line-height: 1.75;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.quick-links a,
.admin-inline-link {
    display: block;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--primary);
    font-weight: 700;
}

.stack-form {
    display: grid;
    gap: 16px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.check-row input {
    width: 18px;
    height: 18px;
}

.section-actions {
    margin-bottom: 16px;
}

.section-actions a {
    color: var(--primary);
    font-weight: 700;
}

.table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
}

.admin-table th,
.admin-table td {
    padding: 15px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    text-align: left;
    vertical-align: top;
}

.admin-table thead th {
    background: rgba(15, 118, 110, 0.08);
    color: #102a43;
    font-weight: 800;
}

.admin-table tbody tr:hover {
    background: rgba(15, 118, 110, 0.04);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table-actions a {
    color: var(--primary);
    font-weight: 700;
}

.image-preview-card {
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.image-preview-card img,
.admin-thumb {
    border-radius: 16px;
}

.admin-thumb {
    width: 96px;
    height: 60px;
    object-fit: cover;
}

.settings-preview {
    display: grid;
    gap: 20px;
}

.logo-preview img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto;
}

.settings-preview-copy {
    display: grid;
    gap: 10px;
}

.settings-preview-copy strong {
    font-size: 1.4rem;
    color: #102a43;
}

.width-limit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.width-limit-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.width-limit-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #102a43;
}

.width-limit-card p {
    margin: 0;
    color: #52606d;
    line-height: 1.7;
    font-size: 14px;
}

.width-limit-card label {
    display: grid;
    gap: 8px;
}

.width-limit-summary {
    display: grid;
    gap: 12px;
}

.width-limit-summary span {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.08);
    color: #334e68;
    line-height: 1.7;
}

.toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.toggle-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.toggle-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.toggle-card-copy {
    display: grid;
    gap: 6px;
}

.toggle-card-copy small {
    color: #52606d;
    line-height: 1.6;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.color-grid label {
    display: grid;
    gap: 8px;
}

.color-grid input[type="color"] {
    height: 52px;
    padding: 6px;
}

.theme-preview-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.theme-preview-actions span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.theme-region-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-region-swatches span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.theme-preset-section {
    margin-top: 24px;
}

.theme-preset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.theme-preset-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.theme-preset-card.is-active {
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 22px 48px rgba(15, 118, 110, 0.12);
}

.theme-preset-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.theme-preset-top h3 {
    margin: 12px 0 8px;
    font-size: 1.15rem;
}

.theme-preset-top p {
    margin: 0;
    color: #52606d;
    line-height: 1.7;
}

.theme-current-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.theme-preset-shell {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.theme-preset-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.theme-preset-header {
    min-height: 60px;
}

.theme-preset-menu {
    min-height: 46px;
}

.theme-preset-body {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 78px;
    min-height: 120px;
}

.theme-preset-side {
    min-height: 120px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.theme-preset-main {
    min-height: 120px;
}

.theme-preset-footer {
    min-height: 54px;
}

.theme-preset-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-preset-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.theme-preset-form {
    margin-top: auto;
}

.theme-preset-form button,
.theme-preset-card-custom .admin-inline-link {
    width: 100%;
    justify-content: center;
}

.theme-preview-card-rich {
    display: grid;
    gap: 20px;
}

.theme-preview-actions-wide {
    flex-wrap: wrap;
}

.site-header-inner {
    position: relative;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(255, 255, 255, 0.08) 100%),
        var(--header-bg);
    color: var(--header-text);
    font-family: var(--header-font-family);
    font-size: var(--header-font-size);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.site-header-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.14) 100%);
}

.site-header-inner > * {
    position: relative;
    z-index: 1;
}

.site-brand-kicker {
    color: var(--accent);
}

.site-brand-copy em {
    color: inherit;
    opacity: 0.74;
}

.search {
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 24px rgba(15, 23, 42, 0.12);
}

.site-header .search:focus-within {
    background: rgba(255, 255, 255, 0.46);
    border-color: rgba(15, 23, 42, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 14px 28px rgba(15, 23, 42, 0.16);
}

.search input {
    color: inherit;
}

.search input::placeholder {
    color: inherit;
    opacity: 0.62;
}

.banner-slider,
.hero-fallback {
    min-height: 520px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef7ff 48%, #ffffff 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-fallback {
    padding: 52px calc(52px + var(--site-bar-padding-extra));
}

.banner-slide {
    align-items: center;
    padding: 52px calc(52px + var(--site-bar-padding-extra));
}

.banner-slide::before {
    background: none;
}

.hero-fallback::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.22));
}

.banner-content,
.hero-copy {
    width: min(480px, 100%);
    color: #0f172a;
    padding: 20px 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.banner-content h2,
.hero-copy h1 {
    font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.banner-section {
    color: var(--primary);
}

.banner-content p,
.hero-copy p {
    color: rgba(15, 23, 42, 0.72);
}

.btn-ghost {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.32);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.banner-meta span,
.hero-pills span {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #0f172a;
}

.banner-meta,
.hero-pills {
    display: none;
}

.banner-dot {
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.banner-dot.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.sidebar-left {
    background: linear-gradient(180deg, var(--sidebar-left-bg), rgba(255, 255, 255, 0.06));
    color: var(--sidebar-left-text);
    font-family: var(--sidebar-left-font-family);
    font-size: var(--sidebar-left-font-size);
}

.sidebar-right {
    background: linear-gradient(180deg, var(--sidebar-right-bg), rgba(255, 255, 255, 0.06));
    color: var(--sidebar-right-text);
    font-family: var(--sidebar-right-font-family);
    font-size: var(--sidebar-right-font-size);
}

.main-content {
    background: linear-gradient(180deg, var(--module-bg), rgba(255, 255, 255, 0.08));
    color: var(--module-text);
    font-family: var(--module-font-family);
    font-size: var(--module-font-size);
}

.sidebar .sidebar-head p,
.sidebar .empty-hint {
    color: inherit;
    opacity: 0.76;
}

.sidebar .sidebar-head h3 {
    color: inherit;
}

.sidebar .sidebar-links a,
.sidebar .sidebar-feed a {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: inherit;
    backdrop-filter: blur(10px);
}

.sidebar .sidebar-links a:hover,
.sidebar .sidebar-feed a:hover {
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.sidebar .sidebar-links strong,
.sidebar .sidebar-feed span {
    color: var(--accent);
}

.sidebar .empty-hint {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.main-content .page-intro,
.main-content .content-section,
.main-content .feature-card,
.main-content .article-list-card,
.main-content .search-panel-form,
.main-content .empty-state {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.main-content .page-intro p,
.main-content .section-description,
.main-content .feature-card p,
.main-content .article-list-card p,
.main-content .results-summary,
.main-content .article-list-side,
.main-content .empty-state p,
.main-content .prose p,
.main-content .prose li,
.main-content .prose blockquote {
    color: inherit;
    opacity: 0.82;
}

.main-content .page-intro h1,
.main-content .page-intro h2,
.main-content .section-heading h2,
.main-content .feature-card h3,
.main-content .article-list-card h3,
.main-content .empty-state h1,
.main-content .empty-state h2,
.main-content .prose h1,
.main-content .prose h2,
.main-content .prose h3,
.main-content .prose h4 {
    color: var(--module-text);
}

.main-content .page-intro-stats div,
.main-content .section-count,
.main-content .card-tag,
.main-content .meta-row span {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.main-content .page-intro-stats strong {
    color: var(--module-text);
}

.main-content .page-intro-stats span {
    color: inherit;
    opacity: 0.78;
}

.main-content .prose blockquote {
    background: rgba(255, 255, 255, 0.16);
}

.main-content .search-panel-form input {
    color: inherit;
}

.main-content .search-panel-form input::placeholder {
    color: inherit;
    opacity: 0.58;
}

.site-footer-inner {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%),
        var(--footer-bg);
    color: var(--footer-text);
    font-family: var(--footer-font-family);
    font-size: var(--footer-font-size);
}

.footer-brand p,
.footer-links a {
    color: inherit;
    opacity: 0.82;
}

@media (max-width: 1200px) {
    .layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: stretch;
}

.layout.layout-has-left {
    grid-template-columns: 280px minmax(0, 1fr);
}

.layout.layout-has-right {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.layout.layout-main-only {
    grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 860px) {
    :root {
        --site-width: min(100vw - 24px, 100%);
        --page-width: var(--site-width);
        --header-width: var(--site-width);
        --menu-width: var(--site-width);
        --banner-width: var(--site-width);
        --module-width: var(--site-width);
        --footer-width: var(--site-width);
    }

    .site-header-inner,
    .site-menu-inner,
    .site-footer-inner,
    .site-footer-meta {
        width: 100%;
    }

    .hero-wrap {
        width: 100%;
    }

    .site-header-inner,
    .site-menu-inner,
    .banner-slide,
    .hero-fallback,
    .main-content,
    .metric-card,
    .admin-panel,
    .auth-side-copy,
    .auth-card {
        padding: 20px;
    }

    .site-header-inner,
    .site-menu-inner,
    .banner-slide,
    .hero-fallback,
    .site-footer-inner,
    .site-footer-meta {
        padding-left: min(calc(20px + var(--site-bar-padding-extra)), 48px);
        padding-right: min(calc(20px + var(--site-bar-padding-extra)), 48px);
    }

    .site-header-inner,
    .site-header-actions,
    .site-menu-inner,
    .search-panel-form,
    .article-list-card,
    .admin-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search {
        width: 100%;
        min-width: 100%;
    }

    .site-header .search:focus-within {
        width: 100%;
    }

    .banner-slider,
    .hero-fallback {
        min-height: 420px;
    }

    .banner-nav {
        right: 20px;
        bottom: 20px;
    }

    .article-list-side {
        align-items: flex-start;
        min-width: 0;
    }

    .site-footer-inner {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-brand {
        align-items: flex-start;
    }

    .site-brand-logo {
        width: 58px;
        height: 58px;
    }

    .page-intro,
    .content-section,
    .sidebar {
        padding: 20px;
    }

    .page-intro-stats {
        flex-direction: column;
    }

    .floating-tools {
        right: 14px;
        bottom: 14px;
    }
}

.admin-form-layout-editor {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.admin-form-layout-editor-equal {
    grid-template-columns: minmax(0, 1fr);
}

.admin-form-layout-editor-equal > .admin-panel {
    min-width: 0;
}
