/* =========================================================
   reset.css
   Modern Reset
========================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

ul,
ol {
    list-style: none;
}

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

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

button {
    background: none;
    border: 0;
    cursor: pointer;
}

input,
textarea,
select {
    background: transparent;
    border-radius: 0;
}

textarea {
    resize: vertical;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

th {
    text-align: left;
}

hr {
    border: 0;
}

iframe {
    border: 0;
}

:target {
    scroll-margin-top: 120px;
}

[hidden] {
    display: none !important;
}

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

}
:root {
    /* =========================================================
       Official Brand Colors
    ========================================================= */

    --color-primary-blue: #001E62;
    --color-accent-red: #C63527;
    --color-brand-yellow: #F1C400;
    --color-black: #000000;
    --color-gray: #737373;
    --color-white: #FFFFFF;


    /* =========================================================
   Semantic Colors
========================================================= */

    --color-dark: var(--color-black);
    --color-text: var(--color-black);
    --color-muted: var(--color-gray);

    --color-bg: var(--color-white);
    --color-surface: var(--color-white);
    --color-border: #E5E7EB;

    --color-link: var(--color-primary-blue);
    --color-highlight: var(--color-brand-yellow);
    --color-emphasis: var(--color-accent-red);

    /* Legacy compatibility aliases */
    --color-primary: var(--color-primary-blue);
    --color-accent: var(--color-accent-red);
    --color-light: #F7F9FC;
    --color-text-muted: var(--color-muted);


    /* =========================================================
       Optional Transparent Variants
    ========================================================= */

    --color-blue-soft: rgba(0, 30, 98, 0.08);
    --color-red-soft: rgba(198, 53, 39, 0.08);
    --color-yellow-soft: rgba(241, 196, 0, 0.14);
    --color-gray-soft: rgba(115, 115, 115, 0.18);


    /* =========================================================
   Typography
========================================================= */

    /* Font Families
--------------------------------------------------------- */

    --font-ja:
        "Zen Kaku Gothic New",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        sans-serif;

    --font-en:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    --font-serif:
        "Shippori Mincho",
        "Yu Mincho",
        "Hiragino Mincho ProN",
        serif;

    /* Simplified Chinese: use native SC glyph shapes instead of Japanese fallbacks. */
    --font-zh-sans:
        "PingFang SC",
        "Microsoft YaHei UI",
        "Microsoft YaHei",
        "Noto Sans CJK SC",
        "Noto Sans SC",
        "Source Han Sans SC",
        "Hiragino Sans GB",
        "Heiti SC",
        "SimHei",
        sans-serif;

    --font-zh-serif:
        "Songti SC",
        "STSong",
        "Noto Serif CJK SC",
        "Noto Serif SC",
        "Source Han Serif SC",
        "SimSun",
        serif;

    --font-body: var(--font-ja);
    --font-heading: var(--font-ja);
    --font-display: var(--font-serif);

    /* Generic sans alias used by some components. */
    --font-sans: var(--font-body);


    /* Global Font Size Presets
--------------------------------------------------------- */

    /*
Default:
Slightly larger than the browser-standard 16px.

Changing these values will scale almost every rem-based
font size throughout the website.
*/

    --root-font-size: 17px;
    --root-font-size-large: 18.5px;
    --root-font-size-xlarge: 20px;


    /* Typography Scale
--------------------------------------------------------- */

    /* Small supporting text */
    --text-2xs: 0.8125rem;
    --text-xs: 0.875rem;
    --text-sm: 0.9375rem;

    /* Standard reading text */
    --text-base: 1rem;
    --text-md: 1.0625rem;
    --text-lg: 1.125rem;

    /* Card and component headings */
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;

    /* Section and page headings */
    --text-3xl: clamp(1.75rem, 3vw, 2.35rem);
    --text-4xl: clamp(2.1rem, 4.5vw, 3.4rem);
    --text-5xl: clamp(2.5rem, 5.5vw, 4.8rem);


    /* Article Reading Sizes
--------------------------------------------------------- */

    --text-article: 1.0625rem;
    --text-article-lead: clamp(1.125rem, 2vw, 1.3rem);
    --text-quote: clamp(1.15rem, 2vw, 1.3rem);


    /* Line Heights
--------------------------------------------------------- */

    --leading-tight: 1.25;
    --leading-heading: 1.45;
    --leading-body: 1.8;
    --leading-relaxed: 1.9;
    --leading-reading: 2;


    /* Letter Spacing
--------------------------------------------------------- */

    --tracking-tight: 0.01em;
    --tracking-normal: 0.04em;
    --tracking-wide: 0.08em;
    --tracking-label: 0.12em;


    /* =========================================================
       Layout
    ========================================================= */

    --max-width: 1180px;
    --radius-md: 10px;
    --transition-base: 0.2s ease;
}


/* =========================================================
   Language-specific Typography
========================================================= */

html[lang="zh"] {
    --font-body: var(--font-zh-sans);
    --font-heading: var(--font-zh-sans);
    --font-display: var(--font-zh-sans);
}
/* =========================================================
   Base
========================================================= */

html {
    scroll-behavior: smooth;
    font-size: var(--root-font-size);
}

/*
Large-text accessibility presets.

Usage:
<html data-text-size="large">

or:

<html data-text-size="xlarge">
*/

html[data-text-size="large"] {
    font-size: var(--root-font-size-large);
}

html[data-text-size="xlarge"] {
    font-size: var(--root-font-size-xlarge);
}

body {
    min-height: 100vh;

    background: var(--color-bg);
    color: var(--color-text);

    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: var(--leading-body);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   Typography
========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--leading-heading);
    text-wrap: balance;
}

p,
li,
dd,
dt {
    overflow-wrap: anywhere;
}

.editorial-intro h1,
.subpage-header h1,
.about-hero h1,
.article-title-block h1,
.topic-detail-hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
}

.site-logo,
.site-nav,
.language-switcher,
button,
input,
textarea,
select {
    font-family: var(--font-body);
}

.eyebrow,
.section-kicker,
.subpage-kicker,
.section-label,
.card-kicker,
.article-meta,
.article-detail-meta,
.topic-detail-kicker {
    font-family: var(--font-en);
}


/* =========================================================
   Standard Text Roles
========================================================= */

.eyebrow,
.section-kicker,
.subpage-kicker,
.section-label,
.card-kicker {
    font-size: var(--text-xs);
}

.article-meta,
.article-detail-meta,
.article-slide-meta,
.breadcrumb,
.topic-breadcrumb {
    font-size: var(--text-xs);
}

figcaption,
.article-result-count,
.footer-bottom {
    font-size: var(--text-xs);
}


/* =========================================================
   Links and Controls
========================================================= */

a {
    transition:
        color var(--transition-base),
        opacity var(--transition-base);
}

button,
input,
textarea,
select {
    color: inherit;
    font-size: var(--text-base);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--color-yellow-soft);
    outline-offset: 3px;
}


/* =========================================================
   Layout
========================================================= */

.container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 28px, var(--max-width));
    }
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
/* =========================================================
   layout.css
   Shared Site Layout

   Responsibilities:
   01. Header
   02. Navigation
   03. Language Switcher
   04. Mobile Menu Button
   05. Common Subpage Header
   06. Back to Top
   07. Responsive
   08. Large Text Compatibility
   09. Reduced Motion

   Notes:
   - Footer styles are located in footer.css.
   - Page-specific layouts belong in their own CSS files.
========================================================= */


/* =========================================================
   01. Header
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}


@supports not ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    .site-header {
        background: var(--color-white);
    }
}


/*
 * Header uses a wider container than standard page content.
 * This gives the logo, navigation, and language switcher
 * enough horizontal space.
 */
.header-container {
    width: min(calc(100% - 40px), 1440px);

    margin-inline: auto;
}


.header-inner {
    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr) auto;

    align-items: center;

    gap: 34px;

    min-height: 78px;
}


/* =========================================================
   Header Logo
========================================================= */

.site-logo {
    display: inline-flex;
    align-items: center;

    min-width: 0;

    flex-shrink: 0;

    text-decoration: none;
}


