:root {
  --page: #EEF2F6;
  --sheet: #FFFFFF;
  --ink: #17325C;
  --grid: #B7C6D6;
  --weekend: #DCE5EE;
  --holiday: #C8102E;
  --sticker: #FFC72C;
  --run: #FFF1C2;
  --muted: #5B6B80;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 1rem/1.5 Archivo, system-ui, sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--holiday); outline-offset: 2px; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.lead { padding-top: 1rem; }

/* Phone first. Wider screens are enhancements further down. */
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1rem; display: flex; flex-direction: column; }
.mast { background: var(--ink); color: var(--sheet); }
.mast-in, .foot-in { max-width: 76rem; margin: 0 auto; padding: 0 1rem; }
.mast-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; margin: 0; white-space: nowrap; font-weight: 800; font-stretch: 112%; font-size: 1.05rem; color: inherit; text-decoration: none; }
/* The mark: a bank holiday, a sticker and a weekend, as on the planner. */
.mark { display: inline-flex; gap: 2px; }
.mark i { width: .8rem; height: .8rem; display: block; }
.m-bh { background: var(--holiday); }
.m-dot { background: var(--sticker); border-radius: 50%; }
.m-we { background: var(--weekend); }

h1 {
  margin: .25rem 0 .75rem;
  font-size: clamp(1.75rem, 8vw, 6rem);
  line-height: .95;
  font-weight: 850;
  font-stretch: 112%;
  letter-spacing: -.02em;
}
/* On a phone the headline runs as two lines; from 40rem each phrase gets its own line. */
h1 span { display: inline; white-space: nowrap; }

