/* Adaptation planner (v2). The tool is the opener: the drawn cottage on an ink drawing board (left, bleeding to the
   edge) beside the two questions on limewash. Design plan: _work/design-plan.md */

/* ---------- The opener: board + questions ---------- */
.pl-open {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
  grid-template-rows: 1fr auto auto 1fr;
  min-height: 88svh; padding-top: var(--header-h);
  background: var(--lime);
}
.pl-open__head { grid-column: 2; grid-row: 2; padding: 0 var(--gutter) clamp(20px, 3.6vh, 36px) clamp(28px, 3.4vw, 64px); }
.pl-form { grid-column: 2; grid-row: 3; padding: 0 var(--gutter) 0 clamp(28px, 3.4vw, 64px); }
.pl-open .crumbs { align-items: center; margin-bottom: clamp(10px, 1.6vh, 18px); }
/* always two lines (a fixed break), and a fixed height, so the head never changes size as fonts arrive or the lines split */
.pl-h1 { font-size: clamp(2.4rem, 3.6vw, 3.9rem); line-height: 1.02; height: 2.04em; letter-spacing: -.018em; margin: 0 0 clamp(10px, 1.6vh, 16px); }
.pl-lede { margin: 0 0 clamp(14px, 1.6vw, 24px); font-size: clamp(1.02rem, 1.1vw, 1.14rem); line-height: 1.55; color: var(--soft); }

/* The drawing board */
.pl-board {
  grid-column: 1; grid-row: 1 / -1; position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: center;
  margin: 8px 0 clamp(18px, 3vh, 30px); padding: 54px clamp(10px, 1.2vw, 22px) 50px;
  background: var(--ink); color: var(--lime); border-radius: var(--r); overflow: clip;
  --lx: 62%; --ly: 38%;
}
/* a desk lamp of warm light that follows the pointer, and the drafting grid beneath */
.pl-board::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42vw circle at var(--lx) var(--ly), rgba(201, 164, 101, .2), rgba(201, 164, 101, .05) 38%, transparent 66%); }
.pl-board::after { content: ""; position: absolute; inset: -60px; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 164, 101, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 101, .09) 1px, transparent 1px),
    linear-gradient(rgba(237, 238, 233, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 238, 233, .035) 1px, transparent 1px);
  background-size: 150px 150px, 150px 150px, 30px 30px, 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 78%); mask-image: radial-gradient(ellipse at 50% 50%, #000 30%, transparent 78%);
  animation: pl-grid 40s linear infinite; }
