/* ============================================================
   ICDM 2029 — Osaka, Japan
   Shared stylesheet (landing page + committee page)

   Rebranding is centralised in the :root block below.
   No logo image is used anywhere; the brand mark is pure CSS
   type (see .brand). When an official logo becomes available,
   see the note in index.html above the .brand markup.
   ============================================================ */

/* ------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------ */
:root {
    /* Brand palette */
    --navy-deep: #16305e;
    --navy: #1d4489;
    --navy-light: #2d5bb8;
    --accent: #d8a44a;          /* warm gold — deadlines, highlights */
    --accent-strong: #c0491f;   /* "new"/alert badges */

    /* Neutrals */
    --ink: #2f3338;
    --ink-soft: #5f666e;
    --ink-faint: #8b9298;
    --paper: #ffffff;
    --paper-alt: #f6f7f9;
    --rule: #e2e5ea;
    --tint: #eef2fa;            /* pale brand wash */

    /* Type */
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 "Hiragino Sans", "Hiragino Kaku Gothic ProN",
                 "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --wrap: 1200px;
    --wrap-wide: 1400px;
    --header-h: 80px;
    --radius: 10px;
    --shadow-sm: 0 2px 10px rgba(22, 48, 94, 0.08);
    --shadow-md: 0 8px 25px rgba(29, 68, 137, 0.18);
}

/* ------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper-alt);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--navy);
}

.container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 20px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--paper);
    color: var(--navy);
    padding: 12px 20px;
    font-weight: 600;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   Header & navigation
   ------------------------------------------------------------ */
.header {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--navy);
}

.header-container {
    max-width: var(--wrap-wide);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: var(--header-h);
    position: relative;
}

/* --- Pure-CSS brand mark (no image asset) --- */
.brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
    transition: opacity 0.25s;
}

.brand:hover {
    opacity: 0.88;
}

.brand-title {
    display: block;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.05;
}

.brand-title .brand-year {
    font-weight: 400;
    letter-spacing: 2px;
}

.brand-sub {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #b9cdf0;
    margin-top: 4px;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 4px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.25s, transform 0.25s;
}

.nav-menu > li > a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-menu > li > a[aria-current="page"] {
    background-color: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 -3px 0 var(--accent);
}

/* Dropdown caret */
.nav-menu > li.has-dropdown > a::after {
    content: "\25BE";
    font-size: 11px;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.25s;
}

.nav-menu > li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    max-width: 320px;
    background: var(--paper);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.16);
    border: 1px solid var(--rule);
    border-radius: 6px;
    list-style: none;
    padding: 8px 0;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 1000;
}

.nav-menu > li:last-child .dropdown-menu,
.nav-menu > li:nth-last-child(2) .dropdown-menu {
    left: auto;
    right: 0;
}

.nav-menu > li.has-dropdown:hover .dropdown-menu,
.nav-menu > li.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s, padding-left 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--tint);
    color: var(--navy);
    padding-left: 25px;
}

/* Not-yet-built pages: visibly parked rather than a dead link.
   To activate a page, drop the .is-tba class and set a real href. */
.nav-menu .is-tba > a,
.dropdown-menu .is-tba > a {
    cursor: default;
}

.nav-menu > .is-tba > a {
    color: #a8bde0;
}

.nav-menu > .is-tba > a:hover {
    background: transparent;
    transform: none;
}

.tba-tag {
    display: inline-block;
    margin-left: 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 2px 6px;
    border: 1px solid currentColor;
    border-radius: 3px;
    vertical-align: 2px;
    opacity: 0.85;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------
   No photography is used yet. Each .hero-slide currently renders
   a layered gradient plus the decorative Osaka skyline in
   .hero-skyline. To switch to real photos, give a slide
   style="background-image:url(../img/osaka1.jpg)" and add the
   .has-photo class — the gradient then becomes an overlay only.
   The carousel script activates automatically once more than one
   .hero-slide is present.
   ------------------------------------------------------------ */
.hero {
    position: relative;
    height: 460px;
    overflow: hidden;
    background: var(--navy-deep);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

/* Placeholder atmosphere: deep navy wash + soft light bloom */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 78% 8%, rgba(216, 164, 74, 0.30) 0%, rgba(216, 164, 74, 0) 55%),
        radial-gradient(90% 70% at 12% 100%, rgba(45, 91, 184, 0.55) 0%, rgba(45, 91, 184, 0) 60%),
        linear-gradient(160deg, #10233f 0%, #1b3d76 48%, #22539c 100%);
}

.hero-slide.has-photo::before {
    background: linear-gradient(160deg, rgba(16, 35, 63, 0.72) 0%, rgba(27, 61, 118, 0.55) 100%);
}

/* Decorative Osaka skyline silhouette (inline SVG, no asset file) */
.hero-skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    display: block;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    max-width: 920px;
    padding: 0 20px;
    width: 100%;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 21px;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 22px;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 20px;
    font-weight: 600;
}

