/* Campus field guide: soft structuralism, CityU magenta accent, nested surfaces. */
:root {
  color-scheme: light;
  --paper: #f8f9fc;
  --surface: #ffffff;
  --ink: #242338;
  --muted: #626579;
  --primary: #bf165e;
  --primary-hover: #a3124f;
  --accent-soft: #fcecf3;
  --accent-text: #bf165e;
  --tray: #eeeff5;
  --line: #e7e8f0;
  --control-edge: #9693aa;
  --warning-bg: #fff6e8;
  --warning-text: #735221;
  --focus: #bf165e;
  --shadow: 0 12px 40px rgb(38 32 82 / 5%), 0 2px 6px rgb(38 32 82 / 2%);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --radius: 28px;
  --layer-skip: 30;
  --font: 'Avenir Next', 'Avenir', 'Century Gothic', 'Trebuchet MS', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--font); -webkit-tap-highlight-color: rgb(191 22 94 / 12%); }
a { color: inherit; }
button, input, select { font: inherit; }
a, button, input, select, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; color: #6a687c; background: #e5e5ee; box-shadow: none; }
button:disabled .button-icon { background: #d8d8e3; }
:where(a, button, input, select, summary):focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
:where(h1, h2, h3, main):focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.8vw, 68px); font-weight: 650; }
h2 { font-size: 30px; font-weight: 650; }
h3 { font-size: 25px; font-weight: 650; }
p { text-wrap: pretty; }
:where(h1, h2, h3) { scroll-margin-top: 24px; }
:where(.room-code, .progress-meta, .reference-count, .context-status) { font-variant-numeric: tabular-nums; }
:where(.hero-copy, .card-body, .route-option-copy, .step-panel, .guide-media, .hold-intro) { min-width: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; top: 16px; left: 16px; transform: translateY(-180%); z-index: var(--layer-skip); background: var(--surface); color: var(--ink); padding: 14px 20px; border-radius: 12px; box-shadow: var(--shadow); }
.skip-link:focus { transform: translateY(0); }
.site-header { max-width: 1224px; margin: 24px auto 0; padding: 12px 16px 12px 20px; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--surface); border-radius: 100px; box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 90%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 15px; font-weight: 700; line-height: 1.35; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .035em; margin-top: 2px; }
.brand-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); border-radius: 50%; }
.brand-icon svg { width: 25px; height: 25px; }
.site-header nav { display: flex; align-items: center; gap: 12px; }
.nav-link, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; font-size: 13px; font-weight: 600; padding: 12px 18px; min-height: 44px; border: 0; border-radius: 100px; background: transparent; transition: transform 180ms var(--ease), background-color 180ms var(--ease); }
.nav-link { background: var(--paper); }
.text-button:hover, .nav-link:hover { background: var(--accent-soft); }
.shell { width: min(1224px, calc(100% - 80px)); margin: auto; padding: 56px 0 80px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; padding: 24px 0 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border-radius: 100px; color: var(--accent-text); background: var(--accent-soft); font-size: 11px; font-weight: 650; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; padding: 7px 12px; margin-bottom: 20px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.hero h1 { margin: 4px 0 22px; font-size: clamp(42px, 4.8vw, 72px); letter-spacing: -.055em; }
.hero h1 span, .complete h1 span { color: var(--primary); }
.hero-description { max-width: 455px; font-size: 17px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.search-box { max-width: 520px; }
.search-box label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 10px; }
.input-shell { background: var(--tray); padding: 5px; border-radius: 100px; }
.search-input { background: var(--surface); display: flex; gap: 12px; align-items: center; padding: 5px 5px 5px 20px; border-radius: 100px; box-shadow: inset 0 1px 0 white, var(--shadow); }
.input-shell:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.search-input > .icon { color: var(--muted); }
.search-input input { width: 100%; min-width: 0; padding: 10px 0; border: 0; background: transparent; font-size: 15px; min-height: 44px; color: var(--ink); border-radius: 6px; }
.search-input input::placeholder { color: var(--muted); }
.search-submit { min-width: 46px; height: 46px; border: 0; border-radius: 50%; color: white; background: var(--primary); display: grid; place-items: center; transition: transform 180ms var(--ease); }
.search-submit:hover { transform: translateX(2px); background: var(--primary-hover); }
.quick-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 12px; }
.quick-search > span { color: var(--muted); margin-right: 3px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 0; border-radius: 100px; background: transparent; font-size: 12px; color: var(--accent-text); box-shadow: inset 0 0 0 1px rgb(191 22 94 / 16%); transition: transform 180ms var(--ease), background-color 180ms var(--ease); }
.chip:hover { background: var(--accent-soft); transform: translateY(-1px); }
.hero-art { position: relative; padding: 0 16px 36px 0; }
.hero-photo-shell { padding: 8px; background: linear-gradient(to right, rgb(223, 116, 51) 0px, rgb(218, 86, 43) 35%, rgb(204, 16, 60) 80%, rgb(159, 13, 67) 100%); border-radius: 36px; box-shadow: var(--shadow), inset 0 1px 1px white; transform: rotate(2deg); }
.hero-photo-core { border-radius: 28px; overflow: hidden; position: relative; background: #e9d8b3; }
.hero-photo-core > img { display: block; width: 110%; height: 355px; object-fit: cover; }
.hero-photo-caption { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; align-items: center; gap: 10px; color: #fff; text-shadow: 0 1px 6px rgb(0 0 0 / 55%); font-size: 12px; font-weight: 650; }
.hero-photo-caption > span:last-child { background: rgb(25 24 38 / 85%); padding: 7px 12px; border-radius: 100px; }
.badge { display: inline-flex; align-items: center; background: var(--accent-soft); color: var(--accent-text); padding: 6px 11px; border-radius: 100px; font-size: 12px; font-weight: 650; line-height: 1.5; }
.badge-light { color: var(--ink); background: var(--surface); text-shadow: none; }
.floating-reference { position: relative; margin: -40px 20px 0 -22px; display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 22px; background: var(--surface); box-shadow: 0 18px 60px rgb(41 35 82 / 9%), inset 0 1px 1px white; }
.reference-symbol { width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; }
.floating-reference strong { display: block; font-size: 16px; }
.floating-reference small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.reference-count { margin-left: auto; font-size: 30px; font-weight: 500; color: var(--primary); white-space: nowrap; }
.reference-count span { font-size: 12px; color: var(--muted); margin-left: 2px; }
.hero-index { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 22px; }
.hero-index > span:first-child { letter-spacing: .12em; }
.destination-section { padding: 0 0 80px; }
.section-line { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-line .eyebrow { margin-bottom: 12px; }
.section-line h2 { margin-bottom: 0; font-size: 32px; }
.section-line > p { color: var(--muted); font-size: 12px; margin-bottom: 4px; overflow-wrap: anywhere; }
.destination-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.destination-card { display: block; background: var(--tray); padding: 6px; border-radius: 30px; text-decoration: none; box-shadow: inset 0 1px 1px white; transition: transform 350ms var(--ease), box-shadow 350ms var(--ease); }
.destination-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgb(43 36 85 / 8%); }
.destination-card:active { transform: scale(.99); }
.card-core { height: 100%; background: var(--surface); border-radius: 24px; overflow: hidden; }
.card-photo { height: 195px; position: relative; overflow: hidden; background: #e6e7ec; }
.card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 550ms var(--ease); }
.destination-card:hover .card-photo img { transform: scale(1.025); }
.photo-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 100px; background: var(--surface); color: var(--ink); padding: 8px 12px; box-shadow: var(--shadow); }
.photo-tag .icon { width: 16px; height: 16px; }
.card-photo .photo-tag { position: absolute; left: 18px; bottom: 18px; }
.card-body { padding: 24px 26px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.meta-label { color: var(--muted); font-size: 12px; font-weight: 600; }
.card-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.card-heading h3 { font-size: 25px; margin-bottom: 10px; max-width: 310px; }
.card-heading .button-icon { color: var(--primary); background: var(--accent-soft); }
.button-icon { display: grid; place-items: center; border-radius: 50%; width: 34px; height: 34px; min-width: 34px; color: inherit; background: rgb(255 255 255 / 15%); transition: transform 250ms var(--ease); }
.destination-card:hover .button-icon { transform: translate(2px,-2px); }
.room-code { font-size: 16px; font-weight: 650; color: var(--primary); letter-spacing: .02em; margin-bottom: 8px; }
.card-description { font-size: 13px; color: var(--muted); min-height: 42px; margin-bottom: 22px; }
.card-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12px; font-weight: 600; }
.card-link > span:first-child { color: var(--muted); font-weight: 500; }
.card-link > span:last-child { display: inline-flex; align-items: center; gap: 8px; }
.card-link .icon { width: 17px; height: 17px; }
.field-note { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; padding: 48px; background: #fbf3f7; border-radius: 30px; }
.field-note-title { display: flex; align-items: start; gap: 20px; }
.note-symbol { width: 44px; height: 44px; min-width: 44px; display: grid; place-items: center; background: var(--surface); color: var(--primary); border-radius: 14px; }
.field-note h2 { font-size: 27px; margin: 0; }
.field-note-copy > p { font-size: 15px; color: var(--muted); max-width: 440px; }
.guide-principles { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin-bottom: 16px; }
.guide-principles > span { display: inline-flex; align-items: center; gap: 5px; }
.guide-principles .icon { width: 16px; height: 16px; color: var(--primary); }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; min-height: 44px; background: none; border: 0; text-decoration: none; font-size: 13px; font-weight: 650; color: var(--primary); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.empty { grid-column: 1 / -1; padding: 44px; background: var(--surface); border-radius: 28px; text-align: center; }
.empty-icon { color: var(--primary); display: inline-flex; padding: 16px; background: var(--accent-soft); border-radius: 50%; margin-bottom: 16px; }
.empty p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; }
.empty-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.back-button { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); background: none; border: 0; border-radius: 100px; font-size: 13px; font-weight: 600; text-decoration: none; padding: 10px 0; min-height: 44px; margin-bottom: 26px; }
.back-button:hover { color: var(--primary); }
.overview-shell { padding-top: 32px; }
.overview-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.destination-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.overview-head h1 { font-size: 50px; margin-bottom: 16px; }
.large-code { font-size: 24px; margin-bottom: 10px; }
.muted { color: var(--muted); }
.overview-head .muted { max-width: 440px; font-size: 14px; }
.overview-photo-shell { padding: 7px; border-radius: 30px; background: var(--tray); box-shadow: var(--shadow); }
.overview-photo-core { border-radius: 23px; overflow: hidden; background: var(--surface); }
.overview-photo { display: block; width: 100%; height: 260px; object-fit: cover; }
.notice { display: flex; gap: 12px; background: var(--warning-bg); color: var(--warning-text); border-radius: 16px; padding: 18px 20px; font-size: 13px; margin: 28px 0; line-height: 1.6; }
.notice > .icon { margin-top: 2px; }
.notice p { margin: 0; }
.subtle-notice { color: var(--accent-text); background: var(--accent-soft); }
.route-section { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.9fr); gap: 48px; padding-top: 32px; }
.route-section > section > .muted { font-size: 14px; margin-bottom: 24px; }
.route-options { display: grid; gap: 14px; }
.route-option { padding: 5px; border-radius: 24px; background: var(--tray); display: block; text-decoration: none; transition: transform 200ms var(--ease); }
.route-option:hover { transform: translateY(-2px); }
.route-option.is-selected { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--primary); }
.route-option-core { background: var(--surface); border-radius: 19px; padding: 14px; display: flex; align-items: center; gap: 16px; }
.route-thumbnail { width: 105px; flex-shrink: 0; height: 100px; border-radius: 13px; overflow: hidden; }
.route-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.route-option-copy { flex: 1; }
.route-type { display: block; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); font-size: 10px; font-weight: 650; margin-bottom: 5px; }
.route-option strong { display: block; font-size: 17px; }
.route-start { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.route-count { font-size: 12px; color: var(--muted); display: block; margin-top: 7px; }
.route-selection { color: var(--primary); padding: 8px; background: var(--accent-soft); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.route-preview { margin-top: 24px; font-size: 13px; }
.route-preview summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; min-height: 48px; color: var(--primary); font-weight: 650; }
.route-preview summary::-webkit-details-marker { display: none; }
.route-preview summary span { font-size: 22px; }
.route-preview[open] summary span { transform: rotate(45deg); }
.steps-preview { list-style: none; padding: 0; counter-reset: checkpoint; margin: 12px 0; }
.steps-preview li { counter-increment: checkpoint; display: flex; align-items: start; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.steps-preview li::before { content: counter(checkpoint,decimal-leading-zero); font-variant-numeric: tabular-nums; color: var(--primary); font-size: 12px; padding-top: 1px; }
.route-summary-shell, .step-panel-shell, .hold-card-shell { background: var(--tray); padding: 6px; border-radius: 30px; align-self: start; box-shadow: var(--shadow), inset 0 1px 1px white; }
.route-summary, .step-panel, .hold-card { background: var(--surface); padding: 28px; border-radius: 24px; }
.summary-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 24px; }
.route-summary h2 { font-size: 27px; }
.summary-start { font-size: 14px; color: var(--muted); }
.summary-start strong { color: var(--ink); }
.tiny { font-size: 12px; color: var(--muted); line-height: 1.65; }
.check-label { display: flex; align-items: start; gap: 12px; background: var(--paper); padding: 16px; border-radius: 14px; font-size: 13px; margin: 24px 0; cursor: pointer; }
.check-label input { width: 21px; height: 21px; accent-color: var(--primary); flex-shrink: 0; margin: 1px 0 0; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; border-radius: 100px; padding: 10px 12px 10px 22px; text-decoration: none; font-size: 13px; font-weight: 650; border: 0; transition: transform 200ms var(--ease), background-color 200ms var(--ease); }
.primary { background: var(--primary); color: white; }
.primary:hover:not(:disabled) { background: var(--primary-hover); }
.primary:hover:not(:disabled) .button-icon { transform: translateX(2px); }
.secondary { color: var(--primary); background: var(--accent-soft); padding: 14px 20px; }
.secondary:hover:not(:disabled) { background: #f9d9e6; }
.primary:active:not(:disabled), .secondary:active:not(:disabled), .chip:active { transform: scale(.98); }
.full-width { width: 100%; }
.primary.full-width { justify-content: space-between; }
.start-hint { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 20px; }
.source-link { display: flex; align-items: center; gap: 9px; color: var(--primary); font-size: 12px; font-weight: 650; background: transparent; border: 0; min-height: 44px; padding: 10px 0; }
.source-link > .icon:last-of-type { margin-left: auto; width: 16px; height: 16px; }
.source-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.summary-limit { border-top: 1px solid var(--line); padding-top: 16px; margin: 12px 0 0; }
.guide-shell { padding-top: 24px; }
.guide-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.guide-top .back-button { margin: 0; }
.guide-location { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(350px,1fr); gap: 32px; align-items: start; }
.photo-shell { background: var(--tray); padding: 7px; border-radius: 32px; box-shadow: var(--shadow); }
.photo-stage { overflow: hidden; position: relative; border-radius: 25px; background: #e8e9ed; }
.photo-stage > img { width: 100%; height: 470px; display: block; object-fit: contain; }
.photo-overlay { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.enlarge { border: 0; display: inline-flex; gap: 8px; align-items: center; background: var(--surface); color: var(--ink); padding: 11px 14px; min-height: 44px; border-radius: 100px; font-size: 12px; font-weight: 650; box-shadow: var(--shadow); }
.enlarge:hover { background: var(--accent-soft); }
.enlarge .icon { width: 17px; height: 17px; }
.source-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); padding: 8px 3px 0; }
.source-caption button { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: inherit; font-weight: 600; min-height: 44px; padding: 0; border: 0; background: transparent; }
.source-caption button:hover { text-decoration: underline; }
.source-caption .icon { width: 16px; height: 16px; }
.photo-disclaimer { font-size: 12px; color: var(--muted); margin: 8px 3px 24px; max-width: 500px; }
.journey-context { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--accent-soft); border-radius: 18px; }
.context-symbol { background: var(--surface); color: var(--primary); padding: 10px; border-radius: 50%; display: grid; place-items: center; }
.journey-context small { display: block; font-size: 12px; color: var(--muted); }
.journey-context strong { display: block; font-size: 16px; }
.context-status { color: var(--primary); font-size: 12px; margin-left: auto; }
.step-panel { padding: 28px; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); }
.progress-track { height: 4px; border-radius: 10px; background: #f6dbe7; margin: 14px 0 28px; overflow: hidden; }
.progress-fill { width: 100%; height: 100%; background: var(--primary); transform-origin: left; }
.step-panel h1 { font-size: 34px; margin-bottom: 18px; }
.instruction { font-size: 17px; color: var(--ink); line-height: 1.65; }
.checkpoint { display: flex; gap: 12px; align-items: start; margin: 24px 0 28px; padding: 16px; border-radius: 14px; background: var(--accent-soft); }
.checkpoint-icon { color: var(--primary); margin-top: 3px; }
.checkpoint strong { display: block; color: var(--primary); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.checkpoint p { margin: 0; font-size: 14px; }
.step-actions { display: grid; gap: 10px; }
.step-actions .primary { min-height: 56px; }
.step-actions .secondary { font-size: 12px; }
.previous-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.previous-row button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 10px 0; min-height: 44px; font-size: 12px; color: var(--primary); border-radius: 7px; }
.previous-row button:hover:not(:disabled) { text-decoration: underline; }
.previous-row button:disabled { color: #797787; }
.previous-row .icon { width: 16px; height: 16px; }
.explanation { background: var(--paper); padding: 16px; border-radius: 14px; font-size: 13px; margin-top: 16px; }
.explanation strong { font-size: 12px; color: var(--primary); }
.explanation p { margin: 8px 0 0; }
.confirmation-limit { padding-top: 18px; border-top: 1px solid var(--line); margin: 18px 0 0; }
.hold-shell { padding-top: 28px; }
.hold-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: start; padding: 20px 0; }
.hold-symbol { width: 58px; height: 58px; border-radius: 50%; background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 24px; }
.hold-intro > .eyebrow { display: inline-flex; }
.hold-intro h1 { font-size: 55px; margin: 6px 0 20px; }
.hold-intro > .muted { font-size: 16px; max-width: 410px; }
.hold-advice { max-width: 430px; padding-top: 26px; border-top: 1px solid var(--line); margin-top: 28px; }
.hold-advice h2 { font-size: 21px; }
.hold-advice p { color: var(--muted); font-size: 14px; }
.hold-card h2 { font-size: 25px; }
.hold-reference { display: flex; align-items: center; gap: 16px; background: var(--paper); border-radius: 16px; padding: 14px; margin: 22px 0; }
.hold-reference img { width: 96px; height: 85px; object-fit: cover; border-radius: 10px; }
.hold-reference > div { min-width: 0; }
.hold-reference small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hold-reference strong { display: block; font-size: 13px; margin: 4px 0; }
.hold-reference p { font-size: 12px; color: var(--muted); margin: 0; }
.hold-card > label:not(.check-label) { display: block; font-size: 13px; font-weight: 650; margin: 20px 0 8px; }
.optional-label { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 4px; }
.hold-card select { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--control-edge); color: var(--ink); background-color: var(--surface); border-radius: 12px; font-size: 16px; }
.hold-buttons { display: grid; gap: 10px; margin: 20px 0 18px; }
.hold-card > .tiny { margin-bottom: 18px; }
.hold-card .notice { margin: 16px 0; }
.complete-shell { max-width: 1120px; }
.complete { text-align: center; }
.complete-symbol { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; color: var(--primary); background: var(--accent-soft); margin: 0 auto 22px; }
.complete-symbol .icon { width: 30px; height: 30px; }
.complete h1 { font-size: 54px; margin: 8px 0 24px; }
.complete-photo-shell { padding: 10px; background: var(--tray); border-radius: 34px; margin: 32px auto 24px; }
.complete-photo-core { display: flex; justify-content: center; border-radius: 26px; overflow: hidden; background: var(--paper); }
.complete-photo-core img { display: block; width: 100%; height: min(68vh, 680px); object-fit: contain; }
.completion-note { font-size: 14px; color: var(--muted); max-width: 580px; margin: 0 auto; }
.complete-actions { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1224px; margin: 0 auto; padding: 30px 0; border-top: 1px solid var(--line); }
.footer-brand { text-decoration: none; font-size: 13px; font-weight: 650; }
.site-footer p { font-size: 12px; color: var(--muted); margin: 0; }
.site-footer .text-button { font-size: 12px; }
dialog { color: var(--ink); background: var(--surface); border: 0; border-radius: 28px; width: min(730px,calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 32px; overflow: auto; overscroll-behavior: contain; box-shadow: 0 24px 100px rgb(24 19 55 / 14%); }
dialog::backdrop { background: rgb(28 23 49 / 60%); backdrop-filter: blur(6px); }
.dialog-top { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.dialog-top .eyebrow { margin-bottom: 12px; }
.dialog-top h2 { font-size: 28px; margin: 0; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; flex-shrink: 0; color: var(--primary); background: var(--accent-soft); border-radius: 50%; font-size: 24px; }
.icon-button:hover { background: #f8dbe9; }
.source-list { padding: 0; list-style: none; margin: 24px 0; }
.source-list li { margin: 12px 0; }
.source-entry { background: var(--paper); padding: 18px; border-radius: 16px; min-height: 70px; }
.source-list strong { display: block; font-size: 14px; }
.source-list small { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
#photo-dialog { width: min(1100px,calc(100% - 32px)); }
#large-photo { width: 100%; height: auto; max-height: 65dvh; object-fit: contain; display: block; background: var(--paper); border-radius: 16px; }
#photo-dialog > .tiny { margin: 14px 0 0; }
#exit-dialog { max-width: 470px; }
.dialog-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; flex-wrap: wrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 1300px) { .site-header, .site-footer { width: calc(100% - 64px); } .hero { gap: 48px; } }
@media (max-width: 1000px) {
  .hero { gap: 35px; grid-template-columns: 1.15fr 1fr; padding-bottom: 70px; }
  .hero h1 { font-size: 51px; }
  .hero-photo-core > img { height: 330px; }
  .floating-reference { margin-left: 0; padding: 14px; gap: 10px; }
  .floating-reference strong { font-size: 14px; }
  .floating-reference small { font-size: 11px; }
  .reference-count { font-size: 24px; }
  .hero-index { display: none; }
  .field-note { gap: 32px; padding: 32px; }
  .card-heading h3 { font-size: 23px; }
  .card-body { padding: 22px; }
  .route-section { gap: 28px; grid-template-columns: 1.15fr 1fr; }
  .route-thumbnail { width: 80px; }
  .route-selection { padding: 5px; }
  .route-option-core { gap: 12px; padding: 12px; }
  .route-summary { padding: 23px; }
  .guide-layout { gap: 24px; grid-template-columns: 1.1fr 1fr; }
  .photo-stage > img { height: 420px; }
  .step-panel { padding: 23px; }
  .step-panel h1 { font-size: 30px; }
  .guide-location > span:last-child { display: none; }
  .hold-layout { gap: 36px; }
}
@media (max-width: 767px) {
  .site-header { width: calc(100% - 32px); margin-top: max(16px,env(safe-area-inset-top)); padding: 10px 12px; gap: 12px; border-radius: 24px; }
  .brand { gap: 9px; font-size: 12px; }
  .brand small { font-size: 10px; }
  .brand-icon { width: 36px; height: 36px; flex-shrink: 0; }
  .brand-icon svg { width: 21px; height: 21px; }
  .site-header nav { gap: 4px; }
  .site-header .nav-link, .site-header .text-button { padding: 10px 9px; font-size: 11px; }
  .nav-link .icon { display: none; }
  .shell { width: calc(100% - 40px); padding: 32px 0 48px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 30px; padding: 12px 0 56px; }
  .hero h1 { font-size: clamp(40px,10.7vw,56px); margin-bottom: 18px; }
  .hero .eyebrow { font-size: 10px; padding: 6px 10px; }
  .hero-description { font-size: 16px; margin-bottom: 24px; }
  .search-box { max-width: none; }
  .search-input input { font-size: 16px; }
  .quick-search { gap: 8px; }
  .quick-search > span { font-size: 11px; }
  .chip { font-size: 11px; padding: 9px 12px; }
  .hero-art { padding: 0; }
  .hero-photo-shell { transform: none; padding: 6px; border-radius: 26px; }
  .hero-photo-core { border-radius: 20px; }
  .hero-photo-core > img { height: 210px; object-position: center 43%; }
  .floating-reference { margin: -32px 12px 0; border-radius: 18px; padding: 14px; }
  .reference-count { font-size: 28px; }
  .hero-index { display: flex; margin-top: 16px; font-size: 10px; }
  .section-line { align-items: start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .section-line h2 { font-size: 28px; }
  .destination-section { padding-bottom: 48px; }
  .destination-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-photo { height: 170px; }
  .card-body { padding: 22px; }
  .card-heading h3 { font-size: 24px; max-width: 240px; }
  .card-description { min-height: 0; margin-bottom: 20px; }
  .field-note { grid-template-columns: 1fr; gap: 24px; padding: 26px; border-radius: 24px; }
  .field-note-title { gap: 16px; }
  .field-note h2 { font-size: 25px; }
  .field-note-copy > p { font-size: 14px; }
  .guide-principles { flex-direction: column; gap: 9px; }
  .empty { padding: 28px 20px; }
  .empty-actions { flex-direction: column; }
  .overview-head { grid-template-columns: 1fr; gap: 24px; }
  .overview-head h1 { font-size: 40px; }
  .overview-photo { height: 190px; }
  .notice { margin: 24px 0; padding: 16px; font-size: 13px; }
  .route-section { grid-template-columns: 1fr; gap: 28px; padding-top: 12px; }
  .route-section h2 { font-size: 27px; }
  .route-thumbnail { width: 82px; height: 94px; }
  .route-summary { padding: 24px; }
  .summary-icon { margin-bottom: 18px; }
  .back-button { margin-bottom: 18px; }
  .guide-shell { padding-top: 20px; }
  .guide-top { gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
  .guide-top .back-button { font-size: 12px; }
  .guide-location { margin-left: auto; }
  .guide-top > .text-button { display: none; }
  .guide-layout { grid-template-columns: 1fr; gap: 20px; }
  .photo-shell { padding: 5px; border-radius: 26px; }
  .photo-stage { border-radius: 21px; }
  .photo-stage > img { height: 250px; }
  .photo-overlay { bottom: 12px; left: 12px; right: 12px; gap: 8px; }
  .photo-tag { font-size: 10px; padding: 8px 10px; }
  .enlarge { font-size: 11px; }
  .photo-disclaimer { margin-bottom: 0; }
  .journey-context { display: none; }
  .step-panel { padding: 24px; }
  .step-panel h1 { font-size: 31px; }
  .instruction { font-size: 16px; }
  .step-actions .primary { font-size: 12px; padding-left: 16px; }
  .step-actions .secondary { font-size: 12px; padding: 14px 12px; }
  .checkpoint { margin: 20px 0 24px; }
  .previous-row { gap: 8px; }
  .previous-row button { font-size: 11px; }
  .previous-row .icon { width: 14px; height: 14px; }
  .hold-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 6px; }
  .hold-intro h1 { font-size: 43px; }
  .hold-symbol { margin-bottom: 18px; }
  .hold-advice { margin-top: 20px; padding-top: 20px; }
  .hold-card { padding: 24px; }
  .hold-reference { gap: 12px; }
  .hold-reference img { width: 78px; height: 80px; }
  .complete h1 { font-size: 43px; }
  .complete-photo-core img { height: min(58vh, 430px); }
  .complete-actions { flex-direction: column; }
  .site-footer { width: calc(100% - 40px); flex-direction: column; align-items: start; gap: 14px; padding-bottom: max(24px,env(safe-area-inset-bottom)); }
  .site-footer .text-button { padding-left: 0; }
  dialog { padding: 24px; border-radius: 24px; }
  .dialog-top { gap: 12px; }
  .dialog-top h2 { font-size: 24px; }
}
@media (max-width: 374px) {
  .site-header { flex-wrap: wrap; border-radius: 22px; }
  .site-header nav { width: 100%; justify-content: flex-end; }
  .shell { width: calc(100% - 32px); }
  .card-body, .step-panel, .hold-card { padding: 19px; }
  .card-link { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, dialog, button, .hero-art { display: none; }
  body { background: white; }
  .shell { width: 100%; padding: 0; }
  .guide-layout { grid-template-columns: 1fr 1fr; }
  .photo-stage > img { height: 260px; }
}

/* ===== Problem reporting and administrator-uploaded photos ===== */
#report-dialog { width: min(580px, calc(100% - 32px)); }
.report-form { display: flex; flex-direction: column; gap: 8px; }
.report-form label[for] { margin-top: 8px; color: var(--ink); font-size: 12px; font-weight: 650; }
.report-form select,
.report-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.report-form textarea { resize: vertical; min-height: 96px; }
.report-form .notice { margin: 0 0 4px; align-items: flex-start; }
.report-form .dialog-actions { margin-top: 14px; }
.report-form .primary,
.report-form .secondary { padding: 12px 20px; min-height: 46px; }
#report-status { margin: 4px 0 0; min-height: 18px; }

.overview-extra-photos { margin: 8px 0 30px; }
.extra-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.extra-photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--tray);
}
.extra-photo-grid img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Embedded inside the portal: the portal owns the top-level header and the
   only scrollbar. The guide is sized to its full content by the portal. */
html.nav-embedded .site-header,
html.nav-embedded .site-footer { display: none; }
html.nav-embedded { scroll-padding-top: 0; overflow: hidden; }
html.nav-embedded body { overflow: hidden; }
html.nav-embedded .shell { width: calc(100% - 64px); max-width: none; padding-top: 8px; }
@media (min-width: 1200px) {
  /* Balance the full-bleed hero: the copy and the photo meet in the middle
     instead of leaving a large empty gap on either side. */
  html.nav-embedded .hero {
    grid-template-columns: minmax(0, 1fr) min(620px, 44vw);
    gap: clamp(64px, 12vw, 170px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
  html.nav-embedded .search-box { max-width: none; }
}
@media (max-width: 767px) {
  html.nav-embedded .shell { width: calc(100% - 32px); }
}

/* Match the shared account control to the Campus Navigation palette. */
.site-header .cityu-auth-trigger { border-color: var(--primary); color: var(--primary); }
.site-header .cityu-auth-trigger:hover,
.site-header .cityu-auth-trigger:focus-visible { background: var(--primary); color: #fff; box-shadow: 0 0 0 3px rgb(191 22 94 / 20%); }
