body[data-theme="adrastea_modern"] {
    --font-body: 'IBM Plex Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Work Sans', 'IBM Plex Sans', 'Inter', sans-serif;
    --color-bg: #eaf2f5;
    --color-text: #122733;
    --color-muted: rgba(18, 39, 51, 0.68);
    --color-surface: rgba(255, 255, 255, 0.98);
    --color-surface-alt: rgba(237, 246, 250, 0.95);
    --color-accent: #317aa0;
    --color-accent-contrast: #ffffff;
    --color-warning-bg: rgba(49, 122, 160, 0.12);
    --color-warning-border: rgba(49, 122, 160, 0.4);
    --tpl-gradient: radial-gradient(circle at 18% 18%, rgba(224, 224, 224, 0.55), transparent 55%),
                    radial-gradient(circle at 70% 85%, rgba(200, 200, 200, 0.4), transparent 60%),
                    linear-gradient(135deg, #f6fbfd 0%, #e0edf3 45%, #c7dbe8 100%);
    --tpl-bg-overlay: linear-gradient(140deg, rgba(255, 255, 255, 0.9), rgba(216, 231, 240, 0.82));
    --tpl-bg-image: url('/site-assets/image/bg_pattern4.webp');
    --tpl-bg-layer-opacity: 0.4;
    --tpl-shell-bg: rgba(255, 255, 255, 0.95);
    --tpl-shell-border: rgba(49, 122, 160, 0.16);
    --tpl-shell-card: rgba(255, 255, 255, 0.98);
    --tpl-card-border: rgba(18, 39, 51, 0.1);
    --tpl-card-shadow: 0 24px 55px rgba(7, 22, 46, 0.12);
    --tpl-hero-card: rgba(255, 255, 255, 0.98);
    --tpl-hero-orb: radial-gradient(circle at 30% 35%, rgba(49, 122, 160, 0.3), rgba(255, 255, 255, 0));
    --tpl-ai-bg: rgba(49, 122, 160, 0.1);
    --tpl-ai-border: rgba(49, 122, 160, 0.2);
    --tpl-menu-bg: #477ba2;
    --tpl-menu-hover: rgba(25, 60, 94, 0.44);
    --nav-submenu-bg: rgba(255, 255, 255, 0.97);
    --nav-submenu-color: #0b1624;
    --tpl-overlay: rgba(255, 255, 255, 0.8);
    --tpl-link-color: #2b6f92;
    --tpl-link-hover: #1f5470;
    --tpl-footer-bg: rgba(236, 244, 249, 0.96);
    --tpl-footer-border: rgba(8, 22, 46, 0.08);
    --tpl-nav-border: 1px solid rgba(24, 76, 111, 0.54);
    --tpl-nav-shadow: 0 18px 40px rgba(9, 34, 55, 0.26);
    --radius-nav: 1.2rem;
    --radius-card: 1.4rem;
    --radius-panel: 1.6rem;
    --radius-form: 1rem;
    --radius-pill: 999px;
    --news-panel-bg: rgba(255, 255, 255, 0.98);
    --news-panel-border: rgba(8, 22, 46, 0.08);
    --news-panel-shadow: 0 35px 70px rgba(12, 24, 44, 0.08);
    --news-card-bg: rgba(255, 255, 255, 0.98);
    --news-card-border: rgba(8, 22, 46, 0.08);
    --news-card-shadow: 0 25px 55px rgba(12, 24, 44, 0.08);
    --news-media-shadow: 0 20px 40px rgba(12, 24, 44, 0.12);
    --news-pill-bg: rgba(49, 122, 160, 0.18);
    --news-pill-color: #1a4b66;
    --news-pill-active-bg: linear-gradient(120deg, #4d95bc, #2b6f92);
    --news-pill-active-color: #ffffff;
    --folder-intro-bg: rgba(255, 255, 255, 0.98);
    --folder-intro-color: rgba(12, 21, 36, 0.85);
    --folder-intro-border: rgba(7, 22, 46, 0.08);
    --footer-highlight-gap: 1.35rem;
}

body[data-theme="adrastea_modern"] h1,
body[data-theme="adrastea_modern"] h2,
body[data-theme="adrastea_modern"] h3,
body[data-theme="adrastea_modern"] h4,
body[data-theme="adrastea_modern"] h5,
body[data-theme="adrastea_modern"] h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    color: var(--color-text);
}

body[data-theme="adrastea_modern"] ::selection {
    background: rgba(49, 122, 160, 0.32);
    color: #0f2733;
}

body[data-theme="adrastea_modern"] .site-nav {
    backdrop-filter: blur(20px) saturate(160%);
    border-radius: var(--radius-nav);
    background: var(--tpl-menu-bg);
    border: var(--tpl-nav-border);
    box-shadow: var(--tpl-nav-shadow);
    padding: 0.7rem 1.25rem;
}

body[data-theme="adrastea_modern"] .site-nav__item--home {
    justify-content: center;
}

body[data-theme="adrastea_modern"] .site-nav__item--home > .nav-link,
body[data-theme="adrastea_modern"] .site-nav__item--home > .site-nav__parent-controls > .nav-link {
    letter-spacing: 0;
    text-transform: none;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.98);
    justify-content: center;
}

