
/* IWCSN 2026 Hangzhou conference website
   Rebuilt to follow the visual structure of the provided CSAA/IET AUS reference:
   centered white canvas, red title, large image banner, deep-blue horizontal menu,
   left content column and right site-map column. */

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: #eeeeee;
  color: #111111;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", SimSun, serif;
  font-size: 16px;
  line-height: 1.42;
}

a { color: #005fc4; text-decoration: none; }
a:hover { text-decoration: underline; }

.lang-en .lang-zh-only { display: none !important; }
.lang-zh .lang-en-only { display: none !important; }

.page-shell {
  width: 1030px;
  max-width: calc(100vw - 34px);
  margin: 36px auto 56px;
  background: #ffffff;
  padding: 50px 22px 36px;
  min-height: calc(100vh - 72px);
}

.site-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
}
.site-title {
  margin: 0;
  color: #ff003d;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .1px;
}
.site-subtitle {
  text-align: right;
  font-size: 13px;
  color: #555555;
  font-style: italic;
  white-space: nowrap;
}
.language-switch {
  margin-top: 7px;
  display: none;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-style: normal;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: #004b9b;
  padding: 1px 3px;
  cursor: pointer;
  font: inherit;
}
.lang-btn.active-lang { color: #111111; font-weight: 700; }
.lang-btn:hover { text-decoration: underline; }
.lang-divider { color: #999999; }

.hero-banner {
  position: relative;
  height: 365px;
  overflow: hidden;
  border: 0;
  background: #bcd9e8;
}
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #bcd9e8;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  background-position: center;
  background-size: cover;
  transition: opacity 1.4s ease, transform 7.2s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1.08);
}
.hero-slide-campus {
  background-image: url("../images/hero-beihang-campus.jpg");
  background-position: center 45%;
}
.hero-slide-skyline {
  background-image: url("../images/hero-hangzhou-skyline.jpg");
  background-position: center 55%;
}
.hero-slide-lake {
  background-image: url("../images/hero-baima-lake.jpg");
  background-position: center 50%;
}
.hero-slide-institute {
  background-image: url("../images/home-beihang-hangzhou-campus.jpg");
  background-position: center 48%;
}
.hero-slide-baima-district {
  background-image: url("../images/home-baima-lake-district.jpg");
  background-position: center 50%;
}
.hero-slide-qianjiang {
  background-image: url("../images/tour-hangzhou-qianjiang-skyline.jpg");
  background-position: center 50%;
}
.hero-slide-hotel {
  background-image: url("../images/venue-hotel-exterior-night.jpg");
  background-position: center 52%;
}
.hero-banner img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(.95) brightness(1.03);
}
.hero-banner.has-carousel img.hero-photo {
  opacity: 0;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.10) 42%, rgba(255,255,255,.04) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-logo {
  position: absolute;
  left: 25px;
  top: 18px;
  width: 200px;
  height: auto;
  z-index: 2;
}
.hero-text {
  position: absolute;
  left: 230px;
  top: 60px;
  z-index: 2;
  color: #ffffff;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  text-shadow: 0 2px 3px rgba(0,0,0,.40);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.hero-text .smaller { font-size: 21px; }

.main-nav {
  min-height: 39px;
  background: #15008a;
  display: flex;
  align-items: stretch;
  padding: 0 0 0 0;
  margin-bottom: 44px;
  font-family: Georgia, "Times New Roman", "Noto Serif SC", SimSun, serif;
}
.main-nav a,
.main-nav .nav-parent {
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 11px;
  font-size: 15px;
  line-height: 39px;
  text-decoration: none;
  height: 39px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.main-nav a:hover,
.main-nav a.active,
.main-nav .nav-dropdown:hover .nav-parent,
.main-nav .nav-dropdown:focus-within .nav-parent {
  background: #2111a0;
  text-decoration: none;
}
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  left: 0;
  top: 39px;
  min-width: 205px;
  background: #15008a;
  border: 1px solid #2c1fa7;
  box-shadow: 0 5px 14px rgba(0,0,0,.18);
  z-index: 20;
  padding: 4px 0;
  display: none;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  height: auto;
  min-height: 30px;
  line-height: 1.2;
  padding: 8px 12px;
  display: block;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 705px) 235px;
  gap: 36px;
  padding: 0 22px;
}
.main-content h2 {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.1;
  color: #111111;
}
.main-content h3 {
  margin: 16px 0 12px;
  font-size: 24px;
  font-weight: 500;
  color: #111111;
}
.main-content h4 {
  margin: 15px 0 8px;
  font-size: 18px;
  color: #111111;
}
.main-content p { margin: 0 0 12px; }

.info-panel {
  background: #c8eefc;
  padding: 24px 32px;
  margin: 24px 0 28px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}
.info-panel p:last-child { margin-bottom: 0; }
.info-panel .topics-list {
  margin: 6px 0 14px 24px;
  padding: 0;
}
.info-panel .topics-list li {
  margin: 3px 0;
}

