/* Phone layouts share the existing wine, gold and editorial type system. */
@media (max-width: 760px) {
  :root {
    --mobile-gutter: clamp(18px, 5vw, 28px);
    --mobile-page-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  html.document-route {
    scroll-snap-type: none;
    scroll-padding-top: calc(var(--head-safe) + 16px);
    scroll-padding-bottom: var(--mobile-page-bottom);
    overflow-anchor: auto;
  }

  .fx-document .page-panel {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
    padding: calc(var(--head-safe) + 24px) var(--mobile-gutter) var(--mobile-page-bottom);
  }

  .fx-document .page-panel-inner {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 28px;
    align-content: start;
  }

  .fx-document .panel-copy,
  .fx-document .join-form-panel {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
  }

  .fx-document .panel-copy h1,
  .fx-document .panel-copy h2 {
    font-size: clamp(29px, 7.8vw, 44px);
    line-height: 1.35;
    letter-spacing: -.045em;
  }

  .fx-document .panel-prose { margin-top: 18px; }
  .fx-document .panel-prose p { font-size: 16px; line-height: 1.85; }
  .fx-document :is(input, select, textarea) {
    scroll-margin-top: calc(var(--head-safe) + 20px);
    scroll-margin-bottom: var(--mobile-page-bottom);
  }

  .honours-selected .honours-year::before { inset-inline: 0; }

  /* Route navigation stays at the thumb edge without covering page content. */
  .section-dock {
    inset: auto 0 0;
    transform: none;
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border: 0;
    border-top: 1px solid #dbbd8a2e;
    border-radius: 0;
    background: #1c0d14f5;
    box-shadow: 0 -8px 28px #0002;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .section-dock a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 44px;
    padding: 10px 4px;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0;
    color: #bca9a3;
  }

  .section-dock a[aria-current] {
    color: #f0d3a0;
    background: transparent;
    box-shadow: inset 0 2px #d9ba83;
  }

  .section-dock a:focus-visible { outline-offset: -3px; }

  /* Forms remain readable with the software keyboard and larger text. */
  .join-panel .page-panel-inner { gap: 28px; }
  .join-panel + .join-panel { border-top: 1px solid #dbbd8a26; }
  .join-panel .panel-prose br { display: none; }
  .join-panel .panel-prose { max-width: 29em; }
  .join-form { padding-top: 22px; }
  .join-form-heading { margin-bottom: 22px; gap: 12px; }
  .join-form-heading h3 { font-size: 20px; }
  .join-form-heading > span { font-size: 12px; }
  .join-fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .join-field.full { grid-column: auto; }
  .join-field { font-size: 15px; gap: 8px; }
  .join-field :is(input, select, textarea) { min-height: 48px; font-size: 16px; padding: 12px; }
  .join-field textarea { min-height: 112px; }
  .join-consent { min-height: 44px; align-items: flex-start; font-size: 14px; line-height: 1.75; }
  .join-consent input { width: 20px; height: 20px; margin-top: 3px; }
  .join-submit { min-height: 52px; border-radius: 4px; }
  .join-status { font-size: 15px; line-height: 1.75; }

  /* Video posters need an explicit play affordance on touch screens. */
  .video-library {
    padding: calc(var(--head-safe) + 24px) var(--mobile-gutter) 40px;
    min-height: 0;
  }
  .video-library > #library-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 28px;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    font-size: 32px;
    line-height: 1.25;
    letter-spacing: -.04em;
    font-weight: 400;
  }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .video-card { scroll-margin-top: calc(var(--head-safe) + 20px); }
  .video-cover { border-radius: 6px; }
  .video-play-symbol { opacity: 1; }
  .video-play-symbol svg { width: 48px; height: 48px; padding: 12px; }
  .video-card h2 { font-size: 17px; line-height: 1.6; margin-top: 13px; }
  .video-dialog {
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
    border-radius: 8px;
  }
  .video-dialog-header { gap: 8px; padding: 10px 8px 10px 16px; }
  .video-dialog-header h2 { font-size: 15px; line-height: 1.6; }
  .video-dialog-fullscreen { min-height: 44px; padding: 9px; }
  .video-dialog-fullscreen span { display: none; }
  .video-dialog-error { font-size: 14px; line-height: 1.75; }

  .origin-story { padding: calc(var(--head-safe) + 24px) var(--mobile-gutter) var(--mobile-page-bottom); }
  .origin-heading { margin-bottom: 22px; }
  .origin-heading h1 { font-size: 14px; letter-spacing: .08em; gap: 12px; }
  .origin-heading h1:before { width: 24px; }
  .origin-statement { font-size: clamp(28px, 7.5vw, 42px); line-height: 1.45; letter-spacing: -.045em; }
  .origin-statement em { white-space: normal; }
  .origin-visual-story { margin: 12px 0 30px; }
  .origin-art { max-width: 460px; margin-inline: auto; }
  .origin-vision { max-width: 460px; margin: -10px auto 0; }
  .origin-prose p { font-size: 16px; line-height: 1.95; margin-bottom: 22px; }

  .mentor-team { padding: calc(var(--head-safe) + 24px) var(--mobile-gutter) var(--mobile-page-bottom); }
  .mentor-page-heading { display: block; margin-bottom: 26px; }
  .mentor-page-heading h1 { font-size: 32px; line-height: 1.25; }
  .mentor-page-heading > p { font-size: 15px; line-height: 1.8; margin-top: 12px; max-width: none; }
  .mentor-page-heading > p br { display: none; }
  .mentor-directory { border-top: 0; }
  .mentor-index { gap: 20px; }
  .mentor-selector { min-height: 44px; }
  .mentor-selector-count,
  .mentor-selector-focus { font-size: 12px; }
  .mentor-selector-name { font-size: 17px; }
  .mentor-mobile-picker { display: grid; gap: 10px; margin: 0 0 28px; font-size: 13px; line-height: 1.5; color: #bda89f; }
  .mentor-mobile-picker select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px;
    border: 1px solid #dbbd8a50;
    border-radius: 4px;
    background: #211017;
    color: #f0e7db;
    color-scheme: dark;
    font: 400 16px/1.5 Sora, "PingFang SC", "Microsoft YaHei", sans-serif;
  }
  .mentor-mobile-picker select:focus-visible { outline: 2px solid #d5b782; outline-offset: 3px; }
  .mentor-directory.has-mobile-picker .mentor-index { display: none; }
  .mentor-stage { padding-top: 0; }
  .mentor-directory.is-enhanced .mentor-stage { min-height: 0; }
  .mentor-profile { padding-bottom: 12px; }
  .mentor-profile-topline { margin-bottom: 18px; gap: 12px; }
  .mentor-profile-topline p,
  .mentor-profile-topline > span { font-size: 12px; line-height: 1.6; letter-spacing: .02em; }
  .mentor-profile h2 { font-size: clamp(35px, 9vw, 54px); line-height: 1.15; letter-spacing: -.055em; margin-bottom: 24px; overflow-wrap: anywhere; }
  .mentor-native-name { margin-left: 10px; font-size: 17px; }
  .mentor-qualification { font-size: 22px; line-height: 1.6; }
  .mentor-profile-intro { font-size: 16px; line-height: 1.85; }
  .mentor-biography { grid-template-columns: minmax(0, 1fr); gap: 18px; font-size: 16px; line-height: 1.9; margin-top: 24px; padding-top: 22px; }
  .mentor-biography p { max-width: none; }
  .advisor-section { margin-top: 34px; padding-top: 28px; }
  .advisor-heading { margin-bottom: 10px; }
  .advisor-heading h2 { font-size: 25px; }
  .advisor-heading > p { font-size: 12px; }
  .advisor-dossier > summary { min-height: 64px; grid-template-columns: 20px minmax(0, 1fr) 20px; gap: 12px; padding: 18px 0; }
  .advisor-dossier:first-child > summary { padding-top: 18px; }
  .advisor-slot-number { font-size: 12px; }
  .advisor-person { gap: 2px 12px; }
  .advisor-person strong { font-size: 20px; }
  .advisor-person > span { font-size: 12px; }
  .advisor-discipline { display: none; }
  .advisor-dossier-body { padding: 4px 0 24px; }
  .advisor-dossier-body .mentor-qualification { font-size: 20px; }
  .advisor-dossier-body .mentor-profile-intro,
  .advisor-dossier-body .mentor-biography { font-size: 15px; }
  .advisor-profile-links { gap: 4px 22px; margin-top: 16px; font-size: 13px; }
  .advisor-profile-links a { display: inline-flex; align-items: center; min-height: 44px; }

  .honours-page { padding: calc(var(--head-safe) + 24px) var(--mobile-gutter) var(--mobile-page-bottom); min-height: 0; overflow: visible; }
  .honours-heading { margin-bottom: 24px; gap: 12px; }
  .honours-heading h1 { font-size: 32px; line-height: 1.25; }
  .honours-period { font-size: 12px; letter-spacing: 0; }
  .honours-years { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 8px; padding-bottom: 16px; }
  .honours-years button,
  .honours-years button:last-child { min-height: 44px; padding: 10px 0; font-size: 14px; line-height: 1.5; }
  .honours-years button:last-child { grid-column: span 2; }
  .honours-years button[aria-pressed=true] { background: #dbbd8a13; }
  .honours-years button:after { height: 2px; }
  .honours-year,
  .honours-selected .honours-year { padding: 30px 0; }
  .honours-year-heading,
  .honours-selected .honours-year-heading { margin-bottom: 26px; }
  .honours-year-heading h2 { font-size: 40px; }
  .honours-selected .honours-year-heading h2 { font-size: 58px; }
  .honours-selected .honours-year-heading:after { width: 72px; height: 2px; margin-top: 18px; }
  .honours-composition,
  .honours-selected .honours-composition,
  .honours-selected .honours-latest .honours-composition { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 0; }
  .honour-item,
  .honours-selected .honour-item,
  .honours-selected .honours-latest .honour-item { gap: 12px; }
  .award-name,
  .honours-selected .award-name { font-size: 22px; }
  .honours-event,
  .honours-selected .honours-latest .honours-event { font-size: 15px; line-height: 1.85; max-width: none; }
  .honours-selected .honours-latest .award-name { font-size: 30px; line-height: 1.45; }
  .honours-selected .honours-latest .honour-awards-expanded { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .honours-selected .honours-latest .honour-awards-expanded .award-name { font-size: 32px; }
  .honours-selected .honours-latest .honour-awards-expanded .award-technical { font-size: 16px; }

  .campus-route .campus-panel .page-panel-inner { gap: 22px; }
  .campus-copy h1 { font-size: clamp(29px, 7.8vw, 44px); }
  .campus-intro { font-size: 15px; line-height: 1.85; margin-top: 20px; letter-spacing: 0; }
  .campus-views { gap: 12px; margin-top: 24px; }
  .campus-views button { flex: 1; min-height: 46px; font-size: 15px; padding: 10px 8px; border: 1px solid #b3986740; border-radius: 4px; }
  .campus-views button[aria-pressed=true] { background: #dbbd8a12; }
  .campus-view-hint { font-size: 13px; line-height: 1.8; min-height: 0; max-width: none; margin-top: 14px; }
  .campus-experience { margin: 0; }
  .campus-stage { width: calc(100% + 2 * var(--mobile-gutter)); margin-inline: calc(-1 * var(--mobile-gutter)); aspect-ratio: 1.12; }
  .campus-functions { margin: 4px 0 0; padding-top: 26px; }
  .campus-functions > h2,
  .campus-interiors h2 { font-size: 24px; line-height: 1.45; }
  .campus-functions > h2 { margin-bottom: 24px; }
  .campus-function-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .campus-function-grid h3 { font-size: 17px; margin-bottom: 8px; }
  .campus-function-grid p { font-size: 15px; line-height: 1.85; max-width: none; }
  .campus-interiors { margin: 14px 0 0; padding-top: 26px; }
  .campus-interiors > header { margin-bottom: 22px; }
  .campus-interiors > header p { font-size: 13px; }
  .campus-interior-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .campus-interior-grid figcaption { font-size: 15px; margin-top: 12px; }
  .campus-interior-grid figcaption span { font-size: 13px; }
}