body[data-theme="adrastea_modern"] .site-nav__item--home > .nav-link::before,
body[data-theme="adrastea_modern"] .site-nav__item--home > .site-nav__parent-controls > .nav-link::before {
    display: none;
    content: none;
}

body[data-theme="adrastea_modern"] .site-nav__item--home .bb-beside {
    width: 100%;
    justify-content: center;
    gap: 0.4rem;
}

body[data-theme="adrastea_modern"] .site-nav__item--home .bb-beside img {
    display: block;
    margin: 0 auto;
}

body[data-theme="adrastea_modern"] .site-nav__item--home .nav-link__icon--image img {
    filter: drop-shadow(0 1px 2px rgba(12, 39, 58, 0.38));
}

body[data-theme="adrastea_modern"] .site-nav__item--home > .nav-link:hover,
body[data-theme="adrastea_modern"] .site-nav__item--home > .nav-link:focus-visible,
body[data-theme="adrastea_modern"] .site-nav__item--home.is-active > .nav-link {
    color: #ffffff;
    background: transparent !important;
    transform: none;
}

body[data-theme="adrastea_modern"] .site-nav__item > a,
body[data-theme="adrastea_modern"] .site-nav__parent-controls > .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.94);
    padding: 0.35rem 0.95rem;
    border-radius: 0.85rem;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-theme="adrastea_modern"] .site-nav__item > a:hover,
body[data-theme="adrastea_modern"] .site-nav__parent-controls > .nav-link:hover,
body[data-theme="adrastea_modern"] .site-nav__item > a:focus-visible,
body[data-theme="adrastea_modern"] .site-nav__parent-controls > .nav-link:focus-visible {
    background: var(--tpl-menu-hover);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 12px 24px rgba(7, 26, 42, 0.24);
}

body[data-theme="adrastea_modern"] .nav-link,
body[data-theme="adrastea_modern"] .site-nav__label {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body[data-theme="adrastea_modern"] .site-nav a.nav-link::after {
    bottom: -0.4rem;
    height: 2px;
}

body[data-theme="adrastea_modern"] .site-nav__submenu {
    background: var(--nav-submenu-bg);
    color: var(--nav-submenu-color);
    border: 1px solid rgba(12, 24, 44, 0.12);
    box-shadow: 0 26px 60px rgba(12, 24, 44, 0.12);
    backdrop-filter: blur(20px) saturate(140%);
}

body[data-theme="adrastea_modern"] .site-nav__submenu .nav-link {
    color: inherit;
    font-family: var(--font-heading);
    font-weight: 600;
    display: flex;
    align-items: center;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    padding: 0.45rem 0.95rem;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body[data-theme="adrastea_modern"] .site-nav__submenu .nav-link:hover,
body[data-theme="adrastea_modern"] .site-nav__submenu .nav-link:focus-visible,
body[data-theme="adrastea_modern"] .site-nav__submenu .nav-link.is-active,
body[data-theme="adrastea_modern"] .site-nav__submenu .site-nav__item.is-active > .nav-link {
    background: #1f4f78;
    color: #ffffff;
    border: 1px solid rgba(22, 66, 101, 0.86);
    box-shadow: 0 12px 24px rgba(7, 26, 42, 0.3);
}

body[data-theme="adrastea_modern"] .site-nav__caret {
    border-color: rgba(255, 255, 255, 0.72);
}

body[data-theme="adrastea_modern"] .site-nav__item.is-active > a,
body[data-theme="adrastea_modern"] .site-nav__item.is-active > .site-nav__parent-controls > .nav-link {
    background: #1f4f78;
    color: #ffffff;
    border-color: rgba(22, 66, 101, 0.86);
    box-shadow: 0 18px 35px rgba(7, 26, 42, 0.28);
}

body[data-theme="adrastea_modern"] .site-nav__item.has-children.is-open > a,
body[data-theme="adrastea_modern"] .site-nav__item.has-children.is-open > .site-nav__parent-controls > .nav-link,
body[data-theme="adrastea_modern"] .site-nav__item.has-children .nav-link[aria-expanded="true"] {
    color: #ffffff;
}

body[data-theme="adrastea_modern"] .hero-shell {
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

body[data-theme="adrastea_modern"] .hero-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.1), transparent 50%);
    pointer-events: none;
}

