/* Plan a ceremony: the running-order planner.
   Row 1: the time you have (venue tiles). Row 2: a sticky running-time band across the top, the parts list on the
   left and a printed-looking order of service on the right (sticky under the band). Row 3: how long things take.
   Colours per part: spoken words yew, music sage, tributes and readings bronze, reflection blush. Robin marks only. */

.pl { --paper: #FBF8F2; --pl-top: 92px; --band-h: 210px; }
.pl [hidden] { display: none !important; }
@media (max-width: 1180px) { .pl { --pl-top: 80px; } }

[data-kind="words"] { --k: var(--yew); --k-ink: var(--linen); --k-pat: none; }
[data-kind="music"] { --k: var(--sage); --k-ink: var(--yew-deep); --k-pat: none; }
[data-kind="tribute"] { --k: var(--bronze); --k-ink: #FFFDF8; --k-pat: none; }
[data-kind="reflection"] { --k: var(--blush); --k-ink: var(--umber); --k-pat: repeating-linear-gradient(135deg, transparent 0 6px, rgba(140, 115, 85, .22) 6px 7.5px); }

.no-js .pl-js { display: none !important; }
.pl-nojs { display: none; }
.no-js .pl-nojs { display: block; margin: 0 0 20px; padding: 16px 22px; background: var(--linen); border-left: 2px solid var(--robin); font-weight: 500; }
.pl-nojs a { color: var(--bronze-deep); font-weight: 600; }

/* ---------------- row 1: the time you have ---------------- */
.pl-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(28px, 5vw, 96px); align-items: end; margin-bottom: clamp(30px, 3.6vw, 52px); }
.pl-intro .lede { margin: 0; }
.pl-where { border: 0; margin: 0; padding: 0; min-width: 0; }
.pl-legend, .pl-add__label { padding: 0; margin: 0 0 14px; font-size: .9rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze-deep); }
.pl-venues { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pl-venue { position: relative; display: block; height: 100%; cursor: pointer; }
.pl-venue__input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pl-venue__card { position: relative; display: flex; flex-direction: column; height: 100%; min-height: 146px; padding: 18px 48px 16px 20px; background: var(--linen); border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--rule); transition: background-color .55s var(--ease), color .55s var(--ease), box-shadow .55s var(--ease), transform .6s var(--ease); pointer-events: none; }
/* the radio ring (a circle because it is a radio) with a robin dot when chosen */
.pl-venue__card::before { content: ""; position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #BFAE94; transition: box-shadow .45s var(--ease); }
.pl-venue__card::after { content: ""; position: absolute; top: 23px; right: 23px; width: 8px; height: 8px; border-radius: 50%; background: var(--robin); transform: scale(0); transition: transform .5s var(--ease); }
.pl-venue__place { font-family: var(--serif); font-size: clamp(1.14rem, 1.25vw, 1.3rem); line-height: 1.2; }
.pl-venue__sub { font-size: .95rem; line-height: 1.35; color: var(--umber-soft); margin-top: 3px; transition: color .55s var(--ease); }
.pl-venue__fig { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; margin-top: auto; padding-top: 12px; }
.pl-venue__num { font-family: var(--serif); font-size: clamp(2rem, 2.4vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums lining-nums; min-width: 1.2ch; }
.pl-venue__unit, .pl-venue__about { font-size: .95rem; font-weight: 500; }
.pl-venue__about { color: var(--umber-soft); transition: color .55s var(--ease); }
.pl-venue__about--own { width: 100%; }
.pl-venue:hover .pl-venue__card { box-shadow: 0 0 0 1px var(--bronze), 0 18px 34px -24px rgba(58, 50, 42, .55); transform: translateY(-3px); }
.pl-venue__input:checked + .pl-venue__card { background: var(--yew); color: var(--linen); box-shadow: 0 0 0 1px var(--yew), 0 24px 40px -26px rgba(36, 48, 38, .85); }
.pl-venue__input:checked + .pl-venue__card .pl-venue__sub,
.pl-venue__input:checked + .pl-venue__card .pl-venue__about { color: var(--sage-light); }
.pl-venue__input:checked + .pl-venue__card::before { box-shadow: inset 0 0 0 1.5px var(--sage-light); }
.pl-venue__input:checked + .pl-venue__card::after { transform: scale(1); }
.pl-venue__input:focus-visible + .pl-venue__card { outline: 2px solid var(--umber); outline-offset: 3px; }

.pl-detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: center; margin-top: 18px; padding: 14px 22px; min-height: 76px; background: rgba(246, 240, 231, .72); border-left: 2px solid var(--bronze); }
.pl-detail__text { margin: 0; }
.pl-detail__ctrl { display: flex; align-items: center; }
.pl-note { margin: 14px 0 0; font-size: .95rem; color: var(--umber-soft); }

/* tick box (early or late slot) */
.pl-check { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; cursor: pointer; }
.pl-check__input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pl-check__box { position: relative; width: 24px; height: 24px; flex: none; background: var(--paper); box-shadow: inset 0 0 0 1.5px #BFAE94; transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.pl-check__box::after { content: ""; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid var(--linen); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease); }
.pl-check__input:checked + .pl-check__box { background: var(--yew); box-shadow: inset 0 0 0 1.5px var(--yew); }
.pl-check__input:checked + .pl-check__box::after { transform: rotate(45deg) scale(1); }
.pl-check__input:focus-visible + .pl-check__box { outline: 2px solid var(--umber); outline-offset: 3px; }

/* length slider (burial, memorial) */
.pl-len { display: flex; align-items: center; gap: 16px; }
.pl-len__label { font-weight: 600; }
.pl-len__out { min-width: 5.2ch; font-variant-numeric: tabular-nums; font-weight: 500; }
.pl-len__out b { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.pl-range { --fill: 36%; -webkit-appearance: none; appearance: none; width: clamp(180px, 20vw, 300px); height: 44px; margin: 0; background: transparent; cursor: pointer; }
.pl-range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--bronze) var(--fill), var(--rule) var(--fill)); }
.pl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; background: var(--yew); border: 3px solid var(--linen); box-shadow: 0 0 0 1px var(--yew); transition: transform .35s var(--ease); }
.pl-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.pl-range::-moz-range-track { height: 4px; background: var(--rule); border: 0; }
.pl-range::-moz-range-progress { height: 4px; background: var(--bronze); }
.pl-range::-moz-range-thumb { width: 20px; height: 20px; background: var(--yew); border: 3px solid var(--linen); border-radius: 0; box-shadow: 0 0 0 1px var(--yew); }
.pl-range:focus { outline: none; }
.pl-range:focus-visible { outline: 2px solid var(--umber); outline-offset: 2px; }

