/* Tokens and roles: docs/brand/palette.md. Code only uses the roles. */
@font-face{font-family:"Barlow";font-weight:500;font-display:swap;src:url(/static/fonts/barlow-500.woff2?v=9c191f65) format("woff2")}
@font-face{font-family:"Barlow";font-weight:700;font-display:swap;src:url(/static/fonts/barlow-700.woff2?v=b12293ad) format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-weight:700;font-display:swap;src:url(/static/fonts/bricolage-700.woff2?v=07dc5f77) format("woff2")}
/* Arabic letters only: a page without them never downloads these files. Latin text and digits stay in Barlow. */
@font-face{font-family:"Noto Sans Arabic";font-weight:500;font-display:swap;src:url(/static/fonts/noto-arabic-500.woff2?v=7ed0f7bc) format("woff2");unicode-range:U+0600-06FF}
@font-face{font-family:"Noto Sans Arabic";font-weight:700;font-display:swap;src:url(/static/fonts/noto-arabic-700.woff2?v=db240aa8) format("woff2");unicode-range:U+0600-06FF}

:root{
  --amber:#FFA400;--amber-text:#8A5500;--ink:#141311;--ink-raised:#1E1C19;--ink-rule:#33302B;--chalk:#F4F2EC;--paper:#FBFBF9;
  --stone-100:#F1F0EC;--stone-200:#DEDCD6;--stone-400:#A8A398;--stone-600:#5F5B53;--alert-on-dark:#FF7A59;--alert-on-light:#C4320A;
  --ui:"Barlow","Noto Sans Arabic",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --display:"Bricolage Grotesque","Noto Sans Arabic","Arial Black",system-ui,sans-serif;

  --bg:var(--paper);--fg:var(--ink);--surface:var(--stone-100);--rule:var(--stone-200);--muted:var(--stone-600);
  --live:var(--ink);--ring:var(--ink);--accent:var(--amber-text);--alert:var(--alert-on-light);--badge-edge:rgba(20,19,17,.16);
  --head:var(--amber);--head-fg:var(--ink);--head-rule:var(--amber);--input-bg:var(--paper);
  --logo-text:var(--ink);--logo-line:var(--ink);--logo-core:var(--paper);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:var(--ink);--fg:var(--chalk);--surface:var(--ink-raised);--rule:var(--ink-rule);--muted:var(--stone-400);
  --live:var(--amber);--ring:var(--amber);--accent:var(--amber);--alert:var(--alert-on-dark);--badge-edge:rgba(244,242,236,.2);
  --head:var(--ink);--head-fg:var(--chalk);--head-rule:var(--ink-rule);--input-bg:var(--ink-raised);
  --logo-text:var(--chalk);--logo-line:var(--amber);--logo-core:transparent;
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --bg:var(--ink);--fg:var(--chalk);--surface:var(--ink-raised);--rule:var(--ink-rule);--muted:var(--stone-400);
  --live:var(--amber);--ring:var(--amber);--accent:var(--amber);--alert:var(--alert-on-dark);--badge-edge:rgba(244,242,236,.2);
  --head:var(--ink);--head-fg:var(--chalk);--head-rule:var(--ink-rule);--input-bg:var(--ink-raised);
  --logo-text:var(--chalk);--logo-line:var(--amber);--logo-core:transparent;
  color-scheme:dark;
}

*,::before,::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--bg);color:var(--fg);font:500 17px/22px var(--ui)}
h1,h2,h3,p,ol,ul{margin:0;padding:0}
ol,ul{list-style:none}
a{color:inherit}
[hidden]{display:none!important}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid currentColor;outline-offset:2px}
button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer}

