/* Layout informed by APEMC 2026/2027; Helvetica/Arial follows the 2026 site. */
:root {
  font-family: Helvetica, Arial, sans-serif;
  color: #333;
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue: #1b588c;
  --line: #dedede;
  --container: 1160px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #067394; }
a:focus-visible, button:focus-visible { outline: 2px solid #0477a5; outline-offset: 3px; }
img { max-width: 100%; display: block; }
p { margin: 0 0 18px; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 200; top: -60px; left: 12px; padding: 12px; background: #fff; }
.skip-link:focus { top: 12px; }

/* Conference heading and the single row of navigation. */
.site-header { background: #fff; }
.masthead { min-height: 160px; display: grid; grid-template-columns: 136px minmax(0, 1fr) auto; grid-template-areas: "brand heading location"; align-items: center; gap: 28px; padding-block: 12px; }
.brand { grid-area: brand; display: block; width: 136px; aspect-ratio: 1; }
.brand img { width: 100%; height: 100%; object-fit: contain; }
.conference-heading { grid-area: heading; min-width: 0; color: #164e80; }
.conference-heading p { font-size: 24px; line-height: 1.45; font-weight: 700; margin: 0; }
.conference-heading p + p { margin-top: 4px; }
.masthead-location { grid-area: location; display: flex; flex-direction: column; gap: 7px; text-align: right; white-space: nowrap; }
.masthead-location strong { color: #b83d40; font-size: 19px; }
.masthead-location span { color: #1b588c; font-size: 17px; }
.primary-navigation { position: relative; z-index: 20; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.navigation-list, .dropdown { list-style: none; padding: 0; margin: 0; }
.navigation-list { display: flex; justify-content: space-between; }
.navigation-list > li { position: relative; }
.nav-item-row { display: flex; align-items: stretch; }
.nav-item-row > a { display: flex; align-items: center; min-height: 52px; padding: 0 14px; color: #292929; font-size: 16px; white-space: nowrap; }
.nav-item-row:has(button) > a { padding-right: 5px; }
.submenu-toggle { display: grid; place-items: center; padding: 0 10px 0 3px; border: 0; cursor: pointer; color: #526475; background: transparent; }
.is-active > .nav-item-row { background: #d9edf8; }
.nav-item-row:hover, .is-expanded > .nav-item-row { background: #eaf5fb; }
.dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 235px; border: 1px solid #ddd; border-top: 2px solid #2e86b6; background: #fff; box-shadow: 0 5px 10px #16394f12; }
.navigation-list > li:last-child .dropdown { left: auto; right: 0; }
.is-expanded > .dropdown { display: block; }
.dropdown a { display: block; padding: 13px 17px; font-size: 15px; line-height: 1.4; color: #333; }
.dropdown li + li { border-top: 1px solid #eee; }
.dropdown a:hover, .dropdown a:focus-visible { background: #eaf5fb; color: var(--blue); }
.mobile-toggle { display: none; }

/* Homepage: a short photographic banner, introduction and dates only. */
.conference-banner { position: relative; height: 310px; color: #fff; overflow: hidden; background: #20545e; }
.banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #083851d9 0%, #093b4d9c 42%, #173f4c26 76%, #173f4c12 100%); }
.banner-content { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.banner-welcome { font-size: 16px; margin: 0 0 8px; }
.banner-content h1 { font-size: 47px; line-height: 1.1; margin: 0 0 11px; letter-spacing: .015em; }
.banner-name { font-size: 22px; font-weight: 700; line-height: 1.35; margin: 0 0 20px; text-shadow: 0 1px 2px #0002; }
.banner-date { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; margin: 0; }
.banner-date svg { flex-shrink: 0; }
.banner-separator { height: 19px; width: 1px; background: #ffffff70; margin: 0 8px; }
.home-content { display: grid; grid-template-columns: minmax(0,1.32fr) minmax(0,1fr); gap: 55px; padding-block: 40px 43px; }
.section-title { display: flex; gap: 10px; align-items: center; font-size: 23px; font-weight: 700; color: var(--blue); border-bottom: 2px solid #dbe7ed; padding-bottom: 12px; margin: 0 0 19px; line-height: 1.2; }
.introduction p { font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.introduction p strong { font-weight: 600; }
.more-link { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; margin-top: 2px; }
.dates-table { border-collapse: collapse; width: 100%; font-size: 16px; line-height: 1.6; }
.dates-table th, .dates-table td { padding: 18px 12px; text-align: left; border-bottom: 1px solid #e4e4e4; vertical-align: middle; }
.dates-table th { font-weight: 400; padding-left: 0; }
.dates-table td { color: #777; white-space: nowrap; padding-right: 0; }
.dates-table .confirmed-date th { font-weight: 700; color: var(--blue); }
.dates-table .confirmed-date td { color: #b3373c; font-weight: 700; }
.dates-note { color: #777; font-size: 14px; line-height: 1.5; margin: 16px 0 0; }

/* Shared desktop rows align the headings, main content and closing lines. */
@media (min-width: 961px) {
  .home-content { grid-template-rows: auto 1fr auto; row-gap: 0; }
  .introduction, .home-dates { display: grid; grid-row: 1 / span 3; grid-template-rows: subgrid; }
  .introduction { grid-column: 1; }
  .home-dates { grid-column: 2; }
  .introduction-text p:last-child { margin-bottom: 0; }
  .introduction > .more-link { justify-self: start; align-self: end; line-height: 1.5; margin-top: 16px; }
  .home-dates .dates-table { height: 100%; }
  .home-dates .dates-table tr { height: 25%; }
  .home-dates .dates-note { align-self: end; }
}

/* Inner pages share a banner, section navigation and a regular content column. */
.page-banner { padding: 30px 0; background: #ecf4f8; border-bottom: 1px solid #dce7ed; }
.page-banner p { margin: 0 0 7px; color: #637e91; font-size: 14px; }
.page-banner h1 { margin: 0; color: var(--blue); font-size: 30px; line-height: 1.3; }
.detail-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-block: 42px 70px; min-height: 440px; }
.section-sidebar h2 { margin: 0; padding: 22px 16px; text-align: center; font-size: 20px; color: var(--blue); border: 1px solid #d6d6d6; border-top: 3px solid var(--blue); }
.section-sidebar a { display: block; font-size: 14px; line-height: 1.5; padding: 15px; border: 1px solid #d6d6d6; border-top: 0; color: #444; }
.section-sidebar a:hover, .section-sidebar a[aria-current] { color: var(--blue); background: #edf6fb; }
.breadcrumbs { display: flex; gap: 9px; flex-wrap: wrap; color: #888; font-size: 13px; margin: 0 0 24px; }
.content-title { margin: 0 0 27px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 26px; color: #222; }
.detail-content { font-size: 16px; line-height: 1.8; min-width: 0; }
.detail-content h2:not(.content-title) { font-size: 21px; color: var(--blue); margin: 0 0 14px; }
.detail-section { scroll-margin-top: 24px; margin-bottom: 36px; }
.detail-section:last-child { margin-bottom: 0; }
.information-notice { background: #f7f9fa; border-left: 3px solid #93b6ce; padding: 21px 24px; margin: 24px 0; }
.information-notice > strong { color: var(--blue); }
.information-notice p { margin: 6px 0 0; }
.topics-list { padding: 0 0 0 22px; margin: 22px 0 32px; }
.topics-list li { margin-bottom: 12px; }
.topics-list strong, .topics-list span { display: block; }
.topics-list span { color: #666; font-size: 15px; }
.destination-photo { margin: 20px 0 30px; }
.destination-photo img { width: 100%; max-height: 350px; object-fit: cover; }
.destination-photo figcaption { color: #777; font-size: 12px; margin-top: 6px; }

.site-footer { border-top: 1px solid #dfe4e7; padding: 23px 0 15px; background: #f4f6f7; color: #626a70; font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-inner strong { color: var(--blue); font-size: 17px; }
.footer-inner p { margin: 8px 0 0; line-height: 1.5; }
.footer-right { text-align: right; }
.footer-right nav span { margin: 0 9px; color: #adb3b8; }
.photo-credit { margin-top: 13px; font-size: 11px; }
.photo-credit a { color: #7d858b; }
.photo-credit:empty { display: none; }

@media (max-width: 1150px) and (min-width: 961px) {
  .nav-item-row > a { font-size: 14px; padding-inline: 10px; }
  .masthead { gap: 24px; }
  .conference-heading p { font-size: 22px; }
  .masthead-location strong { font-size: 17px; }
}
@media (max-width: 960px) {
  .masthead { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "brand heading" "brand location"; gap: 8px 24px; padding-block: 16px; }
  .brand { width: 112px; }
  .conference-heading { align-self: end; }
  .conference-heading p { font-size: 20px; }
  .masthead-location { align-self: start; flex-direction: row; flex-wrap: wrap; gap: 6px 12px; text-align: left; white-space: normal; }
  .masthead-location strong { font-size: 16px; }
  .masthead-location span { font-size: 15px; }
  .mobile-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 48px; padding: 0; border: 0; color: #333; background: #fff; cursor: pointer; }
  .mobile-toggle > span:first-child { display: flex; gap: 9px; align-items: center; }
  .mobile-conference { color: var(--blue); font-size: 14px; }
  .navigation-list { display: none; padding-bottom: 12px; }
  .navigation-list.is-open { display: block; }
  .nav-item-row { border-top: 1px solid #eee; }
  .nav-item-row > a { flex: 1; min-height: 46px; }
  .submenu-toggle { width: 48px; padding: 0; }
  .dropdown { position: static; box-shadow: none; border: 0; border-left: 2px solid #add3e8; margin-left: 22px; }
  .home-content { gap: 32px; grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 205px minmax(0,1fr); gap: 30px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .masthead { min-height: 136px; grid-template-columns: 88px minmax(0, 1fr); gap: 8px 14px; padding-block: 12px; }
  .brand { width: 88px; }
  .conference-heading p { font-size: 14px; line-height: 1.4; }
  .masthead-location { flex-direction: row; flex-wrap: wrap; gap: 3px 8px; text-align: left; white-space: normal; }
  .masthead-location strong, .masthead-location span { font-size: 12px; }
  .conference-banner { height: 283px; }
  .banner-content h1 { font-size: 36px; }
  .banner-welcome { font-size: 14px; }
  .banner-name { font-size: 17px; line-height: 1.5; margin-bottom: 17px; }
  .banner-date { font-size: 13px; gap: 6px; flex-wrap: wrap; }
  .banner-date svg { width: 16px; }
  .banner-separator { margin: 0 2px; }
  .banner-photo { object-position: 58% center; }
  .banner-shade { background: #07374dcc; }
  .home-content { padding-block: 28px 35px; gap: 30px; }
  .section-title { font-size: 21px; margin-bottom: 15px; }
  .introduction p { font-size: 15px; line-height: 1.75; }
  .dates-table { font-size: 14px; }
  .dates-table th, .dates-table td { padding-block: 14px; }
  .dates-note { font-size: 13px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-right { text-align: left; }
  .page-banner { padding-block: 23px; }
  .page-banner h1 { font-size: 25px; }
  .detail-layout { display: flex; flex-direction: column; padding-block: 27px 40px; gap: 28px; }
  .section-sidebar h2 { padding: 12px; font-size: 18px; }
  .section-sidebar nav { display: flex; flex-wrap: wrap; border-left: 1px solid #d6d6d6; }
  .section-sidebar a { flex: 1 1 50%; border-left: 0; padding: 11px; font-size: 13px; }
  .detail-content { font-size: 15px; }
  .content-title { font-size: 24px; }
  .information-notice { padding: 18px; }
}
@media (max-width: 360px) {
  .masthead { grid-template-columns: 68px minmax(0, 1fr); column-gap: 12px; }
  .brand { width: 68px; }
  .conference-heading p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
