:root {
  color-scheme: dark;
  --tp-bg: #0b171e;
  --tp-panel: #11242b;
  --tp-line: #344b50;
  --tp-type: #f0f4ee;
  --tp-muted: #bdcdc6;
  --tp-accent: #b6e5d4;
  --tp-pad: clamp(1.1rem, 4vw, 3.5rem);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  scroll-padding-top: 10rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--tp-bg); color: var(--tp-type); }
.tp-wrap { width: min(100%, 83rem); margin-inline: auto; padding-inline: var(--tp-pad); }
.tp-wrap :is(h1, h2, h3, h4, p, dl, dd) { margin: 0; }
.tp-wrap a, .tp-footer a {
  color: var(--tp-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
}
.tp-wrap a:hover, .tp-footer a:hover { color: #fff; }
.tp-wrap :focus-visible, .tp-footer a:focus-visible { outline: 2px solid var(--tp-accent); outline-offset: 4px; }
.tp-intro { padding: clamp(2.2rem, 5vw, 4.8rem) 0 clamp(1.75rem, 3vw, 3rem); }
.tp-kicker {
  color: var(--tp-accent);
  font: 600 .82rem/1.5 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tp-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .8fr);
  gap: 1rem clamp(2rem, 5vw, 4rem);
  align-items: end;
  margin-top: 1rem;
}
.tp-intro h1 { font-size: clamp(3.15rem, 6.1vw, 6rem); font-weight: 540; line-height: 1.01; letter-spacing: -.055em; }
.tp-intro-row > p, .tp-section-heading > p {
  font-size: clamp(1rem, .96rem + .22vw, 1.14rem);
  line-height: 1.55;
  color: var(--tp-muted);
  max-width: 43rem;
}

.tp-contents { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; margin-top: 1.65rem; }
.tp-contents a { padding-block: .4rem; font-size: .96rem; }
.tp-register { padding-top: 1.5rem; border-top: 1px solid var(--tp-line); }
.tp-register-heading { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .65rem 2rem; margin-bottom: 1.4rem; }
.tp-register-heading h2 { font-size: clamp(1.75rem, 3.1vw, 2.6rem); line-height: 1.12; font-weight: 540; letter-spacing: -.04em; }
.tp-register-heading > p { max-width: 48ch; color: var(--tp-muted); font-size: 1rem; line-height: 1.5; }
.tp-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19.5rem), 1fr)); gap: clamp(1rem, 2vw, 1.65rem); align-items: start; }
.tp-category { overflow: hidden; min-width: 0; background: var(--tp-panel); border: 1px solid var(--tp-line); border-radius: .6rem; }
.tp-category figure { margin: 0; }
.tp-category-image { aspect-ratio: 2 / 1; background: #09141c; }
.tp-category-image img { display: block; height: 100%; width: 100%; object-fit: cover; }
:is(#kets-transitions, #shield-transitions, #it-jump-transitions) .tp-category-image img { object-fit: contain; }
.tp-category figcaption { color: var(--tp-muted); font-size: .85rem; line-height: 1.45; padding: .65rem 1.15rem 0; }
.tp-category-body { padding: 1rem 1.15rem 1.25rem; }
.tp-category-body h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 550; letter-spacing: -.035em; line-height: 1.12; margin-bottom: .6rem; }
.tp-category-body p { color: var(--tp-muted); font-size: 1rem; line-height: 1.6; }
.tp-category details { border-block: 1px solid var(--tp-line); margin-top: 1.1rem; }
.tp-category summary { min-height: 2.75rem; padding: .65rem .1rem; color: var(--tp-accent); font-size: 1rem; cursor: pointer; }
.tp-category summary:hover { color: #fff; }
.tp-code-range, .tp-phase-code { font: .8rem/1.5 "SFMono-Regular", Consolas, monospace; }
.tp-code-range { margin-inline-start: .45rem; white-space: nowrap; color: var(--tp-muted); }
.tp-phase-list { padding: 0; margin: 0; list-style: none; }
.tp-phase-list li { padding: .7rem 0 .85rem; border-top: 1px solid var(--tp-line); }
.tp-phase-code { display: block; color: var(--tp-accent); margin-bottom: .2rem; }
.tp-phase-list strong { font-size: 1rem; line-height: 1.4; }
.tp-phase-list p { margin-top: .2rem; }
.tp-category-reference { display: inline-block; padding: .45rem 0; margin-top: .55rem; font-size: .95rem; font-weight: 600; }
.tp-cruiser-section { margin-top: clamp(2.7rem, 6vw, 5.5rem); padding-top: clamp(1.7rem, 3.6vw, 3rem); border-top: 1px solid var(--tp-line); }
.tp-cruisers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.7rem); }
.tp-cruiser {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--tp-line);
  border-radius: .6rem;
  background: var(--tp-panel);
}
.tp-identity { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; padding: 1.05rem clamp(1rem, 2vw, 1.7rem); }
.tp-identity h2 { font-size: clamp(2rem, 3.4vw, 3.45rem); font-weight: 520; letter-spacing: -.045em; line-height: 1.05; }
.tp-identity p { display: grid; gap: .1rem; line-height: 1.35; text-align: end; color: var(--tp-muted); font-size: .92rem; }
.tp-identity span { color: var(--tp-accent); font: 600 .84rem/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .065em; }
.tp-cruiser img { display: block; width: 100%; height: auto; }
.tp-card-copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: clamp(1rem, 2vw, 1.7rem); gap: 1rem; }
.tp-card-copy p, .tp-journey p { color: var(--tp-muted); font-size: 1rem; line-height: 1.6; }
.tp-card-copy a { margin-top: auto; padding-block: .28rem; font-size: .96rem; font-weight: 600; }