.wrap{width:100%;max-width:1120px;margin-inline:auto;padding-inline:16px}
.ic{display:block;flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.icon-btn{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;color:inherit}
.logo{display:block;height:19px;aspect-ratio:7270/915}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Header */
.site-head{background:var(--head);color:var(--head-fg);border-bottom:1px solid var(--head-rule)}
.bar{height:48px;display:flex;align-items:center;padding-inline-end:8px}
.brand{display:flex;align-items:center;height:44px;margin-inline-end:auto;color:inherit}

/* Theme button: the sun shows in dark mode, the moon in light mode. */
.theme-sun{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .theme-sun{display:block}:root:not([data-theme="light"]) .theme-moon{display:none}}
:root[data-theme="dark"] .theme-sun{display:block}
:root[data-theme="dark"] .theme-moon{display:none}

/* Page */
main{flex:1 0 auto;width:100%;max-width:1120px;margin-inline:auto;padding:0 16px 32px}

/* Footer */
.site-foot{flex:none;border-top:1px solid var(--rule);--logo-core:var(--amber)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .site-foot{--logo-core:transparent}}
:root[data-theme="dark"] .site-foot{--logo-core:transparent}
.foot-in{display:grid;gap:12px;padding-block:20px 28px}
.foot-logo{height:16px}
.foot-note{max-width:720px;font-size:14px;line-height:18px;color:var(--muted)}
.foot-note a{text-decoration:underline;text-underline-offset:2px}
.foot-mention{display:grid;gap:12px}
.foot-nav{display:flex;flex-wrap:wrap;gap:0 16px}
.foot-nav a,.foot-nav button{display:flex;align-items:center;min-height:44px;font-size:14px;line-height:18px;text-decoration:underline;text-underline-offset:2px}

/* Page head */
.page-head{display:flex;align-items:flex-start;padding:16px 0 4px}
.head-title{flex:1 1 auto;min-width:0}
h1{font:700 28px/32px var(--display);letter-spacing:-.01em;overflow-wrap:anywhere;text-wrap:balance}
.sub{display:block;padding-top:4px;color:var(--muted);font-size:14px;line-height:18px}
a.sub{text-decoration:underline;text-underline-offset:2px}

/* Line badge: docs/brand/style.md */
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:26px;padding:0 6px;border-radius:4px;font:700 16px/1 var(--ui);box-shadow:inset 0 0 0 1px var(--badge-edge);white-space:nowrap}

/* Freshness */
.fresh{display:flex;align-items:center;gap:7px;padding:10px 0 2px;font-size:14px;line-height:18px;color:var(--muted);font-variant-numeric:tabular-nums}
.banner{display:grid;grid-template-columns:18px minmax(0,1fr);gap:8px;margin:10px 0 2px;padding:10px;background:var(--surface);font-size:15px;line-height:20px}
.ic-alert{width:18px;height:18px;margin-top:1px;stroke:var(--alert);stroke-width:2}

/* The lit stop: same drawing as the point of the logo. The only other animation is the wait of Around me. */
.stop{display:block;flex:none;width:12px;height:12px;border-radius:50%;border:3px solid var(--muted);background:transparent}
.stop-on{border-color:var(--ring);background:var(--amber)}
@media (prefers-reduced-motion:no-preference){.stop-on{animation:pulse 2s ease-in-out infinite}}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,164,0,.5)}60%{box-shadow:0 0 0 6px rgba(255,164,0,0)}}
main[data-status="stale"] .stop-on{border-color:var(--muted);background:transparent;animation:none}
main[data-status="stale"] .n-on{color:var(--fg)}

