/* hidden-dog-fence.css: the page's own layout (plan.md "## Hidden Dog Fences"). Only places and sizes its parts, with
   system.css's tokens; the components (header, form, prints, reviews, FAQ, close) come from components.css. */

/* ---------- 2. the plan tool ---------- */
.plan__head { margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.plan__tool { display: grid; grid-template-columns: minmax(0, 15.5rem) minmax(0, 1fr); grid-template-areas: "picks stage" ". foot"; gap: 1rem clamp(1.25rem, 0.5rem + 2vw, 2.25rem); align-items: start; }
.plan__picks { grid-area: picks; display: grid; gap: 0.7rem; }
.plan__pick { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 0.85rem; padding: 0.55rem 0.9rem 0.55rem 0.55rem; border-radius: 18px; background: var(--c-white); box-shadow: inset 0 0 0 1.5px var(--c-line); cursor: pointer; transition: box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), translate var(--dur-fast) var(--ease-out), scale var(--dur-fast) var(--ease-out); }
.plan__pick:hover { box-shadow: inset 0 0 0 1.5px var(--c-brand-tint), var(--shadow-s); }
.plan__pick:has(input:checked) { background: var(--c-brand-light); box-shadow: inset 0 0 0 2.5px var(--c-cobalt), var(--shadow-s); }
.plan__pick:has(input:focus-visible) { outline: 3px solid var(--c-cobalt); outline-offset: 2px; }
.plan__thumb { display: block; width: 64px; height: 48px; border-radius: 10px; object-fit: cover; }
.plan__name { font-weight: var(--fw-ui); font-size: 1rem; line-height: 1.2; color: var(--c-ink); }
.plan__stage { grid-area: stage; aspect-ratio: 16 / 10; box-shadow: var(--shadow-m); }
.plan__photo { position: absolute; inset: 0; margin: 0; }
.plan__photo[hidden] { display: none; }
.plan__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.plan__svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* the line's widths are set in screen pixels by the page's script (the svg is cropped with its photo, as cover) */
.plan__halo { fill: none; stroke: var(--c-white); stroke-opacity: 0.8; stroke-linejoin: round; }
.plan__line { fill: none; stroke: var(--c-cobalt); stroke-linecap: round; stroke-linejoin: round; }
.plan__mask { fill: none; stroke: var(--c-white); stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.plan__ring { fill: none; stroke: var(--c-white); opacity: 0; }
.plan__dog { position: absolute; z-index: 3; left: 0; top: 0; width: 54px; height: 54px; box-sizing: border-box; border-radius: 50%; border: 3px solid var(--c-white); background: var(--c-white); box-shadow: 0 0 0 3px var(--c-cobalt), 0 8px 20px rgba(20, 26, 56, 0.45); overflow: hidden; will-change: transform; }
.plan__dog img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: 50%; }
/* the card shares the stage's grid cell, over the photo's lower left corner (under the stage on the phone) */
.plan__card { grid-area: stage; align-self: end; justify-self: start; position: relative; z-index: 4; margin: 0 0 18px 18px; padding: 0.85rem 1.05rem 0.9rem; max-width: 300px; }
.plan__card-title { font: var(--fw-ui) 0.95rem/1.3 var(--font-ui); color: var(--c-ink); }
.plan__card-list { display: grid; gap: 0.3rem; margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; color: var(--c-ink); }
.plan__card-list li { display: flex; align-items: center; gap: 0.45rem; }
.plan__card-list .icon { flex: none; color: var(--c-lawn-text); }
.plan__foot { grid-area: foot; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; }
.plan__note { display: flex; align-items: flex-start; gap: 0.5rem; max-width: 34rem; font-size: var(--fs-small); color: var(--c-ink-soft); }
.plan__note .icon { flex: none; margin-top: 0.2em; color: var(--c-cobalt); }
@media (max-width: 899px) {
  .plan__tool { grid-template-columns: minmax(0, 1fr); grid-template-areas: "picks" "stage" "card" "foot"; }
  .plan__picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .plan__pick { grid-template-columns: 44px 1fr; gap: 0.55rem; padding: 0.45rem 0.6rem 0.45rem 0.45rem; border-radius: 14px; }
  .plan__thumb { width: 44px; height: 34px; border-radius: 8px; }
  .plan__name { font-size: 0.9rem; }
  .plan__stage { aspect-ratio: 16 / 11; }
  .plan__dog { width: 38px; height: 38px; }
  .plan__card { grid-area: card; justify-self: stretch; margin: -0.25rem 0 0; max-width: none; padding: 0.7rem 0.9rem; background: var(--c-white); }
  .plan__card-title, .plan__card-list { font-size: 0.9rem; }
  .plan__card-list { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
  .plan__foot .btn { width: 100%; }
}

/* ---------- 3. fenced yards: the real wall print beside the plan inside a fence ---------- */
/* the words with the real wall print under them; the scene's square stage at full size beside them */
@media (min-width: 900px) { .fenced__in { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); } }
.fenced__media { display: grid; }
.fenced__stage { aspect-ratio: 1 / 1; width: min(100%, 600px); justify-self: end; box-shadow: var(--shadow-m); }
.fenced__print { width: min(100%, 330px); margin: 1.75rem 0 0; }
/* the print shows the part of the photo with the dog on the wall (its file is wide enough for the crop) */
.fenced__crop { display: block; overflow: hidden; aspect-ratio: 4 / 3.3; }
.fenced__crop img { display: block; width: 165%; max-width: none; margin-left: -38%; }
.fenced__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.fenced__scene { position: absolute; inset: 0; z-index: 2; }
@media (max-width: 899px) {
  .fenced__print { width: min(72%, 300px); margin-top: 1.25rem; }
  .fenced__stage { width: 100%; aspect-ratio: 4 / 3.4; }
}

/* ---------- 4. covered for years: the part was taken off on Rusty's word (17 Nov); its rules stay for an undo ---------- */
.cover__head { margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.cover__stage { aspect-ratio: 16 / 7.4; box-shadow: var(--shadow-m); }
.cover__media { position: absolute; inset: 0; overflow: hidden; }
/* the photo runs 18% past the stage's right edge, so the dog's head sits right of the card */
.cover__img { position: absolute; top: -1px; left: -1px; width: calc(118% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 40%; }
.cover__scene { position: absolute; inset: 0; z-index: 2; }
/* the phone: a tall stage, the dog's head in its upper half, the compact card on the lawn below it (the scene reads
   --cb-compact) */
@media (max-width: 679px) {
  .cover__stage { aspect-ratio: 4 / 5.4; --cb-compact: 1; }
  .cover__img { width: calc(100% + 2px); object-position: 64% 50%; }
}

/* ---------- 5. Rusty trains your dog ---------- */
.training__media { display: grid; place-items: center; }
.training__print { width: min(100%, 520px); }
.training__print .loop { --loop-inset: -14px; --loop-r: 16px; }
