/* GENERATED by source/build.py from source/src. Do not edit this file by hand; edit source/src and rebuild. */
/* Marblehead Christmas Walk 2026 landing page
   Follows The Marblehead Independent Brand Guidelines v2.1:
   Shell White canvas, Georgia for all editorial type, Inter for interface elements only,
   Harbor Black / Independent Red / Slate Blue, separation by hairline rules rather than tint.
   Everything is scoped under .cw so it sits safely inside the Ghost theme. */

/* Inter is the sanctioned interface face. One weight, used for buttons, navigation, fields and badges only. */
@font-face { font-family: "Inter"; src: local("Inter SemiBold"), local("Inter-SemiBold"), url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

.cw {
  --shell: #FDF9F4;
  --ink: #1E1F21;
  --red: #C2261D;
  --slate: #375E97;
  --hair: #CFCFCE;
  --soft: #E4E4E3;
  --muted: #64656A;
  --water: #E9EEF5;
  --serif: Georgia, "Times New Roman", serif;
  --ui: Inter, "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.cw *, .cw *::before, .cw *::after { box-sizing: border-box; }
.cw :where(h1, h2, h3, h4, p, ol, ul, li, dl, dt, dd, figure, figcaption) { margin: 0; padding: 0; }
.cw :where(ol, ul) { list-style: none; }
.cw :where(h1, h2, h3, h4) { font-family: var(--serif); font-weight: 700; letter-spacing: normal; text-transform: none; color: inherit; }
.cw :where(img) { display: block; max-width: 100%; height: auto; }
.cw :where(a) { color: var(--slate); text-decoration: none; }
.cw :where(a):hover, .cw :where(a):focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cw :where(button) { font: inherit; color: inherit; cursor: pointer; }
.cw [hidden] { display: none !important; }
.cw :focus-visible { outline: 2px solid var(--slate); outline-offset: 2px; }
.cw .cw-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.cw-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); }

/* Section label: Georgia bold, all caps, Independent Red, 0.14em tracking */
.cw .cw-label, .cw .cw-official, .cw .cw-updates-h {
  font-family: var(--serif); font-weight: 700; font-size: 13px; line-height: 1.3;
  text-transform: uppercase; letter-spacing: .14em; color: var(--red);
}
/* Part title: Georgia bold over a heavy Harbor Black rule */
.cw .cw-h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -.01em; border-top: 3px solid var(--ink); padding-top: 14px; margin-bottom: 12px; }
/* Section heading: Georgia bold with a hairline beneath */
.cw .cw-h3 { font-size: 19px; line-height: 1.25; padding-bottom: 7px; margin-bottom: 10px; border-bottom: 1px solid var(--hair); }
/* Deck and lede: Georgia italic, ranged left */
.cw .cw-lede { font-style: italic; font-size: 20px; line-height: 1.5; max-width: 36em; }
.cw .cw-fine { font-size: 14px; color: var(--muted); }
.cw .cw-credit { white-space: nowrap; }

/* ---------- Buttons (interface: Inter, one weight) ---------- */
.cw .cw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 3px; border: 1px solid var(--ink); background: var(--shell); color: var(--ink); font-family: var(--ui); font-weight: 600; font-size: 14px; line-height: 1.2; text-decoration: none; }
.cw .cw-btn:hover { background: var(--soft); }
.cw .cw-btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.cw .cw-btn--red:hover { background: var(--ink); border-color: var(--ink); }
.cw .cw-btn--plain { border-color: transparent; background: transparent; color: var(--slate); padding-left: 8px; padding-right: 8px; }
.cw .cw-btn--plain:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.cw .cw-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); }
.cw-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cw .cw-icon-btn:hover { background: var(--soft); }

