.detail-page {
  --build-paper:#f2f5ef;
  --build-ink:#0b3339;
  --build-serif:'Songti SC','Noto Serif CJK SC',STSong,SimSun,serif;
  background:var(--build-paper);
  color:var(--build-ink);
  color-scheme:light;
}
.detail-page .journey-hud { left:auto; right:max(4.3vw,19px); bottom:max(18px,2.7svh,env(safe-area-inset-bottom)); }
.detail-page .scroll-cue { padding:5px 10px; border-radius:4px; background:#113940cf; color:#eff8f3; text-shadow:none; }
.detail-page main :is(a,button,summary,input):focus-visible { outline:3px solid #238575; outline-offset:4px; }
.detail-page .type-hero :is(a,button):focus-visible { outline-color:#c5ffe5; }
.detail-page main [hidden] { display:none!important; }
.detail-page :where(main section[id]) { scroll-margin-top:16px; }
.type-hero {
  isolation:isolate; position:relative; display:grid; color:#f4f8f4; background:#082631;
  min-height:100vh; min-height:100dvh;
  padding-block:clamp(88px,11svh,138px) max(65px,7svh,calc(env(safe-area-inset-bottom) + 58px));
}
.type-hero::before {
  content:""; position:absolute; z-index:-1; inset:0;
  background:linear-gradient(90deg,#061f2ef5 0%,#092b3ae8 30%,#13364491 68%,#10323b6b),
  linear-gradient(0deg,#051e2ef2 0%,#082a3a55 36%,transparent 68%,#0a25375c),
  url("assets/build-port.webp") center 54% / cover no-repeat;
}
.type-hero-wrap {
  align-self:stretch; display:grid; grid-template-rows:1fr auto; gap:clamp(14px,2.5svh,31px);
  width:min(88%,1510px); margin-inline:auto;
}
.type-opening {
  display:grid; align-items:center; grid-template-columns:minmax(0,.91fr) minmax(0,1.19fr);
  gap:clamp(20px,3.2vw,60px);
}
.type-copy { padding-block:10px; }
.type-kicker {
  margin:0 0 clamp(18px,2.4svh,32px); display:flex; align-items:center; gap:12px;
  color:#caeee2; font-size:clamp(15px,1.15vw,19px); font-weight:560; letter-spacing:.09em;
}
.type-kicker::before { content:""; width:26px; height:1px; background:#acd8c8; }
.type-copy h1 {
  margin:0; font:530 clamp(37px,min(4.08vw,7.9svh),72px)/1.23 var(--build-serif);
  color:#f9f9f2; letter-spacing:-.06em;
}
.type-copy h1 span { white-space:nowrap; }
.type-offer {
  margin:clamp(16px,2.9svh,35px) 0 0; color:#b8f1d6; font-size:clamp(19px,1.8vw,29px);
  line-height:1.48; font-weight:610; letter-spacing:.015em;
}
.type-lead { margin:8px 0 0; max-width:32em; color:#deebe7; font-size:clamp(16px,1.12vw,19px); line-height:1.65; text-wrap:pretty; }
.type-actions { display:flex; align-items:center; flex-wrap:wrap; gap:15px 24px; margin-top:clamp(20px,3.6svh,41px); }
.type-actions :is(a,button) { font-size:16px; font-weight:550; line-height:1.4; }
.type-action-primary {
  display:inline-flex; justify-content:center; align-items:center; gap:9px; min-height:47px;
  padding:12px 20px; color:#103d35; background:#c4f2dc; border:1px solid #dcffea; border-radius:4px;
  box-shadow:0 8px 25px #052a2a44;
}
.type-action-primary svg { width:22px; height:22px; }
.type-action-primary:hover { background:#ddffeb; }
.type-action-more { padding:8px 0; color:#eef7f0; text-decoration:underline; text-underline-offset:6px; text-decoration-color:#acc8b9; }
.type-preview {
  position:relative; isolation:isolate; aspect-ratio:7/5; width:100%; min-width:0;
  max-width:min(100%,calc(106svh - 145px)); justify-self:end;
  margin:clamp(12px,3.5svh,36px) 0 0;
}
.preview-screen {
  position:absolute; left:8.5714286%; top:4.9%; width:82.8571429%; height:72.5%;
  overflow:hidden; background:#0e2429;
}
.preview-screen img { display:block; width:100%; height:100%; object-fit:contain; }
.preview-shell { position:absolute; z-index:1; inset:0; width:100%; height:100%; pointer-events:none; }
.type-routes {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid #b5d4c862; background:#0a2637a8; border-radius:4px; overflow:hidden;
}
.type-route {
  display:flex; align-items:center; text-align:left; gap:clamp(12px,1.3vw,22px); padding:clamp(15px,1.3vw,24px) clamp(15px,1.7vw,30px);
  border-bottom:3px solid transparent; color:#f1f6ef; transition:background .18s,border-color .18s; position:relative;
}
.type-route + .type-route { border-left:1px solid #c5e2d336; }
.type-route:hover { background:#a6e9d21c; }
.type-route[aria-pressed=true] { background:#9cddbc24; border-bottom-color:#b6f0cf; }
.type-route svg { flex:none; width:29px; height:29px; fill:none; stroke:#c2dfd4; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.type-route span { display:grid; gap:4px; flex:1; }
.type-route strong { font-size:clamp(16px,1.55vw,24px); line-height:1.3; font-weight:550; letter-spacing:.015em; }
.type-route small { font-size:14px; color:#c1d6d1; line-height:1.4; }
.type-route i { display:block; width:14px; height:14px; border:1px solid #99afa9; border-radius:50%; flex:none; }
.type-route[aria-pressed=true] i { background:#c8f1dd; border-color:#d0f7e5; box-shadow:inset 0 0 0 3px #315954; }
.type-route:focus-visible { outline-offset:-4px!important; }
@media(max-width:1000px) {
  .type-opening { gap:24px; }
  .type-route svg { width:24px; height:24px; }
}
@media(max-width:760px) and (orientation:portrait) {
  .type-hero { padding-block:max(72px,9svh) max(57px,calc(env(safe-area-inset-bottom) + 52px)); }
  .type-hero-wrap { width:89%; gap:clamp(12px,2svh,21px); }
  .type-opening {
    display:flex; flex-direction:column; justify-content:center; align-items:stretch;
    gap:clamp(14px,2.5svh,30px);
  }
  .type-copy { padding:0; }
  .type-kicker { margin-bottom:10px; font-size:15px; }
  .type-copy h1 { font-size:clamp(32px,min(8.2vw,5.75svh),50px); }
  .type-offer { margin-top:12px; font-size:clamp(18px,4.4vw,23px); }
  .type-lead { margin-top:4px; font-size:15px; }
  .type-actions { margin-top:14px; gap:9px 19px; }
  .type-actions :is(button,a) { font-size:15px; }
  .type-action-primary { min-height:41px; padding:9px 15px; }
  .type-preview { width:min(100%,48svh,530px); max-width:100%; align-self:center; margin-top:8px; }
  .type-route { display:grid; justify-content:center; justify-items:center; text-align:center; gap:4px; padding:10px 3px 8px; }
  .type-route i { display:none; }
  .type-route svg { width:20px; height:20px; }
  .type-route strong { font-size:clamp(13px,3.25vw,16px); letter-spacing:0; }
  .type-route small { font-size:12px; }
}
@media(max-width:760px) and (orientation:portrait) and (max-height:740px) {
  .type-hero { padding-top:65px; }
  .type-hero-wrap { gap:9px; }
  .type-opening { gap:11px; }
  .type-lead { display:none; }
  .type-preview { width:min(100%,41svh); }
  .type-route { padding:9px 2px; }
  .type-route svg { display:none; }
}
@media(min-width:761px) and (max-height:700px), (orientation:landscape) and (max-width:760px) {
  .type-hero { padding-block:clamp(52px,11svh,78px) max(42px,7svh); }
  .type-hero-wrap { gap:10px; }
  .type-opening { gap:18px; }
  .type-preview { max-width:min(100%,calc(110svh - 195px)); justify-self:center; margin-top:8px; }
  .type-route { padding:11px 13px; }
  .type-routes { margin-right:max(0px,calc(130px - 5vw)); }
}
@media(orientation:landscape) and (max-height:530px) {
  .type-preview { margin-top:0; }
  .type-copy { padding:0; }
  .type-kicker { margin-bottom:6px; font-size:14px; }
  .type-copy h1 { font-size:clamp(25px,min(4vw,7.6svh),37px); }
  .type-offer { margin-top:8px; font-size:17px; }
  .type-lead { display:none; }
  .type-actions { margin-top:10px; gap:9px 16px; }
  .type-actions :is(a,button) { font-size:14px; }
  .type-action-primary { min-height:37px; padding:6px 11px; }
  .type-routes { margin-right:max(0px,calc(130px - 5vw)); }
  .type-route { gap:8px; padding:7px 9px; }
  .type-route svg,.type-route i { display:none; }
  .type-route strong,.type-route small { font-size:14px; }
}