.notice-panel {
  background: #eef8fd;
  border-left: 6px solid #8bd1f0;
  padding: 14px 18px;
  margin: 18px 0 22px;
}
.registration-remittance-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  background: linear-gradient(110deg, #eef8fd, #f8fcfe);
  border: 1px solid #91bdd0;
  border-left: 6px solid #438eaf;
  border-radius: 7px;
  padding: 15px 18px;
  margin: 16px 0 20px;
  box-shadow: 0 3px 10px rgba(49, 93, 114, .07);
}
.registration-remittance-label {
  color: #183d50;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  background: #deeff7;
  border-radius: 999px;
  padding: 5px 10px;
}
.registration-remittance-format {
  color: #0b2b3d;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: .02em;
}
.program-more-panel {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 700;
  padding: 24px 34px;
}

.plain-list, .nested-list { margin: 8px 0 16px 24px; padding: 0; }
.plain-list li, .nested-list li { margin: 3px 0; }
.two-column-list {
  columns: 2;
  column-gap: 34px;
  margin-left: 20px;
}
.two-column-list li { break-inside: avoid; margin-bottom: 4px; }

.data-table {
  border-collapse: collapse;
  width: 100%;
  margin: 14px 0 22px;
  font-size: 15px;
}
.data-table th,
.data-table td {
  border: 1px solid #b8dbe8;
  padding: 9px 10px;
  vertical-align: top;
  text-align: left;
}
.data-table th {
  background: #d9f3fc;
  font-weight: 700;
}
.room-rate-table th,
.room-rate-table td {
  text-align: center;
}
.data-table .time-col { width: 145px; }

.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0 24px;
}
.photo-card { margin: 0; }
.photo-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  border: 1px solid #d1d1d1;
}
.photo-card figcaption {
  font-size: 12px;
  color: #666666;
  margin-top: 6px;
  line-height: 1.35;
}
.full-photo {
  margin: 12px 0 22px;
}
.full-photo img {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  display: block;
  border: 1px solid #d1d1d1;
}
.full-photo figcaption {
  font-size: 12px;
  color: #666666;
  margin-top: 6px;
}
.venue-feature-photo img {
  max-height: 380px;
}
.venue-photo-strip .photo-card img {
  height: 220px;
}
.action-row {
  margin: 10px 0 18px;
}
.map-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #0057a8;
  background: #0057a8;
  color: #ffffff;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.map-link-button:hover,
.map-link-button:focus {
  background: #003f7a;
  color: #ffffff;
  text-decoration: none;
}
.map-link-button.secondary {
  margin-top: 10px;
  background: #ffffff;
  color: #0057a8;
}
.map-link-button.secondary:hover,
.map-link-button.secondary:focus {
  background: #eef8fd;
  color: #003f7a;
}
.map-link-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.transport-summary {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 18px;
  border: 1px solid #b8dbe8;
  border-left: 6px solid #8bd1f0;
  background: #f7fcfe;
  padding: 16px 18px;
  margin: 18px 0 22px;
}
.transport-route-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 18px 0 26px;
}
.transport-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 46%);
  column-gap: 22px;
  align-items: start;
  border: 1px solid #b8dbe8;
  border-top: 5px solid #8bd1f0;
  background: linear-gradient(135deg, #ffffff 0%, #f7fcfe 100%);
  padding: 18px;
}
.transport-card:hover {
  border-color: #8bd1f0;
  box-shadow: 0 8px 22px rgba(0, 87, 168, .10);
}
.transport-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.transport-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}
.transport-card p {
  margin: 0 0 12px;
}
.transport-card .map-link-button.secondary {
  align-self: start;
  justify-self: start;
}
.transport-card .map-link-group {
  align-self: start;
  justify-self: start;
  justify-content: flex-start;
}
.transport-badge {
  flex: 0 0 auto;
  min-width: 44px;
  padding: 4px 8px;
  background: #0057a8;
  color: #ffffff;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.route-map {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
}
.route-map img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 1px solid #b8dbe8;
  background: #ffffff;
}
.route-map.portrait-map img {
  max-height: 640px;
  object-position: center;
}
.route-map figcaption {
  margin-top: 6px;
  color: #666666;
  font-size: 12px;
}
.route-map-embed {
  background: #ffffff;
  border: 1px solid #b8dbe8;
  padding: 10px;
}
.route-map-static {
  background: #ffffff;
  border: 1px solid #b8dbe8;
  padding: 10px;
}
.route-map-static img {
  aspect-ratio: 16 / 9;
  max-height: none;
  object-fit: contain;
  border: 0;
  background: #f6fafc;
}
.route-map-embed iframe {
  width: 100%;
  height: 390px;
  display: block;
  border: 0;
  background: #eef8fd;
}