.cw .cw-add { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 10px; border: 1px solid var(--ink); border-radius: 3px; background: var(--shell); color: var(--ink); font-family: var(--ui); font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.cw .cw-add:hover { background: var(--soft); }
.cw .cw-add[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.cw-star { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; flex: none; }
.cw-add[aria-pressed="true"] .cw-star, .cw-star--on { fill: currentColor; }

/* ---------- Hero ---------- */
.cw-hero { padding: 14px 0 64px; border-bottom: 1px solid var(--hair); }
.cw-flags { display: block; width: 100%; height: auto; overflow: visible; margin-bottom: 18px; }
.cw-flags-line { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.cw-flag-string { stroke: var(--ink); stroke-width: 1; }
.cw-flag-edge { fill: none; stroke: var(--hair); stroke-width: 1; }
.cw-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "copy photo" "tools photo"; grid-template-rows: auto 1fr; gap: 0 56px; }
.cw-hero-copy { grid-area: copy; align-self: end; }
.cw-hero-photo { grid-area: photo; align-self: center; }
.cw-hero-tools { grid-area: tools; align-self: start; }
.cw .cw-hero-title { font-size: clamp(40px, 4.1vw, 60px); line-height: 1.06; letter-spacing: -.015em; margin-top: 14px; text-wrap: balance; }
.cw .cw-hero-dek { font-style: italic; font-size: 21px; line-height: 1.5; margin-top: 20px; max-width: 30em; }
.cw .cw-byline { font-variant: small-caps; letter-spacing: .04em; font-size: 17px; margin-top: 20px; color: var(--ink); }
.cw .cw-byline a { color: var(--ink); }
.cw-byline-date { color: var(--muted); padding-left: 10px; margin-left: 8px; border-left: 1px solid var(--hair); }
.cw .cw-hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.cw .cw-hero-photo figcaption, .cw .cw-shot figcaption { font-size: 14.5px; line-height: 1.45; color: var(--muted); margin-top: 10px; }
.cw .cw-now { display: flex; align-items: baseline; gap: 10px; margin-top: 30px; padding: 12px 16px; border: 1px solid var(--hair); border-left: 3px solid var(--red); font-size: 17px; line-height: 1.45; max-width: 34em; }
.cw-now-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hair); transform: translateY(-2px); }
.cw .cw-now.is-live .cw-now-dot { background: var(--red); }
.cw .cw-jump { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font-family: var(--ui); font-weight: 600; font-size: 14px; }
@media (max-width: 860px) {
  .cw-hero { padding: 10px 0 44px; }
  .cw-flags { margin-bottom: 14px; }
  .cw-hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "photo" "tools"; grid-template-rows: auto; }
  .cw-hero-photo { margin-top: 28px; margin-left: -20px; margin-right: -20px; }
  .cw .cw-hero-photo figcaption { padding: 0 20px; }
  .cw .cw-hero-dek { font-size: 19px; }
}

/* ---------- Editor updates from the Ghost page body ---------- */
.cw-updates { border-bottom: 1px solid var(--hair); }
.cw-updates .cw-wrap { padding-top: 32px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px 40px; }
.cw .cw-updates-h { padding-top: 5px; }
.cw-updates-body { font-size: 18px; line-height: 1.6; max-width: 40em; }
.cw-updates-body > * + * { margin-top: 1em; }
@media (max-width: 720px) { .cw-updates .cw-wrap { grid-template-columns: 1fr; } }

