/* Blackton Grange: build your wedding by the light on the day (/build-your-wedding).
   Loaded after the site's bundle. Every rule of its own sits under .bwl, and every class of its own starts bwl-,
   so nothing here reaches the site's header, footer or dialogs, and nothing of theirs reaches in by name.
   Buttons are the site's own (.btn, .linklike). */

/* The running total lives in the sky, at the top of the screen, so on this page the site's phone bar gives its height to the questions. */
body:has(main[data-page="build-your-wedding"]) .mobilebar { display: none; }
/* With the bar gone, the room the site leaves for it under the footer goes too. */
body:has(main[data-page="build-your-wedding"]) { padding-bottom: 0; }

.bwl {
  --bwl-gold-ink: #7a6420;
  --bwl-lamp: #f0c35a;
  --bwl-quiet: #5f5f5f;
  /* The height of the site's header, measured by the script: the sky sticks beneath it. */
  --bwl-head: 0px;
  --bwl-stick: calc(var(--bar, 0px) + var(--bwl-head));
  --bwl-sky-h: clamp(330px, 40vh, 400px);
  /* How much of the sky stays in view once the page is scrolled into the day: the horizon with its marks and
     their labels, the sun's path and the price. The rest scrolls away under the header, so the questions get the room. */
  --bwl-sky-keep: 170px;
  --bwl-land-h: 104px;
  /* The same side margin as the site's own .wrap, on a sky that runs edge to edge. */
  --bwl-edge: max(32px, calc((100% - 1240px) / 2 + 32px));
  position: relative; background: var(--cream); color: var(--text); font-size: 16px; line-height: 1.65; overflow-anchor: none;
}
.bwl *::before, .bwl *::after { box-sizing: border-box; }
.bwl :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.bwl h2:focus { outline: none; }
.bwl .bwl-sr { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------ the sky ------------------------------ */

.bwl .bwl-sky { position: sticky; top: calc(var(--bwl-stick) + var(--bwl-sky-keep) - var(--bwl-sky-h)); z-index: 20; height: var(--bwl-sky-h); overflow: hidden; isolation: isolate; background: #1a2940; color: var(--white); --bwl-yh: 70%; }
.bwl .bwl-sky :focus-visible { outline-color: var(--white); }
.bwl .bwl-sky__air, .bwl .bwl-sky__arc { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.bwl .bwl-sky__stars { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; }
/* The moon hangs low, in the gap between the first two marks, so it is still there in the strip that stays. */
.bwl .bwl-sky__moon { position: absolute; left: 31%; top: calc(var(--bwl-yh) - 66px); line-height: 0; opacity: 0; }
.bwl .bwl-sky__sun { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; transition: opacity 0.5s linear; }

.bwl .bwl-arc { fill: none; }
.bwl .bwl-arc--shade { stroke: rgba(39, 49, 59, 0.26); stroke-width: 3; }
.bwl .bwl-arc--day { stroke: rgba(255, 255, 255, 0.85); stroke-width: 1.25; stroke-dasharray: 1 6; stroke-linecap: round; }
.bwl .bwl-arc--gold { stroke: var(--bwl-lamp); stroke-width: 2.5; stroke-linecap: round; }

.bwl .bwl-sky__land { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bwl-land-h); --bwl-far: #7f9c8c; --bwl-mid: #587a61; --bwl-near: #385b4f; --bwl-water: #a9c4cf; --bwl-home: #2c3a3a; --bwl-lit: 0; --bwl-barnlit: 0; }
.bwl .bwl-sky__land > svg:first-child { display: block; width: 100%; height: 100%; }
.bwl .bwl-land--far { fill: var(--bwl-far); }
.bwl .bwl-land--water { fill: var(--bwl-water); }
.bwl .bwl-land--mid { fill: var(--bwl-mid); }
.bwl .bwl-land--near { fill: var(--bwl-near); }
.bwl .bwl-sky__home { position: absolute; left: 11%; bottom: calc(var(--bwl-land-h) * 0.715 - 2px); width: 96px; height: 30px; overflow: visible; }
.bwl .bwl-home { fill: var(--bwl-home); }
.bwl .bwl-home__house rect { fill: #f6d68c; opacity: var(--bwl-lit); }
.bwl .bwl-home__barn path { fill: #f6d68c; opacity: var(--bwl-barnlit); }

/* The hours, written on the near bank. */
.bwl .bwl-sky__hours { position: absolute; left: 0; right: 0; bottom: 44px; height: 12px; pointer-events: none; }
.bwl .bwl-sky__hours span { position: absolute; top: 0; transform: translateX(-50%); font: 11px/12px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, 0.84); }
.bwl .bwl-sky__hours span.is-end { transform: translateX(-82%); }

/* The moments of the day, standing on the horizon at their hour. */
.bwl .bwl-sky__marks { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.bwl .bwl-mark { position: absolute; left: 0; top: calc(var(--bwl-yh) + 11px); width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; background: none; pointer-events: auto; transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.bwl .bwl-mark i { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 1.5px solid var(--white); background: var(--night); transform: rotate(45deg); transition: background-color 0.3s ease-out, transform 0.3s ease-out; }
.bwl .bwl-mark.is-lit i { background: var(--bwl-lamp); }
.bwl .bwl-mark.is-here i { transform: rotate(45deg) scale(1.5); }
.bwl .bwl-mark.is-fresh i { animation: bwl-lit 0.9s ease-out; }
@keyframes bwl-lit { from { box-shadow: 0 0 0 0 rgba(240, 195, 90, 0.9); } to { box-shadow: 0 0 0 16px rgba(240, 195, 90, 0); } }
.bwl .bwl-mark span { position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%); padding: 5px 9px 3px; background: rgba(39, 49, 59, 0.92); border: 1px solid rgba(255, 255, 255, 0.38); font: 12px/1.3 var(--serif); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--white); transition: background-color 0.3s ease-out, color 0.3s ease-out; }
.bwl .bwl-mark span::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 19px; margin-top: 1px; background: rgba(255, 255, 255, 0.75); }
.bwl .bwl-mark--b span { bottom: 68px; }
.bwl .bwl-mark--b span::after { height: 49px; }
.bwl .bwl-mark--c span { bottom: 98px; }
.bwl .bwl-mark--c span::after { height: 79px; }
.bwl .bwl-mark--start span { left: 0; transform: none; }
.bwl .bwl-mark--start span::after { left: 13px; }
.bwl .bwl-mark--end span { left: auto; right: 0; transform: none; }
.bwl .bwl-mark--end span::after { left: auto; right: 14px; }
.bwl .bwl-mark.is-lit span { border-left: 3px solid var(--bwl-lamp); }
.bwl .bwl-mark.is-here span { background: var(--bwl-lamp); border-color: var(--bwl-lamp); color: var(--night); }
.bwl .bwl-mark:hover span { background: var(--white); border-color: var(--white); color: var(--night); }

/* The words. They sit in the band of sky that is kept dark at every hour. */
.bwl .bwl-sky__hud { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "kicker now" "date now" "facts play"; column-gap: 32px; align-items: end; padding: 16px var(--bwl-edge) 0; }
.bwl .bwl-sky__kicker { grid-area: kicker; margin: 0 0 4px; font: italic 400 12px/14px var(--serif); letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); }
.bwl .bwl-sky__date { grid-area: date; margin: 0; font: 26px/31px var(--serif); letter-spacing: 0.09em; text-transform: uppercase; }
.bwl .bwl-sky__facts { grid-area: facts; margin: 6px 0 0; font-size: 14px; line-height: 21px; }
.bwl .bwl-sky__facts .bwl-f + .bwl-f::before { content: "\00b7"; margin: 0 0.55em; }
.bwl .bwl-sky__now { grid-area: now; margin: 0; text-align: right; white-space: nowrap; }
.bwl .bwl-sky__moment { margin-right: 14px; font: italic 13px/1.3 var(--serif); letter-spacing: 0.16em; text-transform: uppercase; }
.bwl .bwl-sky__time { display: inline-block; min-width: 4.6em; font: 26px/31px var(--serif); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.bwl .bwl-sky__play { grid-area: play; justify-self: end; margin: 6px 0 0; padding: 0 0 1px; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.75); font: 13px/20px var(--sans); color: var(--white); }
.bwl .bwl-sky__play:hover { border-bottom-color: var(--bwl-lamp); }

/* The price, on the near bank. */
.bwl .bwl-sky__ground { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 0 var(--bwl-edge) 9px; pointer-events: none; }
.bwl .bwl-sky__sofar { margin: 0 auto 0 0; padding-bottom: 5px; white-space: nowrap; font: italic 13px/1.3 var(--serif); letter-spacing: 0.14em; text-transform: uppercase; }
.bwl .bwl-sky__delta { display: inline-block; margin-left: 12px; font: 14px/1.3 var(--sans); font-style: normal; letter-spacing: 0; text-transform: none; opacity: 0; }
.bwl .bwl-sky__delta.is-on { animation: bwl-delta 3s ease-out both; }
@keyframes bwl-delta { 0% { opacity: 0; transform: translateY(6px); } 10% { opacity: 1; transform: none; } 78% { opacity: 1; } 100% { opacity: 0; } }
.bwl .bwl-sky__total { display: flex; align-items: baseline; gap: 16px; padding: 0; background: none; border: 0; color: var(--white); pointer-events: auto; }
.bwl .bwl-sky__sum { font: 30px/1 var(--serif); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.bwl .bwl-sky__see { white-space: nowrap; padding-bottom: 1px; border-bottom: 1px solid rgba(255, 255, 255, 0.75); font: 13px/1.4 var(--sans); }
.bwl .bwl-sky__total:hover .bwl-sky__see { border-bottom-color: var(--bwl-lamp); }
/* The way on, beside the price: it names the stretch after the one being read. */
.bwl .bwl-sky__next { margin-left: 12px; min-height: 34px; padding: 6px 18px 4px; background: var(--cream); border: 0; border-radius: 3px; font: 16px/1.3 var(--serif); letter-spacing: 0.03em; white-space: nowrap; color: var(--night); pointer-events: auto; transition: background-color 0.16s ease-out; }
.bwl .bwl-sky__next:hover { background: var(--white); }
.bwl.bwl--last .bwl-sky__see { display: none; }
.bwl .bwl-sky__next-short { display: none; }
.bwl .bwl-sky .bwl-sky__next:focus-visible { outline-offset: 3px; }

/* ------------------------------ the day, answered underneath ------------------------------ */

/* With the keyboard, the next control must not come to rest behind the header and the sky: each keeps this much clear above it.
   (The site's own scroll padding is added to it, so a control lands a little lower than it need, never hidden.) */
.bwl .bwl-day button, .bwl .bwl-day input, .bwl .bwl-day summary, .bwl .bwl-day a { scroll-margin-top: calc(var(--bwl-stick) + var(--bwl-sky-keep)); }
.bwl .bwl-nojs { max-width: 40em; margin: 0 auto; padding: 40px 32px; }
.bwl .bwl-moment + .bwl-moment { border-top: 1px solid var(--rule); }
.bwl .bwl-moment__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; max-width: 1240px; min-height: calc(100vh - var(--bwl-stick) - var(--bwl-sky-keep)); margin: 0 auto; padding: 48px 32px 64px; }
/* Beside the questions: the heading, the photograph and what the answers have added to the price.
   Where it all fits under the sky it stays in view while the questions scroll; where it does not, the price lines alone stay. */
.bwl .bwl-moment__side { align-self: stretch; min-width: 0; }
.bwl .bwl-moment__pin { display: contents; }
.bwl .bwl-moment__side.is-pinned .bwl-moment__pin { display: block; position: sticky; top: calc(var(--bwl-stick) + var(--bwl-sky-keep) + 28px); }
/* The questions, and under them the way on to the next stretch. */
.bwl .bwl-moment__main, .bwl .bwl-moment__body { min-width: 0; }
.bwl .bwl-next { margin: 36px 0 0; }
.bwl .bwl-next .btn { min-width: 220px; }
/* On a wide screen there is a second way on in the sky itself, beside the price (.bwl-sky__next): the sky stays on
   the screen, so there is always something in view that says the day carries on. */

.bwl .bwl-moment__kicker { margin: 0 0 10px; font: italic 14px/1.4 var(--serif); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bwl-gold-ink); }
.bwl .bwl-moment h2 { margin: 0; font: 400 clamp(26px, 2.6vw, 36px)/1.15 var(--serif); letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.bwl .bwl-brush { width: 190px; height: auto; margin: 16px 0 0; }
.bwl .bwl-moment__lead { max-width: 34em; margin: 16px 0 0; font-size: 17px; line-height: 1.65; }
.bwl .bwl-photo { position: relative; max-width: 400px; margin: 24px 0 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: #ddd6cc; }
.bwl .bwl-photo img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.bwl .bwl-photo--pair img { opacity: 0; transition: opacity 0.6s ease; }
.bwl .bwl-photo--pair img.is-on { opacity: 1; }
.bwl .bwl-moonnote { display: flex; align-items: center; gap: 16px; margin-top: 24px; }
.bwl .bwl-moonnote svg { flex: none; }
.bwl .bwl-moonnote p { margin: 0; font-size: 15px; line-height: 1.55; }
.bwl .bwl-moonnote b { display: block; font: 400 17px/1.4 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }

.bwl .bwl-label { margin: 32px 0 12px; font: italic 14px/1.4 var(--serif); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.bwl .bwl-moment__body > .bwl-label:first-child, .bwl .bwl-when > .bwl-label:first-child, .bwl .bwl-cols > div > .bwl-label:first-child { margin-top: 0; }
.bwl .bwl-fine { margin: 12px 0 0; font-size: 14px; line-height: 1.55; color: var(--bwl-quiet); }
/* The two ways to cater, each a heading over its own column of questions. */
.bwl .bwl-route { padding-bottom: 14px; border-bottom: 1px solid var(--slate); }
.bwl .bwl-route h3 { margin: 0; font: 400 23px/1.25 var(--serif); letter-spacing: 0.03em; color: var(--slate); }
.bwl .bwl-route p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--bwl-quiet); }
.bwl .bwl-route + .bwl-label { margin-top: 22px; }
.bwl .bwl-note { margin: 0; padding: 14px 18px; background: var(--white); border-left: 2px solid var(--gold); font-size: 15px; line-height: 1.6; }
.bwl * + .bwl-note { margin-top: 20px; }
.bwl .bwl-when { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
.bwl .bwl-swap { margin: 16px 0 0; font-size: 15px; line-height: 1.6; }

.bwl .bwl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bwl .bwl-chip { min-height: 44px; padding: 8px 16px; background: transparent; border: 1px solid var(--slate); border-radius: 3px; font: 16px/1.3 var(--serif); letter-spacing: 0.03em; color: var(--slate); transition: background-color 0.16s ease-out, color 0.16s ease-out; }
.bwl .bwl-chip:hover { background: rgba(81, 97, 112, 0.1); }
.bwl .bwl-chip.is-on { background: var(--slate); color: var(--white); }
.bwl .bwl-seg { display: inline-flex; border: 1px solid var(--slate); border-radius: 3px; }
.bwl .bwl-seg .bwl-chip { border: 0; border-radius: 0; }
.bwl .bwl-seg .bwl-chip + .bwl-chip { border-left: 1px solid var(--slate); }
.bwl .bwl-seg .bwl-chip:focus-visible { outline-offset: -4px; }
.bwl .bwl-seg .bwl-chip.is-on:focus-visible { outline-color: var(--white); }

.bwl .bwl-field { max-width: 340px; margin: 24px 0 0; }
.bwl .bwl-field label { display: block; margin-bottom: 8px; font: italic 14px/1.4 var(--serif); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.bwl .bwl-field input { width: 100%; min-height: 48px; padding: 8px 12px; background: var(--white); border: 1px solid var(--slate); border-radius: 3px; font: 19px/1.3 var(--serif); color: var(--slate); color-scheme: light; }
.bwl .bwl-pounds { display: flex; align-items: center; gap: 8px; font: 20px/1 var(--serif); color: var(--slate); }
.bwl .bwl-pounds input { max-width: 140px; }

/* Choices are lines on a card, as on a menu, with the price at the end of the line. */
.bwl .bwl-rows { border-top: 1px solid var(--slate); }
.bwl .bwl-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; width: 100%; padding: 14px 6px 14px 4px; background: none; border: 0; border-bottom: 1px solid var(--rule); text-align: left; color: var(--text); transition: background-color 0.16s ease-out; }
.bwl .bwl-row::before { content: ""; grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 14px; height: 14px; margin-top: 4px; border: 1px solid var(--slate); border-radius: 50%; transition: background-color 0.16s ease-out, box-shadow 0.16s ease-out; }
.bwl .bwl-row:hover { background: rgba(255, 255, 255, 0.6); }
.bwl .bwl-row.is-on { background: var(--white); }
.bwl .bwl-row.is-on::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px var(--white); }
.bwl .bwl-row__t { grid-column: 2; font: 17px/1.3 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.bwl .bwl-row__p { grid-column: 3; font: 18px/1.3 var(--serif); white-space: nowrap; color: var(--slate); }
.bwl .bwl-row__n { grid-column: 2 / -1; font-size: 14px; line-height: 1.5; color: var(--bwl-quiet); }
.bwl .bwl-row.is-on .bwl-row__t, .bwl .bwl-row.is-on .bwl-row__p { color: var(--green); }
.bwl .bwl-row.is-off { opacity: 0.6; }
/* A row that can be chosen with others has a square mark, where a one-of-several row has a round one. */
.bwl .bwl-row--tick::before { border-radius: 2px; }
/* Under a food that is chosen: how many guests it is for. It reads as part of the row above it. */
.bwl .bwl-row.is-on:has(+ .bwl-feed) { border-bottom-color: transparent; padding-bottom: 8px; }
.bwl .bwl-feed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 6px 14px 34px; background: var(--white); border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.4; color: var(--bwl-quiet); }
.bwl .bwl-feed label { font: italic 13px/1.4 var(--serif); letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); }
.bwl .bwl-feed input { width: 84px; min-height: 40px; padding: 6px 10px; background: var(--white); border: 1px solid var(--slate); border-radius: 3px; font: 18px/1.3 var(--serif); color: var(--slate); color-scheme: light; }
/* An elopement's meal is one column: it is dry hire only. */
.bwl .bwl-solo { max-width: 640px; }
.bwl .bwl-solo > .bwl-part:first-child > .bwl-label { margin-top: 0; }
/* A part of dry hire that our caterers have taken over is set aside: greyed, with a line to say why, and still
   there to choose. It comes back to full strength under the pointer or the keyboard. */
.bwl .bwl-route + .bwl-part > .bwl-label { margin-top: 22px; }
.bwl .bwl-part__dim { transition: opacity 0.2s ease-out; }
.bwl .bwl-part.is-aside .bwl-part__dim { opacity: 0.4; }
.bwl .bwl-part.is-aside .bwl-part__dim:hover, .bwl .bwl-part.is-aside .bwl-part__dim:focus-within { opacity: 1; }
.bwl .bwl-part.is-aside > .bwl-label { color: var(--bwl-quiet); }
.bwl .bwl-part__note { margin: 0 0 12px; padding: 9px 14px; background: var(--white); border-left: 2px solid var(--gold); font-size: 14px; line-height: 1.5; }
.bwl .bwl-row.is-aside { opacity: 0.45; }
.bwl .bwl-row.is-aside:hover, .bwl .bwl-row.is-aside:focus-visible { opacity: 1; }

.bwl .bwl-slider { margin-top: 32px; }
.bwl .bwl-moment__body > .bwl-slider:first-child { margin-top: 0; }
.bwl .bwl-slider label { display: flex; justify-content: space-between; align-items: baseline; font: italic 14px/1.4 var(--serif); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.bwl .bwl-slider output { font: normal 40px/1 var(--serif); letter-spacing: 0; }
.bwl .bwl-slider input { display: block; width: 100%; height: 36px; margin: 8px 0 0; accent-color: var(--green); }

.bwl .bwl-stepper { display: flex; align-items: center; gap: 12px; }
.bwl .bwl-stepper button { width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--slate); border-radius: 3px; font: 22px/1 var(--serif); color: var(--slate); }
.bwl .bwl-stepper button:disabled { opacity: 0.35; cursor: default; }
.bwl .bwl-stepper output { min-width: 7.2em; text-align: center; font: 18px/1.3 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.bwl .bwl-stepper span { font-size: 14px; color: var(--bwl-quiet); }
.bwl .bwl-stepper--count output { min-width: 3.6em; }
.bwl .bwl-stepper + .bwl-stepper { margin-top: 10px; }

/* What an answer added to the price, shown where it was answered. */
.bwl .bwl-receipt { position: sticky; top: calc(var(--bwl-stick) + var(--bwl-sky-keep) + 20px); margin-top: 28px; }
.bwl .bwl-moment__side.is-pinned .bwl-receipt { position: static; }
.bwl .bwl-receipt:empty { display: none; }
.bwl .bwl-receipt__line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 11px 0 10px; border-top: 1px solid var(--gold); }
.bwl .bwl-receipt__line:last-child { border-bottom: 1px solid var(--gold); }
.bwl .bwl-receipt__line b { display: block; font: 400 16px/1.35 var(--serif); letter-spacing: 0.03em; color: var(--slate); }
.bwl .bwl-receipt__line i { display: block; font-style: normal; font-size: 13px; line-height: 1.5; color: var(--bwl-quiet); }
.bwl .bwl-receipt__line em { font: normal 19px/1.3 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--slate); }
.bwl .bwl-receipt__line--aside em { color: var(--bwl-quiet); }
.bwl .bwl-receipt__line.is-new { animation: bwl-line-in 0.5s ease-out both; }
@keyframes bwl-line-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Ways to move the price: the same wedding in another light. */
.bwl .bwl-lights, .bwl .bwl-others { border-top: 1px solid var(--slate); }
.bwl .bwl-light { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "strip strip" "foot foot"; column-gap: 16px; align-items: center; padding: 14px 8px 12px; border-bottom: 1px solid var(--rule); }
.bwl .bwl-light.is-here { background: var(--white); }
.bwl .bwl-light:focus { outline: none; }
.bwl .bwl-light__name { grid-area: name; font: 17px/1.3 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.bwl .bwl-light__price { grid-area: price; justify-self: end; font: 19px/1.3 var(--serif); text-align: right; white-space: nowrap; color: var(--slate); }
.bwl .bwl-light.is-off .bwl-light__price { font-size: 15px; color: var(--bwl-quiet); }
.bwl .bwl-light__strip { grid-area: strip; position: relative; display: block; height: 14px; margin: 9px 0 8px; border: 1px solid rgba(39, 49, 59, 0.45); border-radius: 2px; }
.bwl .bwl-light__strip i { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--night); }
.bwl .bwl-light__foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.bwl .bwl-light__sun { font-size: 14px; color: var(--bwl-quiet); }
.bwl .bwl-light__act { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.bwl .bwl-light__act em { font-style: normal; font-size: 14px; color: var(--green); white-space: nowrap; }
.bwl .bwl-tag { padding: 4px 9px 3px; border: 1px solid var(--green); font: 400 12px/1.3 var(--serif); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.bwl .bwl-other { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "act act"; column-gap: 16px; align-items: start; padding: 14px 8px 12px; border-bottom: 1px solid var(--rule); }
.bwl .bwl-other__name { grid-area: name; }
.bwl .bwl-other .bwl-light__act { grid-area: act; min-height: 40px; margin-top: 6px; }
.bwl .bwl-other__name b { display: block; font: 400 17px/1.3 var(--serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); }
.bwl .bwl-other__name i { display: block; font-style: normal; font-size: 14px; line-height: 1.5; color: var(--bwl-quiet); }

/* The plan. */
.bwl .bwl-sentence { margin: 20px 0 0; font: clamp(19px, 1.7vw, 22px)/1.5 var(--serif); color: var(--slate); }
.bwl #bwlLight .bwl-label { margin-top: 28px; }
.bwl .bwl-lightline { margin: 0; font-size: 15px; line-height: 1.6; }
.bwl .bwl-ledger { border-top: 1px solid var(--slate); }
.bwl .bwl-ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.bwl .bwl-ledger b { display: block; font: 400 17px/1.35 var(--serif); letter-spacing: 0.03em; color: var(--slate); }
.bwl .bwl-ledger i { display: block; font-style: normal; font-size: 14px; line-height: 1.5; color: var(--bwl-quiet); }
.bwl .bwl-ledger em { font: normal 19px/1.3 var(--serif); white-space: nowrap; color: var(--slate); }
.bwl .bwl-ledger__total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--slate); color: var(--slate); }
.bwl .bwl-ledger__total span { font: 13px/1.3 var(--serif); letter-spacing: 0.1em; text-transform: uppercase; }
.bwl .bwl-ledger__total b { font: 400 44px/1 var(--serif); }
.bwl .bwl-ledger__food { margin: 14px 0 0; font-size: 15px; line-height: 1.6; }
.bwl .bwl-ledger__food b { font: 400 19px/1.3 var(--serif); color: var(--slate); }
.bwl .bwl-inc { margin-top: 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bwl .bwl-inc summary { padding: 13px 0 11px; font: italic 14px/1.4 var(--serif); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); cursor: pointer; }
.bwl .bwl-inc li { padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.bwl .bwl-inc__item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.bwl .bwl-inc__item b { display: block; font: 400 16px/1.35 var(--serif); letter-spacing: 0.03em; color: var(--slate); }
.bwl .bwl-inc__item i { display: block; font-style: normal; font-size: 14px; color: var(--bwl-quiet); }
.bwl .bwl-inc__item em { font: normal 16px/1.3 var(--serif); white-space: nowrap; color: var(--slate); }
.bwl .bwl-inc .bwl-fine { margin: 0; padding: 10px 0 12px; border-top: 1px solid var(--rule); }
.bwl .bwl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.bwl .bwl-actions--tight { margin-top: 16px; }

.bwl .bwl-hedge { max-width: 1240px; margin: 0 auto; padding: 28px 32px 56px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.6; color: var(--bwl-quiet); }

/* ------------------------------ wide screens ------------------------------ */

/* The two long stretches (the meal, and golden hour with the ways to move the price) set their questions in two
   columns beside the heading, so no column runs on alone. */
@media (min-width: 1100px) {
  .bwl .bwl-moment--wide .bwl-moment__in { grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); column-gap: 56px; }
  .bwl .bwl-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
}
@media (max-width: 1099px) {
  .bwl .bwl-cols > div + div { margin-top: 32px; }
}