/* Sections */
.columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(440px,100%),1fr));column-gap:48px;align-items:start}
.columns.single{max-width:720px}
.column,.section{min-width:0}
.section-title{padding:20px 0 6px;font:700 13px/16px var(--ui);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.sens h3{padding:12px 0 6px;font:700 14px/18px var(--ui)}
.empty{padding:12px 0;border-top:1px solid var(--rule);color:var(--muted)}

/* Rows */
.row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;column-gap:8px;align-items:center;min-height:52px;padding:4px 0;border-top:1px solid var(--rule)}
.row-badge{display:flex;align-items:center;min-width:48px;min-height:44px;text-decoration:none}
.row-main{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:44px;text-decoration:none}
.dest{overflow-wrap:anywhere}
.struck{text-decoration:line-through}
.meta{font-size:14px;line-height:18px;color:var(--muted);font-variant-numeric:tabular-nums}
.meta:empty{display:none}
.meta b{font-weight:700;color:var(--fg)}
.late{font-weight:700;color:var(--alert)}
.when{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.n{min-width:34px;text-align:end;font:700 30px/32px var(--ui);font-variant-numeric:tabular-nums;white-space:nowrap}
.n-on{color:var(--live)}
.n-off{color:var(--muted)}
.unit{min-width:34px;font-size:14px;line-height:15px;color:var(--muted)}
.pill{display:inline-block;padding:6px 8px;border-radius:4px;font:700 13px/1 var(--ui);white-space:nowrap}
.pill-full{background:var(--amber);color:var(--ink)}
.pill-line{box-shadow:inset 0 0 0 1.5px var(--accent);color:var(--accent)}
.cancel{font:700 15px/18px var(--ui);color:var(--alert)}
.hors{font-size:14px;line-height:15px;color:var(--muted);text-align:end}
.freq{font:700 14px/18px var(--ui);color:var(--muted);white-space:nowrap}
.resa{display:flex;align-items:center;gap:6px;font-size:14px;line-height:15px}
.ic-phone{width:18px;height:18px}
.row-sub{padding:0 0 8px;padding-inline-start:56px;font-size:14px;line-height:18px}
.row-sub a{display:inline-block;padding:13px 0;margin:-13px 0;text-underline-offset:2px}

/* Trains beyond the second of a direction wait for a filter on the line. */
html.js main:not([data-filter]) .board-rows>.row:nth-child(n+3){display:none}

/* Folded buses */
.fold summary{display:block;cursor:pointer;list-style:none;border-top:1px solid var(--rule);padding:10px 0}
.fold summary::-webkit-details-marker{display:none}
.fold-badges{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.fold[open] .fold-badges,.fold[open] .fold-closed,.fold:not([open]) .fold-opened{display:none}
.fold-label{display:flex;align-items:center;gap:4px;min-height:24px;font:700 15px/18px var(--ui)}
.ic-chevron{width:18px;height:18px}
.fold[open] .ic-chevron{transform:rotate(180deg)}

/* Line filter */
.filters{display:flex;flex-wrap:wrap;align-items:center;margin:6px 0 0;margin-inline-start:-6px}
.filter{display:flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:3px 3px 0;border-bottom:3px solid transparent;text-decoration:none}
.filter[aria-current]{border-bottom-color:var(--fg)}
.filter-clear{display:flex;align-items:center;min-height:44px;padding:0 8px;font-size:14px;line-height:18px;text-decoration:underline;text-underline-offset:2px}

/* Line page */
.title-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.narrow{max-width:720px}
.dirs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:12px 0 8px;max-width:720px}
.dir{display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px 8px;border:1.5px solid var(--fg);font:700 14px/18px var(--ui);text-align:center;text-decoration:none}
html.js .dir.on{background:var(--fg);color:var(--bg)}
html.js .branch:not(.on){display:none}
html.js .branch-title{display:none}
.branch-title{padding:20px 0 6px;font:700 14px/18px var(--ui)}
.stop-link{display:grid;grid-template-columns:28px minmax(0,1fr);column-gap:8px;text-decoration:none}
.rail{position:relative;display:block;min-height:48px}
.rail::before{content:"";position:absolute;inset-inline-start:11px;top:0;bottom:0;width:6px;background:var(--line);box-shadow:inset 1px 0 0 var(--badge-edge),inset -1px 0 0 var(--badge-edge)}
.rail::after{content:"";position:absolute;inset-inline-start:7px;top:50%;width:14px;height:14px;margin-top:-7px;border-radius:50%;background:var(--bg);border:3px solid var(--fg)}
.stops li:first-child .rail::before{top:50%}
.stops li:last-child .rail::before{bottom:50%}
.stop-body{display:flex;align-items:center;gap:8px;min-width:0;padding:4px 0;border-top:1px solid var(--rule)}
.stop-text{flex:1 1 auto;min-width:0}
.stop-name{display:block;overflow-wrap:anywhere}
.stop-text .meta{display:block}
.when-s{flex:none}
.when-s .n{min-width:26px;font-size:22px;line-height:24px}
.when-s .hour{font:700 14px/18px var(--ui);font-variant-numeric:tabular-nums;color:var(--muted)}
.when-s .prevu{font-size:14px;line-height:18px;color:var(--muted)}
.terminus{font-size:14px;line-height:18px;color:var(--muted)}
.no-rail .stop-link{grid-template-columns:minmax(0,1fr)}
.no-rail .rail{display:none}
.part+.part::before{content:" · "}

/* Where the directions part, the rail splits as on a line map: this one at the start, the other one pale after it. */
.split .stop-link{grid-template-columns:32px minmax(0,1fr)}
.split .rail::before{inset-inline-start:13px}
.split .rail::after{inset-inline-start:9px}
.split .apart::before{inset-inline-start:5px}
.split .apart::after{inset-inline-start:1px}
.split .pass::after{display:none}
.strand{position:absolute;inset-inline-start:21px;top:0;bottom:0;width:6px;background:var(--line);opacity:.4}
.way{position:absolute;top:5px;width:0;height:0;border-inline:3px solid transparent}
.way-down{inset-inline-start:5px;border-top:5px solid var(--line-fg)}
.way-up{inset-inline-start:21px;border-bottom:5px solid var(--line)}
.other-dot{position:absolute;inset-inline-start:19px;top:50%;width:10px;height:10px;margin-top:-5px;border-radius:50%;background:var(--bg);border:2px solid var(--muted)}
.other-dot.first{top:26%}
.other-dot.third{top:74%}
.other .stop-name{color:var(--muted)}
.other-title .rail{min-height:26px}
.other-title .stop-body{align-items:flex-end;font:700 13px/16px var(--ui);color:var(--muted)}
.other-fold summary{cursor:pointer;list-style:none}
.other-fold summary::-webkit-details-marker{display:none}
.other-fold[open] summary .meta,.other-fold[open] summary .other-dot{display:none}
.other-fold[open] .ic-chevron{transform:rotate(180deg)}
.bend svg{display:block;width:32px;height:20px;overflow:visible}
.bend path{fill:none;stroke:var(--line);stroke-width:6}
.bend .bend-other{opacity:.4}

/* Panels */
.panel{display:grid;gap:8px;max-width:720px;margin:12px 0 2px;padding:12px;background:var(--surface)}
.panel-title{font:700 17px/22px var(--ui)}
.panel-text{font-size:15px;line-height:20px}
.panel-muted{color:var(--muted)}
.panel-muted::first-letter{text-transform:uppercase}
.panel-link{display:inline-block;padding:13px 0;font-size:15px;line-height:18px;text-underline-offset:2px;justify-self:start}
.resa-phone{display:flex;align-items:center;gap:8px;min-height:44px;font:700 30px/32px var(--ui);font-variant-numeric:tabular-nums;text-decoration:none}
.resa-phone .ic{width:22px;height:22px}
.head-btn{margin:-6px 0 0;margin-inline-end:-12px}
.panel-url{font-size:14px;line-height:18px;color:var(--muted);overflow-wrap:anywhere}
.panel-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
.btn{min-height:44px;padding:0 16px;background:var(--fg);color:var(--bg);font:700 15px/18px var(--ui)}
.btn-link{min-height:44px;font-size:15px;line-height:18px;text-decoration:underline;text-underline-offset:2px}

/* Hero of the home and search pages */
.hero-in{padding:2px 0 20px;padding-inline:16px 8px}
.hero-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}
.eyebrow{font:700 13px/16px var(--ui);letter-spacing:.06em;text-transform:uppercase}
.hero-main{padding-inline-end:8px}
.hero-logo{margin:6px 0 0;max-width:720px}
.hero-logo .logo{width:100%;height:auto}
.hero-label{display:block;margin:22px 0 8px;font:700 28px/32px var(--display);letter-spacing:-.01em}
.search-box{position:relative;max-width:720px}
.search-box .ic{position:absolute;inset-inline-start:12px;top:14px;width:24px;height:24px;color:var(--fg)}
.search-box input{display:block;width:100%;height:52px;padding:0;padding-inline:44px 12px;margin:0;border:2px solid var(--fg);border-radius:0;background:var(--input-bg);color:var(--fg);font:500 17px/22px var(--ui);appearance:none}
.search-box input::placeholder{color:var(--muted);opacity:1}
.hero-compact{display:none}
.hero.is-compact .hero-compact{display:flex}
.hero.is-compact .hero-full{display:none}