/* ---------- Weekend highlights ---------- */
.cw-big { padding: 72px 0 52px; }
.cw-moments { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 28px; }
.cw-moment { display: flex; flex-direction: column; border-top: 2px solid var(--red); padding-top: 14px; }
.cw .cw-moment-when { display: flex; flex-direction: column; }
/* Statistic treatment: Georgia bold, Independent Red, over a red rule */
.cw-moment-time { order: -1; font-weight: 700; font-size: 27px; line-height: 1.05; color: var(--red); }
.cw-moment-day { font-style: italic; font-size: 16px; color: var(--muted); margin-top: 6px; }
.cw .cw-moment-title { font-size: 23px; line-height: 1.15; margin-top: 14px; text-wrap: balance; }
.cw .cw-moment-where { font-size: 15.5px; font-weight: 700; margin-top: 8px; line-height: 1.4; }
.cw .cw-moment-note { font-size: 15.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.cw-moment .cw-add { margin-top: auto; align-self: flex-start; }
.cw-moment .cw-moment-note { margin-bottom: 16px; }
@media (max-width: 1080px) { .cw-moments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cw-moments { grid-template-columns: 1fr; } }

/* ---------- Where's Santa? chart ---------- */
.cw-chart { padding: 8px 0 80px; }
.cw-chart-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); grid-template-areas: "head head" "map panel"; gap: 32px 48px; align-items: start; }
.cw-chart-head { grid-area: head; }
.cw-map { grid-area: map; border: 1px solid var(--hair); }
.cw-map svg { display: block; width: 100%; height: auto; }
.cw-chart-panel { grid-area: panel; position: sticky; top: 24px; }
.cw-map-hint { display: none; }
.cw-land { fill: var(--shell); }
.cw-water { fill: var(--water); stroke: var(--ink); stroke-width: 1.5; }
.cw-contours path { fill: none; stroke: var(--slate); stroke-opacity: .22; stroke-width: 1; }
.cw-map-water-label { font-family: var(--serif); font-style: italic; font-size: 26px; fill: var(--slate); text-anchor: middle; }
.cw-street { fill: none; stroke: var(--soft); stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.cw-street--front { stroke-width: 10; }
.cw-route-todo { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 2 8; stroke-linecap: round; stroke-linejoin: round; }
.cw-route-done { fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.cw-map-label { font-family: var(--serif); font-size: 17px; fill: var(--ink); }
.cw-map-label--strong { font-weight: 700; font-size: 20px; }
.cw-map-label--muted { fill: var(--muted); font-style: italic; }
.cw-map-small { font-size: 15px; }
.cw-pin-dot { fill: var(--shell); stroke: var(--ink); stroke-width: 3; }
.cw-pin-dot--small { stroke-width: 2; }
.cw-pier { fill: var(--muted); }
.cw-boatpath { fill: none; stroke: var(--slate); stroke-opacity: .6; stroke-width: 2; stroke-dasharray: 1 8; stroke-linecap: round; }
.cw-head-ring { fill: var(--red); stroke: var(--shell); stroke-width: 3; }
.cw-head-core { fill: var(--shell); }
.cw-head, .cw-head-glow { transition: opacity .3s; }
.cw-boat-hull { fill: #fff; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.cw-boat-cabin { fill: var(--shell); stroke: var(--ink); stroke-width: 1.2; }
.cw-boat-santa { fill: var(--red); }
.cw-boat-santa-trim { fill: #fff; stroke: var(--ink); stroke-width: .8; }
.cw-boat-wake path { fill: none; stroke: var(--slate); stroke-opacity: .7; stroke-width: 2; stroke-linecap: round; }
.cw-boat:not(.is-moving) .cw-boat-wake { opacity: 0; }

.cw .cw-chart-clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
#cw-clock { font-family: var(--serif); font-weight: 700; font-size: 46px; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.cw-chart-day { font-style: italic; font-size: 18px; color: var(--muted); }
.cw .cw-live-chip { font-family: var(--ui); font-weight: 600; font-size: 12px; color: #fff; background: var(--red); padding: 3px 8px; border-radius: 3px; }
.cw .cw-chart-status { font-weight: 700; font-size: 25px; line-height: 1.2; margin-top: 18px; min-height: 2.4em; text-wrap: balance; }
.cw .cw-chart-sub { font-size: 16.5px; color: var(--muted); margin-top: 8px; min-height: 3.2em; }
.cw-scrub { margin-top: 24px; position: relative; padding-top: 22px; }
.cw-scrub input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer; }
.cw-scrub input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--red) 0 var(--cw-fill, 0%), var(--soft) var(--cw-fill, 0%) 100%); }
.cw-scrub input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--soft); }
.cw-scrub input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--red); }
.cw-scrub input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--shell); border: 3px solid var(--red); margin-top: -10px; }
.cw-scrub input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--shell); border: 3px solid var(--red); }
.cw-scrub-marks { position: absolute; top: 0; left: 12px; right: 12px; height: 20px; }
.cw-scrub-marks span { position: absolute; transform: translateX(-50%); font-family: var(--ui); font-weight: 600; font-size: 12px; color: var(--ink); white-space: nowrap; }
.cw-scrub-marks span::after { content: ""; position: absolute; left: 50%; top: 19px; width: 1px; height: 12px; background: var(--hair); }
.cw-scrub-ticks { display: flex; justify-content: space-between; padding: 0 2px; font-family: var(--ui); font-weight: 600; font-size: 12px; color: var(--muted); }
.cw-chart-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.cw .cw-chart-note { font-size: 14px; color: var(--muted); margin-top: 20px; line-height: 1.5; }
@media (max-width: 900px) {
  .cw-chart-grid { grid-template-columns: 1fr; grid-template-areas: "head" "map" "panel"; gap: 24px; }
  .cw-chart-panel { position: static; }
  .cw-map { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 -20px; border-left: 0; border-right: 0; }
  .cw-map::-webkit-scrollbar { display: none; }
  .cw-map svg { width: 760px; max-width: none; }
  .cw-map-hint { display: block; grid-area: map; align-self: end; justify-self: start; position: relative; z-index: 1; margin: 0 0 10px; font-family: var(--ui); font-weight: 600; font-size: 12px; color: var(--ink); background: var(--shell); border: 1px solid var(--hair); padding: 3px 9px; border-radius: 3px; pointer-events: none; }
  .cw .cw-chart-status { font-size: 23px; min-height: 0; }
  .cw .cw-chart-sub { min-height: 0; }
}