.ask { background: var(--sheet); border: 2px solid var(--ink); padding: 1rem; display: grid; gap: .8rem; }
.ask label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }
.ask select, .ask input {
  font: inherit; font-size: 1rem; color: inherit; padding: .6rem; min-height: 2.75rem; width: 100%;
  border: 1px solid var(--grid); background: var(--sheet); border-radius: 0;
}
.ask .pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: end; }
.intro p { margin: 0 0 1rem; max-width: 34rem; font-size: .95rem; line-height: 1.45; color: var(--muted); }
.ask .note { margin: 0; font-size: .8rem; color: var(--muted); text-align: center; }
.ask .hint { margin: 0; font-size: .85rem; line-height: 1.45; }
.ask .hint b { font-weight: 700; color: var(--holiday); }
.ask button {
  font: inherit; font-weight: 700; font-stretch: 112%; min-height: 3rem;
  background: var(--sticker); color: var(--ink); border: 2px solid var(--ink); cursor: pointer;
}
.ask button:hover { background: #F5B800; }

h2 { margin: 0 0 .75rem; font-size: 1.6rem; line-height: 1.15; font-weight: 800; font-stretch: 112%; }

/* Day squares, as on the wall planner. */
.days li { display: grid; place-items: center; aspect-ratio: 1; font-stretch: 75%; font-variant-numeric: tabular-nums; font-size: .8rem; border: 1px solid var(--grid); margin: 0 -1px -1px 0; background: var(--sheet); }
.days .we { background: var(--weekend); }
.days .run { background: var(--run); }
.days .bh { background: var(--holiday); color: var(--sheet); font-weight: 700; border-color: var(--holiday); }
.days .book span {
  display: grid; place-items: center; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sticker); font-weight: 700;
  animation: stick .3s cubic-bezier(.3, 1.6, .5, 1) both;
  animation-delay: calc(var(--n) * 60ms + 200ms);
}
.days small, .days i { display: none; }
/* Tags only where the squares are big enough to read them: the break strips. */
.strip i { display: block; font-style: normal; font-size: .55rem; line-height: 1; font-weight: 600; color: var(--muted); }
.strip .bh i { color: var(--sheet); }
.strip small { display: block; min-height: .55rem; font-size: .55rem; line-height: 1; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.strip .bh small { color: var(--sheet); }
.strip .book span { width: 54%; font-size: .72rem; }
/* On a phone each day is a square: seven to a row, a week per line. */
.strip li { aspect-ratio: 1; grid-template-rows: auto auto auto; gap: 2px; padding: 0; align-content: center; }
@keyframes stick { from { transform: scale(.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .days .book span { animation: none; } }

/* The breaks: the detail under the planner. Each is a panel in the same style as the form and planner. */
.breaks { padding: 3rem 0 3rem; }
.breaks h2 { margin-bottom: .25rem; }
.breaks-sum { margin: 0 0 1.25rem; color: var(--muted); }
.breaks > ol { display: grid; gap: 1rem; }
.break { background: var(--sheet); border: 2px solid var(--ink); display: grid; }
.break-main { padding: 1rem 1rem .9rem; }
.break h3 { margin: 0 0 .35rem; font-size: 1.35rem; line-height: 1.15; font-weight: 800; font-stretch: 112%; }
.break-main p, .go p { margin: 0; }
.break-main .book-line { margin-top: .75rem; }
.break-main .off-line { margin-top: .15rem; }
.trade { font-size: 1.05rem; }
.trade strong { font-weight: 800; }
.book-line { margin-top: .75rem; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .45rem; }
.book-line .dot { flex: none; width: .85rem; height: .85rem; border-radius: 50%; background: var(--sticker); }
.off-line { margin-top: .15rem; color: var(--muted); font-size: .95rem; display: flex; align-items: center; gap: .45rem; }
.off-line .sw { flex: none; width: .85rem; height: .85rem; background: var(--run); outline: 1px solid var(--sticker); }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0 1rem 1rem; padding: 0 1px 1px 0; }
/* Where the strip shows, it carries the dates; the two date lines stay for screen readers
   (the strip is hidden from them) and come back into view on wide screens. */
.dates { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.go { border-top: 1px solid var(--grid); padding: .75rem 1rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: start; }
.go p { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.go a { display: grid; place-items: center; min-height: 2.75rem; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); background: var(--sheet); text-align: center; padding: .25rem .5rem; }
.go a:hover { background: var(--ink); color: var(--sheet); }

/* The year: small month calendars on a phone, the full wall planner on a wide screen. */
.plan-title { margin: 2.75rem 0 .9rem; scroll-margin-top: 1rem; }
.sheet { background: var(--sheet); border: 2px solid var(--ink); border-top: 0; }
/* The key stays pinned to the top of the screen while the calendar scrolls past. */
.key {
  display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: .85rem;
  position: sticky; top: 0; z-index: 1;
  padding: .6rem 1rem; background: var(--sheet); border: 2px solid var(--ink);
}
.key li { display: flex; gap: .35rem; align-items: center; }
.swatch { width: .9rem; height: .9rem; display: inline-block; }
.swatch.we { background: var(--weekend); }
.swatch.bh { background: var(--holiday); }
.swatch.run { background: var(--run); outline: 1px solid var(--sticker); }
.swatch.dot { background: var(--sticker); border-radius: 50%; }

.year { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(8.5rem, 100%), 1fr)); gap: 1.25rem .9rem; padding: 1rem; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 1px 1px 0; min-width: 0; }
.month .name { grid-column: 1 / 3; grid-row: 1; align-self: baseline; font-weight: 700; font-size: .95rem; padding-bottom: .3rem; border: 0; aspect-ratio: auto; place-items: start; background: none; font-stretch: 100%; }
.month .sum { grid-column: 3 / -1; grid-row: 1; border: 0; aspect-ratio: auto; background: none; place-items: start end; font-stretch: 75%; font-size: .75rem; font-weight: 400; line-height: 1.2; padding-bottom: .3rem; align-self: baseline; white-space: nowrap; color: var(--muted); }
.sum b { font-weight: 400; }
.month .blank { visibility: hidden; }
.month .tail { display: none; }
.dow { display: none; }
.month .wd { border: 0; aspect-ratio: auto; font-size: .7rem; font-weight: 600; background: none; }
.dow li { border: 0; aspect-ratio: auto; font-size: .7rem; font-weight: 600; background: none; padding-bottom: .15rem; }
.dow .wide { display: none; }

.foot { background: var(--ink); color: var(--grid); font-size: .875rem; }
.foot-in { padding-top: 1.75rem; padding-bottom: 2.5rem; display: grid; gap: .75rem; }
.foot .brand { color: var(--sheet); }
.foot p { margin: 0; max-width: 46rem; }
.foot a { color: var(--sheet); }

@media (min-width: 40rem) {
  h1 span { display: block; }
  .intro p { margin-bottom: 1.5rem; font-size: 1.05rem; }
  .strip { grid-template-columns: repeat(17, minmax(0, 1fr)); max-width: 40rem; }
  .strip li { aspect-ratio: auto; padding: .3rem 0; }
}

/* Wide screens: the planner becomes one 37-column grid, weekdays aligned so
   weekends run down the sheet as stripes. */
@media (min-width: 64rem) {
  .lead { display: grid; grid-template-columns: 1fr 24rem; gap: 2rem; align-items: end; padding: 1.5rem 0 2.5rem; }
  h1 { margin: 0 0 1.25rem; font-size: clamp(3.5rem, 6.5vw, 6rem); }
  .intro p { margin: 0; font-size: 1.15rem; }
  .sheet { margin: 0; }
  .breaks { padding-top: 4rem; }
  h2 { font-size: 2.1rem; }
  .plan-title { margin-top: 1rem; }
  .year { display: grid; grid-template-columns: 3.25rem repeat(37, 1fr) 7rem; gap: 0; padding: 0; }
  .month { display: contents; }
  .month .name { grid-column: 1; grid-row: auto; padding: 0 0 0 .6rem; align-self: stretch; place-items: center start; font-size: .9rem; }
  .month .blank { visibility: visible; background: repeating-linear-gradient(135deg, transparent 0 4px, var(--weekend) 4px 5px); }
  .month .tail { display: grid; }
  .month .sum { grid-column: auto; grid-row: auto; align-self: stretch; place-items: center end; padding: 0 .6rem 0 0; height: 2rem; border: 1px solid var(--grid); margin: 0 -1px -1px 0; }
  .dow .sum-head { place-items: center end; padding-right: .6rem; font-stretch: 75%; }
  .month .wd { display: none; }
  .month li { aspect-ratio: auto; height: 2rem; }
  .dow { display: contents; }
  .dow .wide { display: grid; }
  .dow li { height: 1.6rem; border: 1px solid var(--grid); margin: 0 -1px -1px 0; font-size: .75rem; }
  .dow .we { background: var(--weekend); }
  .dow .corner { grid-column: 1; }
  .days .book span { width: 1.4rem; }
  .break { grid-template-columns: 1fr auto; align-items: stretch; }
  .break-main { padding: 1.25rem 1.5rem; }
  .strip { display: none; }
  .dates { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
  .go { border-top: 0; border-left: 1px solid var(--grid); padding: 1.25rem 1.5rem; grid-template-columns: repeat(2, 10.5rem); align-content: center; }
}

/* Footer links to the guides. */
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.foot-links a { color: var(--sheet); }

/* Guide pages: a single readable column in the planner's look. */
.article { max-width: 46rem; padding: 1.5rem 0 3rem; }
.article h1 { font-size: clamp(2.1rem, 9vw, 3.75rem); margin: .5rem 0 1rem; }
.article h2 { margin: 2.5rem 0 .75rem; }
.article h3 { font-size: 1.15rem; line-height: 1.25; font-weight: 800; font-stretch: 100%; margin: 1.5rem 0 .35rem; }
.article p, .article li { line-height: 1.6; }
.article p { margin: 0 0 1rem; }
.article a { color: var(--ink); text-decoration-color: var(--grid); text-underline-offset: .15em; }
.article a:hover { text-decoration-color: var(--ink); }
.lede { font-size: 1.15rem; }
.byline { font-size: .875rem; color: var(--muted); }
.cta { margin: 1.5rem 0 0; }
.cta-btn { display: inline-block; font-weight: 700; font-stretch: 112%; text-decoration: none; background: var(--sticker); border: 2px solid var(--ink); padding: .75rem 1.1rem; }
.article .cta-btn { text-decoration: none; }
.cta-btn:hover { background: #F5B800; }

.dates-table { width: 100%; border-collapse: collapse; background: var(--sheet); border: 2px solid var(--ink); font-variant-numeric: tabular-nums; }
.dates-table th, .dates-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--grid); vertical-align: top; }
.dates-table thead th { font-size: .85rem; font-weight: 700; border-bottom: 2px solid var(--ink); }
.dates-table td.num, .dates-table th.num { text-align: right; }
.dates-table tfoot td, .dates-table tfoot th { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }
.bh-mark { display: inline-block; width: .7rem; height: .7rem; background: var(--holiday); margin-right: .5rem; vertical-align: .05rem; }
.note-tag { color: var(--muted); font-size: .9rem; }

.tips { display: grid; gap: .75rem; margin: 0 0 1.25rem; }
.tips li { background: var(--sheet); border: 2px solid var(--ink); padding: .9rem 1rem .4rem; }
.tips h3 { margin-top: 0; }
.tips p { margin: 0 0 .5rem; }

.faq h3 { margin-top: 1.75rem; }
.more { border-top: 2px solid var(--ink); margin-top: 2.5rem; }
.more h2 { font-size: 1.25rem; margin: 1rem 0 .5rem; }
.more ul { display: grid; gap: .35rem; }
.dates-table td:first-child { white-space: nowrap; }
.article ul.plain { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; display: grid; gap: .4rem; }
.plan-links { margin: -.4rem 0 .9rem; font-size: .9rem; color: var(--muted); }
.plan-links a { color: var(--ink); }

/* Yellow buttons look pressable: a hard shadow that lifts on hover and presses on click, and an arrow. */
.ask button, .cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s ease, box-shadow .1s ease;
}
.ask button { margin: 0 3px 3px 0; }
.ask button::after, .cta-btn::after { content: "→"; content: "→" / ""; font-weight: 800; }
.ask button:hover, .cta-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.ask button:active, .cta-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { .ask button, .cta-btn { transition: none; } }