.site-logo-image {
    display: block;

    width: 220px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}


.site-logo:focus-visible {
    outline: 3px solid var(--color-accent-red);
    outline-offset: 5px;
}


/* =========================================================
   02. Navigation
========================================================= */

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: clamp(18px, 1.7vw, 30px);

    min-width: 0;

    color: var(--color-dark);

    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
}


.site-nav a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 16px 2px;

    color: inherit;

    text-decoration: none;
    white-space: nowrap;

    transition: color var(--transition-base);
}


.site-nav a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 10px;
    left: 0;

    height: 2px;

    background: var(--color-accent-red);

    transform: scaleX(0);
    transform-origin: right;

    transition: transform var(--transition-base);
}


.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active,
.site-nav a[aria-current="page"] {
    color: var(--color-accent-red);
}


.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}


.site-nav a:focus-visible {
    outline: 2px solid var(--color-accent-red);
    outline-offset: 4px;
}


/* =========================================================
   03. Language Switcher
========================================================= */

.language-switcher {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 4px;

    background: var(--color-light);
    border: 1px solid var(--color-border);
    border-radius: 999px;

    white-space: nowrap;
}


.language-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    min-height: 32px;
    padding: 0 10px;

    border-radius: 999px;

    color: var(--color-muted);

    font-size: var(--text-2xs);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;

    transition:
        background-color var(--transition-base),
        color var(--transition-base);
}


.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a.active,
.language-switcher a[aria-current="true"] {
    background: var(--color-primary-blue);

    color: var(--color-white);
}


.language-switcher a:focus-visible {
    outline: 2px solid var(--color-accent-red);
    outline-offset: 3px;
}


/* =========================================================
   04. Mobile Menu Button
========================================================= */

.menu-toggle {
    display: none;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    width: 44px;
    height: 44px;
    padding: 9px;

    background: var(--color-white);

    border: 1px solid var(--color-border);
    border-radius: 8px;

    cursor: pointer;

    transition:
        background-color var(--transition-base),
        border-color var(--transition-base);
}


.menu-toggle:hover,
.menu-toggle:focus-visible {
    background: var(--color-light);

    border-color: var(--color-primary-blue);
}


.menu-toggle:focus-visible {
    outline: 3px solid rgba(0, 30, 98, 0.18);
    outline-offset: 3px;
}


.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;
    margin: 0;

    flex: 0 0 2px;

    background-color: #001E62;

    transition:
        transform var(--transition-base),
        opacity var(--transition-base);
}


/* =========================================================
   05. Common Subpage Header
========================================================= */

.subpage-header {
    padding: 76px 0 58px;

    background:
        linear-gradient(135deg,
            rgba(0, 30, 98, 0.98),
            rgba(0, 20, 68, 0.98));

    border-bottom: 4px solid var(--color-accent-red);

    color: var(--color-white);
}


.subpage-header .container {
    max-width: 1240px;
}


.subpage-kicker {
    display: inline-block;

    color: rgba(255, 255, 255, 0.84);

    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.subpage-header h1 {
    margin-top: 14px;

    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: 0.03em;
}


.subpage-lead {
    max-width: 760px;
    margin-top: 22px;

    color: rgba(255, 255, 255, 0.88);

    font-size: var(--text-md);
    line-height: var(--leading-reading);
}


/* =========================================================
   06. Back to Top
========================================================= */

.back-to-top {
    position: fixed;

    right: 28px;
    bottom: 28px;

    z-index: 900;

    display: inline-flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    width: 76px;
    min-height: 64px;

    padding: 9px 7px;

    background: var(--color-primary-blue);

    border: 1px solid rgba(255, 255, 255, 0.22);

    color: var(--color-white);

    box-shadow: 0 12px 30px rgba(0, 30, 98, 0.22);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(16px);

    transition:
        opacity 0.28s ease,
        visibility 0.28s ease,
        transform 0.28s ease,
        background-color 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}


.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


.back-to-top:hover,
.back-to-top:focus-visible {
    transform: translateY(-3px);

    background: var(--color-brand-yellow);
    border-color: var(--color-brand-yellow);

    color: var(--color-primary-blue);
}


.back-to-top:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 4px;
}


.back-to-top-icon {
    display: grid;
    place-items: center;

    width: 24px;
    height: 20px;

    font-size: 0.95rem;
    line-height: 1;
}


.back-to-top-label {
    font-family: var(--font-body);

    font-size: var(--text-2xs);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-align: center;
}


/* =========================================================
   07. Responsive
========================================================= */


/* ---------------------------------------------------------
   Medium Desktop
--------------------------------------------------------- */

@media (max-width: 1240px) {

    .header-inner {
        gap: 24px;
    }

    .site-nav {
        gap: 18px;

        font-size: var(--text-xs);
    }

}


/* ---------------------------------------------------------
   Tablet / Mobile Navigation
--------------------------------------------------------- */

@media (max-width: 980px) {

    .header-container {
        width: min(calc(100% - 32px), 1440px);
    }


    .header-inner {
        grid-template-columns:
            minmax(0, 1fr) auto auto;

        justify-content: space-between;

        gap: 16px;

        min-height: 72px;
    }


    .menu-toggle {
        display: flex;

        order: 3;
    }


    .language-switcher {
        order: 2;
    }


    /*
     * Mobile dropdown navigation
     */
    .site-nav {
        position: absolute;

        top: calc(100% + 10px);
        right: 16px;
        left: 16px;

        display: none;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px;

        background: var(--color-white);

        border: 1px solid var(--color-border);
        border-radius: 12px;

        color: var(--color-dark);

        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    }


    .site-nav.active {
        display: flex;
    }


    .site-nav a {
        justify-content: flex-start;

        min-height: 48px;
        padding: 13px 14px;

        border-radius: 8px;

        font-size: var(--text-sm);
    }


    .site-nav a::after {
        display: none;
    }


    .site-nav a:hover,
    .site-nav a:focus-visible,
    .site-nav a.active,
    .site-nav a[aria-current="page"] {
        background: var(--color-light);
    }


    /*
     * Hamburger animation
     */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }


    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }


    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

}


/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 768px) {

    .subpage-header {
        padding: 58px 0 46px;
    }


    .subpage-lead {
        font-size: var(--text-base);
        line-height: var(--leading-relaxed);
    }


    .back-to-top {
        right: 16px;
        bottom: 16px;

        width: 66px;
        min-height: 58px;

        padding: 8px 6px;
    }

}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 640px) {

    .header-container {
        width: min(calc(100% - 24px), 1440px);
    }


    .header-inner {
        grid-template-columns:
            minmax(0, 1fr) auto auto;

        gap: 10px;
    }


    .site-logo {
        overflow: visible;
    }


    .site-logo-image {
        width: 170px;
        max-width: 100%;
        height: auto;
    }


    .language-switcher {
        gap: 3px;

        padding: 3px;
    }


    .language-switcher a {
        min-width: 34px;
        min-height: 30px;

        padding: 0 7px;

        font-size: var(--text-2xs);
    }

}


/* ---------------------------------------------------------
   Small Mobile
--------------------------------------------------------- */

@media (max-width: 420px) {

    .header-inner {
        gap: 7px;
    }


    .site-logo-image {
        width: 150px;
        max-width: 100%;
        height: auto;
    }


    .language-switcher a {
        min-width: 31px;

        padding: 0 6px;
    }


    .menu-toggle {
        width: 42px;
        height: 42px;
    }


    .back-to-top {
        width: 62px;
    }

}


/* =========================================================
   08. Large Text Compatibility
========================================================= */

html[data-text-size="large"] .header-inner,
html[data-text-size="xlarge"] .header-inner {
    grid-template-columns:
        minmax(0, 1fr) auto auto;
}


html[data-text-size="large"] .menu-toggle,
html[data-text-size="xlarge"] .menu-toggle {
    display: flex;

    order: 3;
}


html[data-text-size="large"] .language-switcher,
html[data-text-size="xlarge"] .language-switcher {
    order: 2;
}


