/* Butterfly-inspired homepage theme. Scoped to the home page so article and editor layouts stay unchanged. */
body[data-page="home"] {
    --home-bg: #f6f8fc;
    --home-bg-alt: #eef3fb;
    --home-surface: rgba(255, 255, 255, 0.92);
    --home-surface-solid: #ffffff;
    --home-line: #e3e9f3;
    --home-line-strong: #cbd6e8;
    --home-ink: #273247;
    --home-ink-soft: #667189;
    --home-ink-faint: #8b96aa;
    --home-primary: #5b7cfa;
    --home-primary-strong: #4265eb;
    --home-primary-soft: #e9efff;
    --home-accent: #f08cae;
    --home-accent-soft: #fdecf3;
    --home-mint: #4bb8a9;
    --home-shadow: 0 16px 40px rgba(63, 83, 128, 0.09);
    --home-shadow-hover: 0 22px 52px rgba(63, 83, 128, 0.15);
    --font-sans: "Inter", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    background:
        linear-gradient(180deg, #f8faff 0, var(--home-bg) 310px, #f3f6fb 100%);
    color: var(--home-ink);
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] {
    --home-bg: #151927;
    --home-bg-alt: #1b2030;
    --home-surface: rgba(29, 35, 52, 0.92);
    --home-surface-solid: #1d2334;
    --home-line: #303950;
    --home-line-strong: #46516d;
    --home-ink: #eef2fa;
    --home-ink-soft: #b8c2d6;
    --home-ink-faint: #8793aa;
    --home-primary: #86a1ff;
    --home-primary-strong: #a7b8ff;
    --home-primary-soft: #273357;
    --home-accent: #f2a6c0;
    --home-accent-soft: #432b39;
    --home-mint: #70c9bc;
    --home-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    --home-shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.3);
    background:
        linear-gradient(180deg, #171c2b 0, var(--home-bg) 320px, #121622 100%);
}

body[data-page="home"] .site-header {
    border-color: transparent;
    background: rgba(248, 250, 255, 0.78);
    box-shadow: 0 1px 0 rgba(82, 104, 151, 0.04);
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .site-header {
    background: rgba(21, 25, 39, 0.8);
}

body[data-page="home"] .site-header.is-scrolled {
    border-color: var(--home-line);
    box-shadow: 0 10px 30px rgba(61, 79, 120, 0.07);
}

body[data-page="home"] .header-inner {
    width: min(1220px, calc(100% - 40px));
    min-height: 76px;
    grid-template-columns: auto minmax(250px, 1fr) minmax(240px, 350px) auto;
    gap: 26px;
}

body[data-page="home"] .brand {
    color: var(--home-ink);
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 850;
}

body[data-page="home"] .brand:hover {
    color: var(--home-primary);
}

body[data-page="home"] .brand-mark {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--home-primary) 0%, #7c8df8 55%, var(--home-accent) 100%);
    box-shadow: 0 7px 18px rgba(91, 124, 250, 0.25);
}

body[data-page="home"] .brand-mark::before {
    inset: 7px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

body[data-page="home"] .brand-mark::after {
    width: 6px;
    height: 6px;
    top: 3px;
    right: 3px;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.24);
}

body[data-page="home"] .brand-mark span {
    width: 3px;
    height: 3px;
    left: 6px;
    bottom: 5px;
    background: rgba(255, 255, 255, 0.84);
}

body[data-page="home"] .home-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

body[data-page="home"] .home-nav-link {
    position: relative;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 7px;
    color: var(--home-ink-soft);
    font-size: 14px;
    font-weight: 750;
    transition: color 160ms ease, background 160ms ease;
}

body[data-page="home"] .home-nav-link:hover,
body[data-page="home"] .home-nav-link.is-active {
    background: var(--home-primary-soft);
    color: var(--home-primary);
}

body[data-page="home"] .header-search {
    height: 42px;
    border-color: var(--home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .header-search {
    background: rgba(29, 35, 52, 0.82);
}

body[data-page="home"] .header-search:focus-within {
    border-color: rgba(91, 124, 250, 0.7);
    background: var(--home-surface-solid);
    box-shadow: 0 0 0 4px rgba(91, 124, 250, 0.1);
}

body[data-page="home"] .search-icon {
    color: var(--home-primary);
}

body[data-page="home"] .icon-button {
    border-color: var(--home-line);
    border-radius: 8px;
    background: var(--home-surface);
    color: var(--home-ink-soft);
}

body[data-page="home"] .icon-button:hover {
    border-color: rgba(91, 124, 250, 0.45);
    background: var(--home-primary-soft);
    color: var(--home-primary);
}

body[data-page="home"] .account-trigger {
    border-color: var(--home-line);
    border-radius: 8px;
    background: var(--home-surface);
    color: var(--home-ink);
}

body[data-page="home"] .account-name {
    color: inherit;
}

body[data-page="home"] .account-chevron {
    color: var(--home-ink-soft);
}

body[data-page="home"] .account-avatar {
    background: linear-gradient(145deg, var(--home-primary), #8497fb);
    color: #ffffff;
}

body[data-page="home"] .account-menu {
    border-color: var(--home-line);
    border-radius: 8px;
    background: var(--home-surface-solid);
    box-shadow: var(--home-shadow);
}

body[data-page="home"] .account-menu-item:hover {
    background: var(--home-primary-soft);
    color: var(--home-primary);
}

body[data-page="home"] .account-menu-item.account-menu-danger:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

body[data-page="home"] #main-content {
    width: 100%;
}

body[data-page="home"] .home-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(214, 224, 241, 0.7);
    background:
        linear-gradient(115deg, rgba(234, 240, 255, 0.86) 0%, rgba(250, 247, 253, 0.92) 54%, rgba(235, 249, 247, 0.88) 100%);
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .home-hero {
    border-bottom-color: var(--home-line);
    background:
        linear-gradient(115deg, rgba(34, 43, 72, 0.92) 0%, rgba(26, 31, 48, 0.96) 54%, rgba(27, 49, 52, 0.88) 100%);
}

body[data-page="home"] .home-hero::before,
body[data-page="home"] .home-hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

body[data-page="home"] .home-hero::before {
    top: -110px;
    right: 6%;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(91, 124, 250, 0.12);
    border-radius: 50%;
    box-shadow: inset 0 0 0 44px rgba(255, 255, 255, 0.2), inset 0 0 0 88px rgba(240, 140, 174, 0.06);
}

body[data-page="home"] .home-hero::after {
    right: 4%;
    bottom: -74px;
    width: 250px;
    height: 150px;
    border-radius: 50% 50% 0 0;
    background: rgba(75, 184, 169, 0.08);
    transform: rotate(-8deg);
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .home-hero::before {
    border-color: rgba(134, 161, 255, 0.16);
    box-shadow: inset 0 0 0 44px rgba(255, 255, 255, 0.015), inset 0 0 0 88px rgba(240, 140, 174, 0.035);
}

body[data-page="home"] .home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 40px));
    min-height: 350px;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 72px;
    margin: 0 auto;
    padding: 58px 0 62px;
}

body[data-page="home"] .home-hero-copy {
    max-width: 760px;
}

body[data-page="home"] .eyebrow {
    color: var(--home-primary);
    font-size: 11px;
    font-weight: 850;
}

body[data-page="home"] .home-hero h1 {
    margin: 0;
    color: var(--home-ink);
    font-family: var(--font-sans);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.13;
    letter-spacing: 0;
}

body[data-page="home"] .hero-title-line {
    display: block;
}

body[data-page="home"] .hero-title-gradient {
    width: max-content;
    max-width: 100%;
    background: linear-gradient(95deg, #5274ed 0%, #856be9 42%, #dc75a4 72%, #4db6aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

body[data-page="home"] .home-hero-note {
    max-width: 660px;
    margin: 20px 0 0;
    color: var(--home-ink-soft);
    font-size: 15px;
    line-height: 1.9;
}

body[data-page="home"] .home-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

body[data-page="home"] .button {
    border-radius: 8px;
    box-shadow: none;
}

body[data-page="home"] .button-primary {
    background: var(--home-primary);
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(91, 124, 250, 0.2);
}

body[data-page="home"] .button-primary:hover {
    background: var(--home-primary-strong);
    color: #ffffff;
}

body[data-page="home"] .button-secondary {
    border-color: var(--home-line);
    background: rgba(255, 255, 255, 0.74);
    color: var(--home-ink);
}

body[data-page="home"] .button-secondary:hover {
    border-color: rgba(91, 124, 250, 0.48);
    background: var(--home-surface-solid);
    color: var(--home-primary);
}

body[data-page="home"] .home-hero-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 14px 42px rgba(75, 92, 145, 0.1);
    backdrop-filter: blur(16px);
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .home-hero-panel {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(28, 34, 51, 0.68);
}

body[data-page="home"] .hero-panel-label {
    display: block;
    margin-bottom: 14px;
    color: var(--home-ink-faint);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

body[data-page="home"] .hero-timeline-link {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 160ms ease, transform 160ms ease;
}

body[data-page="home"] .hero-timeline-link:hover {
    color: var(--home-primary);
    transform: translateX(2px);
}

body[data-page="home"] .hero-timeline-link .icon {
    width: 14px;
    height: 14px;
}

body[data-page="home"] .hero-panel-list {
    display: grid;
    gap: 8px;
}

body[data-page="home"] .hero-panel-list > span,
body[data-page="home"] .hero-panel-list > a {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid rgba(233, 238, 249, 0.92);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--home-ink);
    font-size: 13px;
    font-weight: 800;
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .hero-panel-list > span,
html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .hero-panel-list > a {
    border-color: var(--home-line);
    background: rgba(255, 255, 255, 0.035);
}

body[data-page="home"] .hero-panel-list .icon {
    width: 17px;
    height: 17px;
    color: var(--home-primary);
}

body[data-page="home"] .home-hero-panel p {
    margin: 16px 0 0;
    color: var(--home-ink-soft);
    font-size: 12px;
    line-height: 1.7;
}

body[data-page="home"] .home-layout {
    width: min(1220px, calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: start;
    gap: 34px;
    margin: 0 auto;
    padding: 38px 0 82px;
}

body[data-page="home"] .home-main-column {
    min-width: 0;
}

body[data-page="home"] .discovery {
    min-height: auto;
    display: block;
    padding: 0 0 24px;
    border: 0;
}

body[data-page="home"] .discovery-heading {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 14px;
}

body[data-page="home"] .discovery-heading .eyebrow {
    margin: 0;
}

body[data-page="home"] .discovery-heading strong {
    color: var(--home-ink);
    font-size: 15px;
}

body[data-page="home"] .discovery-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 11px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: var(--home-surface);
    box-shadow: 0 7px 24px rgba(65, 84, 130, 0.045);
}

body[data-page="home"] .category-row {
    gap: 5px;
}

body[data-page="home"] .category-chip {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    color: var(--home-ink-soft);
    font-size: 12px;
    font-weight: 800;
}

body[data-page="home"] .category-chip:hover {
    background: var(--home-primary-soft);
    color: var(--home-primary);
}

body[data-page="home"] .category-chip.is-active {
    border-color: var(--home-primary);
    background: var(--home-primary);
    color: #ffffff;
    box-shadow: 0 7px 15px rgba(91, 124, 250, 0.18);
}

body[data-page="home"] .result-count {
    color: var(--home-ink-faint);
    font-size: 12px;
}

body[data-page="home"] .featured-region {
    padding: 0 0 30px;
}

body[data-page="home"] .featured-link {
    border-color: var(--home-line);
    border-radius: 8px;
    background: var(--home-surface-solid);
    box-shadow: var(--home-shadow);
}

body[data-page="home"] .featured-media {
    min-height: 330px;
    background: var(--home-bg-alt);
}

body[data-page="home"] .featured-copy {
    padding: 36px 32px;
}

body[data-page="home"] .featured-copy h2 {
    margin-bottom: 14px;
    color: var(--home-ink);
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 850;
    line-height: 1.35;
}

body[data-page="home"] .featured-excerpt {
    color: var(--home-ink-soft);
    font-size: 14px;
    line-height: 1.85;
}

body[data-page="home"] .featured-meta,
body[data-page="home"] .post-card-footer {
    color: var(--home-ink-faint);
    font-size: 12px;
}

body[data-page="home"] .featured-more,
body[data-page="home"] .post-category {
    color: var(--home-primary);
}

body[data-page="home"] .feed-section {
    padding: 0;
}

body[data-page="home"] .section-heading {
    margin-bottom: 20px;
}

body[data-page="home"] .section-heading h2 {
    color: var(--home-ink);
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 850;
}

body[data-page="home"] .section-line {
    background: var(--home-line);
}

body[data-page="home"] .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 22px;
}

body[data-page="home"] .post-card-link {
    border-color: var(--home-line);
    border-radius: 8px;
    background: var(--home-surface-solid);
    box-shadow: 0 7px 24px rgba(65, 84, 130, 0.055);
}

body[data-page="home"] .post-card-link:hover {
    border-color: rgba(91, 124, 250, 0.36);
    box-shadow: var(--home-shadow-hover);
    transform: translateY(-6px);
}

body[data-page="home"] .post-card .media-badges {
    right: auto;
    left: 12px;
}
body[data-page="home"] .post-card-media {
    aspect-ratio: 16 / 10;
    background: var(--home-bg-alt);
}

body[data-page="home"] .post-card-media::after {
    z-index: 2;
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, rgba(17, 24, 42, 0) 58%, rgba(17, 24, 42, 0.22) 100%);
}

body[data-page="home"] .post-card-body {
    min-height: 210px;
    padding: 20px 20px 18px;
}

body[data-page="home"] .post-card-topline {
    color: var(--home-ink-faint);
}

body[data-page="home"] .post-card-title {
    color: var(--home-ink);
    font-family: var(--font-sans);
    font-size: 19px;
    font-weight: 850;
    line-height: 1.48;
}

body[data-page="home"] .post-card-link:hover .post-card-title {
    background: linear-gradient(92deg, #5274ed, #8b6fe4 58%, #dd7ba7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

body[data-page="home"] .post-card-excerpt {
    color: var(--home-ink-soft);
    font-size: 13px;
    line-height: 1.78;
}

body[data-page="home"] .media-badge {
    border-radius: 6px;
    background: rgba(33, 43, 67, 0.72);
}

body[data-page="home"] .media-badge-video {
    background: rgba(223, 104, 147, 0.84);
}

body[data-page="home"] .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 38px;
    padding-top: 28px;
    border-top: 1px solid var(--home-line);
}

body[data-page="home"] .pagination-button {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    border: 1px solid var(--home-line);
    border-radius: 7px;
    background: var(--home-surface-solid);
    color: var(--home-ink-soft);
    font-size: 13px;
    font-weight: 800;
    transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body[data-page="home"] .pagination-button:hover:not(:disabled) {
    border-color: rgba(91, 124, 250, 0.48);
    background: var(--home-primary-soft);
    color: var(--home-primary);
    transform: translateY(-1px);
}

body[data-page="home"] .pagination-button.is-current {
    border-color: var(--home-primary);
    background: linear-gradient(135deg, var(--home-primary), #7f8ff6);
    color: #ffffff;
    box-shadow: 0 9px 18px rgba(91, 124, 250, 0.2);
}

body[data-page="home"] .pagination-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

body[data-page="home"] .pagination-direction {
    min-width: 84px;
}

body[data-page="home"] .pagination-ellipsis {
    min-width: 22px;
    color: var(--home-ink-faint);
    text-align: center;
}

body[data-page="home"] .home-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

body[data-page="home"] .sidebar-card {
    padding: 20px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: var(--home-surface-solid);
    box-shadow: 0 7px 24px rgba(65, 84, 130, 0.05);
}

body[data-page="home"] .sidebar-profile {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

body[data-page="home"] .sidebar-profile > * {
    position: relative;
    z-index: 1;
}

body[data-page="home"] .sidebar-profile::after {
    position: absolute;
    right: -34px;
    bottom: -42px;
    z-index: 0;
    width: 128px;
    height: 128px;
    border: 18px solid var(--home-primary-soft);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

body[data-page="home"] .sidebar-card-mark {
    position: relative;
    width: 32px;
    height: 32px;
    display: block;
    margin-bottom: 14px;
    border-radius: 9px;
    background: linear-gradient(145deg, var(--home-primary), var(--home-accent));
    box-shadow: 0 8px 18px rgba(91, 124, 250, 0.18);
}

body[data-page="home"] .sidebar-card-mark span {
    position: absolute;
    inset: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

body[data-page="home"] .sidebar-profile .eyebrow {
    margin-bottom: 8px;
}

body[data-page="home"] .sidebar-card h2 {
    margin: 0 0 10px;
    color: var(--home-ink);
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.45;
}

body[data-page="home"] .sidebar-card p {
    margin: 0;
    color: var(--home-ink-soft);
    font-size: 13px;
    line-height: 1.8;
}

body[data-page="home"] .sidebar-text-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 16px;
    color: var(--home-primary);
    font-size: 12px;
    font-weight: 850;
}

body[data-page="home"] .sidebar-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

body[data-page="home"] .sidebar-card-heading .eyebrow {
    margin-bottom: 5px;
}

body[data-page="home"] .sidebar-card-heading > .icon {
    width: 20px;
    height: 20px;
    color: var(--home-primary);
}

body[data-page="home"] .sidebar-category-list {
    display: grid;
    gap: 5px;
}

body[data-page="home"] .sidebar-category {
    min-height: 39px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--home-ink-soft);
    text-align: left;
    font-size: 13px;
}

body[data-page="home"] .sidebar-category:hover,
body[data-page="home"] .sidebar-category.is-active {
    background: var(--home-primary-soft);
    color: var(--home-primary);
}

body[data-page="home"] .sidebar-category .icon {
    width: 15px;
    height: 15px;
    opacity: 0.72;
}

body[data-page="home"] .sidebar-category-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body[data-page="home"] .sidebar-links-card {
    padding-bottom: 12px;
}

body[data-page="home"] .sidebar-links {
    display: grid;
    gap: 3px;
}

body[data-page="home"] .sidebar-links a {
    min-height: 40px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 0 8px;
    border-radius: 7px;
    color: var(--home-ink-soft);
    font-size: 13px;
    font-weight: 750;
}

body[data-page="home"] .sidebar-links a:hover {
    background: var(--home-primary-soft);
    color: var(--home-primary);
}

body[data-page="home"] .sidebar-links .icon {
    width: 16px;
    height: 16px;
}

body[data-page="home"] .empty-state {
    padding: 44px 22px;
    border: 1px dashed var(--home-line-strong);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .empty-state {
    background: rgba(29, 35, 52, 0.5);
}

body[data-page="home"] .empty-state h3 {
    font-family: var(--font-sans);
    font-weight: 850;
}

body[data-page="home"] .home-nav-toggle {
    display: none;
}

body[data-page="home"] .site-footer {
    border-color: var(--home-line);
    background: rgba(238, 243, 251, 0.74);
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .site-footer {
    background: rgba(21, 25, 39, 0.74);
}

body[data-page="home"] .footer-inner {
    width: min(1220px, calc(100% - 40px));
}

body[data-page="home"] .footer-inner strong {
    font-family: var(--font-sans);
    font-weight: 850;
}

body[data-page="home"] .footer-top {
    border-color: var(--home-line);
    border-radius: 8px;
    background: var(--home-surface-solid);
    color: var(--home-primary);
}

@media (max-width: 1120px) {
    body[data-page="home"] .header-inner {
        grid-template-columns: auto 1fr minmax(220px, 320px) auto;
        gap: 16px;
    }

    body[data-page="home"] .home-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 20px;
        z-index: 72;
        min-width: 190px;
        display: none;
        padding: 8px;
        border: 1px solid var(--home-line);
        border-radius: 8px;
        background: var(--home-surface-solid);
        box-shadow: var(--home-shadow);
    }

    body[data-page="home"] .site-header.nav-open .home-nav {
        display: grid;
    }

    body[data-page="home"] .home-nav-link {
        width: 100%;
    }

    body[data-page="home"] .home-nav-toggle {
        display: inline-grid;
    }

    body[data-page="home"] .home-layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 24px;
    }
}

@media (max-width: 940px) {
    body[data-page="home"] .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 50px 0;
    }

    body[data-page="home"] .home-hero h1 {
        font-size: 45px;
    }

    body[data-page="home"] .home-hero-panel {
        max-width: 560px;
    }

    body[data-page="home"] .home-layout {
        grid-template-columns: 1fr;
    }

    body[data-page="home"] .home-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-page="home"] .sidebar-profile {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    body[data-page="home"] .header-inner,
    body[data-page="home"] .home-hero-inner,
    body[data-page="home"] .home-layout,
    body[data-page="home"] .footer-inner {
        width: min(100% - 28px, 1220px);
    }

    body[data-page="home"] .header-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px 12px;
    }

    body[data-page="home"] .brand {
        grid-column: 1;
        grid-row: 1;
    }

    body[data-page="home"] .header-search {
        position: static;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        height: 46px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    body[data-page="home"] .mobile-search-toggle {
        display: none;
    }


    body[data-page="home"] .home-nav {
        right: 14px;
        left: 14px;
    }

    body[data-page="home"] .home-theme-select-wrap {
        height: 38px;
        padding: 0 6px;
    }

    body[data-page="home"] .home-theme-select-wrap > .icon {
        display: none;
    }

    body[data-page="home"] .home-theme-select {
        width: 94px;
        font-size: 11px;
    }

    body[data-page="home"] .home-hero h1 {
        font-size: 38px;
    }

    body[data-page="home"] .hero-title-gradient {
        width: auto;
    }

    body[data-page="home"] .home-hero-note {
        font-size: 14px;
    }

    body[data-page="home"] .home-hero-panel {
        padding: 20px;
    }

    body[data-page="home"] .home-layout {
        padding-top: 28px;
        padding-bottom: 62px;
    }

    body[data-page="home"] .discovery-tools {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    body[data-page="home"] .result-count {
        padding-left: 1px;
    }

    body[data-page="home"] .featured-link {
        grid-template-columns: 1fr;
    }

    body[data-page="home"] .featured-media {
        min-height: auto;
        aspect-ratio: 16 / 10;
    }

    body[data-page="home"] .featured-copy {
        padding: 26px 22px 28px;
    }

    body[data-page="home"] .featured-copy h2 {
        font-size: 24px;
    }

    body[data-page="home"] .post-grid {
        grid-template-columns: 1fr;
    }

    body[data-page="home"] .post-card-body {
        min-height: auto;
    }

    body[data-page="home"] .pagination {
        gap: 6px;
        margin-top: 30px;
    }

    body[data-page="home"] .pagination-button {
        min-width: 38px;
        min-height: 38px;
        padding: 0 10px;
    }

    body[data-page="home"] .pagination-direction {
        min-width: 76px;
    }

    body[data-page="home"] .home-sidebar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    body[data-page="home"] .sidebar-profile {
        grid-column: auto;
    }
}

@media (max-width: 460px) {
    body[data-page="home"] .home-hero-inner {
        padding: 40px 0 44px;
    }

    body[data-page="home"] .home-hero h1 {
        font-size: 33px;
    }

    body[data-page="home"] .home-hero-actions .button {
        width: 100%;
    }

    body[data-page="home"] .hero-panel-list > span,
    body[data-page="home"] .hero-panel-list > a {
        min-height: 40px;
    }

    body[data-page="home"] .post-card-title {
        font-size: 18px;
    }

    body[data-page="home"] .pagination-button span {
        display: none;
    }

    body[data-page="home"] .pagination-button.is-current span,
    body[data-page="home"] .pagination-button:not(.pagination-direction) span {
        display: inline;
    }

    body[data-page="home"] .pagination-direction {
        min-width: 42px;
    }
}

/* Homepage refresh: banner, dropdown navigation, article list, and message board. */
body[data-page="home"] .home-nav-dropdown {
    position: relative;
}

body[data-page="home"] .home-nav-dropdown-trigger {
    border: 0;
    background: transparent;
    cursor: pointer;
    gap: 6px;
}

body[data-page="home"] .home-nav-dropdown-trigger .icon {
    width: 14px;
    height: 14px;
    transition: transform 160ms ease;
}

body[data-page="home"] .home-nav-dropdown-trigger[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

body[data-page="home"] .home-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 90;
    width: 250px;
    padding: 12px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: var(--home-surface-solid);
    box-shadow: var(--home-shadow);
}

body[data-page="home"] .home-nav-menu-label {
    display: block;
    margin: 0 7px 7px;
    color: var(--home-ink-faint);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

body[data-page="home"] .home-nav-category-list {
    display: grid;
    gap: 3px;
}

body[data-page="home"] .home-nav-category {
    min-height: 38px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--home-ink-soft);
    text-align: left;
    font-size: 13px;
    font-weight: 750;
    transition: color 150ms ease, background 150ms ease;
}

body[data-page="home"] .home-nav-category:hover,
body[data-page="home"] .home-nav-category.is-active {
    background: var(--home-primary-soft);
    color: var(--home-primary);
}

body[data-page="home"] .home-nav-category .icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

body[data-page="home"] .language-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    gap: 0;
    padding: 0;
}

body[data-page="home"] .language-toggle .icon {
    width: 15px;
    height: 15px;
}

body[data-page="home"] .home-theme-select-wrap {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 9px;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: var(--home-surface);
    color: var(--home-ink-soft);
}

body[data-page="home"] .home-theme-select-wrap > .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--home-primary);
}

body[data-page="home"] .home-theme-select {
    width: 112px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--home-ink-soft);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

body[data-page="home"] .home-hero {
    min-height: 520px;
    border-bottom: 0;
    background: #132640;
}

body[data-page="home"] .home-hero::before,
body[data-page="home"] .home-hero::after {
    display: none;
}

body[data-page="home"] .home-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    object-fit: cover;
    filter: saturate(0.76) contrast(1.08);
    transform: scale(1.04);
    animation: home-hero-zoom 16s ease-in-out infinite alternate;
}

body[data-page="home"] .home-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 25, 48, 0.96) 0%, rgba(15, 36, 67, 0.83) 43%, rgba(27, 51, 78, 0.26) 76%, rgba(10, 26, 48, 0.7) 100%),
        linear-gradient(180deg, rgba(10, 25, 48, 0.14), rgba(10, 25, 48, 0.64));
}