.right-rail {
  font-size: 15px;
  padding-top: 0;
}
.site-map {
  margin: 0 0 20px 0;
  padding: 0;
  list-style-type: square;
  color: #666666;
}
.site-map > li { margin-left: 16px; line-height: 1.22; }
.site-map ul {
  margin: 2px 0 3px 18px;
  padding: 0;
  list-style-type: square;
}
.site-map a { color: #006bd6; }
.site-map a.current { color: #7e168a; }
.qr-card {
  text-align: center;
  margin-top: 18px;
}
.qr-card img {
  width: 178px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 8px;
}
.qr-card p {
  font-size: 12px;
  color: #777777;
  margin: 0;
  line-height: 1.35;
}
.rail-note {
  margin-top: 18px;
  padding: 10px 12px;
  background: #f6f6f6;
  border-left: 4px solid #dadada;
  font-size: 13px;
  color: #555555;
}

.footer {
  margin: 46px 22px 0;
  padding-top: 16px;
  border-top: 1px solid #eeeeee;
  color: #777777;
  font-size: 12px;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
}


.profile-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 16px 0 24px;
}
.profile-card {
  border: 1px solid #b8dbe8;
  border-top: 5px solid #8bd1f0;
  background: #fbfdfe;
  padding: 16px 18px 14px;
}
.keynote-profile-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(126, 190, 218, .55);
  border-top: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(248,253,255,.94) 55%, rgba(239,249,253,.90) 100%);
  box-shadow: 0 10px 26px rgba(24, 86, 116, .10);
  padding: 18px 24px 18px;
}
.keynote-profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #84cce8 0%, #b9e7f5 45%, #ffffff 100%);
}
.keynote-profile-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(139,209,240,.22) 0%, rgba(139,209,240,0) 68%);
  pointer-events: none;
}
.profile-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.profile-card h4 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.15;
}
.profile-role {
  margin: 0 !important;
  color: #164c75;
  font-weight: 700;
  font-size: 15px;
}
.profile-link {
  flex: 0 0 auto;
  border: 1px solid #8ebed2;
  background: #eef8fd;
  padding: 5px 9px;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: #004b9b;
}
.profile-link:hover {
  background: #d9f3fc;
  text-decoration: none;
}
.profile-meta {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 8px 0 12px;
  font-size: 14px;
}
.profile-meta dt {
  font-weight: 700;
  color: #333333;
}
.profile-meta dd {
  margin: 0;
}
.profile-card p:last-child {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .profile-heading { flex-direction: column; gap: 8px; }
  .profile-meta { grid-template-columns: 1fr; gap: 2px; }
  .profile-meta dd { margin-bottom: 7px; }
  .keynote-profile-card.profile-expanded .profile-card-with-photo {
    display: grid;
  }
  .keynote-profile-card.profile-expanded .profile-photo {
    float: none;
    margin: 0;
  }
}

/* Small screens */
@media (max-width: 900px) {
  .page-shell { max-width: none; width: 100%; margin: 0; padding: 26px 14px 32px; }
  .site-topline { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 16px; }
  .site-subtitle { text-align: left; white-space: normal; }
  .language-switch { justify-content: flex-start; }
  .hero-banner { height: 260px; }
  .hero-logo { width: 150px; left: 12px; top: 10px; }
  .hero-text { left: 24px; right: 20px; top: 108px; font-size: 19px; }
  .hero-text .smaller { font-size: 17px; }
  .main-nav { flex-wrap: wrap; margin-bottom: 26px; }
  .main-nav a, .main-nav .nav-parent { padding: 0 9px; font-size: 14px; }
  .dropdown-menu { position: static; display: none; width: 100%; box-shadow: none; }
  .nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display: block; }
  .info-panel { padding: 18px 20px; font-size: 16px; }
  .photo-strip { grid-template-columns: 1fr; }
  .transport-summary { align-items: stretch; }
  .transport-card { display: block; }
  .transport-card-header { flex-direction: column; }
  .route-map { margin-top: 12px; }
  .two-column-list { columns: 1; }
}


.session-heading {
  margin-top: 24px !important;
  padding: 8px 10px;
  background: #eef8fd;
  border-left: 6px solid #8bd1f0;
  font-size: 18px !important;
  font-weight: 700 !important;
}
.schedule-table td:first-child {
  white-space: nowrap;
  font-weight: 700;
}
.affiliation-note {
  color: #555555;
  font-size: .92em;
}
.committee-table td:first-child {
  width: 29%;
  font-weight: 700;
}
.sponsor-block {
  margin-top: 28px;
}
.sponsor-block h3 {
  margin-top: 20px;
  margin-bottom: 8px;
}
.sponsor-block p {
  margin: 0 0 22px 52px;
  font-size: 17px;
  line-height: 1.45;
}


/* Portrait and speaker-card additions; global AUS-style layout is intentionally unchanged. */
.profile-card-with-photo {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 17px;
  align-items: start;
}
.keynote-profile-card .profile-card-with-photo {
  grid-template-columns: 132px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 8px;
  position: relative;
  z-index: 1;
}
.profile-photo {
  width: 122px;
  height: 152px;
  object-fit: cover;
  border: 1px solid #b8dbe8;
  background: #f3f3f3;
  display: block;
}
.keynote-profile-card .profile-photo {
  width: 132px;
  height: 165px;
  border: 6px solid #ffffff;
  outline: 1px solid rgba(121, 180, 204, .55);
  box-shadow: 0 10px 20px rgba(20, 68, 96, .16);
}
.profile-content { min-width: 0; }
.keynote-profile-card.profile-expanded .profile-card-with-photo {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 8px;
}
.keynote-profile-card.profile-expanded .profile-photo {
  float: none;
  margin: 0;
}
.keynote-profile-card.profile-expanded .profile-more,
.keynote-profile-card.profile-expanded .profile-more-toggle {
  grid-column: 1 / -1;
}
.keynote-profile-card.profile-expanded .profile-more .profile-summary {
  max-width: none;
}
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 26px;
}
.speaker-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid #b8dbe8;
  background: #fbfdfe;
  padding: 11px;
  min-height: 136px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.speaker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 13px rgba(0,0,0,.10);
  border-color: #8bd1f0;
}
.speaker-card img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #d1d1d1;
  background: #f3f3f3;
}
.speaker-card h4 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.15;
}
.speaker-affiliation {
  color: #164c75;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}
.speaker-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.38;
}