@keyframes pl-grid { to { transform: translate(30px, 30px); } }
.pl-board__hint { position: absolute; left: clamp(18px, 2.4vw, 44px); top: 18px; margin: 0; display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500; color: rgba(237, 238, 233, .86); }
.pl-board__dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--honey); }
.pl-board__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--honey); animation: pl-ping 2.4s var(--ease) infinite; }
@keyframes pl-ping { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.pl-board__key { position: absolute; left: clamp(18px, 2.4vw, 44px); bottom: 16px; margin: 0; display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(237, 238, 233, .72); }
.pl-board__sw { width: 22px; height: 3px; background: var(--honey); }
.pl-board__title { position: absolute; right: clamp(18px, 2.4vw, 44px); bottom: 16px; margin: 0; font-family: var(--display); font-style: italic; font-size: 1rem; color: rgba(237, 238, 233, .6); }

.pl-fig { position: relative; width: min(100%, calc((88svh - var(--header-h) - 118px) * 1.515)); aspect-ratio: 1000 / 660; margin: 0 auto; overflow: clip; will-change: transform; }
.pl-fig .cottage { width: 100%; height: 100%; color: rgba(237, 238, 233, .8); overflow: hidden; }
.pl-board .cottage__cut { color: var(--honey); }
.pl-board .cottage__furn { color: rgba(237, 238, 233, .55); }
.pl-board .cottage__wash { fill: var(--honey); opacity: 0; }
.pl-board .cottage__photo { opacity: 0; transition: opacity 1s var(--ease); }
.pl-board .cottage__room.is-on .cottage__photo { opacity: 1; }
/* before anyone chooses, the rooms take turns to show what they could become */
.pl-board .cottage__room.is-ghost .cottage__photo { opacity: .34; transition-duration: 1.6s; }
.pl-board .cottage__edge { fill: none; stroke: var(--honey); stroke-width: 3; opacity: 0; transition: opacity .6s var(--ease); }
.pl-board .cottage__edge.is-on { opacity: 1; animation: pl-glow 3.2s ease-in-out infinite; }
@keyframes pl-glow { 50% { stroke-opacity: .45; } }
/* the extension is only drawn when it is the answer */
.pl-board .cx { transition: opacity .6s var(--ease); }
.pl-board:not(.has-ext) .cx { opacity: 0; }
/* notes drawn into the cottage */
.pl-smoke { stroke: rgba(237, 238, 233, .45); stroke-width: 1.4; stroke-dasharray: 8 9; animation: pl-smoke 3.4s linear infinite; }
.pl-smoke--2 { animation-duration: 4.2s; stroke: rgba(237, 238, 233, .3); }
@keyframes pl-smoke { to { stroke-dashoffset: -34; } }
.pl-tri { stroke: var(--honey); stroke-width: 2.4; opacity: 0; transition: opacity .5s var(--ease); }
.pl-tri circle { fill: var(--honey); stroke: none; }
.pl-tri.is-on { opacity: 1; }
.pl-arrow { opacity: 0; transition: opacity .5s var(--ease); }
.pl-arrow.is-on { opacity: 1; }
.pl-arrow__line { stroke: var(--honey); stroke-width: 2.4; stroke-dasharray: 7 7; animation: pl-march 1.2s linear infinite; }
.pl-arrow__head { stroke: var(--honey); stroke-width: 2.4; }
@keyframes pl-march { to { stroke-dashoffset: -14; } }

/* the HTML layer over the drawing: rooms you can tap, and the notes pinned to them. Moves with the camera. */
.pl-ov { position: absolute; inset: 0; transform-origin: 0 0; --inv: 1; }
.pl-hot { position: absolute; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.pl-hot::before { content: ""; position: absolute; inset: 3px; border: 1.5px dashed rgba(201, 164, 101, 0); background: rgba(201, 164, 101, 0); transition: border-color .3s, background-color .3s; }
.pl-hot:hover::before { border-color: rgba(201, 164, 101, .9); background: rgba(201, 164, 101, .1); }
.pl-hot:focus-visible { outline: none; }
.pl-hot:focus-visible::before { border: 2px solid var(--honey); background: rgba(201, 164, 101, .14); }
.pl-hot__pip { position: absolute; right: 10%; bottom: 12%; width: 30px; height: 30px; transform: translate(50%, 50%) scale(var(--inv)); transform-origin: 50% 50%; }
.pl-hot__pip::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--honey); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: background-color .3s, transform .4s var(--ease); }
.pl-hot__pip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; transform: translate(-50%, -50%);
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat; transition: transform .4s var(--ease); }
.pl-hot[aria-pressed="false"] .pl-hot__pip { animation: pl-bob 2.8s ease-in-out infinite; }
.pl-hot[data-hot="bed"] .pl-hot__pip { animation-delay: -.7s; }
.pl-hot[data-hot="sitting"] .pl-hot__pip { animation-delay: -1.4s; }
.pl-hot[data-hot="kitchen"] .pl-hot__pip { animation-delay: -2.1s; }
@keyframes pl-bob { 50% { box-shadow: 0 0 0 10px rgba(201, 164, 101, .0); } 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 101, .55); } }
.pl-hot__pip { border-radius: 50%; }
.pl-hot[aria-pressed="true"] .pl-hot__pip::before { background: var(--lime); }
.pl-hot[aria-pressed="true"] .pl-hot__pip::after { transform: translate(-50%, -50%) rotate(45deg); }
.pl-hot__name { position: absolute; left: 8px; top: 6px; font-family: var(--display); font-style: italic; font-size: 15px; line-height: 1.2; color: var(--honey); white-space: nowrap; transform-origin: 0 0; transform: scale(var(--inv)); transition: opacity .4s var(--ease); }
.pl-hot.is-lit .pl-hot__name { opacity: 0; }
.pl-tag { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; transform: scale(var(--inv)); transform-origin: 0 0; pointer-events: none; }
.pl-tag__i { display: none; padding: 5px 10px 5px 9px; background: var(--lime); color: var(--ink); font-size: .8rem; font-weight: 600; line-height: 1.2; white-space: nowrap; border-left: 3px solid var(--honey); box-shadow: 0 8px 20px rgba(8, 14, 26, .35); }
.pl-tag__i.is-on { display: block; }
html.no-js .pl-hot, html.no-js .pl-board__hint { display: none; }

