/* The year calendar (/calendar): docs/design/2026-09-redesign/calendar/build.py's
 * CSS on family.css's tokens, repainted on 2026-11-12 with one yardstick
 * (docs/superpowers/specs/2026-11-12-calendar-one-yardstick-design.md,
 * docs/design/2026-11-one-yardstick/BRIEF.md): a tile prints its day and,
 * under it, the day's cheapest price; its fill is that price's step, and a
 * confirmed good price is a mark in its corner. The route filter is an inset
 * list with counts on a phone and a chip row in the sidebar from 960 px (the
 * decided spec). A phone shows a month a row; a desktop three, so a tile's
 * price never falls under 12 px. Tile text is under the pages' 17 px floor on
 * purpose, capped by its tile: each month's footer says its cheapest day and
 * its best confirmed price in words at the page's size. */
body.fam.cal{
  --x:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 1.5l9 9M10.5 1.5l-9 9' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --chev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14'%3E%3Cpath d='M1.5 1.5 6.5 7l-5 5.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tick:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M1.5 6.5 5 10l7.5-8.5' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* the mark's tick: a heavier stroke than the route list's, as it is drawn small */
  --tk:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M1.9 6.6 5.2 9.9 12.1 2.1' fill='none' stroke='black' stroke-width='2.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* fainter scaffolding in the dark */
@media (prefers-color-scheme:dark){body.fam.cal{--ink3:#4d4d52}}
.page{max-width:640px;display:flex;flex-direction:column}
.side{display:contents}
.side>.head,.side>.trio,.side>.best,.side>.gone,.side>.none{order:1}
.gone{display:flex;gap:8px;align-items:flex-start;color:var(--ink2);margin:14px 2px 0}
.gone svg.g{margin-top:2px}
.gone b{font-weight:600;color:var(--ink)}
.years{order:2}
.side>.group{order:3;margin-top:28px}
.side>.group+.group{margin-top:14px}
.side>.foot{order:4;padding:40px 8px 44px}
/* the sky of "/": tinted green when the view holds a deal */
.sky{position:absolute;left:0;right:0;top:0;height:560px;z-index:0;pointer-events:none;
  background:radial-gradient(90% 60% at 50% 0%,var(--sky2) 0%,transparent 100%),
    linear-gradient(180deg,var(--sky) 0%,var(--ground) 100%)}
body.v-n{--sky:#e4e5ea;--sky2:#f6f6f8}
@media (prefers-color-scheme:dark){
  .sky{height:420px;background:radial-gradient(ellipse 80% 240px at 50% 40px,rgba(48,209,88,.22) 0%,rgba(48,209,88,.07) 52%,transparent 100%)}
  body.v-n .sky{background:radial-gradient(ellipse 80% 240px at 50% 40px,rgba(255,255,255,.08) 0%,transparent 100%)}
}
.head h1{font-size:2.125rem;font-weight:700;letter-spacing:-.03em;line-height:1.1;margin-top:6px}
.lede{color:var(--ink2);margin-top:6px;text-wrap:pretty}
/* the status line under it, in the same quiet ink (owner-approved 2026-10-07):
   "Updating prices · 45 %" behind a slowly turning arc, or "Only some days
   have prices today · ...". The arc keeps to the first line and the words
   wrap beside it, so with large text it never stands alone on a line; the
   arc's track is the faint scaffolding ink, its head the line's own. */
.run{display:flex;align-items:flex-start;gap:.45em;color:var(--ink2);margin-top:2px;text-wrap:pretty}
.run .ln{flex:1;min-width:0}
.run .spin{flex:none;box-sizing:border-box;width:.75em;height:.75em;margin-top:.33em;border-radius:50%;
  border:.125em solid var(--ink3);border-top-color:currentColor;animation:spin 1.6s linear infinite}
@keyframes spin{to{transform:rotate(1turn)}}
/* controls: the direction as an iOS segmented control; the routes as an inset
   list with counts on a phone, chips from 960 px */
.ctl{margin-top:18px}
.seg{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,5.5em),1fr));background:var(--fill2);border-radius:12px;padding:2px}
/* two halves while each label's longest word ("Singapore") fits one, its
   words wrapping inside it; with larger text the two stack, full width,
   rather than push the page sideways (F3) */
.seg a{text-align:center;padding:4px;border-radius:10px;font-weight:500;min-height:44px;display:grid;place-items:center}
.seg a[aria-current]{background:var(--thumb);font-weight:600;box-shadow:0 3px 8px rgba(0,0,0,.12),0 3px 1px rgba(0,0,0,.04)}
@media (prefers-color-scheme:dark){.seg a[aria-current]{box-shadow:none}}
.rts{display:block;margin-top:12px;background:var(--card);border-radius:var(--r);overflow:hidden}
.rts a{position:relative;display:flex;align-items:center;gap:12px;min-height:52px;padding:10px 16px 10px 18px}
.rts a+a::before{content:"";position:absolute;top:0;left:18px;right:0;height:.5px;background:var(--sep)}
.rts .tx{flex:1;min-width:0}
.rts b{display:block;font-weight:500}
.rts .s{display:block;color:var(--go);font-weight:600;font-variant-numeric:tabular-nums}
.rts .sh{display:none}
.rts a[aria-current] b{font-weight:600}
.rts a[aria-current]::after{content:"";flex:none;width:14px;height:12px;background:var(--ink);-webkit-mask:var(--tick) center/contain no-repeat;mask:var(--tick) center/contain no-repeat}
/* the trio: what it is, said once */
.trio{margin-top:18px;padding:0 2px}
.trio b{display:block;font-weight:600}
.trio p{color:var(--ink2);text-wrap:pretty}
/* the one answer above the year */
.best{position:relative;display:flex;flex-wrap:wrap;gap:10px 12px;align-items:center;
  margin-top:22px;background:var(--card);border-radius:var(--r);padding:14px 36px 14px 14px}
/* the words beside the dot while 10em fit there (a phone's 320 px at the
   default size); with larger text they go under it, whole (F3). The chevron
   keeps the card's right edge, mid-height, wherever the words go. */
.best .t{flex:1 1 10em;min-width:0}
.best>svg.chev{position:absolute;right:16px;top:calc(50% - 7px)}
/* the day's tile: 44 px at the usual sizes, iOS's 17 px default included;
   with larger text it grows with its day, a rounded square still, so a
   two-digit day never runs out of it ("30" is 45 px wide at doubled text) */
.best .dot{position:relative;flex:none;min-width:max(44px,2.4em);height:max(44px,2.4em);padding:0 .25em;
  border-radius:max(12px,.65em);display:grid;place-items:center;font-weight:600;
  background:var(--shade-2);color:var(--shade-ink-2);font-variant-numeric:tabular-nums}
/* the tile it is, by its step (the shade section below), and its mark */
.best .dot[data-s="1"]{background:var(--shade-1);color:var(--shade-ink-1)}
.best .dot[data-s="3"]{background:var(--shade-3);color:var(--shade-ink-3)}
.best .dot[data-s="4"]{background:var(--shade-4);color:var(--shade-ink-4);box-shadow:inset 0 0 0 1px var(--sep)}
.best .l0{display:block;color:var(--ink2)}
.best .l1{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;column-gap:10px}
.best b{font-weight:600;letter-spacing:-.018em}
.best .s{display:block;color:var(--ink2)}
.best .s.go{color:var(--go);font-weight:600}
.best .p{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
/* the page's best confirmed price, when it is another fare: a second row
   joined to the card above it, opening with the mark its tile wears */
.best:has(+.b2){border-radius:var(--r) var(--r) 6px 6px}
.best.b2{margin-top:2px;border-radius:6px 6px var(--r) var(--r)}
.best .dot2{flex:none;min-width:max(44px,2.4em);display:grid;place-items:center}
/* the current cabin: a row that says so, no chevron */
.cabins .lrow[aria-current] b{font-weight:700}
/* --- the year ------------------------------------------------------------ */
.yh{font-size:1.375rem;font-weight:700;letter-spacing:-.022em;margin:34px 4px 12px}
/* Two months a row from 600 px (three on a desktop; a phone has one, below)
   for as long as a month is --mo wide: what seven tiles need for a
   four-digit price at 12 px with air beside it ("1.301" is about 2rem wide,
   a tile a seventh of the month less its 2 px gaps). With larger text a
   month takes a row of its own sooner, at any width: the switch follows the
   text, not a px breakpoint (F3). The gap and the side padding are in rem
   as well, so the container query below, which draws a lone month, switches
   at exactly the width where the grid drops to one:
   2 x 17 + .75 + 2 x .625 = 36rem. */
.years{container:years/inline-size}
.yr{--mo:17rem;background:var(--card);border-radius:var(--r);padding:18px .625rem 16px;display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,max(var(--mo),50% - .375rem - 1px)),1fr));gap:24px .75rem;
  /* a lone month's wide end tiles would reach their tap targets past the
     card, and push the page sideways */
  overflow-x:clip}