.profile-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #2b2b2b;
}
.keynote-profile-card .profile-summary {
  font-size: 17px;
  line-height: 1.62;
}
.profile-more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  overflow: hidden;
  pointer-events: none;
  transition: grid-template-rows .46s cubic-bezier(.22,.72,.18,1);
}
.profile-card.profile-expanded .profile-more {
  grid-template-rows: 1fr;
  pointer-events: auto;
}
.profile-more-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .28s ease, transform .36s cubic-bezier(.22,.72,.18,1), visibility 0s linear .28s;
}
.profile-card.profile-expanded .profile-more-inner {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: .08s, 0s, 0s;
}
.profile-more-inner .profile-summary {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(126, 190, 218, .40);
}
.profile-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  grid-column: 2 / -1;
  justify-self: start;
  margin-top: 10px;
  border: 0;
  border-bottom: 2px solid rgba(0, 75, 155, .28);
  background: transparent;
  color: #004b9b;
  cursor: pointer;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  padding: 4px 2px 5px;
  box-shadow: none;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
  align-self: start;
  grid-row: auto;
  transform: none;
}
.keynote-profile-card.profile-expanded .profile-more-toggle {
  grid-column: 1 / -1;
  grid-row: auto;
  margin-top: 14px;
  transform: none;
}
.profile-more-toggle:hover,
.profile-more-toggle:focus {
  background: transparent;
  border-color: #004b9b;
  color: #002f72;
  transform: translateY(-1px);
}
.profile-more-toggle::after {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 2px;
  border: 0;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 16px 0 0 rgba(0, 75, 155, .38);
  transform: translateY(0) scale(.92);
  transition: background .24s ease, box-shadow .24s ease, transform .24s ease;
}
.profile-more-toggle[aria-expanded="true"]::after {
  background: #7fcce8;
  box-shadow: 16px 0 0 #004b9b;
  transform: translateY(-1px) scale(1.08);
}
.coming-soon-panel {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  padding-top: 14px;
  padding-bottom: 14px;
}
.section-mini-note {
  font-size: 13px;
  color: #5d5d5d;
}
.soft-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.soft-reveal-ready {
  opacity: 1;
  transform: translateY(0);
}
.transport-summary.soft-reveal,
.main-content > .info-panel.soft-reveal,
.main-content > .notice-panel.soft-reveal,
.data-table.soft-reveal,
.keynote-profile-card.soft-reveal,
.sponsor-block.soft-reveal,
.program-list.soft-reveal,
.transport-card.soft-reveal {
  opacity: 1;
  transform: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .soft-reveal,
  .soft-reveal-ready,
  .hero-slide,
  .speaker-card,
  .profile-link,
  .profile-more,
  .profile-more-toggle {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .hero-slide { opacity: 0; }
  .hero-slide.active { opacity: 1; }
}
@media (max-width: 900px) {
  .profile-card-with-photo,
  .keynote-profile-card .profile-card-with-photo {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .profile-photo,
  .keynote-profile-card .profile-photo {
    width: min(190px, 68vw);
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .profile-heading {
    align-items: center;
    text-align: center;
  }
  .keynote-profile-card {
    padding: 24px 22px 22px;
  }
  .keynote-profile-card .profile-summary {
    text-align: left;
    font-size: 16px;
  }
  .sponsor-block p {
    margin-left: 0;
  }
  .keynote-profile-card .profile-heading,
  .keynote-profile-card .profile-role {
    text-align: center;
  }
  .speaker-grid { grid-template-columns: 1fr; }
}

/* Detailed horizontal layout for Keynote Speakers. */
.keynote-profile-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 16px 0 24px;
}
.keynote-profile-card .profile-photo {
  width: 128px;
  height: 160px;
}
.keynote-note {
  margin-bottom: 14px;
}

/* Simplified organization cards. */
.committee-simple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  margin: 16px 0 24px;
}
.committee-simple-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #b8dbe8;
  border-top: 4px solid #8bd1f0;
  background: #fbfdfe;
  padding: 12px 14px;
}
.committee-simple-card img {
  width: 88px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #b8dbe8;
  background: #f3f3f3;
}
.committee-simple-card h4 {
  margin: 0 0 3px;
  font-size: 20px;
  line-height: 1.15;
}
.committee-simple-body p {
  margin: 2px 0;
}
.committee-simple-note {
  color: #555555;
  font-size: 13px;
}
@media (max-width: 900px) {
  .keynote-profile-card .profile-photo { width: min(190px, 68vw); height: auto; }
  .committee-simple-card { grid-template-columns: 1fr; }
  .committee-simple-card img { width: 128px; height: 160px; }
}

.program-list {
  display: grid;
  gap: 18px;
  margin: 16px 0 24px;
}
.program-day {
  border: 1px solid #b8dbe8;
  border-top: 5px solid #8bd1f0;
  background: #fbfdfe;
  padding: 16px 18px;
}
.program-day h3 {
  margin-top: 0;
}
.program-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #d9eef6;
}
.program-time {
  font-weight: 700;
  color: #204760;
}
.route-placeholder {
  border: 1px dashed #8bbfce;
  background: #f7fcfe;
  padding: 18px;
  margin: 18px 0 24px;
}
.fee-table td:last-child {
  font-weight: 700;
}
@media (max-width: 700px) {
  .program-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 900px) {
  .keynote-profile-card.profile-expanded .profile-content {
    display: block;
  }
  .keynote-profile-card.profile-expanded .profile-photo {
    float: none;
    margin: 0;
  }
}