/* The questions */
.pl-fs { border: 0; margin: 0 0 clamp(14px, 2.4vh, 26px); padding: 0; min-width: 0; }
.pl-leg { display: flex; align-items: baseline; gap: 12px; padding: 0; margin: 0 0 clamp(8px, 1.3vh, 12px); font-family: var(--display); font-weight: 460; font-variation-settings: "opsz" 48; font-size: clamp(1.18rem, 1.35vw, 1.4rem); line-height: 1.2; }
.pl-leg__n { color: var(--honey-deep); font-size: 1.1em; }
.pl-who { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip, .pl-tile { position: relative; cursor: pointer; }
.pl-chip input, .pl-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pl-chip span { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 16px; border: 1.5px solid rgba(22, 35, 58, .26); border-radius: var(--pill); background: var(--paper); font-weight: 600; font-size: .96rem; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.pl-chip span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.pl-chip:hover span { border-color: var(--ink); }
.pl-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.pl-chip input:checked + span::before { background: var(--honey); border-color: var(--honey); transform: scale(1.15); }
.pl-chip input:focus-visible + span, .pl-tile input:focus-visible ~ .pl-tile__t { outline: 2px solid var(--honey-deep); outline-offset: 3px; }
.pl-tile input:focus-visible ~ .pl-tile__t { outline-offset: 6px; }
.pl-needs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-tile { display: flex; align-items: center; gap: 12px; min-height: clamp(54px, 6.6vh, 62px); padding: 8px 14px; border: 1.5px solid rgba(22, 35, 58, .2); border-radius: var(--r); background: var(--paper); font-weight: 500; font-size: .95rem; line-height: 1.28; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.pl-tile:hover { border-color: var(--ink); }
.pl-tile__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; transition: background-color .3s, border-color .3s; }
.pl-tile__box svg { width: 13px; height: 10px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease) .05s; }
.pl-tile input:checked ~ .pl-tile__box { background: var(--honey); border-color: var(--honey); }
.pl-tile input:checked ~ .pl-tile__box svg { stroke-dashoffset: 0; }
.pl-tile:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.pl-tile:has(input:focus-visible) { outline: 2px solid var(--honey-deep); outline-offset: 3px; }
.pl-tile:has(input:focus-visible) .pl-tile__t { outline: none; }
.pl-go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(4px, 1vh, 10px); }
.pl-go__n { white-space: nowrap; }
.pl-go__n { margin: 0; font-size: .95rem; color: var(--soft); font-weight: 500; }
.pl-go__n b { font-family: var(--display); font-weight: 500; font-size: 1.3em; color: var(--honey-deep); }