/* a month is the box a lone month's day numbers measure themselves
   against (cqi, below) */
.mo{scroll-margin-top:24px;min-width:0;container-type:inline-size}
.mo h3{font-size:1.0625rem;font-weight:600;letter-spacing:-.018em;margin:0 0 6px 4px}
.days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.days>*{aspect-ratio:1;display:grid;place-items:center;border-radius:8px;font-size:.875rem;line-height:1;
  font-variant-numeric:tabular-nums;font-style:normal;color:var(--ink3);position:relative}
/* a day we do not check: a faint small number, the calendar's scaffolding */
.days>i{font-size:.75rem}
.days>i.now{color:var(--ink);font-weight:700}
.days>i.now::before{content:"";position:absolute;inset:0;margin:auto;height:100%;aspect-ratio:1;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--ink)}
/* A tile: its day, and under it the day's cheapest price (.pr), the two
   centred together; its mark (.mk) beside the day's top right. Both sizes
   are the reader's own up to what the tile holds (cqi of .mo, the month's
   width), so a price never meets its tile's sides whatever the text size,
   and never falls under 12 px: 16 / 13 px on a phone, 390 and 320 alike,
   every page, four-digit prices too (review of 2026-11-12, L6: a 12 px
   "4.187" on the owner's big-money pages); with larger text a phone's tile
   grows its text to 17 / 14.5 px at 390 (N6: it stayed 16 / 13); 14 / 12-13
   px in a desktop month (the breakpoints below). Two weights: the price is
   semibold on the lit steps, the rest regular (craft judge: five numeral
   weights read as speckle). */
.days>a{grid-template-rows:auto auto;align-content:center;row-gap:.2em;
  background:var(--shade-2);color:var(--shade-ink-2);font-weight:400;transition:transform .15s;
  font-size:min(1rem,5.1cqi)}
.days>i.now{font-size:min(1rem,5.1cqi)}
.days>*>.pr{font-size:max(12px,min(.8125rem,4.3cqi));line-height:1;font-weight:600;letter-spacing:-.02em;
  color:var(--shade-price-2)}
/* a page with a four-digit price ("1.056", "4.187"): 13 px still, packed a
   little tighter, and with larger text it grows less, so the widest keeps
   3 px of air in a 320 px phone's 43 px tile */
.years[data-w] .days>*>.pr{font-size:max(12px,min(.8125rem,4.2cqi));letter-spacing:-.03em}
/* a tile's tap target reaches 60 % over a faint day (one we do not price)
   before it; a faint day after it is drawn over that reach, so a touch there
   finds nothing. Never over another tile: with every day priced, tiles sit
   side by side, and the next day's target took the middle of each tile, so
   a tap on a deal opened the day after it. A tile keeps to its half of the
   gap wherever a tile can sit beside it: the days before and after it, and
   across the gap between two months, beside a month's first and last day
   (a month's blanks are grid offsets, not elements). On both sides, as a
   day under a mouse is raised above the rest (:hover). The card clips a
   reach past its sides (.yr). The :has() rule stands alone: a browser
   without it drops only that rule, and touch needs only the others. */
.days>a::after{content:"";position:absolute;inset:-1px -60%}
.days>a+a::after,.days>a:first-child::after{left:-1px}
.days>a:last-child::after{right:-1px}
.days>a:has(+a)::after{right:-1px}
.days>a:active{transform:scale(.9)}
@media (hover:hover){.days>a:hover{transform:scale(1.14);z-index:1}}
/* nothing on sale: the day struck through, no fill, no price */
.days>a.s{background:none;color:var(--shade-ink-4);text-decoration:line-through}
/* could not check: no fill, a dashed edge dark enough to be seen (3:1,
   --dash) and "?" where the price would be; never "nothing on sale". The
   dash sits on the tile's own edge, not the mockup's 3 px inside it: in a
   desktop's small tiles a two-digit day is wider than that inset, and the
   dashes ran through its digits */