/* ------------------------------ narrower screens ------------------------------ */

/* Below this the marks on the horizon keep their place but lose their labels: the words above name the moment. */
@media (max-width: 1040px) {
  .bwl .bwl-mark span { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }
  .bwl .bwl-mark span::after { display: none; }
  /* The line beside the price is kept to one row: the first two words and the "added" note step aside. */
  .bwl .bwl-sky__your, .bwl .bwl-sky__delta { display: none; }
  .bwl .bwl-moment__in { column-gap: 48px; }
}

@media (max-width: 720px) {
  .bwl { --bwl-sky-h: clamp(264px, 36vh, 320px); --bwl-sky-keep: 168px; --bwl-land-h: 104px; --bwl-edge: 20px; }
  /* The words take the full width, and "Play the day" becomes a small arrow at the end of the date. */
  .bwl .bwl-sky__hud { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "kicker now now" "date date play" "facts facts facts"; column-gap: 10px; align-items: baseline; padding-top: 8px; }
  .bwl .bwl-sky__kicker { margin: 0; font-size: 11px; line-height: 20px; letter-spacing: 0.14em; }
  .bwl .bwl-sky__date { margin-top: 1px; font-size: 16px; line-height: 21px; letter-spacing: 0.07em; }
  .bwl .bwl-sky__facts { margin-top: 3px; font-size: 12px; line-height: 16px; }
  .bwl .bwl-sky__extra, .bwl .bwl-sky__extra::before { display: none; }
  .bwl .bwl-sky__moment { margin-right: 8px; font-size: 11px; letter-spacing: 0.12em; }
  .bwl .bwl-sky__time { min-width: 0; font-size: 16px; line-height: 20px; }
  .bwl .bwl-sky__play { position: relative; align-self: start; width: 28px; height: 24px; margin: 0; padding: 0; border: 0; }
  .bwl .bwl-sky__play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .bwl .bwl-sky__play::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -6px 0 0 -4px; border-left: 10px solid var(--white); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
  .bwl .bwl-sky__hours { bottom: 34px; }
  .bwl .bwl-sky__hours span { font-size: 10px; }
  .bwl .bwl-sky__hours .is-minor { display: none; }
  .bwl .bwl-sky__home { width: 62px; height: 19px; bottom: calc(var(--bwl-land-h) * 0.7 - 2px); }
  .bwl .bwl-sky__moon { left: auto; right: 14%; }
  .bwl .bwl-sky__ground { padding-bottom: 6px; }
  .bwl .bwl-sky__sofar { padding-bottom: 3px; font-size: 11px; letter-spacing: 0.12em; }
  .bwl .bwl-sky__delta { margin-left: 8px; font-size: 12px; }
  .bwl .bwl-sky__sum { font-size: 23px; }
  .bwl .bwl-sky__see { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); border: 0; }
  /* On a phone the way on beside the price is one word, and low enough to clear the hours above it. */
  .bwl .bwl-sky__next { margin-left: 2px; min-height: 26px; padding: 3px 11px 2px; font-size: 13px; }
  .bwl .bwl-sky__next-full, .bwl .bwl-sky__your, .bwl .bwl-sky__delta { display: none; }
  .bwl .bwl-sky__next-short { display: inline; }
  .bwl .bwl-sky__total { gap: 10px; }
  .bwl .bwl-mark { top: calc(var(--bwl-yh) + 9px); width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .bwl .bwl-mark i { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }

  /* One column: the heading, the questions, then what they added to the price. */
  .bwl .bwl-moment__in { display: flex; flex-direction: column; min-height: 0; padding: 28px 20px 40px; }
  .bwl .bwl-moment__side, .bwl .bwl-moment__side.is-pinned .bwl-moment__pin, .bwl .bwl-moment__main { display: contents; }
  .bwl .bwl-moment__head { order: 1; }
  .bwl .bwl-moment__body { order: 2; margin-top: 24px; }
  .bwl .bwl-receipt, .bwl .bwl-moment__side.is-pinned .bwl-receipt { order: 3; position: static; margin-top: 22px; }
  .bwl .bwl-next { order: 4; margin-top: 28px; }
  .bwl .bwl-next .btn { width: 100%; }
  .bwl .bwl-moment__lead { font-size: 16px; }
  .bwl .bwl-photo { max-width: none; margin-top: 18px; aspect-ratio: 2 / 1; }
  .bwl .bwl-seg { display: flex; }
  .bwl .bwl-seg .bwl-chip { flex: 1 1 0; padding: 8px 4px; font-size: 14px; letter-spacing: 0.01em; }
  .bwl .bwl-row__t { font-size: 16px; }
  .bwl .bwl-slider input { height: 44px; }
  .bwl .bwl-ledger__total b { font-size: 38px; }
  .bwl .bwl-actions .btn { flex: 1 1 100%; }
  .bwl .bwl-actions--tight .btn, .bwl .bwl-light__act .btn { flex: none; }
  .bwl .bwl-hedge { padding: 24px 20px 40px; }
}

