/* Shervane Urban Court: "Transit Map". The store is the interchange; four coloured lines are the categories and every product is a station. Adding to cart lights the station and draws its line segment; the cart is a fare card. Bold black geometric type on raw concrete. */
:root {
  --ink: #111111;
  --ink-2: #2b2e31;
  --concrete: #c9ccce;
  --concrete-2: #dcdfe0;
  --paper: #f2f3f3;
  --white: #ffffff;
  --muted: #555b61;
  --rule: rgba(17, 17, 17, .16);
  --red: #e63946;
  --yellow: #f4b400;
  --green: #2a9d8f;
  --blue: #1d4ed8;
  --error: #b3261e;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, Menlo, Consolas, monospace;
  --pad: clamp(16px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--white); padding: .7rem 1rem; font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; flex: none; }
[hidden] { display: none !important; }
.code { display: inline-grid; place-items: center; min-width: 2.4em; padding: .15em .45em; background: var(--ink); color: var(--white); font: 500 .78rem/1.2 var(--mono); letter-spacing: .04em; }
h2 { font: 800 clamp(1.8rem, 4.2vw, 3.2rem)/1.04 var(--display); letter-spacing: -.02em; text-transform: uppercase; }

/* Header: a white bar sitting on the four line stripes. Solid, unfiltered, untransformed. */
.header { position: sticky; top: 0; z-index: 60; background: var(--white); border-bottom: 6px solid transparent; border-image: linear-gradient(90deg, var(--red) 0 25%, var(--yellow) 25% 50%, var(--green) 50% 75%, var(--blue) 75%) 1; }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 72px; padding: 0 var(--pad); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; flex: 0 0 auto; }
.brand img { width: 44px; height: auto; }
.word { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; }
.word span:first-child { font: 800 1.12rem/1 var(--display); letter-spacing: -.01em; }
.word span:last-child { font: 500 .62rem/1 var(--mono); letter-spacing: .32em; margin-top: .35rem; color: var(--muted); }
.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-cap { display: none; }
.nav-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .35rem .6rem; font: 600 .9rem/1 var(--text); text-decoration: none; border: 2px solid transparent; }
.nav-link small { display: none; }
.nav-link:hover { border-color: var(--ink); }
.lg-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c, var(--ink)); color: var(--white); font: 700 .74rem/1 var(--display); flex: none; }
.nav-plain { color: var(--muted); }
.nav-close-li { display: none; }
@media (max-width: 1240px) { .nav-plain { display: none; } }
.cart-btn { display: inline-flex; align-items: center; gap: .55rem; min-height: 50px; padding: .35rem .45rem .35rem .6rem; background: var(--ink); color: var(--white); border: 0; border-radius: 8px; box-shadow: inset 0 -5px 0 var(--blue); flex: 0 0 auto; }
.fc-chip { width: 22px; height: 17px; border-radius: 3px; background: linear-gradient(135deg, #e7c46a, #b88a2b); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.fc-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.fc-label { font: 500 .6rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #aeb4ba; }
.fc-bal { font: 500 1rem/1.2 var(--mono); }
.cart-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 .3rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 700 .8rem/1 var(--display); }
.cart-btn.pop { animation: tap .5s ease; }
@keyframes tap { 30% { box-shadow: inset 0 -5px 0 var(--green), 0 0 0 4px rgba(42, 157, 143, .35); } }
.nav-toggle { display: none; align-items: center; gap: .5rem; min-height: 50px; padding: 0 .8rem; background: var(--white); border: 2px solid var(--ink); flex: 0 0 auto; font-weight: 700; }
.tg-dots { display: grid; grid-template-columns: repeat(2, 8px); gap: 3px; }
.tg-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.tg-dots i:nth-child(2) { background: var(--yellow); } .tg-dots i:nth-child(3) { background: var(--green); } .tg-dots i:nth-child(4) { background: var(--blue); }
.nav-close { display: none; width: 48px; height: 48px; place-items: center; background: var(--white); border: 2px solid var(--ink); }
.back-link { margin-left: auto; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; }
  .nav-list.open { display: flex; position: fixed; inset: 0; z-index: 200; height: 100dvh; overflow-y: auto; flex-direction: column; align-items: stretch; justify-content: center; gap: .2rem; padding: 5.5rem 1.5rem 2rem; background: var(--paper); }
  .nav-list.open .nav-cap { display: block; font: 500 .8rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
  .nav-list.open .nav-link { display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; padding: .8rem .2rem; font: 800 1.35rem/1.1 var(--display); text-transform: uppercase; border: 0; border-bottom: 2px solid var(--ink); }
  .nav-list.open .nav-link .lg-dot { width: 40px; height: 40px; font-size: .95rem; grid-row: span 2; }
  .nav-list.open .nav-link small { display: block; font: 500 .85rem/1.3 var(--text); text-transform: none; color: var(--muted); }
  .nav-list.open .nav-plain { display: block; font-size: 1rem; border-bottom-width: 1px; padding: .7rem .2rem; }
  .nav-list.open .nav-close-li { display: block; position: absolute; top: 14px; right: 16px; }
  .nav-close { display: grid; }
}
@media (max-width: 480px) {
  .word span:first-child { font-size: .92rem; }
  .word span:last-child { letter-spacing: .2em; }
  .brand img { width: 38px; }
  .fc-label { display: none; }
  .tg-txt { display: none; }
  .nav { gap: .5rem; }
  .nav-toggle { padding: 0 .65rem; }
}
@media (max-width: 370px) { .word { display: none; } }

/* Hero: copy and the network map */
.hero { display: grid; gap: 2rem; padding: clamp(2rem, 5vw, 4rem) var(--pad) clamp(2rem, 4vw, 3rem); background: var(--concrete-2); }
.kicker { display: flex; align-items: center; gap: .6rem; font: 500 .82rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }
.kdot { width: 14px; height: 14px; border-radius: 50%; border: 4px solid var(--ink); background: var(--white); flex: none; }
.hero h1 { font: 800 clamp(2.1rem, 4.4vw, 3.8rem)/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; margin-bottom: .9rem; }
.hero h1 span { display: block; color: var(--ink-2); }
.h1-stripes { display: grid; grid-template-columns: repeat(4, 1fr); width: min(320px, 70%); height: 12px; margin-bottom: 1.4rem; }
.h1-stripes i { background: var(--red); } .h1-stripes i:nth-child(2) { background: var(--yellow); } .h1-stripes i:nth-child(3) { background: var(--green); } .h1-stripes i:nth-child(4) { background: var(--blue); }
.lede { font-size: 1.1rem; max-width: 36rem; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: 1.6rem; max-width: 34rem; }
.lg { display: flex; align-items: center; gap: .65rem; min-height: 56px; padding: .45rem .6rem; background: var(--white); border-left: 8px solid var(--c); text-decoration: none; }
.lg:hover { background: var(--paper); }
.lg-txt { display: flex; flex-direction: column; line-height: 1.15; }
.lg-txt b { font: 700 .92rem/1.1 var(--display); text-transform: uppercase; }
.lg-txt span { font-size: .84rem; color: var(--muted); }
.perks { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.perks span { font: 500 .78rem/1 var(--mono); padding: .45rem .6rem; border: 1.5px solid var(--ink); }
.map { align-self: center; }
.map-scroll { overflow-x: auto; border: 2px solid var(--ink); background: var(--paper); overscroll-behavior-x: contain; }
.map-svg { display: block; width: 100%; min-width: 0; height: auto; }
.swipe { display: none; }
@media (max-width: 759px) { .map-svg { min-width: 720px; } .swipe { display: inline; } }
.grid line { stroke: rgba(17, 17, 17, .06); stroke-width: 1; }
.ln { fill: none; stroke: var(--c); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.hub-ring { fill: var(--white); stroke: var(--ink); stroke-width: 6; }
.hub { fill: var(--ink); }
.hub-name { font: 700 15px var(--display); text-anchor: middle; fill: var(--ink); letter-spacing: .04em; }
.hub-sub { font: 500 12px var(--mono); text-anchor: middle; fill: var(--muted); }
.st { cursor: pointer; }
.st circle { fill: var(--white); stroke: var(--c); stroke-width: 6; transition: fill .3s, r .3s; }
.st-code { font: 500 10px var(--mono); text-anchor: middle; fill: var(--ink); pointer-events: none; }
.st-name { font: 600 13.5px var(--text); text-anchor: middle; fill: var(--ink); }
.st:hover circle, .st:focus-visible circle { fill: var(--concrete-2); }
.st:focus-visible { outline: none; }
.st:focus-visible circle { stroke: var(--ink); }
.st.lit circle { fill: var(--c); r: 18; }
.st.lit .st-code { fill: var(--white); font-weight: 500; }
.map-note { margin-top: .6rem; font: 500 .78rem/1.4 var(--mono); color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.6, .1, .2, 1) .2s forwards; }
  .ln-y { animation-delay: .35s; } .ln-g { animation-delay: .5s; } .ln-b { animation-delay: .65s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .st { animation: pop .45s ease backwards; animation-delay: 1.2s; }
  @keyframes pop { from { opacity: 0; } }
  .st.lit circle { animation: ping 1.8s ease-out 1; }
  @keyframes ping { 0% { stroke-width: 6; } 30% { stroke-width: 14; } 100% { stroke-width: 6; } }
}
@media (max-width: 640px) { .legend { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
}

/* Terminal photo */
.terminal { position: relative; background: var(--ink); }
.terminal img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.terminal figcaption { display: flex; align-items: center; gap: .7rem; padding: .8rem var(--pad); color: var(--white); font: 500 .85rem/1.3 var(--mono); }
.terminal .code { background: var(--yellow); color: var(--ink); }
@media (max-width: 640px) { .terminal img { aspect-ratio: 4 / 3; } }

/* Shop: four routes */
.shop { padding: clamp(3.5rem, 7vw, 6rem) var(--pad) clamp(3rem, 6vw, 5rem); }
.shop-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.shop-head h2 span { display: block; color: var(--muted); }
.shop-head p { max-width: 40rem; color: var(--muted); }
@media (min-width: 1024px) { .shop-head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 3rem; } }
.route { padding: 1.6rem 0 2.4rem; border-top: 2px solid var(--ink); scroll-margin-top: 90px; }
.route-head { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; margin-bottom: 1.8rem; }
.route-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c); color: var(--white); font: 800 1.7rem/1 var(--display); box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--ink); flex: none; }
.route-head h3 { font: 800 1.5rem/1.05 var(--display); text-transform: uppercase; }
.route-head p { color: var(--muted); }
.route-ends { margin-left: auto; font: 500 .82rem/1.3 var(--mono); padding: .45rem .7rem; background: var(--white); border: 1.5px solid var(--ink); }