html[data-text-size="large"] .site-nav,
html[data-text-size="xlarge"] .site-nav {
    position: absolute;

    top: calc(100% + 10px);
    right: 16px;
    left: 16px;

    display: none;

    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 10px;

    background: var(--color-white);

    border: 1px solid var(--color-border);
    border-radius: 12px;

    color: var(--color-dark);

    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}


html[data-text-size="large"] .site-nav.active,
html[data-text-size="xlarge"] .site-nav.active {
    display: flex;
}


html[data-text-size="large"] .site-nav a,
html[data-text-size="xlarge"] .site-nav a {
    justify-content: flex-start;

    min-height: 50px;
    padding: 13px 14px;

    border-radius: 8px;
}


html[data-text-size="large"] .site-nav a::after,
html[data-text-size="xlarge"] .site-nav a::after {
    display: none;
}


html[data-text-size="large"] .back-to-top,
html[data-text-size="xlarge"] .back-to-top {
    width: 82px;
    min-height: 68px;
}


@media (max-width: 640px) {

    html[data-text-size="large"] .back-to-top,
    html[data-text-size="xlarge"] .back-to-top {
        width: 72px;
        min-height: 62px;
    }

}


/* =========================================================
   09. Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .site-nav a,
    .language-switcher a,
    .menu-toggle,
    .menu-toggle span,
    .back-to-top {
        transition-duration: 0.01ms;
    }

}
/* =========================================================
   footer.css
   Shared Site Footer

   Responsibilities:
   01. Footer Base
   02. Brand / Logo
   03. Social Media
   05. Navigation Columns
   06. Languages
   07. Footer Bottom
   08. Disclaimer
   09. Screen Reader Utilities
   10. Responsive
   11. Large Text Compatibility
   12. Reduced Motion
========================================================= */


/* =========================================================
   01. Footer Base
========================================================= */

.site-footer {
    margin-top: 64px;
    padding: 64px 0 24px;

    background: var(--color-primary-blue);

    color: var(--color-white);
}


.footer-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 1.8fr) minmax(150px, 0.9fr) minmax(150px, 0.9fr) minmax(180px, 1fr);

    align-items: start;

    gap: 56px;
}


/* =========================================================
   02. Brand / Logo
========================================================= */

.footer-brand {
    min-width: 0;
    max-width: 460px;
}


.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    width: fit-content;
    max-width: 100%;

    margin-bottom: 22px;
    padding: 0;

    /*
     * The footer uses the dedicated white/transparent logo asset.
     * Keep it directly on the blue footer with no surrounding card.
     */
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    text-decoration: none;

    transition:
        transform var(--transition-base),
        opacity var(--transition-base);
}


.footer-logo:hover,
.footer-logo:focus-visible {
    transform: translateY(-2px);
    opacity: 0.94;
}


.footer-logo:focus-visible {
    outline:
        3px solid var(--color-brand-yellow);

    outline-offset: 4px;
}


.footer-logo-image {
    display: block;

    width: min(320px, 100%);
    height: auto;

    object-fit: contain;

    background: transparent;
    border: 0;
    box-shadow: none;
}


/* ---------------------------------------------------------
   Project Description
--------------------------------------------------------- */

.footer-description {
    max-width: 440px;
    margin: 0;

    color: rgba(255, 255, 255, 0.88);

    font-size: var(--text-sm);
    line-height: 2;

    /*
     * Respect manual line breaks written in lang files.
     */
    white-space: pre-line;
}


/* =========================================================
   03. Institute Link
========================================================= */

.footer-institute-link {
    display: block;

    width: min(360px, 100%);
    margin-top: 20px;

    overflow: hidden;

    background: var(--color-white);
    border-radius: 6px;

    text-decoration: none;

    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        opacity var(--transition-base);
}


.footer-institute-link:hover,
.footer-institute-link:focus-visible {
    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.16);
}


.footer-institute-link:focus-visible {
    outline:
        3px solid var(--color-brand-yellow);

    outline-offset: 4px;
}


.footer-institute-logo {
    display: block;

    width: 100%;
    height: auto;
}


/* =========================================================
   04. Social Media
========================================================= */

.footer-social {
    margin-top: 22px;
}


.footer-social-title {
    margin: 0 0 12px;

    color: rgba(255, 255, 255, 0.82);

    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.04em;
}


.footer-social-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 10px;
}


.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    padding: 0;

    background: rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.24);

    border-radius: 50%;

    color: var(--color-white);

    text-decoration: none;

    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-base);
}


a.footer-social-link:hover,
a.footer-social-link:focus-visible {
    transform: translateY(-2px);

    background: var(--color-white);
    border-color: var(--color-white);

    color: var(--color-primary-blue);
}


a.footer-social-link:focus-visible {
    outline:
        3px solid var(--color-brand-yellow);

    outline-offset: 4px;
}


/*
 * Visible but unavailable SNS account.
 */
.footer-social-link.is-disabled {
    cursor: default;

    opacity: 0.48;
}


.footer-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;
}


.footer-social-icon svg {
    display: block;

    width: 20px;
    height: 20px;
}


/* =========================================================
   05. Navigation Columns
========================================================= */

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}


.footer-column h3 {
    position: relative;

    margin: 0 0 20px;
    padding-bottom: 10px;

    color: var(--color-white);

    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
}


.footer-column h3::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 28px;
    height: 2px;

    background: var(--color-accent-red);
}


.footer-column>a {
    display: inline-flex;
    align-items: center;

    min-height: 34px;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, 0.86);

    font-size: var(--text-sm);
    line-height: 1.65;
    text-decoration: none;

    transition:
        color var(--transition-base),
        transform var(--transition-base);
}


.footer-column>a:hover,
.footer-column>a:focus-visible {
    color: var(--color-white);

    transform: translateX(4px);
}


.footer-column>a:focus-visible {
    outline:
        2px solid var(--color-brand-yellow);

    outline-offset: 4px;
}


/* =========================================================
   06. Languages
========================================================= */

.footer-language-text {
    max-width: 260px;
    margin: 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);

    /*
     * Respect the intentional line break from each language file,
     * but do not allow an additional browser-generated wrap inside
     * either line (for example, splitting "中国語").
     */
    white-space: pre;
}


.footer-language-list {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}


.footer-language-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;

    padding: 6px 11px;

    background: rgba(255, 255, 255, 0.08);

    border:
        1px solid rgba(255, 255, 255, 0.16);

    border-radius: 999px;

    color: rgba(255, 255, 255, 0.88);

    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;

    transition:
        background-color var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base),
        transform var(--transition-base);
}


.footer-language-list a:hover,
.footer-language-list a:focus-visible {
    transform: translateY(-1px);

    background: rgba(255, 255, 255, 0.16);

    border-color:
        rgba(255, 255, 255, 0.35);

    color: var(--color-white);
}


.footer-language-list a[aria-current="true"] {
    background: var(--color-white);
    border-color: var(--color-white);

    color: var(--color-primary-blue);

    font-weight: 700;
}


.footer-language-list a:focus-visible {
    outline:
        2px solid var(--color-brand-yellow);

    outline-offset: 3px;
}


/* =========================================================
   07. Footer Bottom
========================================================= */

.footer-bottom {
    /*
     * Keep the disclaimer visually connected to the
     * main footer rather than creating a large empty area.
     */
    margin-top: 30px;
    padding-top: 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.18);

    text-align: center;
}


/* =========================================================
   08. Disclaimer
========================================================= */

.footer-disclaimer {
    /*
     * Wide enough to avoid unnatural wrapping.
     */
    width: 100%;
    max-width: 1180px;

    margin:
        0 auto 15px;

    padding-inline: 10px;

    color: rgba(255, 255, 255, 0.68);

    font-size: var(--text-2xs);
    font-weight: 400;
    line-height: 1.85;

    text-align: center;

    /*
     * JA / EN can define intentional line breaks
     * independently inside their language files.
     */
    white-space: pre-line;
}


/*
 * Chinese disclaimer
 *
 * Keep it as one continuous line on normal desktop screens.
 * No manual newline should be added in zh.php.
 */