/* ---------- The list ---------- */
.pl-res { background: var(--paper); padding-top: clamp(64px, 7vw, 110px); }
.pl-res__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 4.4vw, 80px); align-items: start; }
.pl-res__head { margin-bottom: clamp(26px, 3vw, 44px); }
.pl-res__head .h2 { margin-bottom: 14px; }
.pl-who-txt { font-weight: 600; color: var(--ink); }
.pl-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); }
.pl-card { display: grid; grid-template-rows: auto 1fr; background: var(--lime); border-radius: var(--r); overflow: clip; }
.pl-card[hidden], .pl-empty[hidden] { display: none; }
.pl-card__img { position: relative; aspect-ratio: 16 / 10; overflow: clip; background: var(--ink-2); }
.pl-card__room { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 7px 12px; background: var(--ink); color: var(--lime); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.pl-card__body { display: grid; gap: 8px; align-content: start; padding: clamp(18px, 1.8vw, 26px) clamp(18px, 1.8vw, 28px) clamp(22px, 2vw, 30px); }
.pl-card__t { font-size: clamp(1.32rem, 1.55vw, 1.62rem); line-height: 1.12; }
.pl-card__why { margin: 0 0 4px; font-size: .92rem; font-weight: 600; color: var(--honey-deep); }
.pl-card__list li { position: relative; padding-left: 26px; margin-top: 8px; line-height: 1.5; }
.pl-card__list li::before { content: ""; position: absolute; left: 0; top: .78em; width: 14px; height: 1.5px; background: var(--honey-deep); }
/* one card, or the last of an odd number: wide, photo beside the words, so no half row sits empty */
.pl-card.is-wide { grid-column: 1 / -1; grid-template-rows: none; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.pl-card.is-wide .pl-card__img { aspect-ratio: auto; min-height: clamp(260px, 30vw, 380px); }
.pl-card.is-wide .pl-card__body { align-content: center; padding: clamp(24px, 2.6vw, 44px); }
.pl-empty { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--lime); border-radius: var(--r); overflow: clip; }
.pl-empty__img { position: relative; min-height: clamp(280px, 30vw, 400px); overflow: clip; }
.pl-empty__img .ink { position: absolute; inset: 0; height: 100%; }
.pl-empty__img .ink:not(:first-child) { opacity: 0; }
.pl-empty__txt { display: grid; gap: 14px; align-content: center; padding: clamp(24px, 3vw, 48px); }
.pl-empty__txt p { margin: 0; color: var(--soft); }
.pl-ink img { width: 100%; height: 100%; object-fit: cover; }

.pl-sum { position: sticky; top: 108px; }
.pl-sum__card { position: relative; overflow: clip; isolation: isolate; padding: clamp(28px, 2.6vw, 38px) clamp(24px, 2.4vw, 34px) clamp(24px, 2.4vw, 32px); background: var(--ink); color: var(--lime); border-radius: var(--r); }
.pl-sum__lines { position: absolute; inset: auto 0 0 0; z-index: -1; width: 100%; height: 70%; color: rgba(201, 164, 101, .2); pointer-events: none; }
.pl-sum__h { margin: 0; font-family: var(--body); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--honey); }
.pl-sum__for { margin: 8px 0 18px; font-family: var(--display); font-size: clamp(1.4rem, 1.7vw, 1.7rem); line-height: 1.15; }
.pl-sum__list { counter-reset: pl; border-top: 1px solid var(--line-light); }
.pl-sum__list li { counter-increment: pl; display: grid; grid-template-columns: 30px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-light); font-family: var(--display); font-size: 1.1rem; line-height: 1.3; }
.pl-sum__list li::before { content: counter(pl); color: var(--honey); font-variant-numeric: lining-nums; }
.pl-sum__none { margin: 0; padding: 14px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); color: rgba(237, 238, 233, .78); }
.pl-sum__btns { display: grid; gap: 10px; margin-top: 24px; }
.pl-sum__btns .btn { justify-content: center; }
.pl-sum__btns .btn[hidden] { display: none; }
.pl-sum__call { margin: 18px 0 0; font-size: .97rem; color: rgba(237, 238, 233, .78); }
.pl-sum__phone { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pl-sum__phone .i-phone { width: 17px; height: 17px; color: var(--honey); }
.pl-sum__phone:hover { color: var(--honey); }
.pl-sum__reset { display: inline-block; margin-top: 8px; color: rgba(237, 238, 233, .72); font-size: .93rem; }
.pl-sum__reset[hidden] { display: none; }

/* ---------- What happens after you send it ---------- */
.pl-next { overflow: clip; }
.pl-next__contours { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(201, 164, 101, .13); pointer-events: none; }
.pl-next__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.pl-steps { position: relative; display: grid; gap: clamp(22px, 3.4vh, 40px); margin-top: clamp(30px, 4vw, 56px); --pl-p: 1; }
.pl-steps::before, .pl-steps::after { content: ""; position: absolute; left: 22px; top: 14px; bottom: 14px; width: 1px; background: var(--line-light); }
.pl-steps::after { background: var(--honey); transform-origin: 50% 0; transform: scaleY(var(--pl-p)); }
.pl-step { position: relative; z-index: 1; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); transition: opacity .6s var(--ease); }
.pl-step__n { align-self: start; padding: 2px 0 8px; background: var(--ink); color: var(--honey); font-size: clamp(2.4rem, 3vw, 3rem); line-height: 1; text-align: center; }
.pl-step__t { font-size: clamp(1.4rem, 1.8vw, 1.85rem); margin: 4px 0 8px; }
.pl-step p { margin: 0; color: rgba(237, 238, 233, .8); max-width: 60ch; }
html.js:not(.rm):not(.no-motion) .pl-step:not(.is-active) { opacity: .42; }
.pl-next__frame { position: relative; height: min(var(--media-cap), 620px); border-radius: var(--r); overflow: clip; background: var(--ink-2); }
.pl-next__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 100%); }
.pl-next__img.is-active { clip-path: inset(0 0 0 0%); }
.pl-next__count { position: absolute; left: 0; bottom: 0; z-index: 3; margin: 0; padding: 10px 16px; background: var(--ink); color: rgba(237, 238, 233, .8); font-size: .95rem; }
.pl-next__count .fig { color: var(--honey); font-size: 1.35rem; }