/* ---------- Schedule ---------- */
.cw-sched { padding: 104px 0 80px; }
.cw-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 36px; border-bottom: 1px solid var(--ink); }
.cw .cw-tab { appearance: none; background: none; border: 0; padding: 10px 8px 12px 0; text-align: left; position: relative; color: var(--muted); }
.cw-tab-day { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
.cw-tab-abbr { display: none; }
.cw-tab-date { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; margin-top: 3px; }
.cw .cw-tab[aria-selected="true"] { color: var(--ink); }
.cw .cw-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 16px; bottom: -1px; height: 4px; background: var(--red); }
.cw .cw-tab:hover { color: var(--ink); }
.cw-filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; }
.cw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cw .cw-chip { border: 1px solid var(--hair); background: var(--shell); border-radius: 3px; padding: 7px 12px; font-family: var(--ui); font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--ink); min-height: 36px; }
.cw .cw-chip:hover { border-color: var(--ink); }
.cw .cw-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--shell); }
.cw-search { flex: 0 1 320px; }
.cw-search input { width: 100%; border: 1px solid var(--hair); background: var(--shell); border-radius: 3px; padding: 9px 12px; font-family: var(--ui); font-weight: 600; font-size: 14px; color: var(--ink); min-height: 40px; }
.cw-search input::placeholder { color: var(--muted); }
.cw-search input:focus { outline: 2px solid var(--slate); outline-offset: 1px; border-color: var(--ink); }
.cw .cw-count { font-style: italic; font-size: 15px; color: var(--muted); margin-top: 18px; }
.cw-day + .cw-day { margin-top: 48px; }
.cw .cw-day-h { font-size: 26px; margin-bottom: 8px; }
.cw-js .cw-day-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cw-js .cw-day + .cw-day { margin-top: 0; }
.cw:not(.cw-js) .cw-tabs, .cw:not(.cw-js) .cw-filters, .cw:not(.cw-js) .cw-add, .cw:not(.cw-js) .cw-chart-actions, .cw:not(.cw-js) .cw-scrub { display: none; }
.cw-list { border-top: 1px solid var(--hair); }
.cw-ev { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--soft); align-items: start; }
.cw-ev[hidden] { display: none; }
.cw .cw-ev-time { font-weight: 700; font-size: 16.5px; padding-top: 2px; }
.cw .cw-official { margin-bottom: 4px; font-size: 12px; }
.cw .cw-ev-title { font-size: 21px; line-height: 1.25; }
.cw .cw-ev-host { font-size: 15px; color: var(--muted); margin-top: 2px; }
.cw .cw-ev-place { font-size: 16px; margin-top: 6px; }
.cw .cw-ev-note { font-size: 16.5px; margin-top: 4px; max-width: 42em; line-height: 1.55; }
.cw .cw-ev-link { font-size: 16px; font-weight: 700; margin-top: 6px; }
.cw .cw-empty { padding: 40px 0; font-style: italic; font-size: 19px; color: var(--muted); }
.cw .cw-empty button { border: 0; background: none; padding: 0; color: var(--slate); font-family: var(--serif); font-style: italic; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .cw-tab-full { display: none; }
  .cw-tab-abbr { display: inline; }
  .cw-ev { grid-template-columns: minmax(0, 1fr) auto; }
  .cw-ev-time { grid-column: 1 / -1; }
  .cw-ev-main { grid-column: 1; }
  .cw .cw-ev .cw-add { grid-column: 2; grid-row: 2; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .cw-ev .cw-add .cw-add-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cw-search { flex-basis: 100%; }
}

/* ---------- Parking and road closures ---------- */
.cw-around { padding: 8px 0 80px; }
.cw-around-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 64px; margin-top: 32px; }
.cw-around p { max-width: 38em; font-size: 17px; }
.cw-around .cw-h3 { margin-top: 30px; }
.cw-around-main > .cw-h3:first-child, .cw-around-side > .cw-h3:first-child { margin-top: 0; }
.cw-closures { margin: 4px 0 14px; }
.cw-closures > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--soft); }
.cw-closures dt { font-weight: 700; font-size: 16px; }
.cw-closures dd { font-size: 16px; }
@media (max-width: 860px) {
  .cw-around-grid { grid-template-columns: 1fr; }
  .cw-closures > div { grid-template-columns: 1fr; }
}