/* Final responsive system: one source of truth for page columns and keynote cards. */

/* Keep the desktop site map in the right column; let the main column absorb width changes. */
@media (min-width: 901px) and (max-width: 1180px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 28px;
  }
  .right-rail {
    border-top: 0;
    padding-top: 0;
  }
}

/* Touch/click state for the Attendee submenu. */
.nav-dropdown.nav-dropdown-open .dropdown-menu {
  display: block;
}
.nav-parent[aria-expanded="true"] {
  background: #2111a0;
}

/* Program cards no longer depend on JavaScript-generated layout classes. */
@media (max-width: 900px) {
  .program-list {
    gap: 12px;
    margin: 10px 0 18px;
  }
  .program-day {
    padding: 12px 14px 13px;
    border-top-width: 4px;
  }
  .program-day h3 {
    margin: 0 0 10px;
    font-size: clamp(20px, 5.4vw, 24px);
    line-height: 1.25;
  }
  .program-item {
    padding: 7px 0 0;
    gap: 2px;
    font-size: 16px;
  }
  .program-time {
    font-size: 15px;
  }
  .program-more-panel {
    margin-top: 16px;
    padding: 18px 22px;
    font-size: clamp(18px, 4.7vw, 22px);
    line-height: 1.35;
  }
}

/* Give the home page enough desktop width while keeping the right rail bounded. */
@media (min-width: 1181px) {
  .home-page .page-shell {
    width: min(1320px, calc(100vw - 34px));
    max-width: none;
  }
  .home-page .content-grid {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 36px;
  }
}

/* Keynote card layout is driven only by the card's actual width. */
.keynote-profile-card {
  container-type: inline-size;
  padding: 20px 24px 20px;
}
.keynote-profile-card .profile-card-with-photo,
.keynote-profile-card.profile-expanded .profile-card-with-photo {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 16px;
  align-items: start;
  justify-items: stretch;
  text-align: left;
  min-width: 0;
}
.keynote-profile-card .profile-heading {
  align-items: flex-start;
  text-align: left;
}
.keynote-profile-card .profile-role {
  text-align: left;
}
.keynote-profile-card .profile-photo,
.keynote-profile-card.profile-expanded .profile-photo {
  grid-column: 1;
  grid-row: 1;
  width: 128px;
  height: 160px;
  max-width: 100%;
  margin: 0;
  float: none;
}
.keynote-profile-card .profile-content,
.keynote-profile-card.profile-expanded .profile-content {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
}
.keynote-profile-card .profile-summary,
.keynote-profile-card .profile-talk-title,
.keynote-profile-card .profile-detail-paragraph {
  overflow-wrap: break-word;
  word-break: normal;
}
.keynote-profile-card .profile-summary {
  font-size: 16px;
  line-height: 1.58;
}

/* Talk information is a normal grid item; no negative offsets or fixed-height positioning. */
.keynote-profile-card .profile-talk-preview,
.keynote-profile-card.profile-expanded .profile-talk-preview {
  position: relative;
  grid-column: 1 / -1;
  grid-row: auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 15px 18px 16px 20px;
  border: 1px solid rgba(105, 177, 209, .34);
  border-left: 4px solid #5aaed5;
  background: linear-gradient(110deg, rgba(240, 249, 253, .92), rgba(250, 253, 255, .88));
  box-shadow: none;
  overflow: visible;
}
.keynote-profile-card .profile-talk-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  color: #246b92;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
}
.keynote-profile-card .profile-talk-kicker::after {
  content: "";
  width: 36px;
  height: 1px;
  background: rgba(61, 145, 184, .58);
}
.keynote-profile-card .profile-talk-preview .profile-talk-title {
  max-width: none;
  margin: 0;
  color: #102f43;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
}
.keynote-profile-card .profile-talk-placeholder .profile-talk-title {
  color: #6f8290;
  font-size: 15.5px;
  font-weight: 600;
  font-style: italic;
}

/* Expandable biography/abstract sections remain in normal document flow. */
.keynote-profile-card .profile-more,
.keynote-profile-card.profile-expanded .profile-more,
.keynote-profile-card .profile-more-toggle,
.keynote-profile-card.profile-expanded .profile-more-toggle {
  grid-column: 1 / -1;
}
.keynote-profile-card .profile-more {
  margin-top: 0;
}
.keynote-profile-card .profile-more-inner {
  width: 100%;
  padding-top: 10px;
}
.keynote-profile-card.profile-expanded .profile-more-inner {
  padding-top: 16px;
}
.profile-detail-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}
.profile-detail-section {
  margin: 0;
}
.profile-detail-section + .profile-detail-section {
  margin-top: 24px;
}
.profile-detail-heading {
  display: grid;
  grid-template-columns: auto minmax(36px, 1fr);
  align-items: center;
  column-gap: 12px;
  margin: 0 0 13px;
  color: #154e72;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.2;
}
.profile-detail-heading::after {
  content: "";
  height: 1px;
  background: linear-gradient(90deg, rgba(93, 171, 208, .55), rgba(93, 171, 208, .10));
}
.profile-detail-copy {
  max-width: 78ch;
}
.profile-detail-paragraph {
  margin: 0 0 12px;
  color: #263746;
  font-size: 16px;
  line-height: 1.72;
}
.profile-detail-paragraph:last-child {
  margin-bottom: 0;
}
.keynote-profile-card .profile-more-toggle,
.keynote-profile-card.profile-expanded .profile-more-toggle {
  justify-self: start;
  margin-top: 0;
}
.keynote-profile-card.profile-expanded .profile-more-toggle {
  margin-top: 14px;
}

