/* Santa cam page (/santa-cam). Loaded after /css/tools.css: uses its call-to-action card, questions and more-links blocks,
   and the camera frames (.cam, .vf, .fx, .osd) from site.css. */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- hero: copy beside the photo and the footage ---------- */
.santa-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 36px 48px; align-items: center; }
.santa-hero .page-head { margin-bottom: 0; }
.santa-hero .page-head h1 { font-size: clamp(40px, 5.2vw, 72px); }
.santa-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.santa-hero .page-head .fine { max-width: 54ch; }
@media (max-width: 959px) { .santa-hero { grid-template-columns: 1fr; } }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.ba .cam { aspect-ratio: 720 / 672; }
.ba figcaption { font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ba-note { grid-column: 1 / -1; }
.ba .osd, .feeds .osd { font-size: 10px; }
/* smaller frames: pull the viewfinder corners in and keep the labels clear of them */
.ba .vf, .feeds .vf { --vf-i: 7px; --vf-l: 12px; }
.ba .osd .o-tl, .feeds .osd .o-tl { top: 15px; left: 22px; }
.ba .osd .o-bl, .feeds .osd .o-bl { bottom: 15px; left: 22px; }
.ba .cam--photo .osd .o-tl { top: 10px; left: 10px; }
.ba .osd .photo { padding: 4px 7px; }
@media (max-width: 479px) { .ba .osd .o-bl, .ba .osd .o-room { display: none; } }

.cam-pause { appearance: none; position: absolute; z-index: 4; right: 20px; bottom: 20px; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgb(255 255 255 / .3); background: rgb(5 7 11 / .6); color: rgb(255 255 255 / .85); cursor: pointer; }
.cam-pause:hover { border-color: rgb(255 255 255 / .55); color: #fff; }
.cam-pause svg { width: 12px; height: 12px; fill: currentColor; }

/* ---------- sections ---------- */
.santa-sec { margin-top: clamp(80px, 11vh, 132px); }
.santa-sec h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 54px); font-weight: 340; }
.santa-sec h2 + p, .sec-p { margin-top: 18px; max-width: 64ch; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.sec-narrow { max-width: 780px; }

/* what is a santa cam: the comparison table (scrolls inside its box on a phone, never the page) */
.compare-wrap { margin-top: 32px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.compare-wrap:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.compare { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.compare th, .compare td { padding: 15px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font: 500 12px/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.compare tbody th { width: 17%; font-weight: 500; color: var(--ink); }
.compare td { color: var(--ink-2); }
.compare .us { background: rgb(255 182 72 / .07); color: var(--ink); }
.compare thead .us { color: var(--amber); }
.compare tr:last-child > * { border-bottom: 0; }
.compare-note { margin-top: 14px; }

/* how it works */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.steps li { display: grid; gap: 10px; align-content: start; padding: 26px 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.steps .n { font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.steps h3 { font-family: var(--f-display); font-size: 25px; line-height: 1.15; }
.steps p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
@media (max-width: 799px) { .steps { grid-template-columns: 1fr; } }

/* christmas eve */
.eve { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 36px 56px; align-items: start; }
.eve .btn { margin-top: 26px; }
.eve-list { list-style: none; margin: 8px 0 0; padding: 0; border-left: 1px solid var(--line-2); }
.eve-list li { position: relative; display: grid; gap: 6px; padding: 0 0 30px 28px; }
.eve-list li:last-child { padding-bottom: 0; }
.eve-list li::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.eve-list li:last-child::before { background: var(--rec); box-shadow: 0 0 0 4px rgb(255 74 61 / .22); }
.eve-list .when { font: 500 12px/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--amber); }
.eve-list strong { font-family: var(--f-display); font-weight: 400; font-size: 23px; line-height: 1.2; }
.eve-list p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 899px) { .eve { grid-template-columns: 1fr; } }

/* elf cam stills */
.feeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 32px 0 12px; }
.feeds figure { margin: 0; }
.feeds .cam { aspect-ratio: 1344 / 768; }
@media (max-width: 799px) { .feeds { grid-template-columns: 1fr; } }

/* how parents use it */
.uses { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.uses li { padding: 18px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); line-height: 1.55; }
.uses strong { color: var(--ink); font-weight: 500; }
.uses a { color: var(--amber-hi); text-underline-offset: 3px; }
.cam--photo::after { display: none; }

/* phones: the comparison becomes one card per question, so the TwinkleCam answer is never scrolled out of view */
@media (max-width: 599px) {
  .compare-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { padding: 5px 18px; border-bottom: 0; }
  .compare tbody th { width: auto; padding-bottom: 8px; font-family: var(--f-display); font-size: 21px; font-weight: 400; }
  .compare td::before { content: attr(data-k); display: block; margin-bottom: 2px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
  .compare td.us { margin: 6px 12px 0; padding: 10px 12px; border-radius: 10px; }
  .compare td.us::before { color: var(--amber); }
}
