/* Prime Xpert Delivery — public site, v2.1 "Night port" */
:root {
  --cobalt: #2743E3;
  --cobalt-deep: #1B31B8;
  --night: #0E1A4F;
  --night-2: #18266A;
  --hazard: #FFD23F;
  --paper: #F4F6FB;
  --line: #DCE1EF;
  --text: #1A2140;
  --muted: #59617A;
  --white: #FFFFFF;
  --ok: #138A5E;
  --warn: #A86A00;
  --stop: #C62F3A;

  --display: "Tektur", "Arial Narrow", system-ui, sans-serif;
  --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --cut: 14px; /* angled corner size, echoes Tektur's clipped letterforms */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--body); color: var(--text); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--cobalt); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--hazard); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--hazard); color: var(--night); padding: .6rem 1rem; z-index: 99; font-weight: 600; }
.skip:focus { left: 1rem; }
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 14px, var(--night) 14px 28px); }

/* Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 1rem/1 var(--body); padding: 1rem 1.5rem; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: background-color .15s, color .15s;
}
.btn--cobalt { background: var(--cobalt); color: #fff; }
.btn--cobalt:hover { background: var(--cobalt-deep); }
.btn--hazard { background: var(--hazard); color: var(--night); }
.btn--hazard:hover { background: #FFE27A; }
.btn--outline { border-color: currentColor; color: inherit; background: transparent; clip-path: none; }
.btn--outline:hover { background: rgba(39,67,227,.08); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--hazard); color: var(--text); padding-bottom: 2px; }
.link-arrow:hover { color: var(--cobalt); }

/* Header -------------------------------------------------------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav ul { display: flex; gap: 1.9rem; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-weight: 500; color: var(--text); padding: .4rem 0; position: relative; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 3px; background: var(--cobalt); transition: right .2s; }
.nav ul a:hover::after, .nav ul a[aria-current="page"]::after { right: 0; }
.nav .btn { padding: .8rem 1.15rem; }
.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; color: var(--night); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: 78px 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line);
         flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1.4rem; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--paper); }
  .nav ul a::after { display: none; }
  .nav .btn { margin-top: 1rem; }
}

/* Home hero ----------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--night); color: #fff; min-height: min(84vh, 760px); }
.hero__copy { padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(3rem, 6.4vw, 6rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 1.4rem; }
.hero h1 span { display: block; color: var(--hazard); }
.hero__lede { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.82); max-width: 32rem; margin-bottom: 2.25rem; }
.hero__photo { position: relative; min-height: 320px; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--night); color: rgba(255,255,255,.75); font-size: .85rem; padding: .55rem 1rem; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding: 0; margin: 2rem 0 0; color: rgba(255,255,255,.78); font-size: .98rem; }
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts li::before { content: ""; width: 9px; height: 9px; background: var(--hazard); transform: rotate(45deg); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__photo { order: -1; min-height: 260px; }
  .hero__copy { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* Tracker (hero + inner pages) ---------------------------------- */
.tracker { max-width: 540px; }
.tracker label { display: block; font-weight: 600; margin-bottom: .55rem; color: inherit; }
.tracker__row { display: flex; background: #fff; padding: 6px; gap: 6px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.tracker input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: .85rem .9rem;
  font: 600 1.3rem/1 var(--display); letter-spacing: .09em; text-transform: uppercase; color: var(--night);
}
.tracker input::placeholder { font: 400 1rem/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.tracker input:focus { outline: none; }
.tracker__row:focus-within { box-shadow: inset 0 0 0 3px var(--hazard); }
.tracker .btn { clip-path: none; }
.tracker__hint { font-size: .9rem; margin: .7rem 0 0; opacity: .75; }
@media (max-width: 520px) { .tracker__row { flex-direction: column; } .tracker .btn { width: 100%; } }

/* Sections ------------------------------------------------------ */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--paper { background: var(--paper); }
.section--night { background: var(--night); color: #fff; }
.section h2 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: var(--night); margin-bottom: 1rem; }
.section--night h2 { color: #fff; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.section--night .lede { color: rgba(255,255,255,.75); }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.head-row .lede { margin: 0; }

/* Departure board (signature) ---------------------------------- */
.board { background: var(--night); color: #fff; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.board__head, .board__row { display: grid; grid-template-columns: 1.1fr 1.6fr 1.3fr 11rem; gap: 1.5rem; align-items: center; padding: 1.15rem clamp(1.25rem, 3vw, 2.25rem); }
.board__head { font-size: .88rem; color: rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.14); }
.board__row { border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; color: inherit; transition: background-color .15s; }
.board__row:last-child { border-bottom: 0; }
.board__row:hover { background: var(--night-2); }
.board__row .board__mode { font: 700 clamp(1.4rem, 2.4vw, 1.9rem)/1 var(--display); color: var(--hazard); letter-spacing: .01em; }
.board__row span { color: rgba(255,255,255,.85); }
.board__status { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: #fff !important; }
.board__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61,220,151,.18); }
@media (max-width: 820px) {
  .board__head { display: none; }
  .board__row { grid-template-columns: 1fr; gap: .3rem; padding-block: 1.3rem; }
}

/* Promises ------------------------------------------------------ */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.promise img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.promise h3 { font-size: 1.6rem; color: var(--night); margin: 1.3rem 0 .6rem; }
.promise p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .promises { grid-template-columns: 1fr; } .promise img { aspect-ratio: 16 / 9; } }