/* ---------- Photos from last year ---------- */
.cw-past { padding: 8px 0 64px; }
.cw-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px max(24px, env(safe-area-inset-right, 0px), calc((100% - 1152px) / 2)) 12px max(24px, env(safe-area-inset-left, 0px), calc((100% - 1152px) / 2)); scroll-padding-inline: max(24px, env(safe-area-inset-left, 0px), calc((100% - 1152px) / 2)); scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
.cw-shot { flex: 0 0 auto; width: min(80vw, 420px); scroll-snap-align: start; }
.cw-shot--wide { width: min(88vw, 560px); }
.cw .cw-shot img { width: 100%; height: 360px; object-fit: cover; }
@media (max-width: 720px) { .cw .cw-shot img { height: 260px; } }

/* ---------- About ---------- */
.cw-about { padding: 8px 0 48px; }
.cw-about .cw-h3 { border-top: 3px solid var(--ink); padding-top: 14px; }
.cw-about p { font-size: 16px; color: var(--muted); max-width: 46em; margin-top: 10px; }
.cw .cw-tagline { font-style: italic; color: var(--ink); margin-top: 18px; }

/* ---------- My Walk tray and drawer ---------- */
.cw-tray { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 9990; display: flex; flex-direction: column; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 24px); }
.cw .cw-tray-btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 12px 11px 16px; border: 0; border-radius: 3px; background: var(--ink); color: var(--shell); font-family: var(--ui); font-weight: 600; font-size: 14px; box-shadow: 0 10px 24px -10px rgba(30,31,33,.6); }
.cw-tray-btn .cw-star { width: 17px; height: 17px; }
.cw-tray-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 3px; background: var(--red); color: #fff; font-size: 12px; }
.cw-tray-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; padding: 14px 16px; background: var(--shell); color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; box-shadow: 0 10px 24px -10px rgba(30,31,33,.5); }
.cw-tray-share p { font-size: 16px; width: 100%; text-align: center; }
.cw-drawer { width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--ink); border-radius: 3px; background: var(--shell); color: var(--ink); font-family: var(--serif); }
.cw-drawer[open] { display: flex; flex-direction: column; }
.cw-drawer::backdrop { background: rgba(30,31,33,.45); }
.cw-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 10px 24px; border-bottom: 1px solid var(--hair); }
.cw-drawer-head .cw-h3 { font-size: 26px; margin: 0; padding: 0; border: 0; }
.cw-drawer-body { overflow-y: auto; padding: 4px 24px 8px; flex: 1 1 auto; }
.cw-plan-day { font-style: italic; font-size: 17px; color: var(--muted); margin: 18px 0 4px; }
.cw-plan-item { display: grid; grid-template-columns: 116px minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--soft); align-items: start; }
.cw-plan-time { font-weight: 700; font-size: 15px; padding-top: 2px; }
.cw-plan-title { font-weight: 700; font-size: 17px; line-height: 1.3; }
.cw-plan-place { font-size: 14.5px; color: var(--muted); }
.cw-plan-clash { font-size: 14px; font-weight: 700; color: var(--red); margin-top: 3px; }
.cw .cw-plan-remove { border: 0; background: none; font-family: var(--ui); font-weight: 600; font-size: 12px; color: var(--slate); padding: 4px 0; }
.cw .cw-plan-remove:hover { text-decoration: underline; }
.cw-plan-empty { padding: 28px 0; font-style: italic; font-size: 18px; color: var(--muted); }
.cw-drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 24px 6px; border-top: 1px solid var(--hair); }
.cw-drawer-fine { padding: 4px 24px 18px; }
.cw-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 16px); z-index: 9995; background: var(--ink); color: var(--shell); padding: 10px 16px; border-radius: 3px; font-family: var(--ui); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.cw-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 560px) {
  .cw-drawer { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-width: 1px 0 0; }
  .cw-plan-item { grid-template-columns: minmax(0, 1fr) auto; }
  .cw-plan-time { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .cw-wrap { padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); }
  .cw-big { padding: 56px 0 40px; }
  .cw-chart, .cw-sched, .cw-around { padding-bottom: 64px; }
  .cw-sched { padding-top: 60px; }
}