/* On desktop, keep the speaker portrait and profile on the first row; the keynote speech stays on its own row below. */

/* Narrow card: everything stacks before text can collapse beside the portrait. */
@container (max-width: 619px) {
  .keynote-profile-card {
    padding: 18px 16px 18px;
  }
  .keynote-profile-card .profile-card-with-photo,
  .keynote-profile-card.profile-expanded .profile-card-with-photo {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    row-gap: 14px;
  }
  .keynote-profile-card .profile-photo,
  .keynote-profile-card.profile-expanded .profile-photo {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: min(178px, 56cqw);
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .keynote-profile-card .profile-content,
  .keynote-profile-card.profile-expanded .profile-content,
  .keynote-profile-card .profile-talk-preview,
  .keynote-profile-card.profile-expanded .profile-talk-preview,
  .keynote-profile-card .profile-more,
  .keynote-profile-card .profile-more-toggle {
    grid-column: 1;
    grid-row: auto;
  }
  .keynote-profile-card .profile-heading,
  .keynote-profile-card .profile-role {
    justify-content: center;
    text-align: center;
  }
  .keynote-profile-card .profile-summary {
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.55;
    text-align: left;
  }
  .keynote-profile-card .profile-talk-preview,
  .keynote-profile-card.profile-expanded .profile-talk-preview {
    width: 100%;
    padding: 14px 16px 15px 18px;
  }
  .keynote-profile-card .profile-talk-preview .profile-talk-title {
    font-size: clamp(16px, 4.2vw, 18px);
    line-height: 1.40;
  }
}

/* Transportation cards stack only when their available viewport width is genuinely narrow. */
@media (min-width: 901px) and (max-width: 1180px) {
  .transport-card {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 43%);
  }
}
@media (max-width: 760px) {
  .transport-card {
    display: block;
  }
  .route-map {
    margin-top: 12px;
  }
}

/* Tables remain readable on very narrow screens instead of forcing page overflow. */
@media (max-width: 560px) {
  .data-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .data-table th,
  .data-table td {
    overflow-wrap: break-word;
  }
}

/* Registration values stay on one line; categories may wrap naturally. */
.registration-page .fee-table {
  table-layout: auto;
}
.registration-page .fee-table td:last-child,
.registration-page .fee-table th:last-child {
  white-space: nowrap;
}
@media (max-width: 480px) {
  .registration-page .fee-table {
    font-size: 14px;
  }
  .registration-page .fee-table th,
  .registration-page .fee-table td {
    padding: 8px 9px;
  }
}

.sightseeing-schedule td:first-child,
.sightseeing-schedule th:first-child {
  width: 124px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .keynote-profile-card,
  .keynote-profile-card .profile-detail-section {
    transition: none !important;
    transform: none !important;
  }
}

/* Responsive device system v4
   - >= 700px: desktop/tablet keeps the site map in the right rail.
   - <= 699px: phone layout becomes one column and the site map is a collapsible panel above content.
   The phone range comfortably covers iPhone portrait viewports while keeping iPad-class widths in tablet mode. */