body[data-theme="adrastea_modern"] .site-branding__logo img {
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.65));
}

body[data-theme="adrastea_modern"] .button,
body[data-theme="adrastea_modern"] button:not(.affiliate-zoom__action),
body[data-theme="adrastea_modern"] .site-cta {
    border-radius: var(--radius-pill);
    background: linear-gradient(120deg, #5ea4c8, #8ec4de);
    color: #102935;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

body[data-theme="adrastea_modern"] .button:hover,
body[data-theme="adrastea_modern"] button:not(.affiliate-zoom__action):hover,
body[data-theme="adrastea_modern"] .site-cta:hover {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    transform: translateY(-2px);
}

body[data-theme="adrastea_modern"] .article-card {
    border-radius: var(--radius-card);
    background: var(--tpl-shell-card);
    border: 1px solid rgba(49, 122, 160, 0.18);
    box-shadow: var(--tpl-card-shadow);
}

body[data-theme="adrastea_modern"] .toc-box {
    border-radius: 1.1rem;
    background: rgba(8, 19, 43, 0.9);
    border: 1px solid rgba(49, 122, 160, 0.28);
}

body[data-theme="adrastea_modern"] .newsrail__tabs button.is-active {
    color: var(--news-pill-active-color);
}

body[data-theme="adrastea_modern"] .message-banner,
body[data-theme="adrastea_modern"] .bb-round {
    background: rgba(49, 122, 160, 0.14);
    color: var(--color-text);
    border-radius: var(--radius-pill);
}

body[data-theme="adrastea_modern"] .language-switch a {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(12, 21, 36, 0.75);
    border: 1px solid rgba(12, 24, 44, 0.1);
    border-radius: 0.85rem;
    padding: 0.25rem 0.7rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-theme="adrastea_modern"] .language-switch a:hover,
body[data-theme="adrastea_modern"] .language-switch a:focus-visible {
    background: rgba(49, 122, 160, 0.16);
    color: #143344;
    border-color: rgba(49, 122, 160, 0.35);
    box-shadow: 0 10px 20px rgba(12, 24, 44, 0.15);
}

body[data-theme="adrastea_modern"] .language-switch a.is-active {
    background: linear-gradient(120deg, #4d95bc, #2b6f92);
    color: #ffffff;
    border-color: rgba(49, 122, 160, 0.5);
    box-shadow: 0 14px 28px rgba(12, 24, 44, 0.2);
}

body[data-theme="adrastea_modern"] :where(.content-panel, .legacy-block, .bb-article) [style*="text-align:center" i] > img,
body[data-theme="adrastea_modern"] :where(.content-panel, .legacy-block, .bb-article) [style*="text-align:center" i] > a > img {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

body[data-theme="adrastea_modern"] .site-footer {
    border-radius: 2rem 2rem 0 0;
    border-top: 1px solid rgba(49, 122, 160, 0.18);
}

@media (max-width: 640px) {
    body[data-theme="adrastea_modern"] .site-nav {
        border-radius: 1.25rem;
    }
    body[data-theme="adrastea_modern"] .hero-shell {
        border-radius: 1.5rem;
    }
}

body[data-theme="adrastea_modern"] .text-container {
    margin: 1.75rem 0;
}
