/* CyberCon 2026: retain the conference banner, information hierarchy and legacy footer. */
:root {
  --blue: #23669c;
  --blue-dark: #184f80;
  --ink: #23364b;
  --muted: #546577;
  --line: #dce5ef;
  --paper: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f1f4f8; color: var(--ink); font-family: 'Segoe UI', Arial, 'Microsoft YaHei', sans-serif; font-size: 16px; line-height: 1.6; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #143f71; }
img { display: block; height: auto; max-width: 100%; }
:focus-visible { outline: 3px solid #087db3; outline-offset: 5px; }
::selection { background: #cce8f9; color: #173650; }
.site-frame { max-width: 1200px; width: 100%; margin: 0 auto; background: var(--paper); box-shadow: 0 0 32px rgba(29,56,84,.06); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; background: white; padding: 8px 16px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* All public pages share a compact horizontal conference banner. */
.conference-banner { min-height: 200px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; color: white; background-color: #174b78; background-image: linear-gradient(rgba(4,26,54,.13),rgba(4,26,54,.13)),url('../assets/congress-banner-2026.png'); background-size: cover; background-position: center 50%; background-repeat: no-repeat; }
.conference-banner::before, .conference-banner::after, .banner-decoration { display: none; }
.banner-content { position: relative; z-index: 1; width: 100%; padding: 35px 24px; text-align: center; }
.banner-content h1 { font-size: 27px; font-weight: 600; letter-spacing: .35px; line-height: 1.35; text-shadow: 0 1px 3px rgba(14,44,78,.2); }
.banner-edition { font-size: 20px; margin-top: 8px; letter-spacing: .5px; }
.banner-date { font-size: 17px; margin-top: 7px; letter-spacing: .4px; }
.banner-decoration { position: absolute; border: 1px solid rgba(182,227,255,.3); pointer-events: none; }
.decoration-left { width: 76px; height: 76px; border-radius: 13px; left: 18px; bottom: -24px; transform: rotate(45deg); background: rgba(180,229,251,.08); }
.decoration-left::after { content: ''; position: absolute; inset: 21px; border: 1px solid rgba(220,246,255,.5); border-radius: 7px; }
.decoration-right { width: 100px; height: 100px; border-radius: 50%; right: -27px; top: -34px; }
.decoration-right::after { content: ''; position: absolute; inset: 13px; border: 1px solid rgba(182,227,255,.22); border-radius: 50%; }

/* Two columns keep the home-page content and the original link-based navigation together. */
.congress-layout { display: grid; grid-template-columns: minmax(0,1fr) 252px; grid-template-areas: 'heading sidebar' 'welcome sidebar'; gap: 27px 30px; padding: 32px; align-items: start; background: radial-gradient(ellipse at 0 0, #e1edf9 0%, transparent 58%), radial-gradient(ellipse at 100% 45%, #e2f1ed 0%, transparent 54%), linear-gradient(155deg, #f2f6fc 0%, #f1f7f5 58%, #f3eff8 100%); }
.congress-main { display: contents; }
.meeting-heading { grid-area: heading; text-align: center; background: linear-gradient(115deg, #dceaf9 0%, #e8f1fb 48%, #e2f2ed 100%); border: 1px solid #cddfed; border-top: 3px solid #407ab0; border-radius: 8px; padding: 36px 30px 30px; position: relative; overflow: hidden; box-shadow: 0 6px 20px rgba(56,92,126,.05); }
.meeting-heading h2 { font-size: 29px; letter-spacing: 1px; font-weight: 700; line-height: 1.5; color: #204f7f; text-wrap: balance; }
.meeting-name-en { font-size: 21px; line-height: 1.5; font-weight: 600; color: #284f78; margin-top: 14px; }
.meeting-heading-rule { height: 1px; width: 76px; background: #a3bfdc; margin: 22px auto 17px; }
.meeting-theme { font-size: 14px; line-height: 1.6; color: #5a6e85; }
.welcome-message { grid-area: welcome; padding: 25px 27px 27px; background: rgba(255,255,255,.88); border: 1px solid #dae5ed; border-radius: 8px; box-shadow: 0 6px 20px rgba(56,92,126,.035); }
.welcome-message h2 { font-family: Cambria, Georgia, serif; font-size: 27px; font-weight: 700; color: #1c4267; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.welcome-message > p { font-family: Cambria, Georgia, serif; font-size: 18px; line-height: 1.75; color: #283b50; margin-bottom: 17px; text-align: justify; }
.chair-signature { font-family: Cambria, Georgia, serif; text-align: right; font-size: 15px; line-height: 1.55; color: #344b61; margin-top: 24px; }
.chair-signature p + p { margin-top: 4px; }
.chair-signature .chair-name { font-size: 18px; font-weight: 700; }
.chair-name a:hover { text-decoration: underline; }
.conference-sidebar { grid-area: sidebar; min-width: 0; }
.congress-actions { display: flex; flex-direction: column; gap: 16px; }
.menu-button { min-height: 71px; display: flex; gap: 14px; align-items: center; padding: 17px 20px; color: white; background: #3e71aa; border: 1px solid #376ba3; border-radius: 6px; font-size: 16px; font-weight: 600; line-height: 1.45; box-shadow: 0 3px 7px rgba(37,81,129,.1); transition: background .18s ease, transform .18s ease, box-shadow .18s ease; }
.menu-button:hover { color: white; background: #255a91; transform: translateY(-2px); box-shadow: 0 5px 12px rgba(37,81,129,.16); }
.menu-button:active { transform: translateY(0); }
.menu-button svg { width: 23px; height: 23px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; }
.lab-button { background: #244e7b; border-color: #244e7b; }
.menu-button:last-child { background: #377b7f; border-color: #327377; }
.menu-button:last-child:hover { background: #28636a; }
.sponsor-sidebar { border: 1px solid #d5e5e3; border-radius: 8px; background: linear-gradient(155deg, #fff 40%, #edf6f2); display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 25px 18px; margin-top: 27px; }
.university-logo { width: 136px; aspect-ratio: 1; object-fit: contain; }
.research-logos { width: 100%; display: grid; gap: 10px; }
.research-logos img { width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }

/* Original lower content: historic links, original arrow icons, course image, copyright. */
.legacy-divider { height: 25px; background: #336699; margin-top: 2px; }
.historical-congress { padding: 25px 32px 0; text-align: center; color: #163f63; }
.historical-congress h2 { font-size: 28px; font-weight: 700; margin-bottom: 17px; line-height: 1.5; }
.history-box { padding: 0 0 12px; }
.history-box > p { font-family: Arial,sans-serif; font-size: 14px; color: #546577; margin-bottom: 21px; }
.history-box ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 18px; }
.history-box li { margin: 0; }
.history-box a { display: flex; align-items: center; justify-content: center; gap: 9px; color: #35679c; font-family: Arial,sans-serif; font-size: 18px; font-weight: 700; line-height: 1.5; min-height: 62px; height: 100%; padding: 15px 13px; border: 1px solid #d8e3ef; border-radius: 6px; background: #f0f5fb; transition: background .18s, border-color .18s; }
.history-box a:hover { color: #194d83; background: #e3edf8; border-color: #9dbbd8; }
.history-box img { width: 23px; height: 20px; flex-shrink: 0; }
.course-banner { padding: 20px 32px 0; }
.course-banner a { display: block; }
.course-banner img { width: 100%; height: auto; }
.site-footer { margin: 0 17px; border-top: 1px dotted #003366; padding: 20px 12px 24px; text-align: center; color: #000; font-size: 16px; font-weight: 700; }

/* Keynote list retains portrait, linked name, brief information and linked topic. */
.subpage-content { padding: 25px 32px 36px; }
.return-row { margin-bottom: 20px; }
.return-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; color: white; font-size: 15px; background: #337ab7; border: 1px solid #2e6da4; border-radius: 4px; transition: background .18s; }
.return-button:hover { color: white; background: #286090; }
.return-button span { font-size: 20px; line-height: 1; }
.keynotes-heading { text-align: center; padding: 4px 0 25px; border-bottom: 1px solid #cfdbe6; }
.keynotes-heading h2 { color: #172c43; font-size: 27px; font-weight: 600; line-height: 1.4; }
.keynotes-heading p { margin-top: 9px; font-size: 17px; color: #425a72; }
.keynote-speakers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 32px; row-gap: 42px; padding: 35px 20px 20px; margin-top: 24px; background: #f7f9fc; border: 1px solid #e0e7ee; border-radius: 7px; }
.keynote-speakers.featured-keynotes { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 700px; margin-inline: auto; }
.keynote-speakers.forum-speakers { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 1080px; margin-inline: auto; }
.keynote-speakers.forum-announcement { grid-template-columns: 1fr; min-height: 150px; place-items: center; color: var(--muted); text-align: center; padding: 25px; }
.speaker-entry { min-width: 0; text-align: center; padding-bottom: 22px; }
.speaker-photo { width: 120px; height: 160px; background: #e9eef3; border: 1px solid #ced9e2; margin: 0 auto 17px; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; }
img.speaker-photo { display: block; object-fit: cover; object-position: center top; }
.photo-icon { position: relative; display: block; width: 66px; height: 72px; margin-bottom: 15px; }
.photo-icon::before { content: ''; position: absolute; width: 31px; height: 31px; border-radius: 50%; border: 1px solid #9eafbf; top: 0; left: 18px; }
.photo-icon::after { content: ''; position: absolute; width: 64px; height: 33px; border: 1px solid #9eafbf; border-radius: 34px 34px 0 0; bottom: 0; left: 1px; }
.photo-status { font-size: 11px; line-height: 1.4; max-width: 100px; color: #53697e; text-align: center; }
.speaker-label { font-size: 16px; font-weight: 600; color: #263e56; }
.speaker-entry h3 { font-size: 18px; line-height: 1.5; font-weight: 700; margin-top: 1px; }
.speaker-name { color: #2478b4; }
.speaker-name:hover { text-decoration: underline; }
.speaker-information { margin-top: 5px; font-size: 17px; color: #303f50; line-height: 1.55; }
.speaker-topic { font-size: 17px; line-height: 1.5; margin-top: 7px; color: #1d2e41; }
.speaker-topic a { text-decoration: underline; text-underline-offset: 3px; color: #2478b4; }
.speaker-topic a:hover { color: #143f71; }

.training-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid #dce5ef; border-radius: 6px; background: #fff; }
.training-table { width: 100%; border-collapse: collapse; text-align: left; }
.training-table th, .training-table td { padding: 16px 18px; border-bottom: 1px solid #dce5ef; vertical-align: top; }
.training-table th { background: #edf4f8; color: #234966; font-size: 15px; font-weight: 700; }
.training-table tbody tr:last-child td { border-bottom: 0; }
.training-table th:first-child, .training-table td:first-child { width: 64px; text-align: center; font-weight: 700; }
.training-table th:nth-child(2) { width: 54%; }
.training-topic, .training-translation { display: block; }
.training-topic { font-weight: 600; color: #23364b; }
.training-translation { margin-top: 8px; color: #546577; line-height: 1.65; overflow-wrap: anywhere; }
.training-translation[dir="rtl"] { text-align: right; }

/* Speaker detail retains the original heading/profile/topic/abstract/biography sequence. */
.detail-heading { font-size: 27px; font-weight: 600; color: #172c43; text-align: center; padding-bottom: 18px; border-bottom: 1px solid #cfdbe6; }
.speaker-profile { text-align: center; padding: 27px 0; border-bottom: 1px solid #e0e7ed; }
.detail-photo { width: 168px; height: 224px; margin-bottom: 22px; }
.detail-photo .photo-icon { transform: scale(1.25); margin-bottom: 26px; }
.detail-photo .photo-status { font-size: 12px; max-width: 140px; }
.speaker-profile h3 { color: #1b4670; font-size: 21px; font-weight: 700; }
.speaker-profile p { font-size: 18px; margin-top: 5px; }
.speaker-talk { padding-top: 23px; color: #26394c; font-size: 18px; }
.speaker-talk section { margin-bottom: 23px; }
.speaker-talk h3 { display: inline; font-size: 18px; font-weight: 700; margin-right: 8px; }
.speaker-talk p { display: inline; line-height: 1.8; }

@media (max-width: 1000px) {
  .banner-content h1 { font-size: 25px; }
  .congress-layout { padding: 26px; grid-template-columns: minmax(0,1fr) 218px; gap: 24px; }
  .meeting-heading { padding: 28px 22px; }
  .meeting-heading h2 { font-size: 26px; }
  .meeting-name-en { font-size: 19px; }
  .welcome-message { padding: 23px; }
  .menu-button { padding: 15px; gap: 10px; font-size: 15px; }
  .keynote-speakers { column-gap: 24px; padding-inline: 16px; }
  .speaker-entry h3 { font-size: 17px; }
  .speaker-information, .speaker-topic { font-size: 16px; }
}
@media (max-width: 760px) {
  .conference-banner { min-height: 200px; }
  .banner-content { padding: 28px 22px; }
  .banner-content h1 { font-size: 23px; }
  .banner-edition { font-size: 18px; margin-top: 11px; }
  .banner-date { font-size: 16px; margin-top: 9px; }
  .congress-layout { grid-template-columns: minmax(0,1fr); grid-template-areas: 'heading' 'sidebar' 'welcome'; padding: 23px; gap: 24px; }
  .meeting-heading { padding: 28px 22px; }
  .meeting-heading h2 { font-size: 27px; }
  .meeting-name-en { font-size: 20px; }
  .conference-sidebar { display: flex; flex-direction: column; }
  .congress-actions { gap: 12px; }
  .menu-button { min-height: 71px; padding: 14px 12px; justify-content: flex-start; gap: 8px; font-size: 14px; }
  .menu-button svg { width: 20px; height: 20px; }
  .sponsor-sidebar { flex-direction: column; gap: 15px; justify-content: center; padding: 17px; margin-top: 19px; }
  .university-logo { width: 90px; }
  .research-logos { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .welcome-message { padding: 22px; }
  .welcome-message > p { font-size: 17px; text-align: left; }
  .chair-signature { font-size: 15px; }
  .historical-congress { padding-inline: 16px; }
  .historical-congress h2 { font-size: 26px; margin-bottom: 22px; }
  .course-banner { padding-inline: 22px; }
  .subpage-content { padding: 23px; }
  .keynote-speakers { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 22px; }
  .keynote-speakers.forum-speakers { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 700px; }
  .keynotes-heading p { font-size: 16px; }
  .training-table-wrap { overflow: visible; border: 0; background: transparent; }
  .training-table, .training-table tbody, .training-table tr, .training-table td { display: block; width: 100%; }
  .training-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .training-table tbody tr { margin-bottom: 14px; border: 1px solid #dce5ef; border-radius: 6px; background: #fff; overflow: hidden; }
  .training-table td, .training-table th:first-child, .training-table td:first-child { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; width: auto; padding: 12px 14px; text-align: left; border-bottom: 1px solid #e5ebf1; }
  .training-table td:last-child { border-bottom: 0; }
  .training-table td::before { content: attr(data-label); color: #234966; font-size: 14px; font-weight: 700; }
}
@media (max-width: 480px) {
  .banner-content { padding: 27px 18px; }
  .banner-content h1 { font-size: 21px; letter-spacing: 0; }
  .banner-edition { font-size: 16px; letter-spacing: 0; }
  .banner-date { font-size: 15px; }
  .congress-layout { padding: 18px; gap: 20px; }
  .meeting-heading { padding: 24px 17px; }
  .meeting-heading h2 { font-size: 24px; line-height: 1.6; }
  .meeting-name-en { font-size: 18px; }
  .meeting-theme { font-size: 13px; }
  .congress-actions { gap: 10px; }
  .menu-button { min-height: 51px; padding: 11px 18px; justify-content: flex-start; font-size: 16px; gap: 13px; }
  .sponsor-sidebar { margin-top: 16px; }
  .research-logos { grid-template-columns: 1fr; max-width: 210px; gap: 8px; }
  .welcome-message h2 { font-size: 26px; }
  .welcome-message { padding: 20px 18px; }
  .chair-signature { font-size: 14px; }
  .chair-signature .chair-name { font-size: 17px; }
  .historical-congress h2 { font-size: 25px; }
  .history-box { padding: 0 0 12px; }
  .history-box > p { font-size: 13px; }
  .history-box ul { grid-template-columns: 1fr; gap: 10px; }
  .history-box a { font-size: 15px; gap: 8px; min-height: 53px; }
  .history-box img { width: 19px; height: 16px; }
  .course-banner { padding: 18px 16px 0; }
  .site-footer { margin-inline: 16px; padding-block: 18px; font-size: 14px; }
  .subpage-content { padding: 20px 16px 27px; }
  .keynotes-heading h2, .detail-heading { font-size: 25px; }
  .keynotes-heading p { font-size: 14px; }
  .keynote-speakers { grid-template-columns: 1fr; padding: 27px 18px 0; row-gap: 25px; }
  .keynote-speakers.featured-keynotes { column-gap: 12px; padding-inline: 12px; }
  .keynote-speakers.forum-speakers { grid-template-columns: 1fr; }
  .speaker-entry { padding-bottom: 27px; border-bottom: 1px solid var(--line); }
  .speaker-entry:last-child, .featured-speaker { border-bottom: 0; }
  .speaker-entry h3 { font-size: 19px; }
  .featured-speaker h3 { font-size: 16px; }
  .speaker-information, .speaker-topic { font-size: 17px; }
  .speaker-profile h3 { font-size: 20px; }
  .speaker-profile p { font-size: 16px; }
  .speaker-talk { font-size: 17px; }
  .speaker-talk h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; }
  .site-frame { box-shadow: none; }
  .conference-banner { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .return-row { display: none; }
  .speaker-entry { break-inside: avoid; }
  .congress-layout { display: block; }
  .conference-sidebar { display: none; }
  .welcome-message { margin-top: 22px; }
}