/* Header menu: inline on wide screens; behind a menu button on phones. */
.mast-in { flex-wrap: wrap; min-height: 3.75rem; }
.menu-btn { display: none; }
.mast-nav { width: 100%; }
.mast-nav ul { display: grid; padding: .25rem 0 1rem; }
.mast-nav li + li { border-top: 1px solid rgb(255 255 255 / .12); }
.mast-nav a { display: block; padding: .8rem 0; color: var(--sheet); text-decoration: none; font-weight: 600; }
.mast-nav a[aria-current="page"] { color: var(--sticker); }
.js .menu-btn {
  display: inline-flex; align-items: center; gap: .55rem; margin-left: auto;
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--sheet); background: none;
  border: 2px solid rgb(255 255 255 / .35); padding: .65rem .6rem; cursor: pointer;
}
.js .menu-btn[aria-expanded="true"] { border-color: var(--sticker); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 63.99rem) { .mast .brand { font-size: .98rem; } .mast-in { min-height: 0; padding-top: .7rem; padding-bottom: .7rem; } .mast-nav ul { padding-bottom: .3rem; } }
.burger { display: grid; gap: 3px; }
.burger i { display: block; width: 20px; height: 2px; background: currentColor; }
.js .mast-nav { display: none; }
.js .mast-nav.open { display: block; }

@media (min-width: 64rem) {
  .mast-in { flex-wrap: nowrap; min-height: 4rem; }
  .js .menu-btn { display: none; }
  .mast-nav, .js .mast-nav { display: block; width: auto; margin-left: auto; }
  .mast-nav ul { display: flex; gap: 2rem; padding: 0; }
  .mast-nav li + li { border-top: 0; }
  .mast-nav a { padding: .4rem 0; color: var(--grid); font-size: .95rem; border-bottom: 2px solid transparent; white-space: nowrap; }
  .mast-nav a:hover, .mast-nav a[aria-current="page"] { color: var(--sheet); border-bottom-color: var(--sticker); }
}