/* ---------------- row 2: the running time band (sticky) ---------------- */
.pl-work { position: relative; margin-top: clamp(56px, 6vw, 96px); }
.pl-band { position: sticky; top: var(--pl-top); z-index: 5; padding: 20px clamp(20px, 2.4vw, 36px) 12px; background: var(--linen); border-radius: var(--r); box-shadow: 0 0 0 1px var(--rule), 0 26px 50px -40px rgba(58, 50, 42, .6); transition: background-color .7s var(--ease), box-shadow .7s var(--ease); }
.pl-band.is-over { background: #F7EAE1; box-shadow: 0 0 0 1px #DCC0AE, 0 26px 50px -40px rgba(58, 50, 42, .6); }
.pl-band__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; gap: 12px clamp(20px, 2.4vw, 40px); align-items: center; margin-bottom: 14px; }
.pl-read__line { display: flex; align-items: baseline; gap: 10px; margin: 0; line-height: 1; }
.pl-read__num { font-family: var(--serif); font-size: clamp(2.5rem, 3.4vw, 3.4rem); font-weight: 450; line-height: .95; font-variant-numeric: tabular-nums lining-nums; min-width: 1.3ch; text-align: right; }
.pl-read__of { font-size: 1.1rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.pl-status { position: relative; margin: 8px 0 0; font-size: 1rem; line-height: 1.45; color: var(--umber-soft); }
.pl-band.is-over .pl-status { color: #7A3F1D; font-weight: 500; padding-left: 16px; }
.pl-band.is-over .pl-status::before { content: ""; position: absolute; left: 0; top: .52em; width: 7px; height: 7px; border-radius: 50%; background: var(--robin); }
.pl-band__mid { display: grid; min-width: 0; }
.pl-band__mid > * { grid-area: 1 / 1; }
.pl-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: .93rem; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.pl-key li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.pl-sw { width: 14px; height: 14px; flex: none; background: var(--k); background-image: var(--k-pat); box-shadow: inset 0 0 0 1px rgba(58, 50, 42, .12); }
.pl-cap { margin: 0; align-self: center; text-align: center; font-size: .98rem; line-height: 1.4; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.pl-cap strong { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; }
.pl-band.has-cap .pl-cap { opacity: 1; transform: none; }
.pl-band.has-cap .pl-key { opacity: 0; transform: translateY(-6px); }
.pl-band__acts { display: flex; gap: 10px; }
.pl-band__acts .btn, .pl-acts-m .btn { min-height: 50px; padding: 10px 20px; font-size: .98rem; }

/* the bar: segments share the space by flex-grow (one minute = one unit), the spare time fills the rest */
.pl-bar { position: relative; height: 62px; overflow-x: clip; overflow-clip-margin: 8px; }
.pl-track { display: flex; height: 100%; overflow: clip; border-radius: var(--r-sm); background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(140, 115, 85, .13) 9px 10px), var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.pl-seg { position: relative; flex: 0 0 0; min-width: 0; display: flex; align-items: flex-end; overflow: clip; background-color: var(--k); background-image: var(--k-pat); box-shadow: inset -2px 0 0 var(--linen); cursor: default; transition: box-shadow .35s var(--ease), filter .35s var(--ease); }
.pl-band.is-over .pl-seg { box-shadow: inset -2px 0 0 #F7EAE1; }
/* labels wrap between words (never inside one); planner.js shows a label only when every line fits */
.pl-seg__lbl { display: block; max-width: 100%; padding: 0 8px 9px; font-size: .9rem; font-weight: 600; line-height: 1.2; color: var(--k-ink); white-space: normal; overflow-wrap: normal; hyphens: none; overflow: clip; opacity: 0; transition: opacity .35s var(--ease); }
.pl-seg.is-tight .pl-seg__lbl { font-size: .8rem; padding: 0 6px 8px; }
.pl-seg:not(.has-room) .pl-seg__lbl { display: none; }
.pl-seg.has-room .pl-seg__lbl { opacity: 1; }
.pl-seg.is-lit, .pl-band .pl-seg.is-lit { box-shadow: inset 0 0 0 2px var(--umber), inset -2px 0 0 var(--linen); filter: saturate(1.15) brightness(1.04); }
.pl-seg.is-now { filter: brightness(1.07) saturate(1.1); }
.pl-spare { flex: 0 0 0; min-width: 0; }
.pl-over { position: absolute; inset: 0; pointer-events: none; border-radius: var(--r-sm); background: repeating-linear-gradient(135deg, rgba(58, 50, 42, 0) 0 5px, rgba(58, 50, 42, .38) 5px 7px); clip-path: inset(0 0 0 100%); }
.pl-limit { position: absolute; top: -8px; bottom: -34px; left: 0; width: 100%; pointer-events: none; opacity: 0; }
.pl-limit__line { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--umber); }
.pl-head { position: absolute; top: -7px; bottom: -3px; left: 0; width: 100%; pointer-events: none; opacity: 0; }
.pl-head__line { position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: rgba(58, 50, 42, .55); }
.pl-head__line::before { content: ""; position: absolute; left: 50%; top: 0; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--robin); box-shadow: 0 0 0 2px var(--linen); }

.pl-axis { --scale: 45; position: relative; height: 34px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pl-ticks { position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(140, 115, 85, .75) 0 1px, transparent 1px calc(500% / var(--scale))) 0 0 / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(140, 115, 85, .4) 0 1px, transparent 1px calc(100% / var(--scale))) 0 0 / 100% 5px no-repeat; }
.pl-axis__lbl { position: absolute; top: 12px; transform: translateX(-50%); font-size: .9rem; line-height: 1.3; color: var(--umber-soft); white-space: nowrap; transition: left .8s var(--ease), opacity .4s var(--ease); }
.pl-axis__lbl[data-t="0"] { transform: none; }
.pl-axis__lbl.is-end { transform: translateX(-100%); }
.pl-axis__lbl.is-limit { color: var(--umber); font-weight: 600; }
.pl-axis__lbl.is-out { opacity: 0; }

/* ---------------- row 2: parts list and order of service ---------------- */
.pl-cols { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(24px, 3vw, 48px); align-items: start; margin-top: 24px; }

/* framed panels: one rounded corner and the brochure's thin double rule inside */
.pl-panel, .pl-sheet { position: relative; border-radius: var(--r); }
.pl-panel::before, .pl-sheet::before, .pl-panel::after, .pl-sheet::after { content: ""; position: absolute; pointer-events: none; }
.pl-panel::before, .pl-sheet::before { inset: 10px; border: 1px solid rgba(140, 115, 85, .6); border-radius: 22px 0 0 0; }
.pl-panel::after, .pl-sheet::after { inset: 14px; border: 1px solid rgba(140, 115, 85, .3); border-radius: 18px 0 0 0; }

.pl-panel { padding: clamp(30px, 3vw, 44px); background: var(--linen); box-shadow: 0 0 0 1px var(--rule), 0 30px 60px -48px rgba(58, 50, 42, .55); }
.pl-parts__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 16rem); gap: 18px 32px; align-items: end; margin-bottom: 14px; }
.pl-parts__head .h3 { margin-bottom: 8px; }
.pl-parts__note { margin: 0; color: var(--umber-soft); font-size: 1rem; line-height: 1.55; }
.pl-name label { font-size: .98rem; }
.pl-name .input { min-height: 50px; padding: 10px 16px; background: var(--paper); }
.pl-parts__how { margin: 0 0 18px; font-size: .98rem; line-height: 1.55; }