.days>a.x{background:none;color:var(--shade-ink-4);outline:1.5px dashed var(--dash);outline-offset:-1px}
.days>a.x>.pr{color:var(--shade-ink-4);font-weight:400}
/* the marks, top right, clear of a two-digit day, in the one green and told
   apart by shape: a tick (the tile's own price is a confirmed good price)
   or a small dot (a good price was confirmed that day for another, dearer
   flight). Small on purpose: a mark never out-shouts the fill (craft
   judge), and the dot least, as it speaks of a dearer fare. */
.mk{display:inline-block;flex:none;background:var(--mark)}
[data-m="k"]>.mk,[data-m="k"] .mk{width:.84em;height:.72em;-webkit-mask:var(--tk) center/contain no-repeat;mask:var(--tk) center/contain no-repeat}
[data-m="o"]>.mk,[data-m="o"] .mk{width:.42em;height:.42em;border-radius:50%}
/* placed from the tile's middle, past half a two-digit day (.72em of the
   day's own font; "22" is 1.4em wide) and 2 px of air, so a mark never touches
   "28" at any width or text size (review of 2026-11-12, L2: 0.05 px at 1280,
   1.3 px on a phone); the tick as wide as the tile leaves it, at most half
   the day's font (8 px at 390, 7 at 320, 6.5 at 1280), 1 px inside the
   tile's edge; and low enough to stay inside the tile's rounded corner,
   where it sat 1.2 px out. A dot of 5 px. */
.days>a>.mk{position:absolute;top:7.5px;left:calc(50% + .72em + 2px);width:min(.5em,50% - .72em - 3px);
  height:auto;aspect-ratio:14/12}
.days>a[data-m="o"]>.mk{top:9px;left:calc(50% + .72em + 3px);width:5px;aspect-ratio:1}
/* the wait at the stop on the way out (spec 2026-11-14), on a tile whose
   price is a searched one-stop fare's with its wait known: a thin bar along
   the tile's bottom, inset from its sides, on the sheet's 0-12 h ruler (full
   past 12 h). A faint track in the tile's own ink, the wait in that ink at
   full strength, so it reads on every step, light and dark, and never
   judges. Placed absolutely, stretched between its insets whatever the
   tile's centring says, so the day, the price and the mark keep their
   places to the pixel; a browser without color-mix() draws a grey track.
   Return mode puts it away with the year's prices and marks: a tile's wait
   is its departure's way out, and no return wears it. */
.days>a>.lb{position:absolute;left:5px;right:5px;bottom:3px;height:3px;justify-self:stretch;align-self:end;
  border-radius:2px;pointer-events:none;background:rgba(128,128,128,.25);
  background:color-mix(in srgb,currentColor 18%,transparent)}
.days>a>.lb>i{position:absolute;left:0;top:0;bottom:0;border-radius:2px;background:currentColor}
body.ret .days .lb{display:none}
/* From 600 px a tile is shorter for its text (a desktop's 34-38 px, or a lone
   month's with large text), and a 3 px bar 3 px up met the price's digits
   (by 0.6 px at 1280, 2.6 px at 600 px with doubled text): there it is 2 px,
   1 px from the edge, inside the tile's rounded corners still. */
@media (min-width:600px){.days>a>.lb{bottom:1px;height:2px}}
/* --- a month's footer: its cheapest day, and its best confirmed price ------
   Each row is a link to its day, a 44 px target on a phone; its words are a
   units() line (.ln, family.css), so a narrow month's line never opens with
   a dot and a saving stays with what it qualifies (nd: no dot before it). */
.mf{margin:6px 2px 0;font-variant-numeric:tabular-nums}
.mf>a{display:flex;align-items:center;min-height:44px;padding:2px 2px}
.mf>a>.ln{flex:1;min-width:0}
.mf .ln>span{row-gap:1px}
.mf .ln>span>span{color:var(--ink2)}
.mf .ln>span>span.go,.mf .go{color:var(--go);font-weight:600}
.mf b{font-weight:600;color:var(--ink)}
.mf .ln>span>span.nd::before{content:""}
.mf .mk{margin-right:.4em;vertical-align:baseline}
.mf [data-m="o"] .mk{margin:0 .55em 0 .2em;vertical-align:.12em}
.mf svg.g{width:1.05em;height:1.05em;margin-right:.3em;vertical-align:-.18em}
.mf .q{color:var(--ink2);display:inline-flex;align-items:center;gap:6px;min-height:44px}
.mf .q svg.g{width:1.05em;height:1.05em}
.mc{color:var(--ink2);margin:0 4px}
.su .cap{padding:0 8px}
/* --- the day sheet: :target works with JavaScript off -------------------- */
.sheet{display:none}
.sheet:target{display:block;position:fixed;inset:0;z-index:50}
html:has(.sheet:target){overflow:hidden}
.scrim{position:absolute;inset:0;background:var(--scrim);animation:fade .2s ease}
.panel{position:absolute;left:0;right:0;bottom:0;max-height:92vh;max-height:92dvh;overflow:auto;overscroll-behavior:contain;background:var(--card);
  border-radius:24px 24px 0 0;padding:10px 20px calc(24px + env(safe-area-inset-bottom,0px));box-shadow:var(--shadow);
  animation:rise .32s cubic-bezier(.2,.85,.25,1)}
.panel::before{content:"";display:block;width:38px;height:5px;border-radius:3px;background:var(--ink3);margin:0 auto 12px}
.shut{position:absolute;top:8px;right:8px;width:44px;height:44px;display:grid;place-items:center;color:var(--ink2)}
.shut span{width:30px;height:30px;border-radius:50%;background:var(--fill);display:grid;place-items:center}
.shut span::before{content:"";width:12px;height:12px;background:currentColor;-webkit-mask:var(--x) center/contain no-repeat;mask:var(--x) center/contain no-repeat}
.eb{padding-right:40px}
/* a sheet's heading takes focus when a tap opens it (calendar.js): the
   sheet itself is the sign, no ring */
.eb:focus{outline:none}
.eb b{display:block;font-weight:600}
.eb span{color:var(--ink2)}
.sv{display:flex;align-items:center;gap:8px;font-size:1.375rem;font-weight:600;margin-top:18px;letter-spacing:-.018em;line-height:1.25}
.sv.go{color:var(--go)}
.sv svg.g{width:1em;height:1em}
.sr_{font-weight:600;margin-top:4px}
.sp{font-size:3.5rem;font-weight:600;letter-spacing:-.045em;line-height:1.05;margin-top:2px;font-variant-numeric:tabular-nums}
.sp .cur{font-size:.5em;letter-spacing:-.02em;margin-left:.1em}
.sp .cur.pre{font-size:.6em;margin:0 .04em 0 0}
.su{color:var(--ink2)}
.su .cap{margin-left:8px}
/* the sheet's lines wrap as '/''s do under its button: no word left alone
   on a last line ("…cu bagaje / de cală", "două / bilete"); balance where
   a browser has not got pretty yet */