@media (min-width: 901px) {

    html[lang="zh"] .footer-disclaimer {
        max-width: none;

        padding-inline: 0;

        white-space: nowrap;
    }

}


/* ---------------------------------------------------------
   Copyright
--------------------------------------------------------- */

.footer-copyright {
    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: var(--text-xs);
    line-height: 1.7;

    text-align: center;
}


/* =========================================================
   09. Screen Reader Utilities
========================================================= */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   10. Responsive
========================================================= */


/* ---------------------------------------------------------
   Smaller Desktop
--------------------------------------------------------- */

@media (max-width: 1180px) {

    .footer-grid {
        grid-template-columns:
            repeat(3,
                minmax(0, 1fr));

        gap: 42px;
    }


    .footer-brand {
        grid-column: 1 / -1;

        max-width: 620px;
    }

}


/* ---------------------------------------------------------
   Tablet
--------------------------------------------------------- */

@media (max-width: 900px) {

    /*
     * Chinese is allowed to wrap once screen width becomes
     * too narrow for a safe single-line presentation.
     */
    html[lang="zh"] .footer-disclaimer {
        white-space: normal;
    }

}


@media (max-width: 820px) {

    .site-footer {
        padding:
            54px 0 24px;
    }


    .footer-grid {
        grid-template-columns:
            repeat(2,
                minmax(0, 1fr));

        gap:
            42px 36px;
    }


    .footer-brand {
        grid-column: 1 / -1;

        max-width: 560px;
    }


    .footer-bottom {
        margin-top: 28px;
        padding-top: 18px;
    }


    .footer-disclaimer {
        max-width: 720px;

        padding-inline: 6px;
    }

}


/* ---------------------------------------------------------
   Mobile
--------------------------------------------------------- */

@media (max-width: 640px) {

    .site-footer {
        margin-top: 48px;

        padding:
            46px 0 22px;
    }


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

        gap: 34px;
    }


    .footer-brand {
        grid-column: auto;

        max-width: 100%;
    }


    .footer-logo {
        margin-bottom: 18px;
    }


    .footer-logo-image {
        width: min(280px, 100%);
    }


    .footer-description,
    .footer-language-text {
        max-width: 100%;
    }


    /*
     * Bring the disclaimer closer to the main footer
     * on mobile as well.
     */
    .footer-bottom {
        margin-top: 26px;
        padding-top: 17px;
    }


    .footer-disclaimer {
        width: 100%;
        max-width: 100%;

        margin-bottom: 14px;

        padding-inline: 2px;

        font-size: var(--text-2xs);
        line-height: 1.8;

        text-align: center;

        /*
         * Preserve intentional manual line breaks where
         * possible, while allowing long words/URLs to wrap.
         */
        overflow-wrap: anywhere;
    }


    html[lang="zh"] .footer-disclaimer {
        white-space: normal;
    }

}


/* ---------------------------------------------------------
   Small Mobile
--------------------------------------------------------- */

@media (max-width: 420px) {

    .footer-logo-image {
        width: min(240px, 100%);
    }


    .footer-social-link {
        width: 40px;
        height: 40px;
    }


    .footer-language-list {
        gap: 7px;
    }


    .footer-language-list a {
        min-height: 32px;

        padding:
            5px 10px;
    }


    .footer-bottom {
        margin-top: 24px;
    }


    .footer-disclaimer {
        padding-inline: 0;

        line-height: 1.75;
    }

}


/* =========================================================
   11. Large Text Compatibility
========================================================= */

html[data-text-size="large"] .footer-grid {
    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));
}


html[data-text-size="large"] .footer-brand {
    grid-column: 1 / -1;
}


html[data-text-size="xlarge"] .footer-grid {
    grid-template-columns: 1fr;
}


html[data-text-size="xlarge"] .footer-brand {
    grid-column: auto;
}


html[data-text-size="large"] .footer-column>a,
html[data-text-size="xlarge"] .footer-column>a,
html[data-text-size="large"] .footer-language-list a,
html[data-text-size="xlarge"] .footer-language-list a {
    min-height: 40px;
}


/*
 * Large-text modes should not force Chinese into a
 * single line because accessibility takes precedence.
 */
html[data-text-size="large"] .footer-disclaimer,
html[data-text-size="xlarge"] .footer-disclaimer {
    max-width: 100%;

    white-space: normal;
}


@media (max-width: 640px) {

    html[data-text-size="large"] .footer-grid,
    html[data-text-size="xlarge"] .footer-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   12. Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-logo,
    .footer-column>a,
    .footer-language-list a,
    .footer-social-link {
        transition-duration: 0.01ms;
    }

}
/* =========================================================
   Articles Page
   Editorial Archive
========================================================= */

.articles-page {
    background: var(--color-white);
}


/* =========================================================
   01. Featured Article
========================================================= */

.articles-featured-section {
    padding: 72px 0 64px;
    background: var(--color-white);
}

.articles-featured-card {
    overflow: hidden;

    background: var(--color-white);
    border: 1px solid var(--color-border);

    box-shadow: 0 20px 50px rgba(0, 30, 98, 0.06);

    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.articles-featured-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 30, 98, 0.24);
    box-shadow: 0 22px 54px rgba(0, 30, 98, 0.1);
}

.articles-featured-card>a {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;

    color: inherit;
    text-decoration: none;
}

.articles-featured-card figure {
    min-height: 430px;
    overflow: hidden;

    background: var(--color-light);
}

.articles-featured-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 18%;

    transition: transform 0.45s ease;
}

.articles-featured-card:hover img {
    transform: scale(1.035);
}

.articles-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 58px;
}


/* Featured Metadata
--------------------------------------------------------- */

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;

    margin-top: 18px;

    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.06em;
}

.article-meta span {
    color: var(--color-accent-red);
}

.article-meta time {
    color: var(--color-text-muted);
}


/* Featured Text
--------------------------------------------------------- */

.articles-featured-body h2 {
    margin-top: 22px;

    color: var(--color-primary-blue);

    font-size: clamp(1.9rem, 2.7vw, 3rem);
    line-height: 1.35;
}

.articles-featured-body p:not(.section-kicker) {
    margin-top: 20px;

    color: var(--color-text-muted);

    font-size: var(--text-base);
    line-height: var(--leading-reading);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 36px;

    color: var(--color-primary-blue);

    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;
}

.read-more i {
    font-size: 0.9rem;

    transition: transform var(--transition-base);
}

.articles-featured-card:hover .read-more i,
.articles-featured-card:focus-within .read-more i {
    transform: translateX(5px);
}


/* =========================================================
   02. Article Archive
========================================================= */

.articles-archive-section {
    padding: 70px 0 100px;

    background: var(--color-light);
    border-top: 1px solid var(--color-border);
}

.archive-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;

    margin-bottom: 34px;
}

.archive-heading h2 {
    margin-top: 10px;

    color: var(--color-primary-blue);

    font-size: var(--text-3xl);
    line-height: var(--leading-heading);
}

.articles-archive-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}


/* Archive Card — aligned with Homepage Latest Articles
--------------------------------------------------------- */

.archive-article {
    min-width: 0;
    overflow: hidden;

    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);

    transition:
        transform var(--transition-base),
        box-shadow var(--transition-base),
        border-color var(--transition-base);
}

.archive-article:hover,
.archive-article:focus-within {
    transform: translateY(-3px);
    border-color: rgba(0, 30, 98, 0.22);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.archive-article>a {
    display: flex;
    flex-direction: column;
    height: 100%;

    color: inherit;
    text-decoration: none;
}

.archive-article figure {
    height: 170px;
    overflow: hidden;
    background: var(--color-border);
}

.archive-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    transition: transform 0.35s ease;
}

.archive-article:hover img,
.archive-article:focus-within img {
    transform: scale(1.035);
}

.archive-article-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    padding: 20px 20px 23px;
}

.archive-article-body .article-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: var(--text-2xs);
    font-weight: 600;
    line-height: 1.5;
}

.archive-article-body .article-meta span {
    color: var(--color-accent-red);
    font-weight: 700;
}