.hero-meta .sep {
    opacity: 0.45;
    font-weight: 300;
}

.hero-meta .hero-location {
    color: #dbe8ff;
}

.hero-meta .hero-date {
    color: #fff;
}

.hero-meta .hero-date .tba {
    font-weight: 500;
    color: var(--accent);
}

.hero-controls {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 20;
}

.hero-controls[hidden] {
    display: none;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    backdrop-filter: blur(4px);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.85);
    transform: scale(1.08);
}

.hero-indicators {
    display: flex;
    gap: 10px;
}

.hero-indicators button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, width 0.3s, border-radius 0.3s;
}

.hero-indicators button.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* ------------------------------------------------------------
   At-a-glance strip
   ------------------------------------------------------------ */
.glance {
    background: var(--navy-deep);
    color: #fff;
    border-bottom: 4px solid var(--accent);
}

.glance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.glance-item {
    padding: 26px 20px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.glance-item:first-child {
    border-left: none;
}

.glance-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9fb6dd;
    margin-bottom: 8px;
}

.glance-value {
    display: block;
    font-size: 19px;
    font-weight: 600;
}

.glance-value .tba {
    color: var(--accent);
    font-weight: 500;
}

/* ------------------------------------------------------------
   Generic section furniture
   ------------------------------------------------------------ */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--navy-deep));
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: var(--ink-soft);
    margin-bottom: 40px;
    font-style: italic;
}

/* ------------------------------------------------------------
   Welcome
   ------------------------------------------------------------ */
.welcome-section {
    background: var(--paper);
    padding: 80px 0;
    border-bottom: 1px solid var(--rule);
}

.welcome-content {
    font-size: 17px;
    line-height: 1.85;
    color: #444;
}

.welcome-content p + p {
    margin-top: 20px;
}

.callout {
    margin-top: 30px;
    background: var(--tint);
    border-left: 4px solid var(--navy);
    border-radius: 0 8px 8px 0;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 15px;
    line-height: 1.7;
}

.callout-left {
    flex: 1 1 420px;
    min-width: 0;
}

.callout-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    background: var(--accent-strong);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    margin-right: 9px;
    vertical-align: 1px;
}

.callout-note {
    font-size: 14px;
    color: var(--ink-soft);
    white-space: nowrap;
}

.btn {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.22s;
}

.btn:hover {
    background: var(--navy-deep);
    color: #fff;
}

.btn.is-disabled {
    background: var(--rule);
    color: var(--ink-faint);
    cursor: default;
    pointer-events: none;
}

/* ------------------------------------------------------------
   Topics of interest
   ------------------------------------------------------------ */
.topics-section {
    background: var(--paper-alt);
    padding: 80px 0;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.topic-item {
    background: var(--paper);
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.topic-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.topic-item:hover::before {
    transform: scaleX(1);
}

.topic-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.topic-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 12px;
}

.topic-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Host city
   ------------------------------------------------------------ */
.hostcity-section {
    background: var(--paper);
    padding: 80px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.hostcity-intro {
    font-size: 16px;
    line-height: 1.85;
    color: #444;
    margin-bottom: 34px;
}

.hostcity-intro p + p {
    margin-top: 16px;
}

.hostcity-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 34px;
}

.hostcity-card {
    background: var(--paper-alt);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 22px;
}

.hostcity-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.hostcity-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-soft);
}

