/* The art lighting planner (lighting.py, js/lighting-planner.js). Linked by head(extra=) on planner pages only, so
   THEME_CSS is not bumped site-wide. Site tokens from css/theme.css (:root): --bg, --surface, --ink, --soft, --muted,
   --taupe, --line, --serif, --sans, --he. The planner's own accents are the brass of the light and the three zone colors. */
.lp { --lp-brass: #D6B67A; --lp-brass-d: #B8935A; --lp-sage: #8FB89A; --lp-amber: #D9A25B; --lp-wrong: #C8644E; --lp-zc: var(--lp-sage);
  --lp-ar: 1920 / 1072; position: relative; max-width: 1120px; margin: clamp(28px, 4vw, 56px) auto 0; color: var(--ink); }
.lp [data-l="he"] { font-family: var(--he); }
.lp .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp button { font: inherit; color: inherit; }
.lp .lbl { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lp .lbl [data-l="he"] { letter-spacing: 0.02em; font-size: 13px; text-transform: none; }

/* the answer: the page's question, two sentences, the default numbers */
.lp-answer { max-width: 760px; margin-bottom: 22px; }
.lp-answer h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 10px 0 0; text-wrap: balance; }
.lp-lead { margin: 12px 0 0; font-size: 17px; line-height: 1.65; color: var(--soft); }
.lp-facts { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: rgba(255,255,255,0.02); }
.lp-facts-t { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.lp-k { color: var(--taupe); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; margin-right: 6px; }
.lp-facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; }
.lp-facts dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lp-facts dt [data-l="he"] { letter-spacing: 0; text-transform: none; font-size: 13px; }
.lp-facts dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }

/* the stage: the photograph is an ordinary image until the engine draws over it */
.lp-stagewrap { position: relative; }
.lp-stage { position: relative; width: 100%; aspect-ratio: var(--lp-ar); max-height: max(330px, calc(100vh - 300px)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #0B0A0E; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.lp-live .lp-stage { cursor: ew-resize; }
.lp-stage img.lp-plate, .lp-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 16%; }
.lp-stage canvas { opacity: 0; transition: opacity .35s ease; }
.lp-live .lp-stage canvas { opacity: 1; }
.lp-stage.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid rgba(242,240,236,0.25); border-top-color: var(--lp-brass); animation: lp-spin .9s linear infinite; z-index: 5; }
@keyframes lp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lp-stage.loading::after { animation: none; } }
.lp-proposal { position: absolute; right: 12px; bottom: 10px; z-index: 3; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); background: rgba(15,15,20,0.66); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; pointer-events: none; }
.lp-proposal [data-l="he"] { letter-spacing: 0; font-size: 12px; }