/* ---------- Festive artwork ----------
   Drawn at build time by source/src/art.js, after the Independent's Christmas Walk nameplate studies.
   The art is decoration only: it is hidden from screen readers, it never sits on a photograph or under
   type, and it keeps the studies' illustration colors. Type and interface stay on the brand palette.
   Motion stops for readers who ask for reduced motion, when "Pause motion" is pressed (html.cw-still)
   and while a piece is off screen (.is-off). Only transform and opacity move. */
.cw-fx { position: relative; pointer-events: none; -webkit-user-select: none; user-select: none; }
.cw-fx svg { display: block; }
.cw-fx-stack { position: relative; }
.cw-fx-stack > svg { width: 100%; height: auto; }
.cw-fx-stack > .cwfx-over { position: absolute; left: 0; top: 0; height: 100%; }

/* "Pause motion" is an interface control, so it is set in Inter */
.cw .cw-motion { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: none; font-family: var(--ui); font-weight: 600; font-size: 12px; color: var(--muted); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
.cw .cw-motion:hover { color: var(--ink); text-decoration-color: currentColor; }

/* Santa by sea. --u is one drawing unit; 40 units is one wave, so keep 40 x --u a whole number of pixels. */
.cw-harbor { --u: .6px; --sail: 17s; height: calc(var(--u) * 148); margin-bottom: 22px; overflow: hidden; container-type: inline-size; }
.cw-harbor > * { position: absolute; display: block; }
.cw-harbor svg { width: 100%; height: auto; overflow: visible; }
.cw-wave { left: calc(var(--u) * -40); width: calc(100% + var(--u) * 80); height: calc(var(--u) * 16); background-repeat: repeat-x; background-size: calc(var(--u) * 40) calc(var(--u) * 16); }
.cw-wave--1 { top: calc(var(--u) * 95); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M-40,10q10,-4 20,0t20,0q10,-4 20,0t20,0q10,-4 20,0t20,0' fill='none' stroke='%239DB2D2' stroke-width='2.6'/%3E%3C/svg%3E"); }
.cw-wave--2 { top: calc(var(--u) * 107); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M-40,10q10,-7 20,0t20,0q10,-7 20,0t20,0q10,-7 20,0t20,0' fill='none' stroke='%23375E97' stroke-width='3.4'/%3E%3C/svg%3E"); }
.cw-wave--3 { top: calc(var(--u) * 119); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M-40,10q10,-6 20,0t20,0q10,-6 20,0t20,0q10,-6 20,0t20,0' fill='none' stroke='%236C88B5' stroke-width='3'/%3E%3C/svg%3E"); }
.cw-wave--4 { top: calc(var(--u) * 130); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M-40,10q10,-5 20,0t20,0q10,-5 20,0t20,0q10,-5 20,0t20,0' fill='none' stroke='%239DB2D2' stroke-width='2.6'/%3E%3C/svg%3E"); }
.cw-harbor-boat { top: calc(var(--u) * 7); left: 50%; width: calc(var(--u) * 295); transform: translateX(-40%); }
.cw-harbor-ball { top: calc(var(--u) * 96); left: 8%; width: calc(var(--u) * 36); margin-left: calc(var(--u) * -18); }
.cw-harbor-loon { top: calc(var(--u) * 92); left: 24%; width: calc(var(--u) * 66); }
.cw-harbor-can { top: calc(var(--u) * 68); left: 91%; width: calc(var(--u) * 48); margin-left: calc(var(--u) * -24); }
.cwfx-bob { display: block; transform-origin: 50% 100%; }
@media (min-width: 600px) { .cw-harbor { --u: .8px; --sail: 24s; } }
@media (min-width: 1024px) { .cw-harbor { --u: 1px; --sail: 32s; } .cw-harbor-loon { left: 47%; } }
@media (min-width: 1800px) { .cw-harbor { --sail: 42s; } }

/* The lobster trap tree and a still life of traps stand on the heavy rule over "Plan your Walk".
   Both are drawn at one scale: the tree is 200 units wide and the still life 160. */
.cw-perch { --tu: .76px; position: relative; height: 0; }
.cw-tree { position: absolute; right: 0; bottom: 0; width: calc(var(--tu) * 200); }
.cw-traps { position: absolute; left: 0; bottom: 0; width: calc(var(--tu) * 160); }
.cw-traps svg { width: 100%; height: auto; }
@media (max-width: 720px) { .cw-perch { --tu: .52px; } }

/* Stamp and postmark beside the photo heading; the heading's rule moves to the row so both sit under it */
.cw-past-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 40px; align-items: start; border-top: 3px solid var(--ink); padding-top: 14px; }
.cw .cw-past-head .cw-h2 { border-top: 0; padding-top: 0; }
.cw-post { width: 252px; margin-top: 4px; }
.cw-post svg { width: 100%; height: auto; }
@media (max-width: 860px) { .cw-past-head { grid-template-columns: minmax(0, 1fr); } .cw-post { justify-self: end; width: 230px; } }

/* The crowd closes the page. It keeps its size and is cropped at the sides until the screen is wider than the drawing. */
.cw-crowd { --ch: 84px; overflow: hidden; }
.cw-crowd svg { position: relative; left: 50%; width: max(100%, calc(var(--ch) * 12.07)); height: auto; transform: translateX(-50%); }
@media (min-width: 721px) { .cw-crowd { --ch: 100px; } }
@media (min-width: 1100px) { .cw-crowd { --ch: 112px; } }

@media (prefers-reduced-motion: no-preference) {
  .cw-wave { animation: cwfx-roll 5s linear infinite; }
  .cw-wave--1 { animation-duration: 9s; }
  .cw-wave--3 { animation-duration: 7s; }
  .cw-wave--4 { animation-duration: 6s; }
  .cw-harbor-boat { left: 0; animation: cwfx-sail var(--sail) linear infinite; }
  .cwfx-bob { animation: cwfx-bob 3.4s ease-in-out infinite; }
  .cwfx-bob--boat { animation-duration: 2.6s; }
  .cwfx-arm { animation: cwfx-arm .9s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 100%; }
  .cwfx-chase { animation: cwfx-chase 7s linear infinite; }
  .cwfx-star { animation: cwfx-star 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 50%; }
  .cwfx-hop { animation: cwfx-hop 2.4s ease-in-out infinite; }
  .cw-fx.is-seen .cwfx-thump { animation: cwfx-thump .7s ease-out both; transform-box: fill-box; transform-origin: 18% 50%; }
  .cw-fx.is-off *, .cw-fx.is-off *::before { animation-play-state: paused !important; }
  html.cw-still .cw-fx *, html.cw-still .cw-fx *::before { animation: none !important; }
  html.cw-still .cw-harbor-boat { left: 50%; }
}
@media (prefers-reduced-motion: reduce) { .cw .cw-motion { display: none; } }
@keyframes cwfx-roll { to { transform: translateX(calc(var(--u) * -40)); } }
@keyframes cwfx-sail { from { transform: translateX(calc(var(--u) * -300)); } to { transform: translateX(100vw); transform: translateX(100cqw); } }
@keyframes cwfx-bob { 0%, 100% { transform: translateY(0) rotate(-1.3deg); } 50% { transform: translateY(-2.5px) rotate(1.3deg); } }
@keyframes cwfx-arm { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(14deg); } }
@keyframes cwfx-chase { 0% { opacity: .16; } 4% { opacity: 1; } 78% { opacity: 1; } 86%, 100% { opacity: .16; } }
@keyframes cwfx-star { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.16) rotate(8deg); } }
@keyframes cwfx-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4.5px); } }
@keyframes cwfx-thump { 0% { transform: scale(1.3); opacity: 0; } 55% { transform: scale(.97); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .cw *, .cw *::before, .cw *::after { animation: none !important; transition: none !important; }
}

@media print {
  .cw-chart, .cw-past, .cw-tray, .cw-toast, .cw-add, .cw-filters, .cw-tabs, .cw-jump, .cw-now, .cw-fx, .cw-motion { display: none !important; }
  .cw-day[hidden] { display: block !important; }
  .cw-ev[hidden] { display: grid !important; }
  .cw-js .cw-day-h { position: static !important; width: auto; height: auto; clip: auto; }
}
