/* Xyncema Route — a dark operations interface. Mono numerals, status timelines, dense tables.
   The first dark-first theme in the library, so most surfaces are near-black and separation
   comes from hairline borders rather than shadow. */

[data-theme="logistics"] body { background: var(--bg); color: var(--text); font-family: var(--font-body); }
.rt-wrap { width: min(100% - 2.5rem, 78rem); margin-inline: auto; }
.rt-muted { color: var(--muted); }
.rt-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.rt-h1, .rt-h2, .rt-h3, .rt-h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.015em; }
.rt-h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem); line-height: 1.06; }
.rt-h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); }
.rt-h3 { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem); }
.rt-h4 { font-size: 0.95rem; font-weight: 600; }
.rt-eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin: 0 0 0.9rem; }
.rt-lead { font-size: clamp(1rem, 0.96rem + 0.25vw, 1.12rem); line-height: 1.65; color: var(--muted); }

/* ---------- Header ---------- */
.rt-notice { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 0.8125rem; line-height: 1.45; padding: 0.55rem 0; color: var(--muted); }
.rt-notice p { margin: 0; }
.rt-header { position: sticky; top: 0; z-index: 30; background: rgba(15, 19, 23, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.rt-header__row { display: flex; align-items: center; gap: 1.25rem; min-height: 4.25rem; }
.rt-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.15rem; margin-right: auto; letter-spacing: -0.02em; }
.rt-logo i { width: 1.6rem; height: 1.6rem; border-radius: 4px; background: var(--primary); display: grid; place-items: center; flex: none; }
.rt-logo i::after { content: ""; width: 0.7rem; height: 2px; background: var(--on-primary); box-shadow: 0 -4px 0 var(--on-primary), 0 4px 0 var(--on-primary); }
.rt-logo small { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.rt-nav { display: flex; gap: 1.4rem; }
.rt-nav a { color: var(--muted); text-decoration: none; font-size: 0.9125rem; padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.rt-nav a:hover { color: var(--text); }
.rt-nav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }
.rt-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); width: 2.75rem; height: 2.75rem; padding: 0.6rem; color: var(--text); cursor: pointer; }
.rt-toggle svg { width: 100%; height: 100%; }
.rt-mobile { display: none; flex-direction: column; padding-bottom: 1rem; }
.rt-mobile a { padding: 0.8rem 0; border-top: 1px solid var(--border); color: var(--text); text-decoration: none; }
.rt-mobile[data-open] { display: flex; }
@media (max-width: 900px) { .rt-nav, .rt-header .rt-btn { display: none; } .rt-toggle { display: block; } }

/* ---------- Buttons ---------- */
.rt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0 1.25rem; border-radius: var(--radius-btn); border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); font: 600 0.9125rem/1 var(--font-body); text-decoration: none; cursor: pointer; }
.rt-btn:hover { filter: brightness(1.12); }
.rt-btn--line { background: transparent; color: var(--text); border-color: var(--border); }
.rt-btn--line:hover { filter: none; border-color: var(--text); }
.rt-btn svg { width: 1.05rem; height: 1.05rem; }
.rt-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--primary); text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.rt-link svg { width: 1rem; height: 1rem; }

/* ---------- Sections ---------- */
.rt-section { padding-block: clamp(3rem, 2rem + 3.5vw, 5rem); border-top: 1px solid var(--border); }
.rt-section--plain { border-top: 0; }
.rt-head { display: grid; gap: 0.85rem; margin-bottom: 2.25rem; max-width: 44rem; }