.archive-article-body h3 {
    margin: 0 0 10px;
    color: var(--color-primary-blue);
    font-size: var(--text-lg);
    line-height: 1.55;
}

.archive-article-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
}

.archive-article-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 2px;
    color: var(--color-primary-blue);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;
}

.archive-article-more i {
    font-size: 0.82em;
    transition: transform var(--transition-base);
}

.archive-article:hover .archive-article-more i,
.archive-article:focus-within .archive-article-more i {
    transform: translateX(3px);
}


/* =========================================================
   03. Article Tags
========================================================= */

.archive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 16px;
}

.archive-tags span {
    display: inline-flex;
    align-items: center;

    min-height: 32px;
    padding: 0 12px;

    background: var(--color-light);
    border: 1px solid var(--color-border);

    color: var(--color-primary-blue);

    font-size: var(--text-2xs);
    font-weight: 700;
    line-height: 1.4;
}


/* =========================================================
   04. Empty State
========================================================= */

.empty-state {
    padding: 64px 28px;

    background: var(--color-white);
    border: 1px solid var(--color-border);

    text-align: center;
}

.empty-state h2 {
    color: var(--color-primary-blue);

    font-size: var(--text-2xl);
    line-height: var(--leading-heading);
}

.empty-state p {
    max-width: 620px;
    margin: 14px auto 0;

    color: var(--color-text-muted);

    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}


/* =========================================================
   05. Article Search
========================================================= */

.article-search-section {
    padding: 42px 0 0;

    background: var(--color-white);
}

.article-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;

    padding: 22px;

    background: var(--color-light);
    border: 1px solid var(--color-border);
}

.article-search-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;

    background: var(--color-white);
    border: 1px solid var(--color-border);

    color: var(--color-text);

    font-size: var(--text-base);
    line-height: 1.5;

    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.article-search-form input::placeholder {
    color: var(--color-muted);
    opacity: 0.9;
}

.article-search-form input:focus {
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 3px var(--color-blue-soft);
}


/* Search Button
--------------------------------------------------------- */

.article-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 52px;
    padding: 0 24px;

    background: var(--color-primary-blue);
    border: 0;

    color: var(--color-white);

    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;

    cursor: pointer;

    transition:
        background var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.article-search-form button:hover,
.article-search-form button:focus-visible {
    background: var(--color-accent-red);

    box-shadow: 0 8px 20px rgba(198, 53, 39, 0.16);
}

.article-search-form button:active {
    transform: translateY(1px);
}


/* Search Reset
--------------------------------------------------------- */

.article-search-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 0 18px;

    background: var(--color-white);
    border: 1px solid var(--color-border);

    color: var(--color-primary-blue);

    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;

    transition:
        background var(--transition-base),
        border-color var(--transition-base),
        color var(--transition-base);
}

.article-search-reset:hover,
.article-search-reset:focus-visible {
    background: var(--color-primary-blue);
    border-color: var(--color-primary-blue);

    color: var(--color-white);
}


/* Search Result Count
--------------------------------------------------------- */

.article-result-count {
    color: var(--color-text-muted);

    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.6;
}


/* =========================================================
   06. Responsive
========================================================= */

@media (max-width: 1100px) {
    .articles-featured-body {
        padding: 46px;
    }

    .articles-archive-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 1024px) {
    .articles-featured-card>a {
        grid-template-columns: 1fr;
    }

    .articles-featured-card figure {
        min-height: 340px;
    }

    .articles-featured-body {
        padding: 40px;
    }

}


@media (max-width: 768px) {

    .articles-featured-section,
    .articles-archive-section {
        padding: 54px 0 64px;
    }

    .articles-featured-body {
        padding: 30px;
    }

    .archive-heading {
        display: block;
    }

    .article-result-count {
        margin-top: 14px;
    }

    .articles-archive-list {
        grid-template-columns: 1fr;
    }

    .archive-article figure {
        height: 210px;
    }

    .article-search-section {
        padding-top: 32px;
    }

    .article-search-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .article-search-form button,
    .article-search-reset {
        width: 100%;
    }
}


@media (max-width: 480px) {
    .articles-featured-card figure {
        min-height: 240px;
    }

    .articles-featured-body {
        padding: 24px;
    }

    .archive-article-body {
        padding: 18px;
    }

    .archive-article figure {
        height: 190px;
    }
}


/* =========================================================
   07. Large Text Compatibility
========================================================= */

/*
Large text modes reduce layout density so enlarged text
does not create cramped cards or narrow reading columns.
*/

html[data-text-size="large"] .articles-featured-card>a,
html[data-text-size="xlarge"] .articles-featured-card>a {
    grid-template-columns: 1fr;
}

html[data-text-size="large"] .articles-featured-card figure,
html[data-text-size="xlarge"] .articles-featured-card figure {
    min-height: 360px;
}

html[data-text-size="large"] .articles-archive-list,
html[data-text-size="xlarge"] .articles-archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

html[data-text-size="xlarge"] .article-search-form {
    grid-template-columns: 1fr;
}

html[data-text-size="xlarge"] .article-search-form button,
html[data-text-size="xlarge"] .article-search-reset {
    width: 100%;
}

@media (max-width: 768px) {

    html[data-text-size="large"] .articles-archive-list,
    html[data-text-size="xlarge"] .articles-archive-list {
        grid-template-columns: 1fr;
    }
}

/* Production article fallback when no source image was supplied */
.article-image-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    background: var(--color-surface-soft, #f3f4f6);
    color: var(--color-text-muted, #6b7280);
    font-size: 2rem;
}

/* ==========================================================
   2026-09-18: archive thumbnail focus refinements
   Match the homepage crop direction for the requested images.
   ========================================================== */
.archive-article img[src$="yamamoto-china-in-morowali.png"] {
    object-position: center 72%;
}

.archive-article img[src$="klein-lecture.jpg"] {
    object-position: center 72%;
}
/* =========================================================
   Topics Module
   Accessible Typography Edition
========================================================= */

.topics-page,
.topic-detail-page {
    background: var(--color-white);
}


/* =========================================================
   01. Topics Overview
========================================================= */

.topics-overview-section {
    padding: 74px 0 102px;
}

.topics-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.topic-overview-card {
    overflow: hidden;

    background: var(--color-white);
    border: 1px solid var(--color-border);

    transition:
        transform var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.topic-overview-card:hover,
.topic-overview-card:focus-within {
    transform: translateY(-4px);

    border-color: rgba(0, 30, 98, 0.28);

    box-shadow: 0 18px 45px rgba(0, 30, 98, 0.09);
}

.topic-overview-card>a {
    display: block;
    height: 100%;

    color: inherit;
    text-decoration: none;
}

.topic-overview-card figure {
    position: relative;
    overflow: hidden;

    aspect-ratio: 16 / 8.5;

    background: var(--color-light);
}

.topic-overview-card figure::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(to top,
            rgba(0, 20, 68, 0.9),
            rgba(0, 30, 98, 0.1));
}

.topic-overview-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.topic-overview-card:hover img,
.topic-overview-card:focus-within img {
    transform: scale(1.035);
}

.topic-overview-overlay {
    position: absolute;
    right: 28px;
    bottom: 26px;
    left: 28px;
    z-index: 2;

    color: var(--color-white);
}

.topic-overview-overlay span {
    display: block;
    margin-bottom: 6px;

    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.topic-overview-overlay h2 {
    font-size: var(--text-3xl);
    line-height: 1.3;
}

.topic-overview-body {
    padding: 28px 30px 30px;
}

.topic-overview-body>p {
    color: var(--color-text-muted);

    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.topic-overview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin-top: 26px;
    padding-top: 20px;

    border-top: 1px solid var(--color-border);

    color: var(--color-muted);

    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
}

.topic-overview-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--color-primary-blue);
}

.topic-overview-link i {
    font-size: 0.9rem;

    transition: transform var(--transition-base);
}

.topic-overview-card:hover .topic-overview-link i,
.topic-overview-card:focus-within .topic-overview-link i {
    transform: translateX(4px);
}


