:root {
  --black: #080808;
  --white: #fff;
  --orange: #f47721;
  --green: #168447;
  --green-dark: #07572c;
  --soft: #ededeb;
  --muted: #6a6a6a;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--black);
  font-family: "Poppins", sans-serif;
  background: var(--soft);
}

.hero {
  width: 100%;
  line-height: 0;
}

.page {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.header-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: 260px;
  margin: 0 auto;
  object-fit: contain;
}

.page { padding: 44px 24px 76px; }

.lookup {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  padding: 16px;
  color: var(--white);
  background: var(--black);
  border-top: 5px solid var(--orange);
}

.lookup label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lookup input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  font: 700 15px "Poppins", sans-serif;
  text-transform: uppercase;
}

.lookup button,
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 0;
  color: var(--white);
  background: var(--orange);
  font: 800 13px "Poppins", sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 36px;
  padding: 18px 20px;
  color: var(--white);
  background: var(--black);
  font-size: 14px;
  font-weight: 700;
}

.order-summary span + span::before {
  content: "/";
  margin-right: 20px;
  color: var(--orange);
}

.tickets { display: grid; gap: 32px; }

.ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}

.ticket-details {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
}

.ticket-details::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: var(--orange);
}

.pass-label {
  display: inline-block;
  margin-bottom: 28px;
  padding: 8px 11px;
  color: var(--white);
  background: var(--black);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pass-label.child { background: var(--orange); }

.field-label {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guest-name {
  margin: 0 0 26px;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
  text-transform: uppercase;
}

.meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field-value { margin: 0; font-size: 15px; font-weight: 700; }

.ticket-side {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  border-left: 2px dashed rgba(255, 255, 255, .25);
  color: var(--white);
  text-align: center;
  background: var(--black);
}

.qr-wrap {
  width: 300px;
  max-width: 100%;
  padding: 11px;
  background: var(--white);
}

.qr-wrap img, .qr-wrap canvas { display: block; width: 100%; height: auto; }
.qr-loading, .qr-error { display: grid; place-items: center; min-height: 220px; padding: 20px; color: #151815; font-size: 14px; font-weight: 800; line-height: 1.4; text-align: center; }

.side-title {
  margin: 16px 0 4px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ticket-id {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.check-panel {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 30px;
  color: var(--white);
  text-align: center;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
}

.tick {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 7px solid var(--white);
  border-radius: 50%;
  font-size: 76px;
  font-weight: 900;
  line-height: 1;
}

.check-panel .side-title { color: var(--white); font-size: 17px; }

.message {
  padding: 28px;
  color: var(--muted);
  background: var(--white);
  text-align: center;
}

.message strong { display: block; margin-bottom: 8px; color: var(--black); font-size: 22px; }
.preview-note { margin: 28px 0 0; padding: 15px 18px; border-left: 5px solid var(--orange); background: var(--white); font-size: 13px; }
.confirmation-page .preview-note { border-left-color: var(--green); }
[hidden] { display: none !important; }

.scan-page {
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.scan-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.scan-header {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 4px solid var(--orange);
  background: var(--black);
}

.scan-logo {
  width: 92px;
  height: 70px;
  display: block;
  object-fit: contain;
}

.scan-heading { min-width: 0; }
.scan-admin-back { margin-left:auto; border:1px solid rgba(255,255,255,.28); padding:10px 12px; color:#fff; font-size:9px; font-weight:900; letter-spacing:.08em; text-decoration:none; text-transform:uppercase; }
.scan-heading .eyebrow { margin: 0 0 2px; color: var(--orange); font-size: 9px; }
.scan-heading h1 { margin: 0; font-size: clamp(19px, 4vw, 28px); letter-spacing: -.03em; line-height: 1; }

.camera-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #171717;
}

#camera {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#scan-canvas { display: none; }

.scan-guide {
  position: absolute;
  top: 43%;
  left: 50%;
  width: min(68vw, 380px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .24);
  pointer-events: none;
}

.scan-guide::before,
.scan-guide::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  border-color: var(--orange);
  border-style: solid;
}

.scan-guide::before {
  top: -4px;
  left: -4px;
  border-width: 8px 0 0 8px;
}

.scan-guide::after {
  right: -4px;
  bottom: -4px;
  border-width: 0 8px 8px 0;
}

.scan-success {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  color: var(--white);
  background: linear-gradient(145deg, #19904d, #07572c);
  text-align: center;
}

.scan-success .tick {
  width: 150px;
  height: 150px;
  margin-bottom: 10px;
  font-size: 88px;
}

.scan-success-label {
  margin: 0;
  font-size: clamp(24px, 6vw, 42px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  text-transform: uppercase;
}

.scan-success-name {
  margin: 4px 0 0;
  font-size: clamp(30px, 8vw, 58px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .95;
  text-transform: uppercase;
}

.scan-success-ticket {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .82);
  font: 700 14px "Poppins", sans-serif;
}
.scan-blocked { position:absolute; z-index:5; inset:0; display:grid; place-content:center; justify-items:center; gap:10px; padding:28px; color:#fff; background:linear-gradient(145deg,#c51f1f,#680b0b); text-align:center; }
.scan-blocked-icon { display:grid; place-items:center; width:112px; height:112px; margin-bottom:8px; border:7px solid #fff; border-radius:50%; font-size:76px; font-weight:900; line-height:1; }
.scan-blocked p { margin:0; font-size:clamp(18px,4vw,28px); font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.scan-blocked h2 { margin:0; font-size:clamp(34px,8vw,64px); font-weight:900; letter-spacing:-.05em; line-height:.92; text-transform:uppercase; }
.scan-blocked strong { margin-top:8px; font-size:clamp(22px,5vw,36px); text-transform:uppercase; }
.scan-blocked span { font-size:15px; font-weight:800; }
.scan-blocked small { max-width:540px; margin-top:14px; color:rgba(255,255,255,.88); font-size:14px; font-weight:700; line-height:1.5; }
.scan-already { position:absolute; z-index:5; inset:0; display:grid; place-content:center; justify-items:center; gap:10px; padding:28px; color:#17140d; background:linear-gradient(145deg,#f7b735,#d67a0b); text-align:center; }
.scan-already-icon { display:grid; place-items:center; width:112px; height:112px; margin-bottom:8px; border:7px solid currentColor; border-radius:50%; font-size:76px; font-weight:900; line-height:1; }
.scan-already p { margin:0; font-size:clamp(18px,4vw,28px); font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.scan-already h2 { margin:0; font-size:clamp(34px,8vw,64px); font-weight:900; letter-spacing:-.05em; line-height:.92; text-transform:uppercase; }
.scan-already strong { margin-top:8px; font-size:clamp(22px,5vw,36px); text-transform:uppercase; }
.scan-already span { font-size:15px; font-weight:800; }
.scan-already small { max-width:540px; margin-top:14px; color:rgba(23,20,13,.78); font-size:14px; font-weight:800; line-height:1.5; }

.scan-status {
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-height: 88px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  color: var(--white);
  background: var(--black);
  text-align: center;
}

.scan-status p { margin: 0; font-size: 14px; font-weight: 700; }
.scan-status.ready p { color: #62e99a; }
.scan-status.error p { color: #ff9a77; }
.scan-status.warning p { color: #f7b735; }
.scanner-admin-nav { display:none; }

.scan-retry {
  padding: 10px 18px;
  border: 0;
  color: var(--white);
  background: var(--orange);
  font: 800 12px "Poppins", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .header-image { width: 100%; height: auto; }
  .lookup { display: grid; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-side { border-top: 2px dashed rgba(255, 255, 255, .25); border-left: 0; }
  .meta { grid-template-columns: 1fr; }
  .order-summary { display: grid; gap: 7px; }
  .order-summary span + span::before { content: none; }
  .scan-guide { width: min(76vw, 340px); }
  .scan-success .tick { width: 126px; height: 126px; font-size: 72px; }
}

@media print {
  body { background: var(--white); }
  .lookup, .order-summary, .preview-note { display: none; }
  .ticket { min-height: 47vh; break-inside: avoid; box-shadow: none; }
  .tickets { gap: 10px; }
}

/* Dark event-guide interface. The embedded interactive map retains its own light canvas. */
.portal-page,
.portal-app,
.portal-layout,
.portal-content,
.login-view,
.login-panel { color: #f4f5f2; background: #111411; }
.portal-loading { background: #080808; }
.portal-loading p { margin: 0; color: #b7bcb7; }
.login-panel { border-left: 1px solid #2b302c; }
.login-card h2,
.portal-view h1,
.section-heading h1,
.map-heading h1,
.guide-section-heading h2,
.arrival-card h2,
.documents-empty h2,
.document-row h2,
.vehicle-form-title h2 { color: #fff; }
.login-intro,
.login-help,
.welcome-row > div:first-child > p:last-child,
.section-heading > p,
.guide-section-heading > p:last-child,
.documents-empty div > p:last-child,
.document-row div > p:last-child,
.activity-grid p,
.convoy-days p,
.convoy-ready li { color: #aeb5af; }
.portal-login-form > input,
.vehicle-fields input { border-color: #3b413c; color: #fff; background: #1b1f1b; }
.portal-login-form > input::placeholder,
.vehicle-fields input::placeholder { color: #747c75; }
.remember-row,
.vehicle-fields label { color: #c3c8c4; }
.login-error { color: #ffb1a4; background: #3b1c18; }
.portal-app,
.portal-content { background: #111411; }
.portal-header { background: #080a08; }
.portal-sidebar { background: #0d100d; }
.documents-tile { color: #fff; background: #202420; box-shadow: inset 0 0 0 1px #343a35; }
.documents-tile small,
.documents-tile em { color: #aeb5af; }
.arrival-card,
.guide-section,
.vehicle-form > section,
.document-row,
.documents-empty,
.convoy-days details { color: #f5f6f3; background: #1a1e1a; box-shadow: 0 12px 38px rgba(0,0,0,.18); }
.arrival-card dl div,
.schedule-days article,
.schedule-days li,
.convoy-days details { border-color: #343a35; }
.arrival-card dt,
.schedule-days time,
.convoy-days summary em,
.document-action small { color: #939b94; }
.guide-callout,
.activity-grid article,
.convoy-note { color: #f4f5f2; background: #242924; }
.guide-callout > p:last-child,
.activity-grid p { color: #bdc3bd; }
.schedule-days ul { background: #1a1e1a; }
.convoy-days h3 { color: #fff; }
.documents-empty { border-color: #495049; }
.documents-empty > span { border-color: #4a514b; background: #242924; }
.vehicle-fields input { color-scheme: dark; }
.map-heading a { color: #fff; }
.portal-mobile-nav { border-color: #303530 !important; color: #fff; background: rgba(12,15,12,.98) !important; box-shadow: 0 -8px 24px rgba(0,0,0,.28) !important; }
.portal-mobile-nav button { color: #8e968f !important; }
.portal-mobile-nav button.is-active { color: #fff !important; }
.portal-ticket,
.order-summary { box-shadow: 0 12px 38px rgba(0,0,0,.2); }

@media (max-width: 900px) {
  .login-view { background: #111411; }
  .login-panel { border-top: 1px solid #2b302c; border-left: 0; background: #111411; }
}

@media print {
  .portal-page,
  .portal-app,
  .portal-layout,
  .portal-content,
  .portal-view { color: #111 !important; background: #fff !important; }
}

/* Camp Patriot customer portal */
.portal-page {
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  color: #121614;
  background: #eef0ec;
}

.portal-page.is-authenticated { height: 100svh; overflow: hidden; touch-action: none; }

.portal-page button,
.portal-page input { font-family: "Poppins", sans-serif; }

.portal-loading {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  color: #fff;
  background: #080808;
}

.portal-loading img { width: min(270px, 68vw); mix-blend-mode: screen; }
.portal-loading p { margin: 14px 0 0; color: #bdb7ad; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.portal-loader { width: min(220px, 58vw); height: 2px; margin-top: 24px; overflow: hidden; background: #2b2924; }
.portal-loader i { display: block; width: 42%; height: 100%; background: var(--orange); animation: portal-load 1.2s ease-in-out infinite alternate; }
@keyframes portal-load { from { transform: translateX(-20%); } to { transform: translateX(160%); } }

.login-view {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(480px, 1.22fr);
  background: #080808;
}

.login-brand {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  align-content: center;
  gap: 22px;
  padding: clamp(32px, 6vw, 80px);
  color: #fff;
  background: #080808;
  text-align: center;
}

.login-brand > img { width: min(300px, 70%); max-height: 52vh; object-fit: contain; mix-blend-mode: screen; }
.login-dates { margin: 0; color: #fff; font-size: clamp(14px, 1.6vw, 19px); font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.portal-eyebrow { margin: 0; color: var(--orange); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }

.login-panel { display: grid; place-items: center; min-height: 100svh; padding: clamp(28px, 5vw, 78px); background: #eef0ec; }
.login-card { width: min(100%, 520px); }
.login-card h2 { margin: 10px 0 13px; font-size: clamp(36px, 4.6vw, 58px); font-weight: 900; letter-spacing: -.055em; line-height: .96; text-transform: uppercase; }
.login-intro { margin: 0 0 32px; color: #636b66; font-size: 14px; line-height: 1.6; }
.portal-login-form { display: grid; }
.portal-login-form > label:not(.remember-row) { margin: 0 0 7px; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.portal-login-form > input { width: 100%; min-height: 58px; margin-bottom: 20px; border: 1px solid #c9cec9; border-radius: 0; padding: 0 17px; outline: 0; color: #111; background: #fff; font-size: 15px; font-weight: 700; }
.portal-login-form > input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244,119,33,.12); }
.remember-row { display: flex; align-items: center; gap: 10px; margin: -2px 0 22px; color: #5d655f; font-size: 12px; font-weight: 600; }
.remember-row input { width: 18px; height: 18px; accent-color: var(--orange); }
.portal-primary-button { min-height: 59px; display: flex; align-items: center; justify-content: space-between; border: 0; padding: 0 20px; color: #fff; background: var(--orange); font-size: 13px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.portal-primary-button span { font-size: 24px; line-height: 1; }
.portal-primary-button:disabled { opacity: .66; cursor: wait; }
.login-error { margin: 0 0 16px; border-left: 4px solid #ba311f; padding: 12px 14px; color: #8a261a; background: #fff1ee; font-size: 12px; line-height: 1.5; }
.login-help { margin: 22px 0 0; color: #777e79; font-size: 11px; line-height: 1.6; }

.portal-app { min-height: 100svh; background: #eef0ec; }
.portal-header { position: fixed; z-index: 30; top: 0; right: 0; left: 0; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; color: #fff; background: #080808; box-shadow: 0 2px 0 var(--orange); }
.portal-logo-button { display: flex; align-items: center; gap: 12px; border: 0; padding: 0; color: #fff; background: transparent; text-align: left; cursor: pointer; }
.portal-logo-button img { width: 53px; height: 53px; border-radius: 10px; object-fit: cover; object-position: center 31%; }
.portal-logo-button span { display: grid; }
.portal-logo-button strong { font-size: 18px; font-weight: 900; letter-spacing: -.03em; line-height: 1; text-transform: uppercase; }
.portal-logo-button small { margin-top: 5px; color: #aaa; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.portal-customer { display: flex; align-items: center; gap: 18px; }
.portal-customer span { font-size: 12px; font-weight: 700; }
.portal-customer button { border: 1px solid rgba(255,255,255,.25); padding: 9px 13px; color: #fff; background: transparent; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

.portal-layout { min-height: 100svh; padding-top: 78px; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.portal-sidebar { position: fixed; z-index: 20; top: 78px; bottom: 0; left: 0; width: 250px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 16px 20px; color: #fff; background: #171917; }
.portal-sidebar nav { display: grid; gap: 5px; }
.portal-sidebar nav button { position: relative; min-height: 56px; display: grid; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; border: 0; padding: 0 15px; color: #aeb3af; background: transparent; text-align: left; cursor: pointer; }
.portal-sidebar nav button span { font-size: 22px; }
.portal-sidebar nav button b { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.portal-sidebar nav button em { display: grid; place-items: center; min-width: 23px; height: 23px; border-radius: 50%; color: #111; background: #dedfdb; font-size: 10px; font-style: normal; font-weight: 900; }
.portal-sidebar nav button.is-active { color: #fff; background: rgba(255,255,255,.07); }
.portal-sidebar nav button.is-active::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--orange); }
.sidebar-event { border-top: 1px solid rgba(255,255,255,.12); padding: 19px 12px 5px; }
.sidebar-event p { margin: 0 0 4px; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-event strong { display: block; font-size: 19px; font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; }
.sidebar-event small { display: block; margin-top: 6px; color: #939993; font-size: 9px; line-height: 1.55; }

.portal-content { grid-column: 2; height: calc(100svh - 78px); overflow: auto; scroll-behavior: smooth; }
.portal-view { width: min(100%, 1220px); min-height: 100%; margin: 0 auto; padding: clamp(28px, 4.5vw, 64px); }
.portal-view h1 { margin: 8px 0 0; font-size: clamp(38px, 5vw, 70px); font-weight: 900; letter-spacing: -.06em; line-height: .95; text-transform: uppercase; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.welcome-row > div:first-child > p:last-child { margin: 16px 0 0; color: #626a65; font-size: 15px; }
.event-countdown { flex: 0 0 auto; display: grid; justify-items: end; }
.event-countdown strong { color: var(--orange); font-size: clamp(64px, 8vw, 110px); font-weight: 900; letter-spacing: -.08em; line-height: .75; }
.event-countdown span { margin-top: 12px; font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.booking-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 5px solid var(--orange); color: #fff; background: #080808; }
.booking-strip div { min-width: 0; display: grid; gap: 5px; padding: 17px 19px; border-right: 1px solid rgba(255,255,255,.13); }
.booking-strip div:last-child { border-right: 0; }
.booking-strip small { color: #9fa39f; font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.booking-strip strong { overflow: hidden; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.portal-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 40px; }
.action-tile { min-height: 190px; display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 20px; border: 0; padding: clamp(24px, 4vw, 38px); color: #fff; text-align: left; cursor: pointer; transition: transform .18s ease; }
.action-tile:hover { transform: translateY(-3px); }
.tickets-tile { background: #f47721; }
.vehicle-tile { color: #fff; background: #b94722; }
.vehicle-tile.is-complete { background: #168447; }
.map-tile { background: #242824; }
.guide-tile { color: #fff; background: #080808; }
.documents-tile { color: #151915; background: #fff; box-shadow: inset 0 0 0 1px #d9ddd8; }
.documents-tile .tile-icon { border-color: #cdd2cd; color: var(--orange); }
.documents-tile small, .documents-tile em { color: #777f79; }
.tile-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 28px; }
.action-tile > span:nth-child(2) { display: grid; gap: 5px; }
.action-tile small { color: rgba(255,255,255,.7); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.action-tile strong { font-size: clamp(20px, 2.5vw, 30px); font-weight: 900; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }
.action-tile em { color: rgba(255,255,255,.74); font-size: 10px; font-style: normal; }
.action-tile > b { font-size: 28px; }
.arrival-card { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; margin-top: 24px; padding: clamp(25px, 4vw, 40px); background: #fff; box-shadow: 0 12px 40px rgba(30,40,33,.07); }
.arrival-card h2 { margin: 8px 0 0; font-size: clamp(25px, 3.2vw, 40px); font-weight: 900; letter-spacing: -.045em; line-height: 1; text-transform: uppercase; }
.arrival-card dl { display: grid; gap: 15px; margin: 0; }
.arrival-card dl div { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 15px; border-bottom: 1px solid #e2e5e1; padding-bottom: 13px; }
.arrival-card dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.arrival-card dt { color: #737b75; font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.arrival-card dd { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.5; }

.section-heading, .map-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 34px; }
.section-heading > p { max-width: 440px; margin: 0; color: #69716c; font-size: 12px; line-height: 1.55; }
.tickets-view .order-summary { margin-bottom: 24px; }
.portal-ticket { grid-template-columns: minmax(0,1fr) 300px; }
.portal-ticket .qr-wrap { width: 235px; }
.documents-view { max-width: 1100px; }
.documents-heading { margin-bottom: 24px; }
.document-progress { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 5px solid var(--orange); padding: clamp(24px, 4vw, 38px); color: #fff; background: #080808; }
.document-progress > div:first-child { display: grid; gap: 6px; }
.document-progress small { color: #9fa39f; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.document-progress > div:first-child strong { font-size: clamp(25px, 3.5vw, 42px); font-weight: 900; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }
.document-count { display: flex; align-items: center; gap: 13px; }
.document-count > strong { color: var(--orange); font-size: clamp(54px, 7vw, 84px); font-weight: 900; letter-spacing: -.07em; line-height: .75; }
.document-count span { color: #b2b6b2; font-size: 9px; font-weight: 800; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; }
.document-list { margin-top: 20px; }
.documents-empty { min-height: 290px; display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 28px; padding: clamp(28px, 5vw, 55px); border: 1px dashed #c8cec8; background: rgba(255,255,255,.55); }
.documents-empty > span { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid #cdd2cd; border-radius: 50%; color: var(--orange); background: #fff; font-size: 31px; }
.documents-empty h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -.045em; line-height: 1; text-transform: uppercase; }
.documents-empty div > p:last-child { max-width: 660px; margin: 0; color: #69716c; font-size: 12px; line-height: 1.65; }
.document-row { display: grid; grid-template-columns: 62px minmax(0,1fr) auto; align-items: center; gap: 22px; margin-bottom: 10px; padding: 22px; border-left: 4px solid var(--orange); background: #fff; box-shadow: 0 8px 25px rgba(30,40,33,.06); }
.document-type { display: grid; place-items: center; width: 56px; height: 66px; color: #fff; background: #202420; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.document-row h2 { margin: 5px 0 6px; font-size: 22px; font-weight: 900; letter-spacing: -.035em; line-height: 1; text-transform: uppercase; }
.document-row div > p:last-child { margin: 0; color: #69716c; font-size: 11px; line-height: 1.5; }
.document-action { display: grid; justify-items: end; gap: 8px; }
.document-action small { color: #767e78; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.document-action a { padding: 12px 15px; color: #fff; background: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.map-view { width: 100%; max-width: none; height: 100%; padding: 0; display: flex; flex-direction: column; }
.map-heading { flex: 0 0 auto; margin-bottom: 22px; }
.map-heading h1 { font-size: clamp(34px, 4.5vw, 60px); }
.map-heading a { flex: 0 0 auto; color: #111; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.map-frame-wrap { flex: 1 1 auto; min-height: 0; overflow: hidden; border: 0; background: #080808; box-shadow: none; }
.map-frame-wrap iframe { width: 100%; height: 100%; display: block; border: 0; background: #080808; }
.portal-mobile-nav { display: none; }

.guide-view { max-width: 1160px; }
.guide-heading { margin-bottom: 22px; }
.guide-index { position: relative; z-index: 8; display: flex; gap: 7px; margin: 0 0 28px; padding: 10px; overflow-x: auto; background: #080808; box-shadow: 0 7px 25px rgba(20,30,23,.12); }
.guide-index a { flex: 1 0 auto; border: 1px solid #303330; padding: 10px 13px; color: #fff; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-align: center; text-decoration: none; text-transform: uppercase; }
.guide-index a:hover { border-color: var(--orange); background: var(--orange); }
.guide-section { scroll-margin-top: 82px; margin: 0 0 26px; padding: clamp(28px, 4.5vw, 50px); background: #fff; box-shadow: 0 12px 38px rgba(30,40,33,.06); }
.guide-section-heading { max-width: 820px; margin-bottom: 28px; }
.guide-section-heading h2 { margin: 8px 0 9px; font-size: clamp(30px, 4vw, 52px); font-weight: 900; letter-spacing: -.055em; line-height: .97; text-transform: uppercase; }
.guide-section-heading > p:last-child { margin: 0; color: #68716b; font-size: 12px; line-height: 1.6; }
.guide-fact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-top: 5px solid var(--orange); color: #fff; background: #080808; }
.guide-fact-grid div { min-height: 120px; display: grid; align-content: center; gap: 8px; padding: 24px; border-right: 1px solid #282a28; border-bottom: 1px solid #282a28; }
.guide-fact-grid small, .convoy-summary small, .contact-grid small { color: #a4a9a5; font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.guide-fact-grid strong { font-size: 16px; font-weight: 900; line-height: 1.35; text-transform: uppercase; }
.guide-callout { margin-top: 20px; border-left: 5px solid var(--orange); padding: clamp(24px,4vw,38px); background: #eef0ec; }
.guide-callout h3 { margin: 8px 0 10px; font-size: clamp(22px,3vw,34px); font-weight: 900; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }
.guide-callout > p:last-child { margin: 0; color: #5d655f; font-size: 12px; line-height: 1.7; }
.schedule-days { display: grid; gap: 14px; }
.schedule-days article { display: grid; grid-template-columns: 150px minmax(0,1fr); border: 1px solid #dfe3de; }
.schedule-days header { display: grid; align-content: start; gap: 4px; padding: 22px; color: #fff; background: #171a17; }
.schedule-days header small { color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.schedule-days header strong { font-size: 25px; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
.schedule-days ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 0; padding: 12px 18px; list-style: none; }
.schedule-days li { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 9px; padding: 10px; border-bottom: 1px solid #e6e9e5; }
.schedule-days time { color: #7b827d; font-size: 9px; font-weight: 800; }
.schedule-days li span { font-size: 10px; font-weight: 800; }
.activity-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.activity-grid article { border-top: 4px solid var(--orange); padding: 23px; background: #eef0ec; }
.activity-grid h3, .travel-options h3, .contact-grid h3 { margin: 0 0 9px; font-size: 20px; font-weight: 900; letter-spacing: -.035em; line-height: 1; text-transform: uppercase; }
.activity-grid p, .travel-options p { margin: 0; color: #626b65; font-size: 11px; line-height: 1.7; }
.travel-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.travel-options article { position: relative; padding: 30px; color: #fff; background: #181b18; }
.travel-options article > span { display: block; margin-bottom: 25px; color: var(--orange); font-size: 42px; font-weight: 900; letter-spacing: -.07em; }
.travel-options p { color: #c5c9c6; }
.travel-options a { display: inline-block; margin-top: 17px; color: var(--orange); font-size: 9px; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.convoy-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 18px; color: #fff; background: #080808; }
.convoy-summary div { display: grid; gap: 5px; padding: 24px; border-right: 1px solid #292b29; }
.convoy-summary strong { color: var(--orange); font-size: 20px; font-weight: 900; text-transform: uppercase; }
.convoy-summary span { color: #b5bab6; font-size: 10px; }
.convoy-guide-map { position:relative; z-index:0; isolation:isolate; width:100%; min-height:430px; margin:0 0 18px; overflow:hidden; border:1px solid #343a35; background:#202620; }
.convoy-guide-map .leaflet-popup-content-wrapper,.convoy-guide-map .leaflet-popup-tip { color:#fff; background:#111411; }
.convoy-guide-map .leaflet-popup-content { font-family:"Poppins",sans-serif; font-size:13px; line-height:1.5; }
.convoy-map-error { display:grid; place-items:center; min-height:430px; margin:0; padding:24px; color:#ffb19b; font-size:15px; font-weight:800; text-align:center; }
.capital-distance-guide { margin:0 0 18px; border:1px solid #343a35; padding:clamp(22px,3vw,32px); background:#111411; }
.capital-distance-heading { display:grid; gap:8px; margin-bottom:20px; }
.capital-distance-heading h3 { margin:0; color:#fff; font-size:clamp(23px,3vw,34px); font-weight:900; letter-spacing:-.035em; line-height:1; text-transform:uppercase; }
.capital-distance-heading > p:last-child { max-width:780px; margin:0; color:#aeb4af; font-size:13px; line-height:1.65; }
.capital-distance-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.capital-distance-grid article { display:grid; gap:4px; border-top:3px solid var(--orange); padding:16px; background:#1a1e1a; }
.capital-distance-grid strong { color:#fff; font-size:15px; font-weight:900; text-transform:uppercase; }
.capital-distance-grid span { color:var(--orange); font-size:22px; font-weight:900; letter-spacing:-.035em; }
.capital-distance-grid small { color:#aeb4af; font-size:11px; font-weight:800; text-transform:uppercase; }

@media (max-width: 900px) {
  .capital-distance-guide { padding:22px 18px; }
  .capital-distance-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .capital-distance-grid article { min-width:0; padding:14px; }
  .capital-distance-grid strong { font-size:14px; }
  .capital-distance-grid span { font-size:20px; }
  .capital-distance-grid small { font-size:11px; }
}

@media (max-width: 420px) {
  .capital-distance-guide { padding:20px 14px; }
  .capital-distance-grid { gap:7px; }
  .capital-distance-grid article { padding:12px 10px; }
  .capital-distance-grid strong { font-size:13px; }
  .capital-distance-grid span { font-size:18px; }
}
.convoy-days { display: grid; gap: 8px; }
.convoy-days details { border: 1px solid #dce0dc; background: #fff; }
.convoy-days summary { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 20px; cursor: pointer; list-style: none; }
.convoy-days summary::-webkit-details-marker { display: none; }
.convoy-days summary span { color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.convoy-days summary b { font-size: 15px; font-weight: 900; text-transform: uppercase; }
.convoy-days summary em { color: #747c76; font-size: 9px; font-style: normal; font-weight: 800; }
.convoy-days details[open] summary { color: #fff; background: #181b18; }
.convoy-days details > div { padding: 8px 24px 26px 96px; }
.convoy-days h3 { margin: 18px 0 5px; color: #1a1d1a; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.convoy-days p { margin: 0; color: #626a64; font-size: 11px; line-height: 1.65; }
.convoy-note { margin-top: 20px !important; border-left: 3px solid var(--orange); padding: 13px 15px; background: #eef0ec; font-weight: 700; }
.convoy-donation-note { margin-top:20px; border:1px solid rgba(255,120,31,.52); border-left:5px solid var(--orange); padding:18px 20px; background:#242924; }
.convoy-donation-note p { color:#d9ddd9; font-size:12px; }
.convoy-donation-note p + p { margin-top:10px; }
.convoy-donation-note strong { color:#fff; }
.convoy-donation-note a { color:var(--orange); font-weight:900; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px; }
.convoy-ready ul { columns: 2; gap: 35px; margin: 18px 0 0; padding-left: 18px; }
.convoy-ready li { break-inside: avoid; margin: 0 0 9px; color: #5d655f; font-size: 11px; font-weight: 700; }
.packing-card { border-top: 5px solid var(--orange); padding: clamp(22px,4vw,36px); color: #fff; background: #111311; }
.packing-progress { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.packing-progress div { display: grid; gap: 5px; }
.packing-progress small { color: #a2a7a3; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.packing-progress strong { font-size: 18px; font-weight: 900; text-transform: uppercase; }
.packing-progress > span { width: min(310px,45%); height: 8px; overflow: hidden; background: #303430; }
.packing-progress i { display: block; width: 0; height: 100%; background: var(--orange); transition: width .2s ease; }
.packing-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.packing-item { display: grid; grid-template-columns: 24px minmax(0,1fr) 30px; align-items: center; gap: 9px; padding: 9px; background: #222522; }
.packing-item > input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange); }
.packing-label { min-width: 0; border: 0; padding: 7px; color: #fff; background: transparent; font: inherit; font-size: 10px; font-weight: 700; }
.packing-item button { border: 0; color: #aeb3af; background: transparent; font-size: 20px; }
.packing-add { display: grid; grid-template-columns: minmax(0,1fr) auto; margin-top: 12px; }
.packing-add input { min-height: 46px; border: 1px solid #3b3e3b; padding: 0 14px; color: #fff; background: #181b18; font-size: 11px; }
.packing-add button, .packing-actions button { border: 0; padding: 0 18px; color: #fff; background: var(--orange); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.packing-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.packing-actions button { min-height: 40px; background: #353935; }
.packing-remote { margin: 21px 0 0; border-left: 3px solid var(--orange); padding-left: 13px; color: #b8bdb9; font-size: 10px; line-height: 1.6; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.contact-grid:has(article:only-child) { grid-template-columns:minmax(0,700px); }
.contact-grid article { display: grid; gap: 7px; border-top: 5px solid var(--orange); padding: 28px; color: #fff; background: #171a17; }
.contact-grid h3 { margin: 4px 0 9px; font-size: 27px; }
.contact-grid a { color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.ticket-meta-compact { grid-template-columns: repeat(3,minmax(0,1fr)); }
.portal-ticket { color: #f4f5f2; background: #151815; border: 1px solid #303530; }
.portal-ticket .ticket-details { background: #1b1f1b; }
.portal-ticket .guest-name { color: #fff; }
.portal-ticket .field-value { color: #d6dad6; }
.portal-ticket .pass-label { color: #fff; background: #080808; }
.portal-ticket .ticket-side { background: #0b0d0b; }
.portal-ticket .qr-wrap { background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.16); }
.convoy-ticket-side { gap: 5px; background: linear-gradient(145deg, #2e321d, #171a12) !important; }
.convoy-ticket-mark { display: grid; place-items: center; width: 110px; height: 110px; border: 5px solid var(--orange); border-radius: 50%; color: var(--orange); font-size: 62px; font-weight: 900; }
.convoy-entitlement .ticket-details::before { background: #d9a928; }
.portal-sidebar nav button em.is-complete { color: #fff; background: #168447; }
.vehicle-view { max-width: 1050px; }
.vehicle-form { display: grid; gap: 18px; }
.vehicle-form > section { border-top: 5px solid var(--orange); padding: clamp(25px,4vw,42px); background: #fff; box-shadow: 0 12px 38px rgba(30,40,33,.06); }
.vehicle-form-title { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.vehicle-form-title > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; background: #151815; font-size: 18px; font-weight: 900; }
.vehicle-form-title h2 { margin: 4px 0 0; font-size: clamp(28px,3vw,40px); font-weight: 900; letter-spacing: -.05em; line-height: 1; text-transform: uppercase; }
.vehicle-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.vehicle-fields label { display: grid; gap: 7px; color: #343934; font-size: 9px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.vehicle-fields input { min-width: 0; min-height: 54px; border: 1px solid #ccd1cc; border-radius: 0; padding: 0 15px; color: #111; background: #f8f9f7; font: inherit; font-size: 13px; font-weight: 700; text-transform: none; }
.vehicle-fields input:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 3px rgba(244,119,33,.12); }
.vehicle-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; padding: 20px; color: #fff; background: #151815; }
.vehicle-form-actions .portal-primary-button { width: min(100%,330px); }
#vehicle-message { font-size: 10px; font-weight: 800; }
#vehicle-message.is-success { color: #8fe1a9; }
#vehicle-message.is-error { color: #ffad9e; }

@media (max-width: 900px) {
  .login-view { min-height: auto; display: block; grid-template-columns: none; overflow: visible; background: #eef0ec; }
  .login-brand { min-height: 300px; gap: 14px; padding: 24px 24px 27px; }
  .login-brand > img { width: min(220px, 55vw); max-height: 210px; }
  .login-dates { font-size: 12px; }
  .login-panel { min-height: 560px; display: block; padding: 36px 24px calc(90px + env(safe-area-inset-bottom)); }
  .login-card h2 { font-size: 38px; }
  .portal-sidebar { display: none; }
  .portal-layout { display: block; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .portal-content { height: calc(100dvh - 78px); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .portal-view { padding: 30px 22px; }
  .portal-mobile-nav { position: fixed; z-index: 35; right: 0; bottom: 0; left: 0; height: calc(72px + env(safe-area-inset-bottom)); min-height: calc(72px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); align-items: start; padding: 4px 2px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.98); backdrop-filter: blur(16px); box-shadow: 0 -8px 24px rgba(20,28,23,.12); }
  .portal-mobile-nav button { position: relative; min-width: 0; min-height: 55px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; border: 0; padding: 7px 1px 2px; color: #777d79; background: transparent; }
  .portal-mobile-nav button span { height: 25px; display: grid; place-items: center; font-size: 20px; line-height: 1; }
  .portal-mobile-nav button small { display: block; max-width: 100%; overflow: hidden; font-size: 7.5px; font-weight: 900; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  .portal-mobile-nav button.is-active { color: #111; }
  .portal-mobile-nav button.is-active::before { content: ""; position: absolute; top: 0; width: 24px; height: 3px; background: var(--orange); }
  .arrival-card { grid-template-columns: 1fr; gap: 25px; }
  .portal-actions { grid-template-columns: 1fr; }
  .map-view { height: 100%; }
  .map-frame-wrap { min-height: 0; }
}

@media (max-width: 620px) {
  .portal-header { height: 67px; padding: 0 14px; }
  .portal-logo-button img { width: 45px; height: 45px; }
  .portal-logo-button strong { font-size: 15px; }
  .portal-logo-button small { font-size: 7px; }
  .portal-customer span { display: none; }
  .portal-customer button { padding: 8px 9px; }
  .portal-layout { padding-top: 67px; }
  .portal-content { height: calc(100dvh - 67px); }
  .portal-view h1 { font-size: 38px; }
  .welcome-row { align-items: start; gap: 12px; }
  .event-countdown strong { font-size: 58px; }
  .event-countdown span { margin-top: 8px; font-size: 7px; }
  .action-tile { min-height: 135px; grid-template-columns: 45px minmax(0,1fr) auto; padding: 22px 19px; }
  .tile-icon { width: 44px; height: 44px; font-size: 21px; }
  .arrival-card dl div { grid-template-columns: 1fr; gap: 4px; }
  .section-heading, .map-heading { align-items: start; flex-direction: column; gap: 13px; }
  .section-heading > p { font-size: 11px; }
  .portal-ticket { grid-template-columns: 1fr; }
  .portal-ticket .ticket-side { border-top: 2px dashed rgba(255,255,255,.25); border-left: 0; }
  .portal-ticket .qr-wrap { width: min(100%, 260px); }
  .document-progress { align-items: flex-start; }
  .documents-empty { min-height: 330px; grid-template-columns: 1fr; align-content: center; gap: 20px; }
  .document-row { grid-template-columns: 52px minmax(0,1fr); }
  .document-type { width: 48px; height: 58px; }
  .document-action { grid-column: 1 / -1; justify-items: stretch; }
  .document-action a { text-align: center; }
  .map-view { padding: 0; }
  .map-frame-wrap { min-height: 0; border-width: 0; }
  .guide-view { padding: 22px 12px; }
  .guide-heading { padding: 0 10px; }
  .guide-index { margin-right: -12px; margin-left: -12px; }
  .guide-section { padding: 26px 20px; }
  .guide-fact-grid, .activity-grid, .travel-options, .contact-grid, .packing-list { grid-template-columns: 1fr; }
  .schedule-days article { grid-template-columns: 1fr; }
  .schedule-days ul { grid-template-columns: 1fr; }
  .convoy-summary { grid-template-columns: 1fr; }
  .convoy-days summary { grid-template-columns: 52px minmax(0,1fr); }
  .convoy-days summary em { grid-column: 2; }
  .convoy-days details > div { padding: 4px 20px 24px; }
  .convoy-ready ul { columns: 1; }
  .packing-progress { align-items: stretch; flex-direction: column; }
  .packing-progress > span { width: 100%; }
  .ticket-meta-compact { grid-template-columns: 1fr; }
  .vehicle-fields { grid-template-columns: 1fr; }
  .vehicle-form-actions { align-items: stretch; flex-direction: column; }
  .vehicle-form-actions .portal-primary-button { width: 100%; }
}

/* Final portal palette. Keep this after the component rules so no legacy light
   card or mobile declaration can override the event guide's dark theme. */
.portal-page,
.portal-app,
.portal-layout,
.portal-content,
.portal-view,
.login-view,
.login-panel { color: #f4f5f2; background: #111411; }

.login-panel { border-color: #303630; }
.login-card h2,
.portal-view h1,
.section-heading h1,
.guide-section-heading h2,
.arrival-card h2,
.documents-empty h2,
.document-row h2,
.vehicle-form-title h2 { color: #fff; }

.login-intro,
.login-help,
.welcome-row > div:first-child > p:last-child,
.section-heading > p,
.guide-section-heading > p:last-child,
.documents-empty div > p:last-child,
.document-row div > p:last-child,
.activity-grid p,
.convoy-days p,
.convoy-ready li { color: #aeb5af; }

.portal-login-form > label:not(.remember-row),
.remember-row,
.vehicle-fields label { color: #c8cdc8; }

.portal-login-form > input,
.vehicle-fields input {
  border-color: #414841;
  color: #fff;
  background: #1b1f1b;
  color-scheme: dark;
}

.portal-login-form > input::placeholder,
.vehicle-fields input::placeholder { color: #7d857e; }

.login-error { color: #ffb1a4; background: #3b1c18; }
.documents-tile { color: #fff; background: #202420; box-shadow: inset 0 0 0 1px #373d38; }
.documents-tile .tile-icon { border-color: #555d56; }
.documents-tile small,
.documents-tile em { color: #aeb5af; }

.arrival-card,
.guide-section,
.vehicle-form > section,
.document-row,
.documents-empty,
.convoy-days details {
  color: #f5f6f3;
  background: #1a1e1a;
  box-shadow: 0 12px 38px rgba(0,0,0,.2);
}

.arrival-card dl div,
.schedule-days article,
.schedule-days li,
.convoy-days details { border-color: #343a35; }

.arrival-card dt,
.schedule-days time,
.convoy-days summary em,
.document-action small { color: #939b94; }

.guide-callout,
.activity-grid article,
.convoy-note { color: #f4f5f2; background: #242924; }
.guide-callout > p:last-child,
.activity-grid p { color: #bdc3bd; }
.schedule-days ul { background: #1a1e1a; }
.convoy-days h3 { color: #fff; }
.documents-empty { border-color: #495049; }
.documents-empty > span { border-color: #4a514b; background: #242924; }

.portal-mobile-nav {
  border-color: #303530 !important;
  color: #fff;
  background: rgba(12,15,12,.98) !important;
  box-shadow: 0 -8px 24px rgba(0,0,0,.28) !important;
}
.portal-mobile-nav button { color: #8e968f !important; }
.portal-mobile-nav button.is-active { color: #fff !important; }

@media (max-width: 900px) {
  .login-view,
  .login-panel { background: #111411; }
  .login-panel { border-top-color: #303630; }

  /* Keep the complete navigation above iOS Safari's bottom chrome. The safe
     area is an offset, rather than extra height inside the bar. */
  .portal-layout { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .portal-content { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .portal-mobile-nav {
    bottom: env(safe-area-inset-bottom);
    height: 58px;
    min-height: 58px;
    padding: 3px 2px 2px;
  }
  .portal-mobile-nav button {
    min-height: 51px;
    gap: 1px;
    padding: 5px 1px 1px;
  }
  .portal-mobile-nav button span { height: 22px; font-size: 18px; }
  .portal-mobile-nav button small { font-size: 7px; line-height: 1; }
}

@media (max-width: 620px) {
  /* Match the 22px mobile gutter used by Home, Tickets, Vehicle and Documents. */
  .guide-view { padding: 30px 22px; }
  .guide-heading { padding: 0; }
  .guide-index { margin-right: 0; margin-left: 0; }
}

/* Ticket holders and event-waiver workflow. */
.waiver-document-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  border: 1px solid #343a35;
  border-left: 5px solid var(--orange);
  padding: 28px;
  color: #f5f6f3;
  background: #1a1e1a;
}
.waiver-document-card h2 { margin: 4px 0 8px; color: #fff; font-size: clamp(20px, 2.4vw, 29px); line-height: 1; text-transform: uppercase; }
.waiver-document-card p:last-child { margin: 0; max-width: 720px; color: #aeb5af; line-height: 1.55; }
.waiver-document-card > a { border: 1px solid #4b524c; padding: 14px 16px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.waiver-document-card > a:hover { border-color: var(--orange); color: var(--orange); }
.waiver-agreement { margin-top: 20px; border: 1px solid #343a35; color: #e7eae7; background: #151915; box-shadow: 0 16px 40px rgba(0,0,0,.2); }
.waiver-agreement > header { border-top: 5px solid var(--orange); padding: clamp(24px,4vw,42px); background: #0b0d0b; }
.waiver-agreement > header h2 { max-width: 900px; margin: 8px 0 0; color: #fff; font-size: clamp(27px,3.8vw,48px); letter-spacing: -.045em; line-height: 1.02; text-transform: uppercase; }
.waiver-agreement-body { max-width: 900px; margin: 0 auto; padding: clamp(24px,5vw,58px); }
.waiver-agreement-intro { margin-bottom: 36px; border-left: 4px solid var(--orange); padding: 18px 20px; background: #1e231e; }
.waiver-agreement-body p { margin: 0 0 14px; color: #c8cdc8; font-size: 14px; line-height: 1.7; }
.waiver-agreement-body ol { display: grid; gap: 9px; margin: 12px 0 22px; padding-left: 24px; }
.waiver-agreement-body li { padding-left: 7px; color: #d8dcd8; font-size: 13px; line-height: 1.6; }
.waiver-legal-section { margin-top: 40px; border-top: 1px solid #353b36; padding-top: 30px; }
.waiver-legal-section:first-of-type { margin-top: 0; }
.waiver-legal-section > h2 { margin: 0 0 18px; color: #fff; font-size: clamp(23px,3vw,34px); letter-spacing: -.035em; line-height: 1.08; text-transform: uppercase; }
.waiver-legal-section h3 { margin: 27px 0 12px; color: var(--orange); font-size: 19px; line-height: 1.2; }
.waiver-load-error { border: 1px solid #69382f; padding: 18px; color: #ffb1a4 !important; background: #311c18; }
.waiver-form { margin-top: 24px; }
.waiver-form-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; border-bottom: 1px solid #343a35; padding: 28px 0 20px; }
.waiver-form-heading h2 { margin: 3px 0 0; color: #fff; font-size: clamp(26px, 3vw, 42px); line-height: 1; text-transform: uppercase; }
.waiver-form-heading > p { max-width: 610px; margin: 0; color: #aeb5af; line-height: 1.5; }
.waiver-ticket-holders { display: grid; gap: 20px; margin-top: 20px; }
.waiver-person-card { border: 1px solid #343a35; border-top: 4px solid var(--orange); padding: clamp(20px, 3vw, 32px); color: #f4f5f2; background: #1a1e1a; box-shadow: 0 12px 38px rgba(0,0,0,.2); }
.waiver-person-card > header { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 18px; margin-bottom: 24px; }
.waiver-person-card > header > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #111411; background: var(--orange); font-size: 18px; font-weight: 900; }
.waiver-person-card > header h3 { margin: 3px 0 0; color: #fff; font-size: 24px; line-height: 1; }
.waiver-status, .ticket-waiver-badge { display: inline-flex; align-items: center; width: fit-content; border: 1px solid #5d4740; border-radius: 999px; padding: 7px 10px; color: #ffb19b; background: #2e211d; font-size: 9px; font-style: normal; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.waiver-status.is-complete, .ticket-waiver-badge.is-complete { border-color: #3d6651; color: #a8e1bd; background: #1b3023; }
.ticket-waiver-badge { margin-top: 14px; }
button.ticket-waiver-badge { appearance: none; cursor: pointer; font-family: inherit; }
.ticket-waiver-action { min-height: 42px; border-color: var(--orange) !important; border-radius: 0; padding: 10px 14px; color: #fff !important; background: #c84a25 !important; font-size: 11px; box-shadow: 0 7px 18px rgba(0,0,0,.24); }
.ticket-waiver-action span { margin-left: 5px; font-size: 15px; }
button.ticket-waiver-badge:hover, button.ticket-waiver-badge:focus-visible { border-color: var(--orange); color: #fff; outline: none; }
.waiver-person-card.is-highlighted { animation: waiver-highlight 1.8s ease; }
@keyframes waiver-highlight { 0%,100% { box-shadow: 0 12px 38px rgba(0,0,0,.2); } 20%,70% { box-shadow: 0 0 0 4px var(--orange), 0 20px 48px rgba(0,0,0,.36); } }
.waiver-person-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.waiver-person-fields label { display: grid; gap: 8px; color: #d4d8d4; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.waiver-person-fields label > span { color: #7f8880; font-size: 8px; }
.waiver-person-fields input, .waiver-person-fields select { width: 100%; min-height: 54px; border: 1px solid #414841; border-radius: 0; padding: 13px 14px; color: #fff; background: #111411; font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color-scheme: dark; }
.waiver-person-fields input:focus, .waiver-person-fields select:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.adult-signature-panel, .minor-waiver-note, .signed-waiver-card { margin-top: 24px; border: 1px solid #3b423c; padding: clamp(20px, 3vw, 28px); background: #111411; }
.adult-signature-panel h3 { margin: 4px 0 20px; color: #fff; font-size: 28px; text-transform: uppercase; }
.waiver-check { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; align-items: start; margin-top: 12px; color: #d4d9d4; font-size: 13px; line-height: 1.45; cursor: pointer; }
.waiver-check input { width: 19px; height: 19px; margin: 0; accent-color: var(--orange); }
.waiver-agreement-link { color: #fff; font-weight: 900; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.waiver-agreement-link:hover, .waiver-agreement-link:focus-visible { color: var(--orange); outline: none; }
.waiver-check-optional { color: #9da59e; }
.signature-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; color: #fff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.signature-clear { border: 0; padding: 8px; color: var(--orange); background: transparent; font: inherit; font-size: 10px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.signature-pad { display: block; width: 100%; height: 180px; margin-top: 8px; border: 2px solid #555d56; background: #0b0d0b; touch-action: none; cursor: crosshair; }
.signature-help { margin: 9px 0 18px; color: #838b84; font-size: 11px; line-height: 1.4; }
.signing-location-label { display: grid; gap: 8px; margin-top: 22px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.signing-location-label > span { color: #899189; font-size: 9px; }
.signing-location-label input { width: 100%; min-height: 54px; border: 1px solid #414841; border-radius: 0; padding: 13px 14px; color: #fff; background: #1b1f1b; font: inherit; font-size: 16px; font-weight: 700; text-transform: none; }
.signing-location-label input:focus { border-color: var(--orange); outline: 0; box-shadow: 0 0 0 3px rgba(244,119,33,.15); }
.waiver-sign-button { width: 100%; }
.waiver-card-message, #attendee-message { min-height: 20px; margin: 12px 0 0; color: #aeb5af; font-size: 12px; }
.waiver-card-message.is-error, #attendee-message.is-error { color: #ffad9e; }
#attendee-message.is-success { color: #a8e1bd; }
.minor-waiver-note strong { color: #fff; }
.minor-waiver-note p { margin: 7px 0 0; color: #aeb5af; line-height: 1.5; }
.minor-waiver-note.is-complete { border-color: #3d6651; background: #17281d; }
.signed-waiver-card { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 18px; border-color: #3d6651; background: #17281d; }
.signed-waiver-card > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #112018; background: #a8e1bd; font-size: 24px; font-weight: 900; }
.signed-waiver-card strong { display: block; color: #fff; font-size: 22px; text-transform: uppercase; }
.signed-waiver-card small { display: block; margin-top: 5px; color: #9fb4a6; }
.signed-waiver-download { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; border: 1px solid #5a8469; padding: 11px 14px; color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.signed-waiver-download:hover { border-color: var(--orange); color: var(--orange); }
.waiver-save-row { display: flex; align-items: center; justify-content: flex-end; gap: 22px; border-top: 1px solid #343a35; margin-top: 20px; padding-top: 20px; }
.documents-tile.is-complete { background: #1b3023; box-shadow: inset 0 0 0 1px #3d6651; }
#sidebar-document-count.is-complete { color: #112018; background: #a8e1bd; }

.convoy-promo { display: grid; grid-template-columns: clamp(140px,18vw,210px) auto minmax(0,1fr); align-items: center; gap: clamp(16px,3vw,30px); border: 1px solid #3c413d; border-left: 6px solid var(--orange); padding: clamp(22px,3.2vw,34px); color: #fff; background: linear-gradient(120deg,#111411,#1d211d); text-decoration: none; box-shadow: 0 16px 38px rgba(0,0,0,.2); }
.convoy-promo[hidden] { display: none !important; }
.convoy-promo-poster { display:block; width:100%; max-height:170px; object-fit:contain; }
.convoy-promo-home { margin: 26px 0; }
.guide-convoy-promo { margin: 0 0 28px; }
#guide-travel .guide-convoy-promo { margin: 0 0 22px; }
.convoy-promo-number { display: grid; place-items: center; width: clamp(76px,9vw,108px); height: clamp(58px,7vw,82px); color: #080808; background: var(--orange); font-size: clamp(22px,3vw,34px); font-weight: 900; letter-spacing:-.055em; line-height: 1; }
.convoy-promo small, .convoy-promo em { display: block; color: #aeb5af; font-style: normal; }
.convoy-promo small { margin-bottom: 4px; color: var(--orange); font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.convoy-promo strong { display: block; font-size: clamp(22px,3vw,36px); font-weight: 900; letter-spacing: -.04em; line-height: 1; text-transform: uppercase; }
.convoy-promo em { margin-top: 7px; font-size: 12px; }
.convoy-promo-button { display:inline-flex; margin-top:14px; border:1px solid var(--orange); padding:9px 12px; color:#fff; font-size:9px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.convoy-promo > b { color: var(--orange); font-size: 34px; transition: transform .2s ease; }
.convoy-promo:hover > b { transform: translateX(6px); }
.convoy-session-popup[hidden] { display:none !important; }
.convoy-session-popup { position:fixed; z-index:90; inset:0; display:grid; place-items:center; padding:max(24px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); background:rgba(0,0,0,.78); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.convoy-session-popup-card { position:relative; display:grid; grid-template-columns:minmax(260px,46%) minmax(0,1fr); align-items:center; width:min(900px,100%); max-height:calc(100dvh - 48px); overflow:auto; border:1px solid #454b46; border-top:6px solid var(--orange); color:#fff; background:#111411; box-shadow:0 28px 90px rgba(0,0,0,.55); }
.convoy-session-popup-poster { display:block; width:100%; height:100%; max-height:560px; object-fit:contain; background:#111411; }
.convoy-session-popup-copy { padding:clamp(30px,5vw,64px); }
.convoy-session-popup-copy h2 { margin:8px 0 28px; color:#fff; font-size:clamp(34px,4.5vw,62px); font-weight:900; letter-spacing:-.055em; line-height:.94; text-transform:uppercase; }
.convoy-session-popup-copy .portal-primary-button { width:100%; }
.convoy-session-popup-close { position:absolute; z-index:2; top:14px; right:14px; display:grid; place-items:center; width:46px; height:46px; border:1px solid #505650; border-radius:50%; color:#fff; background:rgba(8,8,8,.88); font-size:28px; line-height:1; cursor:pointer; }
.convoy-session-popup-close:hover,.convoy-session-popup-close:focus-visible { border-color:var(--orange); color:var(--orange); outline:0; }
body.has-convoy-popup { overflow:hidden; }
.trailer-toggle { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: #f5f6f3; font-size: 12px; font-weight: 800; cursor: pointer; }
.trailer-toggle input { width: 20px; height: 20px; accent-color: var(--orange); }
.trailer-form-section.is-disabled .vehicle-fields { opacity: .38; }

@media (max-width: 760px) {
  .scan-shell { padding-bottom:calc(76px + env(safe-area-inset-bottom)); }
  .scanner-admin-nav { position:fixed; z-index:40; right:0; bottom:var(--cp-visual-bottom,0px); left:0; height:calc(76px + env(safe-area-inset-bottom)); display:grid; grid-template-columns:repeat(4,1fr); padding-bottom:env(safe-area-inset-bottom); border-top:1px solid #303530; background:rgba(14,17,14,.98); box-shadow:0 -8px 24px rgba(0,0,0,.32); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); transform:translate3d(0,0,0); will-change:transform; }
  .scanner-admin-nav a { position:relative; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; border-top:3px solid transparent; color:#aeb4af; font-size:10px; font-weight:900; line-height:1; text-decoration:none; text-transform:uppercase; }
  .scanner-admin-nav a span { font-size:21px; }
  .scanner-admin-nav a.is-active { border-top-color:var(--orange); color:#fff; background:#272b27; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
  .convoy-promo { grid-template-columns: minmax(0,1fr); align-items: start; gap: 16px; padding: 22px 20px 20px; }
  .convoy-promo-poster { width:100%; max-height:250px; }
  .convoy-promo-number { width: auto; min-width: 104px; height: 50px; justify-self: start; padding: 0 14px; font-size: 25px; }
  .convoy-promo > b { display: none; }
  .convoy-promo strong { font-size: clamp(24px,7vw,30px); line-height: .96; }
  .convoy-promo em { margin-top: 10px; font-size: 13px; line-height: 1.5; }
  .convoy-promo-button { width: 100%; justify-content: center; margin-top: 16px; padding: 12px 10px; text-align: center; line-height: 1.25; }
  .convoy-session-popup { align-items:center; padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom)); }
  .convoy-session-popup-card { grid-template-columns:1fr; max-height:calc(100dvh - max(28px,env(safe-area-inset-top) + env(safe-area-inset-bottom))); }
  .convoy-session-popup-poster { max-height:36dvh; padding:18px 24px 0; }
  .convoy-session-popup-copy { padding:22px 22px 26px; }
  .convoy-session-popup-copy h2 { margin-bottom:22px; font-size:clamp(30px,9vw,42px); }
  .convoy-session-popup-close { top:10px; right:10px; width:42px; height:42px; }
  .waiver-document-card { grid-template-columns: 52px minmax(0,1fr); gap: 18px; padding: 22px 18px; }
  .waiver-document-card > a { grid-column: 1 / -1; text-align: center; }
  .waiver-form-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .waiver-person-card > header { grid-template-columns: 44px minmax(0,1fr); gap: 12px; }
  .waiver-person-card > header > span { width: 44px; height: 44px; }
  .waiver-status { grid-column: 1 / -1; }
  .waiver-person-fields { grid-template-columns: 1fr; }
  .waiver-save-row { align-items: stretch; flex-direction: column; }
  .waiver-save-row .portal-primary-button { width: 100%; }
  .signature-pad { height: 160px; }
  .waiver-agreement-body { padding: 24px 18px 32px; }
  .waiver-agreement-body p { font-size: 15px; line-height: 1.7; }
  .waiver-agreement-body li { font-size: 14px; line-height: 1.65; }
  .waiver-legal-section { margin-top: 32px; padding-top: 24px; }
  .waiver-legal-section > h2 { font-size: 25px; }
  .waiver-legal-section h3 { font-size: 19px; }
  .signed-waiver-card { grid-template-columns: 42px minmax(0,1fr); align-items: start; padding: 20px 16px; }
  .signed-waiver-card > span { width: 42px; height: 42px; }
  .signed-waiver-download { width: 100%; justify-content: center; font-size: 12px; line-height: 1.3; text-align: center; }
}

/* Mobile readability pass: preserve the compact graphic style without making
   labels, instructions or navigation dependent on very small type. */
@media (max-width: 760px) {
  .portal-layout,
  .portal-content { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .portal-mobile-nav {
    bottom: env(safe-area-inset-bottom);
    height: 72px;
    min-height: 72px;
    padding: 4px 3px 3px;
  }
  .portal-mobile-nav button { min-height: 64px; gap: 3px; padding: 7px 2px 3px; }
  .portal-mobile-nav button span { height: 25px; font-size: 21px; }
  .portal-mobile-nav button small { font-size: 10px; line-height: 1.2; }

  .portal-view { padding-top: 34px; }
  .portal-view h1 { font-size: clamp(40px, 11.5vw, 48px); line-height: .96; }
  .portal-eyebrow { font-size: 12px; line-height: 1.35; }
  .portal-logo-button small { font-size: 9px; }
  .portal-customer button { font-size: 11px; }
  .login-intro,
  .remember-row { font-size: 15px; }
  .portal-login-form > label:not(.remember-row) { font-size: 12px; }
  .login-help,
  .login-error { font-size: 13px; }

  .welcome-row > div:first-child > p:last-child { font-size: 16px; line-height: 1.55; }
  .event-countdown span { font-size: 10px; }
  .booking-strip small,
  .action-tile small,
  .document-progress small,
  .document-count span,
  .guide-fact-grid small,
  .convoy-summary small,
  .contact-grid small,
  .schedule-days header small,
  .packing-progress small,
  .convoy-promo small { font-size: 11px; line-height: 1.35; }
  .booking-strip strong { font-size: 14px; }
  .action-tile em { font-size: 14px; line-height: 1.45; }
  .arrival-card dt,
  .vehicle-fields label,
  .waiver-person-fields label { font-size: 12px; }
  .arrival-card dd,
  .section-heading > p,
  .guide-section-heading > p:last-child,
  .guide-callout > p:last-child,
  .activity-grid p,
  .travel-options p,
  .convoy-days p,
  .convoy-ready li,
  .documents-empty div > p:last-child,
  .document-row div > p:last-child,
  .waiver-document-card p:last-child,
  .waiver-form-heading > p,
  .minor-waiver-note p { font-size: 14px; line-height: 1.65; }

  .order-summary { font-size: 15px; line-height: 1.45; }
  .pass-label { font-size: 13px; }
  .field-label { font-size: 12px; }
  .field-value { font-size: 16px; }
  .ticket-waiver-badge,
  .waiver-status { font-size: 11px; line-height: 1.25; }
  .side-title { font-size: 14px; }
  .ticket-id { font-size: 13px; }

  .document-action small,
  .document-action a,
  .map-heading a,
  .travel-options a,
  .packing-add button,
  .packing-actions button,
  .convoy-promo-button { font-size: 11px; line-height: 1.35; }
  .guide-index a { font-size: 11px; padding: 12px 14px; }
  .schedule-days time { font-size: 12px; }
  .schedule-days li span,
  .convoy-summary span,
  .convoy-days summary span,
  .convoy-days summary em { font-size: 13px; line-height: 1.4; }
  .packing-label,
  .packing-add input,
  .packing-remote,
  .contact-grid a { font-size: 14px; }

  .waiver-person-fields label > span { font-size: 11px; line-height: 1.4; }
  .waiver-check { font-size: 15px; line-height: 1.5; }
  .signature-label,
  .signature-help { font-size: 13px; }
  .signature-clear { font-size: 12px; }
  .waiver-card-message,
  #attendee-message,
  #vehicle-message { font-size: 13px; line-height: 1.45; }
  .trailer-toggle { font-size: 15px; }

  /* Chrome on iOS can lose the top of a fixed-height nested scroller when its
     browser chrome expands. Mobile uses the document scroller instead. */
  html:has(body.portal-page.is-authenticated),
  body.portal-page.is-authenticated {
    height:auto;
    min-height:100%;
    overflow-x:hidden;
    overflow-y:auto;
    touch-action:pan-y;
    -webkit-overflow-scrolling:touch;
  }
  .portal-page.is-authenticated .portal-app,
  .portal-page.is-authenticated .portal-layout {
    height:auto;
    min-height:100svh;
    overflow:visible;
  }
  .portal-page.is-authenticated .portal-content {
    height:auto;
    min-height:calc(100svh - 67px);
    overflow:visible;
    scroll-behavior:auto;
    transform:none;
    padding-bottom:calc(92px + env(safe-area-inset-bottom));
  }
  .portal-page.is-authenticated .map-view { height:calc(100svh - 67px - 72px - env(safe-area-inset-bottom)); min-height:560px; }
  .convoy-guide-map { min-height:360px; }

  .schedule-days time { font-size:14px; }
  .schedule-days li span { font-size:15px; line-height:1.45; }
  .schedule-days li { grid-template-columns:96px minmax(0,1fr); padding:14px 10px; }
  .schedule-days header small { font-size:12px; }
  .guide-section-heading > p:last-child,
  .guide-callout > p:last-child,
  .activity-grid p,
  .travel-options p,
  .convoy-days p,
  .convoy-ready li { font-size:15px; }
  .convoy-summary span { font-size:14px; }
}

/* Keep mobile controls attached to the visual viewport while iOS browser chrome
   expands and collapses. The safe area lives inside the bar, not below it. */
@media (max-width: 900px) {
  .portal-mobile-nav {
    position:fixed !important;
    bottom:var(--cp-visual-bottom, 0px) !important;
    height:calc(72px + env(safe-area-inset-bottom));
    min-height:calc(72px + env(safe-area-inset-bottom));
    padding-bottom:calc(3px + env(safe-area-inset-bottom));
    transform:translate3d(0,0,0);
    will-change:transform;
    -webkit-backdrop-filter:blur(16px);
  }
}

/* Event schedules must remain readable in the portal and every shared guide. */
.schedule-days header small { font-size: 12px; }
.schedule-days header strong { font-size: 30px; }
.schedule-days time { font-size: 15px; line-height: 1.45; }
.schedule-days li span { font-size: 16px; line-height: 1.45; }
.schedule-days li { grid-template-columns: 112px minmax(0,1fr); padding: 14px 12px; }

@media (max-width: 900px) {
  .schedule-days header small { font-size: 13px; }
  .schedule-days header strong { font-size: 30px; }
  .schedule-days time { font-size: 15px; }
  .schedule-days li span { font-size: 16px; }
  .schedule-days li { grid-template-columns: 104px minmax(0,1fr); padding: 15px 11px; }
}

@media print {
  .portal-header, .portal-sidebar, .portal-mobile-nav, .section-heading, .order-summary { display: none !important; }
  .portal-page { overflow: visible; background: #fff; }
  .portal-app, .portal-layout, .portal-content { display: block; height: auto; min-height: 0; padding: 0; overflow: visible; }
  .portal-view { display: none; padding: 0; }
  #view-tickets { display: block !important; }
  .portal-ticket { min-height: 47vh; break-inside: avoid; box-shadow: none; }
  .print-packing #view-tickets { display: none !important; }
  .print-packing #view-guide { display: block !important; max-width: none; }
  .print-packing #view-guide > :not(#guide-packing) { display: none !important; }
  .print-packing #guide-packing { display: block !important; margin: 0; box-shadow: none; }
}