/* Split feature ------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split__media::before { content: ""; position: absolute; top: -16px; left: -16px; width: 38%; height: 16px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 12px, var(--night) 12px 24px); }
.split--flip .split__media { order: 2; }
.ticks { list-style: none; padding: 0; margin: 1.75rem 0 2rem; }
.ticks li { padding: .8rem 0 .8rem 2.1rem; border-top: 1px solid var(--line); position: relative; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: .2rem; top: 1.25rem; width: 11px; height: 11px; background: var(--cobalt); transform: rotate(45deg); }
.section--night .ticks li { border-color: rgba(255,255,255,.15); }
.section--night .ticks li::before { background: var(--hazard); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } }

/* FAQ accordion ------------------------------------------------- */
.faq-list { border-top: 2px solid var(--night); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.3rem 0; font-weight: 600; font-size: 1.12rem; color: var(--night); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--cobalt); border-bottom: 3px solid var(--cobalt); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq-item summary:hover { color: var(--cobalt); }
.faq-answer { padding: 0 0 1.5rem; color: var(--muted); max-width: 46rem; }
.faq-answer p:last-child, .faq-answer ul:last-child { margin-bottom: 0; }
.faq-answer ul { padding-left: 1.2rem; }
.faq-answer strong { color: var(--text); }
.faq-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-side { position: sticky; top: 104px; }
.faq-side input { width: 100%; font: 1rem var(--body); padding: .85rem .95rem; border: 2px solid var(--line); background: #fff; color: var(--text); }
.faq-side input:focus { outline: none; border-color: var(--cobalt); }
.faq-side nav { margin-top: 1.25rem; display: grid; }
.faq-side nav a { text-decoration: none; color: var(--text); padding: .6rem 0 .6rem .9rem; border-left: 3px solid var(--line); font-weight: 500; }
.faq-side nav a:hover { border-left-color: var(--cobalt); color: var(--cobalt); }
.faq-group { scroll-margin-top: 104px; }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.faq-empty { padding: 2rem; background: var(--paper); color: var(--muted); }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; } .faq-side { position: static; } .faq-side nav { display: none; } }