/* =========================================================
   02. Topic Detail Hero
========================================================= */

.topic-detail-hero {
    position: relative;

    display: flex;
    align-items: flex-end;
    overflow: hidden;

    min-height: 490px;

    background: var(--color-primary-blue);
    color: var(--color-white);
}

.topic-detail-hero>img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.topic-detail-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(0, 20, 68, 0.98) 0%,
            rgba(0, 30, 98, 0.86) 52%,
            rgba(0, 30, 98, 0.38) 100%);
}

.topic-detail-hero-content {
    position: relative;
    z-index: 2;

    padding-top: 74px;
    padding-bottom: 68px;
}

.topic-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    margin-bottom: 54px;

    color: rgba(255, 255, 255, 0.78);

    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
}

.topic-breadcrumb a {
    color: rgba(255, 255, 255, 0.86);
}

.topic-breadcrumb a:hover,
.topic-breadcrumb a:focus-visible {
    color: var(--color-white);
}

.topic-detail-kicker {
    margin-bottom: 10px;

    color: var(--color-brand-yellow);

    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.topic-detail-hero h1 {
    max-width: 820px;

    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 600;
    line-height: 1.15;
}

.topic-detail-description {
    max-width: 740px;
    margin-top: 24px;

    color: rgba(255, 255, 255, 0.89);

    font-size: var(--text-md);
    line-height: var(--leading-reading);
}

.topic-detail-count {
    display: inline-flex;
    align-items: center;

    margin-top: 30px;
    padding: 8px 15px;

    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);

    color: var(--color-white);

    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.5;
}


/* =========================================================
   03. Topic Articles
========================================================= */

.topic-articles-section {
    padding: 74px 0 102px;

    background: var(--color-light);
}

.topic-articles-heading {
    margin-bottom: 36px;
}

.topic-articles-heading h2 {
    margin-top: 8px;

    color: var(--color-primary-blue);

    font-size: var(--text-3xl);
    line-height: var(--leading-heading);
}


/* =========================================================
   04. Empty and Not Found States
========================================================= */

.topics-empty-state {
    padding: 66px 30px;

    background: var(--color-white);
    border: 1px solid var(--color-border);

    text-align: center;
}

.topics-empty-state h2 {
    color: var(--color-primary-blue);

    font-size: var(--text-2xl);
    line-height: var(--leading-heading);
}

.topics-empty-state p {
    max-width: 600px;
    margin: 14px auto 0;

    color: var(--color-text-muted);

    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.topic-not-found-section {
    padding: 74px 0;
}

.topic-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 24px;

    background: var(--color-primary-blue);

    color: var(--color-white);

    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;

    transition:
        background var(--transition-base),
        transform var(--transition-base);
}

.topic-back-link:hover,
.topic-back-link:focus-visible {
    transform: translateY(-1px);

    background: var(--color-accent-red);
}


/* =========================================================
   05. Responsive
========================================================= */

@media (max-width: 900px) {
    .topics-overview-grid {
        grid-template-columns: 1fr;
    }

    .topic-detail-hero {
        min-height: 430px;
    }

    .topic-detail-overlay {
        background:
            linear-gradient(90deg,
                rgba(0, 20, 68, 0.97),
                rgba(0, 30, 98, 0.74));
    }
}


@media (max-width: 640px) {

    .topics-overview-section,
    .topic-articles-section {
        padding: 54px 0 74px;
    }

    .topic-overview-overlay {
        right: 20px;
        bottom: 20px;
        left: 20px;
    }

    .topic-overview-body {
        padding: 24px;
    }

    .topic-overview-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .topic-detail-hero {
        min-height: 400px;
    }

    .topic-detail-hero-content {
        padding-top: 56px;
        padding-bottom: 50px;
    }

    .topic-breadcrumb {
        margin-bottom: 38px;
    }

    .topic-detail-description {
        font-size: var(--text-base);
        line-height: var(--leading-relaxed);
    }

    .topics-empty-state {
        padding: 52px 22px;
    }
}


/* =========================================================
   06. Large Text Compatibility
========================================================= */

html[data-text-size="large"] .topics-overview-grid,
html[data-text-size="xlarge"] .topics-overview-grid {
    grid-template-columns: 1fr;
}

html[data-text-size="large"] .topic-detail-hero,
html[data-text-size="xlarge"] .topic-detail-hero {
    min-height: 520px;
}

html[data-text-size="large"] .topic-overview-body,
html[data-text-size="xlarge"] .topic-overview-body {
    padding: 30px;
}

@media (max-width: 640px) {

    html[data-text-size="large"] .topic-detail-hero,
    html[data-text-size="xlarge"] .topic-detail-hero {
        min-height: 430px;
    }
}
/* =========================================================
   07. Topic Detail Article Card Action
   Keep the arrow comfortably inside the card and align it
   with the content rhythm used throughout the archive cards.
========================================================= */

.topic-detail-page .archive-arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-top: auto;
    padding: 0 20px 22px;

    color: var(--color-primary-blue);
    font-size: 0.95rem;
    line-height: 1;
}

.topic-detail-page .archive-arrow i {
    transition: transform var(--transition-base);
}

.topic-detail-page .archive-article:hover .archive-arrow i,
.topic-detail-page .archive-article:focus-within .archive-arrow i {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .topic-detail-page .archive-arrow {
        padding: 0 18px 20px;
    }
}
/* =========================================================
   responsive.css
   Cross-page responsive refinements
   2026-09-18

   Loaded after page-specific styles so that tablet/mobile
   behavior can be kept consistent without duplicating fixes
   across every module stylesheet.
========================================================= */

/* =========================================================
   01. Tablet landscape / compact desktop
========================================================= */

/*
 * The full desktop header is slightly too dense around
 * iPad-landscape widths, especially after switching language.
 * Move to the menu treatment before links begin to crowd.
 */
