/* 2027 Intentions: styles for the gift call sites (lane W3 owns this file).
   Loaded after designer.css and app.css. */

/* Gift 14 vision board: a licensed inspiration picture (assets/inspiration/<key>.webp) replaces the painted tile once
   nights21.js has found the file (class has-img); without it the gradient and the emoji stay. --img is set inline. */
.vb-insp.has-img,
.dy-insp button.has-img{background:var(--img) center/cover no-repeat,linear-gradient(145deg,var(--c1),var(--c2))}
.vb-insp.has-img b,
.dy-insp button.has-img b{visibility:hidden}
.dy-insp button.has-img i{position:absolute;left:4px;right:4px;bottom:6px}
/* Keyboard (IN-465 DEV e2e D1, D3). The gift bow is the first stop of every gift: giftart.css takes its outline away,
   so it gets the site’s gold ring back here. Photo pickers keep their file input in the tab order,
   visually hidden; the label around it shows the ring when the input has keyboard focus. */
.big-gift.pg:focus-visible{outline:2px solid var(--gold);outline-offset:6px;border-radius:28px}
.vh-file{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;opacity:0}
label:has(> .vh-file:focus-visible){outline:2px solid var(--gold);outline-offset:3px}
.giftbox[role=button]:focus-visible{outline:2px solid var(--gold);outline-offset:6px;border-radius:12px}
/* ---------- IN-465 bugs of 2026-11-19 (lane site-gifts) ---------- */
/* IN-515, IN-565: words longer than their line (a place name, a 60-character one-word name) break instead of running
   off the box or the screen; "anywhere" on the text itself, so grid and flex columns can shrink around it */
body{overflow-wrap:break-word}
.cn-text,.sheet .cn2 p.cn-text,.home-head h1,.yb h1,.yb-page{overflow-wrap:anywhere}
.gift-intro .bg-tag{white-space:normal;max-width:min(200px,52vw);height:auto;min-height:52px;padding-block:8px}
.gift-intro .bg-tag span{overflow-wrap:anywhere}
/* IN-562: award 1 has no Back, so its Next is centred */
.aws-nav.solo{justify-content:center}
/* IN-566 / decision 38179: toasts may use the screen width minus 32 px (560 px at most); wrapped ones get a 16 px radius */
#toast-root{left:16px;right:16px;transform:none}
.toast{max-width:min(100%,560px);line-height:1.4}
.toast.wrap{border-radius:16px}
/* IN-544: the pop-up's close and sound buttons hide what scrolls under them, and the bar is as wide as the card's
   padding, so the card never scrolls sideways */
.modal-card{overflow-x:hidden}
.modal-card:has(.join2) .modal-bar .x,.modal-card:has(.join2) .modal-bar .music-btn.in-modal{background:#353a67}
@media (max-width:640px){ .modal-card:has(.join2) .modal-bar{margin-left:-20px;margin-right:-20px} }
/* IN-560 (as the prototype): the "Already use the app?" hint centred in #c4b0a5 (5.4:1 on the card), the newsletter box
   under Email, and on wide screens a narrow side column so each of the three items keeps one line */
.join2 .j2-same{text-align:center;color:#c4b0a5}
.join2 .form-grid .j2-mkt{margin-top:4px}
@media (min-width:820px){ .j2-top{grid-template-columns:minmax(0,1fr) minmax(0,270px)} .join2 .form-grid .j2-mkt{justify-self:center}
  /* the narrow side column leaves the badge as the tallest item: keep it clear of the first field without "Or with email" */
  .join2 .j2-top + .form-grid{margin-top:20px} }
/* IN-561 (as the prototype, .gg2): header, checkout card, four items and "See everything included"; the card stands on
   the right on wide screens */
.gift-grid.gg2{grid-template-areas:"head card" "more card";grid-template-rows:auto 1fr}
.gg2-head{grid-area:head}
.gift-grid.gg2 > .checkout{grid-area:card}
.gg2-more{grid-area:more}
.gg2-more > .incl{margin-top:4px}
.gg2-all{margin-top:14px}
.gg2-all summary{display:inline-flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;list-style:none;color:var(--gold);font-weight:600;font-size:15px}
.gg2-all summary::-webkit-details-marker{display:none}
.gg2-all summary::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.gg2-all[open] summary::after{transform:translateY(2px) rotate(-135deg)}
.gg2-all summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:6px}
.gg2-all .incl{margin-top:6px}
@media (max-width:820px){ .gift-grid.gg2{grid-template-areas:"head" "card" "more";grid-template-rows:none} .gift-grid.gg2 h1{font-size:clamp(30px,9vw,44px)} }
/* IN-517: before gift 24 the "unlocked" page says when the PDF opens instead of offering it */
.gf-pdf-later{text-align:center;color:var(--ink-dim);margin:18px auto 0;max-width:32em}
/* Keep this the last rule of the file: the yearbook print page (assets/print.js) fails the PDF when a stylesheet
   arrives without it, which is how a download cut off mid-file shows up (IN-465). */
.css-eof{--css-eof:1}