/* All the lines */
.lines-group{padding:8px 0 4px;border-top:1px solid var(--rule)}
.lines-label{margin-bottom:2px;font-size:14px;line-height:18px;color:var(--muted)}
.lines-badges{display:flex;flex-wrap:wrap;margin-inline-start:-6px}
.line-link{display:flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0 3px;text-decoration:none}
.info{padding:8px 0;font-size:14px;line-height:18px;color:var(--muted)}

/* Breadcrumb, above the content of every page but the homes */
.crumbs{width:100%;max-width:1120px;margin-inline:auto;padding:6px 16px 0}
.crumbs ol{display:flex;flex-wrap:wrap;align-items:center;font-size:13px;line-height:18px;color:var(--muted)}
.crumbs li{display:flex;align-items:center;min-width:0}
.crumbs li+li::before{content:"›";padding:0 6px}
.crumbs a,.crumbs [aria-current]{display:block;padding:4px 0}
.crumbs a{text-underline-offset:2px}
.lines-label a{text-underline-offset:2px}
.lines-all{display:inline-block;padding:8px 0 12px;font-size:15px;line-height:20px;text-underline-offset:2px}

/* Family of lines: one link per line, the buses folded by sector */
.sector-links{display:flex;flex-wrap:wrap;column-gap:16px;border-top:1px solid var(--rule);padding-bottom:12px}
.sector-links a{display:block;padding:10px 0;font-size:15px;line-height:20px;text-underline-offset:2px}
.sector{border-top:1px solid var(--rule)}
.sector>summary{display:flex;align-items:center;gap:12px;min-height:52px;cursor:pointer;list-style:none}
.sector>summary::-webkit-details-marker{display:none}
.sector-name{flex:1 1 auto;font:700 17px/22px var(--ui)}
.sector-count{font-size:14px;line-height:18px;color:var(--muted)}
.sector[open] .ic-chevron{transform:rotate(180deg)}
.family-lines li{border-top:1px solid var(--rule)}
.family-lines a{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;min-height:52px;padding:8px 0;text-decoration:none}
.family-lines .badge{grid-row:span 2;justify-self:start}
.family-lines b{font-weight:500;font-size:17px;line-height:22px}
.family-lines small{grid-column:2;font-size:14px;line-height:18px;color:var(--muted)}

