/* Hourshare (teleworkgenius.com) v1.0 — "Dawn to dusk" design system. Own CSS; no sister-kit styles.
   Type: Hahmlet (headlines) + Alexandria (UI, text, numbers). Both SIL OFL 1.1 (fonts/LICENSE-*.txt). */
@font-face { font-family: "Hahmlet"; src: url("fonts/hahmlet-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("fonts/alexandria-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #141B2D; --night-2: #1E2740; --night-3: #2B3556;
  --sun: #F2A541; --sun-2: #F7C27A; --sun-ink: #8A5208;
  --dusk: #6B5CA5; --dusk-2: #8E80CC; --dusk-pale: #ECE8F7;
  --paper: #FBF8F3; --paper-2: #F3EEE5; --line: #E2DACB;
  --ink: #18202F; --ink-2: #4A5468; --ink-3: #6B7487;
  --ok: #2F7D5B; --warn: #B4471F;
  --r: 14px; --r-sm: 9px;
  --serif: "Hahmlet", Georgia, "Times New Roman", serif;
  --sans: "Alexandria", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(20, 27, 45, .06), 0 8px 28px rgba(20, 27, 45, .08);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 1rem/1.62 var(--sans); font-feature-settings: "tnum" 1; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--dusk); text-underline-offset: .18em; }