/* Media slot — holds the future Osaka video/photo reel.
   Replace .media-placeholder with a <video> or <img> when assets land. */
.media-slot {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(160deg, #10233f 0%, #1b3d76 55%, #22539c 100%);
}

/* While empty, the slot sits shorter so the page does not carry a large
   blank panel. Drop .is-placeholder when real media is added and it
   returns to 16:9. */
.media-slot.is-placeholder {
    aspect-ratio: 21 / 9;
}

.media-slot video,
.media-slot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: #cfdcf3;
    padding: 24px;
}

.media-placeholder strong {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.media-placeholder span {
    font-size: 13px;
    max-width: 460px;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   News + sidebar
   ------------------------------------------------------------ */
.news-section {
    background: var(--paper-alt);
    padding: 80px 0;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 40px;
    margin-top: 40px;
    align-items: start;
}

.main-column,
.sidebar-column {
    min-width: 0;
}

.column-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy);
}

.news-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 18px 20px;
    background: var(--paper);
    border-radius: 8px;
    border-left: 4px solid var(--navy);
    transition: background 0.3s, transform 0.3s;
}

.news-item:hover {
    background: var(--tint);
    transform: translateX(5px);
}

.news-date {
    min-width: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    padding-top: 2px;
}

.news-body {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.news-body p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-soft);
}

.sidebar-box {
    background: var(--paper);
    border: 2px solid var(--rule);
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.sidebar-box + .sidebar-box {
    margin-top: 24px;
    position: static;
}

.box-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--navy);
}

.dates-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dates-list li {
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

.dates-list li::before {
    content: "\25B8";
    position: absolute;
    left: 0;
    color: var(--navy);
    font-weight: bold;
}

.dates-list .date-label {
    display: block;
    color: var(--ink);
}

.dates-list .date-value {
    display: block;
    font-weight: 600;
    color: var(--navy);
}

.dates-list .date-value.tba {
    color: var(--ink-faint);
    font-weight: 500;
    font-style: italic;
}

.sidebar-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--rule);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-faint);
}

.contact-lines {
    font-size: 14px;
    line-height: 1.9;
    color: var(--ink);
}

.contact-lines .tba {
    color: var(--ink-faint);
    font-style: italic;
}

/* ------------------------------------------------------------
   Committee page
   ------------------------------------------------------------ */
.page-head {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: #fff;
    padding: 54px 0;
    text-align: center;
}

.page-head h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.page-head p {
    font-size: 16px;
    color: #c6d7f2;
    max-width: 720px;
    margin: 0 auto;
}

.committee-section {
    background: var(--paper);
    padding: 70px 0;
}

.committee-block {
    margin-bottom: 60px;
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.committee-block:last-child {
    margin-bottom: 0;
}

.committee-block-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--navy);
}

.committee-block-note {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ink-soft);
    margin-bottom: 36px;
}

.committee-category {
    margin-bottom: 46px;
}

.committee-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 26px;
    padding-left: 15px;
    border-left: 4px solid var(--navy);
}

.committee-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--paper-alt);
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.member-item:hover {
    background: var(--tint);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(29, 68, 137, 0.12);
}

.member-photo {
    flex-shrink: 0;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--navy);
    background: var(--paper);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Initials avatar — used until real headshots are supplied.
   Put the initials in the element's text content:
   <div class="member-photo is-initials">CP</div> */
.member-photo.is-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
    user-select: none;
}

.member-photo.is-empty {
    background: repeating-linear-gradient(45deg,
        #eef1f6 0 8px, #e3e8f0 8px 16px);
    border-style: dashed;
    border-color: var(--ink-faint);
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

/* Names link to the member's personal homepage where one exists.
   Kept visually identical to an unlinked name until hover, so the roster
   doesn't read as a wall of blue links. */
.member-name a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.25s ease;
}

.member-item:hover .member-name a,
.member-name a:hover,
.member-name a:focus-visible {
    background-size: 100% 1px;
}

/* Small outbound arrow, hidden from screen readers */
.member-name a::after {
    content: "\2197";
    display: inline-block;
    margin-left: 5px;
    font-size: 0.72em;
    font-weight: 400;
    color: var(--ink-faint);
    transition: transform 0.25s ease, color 0.25s ease;
}

.member-item:hover .member-name a::after {
    transform: translate(1px, -1px);
    color: var(--navy-light);
}

.member-role {
    font-size: 13px;
    font-style: italic;
    color: var(--ink-soft);
    margin-bottom: 4px;
}

.member-affiliation {
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
}

/* Compact list variant — for large bodies such as Program Committee */
.member-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}