body[data-page="home"] .home-hero-inner {
    min-height: 520px;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    gap: 70px;
    padding: 86px 0 82px;
}

body[data-page="home"] .home-hero-copy {
    max-width: 760px;
}

body[data-page="home"] .home-hero .eyebrow {
    color: #a9c7ff;
}

body[data-page="home"] .home-hero h1 {
    color: #ffffff;
    font-size: 62px;
    text-shadow: 0 8px 26px rgba(3, 15, 34, 0.28);
}

body[data-page="home"] .hero-title-gradient {
    width: max-content;
    background: linear-gradient(96deg, #d9e7ff 0%, #a7c6ff 30%, #d7a8eb 58%, #f5b5c9 78%, #9ee7dc 100%);
    background-size: 210% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: home-gradient-shift 8s ease-in-out infinite;
}

body[data-page="home"] .home-hero-note {
    color: rgba(238, 244, 255, 0.78);
    font-size: 16px;
}

body[data-page="home"] .home-hero-actions {
    margin-top: 30px;
}

body[data-page="home"] .home-hero .button-secondary {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body[data-page="home"] .home-hero .button-secondary:hover {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body[data-page="home"] .home-hero-copy > .eyebrow {
    animation: home-rise 0.62s ease both 0.04s;
}

body[data-page="home"] .home-hero-copy > h1 {
    animation: home-rise 0.72s ease both 0.12s;
}

body[data-page="home"] .home-hero-copy > .home-hero-note {
    animation: home-rise 0.72s ease both 0.24s;
}

body[data-page="home"] .home-hero-copy > .home-hero-actions {
    animation: home-rise 0.72s ease both 0.36s;
}

body[data-page="home"] .home-hero-panel {
    border-color: rgba(220, 233, 255, 0.18);
    background: rgba(15, 34, 61, 0.62);
    box-shadow: 0 20px 48px rgba(4, 16, 34, 0.24);
    animation: home-panel-in 0.8s ease both 0.25s;
}

body[data-page="home"] .home-hero-panel .hero-panel-label {
    color: rgba(207, 222, 248, 0.62);
}

body[data-page="home"] .home-hero-panel .hero-panel-list > span,
body[data-page="home"] .home-hero-panel .hero-panel-list > a {
    border-color: rgba(201, 220, 250, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #f1f5ff;
}

body[data-page="home"] .home-hero-panel .hero-panel-list b {
    font-weight: 800;
}

body[data-page="home"] .home-hero-panel p {
    color: rgba(222, 233, 251, 0.7);
}

body[data-page="home"] .post-grid {
    grid-template-columns: 1fr;
    gap: 22px;
}

body[data-page="home"] .post-card-link {
    display: grid;
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
    min-height: 238px;
    overflow: hidden;
    border-color: var(--home-line);
    border-radius: 8px;
    background: var(--home-surface-solid);
    box-shadow: 0 12px 30px rgba(49, 68, 112, 0.09);
}

body[data-page="home"] .post-card-link:hover {
    border-color: rgba(91, 124, 250, 0.38);
    box-shadow: 0 20px 46px rgba(49, 68, 112, 0.17);
    transform: translateY(-5px);
}

body[data-page="home"] .post-card-media {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: auto;
    align-self: stretch;
    /* One fixed cover ratio keeps every card the same height regardless of the
    /* source photo or video frame. */
    aspect-ratio: 4 / 3;
}

body[data-page="home"] .post-card-media.has-media-ratio {
    aspect-ratio: 4 / 3;
}

body[data-page="home"] .post-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Fill the card but anchor to the top so tall portrait shots keep the head
    /* instead of cropping down to the torso. */
    object-fit: cover;
    object-position: center top;
    transition: transform 0.55s ease;
}

body[data-page="home"] .post-card-media img.has-cover-crop {
    object-fit: cover;
}

body[data-page="home"] .post-card-link:hover .post-card-media img {
    transform: none;
}

body[data-page="home"] .post-card-body {
    min-width: 0;
    min-height: 0;
    padding: 26px 30px 24px;
}

body[data-page="home"] .post-card-title {
    font-size: 21px;
    line-height: 1.42;
}

body[data-page="home"] .message-board {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
    padding: 28px 30px;
    border: 1px solid rgba(128, 156, 232, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(234, 241, 255, 0.96), rgba(250, 245, 255, 0.9) 55%, rgba(236, 249, 247, 0.94));
    box-shadow: 0 13px 32px rgba(49, 68, 112, 0.08);
}

html:not([data-home-theme])[data-theme="dark"] body[data-page="home"] .message-board {
    border-color: rgba(134, 161, 255, 0.25);
    background:
        linear-gradient(120deg, rgba(31, 45, 80, 0.94), rgba(42, 31, 57, 0.9) 55%, rgba(25, 52, 53, 0.94));
}

body[data-page="home"] .message-board-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(145deg, var(--home-primary), #8a78ed);
    color: #ffffff;
    box-shadow: 0 9px 20px rgba(91, 124, 250, 0.2);
}

body[data-page="home"] .message-board-mark .icon {
    width: 21px;
    height: 21px;
}

body[data-page="home"] .message-board-copy .eyebrow {
    margin: 0 0 5px;
}

body[data-page="home"] .message-board h2 {
    margin: 0 0 6px;
    color: var(--home-ink);
    font-size: 20px;
    font-weight: 850;
}

body[data-page="home"] .message-board p:last-child {
    margin: 0;
    color: var(--home-ink-soft);
    font-size: 13px;
}

body[data-page="home"] .message-board-action {
    white-space: nowrap;
}

html[data-home-theme="butterfly"] body[data-page="home"] {
    --home-bg: #f6f8fc;
    --home-bg-alt: #eef3fb;
    --home-surface: rgba(255, 255, 255, 0.92);
    --home-surface-solid: #ffffff;
    --home-line: #e3e9f3;
    --home-line-strong: #cbd6e8;
    --home-ink: #273247;
    --home-ink-soft: #667189;
    --home-ink-faint: #8b96aa;
    --home-primary: #5b7cfa;
    --home-primary-strong: #4265eb;
    --home-primary-soft: #e9efff;
    --home-accent: #f08cae;
    --home-accent-soft: #fdecf3;
    --home-mint: #4bb8a9;
}

html[data-home-theme="minimal"] body[data-page="home"] {
    --home-bg: #ffffff;
    --home-bg-alt: #f7f7f5;
    --home-surface: rgba(255, 255, 255, 0.96);
    --home-surface-solid: #ffffff;
    --home-line: #e8e8e4;
    --home-line-strong: #d3d3ce;
    --home-ink: #171717;
    --home-ink-soft: #5f5f5b;
    --home-ink-faint: #92928c;
    --home-primary: #171717;
    --home-primary-strong: #000000;
    --home-primary-soft: #f0f0ed;
    --home-accent: #8e8e86;
    --home-accent-soft: #f5f5f2;
    --home-mint: #657b74;
    background: #ffffff;
}

html[data-home-theme="dark"] body[data-page="home"] {
    --home-bg: #0f1420;
    --home-bg-alt: #121927;
    --home-surface: rgba(23, 30, 45, 0.94);
    --home-surface-solid: #171e2d;
    --home-line: #2b3548;
    --home-line-strong: #3c4961;
    --home-ink: #f0f3fa;
    --home-ink-soft: #b8c2d6;
    --home-ink-faint: #8591a8;
    --home-primary: #8da7ff;
    --home-primary-strong: #adbcff;
    --home-primary-soft: #263254;
    --home-accent: #f2a6c0;
    --home-accent-soft: #422b38;
    --home-mint: #70c9bc;
    --home-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    background: #0f1420;
}

html[data-home-theme="gray"] body[data-page="home"] {
    --home-bg: #eef1f5;
    --home-bg-alt: #e7ebf0;
    --home-surface: rgba(250, 251, 252, 0.96);
    --home-surface-solid: #fafbfc;
    --home-line: #d9dee7;
    --home-line-strong: #c1c8d5;
    --home-ink: #303947;
    --home-ink-soft: #667181;
    --home-ink-faint: #8b95a4;
    --home-primary: #4f6f9f;
    --home-primary-strong: #3d5b87;
    --home-primary-soft: #e3e9f2;
    --home-accent: #a87868;
    --home-accent-soft: #f1e7e3;
    --home-mint: #5e8d83;
    background: #eef1f5;
}

html[data-home-theme="butterfly"] body[data-page="home"] .site-header {
    background: rgba(248, 250, 255, 0.92);
}

html[data-home-theme="butterfly"] body[data-page="home"] .header-search {
    background: rgba(255, 255, 255, 0.84);
}

html[data-home-theme="minimal"] body[data-page="home"] .site-header {
    background: rgba(255, 255, 255, 0.94);
}

html[data-home-theme="minimal"] body[data-page="home"] .header-search {
    background: rgba(255, 255, 255, 0.96);
}

html[data-home-theme="dark"] body[data-page="home"] .header-search {
    background: rgba(23, 30, 45, 0.88);
}

html[data-home-theme="gray"] body[data-page="home"] .site-header {
    background: rgba(250, 251, 252, 0.94);
}

html[data-home-theme="gray"] body[data-page="home"] .header-search {
    background: rgba(255, 255, 255, 0.82);
}

html[data-home-theme="minimal"] body[data-page="home"] .home-hero {
    background: #f4f4f1;
}

html[data-home-theme="minimal"] body[data-page="home"] .home-hero-image {
    opacity: 0.34;
    filter: grayscale(0.45) contrast(1.02);
}

html[data-home-theme="minimal"] body[data-page="home"] .home-hero-shade {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.87) 48%, rgba(255, 255, 255, 0.52) 100%);
}

html[data-home-theme="minimal"] body[data-page="home"] .home-hero h1,
html[data-home-theme="minimal"] body[data-page="home"] .home-hero .eyebrow,
html[data-home-theme="minimal"] body[data-page="home"] .home-hero-note {
    color: #20201e;
    text-shadow: none;
}

html[data-home-theme="minimal"] body[data-page="home"] .hero-title-gradient {
    background: none;
    color: #20201e;
    -webkit-text-fill-color: #20201e;
}

html[data-home-theme="minimal"] body[data-page="home"] .home-hero-panel {
    border-color: #deded8;
    background: rgba(255, 255, 255, 0.86);
}

html[data-home-theme="minimal"] body[data-page="home"] .home-hero-panel .hero-panel-label,
html[data-home-theme="minimal"] body[data-page="home"] .home-hero-panel p {
    color: #676761;
}

html[data-home-theme="minimal"] body[data-page="home"] .home-hero-panel .hero-panel-list > span,
html[data-home-theme="minimal"] body[data-page="home"] .home-hero-panel .hero-panel-list > a {
    border-color: #e1e1dc;
    background: #ffffff;
    color: #20201e;
}

html[data-home-theme="minimal"] body[data-page="home"] .home-hero .button-secondary {
    border-color: #d5d5d0;
    background: #ffffff;
    color: #20201e;
}

html[data-home-theme="gray"] body[data-page="home"] .home-hero-image {
    opacity: 0.42;
    filter: saturate(0.62) contrast(1.08);
}

html[data-home-theme="gray"] body[data-page="home"] .home-hero-shade {
    background: linear-gradient(90deg, rgba(34, 43, 57, 0.91) 0%, rgba(46, 56, 70, 0.72) 52%, rgba(70, 82, 98, 0.28) 100%);
}

html[data-home-theme="dark"] body[data-page="home"] .site-header {
    background: rgba(15, 20, 32, 0.9);
}

html[data-home-theme="dark"] body[data-page="home"] .home-hero-image {
    opacity: 0.38;
}

html[data-home-theme="dark"] body[data-page="home"] .home-hero-shade {
    background: linear-gradient(90deg, rgba(5, 10, 20, 0.97) 0%, rgba(8, 15, 29, 0.86) 48%, rgba(8, 16, 31, 0.45) 100%);
}

html[data-home-theme="dark"] body[data-page="home"] .message-board {
    border-color: #2d3950;
    background: linear-gradient(120deg, #182238, #211c30 55%, #172f31);
}

@keyframes home-hero-zoom {
    from { transform: scale(1.04); }
    to { transform: scale(1.1); }
}

@keyframes home-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes home-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes home-panel-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1120px) {
    body[data-page="home"] .header-inner {
        grid-template-columns: auto auto minmax(210px, 1fr) auto;
        gap: 14px;
    }

    body[data-page="home"] .home-nav-dropdown-menu {
        width: 230px;
    }
}

@media (max-width: 940px) {
    body[data-page="home"] .home-hero,
    body[data-page="home"] .home-hero-inner {
        min-height: 480px;
    }

    body[data-page="home"] .home-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 72px 0 68px;
    }

    body[data-page="home"] .home-hero h1 {
        font-size: 52px;
    }

    body[data-page="home"] .home-hero-panel {
        max-width: 640px;
    }

    body[data-page="home"] .message-board {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body[data-page="home"] .message-board-action {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 720px) {
    body[data-page="home"] .header-inner {
        grid-template-columns: 1fr auto;
    }

    body[data-page="home"] .header-actions {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
        row-gap: 6px;
    }

    body[data-page="home"] .language-toggle {
        min-width: 44px;
        padding: 0 8px;
    }

    body[data-page="home"] .home-theme-select {
        width: 84px;
    }


    body[data-page="home"] .home-hero,
    body[data-page="home"] .home-hero-inner {
        min-height: 440px;
    }

    body[data-page="home"] .home-hero-inner {
        padding: 58px 0 56px;
    }

    body[data-page="home"] .home-hero h1 {
        font-size: 42px;
    }

    body[data-page="home"] .post-card-link {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body[data-page="home"] .post-card-media {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }

    body[data-page="home"] .post-card-body {
        padding: 22px 20px 20px;
    }

    body[data-page="home"] .message-board {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px 22px;
    }

    body[data-page="home"] .message-board-action {
        grid-column: auto;
        justify-self: start;
    }
}

@media (max-width: 460px) {
    body[data-page="home"] .home-hero h1 {
        font-size: 35px;
    }

    body[data-page="home"] .home-hero-note {
        font-size: 14px;
    }

    body[data-page="home"] .message-board h2 {
        font-size: 18px;
    }
}

@media (max-width: 460px) {
    body[data-page="home"] .home-theme-select {
        width: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="home"] *,
    body[data-page="home"] *::before,
    body[data-page="home"] *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body[data-page="home"] .hero-panel-list > a {
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

body[data-page="home"] .hero-panel-list > a:hover {
    border-color: rgba(125, 149, 245, 0.52);
    background: rgba(105, 129, 231, 0.16);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(35, 53, 105, 0.16);
    transform: translateX(4px);
}

body[data-page="home"] .language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 58px;
    height: 38px;
    gap: 6px;
    padding: 0 10px;
}

body[data-page="home"] .language-toggle .icon {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

body[data-page="home"] .language-toggle-label {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

body[data-page="home"] .hero-title-line.is-typing .typewriter-char {
    display: inline-block;
    opacity: 0;
    filter: blur(7px);
    transform: translateY(0.62em) scale(0.96);
    animation: hero-typewriter-char 520ms cubic-bezier(0.2, 0.82, 0.22, 1) forwards;
}

body[data-page="home"] .hero-title-line.is-typing .typewriter-char,
body[data-page="home"] .hero-title-gradient.is-typing .typewriter-char {
    background: linear-gradient(100deg, #ff9f68 0%, #ff6fa5 34%, #8f7cff 66%, #57d5d1 100%);
    background-size: 240% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 18px rgba(151, 118, 255, 0.42);
}

@keyframes hero-typewriter-char {
    0% {
        opacity: 0;
        filter: blur(7px);
        transform: translateY(0.62em) scale(0.96);
    }
    68% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(-0.05em) scale(1.02);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 720px) {
    body[data-page="home"] .language-toggle-label {
        display: inline-flex;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[data-page="home"] .hero-title-line.is-typing .typewriter-char {
        opacity: 1;
        filter: none;
        transform: none;
        animation: none;
    }
}