/* Towns of a line: fixed links, outside what the browser refreshes */
.town-links{display:flex;flex-wrap:wrap;column-gap:18px;border-top:1px solid var(--rule)}
.town-links a{display:block;padding:12px 0;font-size:15px;line-height:20px;text-underline-offset:2px}

/* Presets */
.preset-pick{display:flex;align-items:center;gap:8px;width:100%;min-height:52px;margin:6px 0 2px;padding:7px 0;padding-inline:14px 10px;border:1.5px solid var(--fg);font:700 17px/22px var(--ui);text-align:start;text-decoration:none}
/* A name may take two lines, never more: docs/architecture/presets.md. */
.preset-pick-name,.sheet-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.preset-pick-name{flex:1 1 auto;min-width:0}
.preset-new{justify-content:center;gap:6px;padding-inline:14px}
.preset-rows{margin-top:6px}
/* The bottom sheet of the presets, and the menu of each entry */
html:has(.sheet[open]){overflow:hidden}
.sheet{position:fixed;inset:auto 0 0;width:100%;max-width:560px;max-height:85vh;max-height:85dvh;margin:0 auto;padding:0;border:0;border-top:2px solid var(--fg);background:var(--bg);color:var(--fg);overflow:visible}
.sheet[open]{display:flex;flex-direction:column}
.sheet::backdrop{background:rgba(20,19,17,.55)}
.sheet-head{position:relative;flex:none;display:flex;align-items:center;min-height:64px;padding:16px 0 4px;padding-inline:16px 4px;touch-action:none}
.sheet-grip{position:absolute;top:8px;inset-inline-start:50%;width:40px;height:4px;margin-inline-start:-20px;background:var(--rule)}
.sheet-title{flex:1 1 auto;font:700 20px/24px var(--display);letter-spacing:-.01em}
.sheet-list{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.sheet-item{display:flex;align-items:center;border-top:1px solid var(--rule)}
.sheet-choice{flex:1 1 auto;display:grid;grid-template-columns:20px minmax(0,1fr);column-gap:12px;align-items:center;min-width:0;min-height:60px;padding:8px 0;padding-inline-start:16px;text-align:start}
.sheet-check{visibility:hidden}
.sheet-choice[aria-current] .sheet-check{visibility:visible}
.sheet-text{display:flex;flex-direction:column;min-width:0}
.sheet-name{font:700 17px/22px var(--ui)}
.sheet-places{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sheet-more{width:52px;margin-inline-end:4px}
.sheet-foot{flex:none;padding:12px 16px max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--rule)}
.sheet-foot .preset-new{margin:0}
.sheet-menu{position:fixed;min-width:200px;padding:4px 0;background:var(--bg);color:var(--fg);border:1.5px solid var(--fg);box-shadow:0 6px 18px rgba(20,19,17,.18)}
.sheet-actions{display:grid}
.sheet-action{display:flex;align-items:center;gap:12px;min-height:48px;padding:0 16px;font:700 16px/20px var(--ui);text-align:start;text-decoration:none}
.sheet-danger{color:var(--alert)}
.sheet-ask{padding:10px 16px 6px;font-size:15px;line-height:20px;color:var(--muted)}
.row-place:has(+[data-meta]:not(:empty))::after{content:" · "}
.field{display:block;padding-top:12px}
.field-label{display:block;padding-bottom:6px;font:700 14px/18px var(--ui)}
.field-input{display:block;width:100%;height:48px;padding:0 12px;border:2px solid var(--fg);border-radius:0;background:var(--input-bg);color:var(--fg);font:500 17px/22px var(--ui);appearance:none}
.field-input::placeholder{color:var(--muted);opacity:1}
.place-title{padding:16px 0 6px;font:700 17px/22px var(--ui)}
.place-title .meta{display:block;font-weight:500}
.pick{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:8px;align-items:center;padding:6px 0;border-top:1px solid var(--rule)}
.pick .badge{justify-self:start}
.pick .dirs{margin:0}
.dirs-1{grid-template-columns:minmax(0,1fr)}
.editor-foot{position:sticky;bottom:0;margin-top:16px;padding:12px 0;border-top:1px solid var(--rule);background:var(--bg)}
.editor-msg{padding-bottom:8px;font-size:15px;line-height:20px;color:var(--alert)}
/* The schedule of a preset, in its advanced options. Amber only as a fill, with ink on it: docs/brand/palette.md. */
.advanced{margin-top:24px;border-top:1px solid var(--rule)}
.advanced>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;cursor:pointer;list-style:none}
.advanced>summary::-webkit-details-marker{display:none}
.advanced>summary .section-title{padding:0}
.advanced[open] .ic-chevron{transform:rotate(180deg)}
.plan-title{padding:4px 0 2px;font:700 17px/22px var(--ui)}
.plan-note{padding-bottom:10px;font-size:14px;line-height:18px;color:var(--muted)}
.plan-quick{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-bottom:8px}
.plan-btn{display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px 8px;border:1.5px solid var(--fg);font:700 14px/18px var(--ui);text-align:center}
.plan-btn[aria-pressed="true"]{background:var(--amber);color:var(--ink)}
.plan-wide{grid-column:1/-1}
.plan-grid{width:calc(100% + 8px);margin:0 -4px;border-collapse:separate;border-spacing:4px;table-layout:fixed}
.plan-grid th{padding:0;font:700 14px/18px var(--ui);text-align:center;vertical-align:bottom}
.plan-grid thead th span{display:block;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
.plan-grid tbody th{text-align:start;vertical-align:middle}
.plan-grid td{padding:0}
.plan-corner{width:40px}
.plan-cell{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;min-height:44px;border:1.5px solid var(--fg);font:700 14px/18px var(--ui)}
.plan-cell .ic{width:18px;height:18px;stroke-width:2}
.plan-cell.taken,.plan-key.taken{background:var(--fg);color:var(--bg)}
.plan-cell.mine,.plan-key.mine{background:var(--amber);border-color:var(--amber);color:var(--ink)}
.plan-cell.retaken{border-color:var(--fg)}
.plan-legend{display:flex;flex-wrap:wrap;gap:4px 16px;padding:10px 0 4px;font-size:14px;line-height:18px}
.plan-legend li{display:flex;align-items:center;gap:6px}
.plan-key{display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:1.5px solid var(--fg)}
.plan-key .ic{width:14px;height:14px;stroke-width:2.5}
a.btn-link{display:inline-flex;align-items:center}
/* The page that shares a preset. The code stays dark on white in both modes, for the cameras. */
.ic-ok{width:18px;height:18px;margin-top:1px;stroke-width:2}
.send-list{display:grid;gap:8px;padding:12px 0 16px}
.send-list li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;font-size:15px;line-height:20px}
.send-list .ic{margin-top:0}
.send-part{padding:16px 0;border-top:1px solid var(--rule)}
.send-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.send-title{font:700 17px/22px var(--ui)}
.send-text{padding-top:2px;font-size:14px;line-height:18px;color:var(--muted)}
.send-btn{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border:1.5px solid var(--fg);font:700 16px/20px var(--ui)}
.send-link{padding:0 0 16px;font-size:14px;line-height:18px;overflow-wrap:anywhere}
.send-qr{width:208px;max-width:100%;margin:14px auto 8px;border:1px solid var(--rule)}
.send-qr svg{display:block;width:100%;height:auto}
.send-caption{font-size:14px;line-height:18px;color:var(--muted);text-align:center}
.send-foot{padding-top:12px;border-top:1px solid var(--rule);font-size:14px;line-height:18px;color:var(--muted)}
.section-actions{display:flex;gap:16px}