/* ---------- In their own words ---------- */
.pl-words { background: var(--lime-2); overflow: clip; }
.pl-words__bg { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; overflow: clip; opacity: .2; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%); mask-image: linear-gradient(90deg, transparent, #000 50%); pointer-events: none; }
.pl-words__bg img { width: 100%; height: 100%; object-fit: cover; }
.pl-words__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 96px); align-items: end; }
.pl-quote { margin: clamp(26px, 3vw, 44px) 0 0; }
.pl-quote__mark { width: 46px; height: 36px; color: var(--honey-deep); margin-bottom: 18px; }
.pl-quote__text { margin: 0; }
.pl-quote__text p { margin: 0; font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 36; font-size: clamp(1.4rem, 2vw, 2.15rem); line-height: 1.32; letter-spacing: -.005em; }
.pl-quote__who, .pl-mini figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: .95rem; }
.pl-quote__who span, .pl-mini figcaption span { color: var(--soft); }
.pl-words__side { display: grid; gap: 16px; }
.pl-mini { margin: 0; padding: clamp(22px, 2vw, 30px); background: var(--paper); border-radius: var(--r); }
.pl-mini blockquote { margin: 0; }
.pl-mini p { margin: 0; font-family: var(--display); font-size: clamp(1.1rem, 1.25vw, 1.25rem); line-height: 1.45; }
.pl-mini figcaption { margin-top: 16px; padding-top: 12px; }
.pl-words__side .text-link { margin-top: 6px; }