.stops { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0 1.1rem; --ly: 22px; }
.stops::before { content: ''; position: absolute; left: 0; right: 0; top: calc(var(--ly) - 5px); height: 10px; background: repeating-linear-gradient(90deg, var(--concrete) 0 18px, transparent 18px 26px); }
.stop { position: relative; padding-top: 52px; }
.stop::before { content: ''; position: absolute; left: -1.1rem; right: 50%; top: calc(var(--ly) - 5px); height: 10px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.3, .1, .2, 1); }
.stop:first-child::before { left: 0; }
.stop.in-cart::before { transform: none; }
.node { position: absolute; left: 50%; top: var(--ly); width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--white); border: 6px solid var(--c); z-index: 1; transition: background-color .3s, transform .3s; }
.stop.in-cart .node { background: var(--c); transform: scale(1.12); box-shadow: 0 0 0 5px var(--paper), 0 0 0 7px var(--c); }
.sign { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 2px solid var(--ink); }
.sign-bar { display: flex; align-items: center; gap: .55rem; min-height: 52px; padding: .45rem .6rem; background: var(--ink); color: var(--white); }
.sign-bar .code { background: var(--c); }
.sign-name { font: 700 .96rem/1.2 var(--text); }
.sign-photo { background: var(--concrete-2); border-bottom: 2px solid var(--ink); }
.sign-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sign-desc { padding: .75rem .75rem 0; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.buy { margin-top: auto; padding: .85rem .75rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.item-price, .price { font: 500 1.18rem/1 var(--mono); }
.cur { font-family: var(--text); font-weight: 700; margin-right: .04em; }
.add-btn { min-height: 44px; padding: .5rem .9rem; background: var(--ink); color: var(--white); border: 0; box-shadow: inset 0 -4px 0 var(--c); font: 700 .88rem/1 var(--text); }
.add-btn:hover { background: var(--ink-2); }
.stepper { display: inline-flex; align-items: center; border: 2px solid var(--ink); background: var(--white); }
.stepper button, .qty button { display: grid; place-items: center; width: 42px; height: 42px; background: none; border: 0; }
.stepper button:hover, .qty button:hover { background: var(--concrete-2); }
.stepper button:disabled, .qty button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 2ch; text-align: center; font: 500 1rem/1 var(--mono); }
.stock { padding: .55rem .75rem .8rem; font: 500 .74rem/1 var(--mono); color: var(--muted); }
@media (min-width: 1024px) { .stops { grid-template-columns: repeat(var(--n), minmax(0, 250px)); } }

/* Small screens: each route becomes a vertical line with stations down the left */
@media (max-width: 759px) {
  .stops { grid-template-columns: minmax(0, 1fr); gap: 1.1rem 0; padding-left: 46px; }
  .stops::before { left: 15px; right: auto; top: 0; bottom: 0; width: 10px; height: auto; background: repeating-linear-gradient(180deg, var(--concrete) 0 18px, transparent 18px 26px); }
  .stop { padding-top: 0; }
  .stop::before { left: -31px; right: auto; top: -1.1rem; bottom: 50%; width: 10px; height: auto; transform: scaleY(0); transform-origin: top; }
  .stop:first-child::before { left: -31px; top: 0; }
  .stop.in-cart::before { transform: none; }
  .node { left: -26px; top: 50%; }
  .sign { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .sign-bar { grid-column: 1 / -1; }
  .sign-photo { grid-row: span 3; border-bottom: 0; border-right: 2px solid var(--ink); }
  .sign-photo img { height: 100%; }
  .sign-desc { padding: .6rem .7rem 0; font-size: .86rem; }
  .buy { padding: .6rem .7rem 0; }
  .stock { padding: .45rem .7rem .7rem; }
  .route-ends { margin-left: 0; }
}

/* Timetable */
.timetable { display: grid; gap: 2rem; padding: clamp(3.5rem, 7vw, 6rem) var(--pad); background: var(--white); border-top: 2px solid var(--ink); }
.tt-next { margin: 1rem 0 1.4rem; font: 500 1rem/1.4 var(--mono); padding: .7rem .9rem; border: 2px dashed var(--ink); display: inline-block; }
.tt-next.live { border-style: solid; background: var(--yellow); }
.tt-photo { border: 2px solid var(--ink); }
.tt-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tt { width: 100%; border-collapse: collapse; align-self: start; }
.tt th, .tt td { text-align: left; vertical-align: top; padding: 1rem .2rem; border-bottom: 1.5px solid var(--ink); }
.tt tr:first-child th, .tt tr:first-child td { border-top: 4px solid var(--ink); }
.tt th { width: 40%; font: 700 1rem/1.3 var(--display); text-transform: uppercase; }
.tt th .code { margin-right: .6rem; }
.tt td { font-size: 1.02rem; overflow-wrap: anywhere; }
.tt a { font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 559px) { .tt th, .tt td { display: block; width: 100%; } .tt td { padding-top: 0; } .tt th { border-bottom: 0; padding-bottom: .4rem; } }
@media (min-width: 1024px) { .timetable { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }

/* About */
.about { display: grid; gap: 2.4rem; padding: clamp(3.5rem, 7vw, 6rem) var(--pad); background: var(--concrete-2); }
.about-photo { border: 2px solid var(--ink); background: var(--ink); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy h2 { margin-bottom: 1.2rem; }
.stops-v { position: relative; margin: 2rem 0 0; padding-left: 46px; }
.stops-v::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 10px; background: var(--ink); }
.stops-v li { position: relative; padding: .2rem 0 1.4rem; }
.stops-v li::before { content: ''; position: absolute; left: -41px; top: .2rem; width: 30px; height: 30px; border-radius: 50%; background: var(--white); border: 6px solid var(--c); }
.stops-v h3 { font: 800 1.1rem/1.2 var(--display); text-transform: uppercase; }
.stops-v p { color: var(--muted); }
.mv { display: grid; gap: .8rem; margin-top: .6rem; }
.mv div { padding: 1rem 1.1rem; background: var(--white); border: 2px solid var(--ink); }
.mv dt { font: 500 .76rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.mv dd { font-weight: 600; }
@media (min-width: 1024px) { .about { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } .mv { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { padding: clamp(3.5rem, 7vw, 6rem) var(--pad); display: grid; gap: 1.6rem; }
.faq-list { border-top: 4px solid var(--ink); }
.faq details { border-bottom: 1.5px solid var(--ink); }
.faq summary { display: flex; align-items: center; gap: .8rem; min-height: 60px; padding: .9rem 0; cursor: pointer; list-style: none; font: 700 1.08rem/1.3 var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { margin-left: auto; transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.2rem 3.2rem; color: var(--muted); }
@media (min-width: 1024px) { .faq { grid-template-columns: 1fr 1.6fr; gap: 4rem; } }

/* Contact: the interchange information board */
.contact { display: grid; gap: 0; background: var(--ink); color: var(--white); }
.contact-board { padding: clamp(3rem, 6vw, 5rem) var(--pad); }
.contact h2 { display: flex; align-items: center; gap: .9rem; margin-bottom: 2rem; }
.contact h2 img { width: 54px; height: auto; flex: none; }
.contact-cards { font-style: normal; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 2px solid var(--white); }
.contact-card { padding: 1.1rem 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.contact-card h3 { font: 500 .76rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #aeb4ba; margin-bottom: .5rem; }
.contact-card p { font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-card a { color: var(--white); font-weight: 600; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-card > a { display: inline-block; margin-top: .6rem; color: var(--yellow); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 720px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } .contact-card.wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .contact { grid-template-columns: 1.4fr 1fr; } .contact-photo img { aspect-ratio: auto; min-height: 100%; } }

/* Policies */
.policies { padding: 3rem var(--pad); background: var(--white); }
.policy-list { display: grid; gap: 1.6rem; }
.policy-list li { padding-top: 1rem; border-top: 4px solid var(--ink); }
.policy-list h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.policy-list p { color: var(--muted); font-size: .96rem; }
.policy-list a { display: inline-block; margin-top: .6rem; font-weight: 700; text-underline-offset: 4px; }
@media (min-width: 800px) { .policy-list { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* Footer: end of the line */
.footer { background: var(--paper); padding: 3.5rem var(--pad) 2rem; border-top: 2px solid var(--ink); }
.footer-top { display: grid; gap: 2.4rem; }
.footer-line { display: flex; align-items: center; gap: 1rem; font: 800 1.3rem/1.15 var(--display); text-transform: uppercase; }
.stripes { display: grid; gap: 5px; width: 54px; flex: none; }
.stripes i { display: block; height: 8px; background: var(--red); }
.stripes i:nth-child(2) { background: var(--yellow); } .stripes i:nth-child(3) { background: var(--green); } .stripes i:nth-child(4) { background: var(--blue); }
.footer h2 { font: 500 .76rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.footer li + li { margin-top: .5rem; }
.footer a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; overflow-wrap: anywhere; font-weight: 500; }
.footer a:hover { text-decoration: underline; }
.fdot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1.5px solid var(--ink); font: 500 .8rem/1.4 var(--mono); color: var(--muted); }
@media (min-width: 800px) { .footer-top { grid-template-columns: 1.6fr repeat(3, 1fr); } }

/* Cart drawer: the fare card */
.cart-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(17, 17, 17, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(430px, 100%); display: flex; flex-direction: column; background: var(--paper); border-left: 2px solid var(--ink); transform: translateX(100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s; }
.cart-sidebar.open { transform: none; visibility: visible; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; border-bottom: 2px solid var(--ink); background: var(--white); }
.cart-head h2 { font-size: 1.3rem; }
.cart-close { display: grid; place-items: center; width: 46px; height: 46px; background: var(--white); border: 2px solid var(--ink); }
.fare { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .8rem; margin: 1.1rem 1.2rem .4rem; padding: 1rem 1.1rem 1.4rem; aspect-ratio: 1.586; max-height: 210px; border-radius: 14px; background: radial-gradient(circle at 85% 15%, #2b2e31, transparent 55%), var(--ink); color: var(--white); overflow: hidden; }
.fare-chip { width: 40px; height: 30px; border-radius: 5px; background: linear-gradient(135deg, #e7c46a, #b88a2b); }
.fare-brand { font: 500 .66rem/1.2 var(--mono); letter-spacing: .18em; text-align: right; color: #aeb4ba; }
.fare-bal { grid-column: 1 / -1; align-self: end; font: 500 2rem/1 var(--mono); }
.fare-trips { grid-column: 1 / -1; font: 500 .8rem/1 var(--mono); color: #aeb4ba; }
.fare-stripes { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); height: 8px; }
.fare-stripes i { background: var(--red); } .fare-stripes i:nth-child(2) { background: var(--yellow); } .fare-stripes i:nth-child(3) { background: var(--green); } .fare-stripes i:nth-child(4) { background: var(--blue); }
.cart-items { flex: 1; overflow-y: auto; padding: .4rem 1.2rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr; gap: .9rem; padding: .9rem 0; border-bottom: 1.5px solid var(--ink); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border: 2px solid var(--ink); }
.cart-item h3 { font: 700 .98rem/1.25 var(--text); }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; margin-top: .45rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); background: var(--white); }
.qty button { width: 40px; height: 40px; }
.qty output { min-width: 2ch; text-align: center; font: 500 .95rem/1 var(--mono); }
.cart-item-sub { font: 500 1rem/1 var(--mono); }
.cart-remove { margin-top: .35rem; padding: .3rem 0; background: none; border: 0; font-size: .84rem; color: var(--muted); text-decoration: underline; }
.cart-empty { padding: 2.4rem 0; text-align: center; }
.cart-empty p { font: 800 1.1rem/1.3 var(--display); text-transform: uppercase; margin-bottom: 1.2rem; }
.cart-foot { padding: 1.1rem 1.2rem 1.3rem; border-top: 2px solid var(--ink); background: var(--white); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.cart-total .price { font-size: 1.35rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8rem 1.4rem; background: var(--ink); color: var(--white); border: 0; box-shadow: inset 0 -5px 0 var(--blue); text-decoration: none; font: 700 1rem/1.2 var(--text); }
.btn:hover { background: var(--ink-2); }
.btn--line { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.cart-foot .btn { width: 100%; }
.cart-foot p { margin-top: .8rem; font-size: .84rem; color: var(--muted); text-align: center; }

/* Order page */
.order-page .wrap, .legal-head .wrap, .legal-body.wrap, .wrap { width: min(1240px, 100% - 2 * var(--pad)); margin-inline: auto; }
.order-page { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.order-intro { max-width: 40rem; margin-bottom: 2.2rem; }
.order-intro h1 { font: 800 clamp(2rem, 5vw, 3.4rem)/1.02 var(--display); text-transform: uppercase; margin-bottom: .9rem; }
.order-intro .lede { color: var(--muted); }
.order { display: grid; gap: 2rem; align-items: start; }
.order-form { background: var(--white); border: 2px solid var(--ink); padding: 1.8rem clamp(1.1rem, 4vw, 2rem); }
.order-form h2, .summary h2 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; margin-bottom: .4rem; font-weight: 700; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .9rem; font: 400 1rem/1.4 var(--text); color: var(--ink); background: var(--white); border: 2px solid var(--ink); border-radius: 0; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-hint { margin-top: .35rem; font-size: .84rem; color: var(--muted); }
.field-error { margin-top: .35rem; font-size: .88rem; font-weight: 700; color: var(--error); }
.field-error:empty { display: none; }
.order-submit { width: 100%; margin-top: .6rem; }
.summary { background: var(--ink); color: var(--white); padding: 1.8rem clamp(1.1rem, 4vw, 2rem); box-shadow: inset 0 -8px 0 var(--yellow); }
.summary h2 { color: var(--white); }
.summary table { width: 100%; border-collapse: collapse; }
.summary td { padding: .8rem 0; border-bottom: 1px solid rgba(255, 255, 255, .25); vertical-align: top; }
.summary td small { display: block; margin-top: .2rem; color: #aeb4ba; font-size: .84rem; }
.summary td:last-child { text-align: right; font: 500 1rem/1.3 var(--mono); white-space: nowrap; padding-left: 1rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.2rem; }
.summary-total .price { font-size: 1.5rem; color: var(--yellow); }
.summary-note { margin-top: 1.2rem; padding-bottom: .6rem; }
.summary-note a { color: var(--white); text-underline-offset: 4px; }
.sent { max-width: 44rem; background: var(--white); border: 2px solid var(--ink); padding: 2.2rem clamp(1.1rem, 4vw, 2.2rem); }
.sent h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1rem; }
.sent-copy { margin-top: 2rem; }
.sent-copy pre { margin-top: 1rem; padding: 1rem; background: var(--paper); border: 1.5px solid var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font: 400 .86rem/1.5 var(--mono); }
@media (min-width: 900px) { .order { grid-template-columns: 1.4fr 1fr; gap: 3rem; } .summary { position: sticky; top: 96px; } }

/* Legal pages */
.legal-head { background: var(--concrete-2); padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 2px solid var(--ink); }
.legal-head h1 { font: 800 clamp(2rem, 5vw, 3.4rem)/1.02 var(--display); text-transform: uppercase; }
.legal-body { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.25rem; margin: 2.2rem 0 .7rem; }
.legal p + p { margin-top: .9rem; }
.legal ul, .legal ol { padding-left: 1.3rem; list-style: disc; margin-top: .6rem; }
.legal ol { list-style: decimal; }
.legal li + li { margin-top: .45rem; }
.legal a { color: var(--blue); text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