.tp-flight { margin: clamp(2.7rem, 6vw, 5.5rem) 0; padding-top: clamp(1.7rem, 3.6vw, 3rem); border-top: 1px solid var(--tp-line); }
.tp-section-heading { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); align-items: start; gap: .75rem 2rem; margin-bottom: 2rem; }
.tp-section-heading h2 { font-size: clamp(2.3rem, 4.2vw, 4rem); font-weight: 520; line-height: 1.05; letter-spacing: -.05em; }
.tp-study-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 1fr); align-items: start; gap: clamp(1.4rem, 4vw, 3.5rem); }
.tp-profile { min-width: 0; margin: 0; padding: 0; border: 0; }
.tp-profile legend { padding: 0; margin-bottom: .6rem; font-size: .93rem; color: var(--tp-muted); }
.tp-profile > input, .tp-direction-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tp-profile > label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem clamp(.8rem, 2vw, 1.25rem);
  margin: 0 .25rem .2rem 0;
  border: 1px solid var(--tp-line);
  border-radius: .35rem;
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
}
.tp-profile > input:checked + label { border-color: var(--tp-accent); background: var(--tp-accent); color: #102a26; }
.tp-profile > input:focus-visible + label { outline: 2px solid var(--tp-type); outline-offset: 3px; }
.tp-profile > label:hover { border-color: var(--tp-accent); }
#tp-outbound:checked ~ #tp-return, #tp-inbound:checked ~ #tp-departure { display: none; }
.tp-journey ol { padding: 0 0 0 1.9rem; margin: 1.5rem 0 0; }
.tp-journey li { padding: 1rem 0 1.05rem .3rem; border-top: 1px solid var(--tp-line); }
.tp-journey li::marker { color: var(--tp-accent); font: 500 .95rem/1.5 Consolas, monospace; }
.tp-journey h4 { font-size: 1.18rem; line-height: 1.35; font-weight: 600; margin-bottom: .25rem; }

.tp-runway { padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid var(--tp-line); border-radius: .6rem; background: var(--tp-panel); }
.tp-runway h3 { font-size: clamp(1.7rem, 2.8vw, 2.55rem); letter-spacing: -.04em; font-weight: 520; line-height: 1.1; margin: .45rem 0 1.2rem; }
.tp-runway dl > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; padding: .8rem 0; border-bottom: 1px solid var(--tp-line); }
.tp-runway dl > .tp-runway-length { display: grid; gap: .1rem; padding: 0 0 .85rem; }
.tp-runway dt { font-size: .95rem; color: var(--tp-muted); }
.tp-runway dd { font-size: 1.4rem; line-height: 1.2; font-weight: 550; font-variant-numeric: tabular-nums; }
.tp-runway dd span { font-size: .95rem; font-weight: 450; }
.tp-runway-length dd { font-size: 3.65rem; letter-spacing: -.05em; color: var(--tp-accent); }
.tp-runway-length dd span { font-size: 1.5rem; letter-spacing: -.02em; }
.tp-runway > p:last-child { margin-top: 1.2rem; color: var(--tp-muted); font-size: 1rem; line-height: 1.55; }
.tp-footer { border-top: 1px solid var(--tp-line); }
.tp-footer > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; padding-block: 1.3rem; color: var(--tp-muted); font-size: .95rem; }

@media (max-width: 80rem) { :root { scroll-padding-top: 5.5rem; } }
@media (max-width: 54rem) {
  .tp-intro-row, .tp-section-heading { grid-template-columns: 1fr; }
  .tp-study-grid { grid-template-columns: minmax(0, 1fr); }
  .tp-identity { flex-direction: column; align-items: flex-start; }
  .tp-identity p { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; text-align: start; }
}
@media (max-width: 38rem) {
  .tp-cruisers { grid-template-columns: minmax(0, 1fr); }
  .tp-identity { flex-direction: row; align-items: center; }
  .tp-identity p { display: grid; gap: .1rem; text-align: end; }
}
@media print {
  :root { color-scheme: light; --tp-bg: #fff; --tp-type: #162522; --tp-muted: #30443e; --tp-accent: #255d4c; --tp-line: #a8b9b0; --tp-panel: #fff; }
  .tp-wrap { width: 100%; padding: 0; }
  .tp-intro, .tp-flight { margin: 0; padding-block: 1rem; }
  .tp-intro-row, .tp-section-heading, .tp-study-grid { display: block; }
  .tp-contents { display: none; }
  .tp-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-category { break-inside: avoid; }
  .tp-category details::details-content { content-visibility: visible; }
  .tp-cruisers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tp-cruiser, .tp-runway, .tp-journey li { break-inside: avoid; }
  .tp-intro h1 { font-size: 2.8rem; }
  .tp-profile > label, .tp-profile > input, .tp-profile legend { display: none; }
  .tp-profile .tp-journey { display: block !important; }
  .tp-profile .tp-direction-title { position: static; width: auto; height: auto; clip-path: none; margin-top: 1rem; }
  .tp-journey ol { margin-top: .5rem; }
  .tp-study-grid { margin-top: 1rem; }
}