/* CTA band ------------------------------------------------------ */
.cta-band { background: var(--cobalt); color: #fff; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta-band h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); color: #fff; margin-bottom: .6rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); max-width: 34rem; font-size: 1.1rem; }

/* Inner page hero ---------------------------------------------- */
.page-hero { position: relative; color: #fff; background: var(--night) center / cover no-repeat; padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14,26,79,.96) 0%, rgba(14,26,79,.8) 50%, rgba(14,26,79,.45) 100%); }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; max-width: 14ch; }
.page-hero p { color: rgba(255,255,255,.84); max-width: 38rem; margin: 1.1rem 0 0; font-size: 1.15rem; }
.crumb { font-size: .92rem; color: var(--hazard); margin-bottom: 1rem; display: block; text-decoration: none; }

/* Services page ------------------------------------------------- */
.svc-list { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.svc:nth-child(even) .svc__media { order: 2; }
.svc__media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%); }
.svc h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.svc p { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.svc .ticks { margin: 1.25rem 0 0; }
@media (max-width: 800px) { .svc { grid-template-columns: 1fr; } .svc:nth-child(even) .svc__media { order: 0; } }

/* About values -------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.15); }
.values div { padding: 2rem 2rem 2rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.values div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
.values div:nth-child(even) { padding-left: 2rem; }
.values h3 { font-size: 1.55rem; color: var(--hazard); margin-bottom: .6rem; }
.values p { color: rgba(255,255,255,.78); margin: 0; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } .values div, .values div:nth-child(even) { padding: 1.6rem 0; border-right: 0 !important; } }

/* Contact ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--night); color: #fff; padding: clamp(1.75rem, 3vw, 2.5rem); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.info-card h2 { font-size: 2rem; color: #fff; }
.info-card dl { margin: 1.25rem 0 0; }
.info-card dt { color: var(--hazard); font-size: .9rem; margin-top: 1.1rem; }
.info-card dd { margin: .15rem 0 0; }
.info-card a { color: #fff; }
.map-frame { width: 100%; height: 320px; border: 0; display: block; margin-top: 1.5rem; background: var(--paper); }
.form { display: grid; gap: 1.15rem; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form label { display: block; font-weight: 600; margin-bottom: .4rem; }
.form input, .form textarea { width: 100%; font: 1rem/1.4 var(--body); padding: .85rem .95rem; border: 2px solid var(--line); background: #fff; color: var(--text); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cobalt); }
.form textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -5000px; }
@media (max-width: 600px) { .form .two { grid-template-columns: 1fr; } }
.alert { padding: .95rem 1.15rem; margin-bottom: 1.25rem; border-left: 4px solid; }
.alert--success { background: #E2F5EC; border-color: var(--ok); color: #0D5C3F; }
.alert--error { background: #FCE6E8; border-color: var(--stop); color: #7F1D25; }

/* Office strip -------------------------------------------------- */
.office { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; }
.office__info { background: var(--night); color: #fff; padding: clamp(2rem, 4vw, 3rem); }
.office__info h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.7rem); margin-bottom: 1rem; }
.office__info dt { color: var(--hazard); font-size: .9rem; margin-top: 1.1rem; }
.office__info dd { margin: .15rem 0 0; }
.office__info a { color: #fff; }
.office iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; background: var(--paper); }
@media (max-width: 800px) { .office { grid-template-columns: 1fr; } }

/* Tracking page ------------------------------------------------- */
.track-hero { background: var(--night) url("../img/tracking-bg.jpg") center / cover no-repeat; position: relative; isolation: isolate; color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.track-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14,26,79,.86); }
.track-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; margin-bottom: 1.2rem; }

.result-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; padding: 2.75rem 0 2rem; }
.result-head .code { font: 800 clamp(2.3rem, 6vw, 4.3rem)/1 var(--display); letter-spacing: .04em; color: var(--night); margin: .7rem 0 .5rem; word-break: break-all; }
.result-head .eta { font-size: 1.15rem; color: var(--muted); margin: 0; }
.result-head .eta strong { color: var(--text); }
.result-actions .btn { padding: .75rem 1.1rem; }