.panel p{text-wrap:balance;text-wrap:pretty}
.sm{color:var(--ink2);margin-top:12px}
/* the separate-tickets risk, in ink as under '/''s button (family.css .risk) */
.panel .risk{margin-top:10px}
.panel .risk svg.gi{vertical-align:-.16em}
/* the wait at the stop on the way out (spec 2026-11-14; the owner's "B, made
   obvious"), under a searched one-stop fare's return line: a thin rule
   above; the length big and bold, the place beside it in the sheet's
   secondary ink, wrapping under it with large text; a 12 px bar in full ink
   (near-black in light, near-white in dark) on the page's faint fill, a
   fixed ruler of 0 to 12 hours, and its marks under it, each at its hour.
   The marks keep to what the row holds with larger text (cqi), as a
   tile's price does: they are the ruler's, the words say the wait. */
.panel .lay{margin-top:12px;padding-top:10px;border-top:1px solid var(--sep);container-type:inline-size}
.panel .lay .lh{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:8px}
.panel .lay .lh b{font-size:1.375rem;font-weight:700;letter-spacing:-.012em;line-height:1.2;
  font-variant-numeric:tabular-nums;white-space:nowrap}
.panel .lay .lh span{color:var(--ink2)}
.panel .lay .lm{position:relative;height:12px;border-radius:6px;background:var(--fill2);margin:8px 0 4px;overflow:hidden}
.panel .lay .lm>i{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:var(--ink)}
.panel .lay .lt{position:relative;height:1.35em;font-size:min(.75rem,5cqi);line-height:1.35;color:var(--ink2);
  font-variant-numeric:tabular-nums}
.panel .lay .lt span{position:absolute;top:0;white-space:nowrap;transform:translateX(-50%)}
.panel .lay .lt span:nth-child(1){left:0;transform:none}
.panel .lay .lt span:nth-child(2){left:25%}
.panel .lay .lt span:nth-child(3){left:50%}
.panel .lay .lt span:nth-child(4){left:75%}
.panel .lay .lt span:nth-child(5){right:0;transform:none}
/* a searched one-stop fare whose wait is not known: one quiet line, no bar */
.panel .lq{margin-top:8px}
/* the preferred airline's nonstop under another nonstop (calendar.html
   preferred()): a quiet line in the sheet's secondary ink, never green, its
   own Google link a row tall with the same-day rows' chevron, under the
   fare's own facts and before its button */
.panel .pn{display:flex;align-items:center;gap:12px;min-height:44px;margin-top:8px;color:var(--ink2)}
.panel .pn>.ln{flex:1;min-width:0}
.panel .cta{margin:22px 0 0;max-width:none;text-align:center;padding:10px 18px}
.panel .cta.quiet{margin-top:14px;padding:12px 0}
/* the trio's legs, a small timeline (Task 14) */
.legs{list-style:none;margin-top:16px;position:relative}
/* the last column holds a linked leg's chevron on the row's edge, 12 px
   after its price, as in the same-day rows below, so the prices of both
   lists end on one line; a plain leg leaves it empty */
.legs li{display:grid;grid-template-columns:18px minmax(0,1fr) auto 10px;column-gap:10px;padding:6px 0;position:relative}
.legs::before{content:"";position:absolute;left:8px;top:20px;bottom:30px;width:2px;background:var(--fill2)}
.legs li::before{content:"";width:9px;height:9px;border-radius:50%;background:var(--ink3);margin-top:7px;justify-self:center;
  position:relative;box-shadow:0 0 0 3px var(--card)}
.legs b{font-weight:600;display:block}
/* a leg with its own ticket reads as the others do (the mockup's ink2); it
   says it is a link the way the sheet's other rows do, a chevron after its
   price, and the whole row is its target (ruling R17-b) */