.pl-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pl-row { position: relative; display: grid; grid-template-columns: 26px 52px minmax(0, 1fr) 152px 92px; align-items: center; gap: 8px 10px; min-height: 68px; padding: 8px 10px 8px 12px; background: var(--paper); border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--rule); transition: box-shadow .4s var(--ease), background-color .4s var(--ease); }
/* the colour key: centred on the row, set just inside the left edge so its top clears the rounded corner */
.pl-row::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 4px; border-radius: 2px; background-color: var(--k); background-image: var(--k-pat); transition: opacity .4s var(--ease); }
.pl-row:hover, .pl-row.is-lit { box-shadow: 0 0 0 1px var(--bronze); }
.pl-row.is-drag { z-index: 3; background: #FFFDF9; box-shadow: 0 0 0 1px var(--bronze), 0 26px 44px -20px rgba(58, 50, 42, .5); }
.pl-row.is-off { background: transparent; box-shadow: 0 0 0 1px var(--rule); }
.pl-row.is-off::before { opacity: .3; }
.pl-row.is-off .pl-row__name, .pl-row.is-off .pl-step { opacity: .55; }
.pl-row__name, .pl-step { transition: opacity .4s var(--ease); }

.pl-row__grip { align-self: stretch; min-height: 44px; cursor: grab; touch-action: none; background: radial-gradient(circle, var(--bronze) 1.4px, transparent 1.9px) center / 7px 7px; background-repeat: space; margin: 12px 2px; }
.pl-row.is-drag .pl-row__grip { cursor: grabbing; }

/* on/off switch: square, like the buttons */
.pl-switch { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 44px; cursor: pointer; }
.pl-switch__input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pl-switch__track { position: relative; width: 44px; height: 24px; background: #D9CDBB; transition: background-color .4s var(--ease); }
.pl-switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: var(--paper); box-shadow: 0 1px 2px rgba(58, 50, 42, .3); transition: transform .45s var(--ease); }
.pl-switch__input:checked + .pl-switch__track { background: var(--yew); }
.pl-switch__input:checked + .pl-switch__track::after { transform: translateX(20px); }
.pl-switch__input:focus-visible + .pl-switch__track { outline: 2px solid var(--umber); outline-offset: 3px; }

.pl-row__name { min-width: 0; display: grid; gap: 1px; }
.pl-row__title { font-family: var(--serif); font-size: 1.1rem; line-height: 1.28; cursor: pointer; }
.pl-row__edit { width: 100%; min-height: 40px; padding: 4px 0; font-family: var(--serif); font-size: 1.1rem; color: var(--umber); background: transparent; border: 0; border-bottom: 1.5px dashed var(--bronze); border-radius: 0; }
.pl-row__edit:focus { outline: none; border-bottom-style: solid; border-bottom-color: var(--yew); }
.pl-row__meta { display: flex; align-items: center; gap: 12px; min-height: 22px; }
.pl-row__kind { font-size: .9rem; color: var(--umber-soft); line-height: 1.3; }
.pl-row__remove { min-height: 44px; margin: -11px 0; padding: 0 4px; background: none; border: 0; font-size: .9rem; font-weight: 600; color: var(--bronze-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pl-row__remove:hover { color: var(--umber); }

.pl-step { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; background: var(--linen); box-shadow: inset 0 0 0 1px var(--rule); }
.pl-step__btn, .pl-move__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: var(--yew); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.pl-step__btn svg, .pl-move__btn svg { width: 16px; height: 16px; }
.pl-step__btn:hover:not(:disabled), .pl-move__btn:hover:not(:disabled) { background: var(--vellum); }
.pl-step__btn:active:not(:disabled), .pl-move__btn:active:not(:disabled) { background: var(--yew); color: var(--linen); }
.pl-step__btn:disabled, .pl-move__btn:disabled { opacity: .3; cursor: default; }
.pl-step__btn:focus-visible, .pl-move__btn:focus-visible { outline-offset: -2px; }
.pl-step__val { text-align: center; font-size: .92rem; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-step__val b { display: inline-block; font-size: 1.12rem; font-weight: 600; }
.pl-move { display: flex; gap: 4px; }
.pl-move__btn { box-shadow: inset 0 0 0 1px var(--rule); }

.no-js .pl-row { grid-template-columns: minmax(0, 1fr) auto; padding-left: 20px; }
.no-js .pl-step { background: none; box-shadow: none; display: block; }

/* add another part */
.pl-add { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.pl-add__list { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-add__btn { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 12px; background: transparent; border: 1.5px dashed #BFAE94; font-weight: 600; font-size: .98rem; cursor: pointer; transition: border-color .35s var(--ease), background-color .35s var(--ease), opacity .35s var(--ease); }
.pl-add__plus { display: grid; place-items: center; width: 24px; height: 24px; background: var(--k); background-image: var(--k-pat); color: var(--k-ink); }
.pl-add__plus svg { width: 14px; height: 14px; }
.pl-add__mins { font-weight: 500; color: var(--umber-soft); font-variant-numeric: tabular-nums; }
.pl-add__btn:hover:not(:disabled) { border-style: solid; border-color: var(--bronze); background: var(--paper); }
.pl-add__btn:disabled { opacity: .4; cursor: default; }

.pl-parts__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 20px; }
.pl-reset, .pl-undo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; background: none; border: 0; font-weight: 600; color: var(--bronze-deep); cursor: pointer; }
.pl-reset svg { width: 20px; height: 20px; transition: transform .6s var(--ease); }
.pl-reset:hover svg { transform: rotate(-200deg); }
.pl-reset span, .pl-undo { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.pl-undo { padding: 0 14px; background: var(--yew); color: var(--linen); text-decoration: none; }
.pl-saved { margin: 0 0 0 auto; font-size: .92rem; color: var(--umber-soft); }

/* the order of service card */
.pl-sheet { padding: clamp(30px, 2.6vw, 40px) clamp(30px, 3vw, 48px) 28px; background: var(--paper); text-align: center; box-shadow: 0 0 0 1px var(--rule), 0 44px 70px -50px rgba(58, 50, 42, .7); }
.pl-sheet__crest { width: 44px; height: auto; margin: 0 auto 6px; }
.pl-sheet__title { font-size: clamp(1.6rem, 2vw, 2rem); font-style: italic; font-weight: 400; line-height: 1.15; }
.pl-sheet__for { margin: 6px 0 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; color: var(--bronze-deep); }
.pl-sheet__meta { margin: 6px 0 14px; font-size: .95rem; color: var(--umber-soft); }
.pl-sheet__rule { display: block; width: 76px; height: 5px; margin: 0 auto 14px; border-top: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze); }
.pl-os { list-style: none; margin: 0; padding: 0; text-align: left; }
.pl-os__item { display: grid; grid-template-columns: 3.1em minmax(0, max-content) minmax(12px, 1fr) auto; align-items: baseline; gap: 10px; padding: 3px 8px; margin: 0 -8px; line-height: 1.34; transition: background-color .35s var(--ease); }
.pl-os__item.is-lit { background: rgba(234, 214, 202, .55); }
.pl-os__t { font-size: .92rem; font-weight: 600; color: var(--bronze-deep); font-variant-numeric: tabular-nums; }
.pl-os__n { font-family: var(--serif); font-size: 1.04rem; }
.pl-os__lead { align-self: end; margin-bottom: .42em; border-bottom: 1.5px dotted rgba(140, 115, 85, .55); }
.pl-os__m { font-size: .9rem; color: var(--umber-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-os__empty { padding: 10px 0; text-align: center; color: var(--umber-soft); font-style: italic; font-family: var(--serif); }
.pl-sheet__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.pl-sheet__total { margin: 0 0 4px; font-family: var(--serif); font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.pl-sheet__by { margin: 0; font-size: .9rem; color: var(--umber-soft); }
.pl-acts-m { display: none; }

/* sticky under the band only when the whole card fits below it (planner.js sets .sheet-fits) */
@media (min-width: 1101px) {
  .pl.sheet-fits .pl-sheet-col { position: sticky; top: calc(var(--pl-top) + var(--band-h) + 18px); }
}

/* ---------------- row 3: how long things take ---------------- */
.pl-tips__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.pl-tips__pic { aspect-ratio: 4 / 5; width: min(100% - 14px, calc(var(--media-cap) * .8)); }
.pl-tips__pic .frame__clip { height: 100%; }
.pl-tips__pic .frame__clip img { position: relative; top: -6%; height: 112%; }
.pl-tips .h2 { margin-bottom: 18px; }
.pl-tips .lede { margin-bottom: 0; }
.pl-facts { list-style: none; margin: clamp(28px, 3vw, 40px) 0 clamp(30px, 3vw, 40px); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px clamp(28px, 3vw, 48px); }
.pl-fact { position: relative; padding-top: 18px; }
.pl-fact__rule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--bronze); transform-origin: left center; }
.pl-fact__rule::after { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--robin); }
.pl-fact__fig { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(1.8rem, 2.3vw, 2.3rem); line-height: 1.1; color: var(--bronze-deep); font-variant-numeric: lining-nums; }
.pl-fact__fig small { font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--umber-soft); }
.pl-fact__h { font-size: 1.28rem; margin-bottom: 6px; }
.pl-fact p:last-child { margin: 0; font-size: 1.02rem; line-height: 1.6; }

/* ---------------- smaller screens: controls above the result, the running time stays in view ---------------- */
@media (max-width: 1300px) {
  .pl-band__top { grid-template-columns: minmax(0, 1fr) auto; }
  .pl-band__mid { grid-column: 1 / -1; grid-row: 2; }
  .pl-key { justify-content: flex-start; }
  .pl-cap { text-align: left; }
  .pl-row { grid-template-columns: 26px 52px minmax(0, 1fr) 140px 92px; }
}
@media (max-width: 1100px) {
  .pl-intro { grid-template-columns: 1fr; }
  .pl-venues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-cols { grid-template-columns: 1fr; }
  .pl-band { padding: 14px 18px 8px; }
  .pl-band__top { grid-template-columns: 1fr; margin-bottom: 10px; }
  .pl-band__mid, .pl-band__acts { display: none; }
  .pl-read__num { font-size: 2.3rem; }
  .pl-status { margin-top: 4px; font-size: .95rem; }
  .pl-bar { height: 46px; }
  .pl-seg__lbl, .pl-seg.is-tight .pl-seg__lbl { font-size: .76rem; padding: 0 7px 6px; }
  .pl-acts-m { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
  .pl-sheet-col { max-width: 640px; }
  .pl-tips__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pl-detail { grid-template-columns: 1fr; padding: 14px 16px; }
  .pl-len { flex-wrap: wrap; gap: 4px 14px; }
  .pl-range { width: 100%; order: 3; }
  .pl-parts__head { grid-template-columns: 1fr; }
  .pl-panel { padding: 26px 18px 24px; }
  .pl-panel::before { inset: 7px; border-radius: 25px 0 0 0; }
  .pl-panel::after { inset: 10px; border-radius: 22px 0 0 0; }
  .pl-row { grid-template-columns: 22px 52px minmax(0, 1fr) auto; grid-template-areas: "grip sw name name" "grip step step move"; padding: 8px 8px 10px 10px; }
  .pl-row::before { left: 3px; top: 20px; bottom: 20px; width: 3px; }
  .pl-row__grip { grid-area: grip; margin: 6px 0; }
  .pl-switch { grid-area: sw; }
  .pl-row__name { grid-area: name; }
  .pl-step { grid-area: step; width: 150px; justify-self: start; }
  .pl-move { grid-area: move; }
  .no-js .pl-row { grid-template-areas: none; }
  .no-js .pl-row__name, .no-js .pl-step { grid-area: auto; }
  .pl-saved { margin-left: 0; width: 100%; }
  .pl-ticks { background-size: 100% 10px, 0 0; }
  .pl-axis { height: 28px; }
  .pl-axis__lbl { top: 10px; font-size: .9rem; }
  .pl-limit { bottom: -28px; }
  .pl-read__of { font-size: 1rem; }
  .pl-sheet { padding: 32px 22px 26px; }
  .pl-acts-m .btn { width: 100%; }
  .pl-facts { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 420px) {
  .pl-venue__card { padding: 14px 36px 14px 14px; min-height: 132px; }
  .pl-venue__card::before { top: 14px; right: 12px; }
  .pl-venue__card::after { top: 19px; right: 17px; }
  .pl-os__item { grid-template-columns: 2.8em minmax(0, 1fr) auto; }
  .pl-os__lead { display: none; }
}

/* ---------------- print: only the order of service ---------------- */
@media print {
  @page { margin: 16mm; }
  html, body { background: #fff !important; }
  body > *:not(main) { display: none !important; }
  main { padding: 0 !important; }
  main > *:not(#planner) { display: none !important; }
  #planner { padding: 0 !important; background: #fff !important; }
  #planner::after { display: none !important; }
  #planner > .wrap > *:not(.pl-work) { display: none !important; }
  .pl-work { margin: 0 !important; }
  .pl-work > *:not(.pl-cols) { display: none !important; }
  .pl-cols { display: block !important; margin: 0 !important; }
  .pl-cols > *:not(.pl-sheet-col) { display: none !important; }
  .pl-sheet-col { position: static !important; max-width: none !important; }
  .pl-sheet-col > *:not(.pl-sheet) { display: none !important; }
  .pl-sheet { max-width: 150mm; margin: 0 auto; box-shadow: none !important; transform: none !important; opacity: 1 !important; background: #fff !important; padding: 16mm 14mm 12mm; }
  .pl-sheet * { opacity: 1 !important; transform: none !important; }
  .pl-sheet__crest { width: 70px; }
  .pl-os__item.is-lit { background: none; }
  .pl-os__item { break-inside: avoid; }
}

/* QA round 1: labels wrapping hidden inputs stay clickable everywhere */
.pl-venue, .pl-switch, .pl-check { cursor: pointer; }
/* QA round 1: the tips section fits one 1440x900 screen */
.pl-tips { padding-block: clamp(60px, 6vw, 96px); }
.pl-tips__pic { width: min(100% - 14px, calc(var(--media-cap) * .68)); }
.pl-facts { margin: clamp(22px, 2.4vw, 32px) 0 clamp(24px, 2.4vw, 32px); gap: 24px clamp(28px, 3vw, 48px); }

/* QA round 2: ambient feathers behind the tool, and add buttons that use the full row on phones */
.pl { isolation: isolate; overflow: clip; }
.pl__feathers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
@media (max-width: 700px) { .pl-add__btn { width: 100%; } .pl-add__btn > span { flex: none; } .pl-add__btn > span:nth-child(2) { flex: 1 1 auto; min-width: 0; } .pl-add__btn { text-align: left; } }