/* the readout: over the photo's top right on wide screens, above the before and after line; under the stage on phones */
.lp-read { position: absolute; right: 12px; top: 11px; z-index: 4; text-align: right; background: rgba(15,15,20,0.84); border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; max-width: 300px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.lp-zone { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lp-zc); display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.lp-zone [data-l="he"] { letter-spacing: 0; font-size: 13px; }
.lp-zone i { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-zc); }
.lp-big { font: 400 21px/1.15 var(--serif); margin-top: 4px; font-variant-numeric: tabular-nums; }
.lp-small { color: var(--muted); font-size: 12px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.lp-why { color: var(--soft); font-size: 11.5px; line-height: 1.38; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(242,240,236,0.09); }
.lp-pwline { color: var(--lp-brass); font-size: 11.5px; margin-top: 5px; }
body.lang-he .lp-read { text-align: right; }
.lp-note { position: absolute; left: 12px; bottom: 12px; z-index: 4; background: rgba(15,15,20,0.84); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: 12px; color: var(--soft); opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; max-width: 320px; }
.lp-note.show { opacity: 1; transform: none; }
.lp-noglnote { margin: 10px 2px 0; font-size: 13px; color: var(--soft); }

/* before and after */
.lp-split { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; display: none; z-index: 3; }
.lp-ba-on .lp-split { display: block; }
.lp-split i { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(247,233,198,0.9); box-shadow: 0 0 0 1px rgba(15,15,20,0.35); }
.lp-hd { position: absolute; left: -19px; top: calc(50% - 19px); width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #F7E9C6 0%, #DDBE84 45%, #B8935A 100%); box-shadow: 0 0 0 1px rgba(26,20,12,0.9), 0 4px 12px rgba(0,0,0,0.55); cursor: ew-resize; touch-action: none; display: flex; align-items: center; justify-content: center; color: #3A2B14; }
.lp-hd svg { width: 18px; height: 10px; }
.lp-stag { position: absolute; top: 12px; z-index: 3; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(15,15,20,0.78); border: 1px solid var(--line); color: var(--soft); display: none; pointer-events: none; white-space: nowrap; }
.lp-ba-on .lp-stag { display: block; }
.lp-stagl { left: 12px; } .lp-stagr { left: 12px; top: 44px; }

/* the controls: only where the script runs */
html:not(.js) .lp-ctl, html:not(.js) .bs-vis, html:not(.js) .lp-copy, html:not(.js) .lp-pwline { display: none; }
.lp-r1 { margin-top: 18px; position: relative; }
.lp-track { position: relative; height: 22px; margin-top: 6px; cursor: pointer; touch-action: none; outline: none; }
.lp-track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 2px; background: rgba(242,240,236,0.18); }
.lp-fill { position: absolute; left: 0; top: 10px; height: 3px; border-radius: 2px; width: 40%; background: var(--lp-brass-d); }
.lp-thumb { position: absolute; left: 40%; top: 1px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #F7E9C6 0%, #DDBE84 45%, #B8935A 100%); box-shadow: 0 0 0 1px rgba(26,20,12,0.9), 0 3px 8px rgba(0,0,0,0.55); }
.lp-track:focus-visible .lp-thumb { box-shadow: 0 0 0 1px rgba(26,20,12,0.9), 0 0 0 5px rgba(214,182,122,0.35), 0 3px 8px rgba(0,0,0,0.55); }
.lp-track.off { opacity: .35; pointer-events: none; }
.lp-words { position: relative; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; min-height: 16px; direction: ltr; }
.lp-words [data-l="he"] { font-size: 13px; }
.lp-words .g { position: absolute; left: 40%; transform: translateX(-50%); }
.lp-hint { position: absolute; left: 40%; top: 0; transform: translateX(26px); font-size: 11px; color: var(--soft); white-space: nowrap; pointer-events: none; transition: opacity .4s ease; }
.lp-hint::before { content: ""; display: inline-block; width: 14px; height: 1px; background: rgba(216,213,207,0.5); vertical-align: 3px; margin-right: 7px; }
.lp-hint.gone { opacity: 0; }
.lp-r2 { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 22px; flex-wrap: wrap; row-gap: 18px; }
.lp-grp .lbl { margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.lp-grp .nt { text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--muted); opacity: .85; }
.lp-row { display: flex; gap: 9px; align-items: flex-start; flex-wrap: wrap; row-gap: 12px; min-height: 60px; }
.lp .th { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; position: relative; background: none; border: 0; padding: 0; }
.lp .th:focus-visible { outline: 1px solid var(--lp-brass); outline-offset: 3px; border-radius: 6px; }
.lp .ti { display: block; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #16151B; position: relative; transition: border-color .2s ease; }
.lp .sp .ti { width: 56px; height: 40px; }
.lp .wk .ti { width: 64px; height: 50px; }
.lp .ti img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp .wk .ti img { object-fit: contain; background: #1E1D23; }
.lp .ti svg { display: block; width: 14px; height: 14px; }
.lp .tn { font-size: 11px; color: var(--muted); white-space: nowrap; }
.lp .tn [data-l="he"] { font-size: 13px; }
.lp .th:hover .ti { border-color: rgba(214,182,122,0.55); }
.lp .th.on .ti { border-color: var(--lp-brass); box-shadow: 0 0 0 1px var(--lp-brass); }
.lp .th.on .tn { color: var(--ink); }
.lp .own .ti { border-style: dashed; border-color: rgba(242,240,236,0.28); display: flex; align-items: center; justify-content: center; color: var(--muted); background: transparent; }
.lp .own.on .ti { border-style: solid; }
.lp .th.soon { cursor: default; opacity: 0.45; filter: grayscale(0.85); }
.lp .th.soon:hover .ti { border-color: var(--line); }
.lp .wtag { position: absolute; left: 1px; right: 1px; bottom: 1px; text-align: center; white-space: nowrap; font-size: 7px; background: rgba(15,15,20,0.82); color: var(--lp-brass); padding: 1px 3px; border-radius: 3px; line-height: 1.3; pointer-events: none; overflow: hidden; }
.lp-r3 { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 22px; flex-wrap: wrap; row-gap: 16px; }
.lp-c { display: flex; flex-direction: column; gap: 9px; }
.lp .seg { display: inline-flex; border: 1px solid rgba(214,182,122,0.35); border-radius: 999px; padding: 2px; gap: 1px; height: 34px; align-items: center; }
.lp .seg button { background: none; border: 0; font-size: 12.5px; padding: 0 12px; height: 28px; border-radius: 999px; white-space: nowrap; display: flex; align-items: center; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.lp .seg button [data-l="he"] { font-size: 14px; }
.lp .seg button.on { background: var(--lp-brass); color: #17130C; }
.lp .seg button:not(.on):hover { color: var(--ink); }
.lp .seg.ic svg { width: 15px; height: 15px; }
.lp .pills { display: flex; gap: 7px; flex-wrap: wrap; }
.lp .opt { font-size: 12.5px; border: 1px solid rgba(242,240,236,0.2); border-radius: 999px; padding: 0 12px; height: 34px; display: inline-flex; align-items: center; color: var(--muted); white-space: nowrap; background: none; cursor: pointer; }
.lp .opt b { color: var(--ink); font-weight: 400; margin-left: 5px; }
.lp .opt:hover, .lp .opt.open { border-color: rgba(214,182,122,0.55); }
.lp-brieflink { color: var(--ink); font-size: 13.5px; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; white-space: nowrap; }
.lp-brieflink svg { width: 16px; height: 10px; color: var(--lp-brass); }
.lp-pop { position: absolute; z-index: 20; background: #17161D; border: 1px solid rgba(214,182,122,0.35); border-radius: 12px; padding: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); min-width: 190px; max-width: min(320px, calc(100vw - 24px)); }
.lp-pop[hidden] { display: none; }
.lp-pop .pt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 4px 8px; }
.lp-pop .ch { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-pop .ch button { font-size: 12.5px; color: var(--soft); background: none; border: 1px solid var(--line); border-radius: 999px; height: 32px; padding: 0 12px; cursor: pointer; }
.lp-pop .ch button.on { background: var(--lp-brass); border-color: var(--lp-brass); color: #17130C; }
.lp-pop .sz { display: flex; align-items: center; gap: 8px; margin: 2px 4px 6px; font-size: 12.5px; color: var(--soft); }
.lp-pop .sz > span { width: 52px; color: var(--muted); }
.lp-pop .sz button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 15px; line-height: 1; }
.lp-pop .sz b { font-weight: 400; min-width: 70px; text-align: center; font-variant-numeric: tabular-nums; }
.lp-pop .ft { font-size: 11px; color: var(--muted); margin: 6px 4px 0; line-height: 1.4; }

/* your own picture: four corners */
.lp-crop { position: absolute; inset: 0; z-index: 6; background: #0B0A0E; display: flex; flex-direction: column; }
.lp-crop[hidden] { display: none; }
.lp-cropin { position: relative; flex: 1; margin: 12px; }
.lp-cropin canvas { position: absolute; inset: 0; }
.lp-crop .cq { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2px solid var(--lp-brass); background: transparent; box-shadow: 0 0 0 1px rgba(15,15,20,0.8), inset 0 0 0 1px rgba(15,15,20,0.8); cursor: grab; touch-action: none; }
.lp-crop .cq::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: var(--lp-brass); }
.lp-cropbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 12px 12px; }
.lp-cropbar p { flex: 1 1 220px; margin: 0; font-size: 13px; color: var(--soft); }
.lp-cropbar .btn { padding: 10px 18px; font-size: 12px; }
.lp-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* power: three sources side by side, the one that fits this space lit */
.lp-power { margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 2.4vw, 28px); background: var(--surface); }
.lp-pwhead h3 { font-size: clamp(22px, 2vw, 28px); margin: 0; }
.lp-pwhead p { margin: 6px 0 0; font-size: 14.5px; }
.lp-pwgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.lp-pw { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: start; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; cursor: pointer; color: var(--muted); transition: border-color .25s ease, color .25s ease, background-color .25s ease; }
.lp-pw svg { width: 100%; height: auto; max-height: 120px; color: rgba(242,240,236,0.38); }
.lp-pw .pw-wall { fill: rgba(242,240,236,0.03); stroke: rgba(242,240,236,0.12); }
.lp-pw .pw-art { fill: rgba(180,85,60,0.35); stroke: none; }
.lp-pw .pw-bar { stroke: currentColor; stroke-width: 4; stroke-linecap: round; fill: none; }
.lp-pw .pw-arm, .lp-pw .pw-wire, .lp-pw .pw-cord, .lp-pw .pw-pin { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; }
.lp-pw .pw-plate, .lp-pw .pw-box, .lp-pw .pw-cell { fill: none; stroke: currentColor; stroke-width: 1.3; }
.lp-pw .pw-beam { fill: currentColor; opacity: 0; stroke: none; }
.lp-pw.is-on { border-color: var(--lp-brass); color: var(--ink); background: rgba(214,182,122,0.07); }
.lp-pw.is-on svg { color: var(--lp-brass); }
.lp-pw.is-on .pw-beam { opacity: 0.18; }
.lp-pwn { font-size: 15px; color: var(--ink); font-weight: 600; }
.lp-pwn [data-l="he"] { font-weight: 500; font-size: 17px; }
.lp-fit { display: none; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-sage); }
.lp-fit [data-l="he"] { letter-spacing: 0; font-size: 12px; }
.lp-pw.is-fit .lp-fit { display: block; }
.lp-pwc { font-size: 13.5px; line-height: 1.5; color: var(--soft); }
.lp-pwf { font-size: 12px; line-height: 1.45; color: var(--muted); }
.lp-pwlink { margin-top: 16px; color: var(--ink); }

/* the worked examples */
.lp-tbl { margin: 36px 0 0; }
.lp-tbl figcaption { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.lp-tbl .tbl-x { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.lp-tbl table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lp-tbl th, .lp-tbl td { padding: 9px 12px; text-align: start; border-bottom: 1px solid rgba(242,240,236,0.08); vertical-align: top; }
.lp-tbl thead th { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
.lp-tbl thead th [data-l="he"] { letter-spacing: 0; font-size: 13px; text-transform: none; }
.lp-tbl tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.lp-tbl tbody tr:last-child th, .lp-tbl tbody tr:last-child td { border-bottom: 0; }
.lp-tbl2 { max-width: 460px; }

/* the brief */
.lp-sheet { margin: 48px 0 0; }
.lp .bs { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: clamp(18px, 2.6vw, 32px); }
.lp .bs-vis { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 10px; }
.lp .bs-fig { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #0D0D12; overflow: hidden; }
.lp .bs-fig figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 11px; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.lp .bs-fig figcaption [data-l="he"] { letter-spacing: 0; font-size: 12px; text-transform: none; }
.lp .bs-fig .lg { display: flex; align-items: center; gap: 5px; letter-spacing: 0.08em; text-transform: none; font-size: 11px; font-weight: 500; }
.lp .bs-fig .sw { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--lp-brass); margin-left: 6px; }
.lp .bs-fig .sw.gh { border-top: 2px dashed rgba(242,240,236,0.55); }
.lp .bs-fig svg { display: block; width: 100%; height: auto; direction: ltr; }
.lp .mbox { aspect-ratio: 4 / 3; background: #0B0B0F; }
.lp .mbox canvas { width: 100%; height: 100%; display: block; }
.lp .bsv-l { font-family: var(--sans); font-size: 11px; font-weight: 600; fill: var(--ink); }
.lp .bsv-m { font-family: var(--sans); font-size: 10.5px; font-weight: 500; fill: var(--muted); }
.lp .bsv-g { font-family: var(--sans); font-size: 10.5px; font-weight: 500; fill: rgba(242,240,236,0.7); }
.lp [data-l="he"] .bsv-l, .lp svg[data-l="he"] text { font-family: var(--he); }
.lp .bs-text { min-width: 0; }
.lp .bs-title { font-size: clamp(24px, 2.5vw, 34px); line-height: 1.12; margin: 8px 0 0; text-wrap: balance; }
.lp .bs-cap { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--soft); max-width: 620px; }
.lp .bs-cap span span { color: var(--taupe); font-size: 12px; margin-left: 6px; white-space: nowrap; }
.lp .bs-st { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.lp .bs-st > div { background: #16161B; padding: 11px 14px 12px; }
.lp .bs-k { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0; }
.lp .bs-k [data-l="he"] { letter-spacing: 0; font-size: 12px; text-transform: none; }
.lp .bs-v { margin: 4px 0 0; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.lp .bs-v .zd3 { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 7px 1px 0; vertical-align: middle; }
.lp .bs-line { grid-column: 1 / -1; background: #121217; padding: 10px 14px; font-size: 14px; color: var(--soft); margin: 0; }
.lp .bs-line b { color: var(--ink); font-weight: 600; }
.lp .bs-line.ok { color: #CFE2D3; }
.lp .bg-h { margin: 26px 0 0; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.lp [data-l="he"] .bg-h { letter-spacing: 0; font-size: 13px; font-family: var(--he); }
.lp .bs dl { margin: 0; }
.lp .bs .r { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 22px; padding: 11px 0; border-bottom: 1px solid rgba(242,240,236,0.08); }
.lp .bs dt { font-size: 12.5px; color: var(--muted); font-weight: 500; padding-top: 2px; }
.lp .bs dd { margin: 0; font-size: 14.5px; line-height: 1.55; }
.lp .bs dd .src { display: block; margin: 3px 0 0; font-size: 11px; color: var(--taupe); }
.lp .bs dd.warn { color: #F3C98B; }
.lp .bs-disc { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.lp .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.lp .btn.solid { background: var(--lp-brass); color: #17130C; border-color: var(--lp-brass); cursor: pointer; }
.lp .btn.solid.done { background: var(--lp-sage); border-color: var(--lp-sage); }
.lp button.btn { font-family: var(--sans); }
.lp .copied { font-size: 13.5px; color: var(--soft); min-height: 20px; opacity: 0; transition: opacity .2s ease; margin: 0; }
.lp .copied.on { opacity: 1; }

@media (max-width: 1100px) {
  .lp .bs { grid-template-columns: 1fr; }
  .lp .bs-vis { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .lp-stage { max-height: none; }
}
@media (max-width: 760px) { .lp-pwgrid { grid-template-columns: 1fr; } .lp-pw { flex-direction: row; flex-wrap: wrap; align-items: center; } .lp-pw svg { width: 112px; flex: none; } .lp-pw > span { flex: 1 1 160px; } }
/* phones: the readout sits under the stage, never over the art */
@media (max-width: 639px) {
  .lp-stage { aspect-ratio: auto; height: 320px; border-radius: 12px; }
  .lp-stage img.lp-plate, .lp-stage canvas { object-position: 50% 40%; }
  .lp-read { position: static; max-width: none; margin-top: 10px; text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; padding: 10px 12px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.lang-he .lp-read { text-align: right; }
  .lp-read .lp-zone { grid-column: 1 / -1; justify-content: flex-start; }
  .lp-read .lp-big { font-size: 18px; }
  .lp-read .lp-why, .lp-read .lp-pwline { grid-column: 1 / -1; }
  .lp-note { left: 8px; right: 8px; bottom: 8px; max-width: none; font-size: 11.5px; }
  .lp-proposal { top: 8px; bottom: auto; right: 8px; }
  .lp-r2 .lp-grp { width: 100%; }
  .lp-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; gap: 12px; }
  .lp-row::-webkit-scrollbar { display: none; }
  .lp-r3 { gap: 14px; }
  .lp-brieflink { width: 100%; justify-content: center; border: 1px solid rgba(214,182,122,0.45); border-radius: 999px; padding: 12px 0; }
  .lp .bs { padding: 16px; } .lp .bs .r { grid-template-columns: 1fr; gap: 2px; } .lp .bs-st { grid-template-columns: 1fr; }
  .lp-hd { width: 32px; height: 32px; left: -16px; top: calc(50% - 16px); }
  .lp-pop { left: 8px !important; right: 8px; min-width: 0; max-width: none; }
  /* the crop: the whole screen on a phone, so the photo is large enough to place four corners */
  .lp-crop { position: fixed; inset: 0; z-index: 200; padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0); }
}

/* JavaScript off, tables on phones, the guide link, the badge */
html:not(.js) .lp .bs { grid-template-columns: minmax(0, 1fr); }   /* no drawings without JavaScript: the brief takes the card */
.lp .lp-tbl tbody th, .lp .lp-tbl td { padding: 10px 12px; vertical-align: top; line-height: 1.5; }
.lp .lp-tbl tbody th { font-size: 13.5px; }
.lp .lp-pwlink { display: inline-flex; flex-wrap: wrap; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.lp .wtag { white-space: normal; overflow: visible; line-height: 1.15; }
.lp .lp-tbl2 table, .lp .lp-pwtbl table { min-width: 0; }   /* two and three columns fit their figure: no sideways scroll */
@media (max-width: 639px) {
  .lp .lp-tbl .tbl-x { overflow-x: visible; -webkit-mask-image: none; mask-image: none; }
  .lp .lp-tbl table { min-width: 0; }
  .lp .lp-tbl thead { display: none; }
  .lp .lp-tbl tbody, .lp .lp-tbl tr { display: block; }
  .lp .lp-tbl tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .lp .lp-tbl tbody tr:last-child { border-bottom: 0; }
  .lp .lp-tbl tbody th, .lp .lp-tbl td { display: block; position: static; border-bottom: 0; padding: 4px 12px; white-space: normal; background: none; }
  .lp .lp-tbl td::before { content: attr(data-th-en); display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
  html[lang="he"] .lp .lp-tbl td::before { content: attr(data-th-he); letter-spacing: 0; text-transform: none; font-size: 12px; }
  .lp .lp-tbl2 { max-width: none; }
}
/* the header above the planner sits in the planner's own centered 1120 px column (its padding is the .wrap's), so the
   h1, lead, byline and figure line up with the planner on a wide screen; text stays aligned to the start inside it */
body .phead:has(+ .wrap > .lp) { max-width: calc(1120px + 2 * clamp(20px, 3.4vw, 48px)); margin-left: auto; margin-right: auto; }
body .phead:has(+ .wrap > .lp) .pfig { max-width: 100%; }
body.lang-he main:has(> .phead + .wrap > .lp) > .section { direction: rtl; }