.member-list li {
    padding: 12px 15px;
    background: var(--paper-alt);
    border-radius: 6px;
    border-left: 3px solid var(--navy);
    font-size: 15px;
    line-height: 1.6;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.member-list li:hover {
    background: var(--tint);
    transform: translateX(5px);
    border-left-color: var(--navy-light);
}

.member-list .member-name {
    display: inline;
    font-size: 15px;
    margin: 0;
}

.member-list .member-affiliation {
    display: inline;
    font-size: 15px;
    color: var(--ink-soft);
}

/* Placeholder panel shown where a roster is not yet public */
.roster-pending {
    background: var(--paper-alt);
    border: 1px dashed var(--ink-faint);
    border-radius: var(--radius);
    padding: 34px 28px;
    text-align: center;
}

.roster-pending strong {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.roster-pending p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink-soft);
    max-width: 620px;
    margin: 0 auto;
}

/* Jump links at the top of the committee page */
.jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 48px;
}

.jump-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--rule);
    border-radius: 40px;
    background: var(--paper-alt);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.jump-nav a:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
    background: var(--navy-deep);
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer .brand-title {
    font-size: 26px;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.8;
    color: #b9cdf0;
    margin-top: 14px;
    max-width: 280px;
}

.footer-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #e3edfc;
    margin-bottom: 15px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #c6d7f2;
}

.footer-links {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.footer-links a {
    color: #c6d7f2;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links .is-tba {
    color: #8ba4cd;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #9fb6dd;
    font-size: 13px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
    .topics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-box {
        position: static;
    }

    .glance-value {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 14px 20px;
    }

    .brand-title {
        font-size: 25px;
        letter-spacing: 2px;
    }

    .brand-sub {
        font-size: 11px;
        letter-spacing: 1.8px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-deep);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .main-nav.mobile-open {
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-menu > li {
        width: 100%;
        position: static;
    }

    .nav-menu > li > a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0;
    }

    .nav-menu > li.has-dropdown > a::after {
        content: "\002B";
        font-size: 15px;
        float: right;
    }

    .nav-menu > li.has-dropdown.menu-open > a::after {
        content: "\2212";
        transform: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        min-width: 0;
        max-width: none;
        width: 100%;
        background: rgba(0, 0, 0, 0.28);
        border: none;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        padding: 8px 0;
    }

    .nav-menu > li.has-dropdown.menu-open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        color: #dce7f8;
        padding: 12px 20px 12px 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        padding-left: 40px;
    }

    .hero {
        height: 420px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-meta {
        font-size: 17px;
        gap: 8px;
    }

    .hero-meta .sep {
        display: none;
    }

    .hero-meta > span {
        flex: 0 0 100%;
    }

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

    .glance-item {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding: 20px;
    }

    .glance-item:first-child {
        border-top: none;
    }

    .section-title {
        font-size: 28px;
    }

    .page-head h1 {
        font-size: 30px;
    }

    .welcome-section,
    .topics-section,
    .hostcity-section,
    .news-section,
    .committee-section {
        padding: 54px 0;
    }

    .news-item {
        flex-direction: column;
        gap: 8px;
    }

    .news-date {
        min-width: 0;
    }

    .committee-members {
        grid-template-columns: 1fr;
    }

    .member-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

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

@media (max-width: 480px) {
    .topics-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero {
        height: 380px;
    }

    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 24px;
    }

    .committee-block-title {
        font-size: 22px;
    }

    .category-title {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ------------------------------------------------------------
   Print
   ------------------------------------------------------------ */
@media print {
    .header,
    .hero,
    .glance,
    .footer,
    .jump-nav {
        display: none;
    }

    body {
        background: #fff;
    }

    .member-item,
    .news-item {
        break-inside: avoid;
    }
}