/* A window that is wide but not tall (most laptops): the questions are set a little closer, so more of each stretch shows at once. */
@media (min-width: 721px) and (max-height: 840px) {
  .bwl .bwl-moment__in { padding-top: 30px; padding-bottom: 36px; }
  .bwl .bwl-moment__kicker { margin-bottom: 6px; font-size: 13px; }
  .bwl .bwl-moment h2 { font-size: clamp(24px, 2.1vw, 30px); }
  .bwl .bwl-brush { width: 160px; margin-top: 12px; }
  .bwl .bwl-moment__lead { margin-top: 12px; font-size: 16px; line-height: 1.6; }
  .bwl .bwl-photo { max-width: 320px; margin-top: 18px; }
  .bwl .bwl-label { margin: 24px 0 10px; }
  .bwl .bwl-route + .bwl-label, .bwl .bwl-route + .bwl-part > .bwl-label { margin-top: 18px; }
  .bwl .bwl-row { padding-top: 11px; padding-bottom: 11px; }
  .bwl .bwl-when { margin-top: 20px; padding-top: 18px; }
  .bwl .bwl-receipt { margin-top: 20px; }
  .bwl .bwl-receipt__line { padding: 8px 0 7px; }
  .bwl .bwl-next { margin-top: 28px; }
  .bwl .bwl-moment__side.is-pinned .bwl-moment__pin { top: calc(var(--bwl-stick) + var(--bwl-sky-keep) + 22px); }
}

/* A short window (a phone on its side): the sky scrolls away with the page instead of holding most of it. */
@media (max-height: 560px) {
  .bwl .bwl-sky { position: relative; top: 0; }
  .bwl .bwl-moment__side.is-pinned .bwl-moment__pin, .bwl .bwl-receipt { position: static; }
}

/* Less motion: the script marks the tool (.bwl--calm) when the visitor asks for it. The same rules follow the setting directly too. */
.bwl.bwl--calm *, .bwl.bwl--calm *::before, .bwl.bwl--calm *::after { animation: none !important; transition: none !important; }
.bwl.bwl--calm .bwl-sky__play { display: none; }
@media (prefers-reduced-motion: reduce) {
  .bwl *, .bwl *::before, .bwl *::after { animation: none !important; transition: none !important; }
  .bwl .bwl-sky__play { display: none; }
}