/* Places of a town */
.place-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;min-height:52px;padding:8px 0;border-top:1px solid var(--rule);text-decoration:none}
.place-name{flex:1 1 150px;min-width:0;overflow-wrap:anywhere}
.place-badges{flex:none;display:flex;flex-wrap:wrap;gap:4px}

/* Results of a search or of a position */
.result{display:grid;gap:4px;min-height:52px;padding:10px 0;border-top:1px solid var(--rule);text-decoration:none}
.result-top{display:flex;align-items:baseline;gap:8px;min-width:0}
.result-top .badge{flex:none;align-self:center}
.result-name{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.result-dist{flex:none;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.result-badges{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:2px}
.more{padding-inline-start:2px;font-size:14px;line-height:18px;color:var(--muted)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.section-action{padding:14px 0;margin:-14px 0 -8px;font-size:14px;line-height:16px;text-decoration:underline;text-underline-offset:2px}
.prose-link{padding-top:8px;text-underline-offset:2px}

/* Around me */
.around-row{margin-top:8px}
.around-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0;padding-inline:12px 14px;border:1.5px solid currentColor;font:700 15px/18px var(--ui)}
.around-row:not(:has(button:not([hidden]))){display:none}
.around-row:has(.net-pick){position:relative;display:flex;flex-wrap:wrap;gap:8px}
/* Around me waits: dots take the place of the label, at the same width. */
.around-label{display:grid}
.around-label>*{grid-area:1/1}
.around-wait{display:none;align-items:center;justify-content:center;gap:6px}
.around-wait i{width:6px;height:6px;border-radius:50%;background:currentColor}
.around-btn[aria-busy="true"] .around-text{visibility:hidden}
.around-btn[aria-busy="true"] .around-wait{display:flex}
@media (prefers-reduced-motion:no-preference){.around-wait i{animation:wait 1.2s ease-in-out infinite}.around-wait i:nth-child(2){animation-delay:.2s}.around-wait i:nth-child(3){animation-delay:.4s}}
@keyframes wait{0%,60%,100%{opacity:.25}30%{opacity:1}}

/* Network selector, beside Around me */
/* The menu hangs from the whole row, so that it stays on screen even when the button wraps. */
.net-pick{position:static}
.net-pick[hidden]{display:none}
.net-btn{gap:6px;padding-inline:14px 10px}
.net-menu{position:absolute;z-index:5;top:calc(100% + 6px);inset-inline-start:0;display:grid;gap:4px;width:min(320px,100%);padding:12px;background:var(--bg);color:var(--fg);border:1.5px solid var(--fg);box-shadow:0 6px 18px rgba(20,19,17,.18)}
.net-menu[hidden]{display:none}
.net-menu-title{font:700 13px/16px var(--ui);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.net-choice{display:flex;align-items:center;min-height:44px;padding:0 10px;border:1.5px solid transparent;font:700 16px/20px var(--ui);text-align:start}
.net-choice[aria-pressed="true"]{border-color:var(--fg)}

/* Results and rows of several networks */
.group-title{padding:16px 0 6px;font:700 15px/18px var(--ui)}
.group-fold{margin-top:12px}
.group-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;padding:8px 0;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);cursor:pointer;list-style:none}
.group-head::-webkit-details-marker{display:none}
.group-text{display:flex;flex-direction:column;min-width:0}
.group-name{font:700 15px/18px var(--ui)}
.group-best{font-size:14px;line-height:18px;color:var(--muted);overflow-wrap:anywhere}
.group-chevron{flex:none;width:20px;height:20px}
.group-fold[open] .group-chevron{transform:rotate(180deg)}
.group-fold[open] .group-best{display:none}
.group-fresh{padding-top:0}
/* A page of no network keeps the part and the mentions of the chosen one; the selector then names it. */
html.js [data-part]:not(.on),html.js [data-mention]:not(.on),html.js [data-part] .network-title{display:none}
.net-row{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;max-width:720px;padding:24px 0 0}
.prose>h2+.net-row{padding:0 0 12px}
.net-row:has(.net-pick[hidden]){display:none}
.net-row-label{font:700 15px/18px var(--ui)}

/* Editorial pages */
.prose>h2,.prose>[data-part]>h2{max-width:720px;padding:24px 0 8px;font:700 20px/24px var(--display);letter-spacing:-.01em}
.prose>p,.prose>ul,.prose>[data-part]>p,.prose>[data-part]>ul{max-width:720px;padding:0 0 8px;line-height:24px;text-wrap:pretty}
.prose>[data-part]>.network-title{max-width:720px;padding:32px 0 0;font:700 26px/30px var(--display)}
.prose>[data-part]>h3.network-title{padding:16px 0 8px;font:700 17px/22px var(--ui)}
.prose li{position:relative;padding:0 0 8px;padding-inline-start:26px}
.prose li::before{content:"";position:absolute;inset-inline-start:0;top:6px;width:12px;height:12px;border-radius:50%;border:3px solid var(--fg)}
.prose code{font:inherit;overflow-wrap:anywhere}
.prose-action{min-height:44px;text-align:start;text-decoration:underline;text-underline-offset:2px}
.prose .todo{margin:0 0 8px;padding:10px;background:var(--surface);font-size:15px;line-height:20px;color:var(--muted)}
.legend{max-width:720px;margin-top:4px}
.row-badge-static{margin-inline-end:16px}
.legend .row{grid-template-columns:auto minmax(0,1fr) auto}
.legend .n{color:var(--fg)}
.legend .n-on{color:var(--live)}
.legend .n-off{color:var(--muted)}
.install-note{max-width:720px;padding:10px;background:var(--surface);font-size:15px;line-height:20px}

/* Languages: the globe and the code of the page's language, after the mode button, then its menu. */
.lang-pick{position:relative;flex:none}
.lang-btn{width:auto;gap:4px;padding:0 6px;font:700 13px/16px var(--ui);letter-spacing:.06em;text-transform:uppercase;text-decoration:none}
.lang-menu{inset-inline-start:auto;inset-inline-end:0;width:min(240px,calc(100vw - 32px))}
a.net-choice{text-decoration:none}
.net-choice[aria-current="true"]{border-color:var(--fg)}
.hero-top>.eyebrow,.hero-top>.brand{margin-inline-end:auto}
.foot-langs a[aria-current]{font-weight:700;text-decoration:none}
.prose>.french-only{margin:16px 0 8px;padding:10px;background:var(--surface);font-size:15px;line-height:20px}
.lang-offer{background:var(--surface);color:var(--fg)}
.lang-offer-in{display:flex;align-items:center;gap:8px}
.lang-offer a{flex:1 1 auto;padding:12px 0;font:700 15px/20px var(--ui);text-decoration:underline;text-underline-offset:2px}

/* Right to left, as in Arabic: the rules above say start and end, never left and right, and mirror by themselves. These
   follow the direction where a drawing or a script needs it: docs/architecture/languages.md. */
html[dir="rtl"] .bend svg{transform:scaleX(-1)}
html[dir="rtl"] :is(h1,.section-title,.eyebrow,.hero-label,.sheet-title,.net-menu-title,.prose h2){letter-spacing:normal;text-transform:none}
/* An element that shows one value alone, a name of a network or a search, keeps its own order at the start of the
   line. Texts isolate their values themselves: i18n.Isolate. The French of the legal pages keeps its direction. */
html[dir="rtl"] :is(h1,.sub,.dest,.stop-name,.place-name,.result-name,.sector-name,.family-lines b,.family-lines small,.town-links a,.crumbs [itemprop="name"],.net-choice,.panel-title,.branch-title,.network-title,.lines-label,.terminus,.sheet-name,.sheet-places,.search-box input,.field-input):not([dir="ltr"] *){unicode-bidi:plaintext;text-align:right}