/* Tablet / narrow desktop: preserve the right rail. */
@media (min-width: 700px) and (max-width: 900px) {
  .content-grid {
    grid-template-columns: minmax(0, 1fr) clamp(160px, 23vw, 190px);
    gap: 18px;
    padding: 0 10px;
    align-items: start;
  }
  .main-content {
    min-width: 0;
  }
  .right-rail {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    border-top: 0;
    padding-top: 0;
  }

  /* Tablet keeps portrait + biography on the first row; speech remains below. */
  .keynote-profile-card .profile-card-with-photo,
  .keynote-profile-card.profile-expanded .profile-card-with-photo {
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 14px;
    justify-items: stretch;
    text-align: left;
  }
  .keynote-profile-card .profile-photo,
  .keynote-profile-card.profile-expanded .profile-photo {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 104px;
    height: 130px;
    aspect-ratio: auto;
  }
  .keynote-profile-card .profile-content,
  .keynote-profile-card.profile-expanded .profile-content {
    grid-column: 2;
    grid-row: 1;
  }
  .keynote-profile-card .profile-talk-preview,
  .keynote-profile-card.profile-expanded .profile-talk-preview,
  .keynote-profile-card .profile-more,
  .keynote-profile-card .profile-more-toggle {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .keynote-profile-card .profile-heading,
  .keynote-profile-card .profile-role {
    justify-content: flex-start;
    text-align: left;
  }
}

.mobile-rail-toggle {
  display: none;
}

/* Phone portrait / narrow phone landscape. */
@media (max-width: 699px) {
  .page-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-top: max(18px, env(safe-area-inset-top));
    padding-right: calc(14px + env(safe-area-inset-right));
    padding-bottom: calc(30px + env(safe-area-inset-bottom));
    padding-left: calc(14px + env(safe-area-inset-left));
    min-height: 100vh;
  }

  .site-topline {
    margin-bottom: 14px;
  }
  .site-title {
    font-size: 21px;
  }
  .site-subtitle {
    font-size: 12px;
  }

  .hero-banner {
    height: clamp(190px, 52vw, 230px);
  }
  .hero-logo {
    width: clamp(112px, 34vw, 145px);
    left: 10px;
    top: 10px;
  }
  .hero-text {
    left: 18px;
    right: 14px;
    top: clamp(82px, 24vw, 108px);
    font-size: clamp(17px, 5vw, 20px);
  }
  .hero-text .smaller {
    font-size: clamp(15px, 4.3vw, 18px);
  }

  .main-nav {
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: stretch;
  }
  .main-nav a,
  .main-nav .nav-parent {
    min-height: 38px;
    height: auto;
    padding: 0 9px;
    font-size: 13.5px;
    line-height: 38px;
  }
  .nav-dropdown {
    min-width: 0;
  }
  .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }
  .dropdown-menu a {
    white-space: normal;
    line-height: 1.28;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 0;
    align-items: start;
  }
  .main-content {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .right-rail {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    border: 1px solid #dce9f0;
    border-top: 4px solid #8bd1f0;
    background: #f8fcfe;
    padding: 0;
    margin: 0 0 2px;
  }

  /* Progressive enhancement: content stays visible if JavaScript is unavailable. */
  .right-rail.mobile-rail-enhanced:not(.mobile-rail-open) > .site-map,
  .right-rail.mobile-rail-enhanced:not(.mobile-rail-open) > .rail-note,
  .right-rail.mobile-rail-enhanced:not(.mobile-rail-open) > .qr-card {
    display: none;
  }
  .right-rail.mobile-rail-enhanced.mobile-rail-open > .site-map,
  .right-rail.mobile-rail-enhanced.mobile-rail-open > .rail-note,
  .right-rail.mobile-rail-enhanced.mobile-rail-open > .qr-card {
    display: block;
  }
  .mobile-rail-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 13px;
    border: 0;
    background: transparent;
    color: #154e72;
    cursor: pointer;
    text-align: left;
    font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
    font-size: 14px;
    font-weight: 700;
  }
  .mobile-rail-toggle::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
  }
  .right-rail.mobile-rail-open .mobile-rail-toggle::after {
    content: "−";
  }
  .right-rail.mobile-rail-enhanced .site-map {
    margin: 0;
    padding: 3px 13px 12px 15px;
  }
  .right-rail.mobile-rail-enhanced .rail-note {
    margin: 0 13px 13px;
  }

  .main-content h2 {
    font-size: clamp(24px, 7vw, 28px);
  }
  .main-content h3 {
    font-size: clamp(21px, 6vw, 25px);
  }
  .info-panel {
    margin: 18px 0 22px;
    padding: 16px 17px;
    font-size: 15px;
  }

  .keynote-profile-list {
    gap: 18px;
  }
  .keynote-profile-card {
    padding: 17px 14px 17px;
  }
  .keynote-profile-card .profile-card-with-photo,
  .keynote-profile-card.profile-expanded .profile-card-with-photo {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    row-gap: 13px;
  }
  .keynote-profile-card .profile-photo,
  .keynote-profile-card.profile-expanded .profile-photo {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: min(168px, 52cqw);
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .keynote-profile-card .profile-content,
  .keynote-profile-card.profile-expanded .profile-content,
  .keynote-profile-card .profile-talk-preview,
  .keynote-profile-card.profile-expanded .profile-talk-preview,
  .keynote-profile-card .profile-more,
  .keynote-profile-card .profile-more-toggle {
    grid-column: 1;
    grid-row: auto;
  }
  .keynote-profile-card .profile-heading,
  .keynote-profile-card .profile-role {
    justify-content: center;
    text-align: center;
  }
  .keynote-profile-card .profile-talk-preview,
  .keynote-profile-card.profile-expanded .profile-talk-preview {
    padding: 13px 14px 14px 16px;
  }
  .keynote-profile-card .profile-more-toggle,
  .keynote-profile-card.profile-expanded .profile-more-toggle {
    min-height: 40px;
  }

  .photo-strip,
  .two-column-list {
    grid-template-columns: 1fr;
    columns: 1;
  }

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

/* Extra guard for the narrowest supported iPhone-class viewports. */
@media (max-width: 374px) {
  .page-shell {
    padding-right: calc(10px + env(safe-area-inset-right));
    padding-left: calc(10px + env(safe-area-inset-left));
  }
  .main-nav a,
  .main-nav .nav-parent {
    padding: 0 7px;
    font-size: 12.5px;
  }
  .keynote-profile-card {
    padding-right: 11px;
    padding-left: 11px;
  }
}

/* Sticky navigation v5: keep navigation available without covering reading content. */
@media (min-width: 700px) {
  .right-rail {
    position: sticky;
    top: 18px;
    align-self: start;
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding-right: 4px;
  }
}

@media (max-width: 699px) {
  .right-rail {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    z-index: 40;
    align-self: start;
    max-height: calc(100vh - 16px - env(safe-area-inset-top));
    max-height: calc(100dvh - 16px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    box-shadow: 0 5px 16px rgba(20, 55, 80, .10);
  }

  .right-rail.mobile-rail-enhanced:not(.mobile-rail-open) {
    overflow-y: hidden;
  }

  .right-rail.mobile-rail-enhanced.mobile-rail-open {
    overflow-y: auto;
  }

  .mobile-rail-toggle {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fcfe;
  }

  .main-nav {
    position: relative;
    z-index: 60;
  }
}


/* Navigation interaction v6: desktop hover clarity + phone dropdown overlay. */
.main-nav a,
.main-nav .nav-parent,
.dropdown-menu a {
  transition: background-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

/* Keep the selected page visible, but make pointer hover substantially clearer. */
.main-nav a.active,
.main-nav .nav-dropdown > .nav-parent.active {
  background: #2c1bb7;
  box-shadow: inset 0 -3px 0 #8bd1f0;
}

@media (hover: hover) and (pointer: fine) {
  .main-nav > a:hover,
  .main-nav > .nav-dropdown:hover > .nav-parent,
  .main-nav > .nav-dropdown:focus-within > .nav-parent {
    background: #4734d4;
    box-shadow: inset 0 -4px 0 #9eddf7;
  }

  .main-nav .dropdown-menu a:hover,
  .main-nav .dropdown-menu a:focus-visible {
    background: #4734d4;
    box-shadow: inset 5px 0 0 #9eddf7;
  }
}

.main-nav a:focus-visible,
.main-nav .nav-parent:focus-visible {
  outline: 2px solid #b9e9fb;
  outline-offset: -2px;
}

@media (max-width: 699px) {
  /* On phones the Attendee submenu behaves like the desktop dropdown:
     it floats above the page instead of expanding the navigation bar. */
  .main-nav {
    overflow: visible;
    isolation: isolate;
  }

  .main-nav .nav-dropdown {
    position: relative;
  }

  .main-nav .nav-dropdown > .nav-parent::after {
    content: "▾";
    display: inline-block;
    margin-left: 6px;
    font-size: .72em;
    line-height: 1;
    transform-origin: 50% 45%;
    transition: transform 120ms ease;
  }

  .main-nav .nav-dropdown.nav-dropdown-open > .nav-parent::after {
    transform: rotate(180deg);
  }

  .main-nav .nav-dropdown .dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    width: min(230px, calc(100vw - 28px - env(safe-area-inset-left) - env(safe-area-inset-right)));
    min-width: 190px;
    margin: 0;
    padding: 4px 0;
    display: none;
    background: #15008a;
    border: 1px solid #3426b4;
    box-shadow: 0 10px 24px rgba(20, 10, 90, .28);
    z-index: 120;
  }

  /* Do not let persistent touch-hover/focus states keep the menu open.
     The JavaScript-controlled class is the single owner on phone layouts. */
  .main-nav .nav-dropdown:hover .dropdown-menu,
  .main-nav .nav-dropdown:focus-within .dropdown-menu {
    display: none;
  }

  .main-nav .nav-dropdown.nav-dropdown-open .dropdown-menu {
    display: block;
  }

  .main-nav .dropdown-menu a {
    display: block;
    width: 100%;
    min-height: 42px;
    height: auto;
    padding: 11px 14px;
    line-height: 1.25;
    white-space: normal;
    background: #15008a;
  }

  .main-nav .dropdown-menu a:active,
  .main-nav .dropdown-menu a.active {
    background: #4734d4;
    box-shadow: inset 5px 0 0 #9eddf7;
  }

  .main-nav > a:active,
  .main-nav > .nav-dropdown > .nav-parent:active,
  .main-nav > .nav-dropdown.nav-dropdown-open > .nav-parent {
    background: #4734d4;
    box-shadow: inset 0 -4px 0 #9eddf7;
  }
}

/* 首页最新动态 */
.program-updates {
  margin: 4px 0 24px;
  border: 1px solid #b8dbe8;
  background: #fbfdfe;
  overflow: hidden;
}
.program-updates-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid #d9eef6;
  background: #eef8fd;
}
.program-updates-heading h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.program-updates-label {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #0057a8;
  color: #ffffff;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
}
.program-updates-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.program-update-item {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 10px 16px;
  border-top: 1px solid #e4f1f6;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}
.program-update-item:first-child { border-top: 0; }
.program-update-item.is-active {
  background: #eef8fd;
  box-shadow: inset 4px 0 0 #0057a8;
}
.program-update-date {
  color: #5b6a73;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 12px;
  white-space: nowrap;
}
.program-update-link {
  color: #163e5a;
  font-weight: 700;
  line-height: 1.35;
}
.program-update-link:hover,
.program-update-link:focus { color: #0057a8; }
.program-update-badge {
  padding: 2px 6px;
  border: 1px solid #0057a8;
  color: #0057a8;
  font-family: Arial, Helvetica, "Noto Sans SC", sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}
.program-updates-loading,
.program-updates-noscript {
  margin: 0 !important;
  padding: 14px 16px;
  color: #5b6a73;
  font-size: 14px;
}
@media (max-width: 700px) {
  .program-updates-heading { padding: 12px 13px; }
  .program-update-item {
    grid-template-columns: 1fr auto;
    gap: 5px 10px;
    padding: 10px 13px;
  }
  .program-update-date { grid-column: 1 / 2; }
  .program-update-link { grid-column: 1 / -1; }
  .program-update-badge {
    grid-column: 2 / 3;
    grid-row: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .program-update-item { transition: none; }
}