/* ---------- Narrower screens ---------- */
@media (min-width: 1181px) { .pl-go { flex-wrap: nowrap; } }
@media (min-width: 900px) and (max-width: 1439px) {
  .pl-open { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
  .pl-chip span { gap: 8px; padding: 0 14px 0 13px; font-size: .93rem; }
  .pl-who { gap: 6px; }
}
/* short screens (laptops at 768px and 720px tall): the whole tool, submit row included, stays on the first screen */
@media (min-width: 900px) and (max-height: 800px) {
  .pl-open .crumbs { margin-bottom: 6px; font-size: .92rem; }
  .pl-h1 { font-size: clamp(2.3rem, 6.2vh, 3.3rem); margin-bottom: 8px; }
  .pl-open__head { padding-bottom: 16px; }
  .pl-lede { font-size: 1rem; line-height: 1.5; }
  .pl-fs { margin-bottom: 12px; }
  .pl-leg { margin-bottom: 6px; font-size: 1.14rem; }
  .pl-chip span { min-height: 42px; }
  .pl-needs { gap: 6px; }
  .pl-tile { min-height: 50px; padding: 6px 12px; font-size: .93rem; }
  .pl-go .btn { min-height: 50px; }
}
@media (max-width: 1180px) {
  .pl-open { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); }
  .pl-needs { grid-template-columns: 1fr; }
  .pl-tile { min-height: 50px; }
  .pl-res__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); }
  .pl-cards { grid-template-columns: 1fr; }
  .pl-card.is-wide { grid-template-columns: 1fr; }
  .pl-card.is-wide .pl-card__img { aspect-ratio: 16 / 10; min-height: 0; }
  .pl-card { grid-template-rows: auto 1fr; }
}
@media (max-width: 899px) {
  .pl-open { grid-template-columns: 1fr; grid-template-rows: none; min-height: 0; padding-top: calc(var(--header-h) + 6px); }
  .pl-open__head, .pl-form { grid-column: 1; grid-row: auto; padding-inline: var(--gutter); }
  .pl-open__head { padding-top: 14px; padding-bottom: 20px; }
  .pl-board { grid-column: 1; grid-row: auto; position: sticky; top: 76px; z-index: 5; margin: 0; padding: 40px 10px 34px; border-radius: 0; box-shadow: 0 18px 30px -18px rgba(8, 14, 26, .5); }
  .pl-fig { width: min(100%, calc(31svh * 1.515)); }
  .pl-board__hint { left: 16px; top: 12px; font-size: .88rem; }
  .pl-board__key { left: 16px; bottom: 10px; font-size: .82rem; }
  .pl-board__title { display: none; }
  .pl-form { padding-top: 24px; padding-bottom: 48px; }
  .pl-res__grid, .pl-next__grid, .pl-words__grid { grid-template-columns: 1fr; }
  .pl-sum { position: static; }
  .pl-empty { grid-template-columns: 1fr; }
  .pl-empty__img { min-height: 0; aspect-ratio: 16 / 10; }
  /* steps: the photograph rides at the top of the screen while the steps scroll under it */
  .pl-next__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .pl-next__copy { display: contents; }
  .pl-next__copy .h2 { order: 0; }
  .pl-next__media { order: 1; position: sticky; top: 76px; z-index: 2; margin-top: 28px; padding-bottom: 6px; background: var(--ink); }
  .pl-next__frame { height: min(32svh, 300px); }
  .pl-steps { order: 2; margin-top: 26px; }
  .pl-words__bg { width: 100%; opacity: .16; }
  .pl-hot__pip { width: 24px; height: 24px; }
}
@media (max-width: 559px) {
  .pl-board { top: 68px; }
  .pl-next__media { top: 68px; }
  .pl-open .crumbs .pl-crumb-mid { display: none; }
  .pl-h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .pl-tag__i { font-size: .72rem; padding: 4px 7px; }
  .pl-hot__name { font-size: 12px; left: 5px; top: 3px; }
}

/* No JavaScript and reduced motion: everything visible, no drifting */
html.rm .pl-board::after, html.no-motion .pl-board::after { animation: none; }

/* Motion on: the opener's parts wait for planner.js to bring them in (no-JS and reduced motion never hide them) */
html.js:not(.rm):not(.no-motion) .pl-board { clip-path: inset(0 100% 0 0); }
html.js:not(.rm):not(.no-motion) .pl-leg,
html.js:not(.rm):not(.no-motion) .pl-chip,
html.js:not(.rm):not(.no-motion) .pl-tile,
html.js:not(.rm):not(.no-motion) .pl-go { opacity: 0; }

/* Phones: the summary's phone link is a comfortable tap target */
@media (max-width: 760px) { .pl-sum__phone { display: inline-flex; align-items: center; min-height: 44px; } }