/* ---------- Hero ---------- */
.rt-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.rt-hero__media { position: absolute; inset: 0; }
.rt-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.rt-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,19,23,.72) 0%, rgba(15,19,23,.86) 55%, var(--bg) 100%); }
.rt-hero__inner { position: relative; padding-block: clamp(3rem, 2rem + 5vw, 6rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.rt-hero h1 { max-width: 16ch; }
.rt-hero__copy { margin: 1.15rem 0 0; max-width: 46ch; line-height: 1.65; color: var(--muted); }
@media (max-width: 960px) { .rt-hero__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Panels ---------- */
.rt-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.15rem, 2.5vw, 1.6rem); }
.rt-panel__head { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.rt-panel__head h2, .rt-panel__head h3 { margin: 0; }

/* ---------- Tracking ---------- */
.rt-track__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem; align-items: end; }
.rt-track__form .xy-field { margin: 0; }
.rt-samples { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; align-items: center; }
.rt-samples span { font-size: 0.8125rem; color: var(--muted); }
.rt-sample { font-family: var(--font-mono); font-size: 0.8125rem; padding: 0.35rem 0.55rem; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--primary); cursor: pointer; }
.rt-sample:hover { border-color: var(--primary); }
.rt-result { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: grid; gap: 1.25rem; }
.rt-result__top { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: baseline; justify-content: space-between; }
.rt-ref { font-family: var(--font-mono); font-size: 1.15rem; letter-spacing: 0.02em; }
.rt-badge { display: inline-flex; align-items: center; gap: 0.45rem; font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 0.45rem 0.6rem; border-radius: 4px; border: 1px solid var(--primary); color: var(--primary); }
.rt-badge--done { border-color: var(--primary); background: rgba(61, 220, 132, 0.12); }
.rt-badge--hold { border-color: var(--danger); color: var(--danger); background: rgba(255, 122, 122, 0.1); }
.rt-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rt-facts div { background: var(--surface); padding: 0.85rem 0.9rem; display: grid; gap: 0.25rem; }
.rt-facts dt, .rt-facts .rt-k { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rt-facts .rt-v { font-size: 0.95rem; }
.rt-exception { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; padding: 0.9rem 1rem; border: 1px solid var(--danger); border-radius: var(--radius); background: rgba(255, 122, 122, 0.08); font-size: 0.9125rem; line-height: 1.6; }
.rt-exception svg { width: 1.1rem; height: 1.1rem; color: var(--danger); margin-top: 0.15rem; }
.rt-steps { list-style: none; margin: 0; padding: 0; }
.rt-step { display: grid; grid-template-columns: 5.5rem auto minmax(0, 1fr); gap: 0.9rem; align-items: start; padding: 0.7rem 0; }
.rt-step__time { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); padding-top: 0.15rem; white-space: nowrap; }
.rt-step__dot { position: relative; width: 0.85rem; display: grid; justify-items: center; }
.rt-step__dot i { width: 0.62rem; height: 0.62rem; border-radius: 50%; border: 2px solid var(--border); background: var(--bg); margin-top: 0.3rem; z-index: 1; }
.rt-step__dot::after { content: ""; position: absolute; top: 0.9rem; bottom: -0.8rem; width: 2px; background: var(--border); }
.rt-step:last-child .rt-step__dot::after { display: none; }
.rt-step--done i { background: var(--primary); border-color: var(--primary); }
.rt-step--done .rt-step__dot::after { background: var(--primary); }
.rt-step--now i { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.2); }
.rt-step--todo { opacity: 0.55; }
.rt-step b { display: block; font-weight: 600; font-size: 0.95rem; }
.rt-step small { color: var(--muted); font-size: 0.8375rem; line-height: 1.5; display: block; margin-top: 0.15rem; }
.rt-step__place { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
@media (max-width: 720px) {
  .rt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rt-track__form { grid-template-columns: minmax(0, 1fr); }
  .rt-step { grid-template-columns: 4.2rem auto minmax(0, 1fr); gap: 0.6rem; }
}
@media (max-width: 430px) { .rt-facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Service cards ---------- */
.rt-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.rt-svc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.rt-svc img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.rt-svc__body { padding: 1.25rem; display: grid; gap: 0.7rem; align-content: start; }
.rt-svc h3 a { color: inherit; text-decoration: none; }
.rt-svc h3 a:hover { color: var(--primary); }
.rt-svc p { margin: 0; color: var(--muted); font-size: 0.9125rem; line-height: 1.6; }
.rt-svc__rate { font-family: var(--font-mono); font-size: 0.875rem; color: var(--text); border-top: 1px solid var(--border); padding-top: 0.7rem; }
.rt-svc__rate small { color: var(--muted); display: block; margin-top: 0.2rem; font-size: 0.75rem; letter-spacing: 0.04em; }
@media (max-width: 760px) { .rt-services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Quote calculator ---------- */
.rt-quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1rem; align-items: start; }
.rt-form { display: grid; gap: 1.25rem; }
.rt-form fieldset { border: 0; margin: 0; padding: 0; }
.rt-form legend { font: 600 0.75rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 0.7rem; }
.rt-opts { display: grid; gap: 0.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rt-opts label { display: grid; gap: 0.15rem; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 0.85rem; cursor: pointer; background: var(--bg); }
.rt-opts label:hover { border-color: var(--muted); }
.rt-opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.rt-opts label b { font-size: 0.9125rem; font-weight: 600; }
.rt-opts label span { font-size: 0.8125rem; color: var(--muted); line-height: 1.45; }
.rt-opts label:has(input:checked) { border-color: var(--primary); background: rgba(61, 220, 132, 0.08); }
.rt-opts label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.rt-dims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
.rt-checks { display: grid; gap: 0.5rem; }
.rt-checks label { display: grid; grid-template-columns: auto 1fr auto; gap: 0.65rem; align-items: baseline; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.85rem; cursor: pointer; font-size: 0.9125rem; }
.rt-checks label:has(input:checked) { border-color: var(--primary); }
.rt-checks small { color: var(--muted); font-size: 0.8125rem; display: block; }
.rt-checks .rt-price { font-family: var(--font-mono); font-size: 0.875rem; }
.rt-out { position: sticky; top: 5.5rem; display: grid; gap: 1rem; }
.rt-lines { list-style: none; margin: 0; padding: 0; display: grid; }
.rt-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; padding: 0.6rem 0; border-top: 1px solid var(--border); font-size: 0.9125rem; align-items: baseline; }
.rt-lines li:first-child { border-top: 0; }
.rt-lines .rt-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.rt-lines small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.15rem; }
.rt-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding-top: 0.9rem; margin-top: 0.3rem; border-top: 2px solid var(--primary); }
.rt-total b { font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rt-total .rt-price { font-family: var(--font-mono); font-size: 1.5rem; color: var(--primary); }
.rt-chg { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 0.95rem; background: var(--bg); font-size: 0.875rem; line-height: 1.6; color: var(--muted); }
.rt-chg b { color: var(--text); font-family: var(--font-mono); }
@media (max-width: 960px) { .rt-quote { grid-template-columns: minmax(0, 1fr); } .rt-out { position: static; } }
@media (max-width: 620px) { .rt-opts, .rt-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .rt-opts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Rule table ---------- */
.rt-tablewrap { overflow-x: auto; min-width: 0; position: relative; border: 1px solid var(--border); border-radius: var(--radius); }
.rt-table { width: 100%; border-collapse: collapse; font-size: 0.9125rem; min-width: 34rem; }
@media (max-width: 560px) { .rt-table { min-width: 26rem; font-size: 0.875rem; } .rt-table th, .rt-table td { padding: 0.65rem 0.7rem; } }
.rt-table th, .rt-table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.rt-table thead th { font: 600 0.6875rem/1.3 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.rt-table tbody tr:last-child th, .rt-table tbody tr:last-child td { border-bottom: 0; }
.rt-table td.rt-num, .rt-table th.rt-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-table tbody th { font-weight: 600; }

/* ---------- Network ---------- */
.rt-net { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.rt-net img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.rt-pts { display: grid; gap: 0; }
.rt-pts > div { padding: 1.1rem 0; border-top: 1px solid var(--border); display: grid; gap: 0.35rem; }
.rt-pts > div:last-child { border-bottom: 1px solid var(--border); }
.rt-pts p { margin: 0; color: var(--muted); font-size: 0.9125rem; line-height: 1.65; }
.rt-bound { margin-top: 2rem; border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.15rem, 2.5vw, 1.6rem); background: var(--surface); }
.rt-bound ul { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.rt-bound li { display: grid; grid-template-columns: auto 1fr; gap: 0.65rem; font-size: 0.9125rem; line-height: 1.6; }
.rt-bound li::before { content: "×"; color: var(--danger); font-family: var(--font-mono); }
@media (max-width: 900px) { .rt-net { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Collection ---------- */
.rt-pagehead { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); border-bottom: 1px solid var(--border); }
.rt-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.rt-chip { min-height: 2.6rem; padding: 0 0.95rem; border: 1px solid var(--border); background: transparent; border-radius: var(--radius); font: 500 0.875rem/1 var(--font-body); color: var(--text); cursor: pointer; }
.rt-chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-weight: 600; }
.rt-chip:hover[aria-pressed="false"] { border-color: var(--muted); }
.rt-empty { padding: 3rem 0; }

/* ---------- Detail ---------- */
.rt-dhead { padding-block: clamp(2rem, 1.5rem + 2.5vw, 3rem); }
.rt-crumb { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); margin: 0 0 1rem; }
.rt-crumb a { color: var(--muted); }
.rt-dhero { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); margin-top: 1.75rem; }
.rt-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.rt-aside { display: grid; gap: 1rem; position: sticky; top: 5.5rem; }
.rt-aside .rt-panel { display: grid; gap: 0.65rem; }
.rt-aside h3 { font-size: 0.75rem; font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rt-kv { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.rt-kv li { display: grid; gap: 0.2rem; font-size: 0.9125rem; line-height: 1.55; }
.rt-kv span { color: var(--muted); font-size: 0.8125rem; }
.rt-prose p { line-height: 1.75; margin: 0 0 1.05rem; max-width: 40rem; }
.rt-prose p:last-child { margin-bottom: 0; }
.rt-flow { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.rt-flow span { font-family: var(--font-mono); font-size: 0.8125rem; padding: 0.4rem 0.6rem; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); }
.rt-flow span::after { content: ""; }
.rt-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-top: 1.25rem; }
.rt-thumb { padding: 0; border: 1px solid var(--border); background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; }
.rt-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.rt-thumb:hover { border-color: var(--primary); }
@media (max-width: 940px) { .rt-cols { grid-template-columns: minmax(0, 1fr); } .rt-aside { position: static; } }
@media (max-width: 560px) { .rt-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.rt-faq details { border-top: 1px solid var(--border); }
.rt-faq details:last-of-type { border-bottom: 1px solid var(--border); }
.rt-faq summary { cursor: pointer; padding: 1.05rem 0; font-weight: 600; font-size: 0.975rem; line-height: 1.45; list-style: none; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; }
.rt-faq summary::-webkit-details-marker { display: none; }
.rt-faq summary::after { content: "+"; color: var(--primary); font-family: var(--font-mono); font-size: 1.1rem; line-height: 1; }
.rt-faq details[open] summary::after { content: "–"; }
.rt-faq p { margin: 0 0 1.15rem; color: var(--muted); line-height: 1.7; max-width: 48rem; }

/* ---------- Contact band ---------- */
.rt-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.rt-band img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 800px) { .rt-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.rt-footer { border-top: 1px solid var(--border); padding-block: clamp(2.5rem, 2rem + 3vw, 3.5rem) 2rem; background: var(--surface); }
.rt-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.rt-footer p { color: var(--muted); line-height: 1.7; font-size: 0.9rem; margin: 0.8rem 0 0; }
.rt-footer h3 { font: 600 0.6875rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin: 0 0 0.9rem; }
.rt-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.rt-footer a { color: var(--text); text-decoration: none; font-size: 0.9rem; }
.rt-footer a:hover { color: var(--primary); }
.rt-footer__note { margin-top: 2.25rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: 0.8125rem; line-height: 1.65; color: var(--muted); }
@media (max-width: 820px) { .rt-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rt-footer__grid { grid-template-columns: minmax(0, 1fr); } }