a:hover { color: var(--night); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); color: var(--night); padding: .5rem 1rem; border-radius: 99px; z-index: 50; }
.skip:focus { left: 12px; }
.frame { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
code { font: 500 .86em/1.4 var(--sans); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; padding: .12em .45em; overflow-wrap: anywhere; }

/* type */
.display { font-family: var(--serif); font-weight: 650; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.02em; margin: .2em 0 .45em; text-wrap: balance; }
.display--xl { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.028em; }
.display--md { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.4rem); }
.h2 { font: 650 1.45rem/1.25 var(--serif); margin: 2.2rem 0 .6rem; letter-spacing: -.01em; }
.h3 { font: 600 1.12rem/1.3 var(--sans); margin: 0 0 .4rem; letter-spacing: -.005em; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.6; color: var(--ink-2); max-width: 62ch; margin: 0 0 1.2rem; }
.lead--light { color: #C9CFDC; }
.eyebrow { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--dusk); margin: 0 0 .5rem; }
.eyebrow--sun { color: var(--sun); }
.eyebrow--stop { color: var(--warn); }
.muted { color: var(--ink-3); }
.small { font-size: .87rem; }
p { margin: 0 0 1rem; }
.textlink { font-weight: 600; text-decoration: none; color: var(--dusk); }
.textlink:hover { text-decoration: underline; }
.textlink--light { color: var(--sun-2); }
.textlink--light:hover { color: #fff; }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.35rem; border-radius: 999px; font: 600 .98rem/1.1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.pill:hover { transform: translateY(-1px); }
.pill--sun { background: var(--sun); color: var(--night); box-shadow: 0 6px 18px rgba(242, 165, 65, .35); }
.pill--sun:hover { background: var(--sun-2); color: var(--night); }
.pill--ink { background: var(--night); color: #fff; }
.pill--ink:hover { background: var(--night-3); color: #fff; }
.pill--line { background: transparent; color: var(--night); border-color: var(--night); }
.pill--line:hover { background: var(--night); color: #fff; }
.pill--onDark { color: #fff; border-color: rgba(255, 255, 255, .6); }
.pill--onDark:hover { background: #fff; color: var(--night); }
.pill--small { min-height: 38px; padding: .4rem 1rem; font-size: .88rem; }
.pill--block { width: 100%; }
.pill--danger { background: #fff; color: var(--warn); border-color: var(--warn); }
.pill--danger:hover { background: var(--warn); color: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--dusk); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin: 1.2rem 0 0; }

/* header */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(20, 27, 45, .96); backdrop-filter: saturate(140%) blur(8px); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.hd__in { display: flex; align-items: center; gap: 1.6rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; }
.logo:hover { color: #fff; }
.brand__mark { width: 32px; height: 32px; color: #fff; flex: none; }
.logo__word { font: 700 1.28rem/1 var(--serif); letter-spacing: -.015em; }
.hd__nav { display: flex; gap: .3rem; margin-left: auto; }
.hd__nav a { color: #D7DCE7; text-decoration: none; font-weight: 500; font-size: .95rem; padding: .45rem .8rem; border-radius: 999px; }
.hd__nav a:hover, .hd__nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .09); }
.hd__cta { min-height: 40px; padding: .45rem 1.1rem; font-size: .92rem; }
.drawer { display: none; position: relative; margin-left: auto; }
.drawer summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; padding: .5rem .8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; font-size: .92rem; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer__bars, .drawer__bars::before, .drawer__bars::after { display: block; width: 16px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.drawer__bars::before, .drawer__bars::after { content: ""; position: absolute; left: 0; }
.drawer__bars::before { top: -5px; }
.drawer__bars::after { top: 5px; }
.drawer__panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); padding: .6rem; display: grid; }
.drawer__panel a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .75rem .8rem; border-radius: var(--r-sm); }
.drawer__panel a:hover, .drawer__panel a[aria-current="page"] { background: var(--paper-2); }
.drawer__price { margin: .4rem .8rem .5rem; font-size: .84rem; color: var(--ink-3); }

/* footer */
.ft { background: var(--night); color: #C3C9D6; padding: 64px 0 28px; margin-top: 0; }
.ft a { color: #E8EBF2; }
.ft a:hover { color: var(--sun-2); }
.ft__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; }
.ft__brand p { max-width: 40ch; margin-top: 1rem; font-size: .93rem; }
.ft__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ft h2 { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin: .4rem 0 .9rem; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }
.ft__price { color: #9AA3B6; font-size: .86rem; }
.ft__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 20px; font-size: .86rem; }
.ft__base p { margin: 0; }
.sticky-cta { display: none; }

/* the 24-hour strip */
.strip { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 2px; height: 26px; }
.c { display: block; border-radius: 3px; background: var(--paper-2); position: relative; }
.c--w { background: var(--sun); }
.c--o { background: #DCE2EE; }
.c--n { background: var(--night-3); }
.c--x { background: repeating-linear-gradient(135deg, #DCE2EE 0 3px, #C2CADA 3px 5px); }
.c--p { background: var(--sun-2); opacity: .55; }
.c--meet { box-shadow: inset 0 0 0 2px var(--dusk); outline: 2px solid var(--dusk); outline-offset: 1px; z-index: 1; }
.c--q::before { content: ""; position: absolute; left: -2px; top: -5px; bottom: -5px; width: 1px; background: rgba(107, 92, 165, .35); }
.c--q:first-child::before { display: none; }

/* kind badges */
.kind { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: .32rem .5rem; border-radius: 99px; white-space: nowrap; }
.kind--in { background: #E3F2EA; color: var(--ok); }
.kind--early { background: #FDF0DC; color: var(--sun-ink); }
.kind--late { background: var(--dusk-pale); color: #4D3F8A; }
.kind--night { background: var(--night); color: #fff; }
.kind--off { background: #FBE4DB; color: var(--warn); }

/* hero */
.hero { background: radial-gradient(1200px 520px at 85% -10%, rgba(107, 92, 165, .55), transparent 60%), radial-gradient(900px 480px at -10% 110%, rgba(242, 165, 65, .22), transparent 60%), var(--night); color: #fff; padding: 72px 0 88px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .display { color: #fff; }
.hero__price { margin-top: 1.4rem; font-size: .9rem; color: #AEB6C8; }
.hero__viz { margin: 0; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 22px 22px 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.hero__vizhead { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-2); margin-bottom: 1.1rem; }
.hero__row { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: .85rem 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.hero__row .strip { grid-column: 1 / -1; height: 22px; }
.hero__row .c--o { background: #3B4668; }
.hero__row .c--n { background: #0B1020; }
.hero__row .c--x { background: repeating-linear-gradient(135deg, #3B4668 0 3px, #2A3352 3px 5px); }
.hero__row .c--meet { box-shadow: inset 0 0 0 2px #fff; outline-color: #fff; }
.hero__who { margin: 0; display: flex; flex-direction: column; }
.hero__who strong { font: 600 1.05rem/1.2 var(--sans); }
.hero__who span { color: #AEB6C8; font-size: .85rem; }
.hero__time { margin: 0; text-align: right; font: 600 1.5rem/1.2 var(--sans); }
.hero__time .kind { vertical-align: middle; margin-left: .3rem; }
.hero__cap { font-size: .8rem; color: #98A1B5; margin-top: .9rem; line-height: 1.5; }

/* bands */
.band { padding: 88px 0; }
.band--paper { background: var(--paper); }
.band--dusk { background: linear-gradient(160deg, #2A2350 0%, #3D3270 55%, #5A4A93 100%); color: #fff; }
.band--dusk .display { color: #fff; }
.band--night { background: var(--night); color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--rev > :first-child { order: 2; }
.compare { background: #fff; border-radius: 20px; padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.compare__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; font-size: .84rem; color: var(--ink-3); }
.compare__keys { display: inline-flex; align-items: center; gap: .4rem; }
.compare__keys .bar { display: inline-block; height: 9px; }

.ledger { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .9rem; }
.ledger li { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr auto; gap: .4rem 1rem; align-items: center; }
.ledger__n { font-weight: 600; }
.ledger__n .muted { font-weight: 400; font-size: .85rem; display: block; }
.ledger__bars { display: grid; gap: 4px; }
.ledger__v { font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.ledger--big li { padding: .5rem 0; border-bottom: 1px solid var(--paper-2); }
.bar { display: block; height: 12px; border-radius: 99px; min-width: 3px; }
.bar--rota { background: linear-gradient(90deg, var(--dusk), var(--dusk-2)); }
.bar--fixed { background: #E4DCCB; height: 8px; }
.w-0 { width: 3px; } .w-1 { width: 5%; } .w-2 { width: 10%; } .w-3 { width: 15%; } .w-4 { width: 20%; } .w-5 { width: 25%; } .w-6 { width: 30%; }
.w-7 { width: 35%; } .w-8 { width: 40%; } .w-9 { width: 45%; } .w-10 { width: 50%; } .w-11 { width: 55%; } .w-12 { width: 60%; } .w-13 { width: 65%; }
.w-14 { width: 70%; } .w-15 { width: 75%; } .w-16 { width: 80%; } .w-17 { width: 85%; } .w-18 { width: 90%; } .w-19 { width: 95%; } .w-20 { width: 100%; }
.compare__keys .bar.w-4 { width: 22px; }

.clockcard { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px; padding: 26px; }
.clockcard__head { font: 600 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun-2); }
.clocks { margin: 0 0 1rem; padding: 0; list-style: none; display: grid; gap: .6rem; }
.clocks li { padding-left: 1.4rem; position: relative; }
.clocks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .65rem; height: .65rem; border-radius: 50%; background: linear-gradient(90deg, var(--sun) 50%, var(--dusk) 50%); }
.clocks--light li { color: #E7E3F6; }
.clocks--light strong { color: #fff; }

.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { border-top: 3px solid var(--night); padding-top: 1.2rem; }
.steps__n { display: inline-grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--sun); color: var(--night); font: 700 1rem/1 var(--sans); margin-bottom: .9rem; }
.steps p { color: var(--ink-2); }

.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; margin-top: 1.6rem; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; }
.plan .pill { margin-top: auto; align-self: flex-start; }
.plan--pass { background: var(--night); color: #E6E9F0; border-color: var(--night); position: relative; overflow: hidden; }
.plan--pass::after { content: ""; position: absolute; right: -80px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 165, 65, .45), transparent 70%); }
.plan--pass .h3 { color: #fff; }
.plan--pass .muted { color: #A9B1C3; }
.plan__price { font-size: 1rem; margin: .6rem 0 1.2rem; }
.plan__price span:first-child { font: 650 2.6rem/1 var(--serif); letter-spacing: -.02em; margin-right: .2rem; }
.plan__or { display: block; font-size: .95rem; margin-top: .35rem; opacity: .85; }
.ticks { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .5rem; border-left: 2px solid var(--sun); border-bottom: 2px solid var(--sun); transform: rotate(-45deg); }
.plan:not(.plan--pass) .ticks li::before { border-color: var(--dusk); }
.preview { background: rgba(242, 165, 65, .14); border: 1px solid rgba(242, 165, 65, .45); border-radius: 12px; padding: .9rem 1rem; font-size: .92rem; color: #F5E3C6; margin: 0; position: relative; z-index: 1; }
.preview strong { color: var(--sun-2); }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font: 600 1.06rem/1.4 var(--sans); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--dusk); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); max-width: 70ch; }
.cta { padding: 72px 0; }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta .display { color: #fff; margin: 0; max-width: 24ch; }

/* inner pages */
.pagehead { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; padding: 56px 0 52px; }
.pagehead .display { color: #fff; max-width: 22ch; }
.pagehead .lead { color: #C9CFDC; }
.pagehead .eyebrow { color: var(--sun); }
.pagehead .muted { color: #A9B1C3; }
.planwrap { padding-top: 36px; padding-bottom: 72px; }
.notes { background: #FFF6E8; border: 1px solid #F1D3A2; border-radius: var(--r); padding: .9rem 1.2rem .9rem 2.2rem; margin: 0 0 1.6rem; color: #6B4300; }
.result { margin-bottom: 2.4rem; }
.verdict { padding: 8px 0 18px; }
.verdict .lead { max-width: 70ch; }
.flag { display: inline-flex; gap: .5rem; align-items: baseline; background: var(--dusk-pale); color: #3B2F72; border-radius: 12px; padding: .65rem .9rem; font-size: .93rem; }
.flag a { color: #3B2F72; font-weight: 600; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; margin: 0 0 22px; box-shadow: 0 1px 2px rgba(20, 27, 45, .04); }
.panel--quiet { background: var(--paper); box-shadow: none; }
.panel__head { margin-bottom: 1.1rem; }
.panel__head .muted { margin: 0; font-size: .92rem; }

.daymap__ruler { display: flex; justify-content: space-between; font-size: .75rem; color: var(--ink-3); margin-left: 13rem; padding-bottom: .3rem; }
.daymap__row { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; align-items: center; padding: .45rem 0; }
.daymap__row--all { border-top: 1px dashed var(--line); margin-top: .4rem; padding-top: .8rem; }
.daymap__who { margin: 0; line-height: 1.25; }
.daymap__who span { display: block; font-size: .8rem; color: var(--ink-3); }
.legend { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .82rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: .4rem; }
.legend .c { width: 14px; height: 14px; display: inline-block; }

.weeks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.week { display: grid; grid-template-columns: 12rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--paper-2); }
.week:first-child { border-top: 0; }
.week__when { display: flex; flex-direction: column; line-height: 1.3; }
.week__n { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.week__when strong { font-size: 1.02rem; }
.week__t { font: 600 1.25rem/1.3 var(--sans); color: var(--dusk); }
.week__people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-content: center; }
.who { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 12px; padding: .4rem .6rem; background: #fff; font-size: .92rem; }
.who__n { font-weight: 600; }
.who__t { color: var(--ink-2); }
.who__p { font-size: .78rem; font-weight: 700; color: var(--warn); }
.who--night { border-color: #9AA2B8; background: #F1F2F7; }

.savebox { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; background: linear-gradient(120deg, #FFF4E2, #F5EFFF); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; margin: 0 0 1rem; }
.savebox p { margin: 0 0 .4rem; }
.price-note { font-size: .92rem; color: var(--ink-2); background: var(--paper); border-left: 3px solid var(--sun); padding: .65rem .9rem; border-radius: 0 10px 10px 0; margin: 1rem 0; }
.savebox .price-note { background: rgba(255, 255, 255, .6); }

/* the planner form */
.planner { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.planner fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.planner legend { padding: 0; margin-bottom: .8rem; }
.planner__people { margin-top: 1.8rem !important; padding-top: 1.6rem !important; border-top: 1px solid var(--line) !important; }
.fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field--wide { grid-column: span 2; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); }
input:not([type="checkbox"]), select { width: 100%; min-height: 46px; font: 400 1rem/1.2 var(--sans); color: var(--ink); background: #fff; border: 1.5px solid #CFC6B5; border-radius: 11px; padding: .55rem .75rem; }
input:not([type="checkbox"]):focus, select:focus { border-color: var(--dusk); outline: 3px solid rgba(107, 92, 165, .2); outline-offset: 0; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.person { display: grid; grid-template-columns: 2.2rem minmax(0, 1.3fr) minmax(0, 1.7fr) minmax(0, .8fr) minmax(0, .8fr); gap: 10px 12px; align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.person__n { align-self: center; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--night); color: #fff; font-weight: 700; font-size: .85rem; }
.days { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.days legend { float: left; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin: 0 .5rem 0 0 !important; }
.days label { position: relative; }
.days input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.days span { display: inline-grid; place-items: center; min-width: 44px; min-height: 36px; padding: 0 .5rem; border-radius: 99px; border: 1.5px solid #CFC6B5; font-size: .82rem; font-weight: 600; color: var(--ink-3); cursor: pointer; background: #fff; }
.days input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.days input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.keep { background: #EAF6EF; border: 1px solid #BFE0CD; border-radius: 18px; padding: 20px 24px; margin-bottom: 1.4rem; }
.keep__url { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0; }
.cals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.cals li { display: grid; grid-template-columns: minmax(10rem, 14rem) auto 1fr; gap: .6rem 1rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--paper-2); }
.cals li:first-child { border-top: 0; }
.cals__n .muted { display: block; font-size: .85rem; }
.cals__feed code { font-size: .78rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inline-form .field { width: 14rem; }

.note { padding: 72px 28px 96px; max-width: 760px; }
.prose { max-width: 820px; padding-top: 24px; padding-bottom: 80px; }
.prose p, .prose li { color: var(--ink-2); }
.rules { width: 100%; border-collapse: collapse; margin: .6rem 0 1.2rem; font-size: .95rem; }
.rules th, .rules td { text-align: left; padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rules td:last-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .rules td:last-child { white-space: normal; min-width: 6.5rem; } }
.ordered { padding-left: 1.3rem; display: grid; gap: .45rem; }
.plainlist { padding-left: 1.2rem; display: grid; gap: .45rem; }

/* tablet */
@media (max-width: 1020px) {
  .hd__nav { display: none; }
  .hd__cta { margin-left: auto; }
  .drawer { display: block; margin-left: 0; }
  .hero__in, .split { grid-template-columns: 1fr; gap: 40px; }
  .split--rev > :first-child { order: 0; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .person { grid-template-columns: 2.2rem minmax(0, 1fr) minmax(0, 1fr); }
  .person .field--time { grid-column: auto; }
  .ft__top { grid-template-columns: 1fr; gap: 32px; }
}
/* phone */
@media (max-width: 680px) {
  .frame { padding: 0 16px; }
  .hd__in { min-height: 60px; gap: .8rem; }
  .hd__cta { display: none; }
  .drawer { margin-left: auto; }
  .hero { padding: 44px 0 56px; }
  .hero__viz { padding: 16px 14px 12px; border-radius: 18px; }
  .hero__time { font-size: 1.2rem; }
  .band { padding: 60px 0; }
  .steps, .plans { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: 1fr auto; }
  .ledger__bars { grid-column: 1 / -1; grid-row: 2; }
  .daymap__ruler { margin-left: 0; }
  .daymap__row { grid-template-columns: 1fr; gap: .35rem; }
  .strip { gap: 1px; height: 22px; }
  .c { border-radius: 2px; }
  .week { grid-template-columns: 1fr; gap: .5rem; }
  .week__when { flex-direction: row; flex-wrap: wrap; gap: .2rem .7rem; align-items: baseline; }
  .panel, .planner, .savebox { padding: 18px 16px; border-radius: 16px; }
  .savebox { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .person { grid-template-columns: 1fr 1fr; padding: 12px; }
  .person__n { grid-column: 1 / -1; }
  .person .field:nth-of-type(1), .person .field:nth-of-type(2) { grid-column: 1 / -1; }
  .days { grid-column: 1 / -1; }
  .days legend { float: none; width: 100%; margin-bottom: .3rem !important; }
  .days { gap: 5px; }
  .days span { min-width: 38px; padding: 0 .3rem; }
  .cals li { grid-template-columns: 1fr; }
  .ft__cols { grid-template-columns: 1fr 1fr; }
  .cta__in { flex-direction: column; align-items: flex-start; }
  .is-home .ft { padding-bottom: 96px; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; }
  .note { padding: 48px 16px 72px; }
}
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } .pill:hover { transform: none; } }

/* print: the rota on paper */
@media print {
  .hd, .ft, .sticky-cta, .print-hide, .planner, .savebox, #change, .skip, .drawer { display: none !important; }
  body { font-size: 11pt; }
  .pagehead { background: none; color: #000; padding: 0 0 12pt; }
  .pagehead .display, .pagehead .lead, .pagehead .eyebrow { color: #000; }
  .panel { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .c { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .kind { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- v1.1.0: AdEngine banner (adengine.us) ----------
   One labelled slot between the main content and the night footer, on public pages only (the controllers opt in), set on
   a paper band so it reads as its own strip, apart from the page and from the footer. The label and the reserved height are
   on the <ins>, and all the band's height is the <ins>'s own margin (flow-root keeps it inside the band), so when tag.js (or
   ae-size.js) hides a slot it cannot fill, the label, the space and the band go with it. 110px = 16px label + 4px gap +
   90px banner; 270px on phones (300x250). display stays in this file and is never !important: tag.js hides a slot with
   style.display='none'. */
.ae-slot { display: flow-root; background: var(--paper); padding: 0 28px; }
.ae-slot ins.adengine { display: block; max-width: 728px; min-height: 110px; margin: 40px auto 44px; text-align: center; text-decoration: none; }
.ae-slot ins.adengine::before { content: "Advertisement"; display: block; margin-bottom: 4px; font: 600 11px/16px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.ae-slot ins.adengine a { display: inline-block; vertical-align: top; }
@media (max-width: 767px) { .ae-slot ins.adengine { max-width: 300px; min-height: 270px; margin: 32px auto 36px; } }
@media (max-width: 680px) { .ae-slot { padding: 0 16px; } }
/* a slot that stays empty (no ad, or tag.js blocked) drops its labelled landmark too, not only the <ins> */
.ae-slot:has(> ins.adengine[style*="none"]) { display: none; }
@media print { .ae-slot { display: none; } }
