@font-face {
  font-family: Plex;
  src: url("ibm-plex-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #0d2965;
  --deep: #111f3d;
  --ink: #263342;
  --muted: #4b5c71;
  --line: #cdd9e7;
  --paper: #fff;
  --pale: #edf5fb;
  --sky: #58b3e5;
  --accent: #214bb4;
  --danger: #a23324;
  font-family: Plex, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: .075em; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #1464c9; outline-offset: 3px; }
.hero :focus-visible { outline-color: #9cdbfc; }
.frame { width: min(100% - 3.5rem, 76rem); margin-inline: auto; }
.sr-skip { position: absolute; z-index: 4; left: 1rem; top: .5rem; transform: translateY(-180%); background: white; padding: .5rem 1rem; }
.sr-skip:focus { transform: none; }
.topbar { background: white; border-bottom: 1px solid var(--line); }
.topbar .frame { display: flex; align-items: center; gap: 2rem; min-height: 4.65rem; }
.brand img { width: 7rem; height: auto; }
.toplinks { display: flex; gap: 1.75rem; align-items: center; margin-inline-start: auto; }
.toplinks a { color: var(--navy); font-size: .94rem; text-decoration: none; }
.toplinks a:hover { text-decoration: underline; }
.sandbox-label { color: var(--muted); font-size: .83rem; border-inline-start: 1px solid var(--line); padding-inline-start: .85rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .38rem .6rem; list-style: none; margin-block: 0; padding: 1rem 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; color: #647995; margin-inline-end: .6rem; }

.hero { background: var(--deep); color: white; }
.hero .frame { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .6fr); align-items: stretch; }
.hero--hub .frame { grid-template-columns: minmax(0, 1fr) minmax(0, .89fr); }
.hero-text { padding: clamp(2.4rem, 6vw, 5.2rem) clamp(1.2rem, 5vw, 4.5rem) clamp(2.8rem, 6vw, 5.4rem) 0; }
.hero h1 { font-size: clamp(2.12rem, 4.7vw, 4.25rem); font-weight: 500; letter-spacing: -.042em; line-height: 1.025; margin: 0 0 1.25rem; max-width: 18ch; text-wrap: balance; }
.hero--hub h1 { font-size: clamp(2.55rem, 4.7vw, 4.35rem); max-width: 20ch; }
.deck { font-size: clamp(1.08rem, 1.85vw, 1.4rem); line-height: 1.42; color: #e0edf9; max-width: 45ch; margin: 0 0 1.6rem; }
.hero-image { position: relative; margin: 0; min-height: 22rem; overflow: hidden; }
.hero-image img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 70% center; }
.hero-ticket { align-self: center; color: var(--ink); background: #edf5fb; border-inline-start: .25rem solid var(--sky); padding: 1.55rem clamp(1rem, 3vw, 2rem); margin: 2.5rem 0; }
.hero-ticket .caption { color: var(--muted); font-size: .85rem; display: block; margin-bottom: .85rem; }
.hero-ticket strong { display: block; font-size: clamp(1.2rem, 2.1vw, 1.6rem); font-weight: 500; line-height: 1.25; color: var(--navy); }
.hero-ticket p { margin: .72rem 0 0; font-size: 1rem; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 2.8rem; padding: .66rem 1.17rem; border: 1px solid transparent; border-radius: .25rem; background: var(--navy); color: white; text-decoration: none; font-weight: 500; cursor: pointer; }
.button:hover { background: var(--accent); color: white; }
.button--hero { background: #bde8fc; color: #11264e; }
.button--hero:hover { background: white; color: var(--deep); }
.button--quiet { background: white; color: var(--navy); border-color: #abbcd2; }
.button--quiet:hover { background: var(--pale); color: var(--navy); }

.bodyframe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 17rem); gap: clamp(1.9rem, 5vw, 5rem); align-items: start; padding-block: 2.5rem 4rem; }
.content { min-width: 0; }
.section { margin-block: 2.55rem; scroll-margin-top: 1.5rem; }
.content h2 { font-size: clamp(1.6rem, 2.7vw, 2.25rem); font-weight: 500; margin: 0 0 1rem; line-height: 1.16; letter-spacing: -.025em; color: var(--navy); text-wrap: pretty; }
.content p, .content ul { font-size: 1.09rem; max-width: 73ch; margin: 0 0 .92rem; }
.content li { margin-block: .32rem; }
.content .intro { font-size: clamp(1.13rem, 1.75vw, 1.33rem); line-height: 1.48; margin-bottom: 1.95rem; }
.aside { padding-top: .2rem; }
.aside h2 { font-size: 1rem; font-weight: 600; color: var(--navy); margin: 0 0 .55rem; }
.aside ul { margin: 0 0 1.6rem; list-style: none; padding: 0; }
.aside li { padding: .48rem 0; border-top: 1px solid var(--line); line-height: 1.34; }
.aside a { display: block; font-size: .94rem; text-decoration: none; }
.aside a:hover { text-decoration: underline; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem 1.4rem; }
.route { display: block; padding: .85rem .02rem; border-top: 1px solid var(--line); text-decoration: none; }
.route:hover strong { text-decoration: underline; }
.route strong { display: block; color: var(--navy); line-height: 1.28; font-size: 1.14rem; font-weight: 600; }
.route span { color: var(--muted); font-size: .97rem; display: block; line-height: 1.42; margin-top: .32rem; }
.related { padding-top: 1.35rem; border-top: 2px solid var(--navy); }
.preview-note { border-block: 1px solid var(--line); padding: .85rem 0; color: var(--muted); }

.table-wrap { max-width: 100%; overflow-x: auto; margin-block: 1.15rem 2rem; }
.table-wrap table, .demo table { border-collapse: collapse; width: 100%; text-align: left; font-size: .98rem; line-height: 1.38; }
.table-wrap caption { text-align: left; font-weight: 600; color: var(--navy); margin: 0 0 .45rem; }
th, td { padding: .63rem .62rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--pale); color: var(--navy); font-weight: 600; }
td { overflow-wrap: anywhere; }
.faq details { border-top: 1px solid var(--line); padding: .7rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--navy); font-size: 1.07rem; font-weight: 600; }
.faq p { margin: .6rem 0 .2rem 1.2rem; }

.demo { background: var(--pale); border-inline-start: .29rem solid var(--sky); padding: clamp(1rem, 3.2vw, 1.65rem); margin-block: 1rem 2.2rem; scroll-margin-top: 1.5rem; }
.demo h2 { font-size: clamp(1.28rem, 2vw, 1.62rem); margin: 0 0 .5rem; }
.demo h3 { margin: .85rem 0 .5rem; color: var(--navy); font-size: 1.15rem; }
.demo p, .demo ul { font-size: 1rem; margin-block: 0 .85rem; }
.demo form { display: grid; gap: .85rem; }
.demo .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .85rem; }
.demo label { display: block; font-size: .96rem; font-weight: 500; color: var(--navy); }
.demo input:not([type="checkbox"]), .demo select { width: 100%; display: block; min-height: 2.65rem; border: 1px solid #aebed1; background: white; border-radius: .2rem; padding: .34rem .5rem; color: var(--ink); margin-top: .2rem; }
.demo input[type="checkbox"] { inline-size: 1rem; block-size: 1rem; vertical-align: middle; accent-color: var(--navy); }
.demo button { justify-self: start; }
.demo .actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.demo .status { margin-top: .8rem; color: var(--navy); font-weight: 500; }
.demo .status:empty { display: none; }
.demo .error { color: var(--danger); }
.demo .table-wrap { margin-block: .7rem 0; }
.demo th { background: #dcecf7; }
.demo .item-list { display: grid; gap: .55rem; }
.demo fieldset { border: 1px solid var(--line); padding: .7rem; margin: 0; min-width: 0; }
.demo fieldset legend { padding-inline: .35rem; color: var(--navy); font-size: .92rem; }
.demo .summary-number { font-size: 1.5rem; font-weight: 600; }
.demo .step { border-block-start: 1px solid var(--line); margin-block-start: .9rem; padding-block-start: .75rem; }
.demo .qr-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-block: .9rem; }
.demo .qr-links img { inline-size: 8rem; block-size: 8rem; background: white; }

.footer { background: var(--deep); color: #e0edf9; font-size: .95rem; }
.footer .frame { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-block: 1.5rem; }
.footer a { color: white; }

@media (max-width: 52rem) {
  .frame { width: min(100% - 2rem, 76rem); }
  .topbar .frame { min-height: 3.9rem; gap: 1rem; }
  .toplinks { gap: .8rem; }
  .toplinks a { font-size: .88rem; }
  .toplinks .top-optional { display: none; }
  .bodyframe { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-block: 1.7rem 2.5rem; }
  .aside { border-top: 1px solid var(--line); }
  .hero .frame, .hero--hub .frame { grid-template-columns: minmax(0, 1fr); }
  .hero-text { padding: 2.3rem 0 1.4rem; }
  .hero-ticket { margin: 0 0 1.5rem; }
  .hero-image { min-height: clamp(13rem, 54vw, 24rem); margin-bottom: 1rem; }
}

@media (max-width: 34rem) {
  .routes { grid-template-columns: minmax(0, 1fr); }
  .demo .fields { grid-template-columns: minmax(0, 1fr); }
  .sandbox-label { padding-inline-start: .55rem; font-size: .76rem; }
  .brand img { width: 5.5rem; }
  .content p, .content ul { font-size: 1.04rem; }
}

@media print {
  .toplinks, .sandbox-label, .hero .button, .footer, .aside, .demo button { display: none; }
  .bodyframe, .hero .frame { display: block; }
}