.legs :is(span,a){color:var(--ink2)}
.legs a::after{content:"";position:absolute;inset:0}
/* and its focus ring is that target's, the row, as the sheet's other rows' are */
.legs a:focus-visible{outline:none}
.legs a:focus-visible::after{outline:2.5px solid var(--ink);outline-offset:3px;border-radius:10px}
.legs svg.chev{margin-top:5px;justify-self:end}
.legs i{font-style:normal;font-variant-numeric:tabular-nums;color:var(--ink2);white-space:nowrap}
.panel h3{font-size:1.0625rem;font-weight:600;margin:28px 0 2px}
.also{list-style:none}
.also li+li{box-shadow:inset 0 .5px 0 var(--sep)}
.also a,.also .na{display:grid;grid-template-columns:minmax(0,1fr) auto 8px;column-gap:12px;align-items:center;padding:11px 0;min-height:60px}
.also b{grid-column:1;font-weight:600}
.also i{grid-column:2;grid-row:1/span 2;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
/* the row's own line: the spans inside it (a saving held to its sign) take
   their colour from it */
.also :is(a,.na)>span{grid-column:1;color:var(--ink2)}
/* with large text the name takes the row and the price drops to the verdict's
   line, as a row's price does on '/'; with larger text still the price takes
   a line of its own under the name, the words the whole row (F3) */
.also{container:also/inline-size}
@container also (max-width:14em){
  .also b{grid-column:1/3}
  .also i{grid-row:2}
}
@container also (max-width:10em){
  .also :is(b,a>span:first-child){grid-column:1/3}
  .also i{grid-column:1;justify-self:start}
  .also b~span{grid-row:3;grid-column:1/3}
  .also a::after{grid-row:1/span 3}
}
/* a deal's words stay green, as in '/'s rows (the mockup let .also span's grey win) */
.also span .go{color:var(--go);font-weight:600}
.also a::after{content:"";grid-column:3;grid-row:1/span 2;width:8px;height:14px;background:var(--ink3);-webkit-mask:var(--chev) center/contain no-repeat;mask:var(--chev) center/contain no-repeat}
.also .na i{color:var(--ink2);font-weight:400}
/* the trio's two ways home: in its sheet a list of links, as a same-day row
   its verdict and then each way with its own link */
.shapes{margin-top:14px}
.also li.tri{padding:11px 0}
.also li.tri>b{display:block;font-weight:600}
.also li.tri>span{display:block;color:var(--ink2)}
.also li.tri a{min-height:44px;padding:6px 0}
@keyframes rise{from{transform:translateY(100%)}to{transform:none}}
@keyframes fade{from{opacity:0}to{opacity:1}}
/* a lone month a row with larger text, from 600 px up: wider tiles, as
   tall as their day and price need rather than square. Two months always
   have room for theirs (--mo); a lone month with very large text may not, so
   its tile text is the reader's size up to what its tile holds (the cqi caps
   above). A phone has a month a row at any size (below). */
@container years (width < 36rem){
  .yr{grid-template-columns:minmax(0,1fr);padding:16px 12px;row-gap:22px}
  .days{gap:3px}
  .days>*{aspect-ratio:1.35}
}
/* a phone, under 600 px: one month a row at any text size, the owner's
   choice over the mockup's two (2026-10-06), so that every day, a tile now,
   is a finger's tap target. The days are square tiles filling the card, 2 px
   apart: about 46 px at 390 and 44 px at 375, each with its half gaps, and
   their day and price at 16 and 13 px there (the tile's rule above). The
   tile keeps the approved one's look: rounder corners as it grows. A media
   query, so a browser with no container queries (iOS 15, the last of the
   320 px iPhone SE) has the layout as well; there the cqi sizes fall back
   to the reader's own, which a 46 px tile holds at the default size. From
   600 px two months a row, and larger text still gives a month its own row
   there (above). */
@media (max-width:599px){
  .yr{grid-template-columns:minmax(0,1fr);padding:16px 10px;row-gap:22px}
  .days{gap:2px}
  .days>*{aspect-ratio:1;border-radius:12px}
  .days>i{font-size:min(.8125rem,4.2cqi)}
}
/* a 320 px phone: the year's card takes most of the page's side gutters, a
   rounded card still (craft judge: a card run edge to edge looked broken
   beside the others), so a day is a 43 px tile and, with its half gaps, a
   45 px target (38 and 40 before prices were on the tiles), and a
   four-digit price keeps its 13 px with air on both sides */
@media (max-width:359px){
  .yr{margin-inline:-14px;padding-inline:1.5px;border-radius:16px}
  /* "2.877" at 13 px, packed tighter still, keeps 3 px of air in a 43 px
     tile (2.5 px at the wider phones' spacing) */
  .years[data-w] .days>*>.pr{letter-spacing:-.05em}
  .mo h3{margin-left:14px}
  .mf{margin-inline:12px}
  .yh{margin-left:2px}
}
/* below the mockup's 390 px at the default size (and so sooner with larger
   text) a leg's name takes the whole line and its price drops to the date's,
   as a row's price does on '/' at 320: beside a price and a chevron a name
   like "Amsterdam → Singapore" no longer fits one line */
.legs{container:legs/inline-size}
@container legs (max-width:20.5em){
  .legs li>:is(a,span){grid-area:1/2/2/-1}
  .legs li>i{grid-area:1/3;align-self:end}
  .legs li>svg.chev{grid-area:1/4;align-self:end;margin:0 0 5px}
}
/* and with larger text, where the date and the price no longer share a line,
   the price takes its own, under the date */
@container legs (max-width:12.5em){
  .legs li>i{grid-area:2/2;justify-self:start;align-self:auto}
  .legs li>svg.chev{grid-area:1/4/3;align-self:center;margin:0}
}
@media (min-width:700px){
  .panel{left:50%;right:auto;top:50%;bottom:auto;width:480px;border-radius:26px;padding:22px 28px 26px;
    transform:translate(-50%,-50%);animation:pop .24s cubic-bezier(.2,.85,.25,1)}
  .panel::before{display:none}
  @keyframes pop{from{opacity:0;transform:translate(-50%,-47%) scale(.97)}to{opacity:1;transform:translate(-50%,-50%)}}
}
/* desktop: a sidebar (the question, the filters, the legend, the answer)
   beside the year. Until 2026-11-12 the whole year fitted one 1280 x 900
   screen, four months a row of 25 px tiles that held a day number only;
   with a price under each day it is three months a row from about 1260 px
   (two below), 40 px tiles with 14 px days and 12 px prices, and about one
   and a half screens. */
@media (min-width:960px){
  .page{max-width:1320px;display:grid;grid-template-columns:296px minmax(0,1fr);column-gap:28px;align-items:start}
  .bar{grid-column:1/-1;padding-top:14px}
  .side{display:block;position:sticky;top:20px}
  .head h1{font-size:2.25rem}
  .ctl{margin-top:22px}
  /* the three chips keep one row in the 296 px sidebar, the chosen one
     (bolder, so wider) included: at 17 px "Toate · București · Amsterdam"
     needed 315 px and "Amsterdam" wrapped alone (review of 2026-11-12, F9) */
  .rts{display:flex;flex-wrap:wrap;gap:6px;background:none;border-radius:0;overflow:visible}
  .rts a{flex:none;min-height:38px;height:38px;padding:0 11px;border-radius:999px;background:var(--fill2);margin:3px 0;
    font-size:1rem}
  .rts a+a::before,.rts a[aria-current]::after,.rts .lg,.rts .s{display:none}
  .rts .sh{display:inline}
  .rts a[aria-current]{background:var(--btn);color:var(--btn-ink)}
  .best{margin-top:26px;padding-right:30px}
  .best>svg.chev{right:12px}
  .side>.group{margin-top:14px}
  .side>.foot{padding:26px 4px;text-align:left}
  .years{margin-top:-6px}
  .yh{margin:0 0 8px 2px;font-size:1.375rem}
  .yr+.yh{margin-top:18px}
  /* at most three months a row, fewer where three would leave a price
     under 12 px or without air in its tile (--mo) */
  .yr{grid-template-columns:repeat(auto-fill,minmax(min(100%,max(var(--mo),33.33% - 11px)),1fr));
    gap:18px 16px;padding:18px 16px 12px}
  .mo h3{margin-bottom:4px}
  .days{gap:2px}
  .days>*{border-radius:9px;aspect-ratio:1.12}
  .days>a{font-size:min(.875rem,5cqi)}
  .days>*>.pr{font-size:max(12px,min(.8125rem,4.4cqi))}
  .years[data-w] .days>*>.pr{font-size:max(12px,min(.75rem,4.3cqi))}
  .days>a>.mk{top:5px}
  .days>a[data-m="o"]>.mk{top:5.5px}
  /* a month's footer reads at 15 px beside the year's small tiles */
  .mf{margin-top:4px;font-size:.9375rem}
  .mf,.mc{margin-left:0}
}
/* a mouse needs no 44 px rows (a desktop's touch screen keeps them): the
   footer's links are 30 px, and the year a screen shorter */
@media (min-width:960px) and (hover:hover) and (pointer:fine){.mf>a{min-height:30px}}
/* --- one yardstick: the year stepped by price ------------------------------
   docs/superpowers/specs/2026-11-12-calendar-one-yardstick-design.md;
   docs/design/2026-11-one-yardstick/BRIEF.md has the measured contrast table,
   and tests/test_calendar_contrast.py holds this file to it.
   Every priced day takes one of four steps by its price (year._shades: at or
   under the page's 5th-percentile price, then up to the higher of +10 % and
   the 40th percentile, of +25 % and the 75th, beyond), deal days too: the step is price, never a verdict, and a
   confirmed good price is the tile's mark (above). The more a tile stands
   out the cheaper the day, in light and in dark alike: step 1 a soft green
   tile with its price in bold green, step 2 a lit neutral tile, step 3 a
   faint one, step 4 no tile at all, a quiet number and price. Until
   2026-11-12 the greys ran the other way (dearer = darker in light, brighter
   in the dark, the owner's answer of 6 Oct) beside a deal's green on a
   second yardstick, and the owner no longer understood the shades (3 Nov).
   Solid colours only, so a test can read every pair:
     --shade-N        the step's fill (step 4: the card's own)
     --shade-ink-N    its day number, at least 4.5:1 on the fill
     --shade-price-N  its price, at least 4.5:1 on the fill
     --mark           the tick and the dot, at least 3:1 on every fill
     --dash           the "could not check" edge, at least 3:1 on the card
   and each fill stands out from the card less than the step before it, by at
   least 1.15:1 against its neighbour in light and 1.20:1 in the dark (review
   of 2026-11-12, L4: 1.11:1 in light read as three steps, not four). */
body.fam.cal{
  --shade-1:#9edcae;--shade-ink-1:#1d1d1f;--shade-price-1:#0b5f27;
  --shade-2:#dddde2;--shade-ink-2:#1d1d1f;--shade-price-2:#1d1d1f;
  --shade-3:#ededf2;--shade-ink-3:#505055;--shade-price-3:#505055;
  --shade-4:#ffffff;--shade-ink-4:#6a6a6f;--shade-price-4:#6a6a6f;
  --mark:#11692f;--dash:#86868b}
@media (prefers-color-scheme:dark){body.fam.cal{
  --shade-1:#1d512e;--shade-ink-1:#f5f5f7;--shade-price-1:#3ddc68;
  --shade-2:#3a3a3d;--shade-ink-2:#f5f5f7;--shade-price-2:#f5f5f7;
  --shade-3:#2c2c2e;--shade-ink-3:#b0b0b5;--shade-price-3:#b0b0b5;
  --shade-4:#1c1c1e;--shade-ink-4:#8e8e93;--shade-price-4:#8e8e93;
  --mark:#30d158;--dash:#7c7c80}}
.days>a[data-s="1"]{background:var(--shade-1);color:var(--shade-ink-1)}
.days>a[data-s="1"]>.pr{color:var(--shade-price-1);font-weight:700}
.days>a[data-s="3"]{background:var(--shade-3);color:var(--shade-ink-3)}
.days>a[data-s="3"]>.pr{color:var(--shade-price-3);font-weight:400}
.days>a[data-s="4"]{background:var(--shade-4);color:var(--shade-ink-4)}
.days>a[data-s="4"]>.pr{color:var(--shade-price-4);font-weight:400}
/* still judging: a fine dotted edge in the number's own ink on top of its
   step, so it keeps the number's contrast on every fill. It runs on the
   tile's edge, the only room a phone's two-digit day leaves (as the dashed
   "could not check" does), and is drawn by ::before so a keyboard's focus
   ring stays the page's own. */
.days>a.u::before{content:"";position:absolute;inset:0;border-radius:inherit;border:1px dotted currentColor}
/* a calendar-only day's quiet line in the sheet: where its price is from,
   under the button, in the sheet's secondary ink (--ink2, 7.4:1 light) */
.panel .su.cg{margin-top:14px;text-wrap:pretty}

/* --- the legend: after the controls, the last thing before the answer -------
   Three short lines at 390 px: what the number under a day is; the scale as
   sample tiles with the page's own prices, drawn exactly as tiles, between
   its two words; the marks; then only the states the page has. */
.legend{margin:18px 2px 0;color:var(--ink2);font-size:.9375rem;line-height:1.35;container:lg/inline-size}
.legend .lc{text-wrap:pretty}
.legend .lr{display:inline-grid;grid-template-columns:auto auto auto;align-items:center;gap:6px 10px;margin-top:8px}
.legend .ls{display:inline-flex;gap:2px;padding:3px;border-radius:11px;background:var(--card)}
/* the samples are the tiles' own size and weights; with larger text no more
   than four fit the legend's width (5.2cqi of it each) */
.legend .ls b{flex:1 0 auto;display:grid;place-items:center;min-width:3.2em;height:2.2em;padding:0 .3em;border-radius:8px;
  font-size:min(.8125rem,5.2cqi);line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums;
  background:var(--shade-2);color:var(--shade-price-2);font-weight:600}
.legend .ls b[data-s="1"]{background:var(--shade-1);color:var(--shade-price-1);font-weight:700}
.legend .ls b[data-s="3"]{background:var(--shade-3);color:var(--shade-price-3);font-weight:400}
.legend .ls b[data-s="4"]{background:var(--shade-4);color:var(--shade-price-4);font-weight:400}
/* where the words do not fit beside the samples (a 320 px phone, larger
   text) the samples take the legend's width and the words go under its two
   ends, at least 2em apart; where that does not fit either, the dearer end
   takes a line of its own, still at the right. So with large text they
   never sit side by side as one phrase ("mai ieftin mai scump"; review of
   2026-11-12, N1) */
@container lg (max-width:22em){
  .legend .lr{display:flex;flex-wrap:wrap;column-gap:2em;row-gap:2px;width:100%}
  .legend .ls{order:-1;flex:1 0 100%;margin-bottom:4px}
  .legend .lw:last-child{margin-left:auto;text-align:end}
}
.legend .lk{list-style:none;display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:8px}
/* each mark or box on its line's first row, should the words wrap */
.legend .lk li{display:inline-flex;align-items:flex-start;gap:7px;min-width:0}
.legend .lk .mk{margin:.31em .06em 0}
.legend .lk [data-m="o"] .mk{margin:.465em .27em 0}
.legend .bx{flex:none;box-sizing:border-box;display:grid;place-items:center;width:1.1em;height:1.1em;margin-top:.125em;border-radius:.3em;
  font-style:normal;font-size:.9em;line-height:1;color:var(--shade-ink-4)}
.legend .bx.u{border:1px dotted var(--ink2)}
.legend .bx.x{border:1.5px dashed var(--dash);font-size:.7em}
.legend .bx.s{background:linear-gradient(var(--ink2),var(--ink2)) center/100% 1.5px no-repeat}
/* the wait's bar: a small tile of the lit step with its bar along the
   bottom, a little under half full, drawn as the tiles draw theirs */
.legend .bx.w{position:relative;background:var(--shade-2);color:var(--shade-ink-2)}
.legend .bx.w>i{position:absolute;left:2.5px;right:2.5px;bottom:2.5px;height:2.5px;justify-self:stretch;align-self:end;
  border-radius:2px;background:rgba(128,128,128,.25);background:color-mix(in srgb,currentColor 18%,transparent)}
.legend .bx.w>i::before{content:"";position:absolute;left:0;top:0;bottom:0;width:45%;border-radius:2px;background:currentColor}

/* --- a day's sheet with two fares: the cheapest first, under its eyebrow,
   then the confirmed good price as a block of its own, its heading opening
   with the mark its tile wears ------------------------------------------- */
.panel .ey{margin-top:16px;color:var(--ink2);font-weight:600}
.panel .ey+.sv{margin-top:2px}
.panel .alt{margin-top:22px;padding:14px 16px 16px;border-radius:18px;background:var(--fill)}
.panel .alt h3{display:flex;align-items:center;gap:.45em;margin:0;color:var(--ink2);font-weight:600}
.panel .alt .sv{margin-top:6px;font-size:1.1875rem}
.panel .alt .sp{font-size:2.5rem;margin-top:2px}
.panel .alt .sm{margin-top:8px}
.panel .alt .cta{margin-top:16px;min-height:48px;background:var(--card);color:var(--ink)}
.panel .alt .pick{margin-top:4px}

/* today with a fare: its tile is today's date (aria-current) and wears a
   ring in the page's ink, at least 3:1 against every step, light and dark.
   The ring is the tile's own edge, corners and all: a circle inside a
   rounded square left the tile's corners showing outside it (final review
   M9). A day still judged or one we could not check keeps its own dots or
   dashes on the tile's edge and draws them in the ring's ink, one mark for
   both: a second ring inside the first ran through a desktop tile's
   two-digit day. */
.days>a[aria-current=date]::before{content:"";position:absolute;inset:0;border-radius:inherit;
  box-shadow:inset 0 0 0 1.5px var(--ink)}
.days>a.u[aria-current=date]::before{box-sizing:border-box;box-shadow:none;
  border:1.5px dotted var(--ink)}
.days>a.x[aria-current=date]{outline-color:var(--ink)}
.days>a.x[aria-current=date]::before{content:none}
/* the answer card's tile wears its mark as a tile does */
.best .dot>.mk{position:absolute;top:5px;right:5px;width:10px;height:auto;aspect-ratio:14/12}
.best .dot[data-m="o"]>.mk{top:7px;right:7px;width:6px;aspect-ratio:1}
.best .dot2 .mk{font-size:1.15em}

/* --- exact dates: the year as one departure's return calendar -------------
   docs/design/2026-10-exact-dates/, repainted with the year on 2026-11-12
   (docs/design/2026-11-one-yardstick/ret.css is this section, as built).
   calendar.js turns it on (docs/superpowers/specs/2026-10-07-exact-dates-design.md):
   body.ret; the departure [data-rv=d]; each return the page can show,
   [data-rv=p] priced or [data-rv=x] asked and unpriced, its price under its
   day; a priced return's step [data-rs=1..4] by the year's own limits, on the
   year's own steps; the cheapest [data-rc]. While it is on, every tile has
   lost its year step and its mark, and the sky its deal's glow, so the only
   green in it is a return of the cheapest step (price, never a verdict), and
   every other day is inert and quiet. */
/* the day sheet's way in: a quiet button under the booking button */
.pick{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:8px 0 0;padding:10px 0;
  border:0;background:none;font:inherit;font-weight:600;letter-spacing:-.015em;color:var(--ink);cursor:pointer}
.pick[hidden]{display:none}
/* the sky says "this view holds a deal"; a return calendar holds calendar
   prices only, so it takes the neutral sky of a view without one (v-n) */
body.ret{--sky:#e4e5ea;--sky2:#f6f6f8}
@media (prefers-color-scheme:dark){body.ret .sky{background:radial-gradient(ellipse 80% 240px at 50% 40px,rgba(255,255,255,.08) 0%,transparent 100%)}}
/* the header, under the direction and route controls. On a phone it floats
   at the top, clear of the notch, while the year scrolls under it, for as
   long as it leaves the year most of the screen: taller than 40 % of it
   (large text on a small phone), it scrolls away with the page instead
   (calendar.js measures it: --rh, its height and 16 px). --rh-top is either
   its place or far above the screen, so it is stuck whole or not at all.
   On a desktop it is a card of the sticky sidebar, flat as the others. */
body.ret{--rh-top:min(env(safe-area-inset-top,0px) + 8px,(40vh - var(--rh,0px)) * 10000)}
.side>.rh{order:1}
.rh{position:sticky;top:var(--rh-top,0px);z-index:5;margin:14px 0 0;padding:12px 16px;background:var(--card);
  border-radius:var(--r);box-shadow:var(--shadow);container:rh/inline-size}
.rh[hidden]{display:none}
/* the header takes focus as return mode opens; ringed only when a key
   opened it (calendar.js data-kb): a landing on #r- counts as visible focus */
.rh:focus{outline:none}
.rh[data-kb]:focus-visible{outline:2.5px solid var(--ink);outline-offset:2px}
/* its lines wrap as the sheet's do (calendar.css .panel p): no word left
   alone on a last line, and a date's year kept with its date where it fits */
.rh1{margin:0;padding-right:40px;text-wrap:balance;text-wrap:pretty}
.rh1 b{font-weight:600;letter-spacing:-.018em}
.rh2{margin:2px 0 0;color:var(--ink2);font-variant-numeric:tabular-nums;text-wrap:pretty}
/* the cheapest's date, then its nights and price together, wherever the
   three do not share one line: its price never sits alone on the last */
@container rh (width < 30em){.rh2 .ln>span>span:first-child{flex-basis:100%}}
.rx{position:absolute;top:6px;right:6px;width:44px;height:44px;display:grid;place-items:center;
  border:0;padding:0;background:none;color:var(--ink2);cursor:pointer}
.rx span{width:30px;height:30px;border-radius:50%;background:var(--fill);display:grid;place-items:center}
.rx span::before{content:"";width:12px;height:12px;background:currentColor;-webkit-mask:var(--x) center/contain no-repeat;mask:var(--x) center/contain no-repeat}
/* in the dark a floating card is lifted by its tone, as iOS lifts one: on
   the year's card of the same black a shadow does not show */
@media (prefers-color-scheme:dark) and (max-width:959px){.rh{background:var(--fill)}.rx span{background:var(--fill2)}}
@media (min-width:960px){.rh{box-shadow:none}}
/* the page stays the scroller while the trip sheet is open (html's
   overflow:hidden would make body, with its overflow-x, the header's
   scroller, and the header would leave the top behind the scrim) */
body.ret{overflow-x:clip}
body.ret :is(.lede,.legend,.best){display:none}
/* the months' footers speak of departures: hidden, their room kept */
body.ret :is(.mf,.mc){visibility:hidden}
@media (max-width:959px){body.ret .mo{scroll-margin-top:max(24px,var(--rh-top) + var(--rh,0px))}}
/* every day it does not ask about: quiet, and not a target; its price and
   mark are the year's, not a return's, so they are put away, and its number
   sits in the middle of its tile as a faint day's does (the departure's too) */
body.ret .days>:not([data-rv]){opacity:.28}
body.ret .days>a:not([data-rv]){background:none;color:var(--ink3);box-shadow:none}
body.ret .days>a:not([data-rv])::before{content:none}
body.ret .days>:not([data-rv])>.pr,body.ret .days>[data-rv="d"]>.pr{display:none}
body.ret .days .mk{display:none}
/* a return's target is its own tile and half of each gap, as a year tile's
   beside another tile (calendar.css): returns sit side by side, and a faint
   day turned into one has no reach of its own */
body.ret .days>a::after,body.ret .days>i[data-rv]::after{content:"";position:absolute;inset:-1px}
/* a return: a tile wherever it falls, a faint day turned into one too, with
   the price calendar.js writes under its day (spec 2026-11-12: "each return
   prints its price"). Its step is the year's for the same money (the
   year's limits, shipped in #returns), drawn on the year's own steps, so
   "stands out = cheaper" holds here too; a year without steps draws its
   returns flat, on step 2 */
body.ret .days>[data-rv]{opacity:1;background:var(--shade-2);color:var(--shade-ink-2);font-weight:400;cursor:pointer;
  grid-template-rows:auto auto;align-content:center;row-gap:.2em}
body.ret .days>i[data-rv]{font-size:min(1rem,5.1cqi)}
body.ret .days>[data-rv]::before{content:none}
body.ret .days>[data-rv]>.pr{color:var(--shade-price-2)}
body.ret .days>[data-rs="1"]{background:var(--shade-1);color:var(--shade-ink-1)}
body.ret .days>[data-rs="1"]>.pr{color:var(--shade-price-1);font-weight:700}
body.ret .days>[data-rs="3"]{background:var(--shade-3);color:var(--shade-ink-3)}
body.ret .days>[data-rs="3"]>.pr{color:var(--shade-price-3);font-weight:400}
body.ret .days>[data-rs="4"]{background:var(--shade-4);color:var(--shade-ink-4)}
body.ret .days>[data-rs="4"]>.pr{color:var(--shade-price-4);font-weight:400}
/* the cheapest: a ring heavier than today's 1.5 px, so the two never read alike */
body.ret .days>[data-rc]::before{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 2.5px var(--ink)}
/* asked, and no price: "we could not check", dashed and "?" as in the year */
body.ret .days>[data-rv="x"]{background:none;color:var(--shade-ink-4);outline:1.5px dashed var(--dash);outline-offset:-1px;cursor:default}
body.ret .days>[data-rv="x"]>.pr{color:var(--shade-ink-4);font-weight:400}
/* the departure: the page's ink, its number reversed out; never green */
body.ret .days>[data-rv="d"]{opacity:1;background:var(--ink);color:var(--card);font-weight:700;box-shadow:none;cursor:default}
body.ret .days>[data-rv]:focus-visible{outline:2.5px solid var(--ink);outline-offset:2px}
/* the exact trip's sheet: opened by the script, never a :target */
.sheet.trip.on{display:block;position:fixed;inset:0;z-index:50}
html:has(.sheet.trip.on){overflow:hidden}
.sheet.trip .shut{border:0;padding:0;background:none;font:inherit;cursor:pointer}
.sheet.trip [hidden]{display:none}
/* its dates are the sheet's title, in ink as a day sheet's date is (the
   sheet's .eb span rule is for the direction under it) */
.sheet.trip .eb b span{color:inherit}

/* the trip sheet is opened by the script's class, never by the address: a
   hand-typed /calendar#trip would otherwise show an empty dialog */
.sheet.trip:target:not(.on){display:none}
html:has(.sheet.trip:target:not(.on)){overflow:visible}

/* the status line's arc stands still for a reader who asked for less motion
   (after .run .spin, at its specificity; with the sheet's rule below, the
   motion rules close the file) */
@media (prefers-reduced-motion:reduce){.run .spin{animation:none}}

/* last, so it outranks the desktop .panel rule above at equal specificity:
   the sheet opens instantly for a reader who asked for less motion, at
   every width (the 320 px phone and the >=700 px dialog alike). */
@media (prefers-reduced-motion:reduce){.panel,.scrim{animation:none}}
/* the better trip on the same dates (owner, 2026-11-15): a quiet card
   under the fare it is set against, the whole card a link to Google; its
   head in secondary ink says what it costs more and how much less it flies,
   then the airline and price, then the way out's length and its stop. No
   colour judges it. */
.panel .bt{display:block;position:relative;margin-top:14px;padding:12px 40px 12px 14px;border-radius:14px;
  background:var(--fill2);color:inherit;text-decoration:none}
.panel .bt .k{display:block;font-size:.8125rem;font-weight:600;color:var(--ink2);margin-bottom:2px}
.panel .bt .a{display:block;font-size:1.0625rem;font-weight:600}
.panel .bt .f{display:block;font-size:.9375rem;color:var(--ink2);margin-top:2px}
.panel .bt .chev{position:absolute;right:14px;top:50%;transform:translateY(-50%)}