.badge { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .95rem; padding: .35rem .8rem; }
.badge::before { content: ""; width: .55rem; height: .55rem; background: currentColor; transform: rotate(45deg); }
.badge--ok   { background: #E2F5EC; color: var(--ok); }
.badge--move { background: #E6EAFD; color: var(--cobalt-deep); }
.badge--warn { background: #FFF4D1; color: var(--warn); }
.badge--stop { background: #FCE6E8; color: var(--stop); }
.badge--idle { background: var(--paper); color: var(--night-2); }

.progress { background: var(--night); color: #fff; padding: 2rem clamp(1.25rem, 3vw, 2.25rem) 1.75rem; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.progress__ends { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; color: rgba(255,255,255,.6); }
.progress__ends strong { display: block; color: #fff; font-size: 1.1rem; }
.progress__ends div:last-child { text-align: right; }
.progress__track { position: relative; height: 4px; margin: 1.7rem 14px 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 10px, transparent 10px 18px); }
.progress__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--hazard); width: var(--pct); transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.progress__marker { position: absolute; top: 50%; left: var(--pct); transform: translate(-50%, -50%); width: 40px; height: 40px; background: var(--hazard); color: var(--night); display: grid; place-items: center; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); transition: left 1.1s cubic-bezier(.2,.7,.2,1); }
.progress__marker svg { width: 21px; height: 21px; }
.progress.is-loading .progress__fill { width: 0; }
.progress.is-loading .progress__marker { left: 0; }
.progress__stages { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); font-size: .95rem; color: rgba(255,255,255,.55); }
.progress__stages li:nth-child(2) { text-align: center; transform: translateX(-17%); }
.progress__stages li:nth-child(3) { text-align: center; transform: translateX(17%); }
.progress__stages li:last-child { text-align: right; }
.progress__stages li.done { color: #fff; font-weight: 600; }
.progress__alert { margin: 1.4rem 0 0; padding: .85rem 1rem; background: var(--hazard); color: var(--night); font-weight: 500; }
@media (max-width: 560px) { .progress__stages { font-size: .78rem; } }
@media (prefers-reduced-motion: reduce) { .progress__fill, .progress__marker { transition: none; } }

.result-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: 2.5rem; }
@media (max-width: 900px) { .result-grid { grid-template-columns: 1fr; } }
.map-panel iframe { width: 100%; height: 430px; border: 0; display: block; background: var(--paper); }
@media (max-width: 600px) { .map-panel iframe { height: 300px; } }
.map-panel__caption { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.map-panel__caption span { color: var(--muted); font-size: .92rem; }
.map-panel__caption strong { display: block; color: var(--text); font-size: 1.05rem; }
.map-panel__caption a { font-weight: 600; }

.details h2 { font-size: 1.7rem; color: var(--night); margin: 0 0 .35rem; }
.details section + section { margin-top: 1.9rem; }
.details dl { display: grid; grid-template-columns: 9.5rem 1fr; margin: .5rem 0 0; }
.details dt, .details dd { padding: .6rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.details dt { color: var(--muted); }
.details dd { font-weight: 500; overflow-wrap: anywhere; }
.pkg-photo { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; background: none; border: 0; padding: 0; cursor: zoom-in; font: 600 1rem var(--body); color: var(--cobalt); text-align: left; }
.pkg-photo img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); }

.timeline-wrap { margin: 3.75rem 0 clamp(4rem, 8vw, 6rem); }
.timeline-wrap h2 { font-size: 2.2rem; color: var(--night); margin-bottom: 1.25rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 11rem 28px 1fr; gap: 0 1rem; }
.timeline time { text-align: right; padding: 1rem 0; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.timeline time strong { display: block; color: var(--text); font-weight: 600; }
.timeline .dot { position: relative; }
.timeline .dot::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li:first-child .dot::before { top: 1.35rem; }
.timeline li:last-child .dot::before { bottom: calc(100% - 1.35rem); }
.timeline .dot::after { content: ""; position: absolute; left: 8px; top: 1.1rem; width: 12px; height: 12px; background: #fff; border: 2px solid var(--night); transform: rotate(45deg); }
.timeline li:first-child .dot::after { background: var(--hazard); border-color: var(--night); }
.timeline .event { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.timeline .event strong { display: block; font-size: 1.05rem; }
.timeline .event span { color: var(--muted); }
@media (max-width: 600px) {
  .timeline li { grid-template-columns: 28px 1fr; }
  .timeline time { grid-column: 2; text-align: left; padding: 1rem 0 0; order: -1; }
  .timeline .dot { grid-row: 1 / span 2; grid-column: 1; }
  .timeline .event { padding-top: .25rem; grid-column: 2; }
}
.notice { padding: 3.5rem 0 5rem; max-width: 42rem; }
.notice h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); color: var(--night); margin-bottom: 1rem; }
.notice p { color: var(--muted); font-size: 1.1rem; }

dialog.photo { border: 0; padding: 0; max-width: min(92vw, 900px); background: transparent; }
dialog.photo::backdrop { background: rgba(14,26,79,.88); }
dialog.photo img { max-height: 82vh; width: auto; margin: 0 auto; }
dialog.photo form { text-align: right; }
dialog.photo button { background: var(--hazard); color: var(--night); border: 0; padding: .55rem 1rem; margin-bottom: .5rem; font: 600 1rem var(--body); cursor: pointer; }

/* Footer -------------------------------------------------------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.75); font-size: .98rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; padding: 4rem 0 2.5rem; }
.site-footer .mark { display: flex; align-items: center; gap: .8rem; color: #fff; font: 700 1.5rem/1.05 var(--display); text-decoration: none; }
.site-footer .mark img { width: 42px; height: auto; }
.site-footer h2 { font: 600 1rem var(--body); color: var(--hazard); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .4rem 0; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0 1.8rem; font-size: .9rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }

@media print {
  .site-header, .track-hero, .site-footer, .result-actions, .map-panel, .skip, .hazard, #google_translate_element { display: none !important; }
  .progress { background: none; color: var(--text); border: 1px solid #ccc; clip-path: none; }
  .progress__ends strong, .progress__stages li.done { color: var(--text); }
  .result-grid { grid-template-columns: 1fr; }
}