/* Calculators: the form sits in the article column, and the result is a sheet in the planner's style. */
.calc-form { margin: 1.5rem 0; }
.calc-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .4rem; }
.calc-form legend { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.calc-form .radio { display: flex; flex-direction: row; align-items: center; gap: .6rem; font-weight: 400; min-height: 2.5rem; }
.calc-form .radio input { width: 1.25rem; height: 1.25rem; min-height: 0; margin: 0; accent-color: var(--ink); }
.calc-form .opt { font-weight: 400; color: var(--muted); }
.calc-form input[type="date"] { min-height: 2.75rem; }
.calc-inline { display: grid; gap: .8rem; }
@media (min-width: 40rem) { .calc-inline { grid-template-columns: 1fr auto; align-items: end; } }
.result { background: var(--sheet); border: 2px solid var(--ink); border-top: 6px solid var(--sticker); padding: 1.1rem 1.25rem .4rem; margin: 0 0 2rem; scroll-margin-top: 1rem; }
.result h2 { margin: 0 0 .35rem; font-size: 1.6rem; }
.result h3 { margin-top: 1rem; }
.result-sub { color: var(--muted); }
.result-error { border-top-color: var(--holiday); }
.working { padding-left: 1.25rem; display: grid; gap: .45rem; margin: 0 0 1rem; }
.article ol.working { list-style: decimal; }

/* Calculator result: the answer first, as big figures. */
.result-kicker { font-size: .85rem; color: var(--muted); margin: 0 0 .25rem; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem; margin: .9rem 0 1rem; }
.figures div { background: var(--page); padding: .7rem .8rem; border-left: 4px solid var(--sticker); }
.figures dt { font-size: .8rem; font-weight: 600; color: var(--muted); }
.figures dd { margin: .15rem 0 0; font-size: 1.35rem; font-weight: 800; font-stretch: 112%; line-height: 1.15; }
.dates-table tr.is-you td { background: #FFF6D6; font-weight: 700; }
.you-tag { display: inline-block; margin-left: .4rem; font-size: .7rem; font-weight: 700; background: var(--sticker); padding: .05rem .4rem; vertical-align: .1rem; }

/* Homepage results: three clearly separated parts — the plan in numbers, the calendar, the breaks. */
.plan-intro, .cal-intro { max-width: 46rem; }
.plan-intro { margin-top: 3rem; padding-top: 2rem; border-top: 2px solid var(--ink); scroll-margin-top: 1rem; }
.plan-intro .plan-title { margin: 0 0 .5rem; }
.section-lede { font-size: 1.05rem; line-height: 1.55; margin: 0 0 1rem; }
.plan-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1rem 0; }
.plan-figures div { background: var(--sheet); }
.plan-sum { color: var(--muted); line-height: 1.55; margin: 0 0 .5rem; }
.cal-intro { margin-top: 2.5rem; }
.cal-intro h2 { margin: 0 0 .5rem; }
.cal-intro p { line-height: 1.55; margin: 0 0 .75rem; }
@media (min-width: 40rem) { .plan-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Breaks as a numbered timeline: a line down the left with a numbered stop for each break. */
.breaks .section-lede { max-width: 46rem; }
.timeline { position: relative; display: grid; gap: 1.5rem; padding-left: 2.6rem; }
.timeline::before { content: ""; position: absolute; left: .95rem; top: .5rem; bottom: .5rem; width: 3px; background: var(--ink); }
.timeline .break { position: relative; }
.step {
  position: absolute; left: -2.6rem; top: .9rem; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--sticker); border: 3px solid var(--ink);
  font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.break-kind { margin: 0 0 .15rem; font-size: .8rem; font-weight: 700; color: var(--muted); }
.break-main .trade { font-size: 1.05rem; }
@media (min-width: 64rem) {
  .timeline { padding-left: 3.25rem; gap: 1.75rem; }
  .timeline::before { left: 1.2rem; }
  .step { left: -3.25rem; width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
}

/* The fixed button that takes people from the calendar down to their breaks. */
.jump {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  background: var(--sticker); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  padding: .8rem 1.2rem; font-weight: 800; font-stretch: 112%; text-decoration: none;
}
.jump::after { content: "↓"; content: "↓" / ""; }
.jump[hidden] { display: none; }
.example-note { background: var(--sheet); border-left: 4px solid var(--sticker); padding: .6rem .8rem; font-size: .9rem; color: var(--ink) !important; }
.ask .note a { color: var(--ink); }
.plan-figures p { margin: .3rem 0 0; font-size: .8rem; line-height: 1.35; color: var(--muted); }
.plan-figures .hero-figure { background: var(--ink); border-left-color: var(--sticker); }
.plan-figures .hero-figure dt, .plan-figures .hero-figure p { color: var(--grid); }
.plan-figures .hero-figure dd { color: var(--sheet); }
.strip-key { font-size: .85rem; color: var(--muted); margin: 0 0 1.25rem; }
.why-line { margin: .5rem 0 0 !important; font-size: .9rem; color: var(--muted); }
.step-holiday { background: var(--ink); color: var(--sheet); }
.timeline-end { position: relative; display: flex; align-items: center; gap: .9rem; margin: 1.5rem 0 0; padding-left: 2.6rem; min-height: 2.2rem; }
.timeline-end .step-end { position: absolute; left: 0; top: 0; background: var(--sticker); }
.timeline-end p { margin: 0; font-weight: 700; line-height: 1.45; }
.breaks .plan-links { margin-top: 1.5rem; }
@media (min-width: 64rem) {
  .timeline-end { padding-left: 3.25rem; }
  .timeline-end .step-end { width: 2.6rem; height: 2.6rem; }
  .jump { left: auto; right: 1.5rem; transform: none; bottom: 1.5rem; }
}
@media (prefers-reduced-motion: no-preference) { .jump { animation: jump-in .2s ease both; } }
@keyframes jump-in { from { opacity: 0; } }

/* Break dates as two labelled rows: Book off / Off work. */
.break-dates { margin: .75rem 0 0; display: grid; gap: .35rem; }
.break-dates div { display: grid; grid-template-columns: 6.2rem 1fr; gap: .5rem; align-items: baseline; }
.break-dates dt { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; }
.break-dates dd { margin: 0; }
.break-dates .book-line dd { font-weight: 700; }
.break-dates .off-line dt, .break-dates .off-line dd { color: var(--muted); }
.break-dates .dot { flex: none; width: .75rem; height: .75rem; border-radius: 50%; background: var(--sticker); }
.break-dates .sw { flex: none; width: .75rem; height: .75rem; background: var(--run); outline: 1px solid var(--sticker); }

/* Landing-page funnel: form (top), calendar (middle), trips (bottom). */
.stage-plan { margin-top: 3rem; padding-top: 2.25rem; border-top: 2px solid var(--ink); max-width: 46rem; scroll-margin-top: 1rem; }
.stage-plan .plan-title { margin: 0 0 .6rem; }
.stage-line { font-size: 1.2rem; line-height: 1.45; margin: 0 0 1rem; }
.stage-line .dot { display: inline-block; width: .85rem; height: .85rem; border-radius: 50%; background: var(--sticker); margin-right: .3rem; vertical-align: -.05rem; }
.stage-cta { text-align: center; margin: 2rem 0 0; }
.stage-cta .cta-btn::after { content: "↓"; content: "↓" / ""; }

/* The trips band runs the full width of the screen. */
.stage-trips {
  background: var(--ink); color: var(--sheet);
  box-shadow: 0 0 0 100vmax var(--ink); clip-path: inset(0 -100vmax);
  margin-top: 3.5rem; padding: 2.5rem 0 3rem;
}
.stage-trips h2 { color: var(--sheet); }
.stage-trips .section-lede { color: var(--grid); }
.stage-trips .timeline::before { background: rgb(255 255 255 / .25); }
.stage-trips .step { border-color: var(--sheet); }
.stage-trips .step-holiday { background: var(--sheet); color: var(--ink); }
.stage-trips .break { color: var(--ink); border-color: var(--sheet); }
.trip-when { margin: .1rem 0 .2rem !important; font-weight: 700; font-size: 1.05rem; }
.trip-book { display: flex; align-items: center; gap: .45rem; margin: .5rem 0 0 !important; font-size: .95rem; color: var(--muted); }
.trip-book .dot { flex: none; width: .75rem; height: .75rem; border-radius: 50%; background: var(--sticker); }
.stage-trips .go { border-top-color: var(--grid); padding-top: 1rem; }
.stage-trips .go a { border-width: 2px; font-weight: 700; min-height: 3rem; }
.stage-trips .go a:first-of-type { background: var(--sticker); }
.stage-trips .go a:first-of-type:hover { background: #F5B800; color: var(--ink); }
.foot { margin-top: 0; }

/* On phones the timeline runs through the gaps, leaving the full width for each break. */
@media (max-width: 39.99rem) {
  .stage-trips { padding-top: 3rem; }
  .stage-trips .section-lede { margin-bottom: 2.75rem; }
  .breaks > .timeline { padding-left: 0; gap: 3rem; }
  .timeline::before { left: 1.85rem; top: 0; bottom: 1rem; }
  .timeline .step { left: .75rem; top: -1.1rem; z-index: 1; }
  .timeline .break-main { padding: 2rem 1.25rem 1.5rem; }
  .timeline .break-kind { margin-bottom: .5rem; font-size: .9rem; }
  .timeline .break h3 { margin-bottom: .75rem; font-size: 1.5rem; line-height: 1.2; }
  .timeline .trip-when { margin: 0 0 1rem !important; line-height: 1.55; }
  .timeline .trade { font-size: 1rem; line-height: 1.6; }
  .timeline .trip-book { margin-top: 1.25rem !important; align-items: baseline; line-height: 1.6; color: var(--ink); }
  .timeline .strip { margin: 0 1.25rem 1.5rem; row-gap: .4rem; }
  .timeline .strip i, .timeline .strip small { font-size: .65rem; }
  .timeline .strip .book span { font-size: .85rem; }
  .stage-trips .go { grid-template-columns: 1fr; gap: .75rem; padding: 1.25rem; }
  .stage-trips .go a { min-height: 3rem; padding: .65rem 1rem; }
  .stage-plan > p { line-height: 1.6; }
  .stage-plan > p + p { margin-top: 1.25rem; }
  .year { gap: 1.75rem .9rem; }
  .month .name { grid-column: 1 / -1; padding-bottom: .5rem; }
  .month .sum { grid-column: 1 / -1; grid-row: auto; place-items: start; padding: .5rem 0 0; white-space: normal; font-stretch: 100%; }
}

/* Break strips are a sequence of dates, with room for readable weekday and day labels. */
@media (max-width: 63.99rem) {
  .timeline .strip {
    grid-template-columns: repeat(auto-fit, minmax(3.5rem, 1fr));
    gap: .5rem;
    max-width: none;
    padding: 0;
  }
  .timeline .strip li {
    margin: 0;
    aspect-ratio: auto;
    min-height: 5rem;
    padding: .5rem .15rem;
    gap: .35rem;
    border: 1px solid var(--grid);
    font-stretch: 100%;
  }
  .timeline .strip .bh { border-color: var(--holiday); }
  .timeline .strip i { font-size: .75rem; font-weight: 600; }
  .timeline .strip small { font-size: .65rem; line-height: 1.2; min-height: .8rem; letter-spacing: 0; }
  .timeline .strip .day-number {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
  }
  .timeline .strip .book span { animation: none; }
}

/* One monthly plan: calendar, leave requests and trip searches stay together. */
.monthly-plan { margin-top: 1rem; padding-bottom: 3rem; }
.month-section { border-bottom: 2px solid var(--grid); padding: 1.5rem 0 2rem; scroll-margin-top: 8.75rem; }
.month-section .month-title { margin: 0 0 1.25rem; font-size: 1.8rem; }
.month-section .month-title > span { color: var(--muted); font-size: 1rem; font-weight: 500; }
.month-content { display: grid; gap: 1.5rem; }
.month-calendar { background: var(--sheet); border: 2px solid var(--ink); padding: 1rem; align-self: start; }
.month-key { display: flex; gap: .5rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .8rem; }
.month-key li { display: flex; align-items: center; gap: .35rem; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 1px 1px 0; }
.month-grid li { font-size: 1rem; font-stretch: 100%; }
.month-grid .weekday { border: 0; margin: 0; aspect-ratio: auto; padding: 0 0 .6rem; font-size: .75rem; font-weight: 600; }
.month-grid .empty { visibility: hidden; }
.month-grid .book span { width: 1.8rem; max-width: 95%; animation: none; }
.calendar-break-link { display: grid; place-items: center; width: 100%; height: 100%; text-decoration: none; }
.calendar-break-link:hover span { outline: 2px solid var(--ink); }
.monthly-breaks { display: grid; gap: 1.5rem; }
.monthly-breaks .break { display: block; scroll-margin-top: 9rem; }
.monthly-breaks .break-main { padding: 1.25rem; }
.monthly-breaks .break-kind { margin-bottom: .5rem; font-size: .9rem; }
.monthly-breaks h3 { font-size: 1.45rem; margin-bottom: .75rem; }
.monthly-breaks .trip-when { margin: 0 0 1rem !important; line-height: 1.5; }
.monthly-breaks .trade { line-height: 1.6; }
.monthly-breaks .trip-book { margin-top: 1.25rem !important; align-items: baseline; line-height: 1.6; color: var(--ink); }
.monthly-breaks .go { grid-template-columns: 1fr; gap: .75rem; padding: 1.25rem; border-left: 0; border-top: 1px solid var(--grid); }
.monthly-breaks .go a { min-height: 3rem; font-weight: 700; border-width: 2px; }
.monthly-breaks .go a:first-child { background: var(--sticker); }
.monthly-breaks .go a:first-child:hover { background: #F5B800; color: var(--ink); }
.break-continued { margin: 0 0 1.5rem; padding: 1rem; border-left: 4px solid var(--sticker); background: var(--sheet); line-height: 1.6; }
.month-empty { margin: 0; color: var(--muted); }
.month-paging { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.month-paging a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; text-underline-offset: .2rem; }
@media (min-width: 40rem) {
  .month-section, .monthly-breaks .break { scroll-margin-top: 5.5rem; }
  .month-calendar { max-width: 30rem; width: 100%; }
  .monthly-breaks .go { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .month-content { grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr); gap: 2rem; }
  .month-section { padding-top: 2rem; }
  .month-section .month-title { font-size: 2.1rem; }
}

/* Leave room for mobile browser controls and keep anchor targets below the month strip. */
.month-section, .monthly-breaks .break {
  scroll-margin-top: 1rem;
}
@media (max-width: 39.99rem) {
}

.break-scroll-cue { display: none; }
.month-details { min-width: 0; }
@media (max-width: 39.99rem) {
  .break-scroll-cue { display: block; margin: 0 0 .75rem; font-size: .875rem; color: var(--muted); }
  .monthly-breaks.has-multiple {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    padding: 0 0 .75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--ink) var(--grid);
  }
  .monthly-breaks.has-multiple > .break {
    flex: 0 0 82%;
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
  }
  .monthly-breaks.has-multiple .go { margin-top: auto; }
  .monthly-breaks.has-multiple .break-main { padding: 1rem; }
  .monthly-breaks.has-multiple .go { padding: 1rem; }
}
.trip-label-short { display: none; }
@media (max-width: 39.99rem) {
  .monthly-breaks .break-main { padding: 1rem; }
  .monthly-breaks .break-kind { font-size: .8rem; margin-bottom: .25rem; }
  .monthly-breaks h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: .4rem; }
  .monthly-breaks .trip-when { font-size: .9rem; line-height: 1.4; margin-bottom: .65rem !important; }
  .monthly-breaks .trade { font-size: .9rem; line-height: 1.4; }
  .monthly-breaks .trip-book { font-size: .9rem; line-height: 1.4; margin-top: .75rem !important; }
  .monthly-breaks .go { grid-template-columns: 1fr 1fr; gap: .5rem; padding: .75rem 1rem; }
  .monthly-breaks .go a { min-height: 2.75rem; font-size: .9rem; padding: .35rem; }
  .monthly-breaks .trip-label-full { display: none; }
  .monthly-breaks .trip-label-short { display: inline; }
}

.month-section, .monthly-breaks .break { scroll-margin-top: 1rem; }

/* Keep the current month visible while its calendar and breaks scroll past. */
.month-section .month-title {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 3;
  background: var(--page);
  padding: .65rem 0;
  border-bottom: 1px solid var(--grid);
}
.monthly-breaks .break { scroll-margin-top: calc(4.5rem + env(safe-area-inset-top, 0px)); }

/* Dates from an adjoining month complete the same block of time off. */
.month-grid .outside-month { grid-template-rows: 1fr auto; padding-bottom: .2rem; }
.month-grid .outside-month:not(.bh):not(.we) { background: var(--page); }
.month-grid .adjacent-month { display: block; font-size: .65rem; line-height: 1; font-weight: 600; }
.month-grid .outside-month .calendar-break-link { min-height: 0; }

.monthly-breaks .repeat-note { margin: .4rem 0 .75rem; font-size: .8rem; line-height: 1.4; color: var(--muted); border-left: 3px solid var(--sticker); padding-left: .6rem; }

/* Weekend ideas use the same card style, with their own label. */
.weekend-idea-list .weekend-nudge { font-size: .9rem; line-height: 1.5; margin: .65rem 0 !important; }

/* One divider and the same spacing between every month. */
.month-section { padding: 0 0 1.5rem; margin: 0 0 1.5rem; border-bottom: 1px solid var(--grid); }
.month-section:last-child { border-bottom: 0; margin-bottom: 0; }
.month-section .month-title { border-bottom: 0; margin-bottom: 1rem; }
.month-content { gap: 1rem; }
.month-paging { margin-top: 1rem; }
.monthly-breaks.has-multiple { padding-bottom: 0; }
@media (min-width: 64rem) { .month-content { gap: 2rem; } }

/* A yellow month tab stays distinct from the calendar scrolling underneath it. */
.month-section .month-title { background: var(--sticker); border-bottom: 1px solid var(--ink); padding: .65rem .75rem; }
.weekend-idea-list .weekend-flight-hint { margin: .5rem 0 0; font-size: .8rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 39.99rem) {
  .month-section .month-title { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
}

/* Guides and calculators share the planner's readable cards and section rhythm. */
[hidden] { display: none !important; }
.article { width: 100%; min-width: 0; }
.article .lede { font-size: 1rem; line-height: 1.5; max-width: 40rem; }
.article > section { margin-top: 2rem; }
.article h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 1rem; }
.article > section > h2, .article > h2, .how-steps h2 {
  background: var(--sticker); padding: .65rem .75rem; border-bottom: 1px solid var(--ink);
}
.article > h2 { margin-top: 2rem; }
.article .result { margin-top: 1.5rem; padding: 1rem; }
.article .result h2 { background: none; padding: 0; border: 0; font-size: 1.35rem; }
.article .result p:last-child { margin-bottom: 0; }
.result-answer { font-size: 1.5rem; line-height: 1.25 !important; font-weight: 800; margin: .5rem 0 .75rem !important; }
.article .calc-form { margin-top: 1rem; }
.article .byline { font-size: .8rem; line-height: 1.5; margin: 1.25rem 0; }
.guide-answer { background: var(--sheet); border: 2px solid var(--ink); padding: 1rem; scroll-margin-top: 1rem; }
.article .guide-answer h2 { background: none; padding: 0; border: 0; font-size: 1.6rem; margin-bottom: .5rem; }
.article .guide-answer p { margin-bottom: .5rem; }
.article .guide-answer p:last-child { margin-bottom: 0; }
.answer-context { color: var(--muted); font-size: .85rem; }
.region-form { margin: 1rem 0; }
.region-form label { min-width: 0; }
.date-cards { display: grid; gap: .75rem; }
.date-cards > li { background: var(--sheet); border: 2px solid var(--ink); padding: 1rem; }
.date-cards h3 { font-size: 1rem; margin: 0 0 .35rem; }
.date-cards p { margin: 0; font-size: .9rem; }
.article .tips { gap: 1rem; }
.article .guide-break { padding: 1rem; }
.article .guide-break .break-kind { font-size: .8rem; margin: 0 0 .25rem; }
.article .guide-break h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.article .guide-break .trip-when { font-size: .9rem; line-height: 1.4; margin: 0 0 .65rem !important; }
.article .guide-break .trade { font-size: .9rem; line-height: 1.4; margin: 0; }
.article .guide-break .trip-book { font-size: .9rem; margin: .75rem 0 0 !important; line-height: 1.4; color: var(--ink); align-items: baseline; }
.work-choice { display: grid; gap: .6rem; border: 2px solid var(--ink); background: var(--sheet); padding: 1rem; margin: 1rem 0 1.5rem; }
.work-choice legend { font-weight: 700; padding: 0 .25rem; }
.work-choice label { display: flex; gap: .6rem; align-items: center; min-height: 2.75rem; font-size: .95rem; }
.work-choice input { accent-color: var(--ink); width: 1.2rem; height: 1.2rem; flex: none; margin: 0; }
.calculation, .comparison, .faq-item { border-top: 1px solid var(--grid); margin: 1rem 0; }
.calculation summary, .comparison summary, .faq-item summary { cursor: pointer; min-height: 2.75rem; padding: .75rem 0; font-weight: 700; font-size: .95rem; }
.calculation .working { margin-top: .75rem; }
.article .faq-item { margin: 0; }
.article .faq-item p { font-size: .95rem; margin: .25rem 0 1rem; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; margin-bottom: 1rem; }
.dates-table td:first-child { white-space: normal; }
.dates-table th, .dates-table td { padding: .6rem; }
.dates-table .you-tag { margin-left: 0; }
.comparison .dates-table { min-width: 30rem; }
.calc .figures { grid-template-columns: 1fr; gap: .5rem; }
.calc .figures div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem; }
.calc .figures dd { margin: 0; white-space: nowrap; }
.calc .figures div:last-child { background: var(--sticker); border-left-color: var(--ink); }
.calc .figures div:last-child dt { color: var(--ink); }
.how-steps { display: grid; gap: 1rem; margin: 1.5rem 0; }
.how-steps li { border: 2px solid var(--ink); background: var(--sheet); }
.article .how-steps h2 { margin: 0; font-size: 1.15rem; }
.how-steps p { padding: 1rem; margin: 0 !important; }
.article .more { border-top: 1px solid var(--grid); margin-top: 2rem; }
.article .more h2 { background: none; padding: 0; border: 0; margin-top: 1rem; }
.article .more a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 39.99rem) {
  .article h1 { font-size: clamp(1.8rem, 8vw, 2.2rem); line-height: 1.05; }
  .article > section > h2, .article > h2 { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
  .article .guide-answer h2, .article .result h2 { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (min-width: 40rem) {
  .region-form { grid-template-columns: 1fr auto; align-items: end; }
  .region-form button { min-width: 10rem; }
  .date-cards { grid-template-columns: 1fr 1fr; }
  .article h2 { font-size: 1.6rem; }
  .article .tips { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 64rem) {
  .mast-nav ul { gap: 1rem; }
  .mast-nav a { font-size: .9rem; }
}

/* Calculator entrances use the same headline-and-form composition as the planner. */
.calculator-page { max-width: none; padding-top: 0; }
.calculator-page > .calculator-hero { margin-top: 0; }
.calculator-page .calculator-hero h1 { font-size: clamp(1.75rem, 8vw, 6rem); line-height: .95; margin: .25rem 0 .75rem; }
.calculator-page .calculator-hero .intro p { font-size: .95rem; line-height: 1.45; margin: 0 0 1rem; }
.calculator-page .calculator-form { margin: 0; }
.calculator-content { max-width: 46rem; width: 100%; min-width: 0; margin-top: 2rem; }
.calculator-content > section { margin-top: 2rem; }
.calculator-content > section > h2 { background: var(--sticker); padding: .65rem .75rem; border-bottom: 1px solid var(--ink); }
.calculator-fields { display: grid; gap: .8rem; }
.entitlement-form .work-choice { border: 0; background: none; padding: 0; margin: 0; gap: .25rem; }
.entitlement-form .work-choice legend { font-size: .95rem; padding: 0; margin-bottom: .25rem; font-weight: 600; }
.entitlement-form .work-choice label { display: flex; gap: .6rem; font-weight: 400; min-height: 2rem; }
.entitlement-form .work-choice input { width: 1.2rem; min-height: 0; height: 1.2rem; }
@media (max-width: 39.99rem) {
  .calculator-content > section > h2 { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
  .calculator-content > .result > h2 { margin-left: 0; margin-right: 0; padding: 0; background: none; border: 0; }
}
@media (min-width: 64rem) {
  .calculator-page .calculator-hero h1 { font-size: clamp(3.5rem, 6.5vw, 6rem); margin: 0 0 1.25rem; }
  .calculator-page .calculator-hero .intro p { font-size: 1.15rem; margin: 0; }
}

/* Date guides open like the planner, with the selected answer directly below. */
.guide-page { max-width: none; padding-top: 0; }
.guide-page > .guide-hero { margin-top: 0; }
.guide-page .guide-hero h1 { font-size: clamp(1.75rem, 8vw, 6rem); line-height: .95; margin: .25rem 0 .75rem; }
.guide-page .guide-hero .intro p { font-size: .95rem; line-height: 1.45; margin: 0 0 1rem; }
.guide-hero .region-form { margin: 0; grid-template-columns: 1fr; }
.guide-content { max-width: 46rem; width: 100%; min-width: 0; margin-top: 1.5rem; }
.guide-content > section { margin-top: 2rem; }
.guide-content > .guide-answer, .guide-content > #guide-answer { margin-top: 0; }
.guide-content > section > h2 { background: var(--sticker); padding: .65rem .75rem; border-bottom: 1px solid var(--ink); }
.guide-content > .guide-answer > h2 { background: none; border: 0; padding: 0; }
@media (max-width: 39.99rem) {
  .guide-content > section > h2 { margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; }
  .guide-content > .guide-answer > h2 { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
@media (min-width: 64rem) {
  .guide-page .guide-hero { align-items: center; }
  .guide-page .guide-hero h1 { font-size: clamp(3rem, 5.5vw, 5rem); margin: 0 0 1.25rem; }
  .guide-page .guide-hero .intro p { font-size: 1.15rem; margin: 0; }
}

/* Trip buttons inside a guide's break card: a full-width 2×2 grid under the dates. */
.guide-break .go,
.guide-break .go:is(*) {
  border: 0; border-top: 1px solid var(--grid); margin: .9rem 0 0; padding: .9rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-content: start; align-items: stretch;
}