@media (max-width: 1120px) {
    .header-container {
        width: min(calc(100% - 32px), 1440px);
    }

    .header-inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        justify-content: space-between;
        gap: 14px;
        min-height: 72px;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .language-switcher {
        order: 2;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        z-index: 1001;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        max-height: calc(100vh - 96px);
        overflow-y: auto;
        padding: 10px;

        background: var(--color-white);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        color: var(--color-dark);
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    }

    .site-nav.active {
        display: flex;
    }

    .site-nav a {
        justify-content: flex-start;
        min-height: 48px;
        padding: 13px 14px;
        border-radius: 8px;
        font-size: var(--text-sm);
        white-space: normal;
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible,
    .site-nav a.active,
    .site-nav a[aria-current="page"] {
        background: var(--color-light);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Two participant cards are too narrow at iPad landscape. */
    .video-participants-grid {
        grid-template-columns: 1fr;
    }
}

/*
 * At tablet-landscape widths, sidebars reduce the readable
 * column too much. Put facts below the main content instead.
 */
@media (max-width: 1024px) {
    .podcast-content-layout,
    .video-content-layout {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .podcast-sidebar,
    .video-sidebar {
        position: static;
        top: auto;
    }

    .podcast-facts,
    .video-facts {
        max-width: none;
    }

    .participant-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   02. Tablet portrait
========================================================= */

@media (max-width: 900px) {
    /*
     * Keep filter controls orderly on tablets:
     * keyword = full row, topic/sort = row, actions = row.
     */
    .podcast-filter-form,
    .video-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .podcast-filter-form > label:first-child,
    .video-filter-form > label:first-child {
        grid-column: 1 / -1;
    }

    .podcast-filter-form button,
    .podcast-filter-form > a,
    .video-filter-form button,
    .video-filter-form > a {
        width: 100%;
    }

    /* Avoid awkward alignment when the result count wraps. */
    .podcast-list-head,
    .video-list-head {
        align-items: flex-start;
    }
}

/* =========================================================
   03. Mobile
========================================================= */

@media (max-width: 640px) {
    /* Keep page-level headings comfortable on narrow screens. */
    .subpage-header,
    .article-detail-header,
    .podcast-detail-header,
    .video-detail-header {
        overflow-wrap: anywhere;
    }

    /* Full-width filter controls on phones. */
    .podcast-filter-form,
    .video-filter-form {
        grid-template-columns: 1fr;
    }

    .podcast-filter-form > label:first-child,
    .video-filter-form > label:first-child {
        grid-column: auto;
    }

    /* Horizontal data tables remain usable with touch scrolling. */
    .article-table-scroll {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-inline: contain;
    }

    /* Prevent long metadata/URLs from forcing page overflow. */
    .article-content,
    .podcast-main-column,
    .video-main-column,
    .participant-card,
    .video-person-card,
    .footer-grid {
        min-width: 0;
    }

    .article-content a,
    .podcast-main-column a,
    .video-main-column a,
    .participant-card,
    .video-person-card {
        overflow-wrap: anywhere;
    }
}

/* =========================================================
   04. Small mobile
========================================================= */

@media (max-width: 480px) {
    /* Match share tools across Article / Podcast / Video. */
    .article-tools-actions,
    .media-share-actions {
        grid-template-columns: 1fr;
    }

    .article-tool-button,
    .media-share-button {
        width: 100%;
    }
}

@media (max-width: 360px) {
    /* Keep logo + language switcher + menu on one line. */
    .header-container {
        width: min(calc(100% - 20px), 1440px);
    }

    .header-inner {
        gap: 6px;
    }

    .site-logo-image {
        width: 128px;
    }

    .language-switcher {
        gap: 2px;
        padding: 2px;
    }

    .language-switcher a {
        min-width: 27px;
        min-height: 28px;
        padding: 0 4px;
        font-size: 0.68rem;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
    }

    .site-nav {
        right: 10px;
        left: 10px;
    }
}

/* =========================================================
   05. Mobile / Tablet stabilization v2
   2026-09-18

   Goals:
   - Keep the entire footer visible on iPad / mobile.
   - Keep Back to Top accessible on touch devices.
   - Avoid partially empty carousel pages on tablets.
   - Give homepage cards enough width around iPad landscape.
   - Prevent horizontal clipping caused by long content.
========================================================= */

html,
body {
    max-width: 100%;
}

@media (max-width: 1120px) {
    html,
    body {
        overflow-x: clip;
    }

    /* -----------------------------------------------------
       Home: use two-column content at iPad landscape widths.
       This prevents narrow three-column cards at ~1024px.
    ----------------------------------------------------- */
    .article-slide-card {
        flex-basis: calc((100% - 18px) / 2);
    }

    .latest-media-grid,
    .media-card-grid,
    .topic-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* -----------------------------------------------------
       Footer: explicitly keep every navigation block visible.
    ----------------------------------------------------- */
    .site-footer {
        overflow: visible;
        padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer > .container {
        width: min(calc(100% - 40px), var(--max-width));
    }

    .footer-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 34px 40px !important;
        width: 100%;
        overflow: visible;
    }

    .footer-brand {
        display: block !important;
        grid-column: 1 / -1 !important;
        width: 100%;
        max-width: 680px;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-column,
    .footer-languages {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        min-width: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-languages {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        display: block !important;
        width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-description,
    .footer-language-text,
    .footer-disclaimer,
    .footer-copyright {
        overflow-wrap: anywhere;
    }

    /* -----------------------------------------------------
       Back to Top
       Touch devices should never lose the control because of
       browser scroll-event quirks or a cached script.
    ----------------------------------------------------- */
    .back-to-top {
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        z-index: 2000;

        width: 58px;
        min-height: 58px;
        padding: 7px 6px;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .back-to-top:hover,
    .back-to-top:focus-visible {
        transform: translateY(-2px) !important;
    }
}

@media (max-width: 820px) {
    .site-footer > .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 30px 28px !important;
    }

    .footer-brand,
    .footer-languages {
        grid-column: 1 / -1 !important;
    }

    .footer-column h3 {
        margin-bottom: 14px;
    }

    .footer-bottom {
        margin-top: 30px;
    }

    /* Detail-page sidebars are more readable below the content. */
    .podcast-content-layout,
    .video-content-layout {
        grid-template-columns: 1fr !important;
        gap: 34px !important;
    }

    .podcast-sidebar,
    .video-sidebar {
        position: static !important;
    }
}

@media (max-width: 700px) {
    .latest-media-grid,
    .media-card-grid,
    .topic-tile-grid {
        grid-template-columns: 1fr;
    }

    .article-slide-card {
        flex-basis: 100%;
    }

    .media-heading,
    .compact-section-head,
    .latest-media-head {
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .site-footer {
        margin-top: 44px;
        padding-top: 42px;
    }

    .site-footer > .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .footer-brand,
    .footer-languages {
        grid-column: auto !important;
    }

    .footer-logo-image {
        width: min(260px, 100%);
    }

    .footer-column {
        padding-top: 2px;
    }

    .footer-language-list {
        margin-top: 14px;
    }

    .footer-bottom {
        margin-top: 28px;
        padding-top: 18px;
    }

    /* Compact floating control on phones to avoid covering content. */
    .back-to-top {
        right: max(12px, env(safe-area-inset-right, 0px));
        bottom: max(12px, env(safe-area-inset-bottom, 0px));

        width: 48px;
        height: 48px;
        min-height: 48px;
        padding: 0;
        border-radius: 50%;
    }

    .back-to-top-icon {
        width: 22px;
        height: 22px;
        font-size: 1rem;
    }

    .back-to-top-label {
        display: none;
    }

    /* Keep long titles and controls inside the viewport. */
    .article-slide-card,
    .latest-media-card,
    .media-card,
    .topic-tile,
    .podcast-card,
    .video-card,
    .participant-card,
    .video-person-card {
        max-width: 100%;
        min-width: 0;
    }

    .article-slide-card h3,
    .latest-media-card h3,
    .media-card-body h3,
    .podcast-card h3,
    .video-card h3,
    .video-detail-header h1,
    .podcast-detail-header h1,
    .article-title-block h1 {
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

@media (max-width: 420px) {
    .site-footer > .container {
        width: min(calc(100% - 24px), var(--max-width));
    }

    .footer-logo-image {
        width: min(225px, 100%);
    }

    .footer-description {
        font-size: 0.84rem;
        line-height: 1.85;
    }

    .back-to-top {
        width: 46px;
        height: 46px;
        min-height: 46px;
    }
}

/* =========================================================
   06. Footer stabilization v3
   2026-09-18

   Keep the complete footer compact and fully discoverable on
   iPad/tablet widths instead of stacking the brand as a full
   row and pushing Languages / legal copy far below the fold.
========================================================= */

/* iPad landscape / compact desktop: keep all 4 footer blocks in one row. */
@media (min-width: 821px) and (max-width: 1120px) {
    .site-footer {
        margin-top: 52px;
        padding-top: 40px;
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer > .container {
        width: min(calc(100% - 36px), var(--max-width));
    }

    .footer-grid {
        display: grid !important;
        grid-template-columns:
            minmax(230px, 1.45fr)
            minmax(120px, 0.75fr)
            minmax(120px, 0.75fr)
            minmax(170px, 1fr) !important;
        align-items: start;
        gap: 24px !important;
    }

    .footer-brand,
    .footer-languages {
        grid-column: auto !important;
        max-width: none;
    }

    .footer-logo {
        margin-bottom: 14px;
    }

    .footer-logo-image {
        width: min(260px, 100%);
    }

    .footer-description {
        max-width: 310px;
        font-size: 0.82rem;
        line-height: 1.75;
    }

    .footer-social {
        margin-top: 18px;
    }

    .footer-social-title {
        margin-bottom: 9px;
        font-size: 0.74rem;
    }

    .footer-social-link {
        width: 36px;
        height: 36px;
    }

    .footer-column h3 {
        margin-bottom: 12px;
        padding-bottom: 8px;
        font-size: 0.9rem;
    }

    .footer-column > a {
        min-height: 30px;
        margin-bottom: 2px;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .footer-language-text {
        max-width: 210px;
        font-size: 0.78rem;
        line-height: 1.6;
    }

    .footer-language-list {
        gap: 6px;
        margin-top: 12px;
    }

    .footer-language-list a {
        min-height: 30px;
        padding: 4px 9px;
        font-size: 0.7rem;
    }

    .footer-bottom {
        margin-top: 22px;
        padding-top: 14px;
    }

    .footer-disclaimer {
        margin-bottom: 10px;
        padding-inline: 0;
        font-size: 0.68rem;
        line-height: 1.65;
    }

    .footer-copyright {
        font-size: 0.72rem;
        line-height: 1.55;
    }
}

/* iPad portrait / small tablets: compact 2 x 2 grid, no full-width brand row. */
@media (min-width: 641px) and (max-width: 820px) {
    .site-footer {
        margin-top: 48px;
        padding: 40px 0 calc(20px + env(safe-area-inset-bottom, 0px));
    }

    .site-footer > .container {
        width: min(calc(100% - 32px), var(--max-width));
    }

    .footer-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
        gap: 28px 34px !important;
    }

    .footer-brand,
    .footer-languages {
        grid-column: auto !important;
        max-width: none;
    }

    .footer-logo {
        margin-bottom: 14px;
    }

    .footer-logo-image {
        width: min(245px, 100%);
    }

    .footer-description {
        max-width: 330px;
        font-size: 0.82rem;
        line-height: 1.75;
    }

    .footer-social {
        margin-top: 18px;
    }

    .footer-column h3 {
        margin-bottom: 12px;
        padding-bottom: 8px;
        font-size: 0.92rem;
    }

    .footer-column > a {
        min-height: 30px;
        margin-bottom: 2px;
        font-size: 0.82rem;
    }

    .footer-language-text {
        max-width: 260px;
        font-size: 0.8rem;
        line-height: 1.65;
    }

    .footer-language-list {
        margin-top: 12px;
    }

    .footer-bottom {
        margin-top: 24px;
        padding-top: 14px;
    }

    .footer-disclaimer {
        margin-bottom: 10px;
        font-size: 0.68rem;
        line-height: 1.65;
    }

    .footer-copyright {
        font-size: 0.72rem;
    }
}

/* =========================================================
   07. iPad / Tablet Footer Hard Fix v5
   2026-09-18
   Safari-safe: Flexbox + normal document flow.
========================================================= */
@media (min-width: 641px) and (max-width: 1180px) {
    html, body { overflow-x: hidden !important; }

    .site-footer {
        position: relative !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-top: 48px !important;
        padding: 40px 0 calc(22px + env(safe-area-inset-bottom, 0px)) !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        contain: none !important;
        content-visibility: visible !important;
    }

    .site-footer > .container {
        position: relative !important;
        display: block !important;
        width: min(calc(100% - 40px), var(--max-width)) !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-inline: auto !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        gap: 28px 30px !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .footer-grid > .footer-brand,
    .footer-grid > .footer-column,
    .footer-grid > .footer-languages {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        grid-column: auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .footer-logo-image { width: min(250px, 100%) !important; height: auto !important; }
    .footer-description { max-width: 340px !important; font-size: .82rem !important; line-height: 1.75 !important; }
    .footer-social { margin-top: 18px !important; }
    .footer-social-link { width: 36px !important; height: 36px !important; }
    .footer-column h3 { margin-bottom: 12px !important; padding-bottom: 8px !important; font-size: .9rem !important; }
    .footer-column > a { min-height: 30px !important; margin-bottom: 2px !important; font-size: .82rem !important; line-height: 1.55 !important; }
    .footer-language-text { max-width: 230px !important; font-size: .78rem !important; line-height: 1.6 !important; }
    .footer-language-list { gap: 6px !important; margin-top: 12px !important; }
    .footer-language-list a { min-height: 30px !important; padding: 4px 9px !important; font-size: .7rem !important; }

    .footer-bottom {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin-top: 26px !important;
        padding-top: 16px !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .footer-disclaimer,
    .footer-copyright {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        visibility: visible !important;
        opacity: 1 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .footer-disclaimer { margin: 0 auto 10px !important; padding-inline: 0 !important; font-size: .68rem !important; line-height: 1.65 !important; }
    .footer-copyright { margin: 0 !important; font-size: .72rem !important; line-height: 1.55 !important; }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .footer-grid > .footer-brand { flex: 1 1 31% !important; }
    .footer-grid > .footer-column:not(.footer-languages) { flex: 1 1 15% !important; }
    .footer-grid > .footer-languages { flex: 1 1 22% !important; }
}

@media (min-width: 641px) and (max-width: 900px) {
    .footer-grid > .footer-brand { flex: 0 0 100% !important; }
    .footer-grid > .footer-column:not(.footer-languages),
    .footer-grid > .footer-languages { flex: 1 1 calc((100% - 60px) / 3) !important; }
    .footer-description { max-width: 520px !important; }
    .footer-language-text { max-width: 100% !important; }
}
/* =========================================================
   Chinese Typography — Unified, refined heading treatment
   Desktop / tablet / mobile.

   Goal:
   - Keep Simplified Chinese glyphs in a Chinese sans/Heiti family.
   - Keep page/section titles consistent across the site.
   - Avoid the overly heavy appearance caused by inherited 600/700 weights.
   - Do not alter normal body copy or navigation weight.
========================================================= */

/* Chinese headings use the same Simplified Chinese family everywhere. */
html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] h4,
html[lang="zh"] h5,
html[lang="zh"] h6 {
    font-family: var(--font-zh-sans) !important;
}

/* ---------------------------------------------------------
   Major page titles
   A medium/regular visual weight is intentionally used here.
   500 falls back to the regular face on systems without a
   dedicated Medium face, preventing an artificially heavy title.
--------------------------------------------------------- */
html[lang="zh"] .editorial-intro h1,
html[lang="zh"] .subpage-header h1,
html[lang="zh"] .about-hero h1,
html[lang="zh"] .article-title-block h1,
html[lang="zh"] .topic-detail-hero h1,
html[lang="zh"] .podcast-detail-header h1,
html[lang="zh"] .video-detail-header h1 {
    font-family: var(--font-zh-serif) !important;
    font-weight: 500 !important;
    font-synthesis: none;
}

/* ---------------------------------------------------------
   High-level section titles
   These are the visible title/sub-title areas users compare
   across pages (Project Members, inquiry sections, archives,
   podcast/video lists, etc.).
--------------------------------------------------------- */
html[lang="zh"] .about-section-heading h2,
html[lang="zh"] .contact-section-heading h2,
html[lang="zh"] .contact-form-heading h2,
html[lang="zh"] .archive-heading h2,
html[lang="zh"] .topic-articles-heading h2,
html[lang="zh"] .podcast-series-intro h2,
html[lang="zh"] .podcast-list-head h2,
html[lang="zh"] .video-list-head h2,
html[lang="zh"] .home-about-intro h2,
html[lang="zh"] .compact-section-head h2,
html[lang="zh"] .researchers-strip h2,
html[lang="zh"] .media-heading h2,
html[lang="zh"] .article-tools-heading h2,
html[lang="zh"] .related-heading h2,
html[lang="zh"] .media-share-heading h2,
html[lang="zh"] .podcast-participants h2,
html[lang="zh"] .podcast-related h2,
html[lang="zh"] .video-participants h2 {
    font-family: var(--font-zh-sans) !important;
    font-weight: 500 !important;
    font-synthesis: none;
}

/* ---------------------------------------------------------
   Lead/subheader text paired directly with a major title.
   This removes the extra-bold homepage lead while preserving
   normal paragraph/body typography elsewhere.
--------------------------------------------------------- */
html[lang="zh"] .hero-lead,
html[lang="zh"] .subpage-lead,
html[lang="zh"] .article-summary,
html[lang="zh"] .topic-detail-description,
html[lang="zh"] .podcast-detail-summary,
html[lang="zh"] .video-detail-summary,
html[lang="zh"] .about-page-nav-text {
    font-family: var(--font-zh-sans) !important;
    font-weight: 500 !important;
    font-synthesis: none;
}
