/* marrowhealthapp.com. One sheet for every page.
   Stacked product tiles, short lines, one blue for actions. Light tiles use
   the app's wash, dark tiles its navy. Headings are Plus Jakarta Sans, text is
   Inter, both self-hosted. */

@font-face { font-family: "Jakarta"; src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0c1222;
  --text: #2b3346;
  --muted: #5c6578;
  --faint: #8790a2;
  --line: #e3e7f0;
  --wash: #f3f6fc;
  --accent: #2264df;
  --accent-ink: #184fb8;
  --navy: #0b0f1b;
  --navy-card: #161b27;
  --navy-line: #262d40;
  --navy-text: #aab3c6;
  --pro: #9a6a00;
  --star: #0c1222;
  --star-off: #cfd5e1;
  --display: "Jakarta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --content: 61.25rem;
  --prose: 42rem;
  --card-shadow: 2px 4px 12px rgba(12, 18, 34, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3.5rem; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 1.0625rem/1.47 var(--sans); letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: inherit; font-family: var(--display); margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0 0 1rem; }
strong, b { font-weight: 600; }
sup { font-size: 0.6em; line-height: 0; }
sup a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--content); margin: 0 auto; padding: 0 1.5rem; }
.muted { color: var(--muted); }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.top .wrap { display: flex; align-items: center; gap: 2rem; height: 2.75rem; }
.brand { display: flex; align-items: center; gap: 0.45rem; color: var(--ink); font: 700 0.9375rem/1 var(--display); letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 1.25rem; height: 1.25rem; border-radius: 0.3rem; display: block; }
.top nav { display: flex; gap: 1.6rem; margin: 0 auto; }
.top nav a { color: var(--ink); font-size: 0.75rem; letter-spacing: -0.01em; opacity: 0.8; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { opacity: 1; text-decoration: none; }
.top .store { flex: none; }

/* ---------- buttons ---------- */

.pill {
  display: inline-block; background: var(--accent); color: #fff; font-size: 1.0625rem; line-height: 1.2;
  padding: 0.5rem 1.05rem; border-radius: 999px; border: 1px solid var(--accent); white-space: nowrap;
}
.pill:hover { background: var(--accent-ink); border-color: var(--accent-ink); text-decoration: none; }
.pill.line { background: transparent; color: var(--accent); }
.pill.line:hover { background: var(--accent); color: #fff; }
.acts { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin: 1.1rem 0 0; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; background: var(--ink); color: #fff;
  padding: 0.6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: 0.9375rem;
}
.btn:hover { background: #1c2438; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

/* the App Store badge: Apple glyph, "Download on the" over "App Store" */
.store {
  display: inline-flex; align-items: center; gap: 0.7rem; background: var(--ink); color: #fff;
  padding: 0.7rem 1.35rem 0.7rem 1.1rem; border-radius: 0.8rem; letter-spacing: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.store:hover { background: #1c2438; color: #fff; text-decoration: none; transform: translateY(-1px); }
.store svg { width: 1.6rem; height: 1.6rem; fill: currentColor; flex: none; margin-top: -0.15rem; }
.store span { display: block; line-height: 1.15; }
.store small { display: block; font-size: 0.6875rem; font-weight: 400; opacity: 0.85; }
.store b { color: #fff; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; }
.store.sm { padding: 0.35rem 0.85rem 0.35rem 0.7rem; border-radius: 0.5rem; gap: 0.45rem; }
.store.sm svg { width: 1.05rem; height: 1.05rem; margin-top: -0.1rem; }
.store.sm small { font-size: 0.5rem; }
.store.sm b { font-size: 0.875rem; font-weight: 700; }
/* the Google Play badge, the same shape: Google's icon, "GET IT ON" over the
   wordmark. Both badges carry the thin grey edge of the official artwork, so
   they hold on the navy blocks too. */
.store { box-shadow: inset 0 0 0 1px rgba(166, 166, 166, 0.45); }
.store .gp { width: 1.45rem; height: 1.6rem; margin-top: 0; }
.store.sm .gp { width: 0.95rem; height: 1.05rem; margin-top: 0; }
.store .gp-word, .store.sm .gp-word { display: inline-block; width: 4.75em; height: 0.965em; margin: 0; vertical-align: -0.228em; fill: currentColor; }
/* Both, always: App Store first, Google Play first on Android. */
.stores { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; vertical-align: middle; }
/* side by side down to a 375-point phone */
@media (max-width: 30rem) { .stores > .store:not(.sm) { padding-inline: 0.9rem 1.05rem; } }
.android .stores .play, .android .acts .play { order: -1; }
.home-cta .stores { justify-content: center; }
.links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

/* ---------- devices ---------- */

.phone {
  background: var(--navy); padding: 0.45rem; border-radius: 2.9rem; margin: 0;
  box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28, 0 2.4rem 3.6rem -1.8rem rgba(12, 18, 34, 0.55);
  width: 18.5rem; max-width: 100%;
}
.phone img { display: block; width: 100%; border-radius: 2.45rem; }
.watches { display: flex; gap: 1rem; justify-content: center; align-items: flex-end; }
.watch {
  margin: 0; flex: 0 1 9.5rem; background: var(--navy); padding: 0.3rem; border-radius: 2rem;
  box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28, 0 1.6rem 2.6rem -1.4rem rgba(12, 18, 34, 0.6);
}
.watch img { display: block; width: 100%; height: auto; border-radius: 1.7rem; }

/* Store slides: each one carries its own phone, headline and colour, so it
   is shown as a rounded card, never inside a phone frame. .slides is a row
   that scrolls sideways when it does not fit. */
.slide {
  margin: 0; overflow: hidden; border-radius: 1.4rem; background: var(--wash);
  box-shadow: 0 0 0 1px rgba(12, 18, 34, 0.06), 0 1.6rem 2.6rem -1.6rem rgba(12, 18, 34, 0.4);
}
.slide img, main.doc .slide img { display: block; width: 100%; height: auto; border-radius: 0; }
.slides { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.slides .slide { flex: 1 0 11.5rem; max-width: 15rem; scroll-snap-align: start; }
.slides .slide:first-child { margin-inline-start: auto; }
.slides .slide:last-child { margin-inline-end: auto; }
main.doc .slides { margin: 2rem 0 1rem; padding: 0 1px 2rem; }
main.doc .slides .slide { margin-top: 0; margin-bottom: 0; }
/* A bare phone (tools/store_phones.py): the slide's phone alone, its
   headline and background left out where the text around it says the same.
   The picture carries its own frame and corners, so no card around it. */
.slide.ph, .art.slides .slide.ph, .art.slide.whole.ph { overflow: visible; border-radius: 0; background: none; box-shadow: none; }
.slide.ph img { filter: drop-shadow(0 1.1rem 1.3rem rgba(12, 18, 34, 0.26)); }

/* ---------- tiles ---------- */

.tiles { display: grid; gap: 0.75rem; }
.tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  background: var(--wash); text-align: center; padding: 3.5rem 1.5rem 0; min-height: 38rem; overflow: hidden;
}
.tile.dark { background: var(--navy); color: #fff; }
/* The icon's four colours (violet, amber, teal, blue), lit from the top the
   way the App Store set is, with the ink dark on all of them. */
.tile.violet, .tile.amber, .tile.teal, .tile.blue { color: var(--ink); }
.tile.violet { background: radial-gradient(90rem 55rem at 50% 15%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 60%), #bf8cfc; }
.tile.amber { background: radial-gradient(90rem 55rem at 50% 15%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 60%), #ffb84d; }
.tile.teal { background: radial-gradient(90rem 55rem at 50% 15%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 60%), #3dd4bf; }
.tile.blue { background: radial-gradient(90rem 55rem at 50% 15%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 60%), #4f99ff; }
.tile.violet .small, .tile.amber .small, .tile.teal .small, .tile.blue .small { color: rgba(12, 18, 34, 0.64); }
.tile.violet .pill, .tile.amber .pill, .tile.teal .pill, .tile.blue .pill { background: var(--ink); border-color: var(--ink); color: #fff; }
.tile.violet .pill:hover, .tile.amber .pill:hover, .tile.teal .pill:hover, .tile.blue .pill:hover { background: #26304a; border-color: #26304a; }
.tile.violet .pill.line, .tile.amber .pill.line, .tile.teal .pill.line, .tile.blue .pill.line { background: transparent; color: var(--ink); }
.tile.violet .pill.line:hover, .tile.amber .pill.line:hover, .tile.teal .pill.line:hover, .tile.blue .pill.line:hover { background: var(--ink); color: #fff; }
.tile.violet .conn-chip, .tile.amber .conn-chip { background: rgba(255, 255, 255, 0.78); border-color: transparent; color: var(--ink); }
.tile.violet .conn-chip:hover, .tile.amber .conn-chip:hover { background: #fff; border-color: transparent; }
.tile.violet .art.card, .tile.amber .art.card, .tile.teal .art.card, .tile.blue .art.card { border-color: rgba(255, 255, 255, 0.6); }
.tile h1, .tile h2, .tile h3 { font-size: clamp(2.25rem, 4.2vw, 3.5rem); letter-spacing: -0.03em; }
.tile .tag { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.14; letter-spacing: -0.015em; max-width: 19em; margin: 0.45rem auto 0; }
.tile .small { font-size: 1.0625rem; color: var(--muted); margin: 0.8rem 0 0; }
.tile.dark .small { color: var(--navy-text); }
.art { margin: 2.75rem auto 0; max-height: 25rem; overflow: hidden; }
.art.phone { width: 20rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28; }
.art.card { width: 22rem; border-radius: 1.6rem 1.6rem 0 0; background: #fff; border: 1px solid var(--line); border-bottom: 0; }
.art.card img { display: block; width: 100%; height: auto; }
.dark .art.card { border-color: var(--navy-line); }
.art.watches { max-height: none; overflow: visible; padding-bottom: 3.5rem; width: 100%; max-width: 40rem; }
.art.watches .watch { flex-basis: 11rem; }
.art.combo { position: relative; width: 29rem; max-width: 100%; max-height: 27.5rem; }
.art.combo .phone { margin: 0 auto; width: 20rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28; }
.art.combo .float {
  position: absolute; right: 0; bottom: 0.75rem; width: 17.5rem; height: auto; display: block;
  border-radius: 0.9rem; box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.tile:not(.dark) .art.combo .float { box-shadow: 0 1.2rem 2.4rem -1rem rgba(12, 18, 34, 0.3), 0 0 0 1px var(--line); }
.art.slide { width: 18rem; max-width: 100%; }
.art.slides { width: 100%; max-width: 45rem; overflow-y: hidden; padding: 0 1px; }
.art.slides .slide { flex: 0 0 14rem; border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: 0 0 0 1px rgba(12, 18, 34, 0.06); }
.art.whole { max-height: none; overflow: visible; }
.art.slide.whole { overflow: hidden; }
.art.whole.phone { border-radius: 2.9rem; box-shadow: 0 0 0 1px #2b3348, 0 0 0 0.2rem #151a28, 0 2.4rem 3.6rem -1.8rem rgba(12, 18, 34, 0.55); }
.art.whole.card { border-radius: 1.6rem; border-bottom: 1px solid var(--line); box-shadow: var(--card-shadow); }
.tile.half { min-height: 31rem; padding-top: 3rem; }
.tile.half h3 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.tile.half .tag { font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); max-width: 20em; }
.tile.half .art { margin-top: 2.25rem; max-height: 18rem; }
.tile.half .art.phone { width: 15.5rem; }
.tile.half .art.card { width: 18rem; }

/* ---------- sections ---------- */

.sec { padding: 5.5rem 0 1rem; }
.sec-h { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.03em; margin-bottom: 2rem; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.sec-h a { font-family: var(--sans); font-size: 1.0625rem; font-weight: 400; letter-spacing: -0.012em; }

/* why: a row of cards that scrolls sideways */
.cards { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.25rem 1.5rem 1.75rem; margin: 0 -1.5rem; scrollbar-width: none; }
.cards::-webkit-scrollbar { display: none; }
.card-w {
  flex: 0 0 19rem; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 21rem;
  background: var(--wash); border-radius: 1.25rem; padding: 1.75rem 1.75rem 1.5rem;
}
.eyebrow { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin: 0 0 0.5rem; letter-spacing: 0; }
.card-w h3 { font-size: 1.625rem; letter-spacing: -0.025em; line-height: 1.12; }
.card-w p { font-size: 0.9375rem; color: var(--text); margin: 0.6rem 0 0; }
.card-w .stat { margin-top: auto; padding-top: 1.75rem; display: flex; flex-direction: column; gap: 0.1rem; }
.card-w .stat b { font: 600 2.75rem/1 var(--display); letter-spacing: -0.04em; color: var(--accent); }
.card-w .stat span { font-size: 0.8125rem; color: var(--muted); }
.card-w.say { min-height: 14rem; }
.card-w.say h3 { font-size: 1.5rem; }
.cards-nav { display: flex; justify-content: flex-end; gap: 0.75rem; margin: -0.5rem 0 0.5rem; }
.cards-nav button {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 0; background: #e6ebf5; color: var(--ink);
  font: 400 1.5rem/1 var(--sans); cursor: pointer; display: grid; place-items: center; padding: 0 0 0.2rem;
}
.cards-nav button:hover { background: #d9e0ee; }

/* ---------- feature pages ---------- */

main.feature { padding-bottom: 3rem; }
.fhero { background: var(--wash); text-align: center; padding: 4rem 1.5rem 0; overflow: hidden; }
.fhero h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.035em; }
.fhero .tag { font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.14; letter-spacing: -0.015em; max-width: 26em; margin: 0.6rem auto 0; }
.fhero .art { max-height: 28rem; }
.fhero .art.watches { padding-bottom: 4rem; }
.fsec { padding: 5.5rem 1.5rem 0; text-align: center; }
.fsec .eyebrow { color: var(--accent); font-size: 0.8125rem; margin-bottom: 0.75rem; }
.fsec h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.035em; max-width: 14em; margin: 0 auto; }
.fsec > p { max-width: 36rem; margin: 1.25rem auto 0; font-size: 1.1875rem; line-height: 1.45; color: var(--text); }
.fsec .art { margin-top: 3rem; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: var(--content); margin: 2.5rem auto 0; text-align: start; }
.trio > div { background: var(--wash); border-radius: 1.25rem; padding: 1.75rem; }
.trio .watch { width: 8.5rem; flex: none; margin: 0 auto 1.5rem; }
.trio h3 { font-size: 1.375rem; }
.trio p { font-size: 0.9375rem; color: var(--text); margin: 0.5rem 0 0; }
.stats { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; margin: 3rem auto 0; }
.stats b { display: block; font: 600 3.5rem/1 var(--display); letter-spacing: -0.04em; color: var(--accent); }
.stats span { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 0.4rem; }
.qa { max-width: 38rem; margin: 2rem auto 0; text-align: start; padding-inline-start: 1.3rem; color: var(--text); }
.qa li { margin-bottom: 0.8rem; }
.fnote { max-width: 38rem; margin: 3rem auto 0; padding: 0 1.5rem; font-size: 0.9375rem; color: var(--muted); text-align: center; }
.fsec .fnote { padding: 0; margin-top: 1.5rem; }

/* made for each other */
.pair { background: var(--wash); border-radius: 1.75rem; padding: 2.5rem 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; overflow: hidden; }
.pair details { border-bottom: 1px solid var(--line); }
.pair details:last-child { border-bottom: 0; }
.pair summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 0; font: 600 1.375rem/1.2 var(--display); letter-spacing: -0.025em; color: var(--ink);
}
.pair summary::-webkit-details-marker { display: none; }
.pair summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.3rem;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform 0.25s ease;
}
.pair details[open] summary::after { transform: rotate(225deg); }
.pair details p { margin: 0 0 1.4rem; max-width: 26rem; color: var(--text); }
.pair-art { position: relative; display: grid; place-items: center; padding: 1rem 2rem 1rem 0; }
.pair-art .phone { display: grid; width: 15.5rem; }
.pair-art .phone img { grid-area: 1 / 1; opacity: 0; transition: opacity 0.4s ease; }
.pair-art .phone img.on { opacity: 1; }
.pair-art .watch { position: absolute; right: 0; bottom: 2rem; width: 7.5rem; opacity: 0; transition: opacity 0.4s ease; }
.pair[data-on="0"] .pair-art .watch { opacity: 1; }

/* reviews: the App Store rating, then the written reviews word for word */
.score { display: flex; align-items: center; gap: 1.1rem; margin: -0.5rem 0 1.75rem; }
.score b { font: 600 4rem/1 var(--display); letter-spacing: -0.04em; }
.score p { margin: 0.4rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.stars { display: block; width: 5.5rem; height: auto; }
.score .stars { width: 7.5rem; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.review.feature { grid-column: 1; grid-row: 1 / span 5; }
.review blockquote p + p { margin-top: 0.75em; }
.review { margin: 0; background: var(--wash); border-radius: 1.25rem; padding: 1.75rem; display: flex; flex-direction: column; }
.review h3 { font-size: 1.375rem; margin-top: 1rem; }
.review blockquote { margin: 0.6rem 0 0; font-size: 0.9375rem; color: var(--text); }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; padding-top: 1.25rem; font-size: 0.8125rem; color: var(--muted); }

/* plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.plan { background: var(--wash); border-radius: 1.5rem; padding: 2.5rem 2rem 2.25rem; text-align: center; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.625rem; }
.plan .tag { font-size: 1.0625rem; margin: 0.35rem 0 0; }
.plan .price { font-size: 0.9375rem; color: var(--muted); margin: 0.5rem 0 0; }
.plan ul { list-style: none; margin: 1.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--text); }
.plan li { padding: 0.3rem 0; }
.plan .acts { margin-top: auto; padding-top: 1.75rem; }

/* closing */
.get { text-align: center; padding: 5rem 0 3rem; }
.get .app-icon { width: 4.5rem; height: 4.5rem; border-radius: 1rem; box-shadow: var(--card-shadow); }
.get h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.03em; margin-top: 1.2rem; }
.get .tag { font-size: 1.1875rem; color: var(--muted); margin: 0.5rem 0 0; }

/* footnotes */
.notes { max-width: var(--content); margin: 0 auto; padding: 2rem 1.5rem 1rem; font-size: 0.75rem; line-height: 1.5; color: var(--faint); }
.notes ol { margin: 0; padding-inline-start: 1rem; }
.notes li { margin-bottom: 0.4rem; }
.notes a { color: inherit; text-decoration: underline; }

/* ---------- article pages ---------- */

main.doc { padding: 3.5rem 0 5rem; }
main.doc .wrap { max-width: calc(var(--prose) + 3rem); }
main.doc h1 { font-size: clamp(2.25rem, 4.5vw, 3rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
main.doc h2 { font-size: 1.75rem; margin: 3rem 0 0.8rem; }
main.doc h3 { font-size: 1.1875rem; letter-spacing: -0.015em; margin: 1.8rem 0 0.5rem; }
main.doc p, main.doc li { color: var(--text); }
main.doc .lede { font-size: 1.3125rem; line-height: 1.4; letter-spacing: -0.02em; color: var(--muted); }
main.doc ul, main.doc ol { padding-inline-start: 1.3rem; margin: 0 0 1rem; }
main.doc li { margin-bottom: 0.45rem; }
main.doc table { margin: 1.2rem 0 1.4rem; }
main.doc td.y { color: #17734a; font-weight: 600; }
main.doc td.n { color: var(--faint); }
main.doc td.w { color: var(--pro); }
main.doc figure { margin: 1.5rem 0; }
main.doc figcaption { color: var(--faint); font-size: 0.875rem; margin-top: 0.6rem; }
main.doc img { border-radius: 1.2rem; }
main.doc .watches { margin: 1.8rem 0 2.2rem; }
main.doc .watch img { border-radius: 1.7rem; }
main.doc .muted { font-size: 0.9375rem; }
main.doc .scroll { overflow-x: auto; margin: 1.2rem 0 1.4rem; -webkit-overflow-scrolling: touch; }
main.doc .scroll > table { margin: 0; }
@media (max-width: 48rem) { main.doc .scroll > table { min-width: 40rem; } }
main.doc .crumbs { font-size: 0.875rem; color: var(--muted); margin: 0 0 1.25rem; }
main.doc .crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Campus menus: the app pitch, a hall's facts, menu tables, folding meals. */
main.doc .where { font-size: 0.9375rem; font-weight: 600; color: var(--muted); margin: -0.4rem 0 1rem; }
.getapp { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; background: var(--wash); border-radius: 0.9rem; padding: 1.1rem 1.25rem; margin: 1.3rem 0 1.6rem; overflow: hidden; }
.getapp p { margin: 0 0 0.8rem; }
.getapp .store { white-space: nowrap; }
main.doc .getapp .getapp-h { font: 700 1.3125rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.4rem; }
main.doc .getapp img { flex: none; width: 9.5rem; height: auto; margin: 0 0 -7rem; border-radius: 0.8rem; box-shadow: 0 0 0 1px rgba(12, 18, 34, 0.06); }
main.doc .getapp img.ph { width: 8.5rem; margin-bottom: -6rem; border-radius: 0; box-shadow: none; filter: drop-shadow(0 0.8rem 1rem rgba(12, 18, 34, 0.24)); }
main.doc ul.facts, main.doc ul.halls { list-style: none; padding-inline-start: 0; }
main.doc ul.facts li, main.doc ul.halls li { border-bottom: 1px solid var(--line); padding: 0.5rem 0; margin: 0; }
main.doc ul.facts strong { display: block; font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
main.doc ul.halls li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.1rem 1rem; }
main.doc ul.halls a { font-weight: 600; }
main.doc table.menu { margin: 0.4rem 0 1.2rem; font-variant-numeric: tabular-nums; }
table.menu th, table.menu td { padding: 0.5rem 0; padding-inline-start: 0.75rem; }
table.menu th { font-size: 0.8125rem; color: var(--muted); }
table.menu th:first-child, table.menu td:first-child { padding-inline-start: 0; width: 100%; }
table.menu th + th, table.menu td + td { text-align: end; white-space: nowrap; min-width: 3.4rem; }
table.menu td:nth-child(2) { font-weight: 600; color: var(--ink); }
.diet { display: inline-block; font-size: 0.6875rem; font-weight: 600; line-height: 1; color: #17734a; background: #e9f6ef; border-radius: 999px; padding: 0.2rem 0.45rem; vertical-align: middle; white-space: nowrap; }
details.fold { border-top: 1px solid var(--line); }
details.fold:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
details.fold > summary { cursor: pointer; padding: 0.85rem 0; font-size: 1.0625rem; }
details.fold[open] > summary { padding-bottom: 0.3rem; }
main.doc details.fold h3 { font-size: 1rem; margin: 1.1rem 0 0.1rem; }
main.doc details.fold h4 { font-size: 0.9375rem; margin: 0.9rem 0 0; color: var(--muted); }
@media (max-width: 30rem) {
  .getapp { padding: 1rem; gap: 0.75rem; }
  main.doc .getapp img { width: 6.5rem; }
  main.doc .getapp img.ph { width: 6rem; }
  .getapp .store { padding-inline: 0.8rem 1rem; }
  table.menu { font-size: 0.875rem; }
  table.menu th, table.menu td { padding-inline-start: 0.4rem; }
  table.menu th + th, table.menu td + td { min-width: 2.9rem; }
}

table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: start; vertical-align: top; padding: 0.75rem 0; padding-inline-end: 1rem; border-bottom: 1px solid var(--line); }
th { color: var(--ink); font-weight: 600; }
thead th { border-bottom-color: var(--ink); font-size: 0.875rem; }

code { font: 0.875em/1.4 var(--mono); background: var(--wash); border: 1px solid var(--line); border-radius: 0.3rem; padding: 0.08em 0.32em; color: var(--ink); }
pre {
  background: var(--navy); color: #dfe5f1; font: 0.8125rem/1.6 var(--mono);
  padding: 1rem 1.15rem; border-radius: 0.9rem; overflow-x: auto; margin: 0.8rem 0 1.4rem;
}
pre code, pre b { background: none; border: 0; padding: 0; color: inherit; font: inherit; }
pre .k { color: #8fbaff; }

.byline { font-size: 0.875rem; color: var(--muted); margin: 0 0 1rem; }
.byline a { color: inherit; }
.note { background: var(--wash); border-radius: 0.9rem; padding: 1.1rem 1.25rem; margin: 1.3rem 0; }
.note p:last-child { margin-bottom: 0; }
.note.alert { background: #fdf6e7; }
.note.contact { text-align: start; }
.note.contact .mail { font-size: 1.1875rem; font-weight: 600; }
.pro { color: var(--pro); font-weight: 600; }
ul.never { list-style: none; padding-inline-start: 0; }
ul.never li { padding-inline-start: 1.5rem; position: relative; }
ul.never li::before { content: "×"; position: absolute; inset-inline-start: 0.2rem; color: var(--faint); }

.prompt { border: 1px solid var(--line); border-radius: 1rem; margin: 1.5rem 0; overflow: hidden; box-shadow: var(--card-shadow); }
.prompt-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.8rem 0.7rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--wash); }
.prompt-h b { font-size: 0.9375rem; }
button.copy svg { display: none; }
.prompt-text { margin: 0; padding: 1rem 1.1rem; font: 0.8125rem/1.65 var(--mono); color: var(--text); overflow-wrap: anywhere; background: #fff; }
button.copy {
  font: 600 0.8125rem var(--sans); color: #fff; background: var(--accent); border: 0;
  border-radius: 999px; padding: 0.4rem 0.85rem; cursor: pointer;
}
button.copy:hover { background: var(--accent-ink); }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.9rem; margin: 1.2rem 0; }
.shots img { display: block; border-radius: 0.9rem; border: 1px solid var(--line); }
.split-fig { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
.split-fig > div { flex: 1 1 20rem; }
.split-fig figure { flex: 0 1 13rem; margin: 0; }
.kicker { color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.8rem; }

/* the in-browser tools (Apple Health converter) */
.tool { margin: 1.75rem 0 2.5rem; }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; cursor: pointer;
  border: 2px dashed #c5cee0; border-radius: 1.1rem; background: var(--wash); padding: 2.25rem 1.25rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop strong { font: 600 1.1875rem/1.2 var(--display); color: var(--accent); }
.drop span { color: var(--muted); font-size: 0.9375rem; }
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: #eaf1fd; }
.drop.off { pointer-events: none; opacity: 0.55; }
.tool .progress { margin: 1.25rem 0 0; }
.tool .bar { height: 0.5rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.tool .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; }
.tool .err { color: #b42318; margin: 1rem 0 0; }
.tool .files { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.tool .files li { margin: 0 0 0.6rem; }
.tool .files .pill, #hc-raw-out .pill { font-size: 0.9375rem; padding: 0.4rem 0.9rem; white-space: normal; }
.tool .pick select { font: inherit; font-size: 0.9375rem; padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 0.6rem; max-width: 100%; }
.tool .pick button, .tool td button, .tool ol button { font: 600 0.9375rem var(--sans); color: #fff; background: var(--accent); border: 0; border-radius: 999px; padding: 0.5rem 1rem; cursor: pointer; }
.tool .pick button:disabled, .tool td button:disabled, .tool ol button:disabled { opacity: 0.5; cursor: default; }
.tool td button, .tool ol button, .tool td .pill { font-size: 0.8125rem; padding: 0.3rem 0.75rem; }
.tool ol li { margin: 0 0 0.5rem; }
.tool .scroll { overflow-x: auto; max-height: 28rem; overflow-y: auto; border: 1px solid var(--line); border-radius: 0.8rem; }
.tool .scroll table { margin: 0; }
.tool .scroll th, .tool .scroll td { padding: 0.5rem 0.75rem; white-space: nowrap; }

/* ---------- footer ---------- */

.foot { background: var(--wash); padding: 2rem 0 1.5rem; font-size: 0.75rem; line-height: 1.5; color: var(--muted); margin-top: 2rem; }
.foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-bottom: 1.5rem; }
.foot h4 { color: var(--ink); font: 600 0.75rem/1.5 var(--sans); letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 0.45rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .legal { padding: 1.25rem 0; border-top: 1px solid var(--line); color: var(--faint); max-width: 58rem; }
.foot .legal p { margin: 0 0 0.5rem; }
.foot .legal a { color: inherit; text-decoration: underline; }
.foot .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--faint); }
.foot .bar p { margin: 0; }
.social { display: flex; gap: 1rem; }
.social a { display: block; color: var(--ink); }
.social a:hover { color: var(--accent); }
.social svg { display: block; width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* ---------- motion ---------- */

.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */

@media (max-width: 62rem) {
  .top nav { gap: 1rem; }
  .top .wrap { gap: 1.25rem; }
  /* Seven items and translated labels outgrow the bar: the last ones go first
     (Coach, Food, Workouts and Campus dining always stay), and the Menu
     button beside them opens the whole list. */
  .top > .wrap > nav a:nth-child(n+6) { display: none; }
  .pair { padding: 2rem; gap: 2rem; }
}
@media (max-width: 48rem) {
  .tiles2 { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding: 3rem 1.25rem 0; }
  .tile h1, .tile h2, .tile h3 { font-size: 2rem; }
  .tile .tag { font-size: 1.1875rem; }
  .tile .small { font-size: 0.9375rem; }
  .pill { font-size: 0.9375rem; padding: 0.4rem 0.9rem; }
  .art { margin-top: 2rem; max-height: 19rem; }
  .art.phone { width: 15rem; }
  .art.card { width: 18rem; }
  .art.slide { width: 15rem; }
  .art.slides .slide { flex-basis: 11.5rem; }
  .art.combo { width: 100%; max-width: 20rem; }
  .art.combo .phone { width: 15rem; }
  .art.combo .float { width: 13.5rem; bottom: 1rem; }
  .art.watches { padding-bottom: 2.5rem; gap: 0.6rem; }
  .art.watches .watch { flex-basis: 30%; }
  .fhero { padding-top: 3rem; }
  .fhero .art { max-height: 21rem; }
  .fsec { padding-top: 4rem; }
  .fsec > p { font-size: 1.0625rem; }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .stats b { font-size: 2.5rem; }
  .stats span { font-size: 0.75rem; }
  .tile.half { min-height: 0; }
  .tile.half h3 { font-size: 1.75rem; }
  .tile.half .tag { font-size: 1.0625rem; }
  .tile.half .art { max-height: 16rem; }
  .tile.half .art.phone { width: 13.5rem; }
  .tile.half .art.card { width: 16rem; }
  .sec { padding-top: 4rem; }
  .sec-h { margin-bottom: 1.5rem; }
  .cards { padding-left: 1.25rem; padding-right: 1.25rem; margin: 0 -1.25rem; }
  .card-w { flex-basis: 78%; }
  .pair { grid-template-columns: minmax(0, 1fr); padding: 1.5rem 1.25rem; border-radius: 1.25rem; }
  .pair-art { padding: 1rem 0 0; }
  .pair-art .phone { width: 13rem; }
  .pair-art .watch { width: 6.5rem; right: 0.5rem; bottom: 1rem; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .review.feature { grid-column: auto; grid-row: auto; }
  .score b { font-size: 3.25rem; }
  .get { padding-top: 4rem; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 44rem) {
  .top > .wrap > nav { display: none; }
  .top .lang { margin-inline-start: auto; }
  .wrap { padding: 0 1.25rem; }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .foot .bar { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .pair-art .phone img, .pair-art .watch, .pair summary::after { transition: none; }
}
main.doc .tool .scroll > table { min-width: 0; }

/* connection pages (/connections, /connections/<id>) */
.mark { display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 22%; box-shadow: var(--card-shadow); }
.mark i { display: block; width: 58%; height: 58%; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }
.mark svg { width: 52%; height: 52%; }
.mark.img { border: 0; background: none; overflow: hidden; }
.mark.img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chip.soon { color: var(--muted); background: none; border: 1px dashed var(--line); }
.doorplan.soon { color: #6b5bcc; background: #efecfb; }
.mark.lg { width: 4.5rem; height: 4.5rem; }
.mark.md { width: 2.75rem; height: 2.75rem; box-shadow: none; }
.mark.sm { width: 1.75rem; height: 1.75rem; box-shadow: none; border-radius: 0.45rem; }
.conn-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
main.doc .conn-head h1 { margin: 0 0 0.45rem; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { font-size: 0.75rem; font-weight: 600; color: var(--accent); background: var(--wash); border-radius: 999px; padding: 0.2rem 0.6rem; white-space: nowrap; }
.chip.pro { color: var(--pro); background: #fdf6e7; }
.doorplan { display: inline-block; font: 600 0.75rem/1 var(--sans); letter-spacing: 0; vertical-align: middle; color: #17734a; background: #e9f6ef; border-radius: 999px; padding: 0.3rem 0.6rem; margin-inline-start: 0.4rem; }
.doorplan.pro { color: var(--pro); background: #fdf6e7; }
main.doc .small { font-size: 0.875rem; }
main.doc .jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.9375rem; margin: 1.6rem 0 0; }
main.doc ol.steps { padding-inline-start: 1.5rem; }
main.doc ol.steps li { margin-bottom: 0.7rem; padding-inline-start: 0.2rem; }
.snip { position: relative; margin: 0.6rem 0 0.2rem; }
.snip pre { margin: 0; padding-inline-end: 5.2rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.snip button.copy { position: absolute; top: 0.6rem; inset-inline-end: 0.6rem; }
main.doc ul.asks { list-style: none; padding-inline-start: 0; }
main.doc ul.asks li { background: var(--wash); border-radius: 0.8rem; padding: 0.6rem 0.9rem; font-style: italic; }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.75rem; margin: 1rem 0 0.5rem; }
.conn-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.75rem; row-gap: 0.3rem; align-items: center; padding: 0.85rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); }
.conn-card:hover { border-color: var(--accent); text-decoration: none; }
.conn-card .mark { grid-row: 1 / 3; }
.conn-card .t { font-weight: 600; }
.conn-card .chips .chip { font-size: 0.6875rem; padding: 0.12rem 0.45rem; }
.conn-minis { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.conn-mini { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.75rem 0.35rem 0.35rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 0.9375rem; }
.conn-mini:hover { border-color: var(--accent); text-decoration: none; }

/* ---------- languages ---------- */

.lang { position: relative; flex: none; margin-inline-end: -1.25rem; }
.lang summary {
  list-style: none; display: flex; align-items: center; gap: 0.3rem; cursor: pointer;
  padding: 0.3rem 0.5rem; border-radius: 0.5rem; color: var(--ink);
  font: 600 0.75rem/1 var(--sans); letter-spacing: 0; opacity: 0.8;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { opacity: 1; background: rgba(12, 18, 34, 0.06); }
.lang summary svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang-menu {
  position: absolute; top: calc(100% + 0.55rem); inset-inline-end: 0; z-index: 30;
  width: min(33rem, calc(100vw - 2rem)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.1rem;
  padding: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 0.9rem;
  box-shadow: 0 12px 40px rgba(12, 18, 34, 0.14);
}
.lang-menu a { padding: 0.5rem 0.65rem; border-radius: 0.5rem; color: var(--ink); font-size: 0.875rem; line-height: 1.25; letter-spacing: 0; }
.lang-menu a:hover { background: var(--wash); text-decoration: none; }
.lang-menu a[aria-current] { font-weight: 600; background: var(--wash); color: var(--accent); }
.lang-offer {
  display: flex; justify-content: center; align-items: center; gap: 0.75rem;
  padding: 0.55rem 1rem; background: var(--wash); font-size: 0.875rem; letter-spacing: 0;
}
.lang-offer a { font-weight: 600; }
.lang-offer button { border: 0; background: none; padding: 0 0.25rem; font-size: 1.15rem; line-height: 1; color: var(--muted); cursor: pointer; }
.lang-note { font-size: 0.875rem; color: var(--muted); background: var(--wash); border-radius: 0.75rem; padding: 0.75rem 1rem; margin: 0 0 1.5rem; }
@media (max-width: 44rem) {
  .lang { margin-inline-end: -0.75rem; }
  .top .wrap { gap: 1rem; }
  .lang-menu { position: fixed; top: 3.1rem; inset-inline: 1rem; width: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: calc(100vh - 4.5rem); overflow-y: auto; }
}

/* ---------- menu (narrow screens) ---------- */

/* The whole nav behind one button, wherever the bar cannot show all seven
   links. A <details>, like the language picker: it opens with a tap, Enter or
   Space and needs no script. */
details.menu { display: none; position: relative; flex: none; }
.menu summary {
  list-style: none; cursor: pointer; padding: 0.4rem 0.6rem; border-radius: 0.5rem; color: var(--ink);
  font: 600 0.75rem/1 var(--sans); letter-spacing: 0; border: 1px solid var(--line);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { background: rgba(12, 18, 34, 0.06); }
.menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.top .menu-list {
  position: absolute; top: calc(100% + 0.55rem); inset-inline-end: 0; z-index: 30;
  display: flex; flex-direction: column; gap: 0.1rem; margin: 0; width: min(16rem, calc(100vw - 2rem));
  padding: 0.5rem; background: #fff; border: 1px solid var(--line); border-radius: 0.9rem;
  box-shadow: 0 12px 40px rgba(12, 18, 34, 0.14);
}
.top .menu-list a {
  display: block; padding: 0.75rem 0.75rem; border-radius: 0.5rem; color: var(--ink);
  font-size: 1rem; line-height: 1.25; letter-spacing: 0; opacity: 1; white-space: normal;
}
.top .menu-list a:hover { background: var(--wash); text-decoration: none; }
.top .menu-list a[aria-current] { font-weight: 600; background: var(--wash); color: var(--accent); }
@media (max-width: 62rem) {
  details.menu { display: block; }
  /* The picker no longer tucks under the Download badge: Menu sits between. */
  .top .lang { margin-inline-end: -0.25rem; }
}
@media (max-width: 44rem) {
  header.top > .wrap { gap: 0.6rem; }
  .top .lang { margin-inline-end: -0.35rem; }
  /* If a translated label runs long, the wordmark gives way before the bar scrolls sideways. */
  .brand { flex: 0 1 auto; min-width: 1.25rem; overflow: hidden; }
  .top .menu-list { position: fixed; top: 3.1rem; inset-inline: 1rem; width: auto; max-height: calc(100vh - 4.5rem); overflow-y: auto; }
}
/* The smallest phones: the logo mark alone, so the three buttons fit. */
@media (max-width: 23rem) {
  .brand span { display: none; }
}
/* Scripts that do not take tight tracking or short line heights. */
html:is([lang="ar"], [lang="he"], [lang="hi"], [lang="th"], [lang="ja"], [lang="ko"], [lang="zh-Hans"], [lang="zh-Hant"]) * { letter-spacing: 0 !important; }
html:is([lang="hi"], [lang="th"], [lang="ar"], [lang="he"]) :is(h1, h2, h3, h4) { line-height: 1.3; }
html:is([lang="ja"], [lang="ko"], [lang="zh-Hans"], [lang="zh-Hant"]) :is(h1, h2, h3, h4) { line-height: 1.2; word-break: keep-all; }
/* Code reads left to right on every page. */
[dir="rtl"] :is(pre, code, kbd, samp) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] pre { text-align: left; }
/* Long compound words (German, Finnish, Dutch) wrap inside headings. */
html:not([lang="en"]) :is(h1, h2, h3) { overflow-wrap: break-word; hyphens: auto; }

/* Home: every connector, as chips on the dark tile (build.py connector_chips). */
.conn-wall { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 54rem; margin: 2.5rem auto 3.5rem; }
.conn-chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.85rem 0.35rem 0.35rem; border-radius: 999px; background: var(--navy-card); border: 1px solid var(--navy-line); color: #fff; font-size: 0.9375rem; line-height: 1.2; }
.conn-chip:hover { border-color: var(--navy-text); text-decoration: none; }
.conn-chip .mark { border-color: transparent; }
@media (max-width: 734px) {
  .conn-wall { margin: 2rem auto 2.5rem; gap: 0.4rem; }
  .conn-chip { font-size: 0.875rem; padding-right: 0.7rem; }
}
@media (max-width: 52rem) {
  .top > .wrap > nav a:nth-child(n+5) { display: none; }
}
@media (max-width: 48rem) {
  .top .wrap { gap: 1rem; }
}

/* Built with Marrow: project cards and the small list on connection pages */
.bw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; margin: 2rem 0 1rem; }
.bw-card { border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); display: flex; flex-direction: column; }
.bw-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; background: #0b0e16; }
.bw-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; }
main.doc .bw-body h3 { margin: 0; font-size: 1.375rem; }
.bw-body p { margin: 0; }
.bw-by, .bw-data { font-size: 0.875rem; color: var(--muted); }
.bw-body .links { margin-top: 0.3rem; }
.bw-minis { display: grid; gap: 0.75rem; margin: 1rem 0 0.5rem; }
.bw-mini { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; align-items: center; padding: 0.6rem; border: 1px solid var(--line); border-radius: 1rem; color: var(--ink); }
.bw-mini:hover { border-color: var(--accent); text-decoration: none; }
.bw-mini img { width: 100%; height: auto; border-radius: 0.6rem; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.bw-mini span { font-size: 0.9375rem; color: var(--muted); }
.bw-mini strong { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 0.2rem; }
@media (max-width: 34rem) { .bw-mini { grid-template-columns: 1fr; } }

/* Free calculators (/calculators and the six tools) */
/* ---- Calculators (calc-*) : additions for the free tools pages ---- */

.calc-form { display: grid; gap: 1rem; margin: 0; }
.calc-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.calc-form legend { padding: 0; margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--muted); }

.calc-grid {
  display: grid;
  gap: 0.9rem 1rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.calc-grid-wide { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.calc-grid > .calc-seg { grid-column: 1 / -1; }

.calc-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.calc-field > span:first-child { font-size: 0.9rem; color: var(--muted); }
.calc-field small { color: var(--faint); font-size: 0.8rem; }
.calc-seg small { display: block; margin-top: 0.4rem; color: var(--faint); font-size: 0.8rem; }

.calc-form input[type="number"],
.calc-form input[type="time"],
.calc-form input[type="text"],
.calc-form select,
.calc-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.6rem 0.7rem;
  line-height: 1.3;
}
.calc-form textarea { min-height: 6.5rem; resize: vertical; font-family: var(--mono); font-size: 0.95rem; }
.calc-form input:focus,
.calc-form select:focus,
.calc-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.calc-form input[aria-invalid="true"] { border-color: #c4352b; }

.calc-input { position: relative; display: flex; align-items: center; }
.calc-input input { padding-inline-end: 2.8rem; }
.calc-input .calc-suffix {
  position: absolute; inset-inline-end: 0.7rem; pointer-events: none;
  color: var(--faint); font-size: 0.9rem;
}

.calc-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; color: var(--text); }
.calc-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); margin: 0; }

/* segmented radio control */
.calc-seg .calc-seg-row {
  display: inline-flex; flex-wrap: wrap; gap: 0.25rem;
  padding: 0.25rem; border: 1px solid var(--line); border-radius: 999px; background: var(--wash);
}
.calc-seg label { position: relative; }
.calc-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.calc-seg label span {
  display: block; padding: 0.35rem 0.9rem; border-radius: 999px;
  font-size: 0.9rem; color: var(--muted); cursor: pointer;
}
.calc-seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.calc-seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.calc-btn {
  display: inline-block; font: inherit; font-size: 0.95rem; font-weight: 600;
  color: #fff; background: var(--accent); border: 0; border-radius: 999px;
  padding: 0.6rem 1.2rem; cursor: pointer;
}
.calc-btn:hover { background: var(--accent-ink); }
.calc-btn:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.calc-btn-quiet { color: var(--accent-ink); background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.calc-btn-quiet:hover { background: #e8eef9; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* results */
.calc-result { margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.calc-result[hidden] { display: none; }
.calc-big {
  margin: 0; font-family: var(--display); font-size: 2.4rem; line-height: 1.1;
  color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.calc-big small { font-size: 1.1rem; color: var(--muted); font-family: var(--sans); }
.calc-caption { margin: 0.25rem 0 0.9rem; color: var(--muted); font-size: 0.95rem; }
.calc-stats {
  display: grid; gap: 0.6rem; margin: 0.9rem 0;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}
.calc-stat { background: var(--wash); border-radius: 0.6rem; padding: 0.65rem 0.8rem; min-width: 0; }
.calc-stat b {
  display: block; font-size: 1.25rem; color: var(--ink);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.calc-stat span { font-size: 0.85rem; color: var(--muted); }
.calc-hl { background: #e7effd; }

.calc-tablewrap { overflow-x: auto; margin: 0.6rem 0; }
.calc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.calc-table th, .calc-table td { text-align: start; padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line); }
.calc-table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.calc-table td.calc-num, .calc-table th.calc-num { text-align: end; }

.calc-times { list-style: none; margin: 0.6rem 0; padding: 0; display: grid; gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.calc-times li { background: var(--wash); border-radius: 0.6rem; padding: 0.6rem 0.8rem; }
.calc-times b { display: block; font-size: 1.3rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-times span { font-size: 0.85rem; color: var(--muted); }
.calc-times li.calc-best { background: #e7effd; box-shadow: inset 0 0 0 1px #c9d9f7; }

.calc-nights { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr)); }

/* plate calculator */
.calc-plates { margin: 0.9rem 0; }
.calc-plates svg { display: block; width: 100%; height: auto; max-height: 11rem; }
.calc-plate-list { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); }
.calc-plate-list .calc-field > span:first-child { color: var(--text); }

.calc-gauge { position: relative; height: 0.7rem; border-radius: 999px; background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--line); margin: 1.2rem 0 0.4rem; }
.calc-gauge-band { position: absolute; top: 0; bottom: 0; background: #cfe0fb; border-radius: 999px; }
.calc-gauge-dot { position: absolute; top: 50%; width: 1rem; height: 1rem; margin: -0.5rem 0 0 -0.5rem;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #fff; }

.calc-status { font-weight: 600; color: var(--ink); }

.calc-hub { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.8rem; }
.calc-hub li { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.9rem 1rem; }
.calc-hub a { font-weight: 600; font-family: var(--display); font-size: 1.1rem; }
.calc-hub p { margin: 0.25rem 0 0; color: var(--muted); }

@media (max-width: 30rem) {
  .calc-big { font-size: 2rem; }
  .calc-table th, .calc-table td { padding: 0.4rem 0.3rem; }
}

.tool [hidden] { display: none !important; }
.calc-details { border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.6rem 0.8rem; }
.calc-details summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.calc-details[open] summary { margin-bottom: 0.6rem; }
.calc-input input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.calc-input input[type="number"]::-webkit-inner-spin-button,
.calc-input input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.score p.count { margin-top: 0.15rem; }
.featured { margin: 1.75rem 0 0; text-align: center; font-size: 0.9375rem; color: var(--muted); }
.featured a { color: var(--text); }
.fhero .small { font-size: 1.0625rem; line-height: 1.45; color: var(--muted); max-width: 34rem; margin: 0.9rem auto 0; }
.split-fig figure .phone { width: 100%; }

/* ---------- header and footer: the floating pill and the pale panel ----------
   The home page's design on every page (2026-11-22). The bar sticks to the
   top of other pages and floats over the hero on the home page. */

:root {
  --h-soft: rgba(12, 18, 34, 0.6);
  --h-card: #edf0f6;
  --h-gut: clamp(1.0625rem, 0.7325rem + 1.408vw, 2rem);
  --h-gap: clamp(2.5rem, 1.62rem + 3.756vw, 5rem);
  --h-in: clamp(2.5rem, 2.32rem + 0.75vw, 3rem);
}
html { scroll-padding-top: 5.5rem; }
.top {
  position: sticky; top: 0; padding: 1rem; pointer-events: none;
  background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.top .wrap {
  position: relative; isolation: isolate; pointer-events: auto;
  width: max-content; max-width: 100%; height: 3.375rem; padding: 0.5rem; gap: 1.5rem;
}
/* The glass is a layer behind the bar, so the menus that open from it keep
   their own positioning. */
.top .wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 2rem;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.top .brand { padding: 0 0.5rem 0 1rem; font-size: 1.0625rem; }
.top > .wrap > nav { margin: 0; gap: 1.5rem; }
.top > .wrap > nav a { font-size: 1rem; font-weight: 500; color: var(--h-soft); opacity: 1; }
.top > .wrap > nav a:hover { color: var(--ink); }
/* Coach, Food, Workouts and Pro stay in the pill. The rest are on the page. */
.top > .wrap > nav a:nth-child(n+4):not(:last-child) { display: none; }
.top .lang { margin-inline-end: -0.75rem; }
.top .store.sm { height: 2.375rem; padding: 0 1rem 0 0.8rem; border-radius: 8rem; }
.top .store.sm b { font-size: 1rem; font-weight: 500; }
.top .stores { flex: none; flex-wrap: nowrap; gap: 0.4rem; }
.top .store.sm.play { padding-inline-start: 0.75rem; }
.foot { margin: var(--h-gap) 0 0; padding: 0 var(--h-gut) var(--h-gut); background: none; font-size: 0.9375rem; line-height: 1.4; color: var(--h-soft); }
.foot .wrap { max-width: 86rem; padding: var(--h-in) var(--h-in) 1.75rem; border-radius: 1.5rem; background: var(--h-card); }
.foot .cols { gap: 2.5rem var(--h-gut); padding-bottom: var(--h-in); }
.foot .cols > div { min-width: 0; }
.foot h4 { margin: 0 0 1.1rem; font: 600 0.8125rem/1.3 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--h-soft); }
.foot li { margin-bottom: 0.6rem; }
.foot .cols a { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.foot .cols a:hover { text-decoration: none; opacity: 0.6; }
.foot .legal { max-width: 62rem; padding: 1.5rem 0; border-top: 1px solid rgba(12, 18, 34, 0.1); font-size: 0.75rem; color: var(--h-soft); }
.foot .bar { padding-top: 1.25rem; border-top: 1px solid rgba(12, 18, 34, 0.1); font-size: 0.8125rem; color: var(--h-soft); }
.foot .bar a { color: var(--ink); }
.foot .social { gap: 1.5rem; }
.foot .social svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 62rem) {
  .top > .wrap > nav { display: none; }
  .top .wrap { width: auto; gap: 0.6rem; }
  .top .wrap::before { border-radius: 1rem; }
  .top .brand { margin-inline-end: auto; }
  .top .store.sm { border-radius: 0.6rem; }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .top .lang-menu, .top .menu-list { top: 4.6rem; }
  .top .wrap { gap: 0.35rem; height: 3.25rem; }
  .top .brand { padding: 0 0.25rem 0 0.5rem; font-size: 0.9375rem; }
  .top .lang { margin-inline-end: 0; }
  /* Two icon buttons on phones: the names stay for screen readers. */
  .top .stores { gap: 0.3rem; }
  .top .store.sm, .top .store.sm.play { width: 2.375rem; padding: 0; justify-content: center; }
  .top .store.sm > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top .store.sm svg { width: 1.15rem; height: 1.15rem; margin: -0.1rem 0 0; }
  .top .store.sm .gp { width: 1.05rem; height: 1.15rem; margin: 0; }
  .foot .wrap { padding: 2rem 1.5rem 1.5rem; }
  .foot .bar { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
}

/* Rich campus pages (campus_rich.py): one school's colors as accents, set on
   .band as --school and --school-2. Never a logo or a mark, only colors. */
main.campus-rich { padding-top: 0; }
main.campus-rich .wrap { max-width: 52rem; }
.campus-rich .pill { white-space: normal; text-align: center; max-width: 100%; }
.campus-rich .band { --school: #2264df; --school-2: #2264df; position: relative; margin: 0 -1.5rem 1.5rem; padding: 2.4rem 1.5rem 1.4rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--school) 9%, #fff), #fff 85%); border-top: 6px solid var(--school); }
.campus-rich .band::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--school-2); }
.campus-rich .band h1 { color: var(--school); margin-top: 0.4rem; }
.campus-rich .band .lede { margin-bottom: 0.4rem; }
.campus-rich .where { color: var(--muted); font-size: 0.9375rem; margin: 0.2rem 0; }
.campus-rich .indep { font-size: 0.8125rem; color: var(--muted); border-inline-start: 3px solid var(--school-2); padding-inline-start: 0.6rem; margin: 0.8rem 0 0; }
.campus-rich h2 { scroll-margin-top: 3.5rem; }
.campus-rich h2::before { content: ""; display: block; width: 2.2rem; height: 4px; border-radius: 2px; background: var(--school-2, var(--accent)); margin-bottom: 0.55rem; }
.campus-rich .small { font-size: 0.875rem; }
.campus-rich a.src { font-size: 0.75rem; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.campus-rich .note { background: #fff7e6; border: 1px solid #f3d9a4; border-radius: 0.7rem; padding: 0.7rem 0.9rem; margin: 1rem 0; }
.campus-rich .note p { margin: 0; }
.campus-rich .today-hours { font-weight: 600; margin: 0.5rem 0 0; }
main.doc ul.halls-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: 0.75rem; margin: 0.6rem 0 1.4rem; }
ul.halls-grid li.hall { border: 1px solid var(--line); border-top: 4px solid var(--school, var(--accent)); border-radius: 0.8rem; padding: 0.75rem 0.85rem; display: flex; flex-direction: column; gap: 0.18rem; font-size: 0.875rem; background: #fff; margin: 0; }
ul.halls-grid li.hall strong { font: 700 1.0625rem/1.25 var(--display); color: var(--ink); }
ul.halls-grid .kind, ul.halls-grid .where, ul.halls-grid .n { color: var(--muted); }
ul.halls-grid .kind { text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.6875rem; font-weight: 700; }
ul.halls-grid .h { margin-top: 0.3rem; color: var(--text); }
.now { font-weight: 700; font-size: 0.8125rem; }
.now:empty { display: none; }
.now.is-open { color: #17734a; }
.now.is-open::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #23a65a; margin-inline-end: 0.35rem; vertical-align: 0.05rem; }
.now.is-later { color: #9a6a00; }
.now.is-closed { color: var(--faint); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0.6rem 0 0.2rem; }
.filters .muted { font-size: 0.8125rem; margin-inline: 0.2rem 0.1rem; }
.filters button { font: 600 0.8125rem var(--sans); color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem; cursor: pointer; }
.filters button[aria-pressed="true"] { color: #fff; background: var(--school, var(--accent)); border-color: var(--school, var(--accent)); }
.campus-rich .al { display: block; font-size: 0.75rem; color: var(--muted); }
.campus-rich section.hallsec { border-top: 1px solid var(--line); padding-top: 0.4rem; margin-top: 1rem; }
.campus-rich section.hallsec h3 { font-size: 1.25rem; color: var(--school); }
main.doc ol.week { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; margin: 0.6rem 0 1.4rem; }
ol.week li { border-radius: 0.6rem; background: var(--wash); padding: 0.5rem; font-size: 0.75rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; margin: 0; }
ol.week li em { font-style: normal; font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: 0.6875rem; }
ol.week li b { color: var(--ink); }
ol.week li span { overflow-wrap: anywhere; }
ol.week li.today { background: color-mix(in srgb, var(--school, var(--accent)) 12%, #fff); outline: 2px solid var(--school, var(--accent)); }
ol.week li.ahead { background: #fff; border: 1px dashed var(--line); }
table.hours { margin: 0.4rem 0 0.8rem; font-size: 0.9375rem; }
table.hours td, table.hours th { padding: 0.45rem 0; padding-inline-end: 1.2rem; vertical-align: top; text-align: start; }
table.hours th { font-size: 0.8125rem; color: var(--muted); }
table.menu.weekdays td:first-child, table.menu.weekdays th:first-child, table.menu.mealplans td:first-child, table.menu.mealplans th:first-child { width: auto; min-width: 7rem; }
table.menu.mealplans td:nth-child(2) { width: 60%; }
table.menu.weekdays td + td, table.menu.mealplans td + td { text-align: start; white-space: normal; }
table.menu.weekdays td:nth-child(2), table.menu.mealplans td:nth-child(2) { font-weight: 400; }
table.menu.mealplans th + th { text-align: start; }
dl.terms { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; }
dl.terms dt { font-weight: 700; }
dl.terms dd { margin: 0; }
ul.facts.row { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
ul.facts.row li { border: 0; }
ul.sources { font-size: 0.875rem; padding-inline-start: 1.1rem; }
@media (max-width: 640px) {
  .campus-rich .band { margin-inline: -1.25rem; padding-inline: 1.25rem; }
  ol.week { grid-template-columns: repeat(4, 1fr); }
  dl.terms { grid-template-columns: 1fr; }
  dl.terms dd { margin-bottom: 0.5rem; }
}
main.doc ul.wkdays { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
ul.wkdays > li { background: var(--wash); border-radius: 0.8rem; padding: 0.7rem 0.85rem; margin: 0; }
ul.wkdays > li > b { display: block; font: 700 0.9375rem var(--display); color: var(--school, var(--accent)); margin-bottom: 0.3rem; }
main.doc ul.wkdays ul { list-style: none; padding: 0; margin: 0; }
ul.wkdays ul li { font-size: 0.9375rem; margin: 0 0 0.45rem; line-height: 1.3; }
ul.wkdays ul li span { display: block; font-size: 0.75rem; color: var(--muted); }
table.menu.picks td:first-child { position: relative; padding-bottom: 0.75rem; }
table.menu.picks i.bar { position: absolute; inset-inline-start: 0; bottom: 0.35rem; height: 4px; border-radius: 2px; background: var(--school-2, var(--accent)); max-width: 100%; }
main.doc ul.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
ul.chips li { margin: 0; }
ul.chips a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.9375rem; }

/* Campus rich, visual parts: stat tiles, day timelines, bar charts, dish
   cards, plan cards, folds. Colors come from --school and --school-2. */
.campus-rich .band { background: linear-gradient(180deg, color-mix(in srgb, var(--school) 16%, #fff), color-mix(in srgb, var(--school-2) 6%, #fff) 70%, #fff); }
.campus-rich .indep { margin-top: 0.9rem; }
.campus-rich h3.grp { font-size: 1rem; margin: 1.3rem 0 0.4rem; color: var(--ink); }
.campus-rich h3.grp small { display: block; font: 400 0.8125rem/1.35 var(--sans); color: var(--muted); margin-top: 0.15rem; }

.timeline { --tl-name: 11.5rem; --tl-meta: 9rem; margin: 0.3rem 0 0.6rem; }
.tl-row { display: grid; grid-template-columns: var(--tl-name) 1fr var(--tl-meta); align-items: center; gap: 0.7rem; padding: 0.3rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.tl-row.tl-head { border: 0; padding: 0 0 0.1rem; }
.tl-name { font-weight: 600; font-size: 0.9375rem; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.tl-name a { color: var(--ink); text-decoration: none; }
.tl-row.has-page .tl-name a { color: var(--school, var(--accent)); }
.tl-name a:hover { text-decoration: underline; }
.tl-track { position: relative; height: 1.55rem; border-radius: 0.45rem; background: repeating-linear-gradient(90deg, #f3f4f7 0 calc(100% / 6 - 1px), #e7e9ee calc(100% / 6 - 1px) calc(100% / 6)); }
.tl-track em { position: absolute; inset: 0; display: flex; align-items: center; padding-inline-start: 0.55rem; font: italic 400 0.75rem var(--sans); color: var(--faint); }
.tl-bar { position: absolute; top: 0.15rem; bottom: 0.15rem; border-radius: 0.35rem; background: color-mix(in srgb, var(--school, var(--accent)) 70%, #fff); overflow: hidden; }
.tl-row.open-now .tl-bar { background: var(--school, var(--accent)); }
.tl-bar span { display: block; font: 600 0.6875rem/1.25rem var(--sans); color: #fff; padding-inline: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-nowline { position: absolute; top: -0.2rem; bottom: -0.2rem; width: 2px; margin-inline-start: -1px; background: #e0342b; border-radius: 1px; z-index: 2; }
.tl-axis { position: relative; height: 1rem; }
.tl-axis span { position: absolute; transform: translateX(-50%); font-size: 0.6875rem; color: var(--muted); white-space: nowrap; }
.tl-axis span:first-child { transform: none; }
.tl-meta { font-size: 0.75rem; color: var(--muted); display: flex; flex-direction: column; gap: 0.05rem; line-height: 1.25; }
.tl-meta .now { font-size: 0.75rem; }
.timeline.solo { --tl-name: 0; --tl-meta: 9.5rem; max-width: 40rem; }
.timeline.solo .tl-row { grid-template-columns: 1fr var(--tl-meta); border: 0; }
.timeline.solo .tl-track { height: 2.1rem; background-color: #fff; }
.timeline.solo .tl-bar span { line-height: 1.8rem; font-size: 0.75rem; }
.timeline.solo .tl-meta .now { font-size: 0.875rem; }
.timeline .tl-row.is-today .tl-name { color: var(--school, var(--accent)); }

main.doc ol.hbars { list-style: none; padding: 0; margin: 0.4rem 0 0.6rem; }
ol.hbars li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 3.2rem 4.4rem; align-items: center; gap: 0.7rem; padding: 0.4rem 0; margin: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.hb-name { font-size: 0.9375rem; line-height: 1.25; }
.hb-name small { display: block; font-size: 0.75rem; color: var(--muted); }
.hb-track { height: 0.7rem; border-radius: 999px; background: #eef0f4; overflow: hidden; }
.hb-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--school, var(--accent)), color-mix(in srgb, var(--school-2, var(--accent)) 85%, var(--school, var(--accent)))); }
ol.hbars b { font: 700 1rem var(--display); text-align: end; color: var(--ink); }
.hb-cal { font-size: 0.75rem; color: var(--muted); text-align: end; }

main.doc ul.plates { list-style: none; padding: 0; margin: 0.5rem 0 0.4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.6rem; }
ul.plates li { margin: 0; background: #fff; border-radius: 0.9rem; padding: 0.8rem 0.9rem; box-shadow: 0 1px 2px rgba(12, 18, 34, 0.06), 0 0 0 1px rgba(12, 18, 34, 0.06); display: flex; flex-direction: column; gap: 0.35rem; }
.pl-kcal { font-size: 0.8125rem; color: var(--muted); }
.pl-kcal b { font: 800 1.6rem/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.pl-name { font-weight: 600; line-height: 1.25; flex: 1; }
.macro { display: flex; height: 0.5rem; border-radius: 999px; overflow: hidden; gap: 2px; }
.macro i, .macro-key em::before { background: #ccc; }
.macro i.p, .macro-key em.p::before { background: #2f7de1; }
.macro i.c, .macro-key em.c::before { background: #f2a93b; }
.macro i.f, .macro-key em.f::before { background: #e0617a; }
.pl-m { font-size: 0.75rem; color: var(--muted); }
.pl-m em, .macro-key em { font-style: normal; font-weight: 600; }
.pl-m em.p { color: #2f7de1; } .pl-m em.c { color: #c47f12; } .pl-m em.f { color: #c43d58; }
.macro-key em::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 2px; margin-inline-end: 0.25rem; vertical-align: -0.05rem; }
.campus-rich .diet { font-size: 0.6875rem; font-weight: 700; color: #17734a; background: #e6f6ec; border-radius: 999px; padding: 0.05rem 0.4rem; }

main.doc ul.plancards { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.6rem; }
ul.plancards li { margin: 0; border-radius: 0.9rem; padding: 0.85rem 0.95rem; background: color-mix(in srgb, var(--school, var(--accent)) 6%, #fff); border: 1px solid color-mix(in srgb, var(--school, var(--accent)) 22%, #fff); display: flex; flex-direction: column; gap: 0.4rem; }
ul.plancards li > b { font: 700 1.0625rem var(--display); color: var(--school, var(--accent)); }
ul.plancards small { display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--muted); }
.pc-big { font: 800 1.35rem/1.15 var(--display); color: var(--ink); letter-spacing: -0.02em; }
.pc-txt { font-size: 0.875rem; line-height: 1.35; }

main.doc ul.terms { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.6rem; }
ul.terms li { margin: 0; background: var(--wash); border-radius: 0.8rem; padding: 0.7rem 0.85rem; font-size: 0.875rem; line-height: 1.4; }
ul.terms li b { display: block; font-size: 0.9375rem; color: var(--ink); margin-bottom: 0.15rem; }

details.qa, details.hallfold { border-bottom: 1px solid var(--line); }
details.qa summary, details.hallfold summary { cursor: pointer; padding: 0.75rem 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; align-items: baseline; gap: 0.6rem; }
details.qa summary::-webkit-details-marker, details.hallfold summary::-webkit-details-marker { display: none; }
details.qa summary::after, details.hallfold summary::after { content: "+"; margin-inline-start: auto; font-weight: 400; font-size: 1.2rem; color: var(--school, var(--accent)); line-height: 1; }
details.qa[open] summary::after, details.hallfold[open] summary::after { content: "−"; }
details.qa > p, details.qa > ul { margin-top: 0; }
details.qa.about { margin-top: 1.5rem; }
details.hallfold summary span { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
details.hallfold summary span.n { margin-inline-start: auto; }
details.hallfold summary span.n + ::after { display: none; }
.campus-rich .hall-about { margin: 0.4rem 0 0.2rem; }
.campus-rich .hall-about .small { display: block; margin-top: 0.3rem; color: var(--muted); }

@media (max-width: 640px) {
  .timeline { --tl-meta: 0; }
  .tl-row { grid-template-columns: 1fr; gap: 0.25rem; padding: 0.45rem 0; }
  .tl-row.tl-head { display: none; }
  .tl-meta { flex-direction: row; gap: 0.6rem; }
  .timeline.solo .tl-row.tl-head { display: grid; }
  ol.hbars li { grid-template-columns: minmax(0, 1fr) 3rem; row-gap: 0.25rem; }
  .hb-track { grid-column: 1 / -1; grid-row: 2; }
  .hb-cal { display: none; }
}

/* The app block on a school's pages: its own capture, in a phone in the
   school's colors, large enough to read, on a wash of those colors. */
main.doc .getapp.school { position: relative; align-items: flex-start; padding: 1.6rem 1.5rem 0; min-height: 19rem;
  background: linear-gradient(125deg, color-mix(in srgb, var(--school) 12%, #fff) 0%, color-mix(in srgb, var(--school-2) 22%, #fff) 100%);
  box-shadow: inset 0 3px 0 var(--school); }
main.doc .getapp.school > div { padding: 1.2rem 0 1.4rem; max-width: 22rem; align-self: center; }
main.doc .getapp.school .getapp-h { color: var(--school); font-size: 1.5rem; }
main.doc .getapp.school img.ph { width: 13rem; margin: 0 1.5rem -8.2rem 0; align-self: flex-start;
  filter: drop-shadow(0 1rem 1.4rem color-mix(in srgb, var(--school) 35%, transparent)); }
@media (max-width: 40rem) {
  main.doc .getapp.school { padding: 1.2rem 1rem 0; min-height: 13rem; }
  main.doc .getapp.school img.ph { width: 8.5rem; margin: 0 -0.2rem -5rem 0; align-self: flex-end; }
  main.doc .getapp.school > div { padding-top: 0.4rem; }
}
.timeline .tl-folded { margin: 0.5rem 0 0; font-size: 0.875rem; color: var(--muted, #5b6472); }
.timeline .tl-folded b { font-weight: 600; color: var(--ink); }
.timeline .tl-folded a { color: inherit; }

/* Dish icons, the app's rules and tints (FoodIconRules), in our own drawing. */
.fi { --fi: #787d2e; flex: none; display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 0.5rem;
  color: var(--fi); background: color-mix(in srgb, var(--fi) 14%, transparent); }
.fi svg { width: 1.05rem; height: 1.05rem; }
.fi.big { width: 2.4rem; height: 2.4rem; border-radius: 0.65rem; }
.fi.big svg { width: 1.3rem; height: 1.3rem; }
.campus-rich table.menu td.dish .dc { display: grid; grid-template-columns: auto 1fr; column-gap: 0.7rem; align-items: start; }
.campus-rich table.menu td.dish .fi { grid-row: span 2; margin-top: 0.1rem; }
.campus-rich table.menu td.dish .mbar { grid-column: 2; }
.mbar { display: flex; gap: 2px; width: 6rem; height: 0.3rem; border-radius: 999px; overflow: hidden; margin-top: 0.35rem; }
.mbar i.p { background: #2f7de1; } .mbar i.c { background: #f2a93b; } .mbar i.f { background: #e0617a; }
.pl-top { display: flex; align-items: center; justify-content: space-between; }
.pl-hall { font-size: 0.8rem; color: var(--muted); }
main.doc ul.stations { list-style: none; padding: 0; margin: 0.6rem 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.6rem; }
ul.stations li { margin: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 0.75rem; row-gap: 0.1rem; align-items: center;
  background: #fff; border-radius: 0.9rem; padding: 0.8rem 0.9rem; box-shadow: 0 1px 2px rgba(12, 18, 34, 0.06), 0 0 0 1px rgba(12, 18, 34, 0.06); }
ul.stations .fi { grid-row: span 3; align-self: start; }
ul.stations b { font-weight: 650; line-height: 1.25; }
ul.stations .st-n { font-size: 0.8rem; color: var(--muted); }
ul.stations .st-d { font-size: 0.85rem; line-height: 1.35; color: var(--ink); opacity: 0.8; }
.campus-rich .stale { margin: 0.6rem 0 0; padding: 0.55rem 0.8rem; border-radius: 0.6rem; background: #fff4d6; color: #6b4e00; font-size: 0.9rem; }
.campus-rich .indep { margin-top: 2rem; }
@media (max-width: 40rem) {
  main.doc ul.stations { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  ul.stations li { grid-template-columns: 1fr; padding: 0.7rem; row-gap: 0.25rem; }
  ul.stations .fi { grid-row: auto; }
  ul.stations .st-d { display: none; }
  .timeline .tl-axis span:nth-child(even) { display: none; }
}

/* Plate builder: + on a dish, a bar with the total, a panel with the whole plate. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.campus-rich table.menu th.add, .campus-rich table.menu td.add { width: 2.4rem; text-align: right; padding-inline-start: 0.3rem; }
.padd { width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 0; cursor: pointer; font: 600 1.2rem/1 var(--sans, inherit);
  color: var(--school, #2264df); background: color-mix(in srgb, var(--school, #2264df) 12%, #fff); transition: transform 0.15s, background 0.15s; }
.padd:hover { background: color-mix(in srgb, var(--school, #2264df) 22%, #fff); }
.padd.added { transform: scale(1.15); color: #fff; background: var(--school, #2264df); }
.platebar { position: fixed; z-index: 40; inset-inline: 0; bottom: max(0.8rem, env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; }
.platebar[hidden], .platepanel[hidden] { display: none; }
.pb-open { pointer-events: auto; display: flex; align-items: center; gap: 0.8rem; min-width: min(30rem, calc(100vw - 1.6rem)); padding: 0.65rem 0.8rem 0.65rem 0.7rem;
  border: 0; border-radius: 1rem; cursor: pointer; text-align: left; color: #fff; background: #12161f; box-shadow: 0 0.6rem 1.6rem rgba(12, 18, 34, 0.3); font: inherit; }
.pb-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 0.65rem; background: var(--school, #2264df); flex: none; }
.pb-icon svg { width: 1.2rem; height: 1.2rem; }
.pb-t { display: flex; flex-direction: column; line-height: 1.2; }
.pb-t .pb-k { font-size: 0.85rem; opacity: 0.8; }
.pb-m { flex: 1; min-width: 3rem; }
.pb-go { font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.platepanel { position: fixed; z-index: 50; inset: 0; background: rgba(12, 18, 34, 0.45); display: flex; justify-content: flex-end; }
.pp-sheet { width: min(27rem, 100vw); height: 100%; overflow-y: auto; background: #fff; padding: 1.2rem 1.3rem 2rem; box-shadow: -0.5rem 0 2rem rgba(12, 18, 34, 0.2); }
body.pp-open { overflow: hidden; }
.pp-head { display: flex; align-items: center; justify-content: space-between; }
.pp-head h2 { margin: 0; }
.pp-head h2::before { display: none; }
.pp-x { border: 0; background: #eef0f4; width: 2.2rem; height: 2.2rem; border-radius: 999px; font-size: 1.4rem; cursor: pointer; }
.pp-top { display: flex; gap: 1.1rem; align-items: center; margin: 1rem 0; }
.pp-ring { width: 8.5rem; height: 8.5rem; flex: none; transform: none; }
.pp-ring circle { fill: none; stroke-width: 5; }
.pp-ring .pp-track { stroke: #eef0f4; }
.pp-seg.p { stroke: #2f7de1; } .pp-seg.c { stroke: #f2a93b; } .pp-seg.f { stroke: #e0617a; }
.pp-ring text { text-anchor: middle; font-family: var(--display, inherit); fill: var(--ink); }
.pp-ring .pp-k { font-size: 7.5px; font-weight: 700; dominant-baseline: middle; }
.pp-ring .pp-ku { font-size: 3.6px; fill: var(--muted); }
main.doc ul.pp-mac { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
ul.pp-mac li { margin: 0; display: flex; flex-direction: column; padding-inline-start: 0.7rem; border-inline-start: 4px solid #ccc; line-height: 1.25; }
ul.pp-mac li.p { border-color: #2f7de1; } ul.pp-mac li.c { border-color: #f2a93b; } ul.pp-mac li.f { border-color: #e0617a; }
ul.pp-mac span { font-size: 0.8rem; color: var(--muted); }
main.doc ul.pp-items { list-style: none; padding: 0; margin: 0 0 1rem; border-top: 1px solid #eef0f4; }
ul.pp-items li { margin: 0; display: grid; grid-template-columns: 1fr auto auto; gap: 0.6rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid #eef0f4; }
.pi-k { font-size: 0.85rem; color: var(--muted); }
.pi-q { display: flex; align-items: center; gap: 0.35rem; }
.pi-q button { width: 1.7rem; height: 1.7rem; border-radius: 999px; border: 1px solid #dfe3ea; background: #fff; cursor: pointer; font-size: 1rem; }
.pp-sheet h3 { margin: 1.2rem 0 0.3rem; }
table.pp-facts { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.pp-facts th, table.pp-facts td { text-align: left; padding: 0.3rem 0; border-bottom: 1px solid #eef0f4; font-weight: 400; }
table.pp-facts tr.l0 th { font-weight: 650; }
table.pp-facts tr.l1 th { padding-inline-start: 1rem; } table.pp-facts tr.l2 th { padding-inline-start: 2rem; }
table.pp-facts td.dv { text-align: right; white-space: nowrap; font-size: 0.8rem; color: var(--muted); }
.dvbar { display: inline-block; width: 3.5rem; height: 0.35rem; border-radius: 999px; background: #eef0f4; margin-inline-end: 0.4rem; vertical-align: middle; overflow: hidden; }
.dvbar i { display: block; height: 100%; background: var(--school, #2264df); }
.pp-al { font-size: 0.9rem; margin: 0.9rem 0 0.4rem; }
.pp-cta { margin: 1.2rem 0 0.8rem; padding: 0.9rem 1rem; border-radius: 0.9rem; background: color-mix(in srgb, var(--school, #2264df) 10%, #fff); }
.pp-cta p { margin: 0 0 0.6rem; }
.pp-clear { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.9rem; }
@media (max-width: 40rem) {
  .pp-sheet { width: 100vw; }
  .campus-rich table.menu th.add, .campus-rich table.menu td.add { width: 2.1rem; }
}

/* A school's own facts, as cards. */
main.doc ul.glance { list-style: none; padding: 0; margin: 0.6rem 0 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.6rem; }
ul.glance li { margin: 0; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem; border-radius: 0.9rem;
  background: linear-gradient(160deg, color-mix(in srgb, var(--school, #2264df) 9%, #fff), #fff 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--school, #2264df) 16%, transparent); }
ul.glance svg { color: var(--school, #2264df); }
ul.glance b { font: 700 1.6rem/1.1 var(--display); letter-spacing: -0.02em; color: var(--school, #2264df); }
ul.glance span { font-size: 0.9rem; line-height: 1.35; }
ul.glance span a { font-size: 0.8rem; }
@media (max-width: 40rem) {
  .campus-rich table.dishes, .campus-rich table.dishes tbody { display: block; }
  .campus-rich table.dishes tr:first-child { display: none; }
  .campus-rich table.dishes tr { display: grid; grid-template-columns: 2.6rem 4.4rem 4.3rem 4.3rem 1fr 2.4rem; align-items: center;
    padding: 0.55rem 0; border-bottom: 1px solid #eef0f4; }
  .campus-rich table.dishes td { border: 0; padding: 0; text-align: left; white-space: nowrap; }
  .campus-rich table.dishes td.dish { grid-column: 1 / 6; white-space: normal; }
  .campus-rich table.dishes td.add { grid-column: 6; grid-row: 1 / span 2; width: auto; }
  .campus-rich table.dishes td:nth-child(2) { grid-column: 2; }
  .campus-rich table.dishes td:nth-child(n+2):not(.add) { font-size: 0.85rem; padding-top: 0.3rem; }
  .campus-rich table.dishes td:nth-child(2)::after { content: " cal"; color: var(--muted); font-weight: 400; }
  .campus-rich table.dishes td:nth-child(3)::after { content: " g P"; color: #2f7de1; }
  .campus-rich table.dishes td:nth-child(4)::after { content: " g C"; color: #c98314; }
  .campus-rich table.dishes td:nth-child(5)::after { content: " g F"; color: #d04866; }
  .campus-rich table.dishes td[colspan] { grid-column: 3 / 6; }
  .campus-rich table.dishes td[colspan]::after { content: none; }
}
/* Places with no menu today, folded together on a school page. */
details.hallfold.quiet > details.hallfold { margin-left: 1rem; }
details.hallfold.quiet > details.hallfold:last-child { border-bottom: 0; }
/* A bar too narrow for its label ("Breakfast" on a phone) shows the first letter. */
.tl-bar { container-type: inline-size; }
@container (max-width: 3.6rem) {
  .tl-bar span[data-s]:not([data-s=""]) { font-size: 0; }
  .tl-bar span[data-s]:not([data-s=""])::before { content: attr(data-s); font-size: 0.6875rem; }
}
