/* xmas.css : Holiday Edition skin for /sellers-guide/ — loads AFTER guide.css. Everything scoped under .sg */

/* ---------- 1. Book size hook (engine: availH = innerHeight - (--sg-chrome + header)) ---------- */
.sg .stage{--sg-chrome:172px}
@media (max-width:900px){.sg .stage{--sg-chrome:222px}} /* includes the 52px fixed bottom bar */

/* ---------- 2. Scene + sky layers ---------- */
.sg .xm-scene{position:relative;overflow:hidden;overflow:clip;isolation:isolate;color:#fff;
  background:linear-gradient(180deg,#07182A 0%,#0A1E30 30%,#0C2233 62%,#102B40 100%);
  padding-bottom:clamp(54px,8vw,112px)}
.sg .xm-scene::before{content:"";position:absolute;left:0;right:0;top:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(224,184,120,.65) 30%,rgba(255,255,255,.5) 50%,rgba(224,184,120,.65) 70%,transparent)}
.sg .xm-sky{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;
  --xm-stars:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='18' cy='34' r='1' opacity='.75'/%3E%3Ccircle cx='96' cy='12' r='.7' opacity='.6'/%3E%3Ccircle cx='151' cy='71' r='1.1' opacity='.8'/%3E%3Ccircle cx='228' cy='40' r='.7' opacity='.55'/%3E%3Ccircle cx='62' cy='118' r='.8' opacity='.5'/%3E%3Ccircle cx='201' cy='139' r='1' opacity='.7'/%3E%3Ccircle cx='124' cy='188' r='.7' opacity='.55'/%3E%3Ccircle cx='31' cy='214' r='1' opacity='.65'/%3E%3Ccircle cx='243' cy='226' r='.8' opacity='.6'/%3E%3Ccircle cx='171' cy='246' r='.6' opacity='.5'/%3E%3C/g%3E%3Ccircle cx='84' cy='66' r='1.2' fill='%23E0B878' opacity='.8'/%3E%3Ccircle cx='214' cy='96' r='1' fill='%23E0B878' opacity='.6'/%3E%3C/svg%3E")}
.sg .xm-sky::before{content:"";position:absolute;inset:0;opacity:.85;
  background-image:var(--xm-stars),var(--xm-stars);background-size:260px 260px,410px 410px;background-position:0 0,90px 40px;
  -webkit-mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.5) 55%,transparent 88%);
  mask-image:linear-gradient(180deg,#000 0,rgba(0,0,0,.5) 55%,transparent 88%)}
.sg .xm-sky::after{content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse 80% 26% at 50% 100%,rgba(143,180,212,.14),transparent 70%)}
.sg .xm-snow{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:.9}

/* warm lights draped in the two top corners only (masked out behind the title) */
.sg .xm-garland{position:absolute;left:0;right:0;top:var(--xm-h);height:64px;
  background:radial-gradient(circle at 50% 50%,rgba(255,232,186,.95) 0 1.6px,rgba(224,184,120,.4) 3px,transparent 9px) 0 4px/58px 36px repeat-x;
  -webkit-mask-image:linear-gradient(90deg,#000 0,transparent 26%,transparent 74%,#000 100%);
  mask-image:linear-gradient(90deg,#000 0,transparent 26%,transparent 74%,#000 100%)}
.sg .xm-garland::after{content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 50% 50%,rgba(224,184,120,.3) 0 6px,transparent 13px) 24px 14px/86px 50px repeat-x}

/* four-point sparkles */
.sg .xm-spark{position:absolute;width:16px;height:16px;opacity:.75;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E0B878' d='M12 0C12.6 7 17 11.4 24 12 17 12.6 12.6 17 12 24 11.4 17 7 12.6 0 12 7 11.4 11.4 7 12 0Z'/%3E%3C/svg%3E") center/contain no-repeat}
.sg .xm-spark:nth-of-type(1){left:4%;top:13%}
.sg .xm-spark:nth-of-type(2){left:93%;top:10%;width:20px;height:20px}
.sg .xm-spark:nth-of-type(3){left:8%;top:47%;width:11px;height:11px;opacity:.6}
.sg .xm-spark:nth-of-type(4){left:90%;top:41%;width:13px;height:13px}
.sg .xm-spark:nth-of-type(5){left:84%;top:71%;width:10px;height:10px;opacity:.55}

.sg .xm-ridge{position:absolute;left:0;right:0;bottom:-1px;width:100%;height:clamp(90px,14vw,190px);display:block}

@media (prefers-reduced-motion:no-preference){
  .sg .xm-garland{animation:xmGlow 4s ease-in-out infinite alternate}
  .sg .xm-garland::after{animation:xmGlow 5.5s ease-in-out -2s infinite alternate}
  .sg .xm-spark{animation:xmTwinkle 5s ease-in-out infinite}
  .sg .xm-spark:nth-of-type(2){animation-delay:-1.2s}
  .sg .xm-spark:nth-of-type(3){animation-delay:-2.6s}
  .sg .xm-spark:nth-of-type(4){animation-delay:-3.4s}
  .sg .xm-spark:nth-of-type(5){animation-delay:-4.1s}
}
@keyframes xmGlow{from{opacity:.6}to{opacity:1}}
@keyframes xmTwinkle{0%,100%{opacity:.25;transform:scale(.7)}50%{opacity:.9;transform:scale(1)}}
html.xm-static .sg .xm-garland,html.xm-static .sg .xm-garland::after,html.xm-static .sg .xm-spark{animation:none!important}
@media (prefers-reduced-motion:reduce){.sg .xm-garland,.sg .xm-garland::after,.sg .xm-spark{animation:none!important}}

/* ---------- 3. Title ---------- */
.sg .eyebrow{color:#E0B878;font-size:.72rem;letter-spacing:.18em}
.sg .eyebrow::before{width:24px;height:2px;background:#D2A35C;flex:0 0 auto}
.sg .xm-title{position:relative;text-align:center;padding:14px 1.4rem 0;margin:0 0 6px}
.sg .xm-title .eyebrow{justify-content:center;margin:0 0 4px}
.sg .xm-title h1{font-size:clamp(1.6rem,2.6vw,2.1rem);font-weight:500;color:#fff;letter-spacing:-.012em;
  text-shadow:0 1px 14px rgba(7,24,42,.85)}
.sg .xm-title h1 em,.sg .xm-lede h2 em,.sg .cta-band h2 em{font-style:italic;font-weight:500;color:#E0B878}

/* ---------- 4. Reader: transparent, book as the lit object ---------- */
.sg .reader{background:transparent;color:#fff;padding:0}
.sg .stage{position:relative;padding:6px 0}
.sg .stage::before{content:"";position:absolute;inset:-7% 6%;z-index:-1;pointer-events:none;
  background:radial-gradient(ellipse 50% 50% at 50% 52%,rgba(255,226,170,.42),rgba(224,184,120,.24) 36%,rgba(210,163,92,.09) 60%,transparent 76%)}
.sg .stage::after{content:"";position:absolute;left:50%;bottom:-6px;width:min(72%,780px);height:30px;margin-left:calc(min(72%,780px)/-2);
  z-index:-1;pointer-events:none;background:radial-gradient(ellipse at center,rgba(3,12,22,.6),transparent 70%)}
.sg .stage:fullscreen::before,.sg .stage:fullscreen::after{display:none}
.sg .stage:-webkit-full-screen::before,.sg .stage:-webkit-full-screen::after{display:none}
.sg .book{background:transparent} /* the old navy slab would show beside the centred cover */
.sg .stage:fullscreen .book,.sg .stage:-webkit-full-screen .book{background:transparent}
.sg .skip-intro{background:rgba(7,24,42,.82);border-color:rgba(255,255,255,.75)}

/* controls: one glass pill */
.sg .controls{width:-moz-fit-content;width:fit-content;max-width:100%;margin:10px auto 0;padding:5px;gap:4px;
  border-radius:999px;border:1px solid rgba(143,180,212,.32);
  background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.03)),rgba(7,24,42,.62);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 14px 34px -18px rgba(0,0,0,.7);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.sg .ctl{border-color:transparent;font-size:.9rem;padding:.5rem .95rem}
.sg .ctl:hover:not(:disabled){border-color:rgba(224,184,120,.7);background:rgba(224,184,120,.12)}
.sg .controls #prev,.sg .controls #next{color:#E0B878}
.sg .ctl[aria-expanded="true"]{background:#fff;color:#102B40;border-color:#fff}
.sg .counter{font-size:.9rem;color:#fff;font-variant-numeric:tabular-nums}
.sg .sep{background:rgba(143,180,212,.4);height:24px}
.sg .thumbs{border-top-color:rgba(143,180,212,.28)}

/* quiet row under the controls */
.sg .brokered{text-align:center;margin:16px 0 10px;font-size:.86rem;letter-spacing:.04em;color:#fff}
.sg .brokered::before{width:7px;height:7px;background:#E0B878;vertical-align:.08em}
.sg .sg-chips{gap:.4rem;margin:0}
.sg .chip{font-size:.8rem;min-height:36px;padding:.3rem .8rem;color:#E4EDF5;border-color:rgba(143,180,212,.5);background:rgba(7,24,42,.35)}
.sg .chip:hover{border-color:#E0B878;color:#fff}
.sg .chip[aria-current="true"]{background:rgba(224,184,120,.18);border-color:#E0B878;color:#fff}
.sg .hint{font-size:.82rem;color:#C9D8E6;opacity:1;margin:.6rem 0 0;text-shadow:0 1px 8px rgba(7,24,42,.9)}

/* ---------- 5. Lede band: ground under the ridge, ending in dawn ---------- */
.sg .xm-lede{position:relative;color:#fff;text-align:center;padding:2.2rem 0 5rem;
  background:radial-gradient(ellipse 70% 150px at 50% 100%,rgba(224,184,120,.34),transparent 70%),
    linear-gradient(180deg,#0a1c2b 0%,#0C2233 30%,#102B40 68%,#18384f 100%)}
.sg .xm-lede::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
  background:linear-gradient(90deg,rgba(210,163,92,.2),#E0B878 50%,rgba(210,163,92,.2))}
.sg .xm-lede .eyebrow{justify-content:center;margin-bottom:.7rem}
.sg .xm-lede h2{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:500;color:#fff}
.sg .xm-lede .sg-lede{margin:1rem auto 1.5rem;max-width:44rem;font-size:1.06rem;color:#E6EEF5}
.sg .xm-lede .sg-cta-row{justify-content:center}

/* buttons, pop-up style */
.sg .sg-btn-gold,.sg .xm-lede a.sg-btn-gold,.sg .cta-band a.sg-btn-gold{background:#D2A35C;color:#0C2233!important;border-color:#D2A35C;box-shadow:none}
.sg .sg-btn-gold:hover,.sg .xm-lede a.sg-btn-gold:hover,.sg .cta-band a.sg-btn-gold:hover{background:#E0B878;border-color:#E0B878}
.sg .sg-btn-line{color:#fff;border-color:rgba(255,255,255,.72)}
.sg .sg-btn-line:hover{border-color:#E0B878;background:rgba(224,184,120,.1)}

/* ---------- 6. Paper: glance, then the walkthrough card ---------- */
.sg .glance{background:linear-gradient(180deg,rgba(224,184,120,.24),rgba(224,184,120,0) 130px),#FBF7EF;color:#102B40;padding:3.4rem 0 2.2rem}
.sg .glance h2{font-weight:500;color:#102B40}
.sg .glance-intro{color:#23415A}
.sg .glance-list li{border-top:1px solid #D2A35C}
.sg .glance-list h3{font-weight:600;color:#102B40}
.sg .glance-list .pn{color:#7A5420}
.sg .glance a{color:#102B40}

.sg .cta-band{background:#FBF7EF;color:#fff;padding:1.2rem 0 3.6rem}
.sg .xm-card{position:relative;overflow:hidden;border-radius:22px;padding:clamp(1.5rem,4vw,2.8rem);
  border:1px solid rgba(143,180,212,.3);
  background:radial-gradient(120% 140% at 18% 0%,#1b4160 0%,#102B40 46%,#0C2233 100%);
  box-shadow:0 26px 60px -26px rgba(12,34,51,.6),inset 0 1px 0 rgba(255,255,255,.14)}
.sg .xm-card::before{content:"";position:absolute;left:8%;right:8%;top:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(224,184,120,.8),transparent)}
.sg .xm-card::after{content:"";position:absolute;right:22px;top:20px;width:16px;height:16px;opacity:.8;pointer-events:none;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23E0B878' d='M12 0C12.6 7 17 11.4 24 12 17 12.6 12.6 17 12 24 11.4 17 7 12.6 0 12 7 11.4 11.4 7 12 0Z'/%3E%3C/svg%3E") center/contain no-repeat}
.sg .cta-band h2{font-weight:500;color:#fff}
.sg .cta-band p{color:#E6EEF5}
.sg .cta-band .eyebrow{color:#E0B878;margin-bottom:.7rem}
.sg .sg-notes{background:#FBF7EF}

/* ---------- 7. Focus rings (dark areas: white ring + navy halo; paper keeps guide.css navy ring) ---------- */
.sg .xm-scene :focus-visible,.sg .xm-lede :focus-visible,.sg .cta-band :focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px #102B40}
.sg .xm-lede a.sg-btn:focus-visible,.sg .cta-band a.sg-btn:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px #102B40}
.sg .xm-scene .hot:focus-visible{outline:3px solid #102B40;box-shadow:0 0 0 5px #fff}

/* ---------- 8. Phones ---------- */
@media (max-width:640px){
  .sg .xm-title{padding:10px 1rem 0;margin-bottom:4px}
  .sg .xm-title .eyebrow{font-size:.68rem}
  .sg .xm-title h1{font-size:1.45rem}
  .sg .xm-title h1 em{display:block}
  .sg .xm-garland{height:30px;background-size:44px 24px;background-position:0 2px}
  .sg .xm-garland::after{display:none}
  .sg .reader .sg-wrap{padding:0 .75rem}
  .sg .stage{padding:4px 0}
  .sg .stage::before{inset:-4% -6%}
  .sg .controls{width:auto;flex-wrap:nowrap;margin-top:6px;padding:4px;gap:2px}
  .sg .controls .brk{display:none}
  .sg .controls #fsBtn{display:none!important} /* Zoom is already full-viewport on phones */
  .sg .ctl{padding:.5rem .7rem;font-size:.85rem}
  .sg .counter{flex:1 1 0;min-width:0;font-size:.78rem;line-height:1.15}
  .sg .brokered{margin:14px 0 8px;font-size:.82rem}
  .sg .sg-chips{margin:0 -.75rem;padding:2px .75rem .4rem;scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 .75rem,#000 calc(100% - 1.6rem),transparent 100%);
    mask-image:linear-gradient(90deg,transparent 0,#000 .75rem,#000 calc(100% - 1.6rem),transparent 100%)}
  .sg .sg-chips::-webkit-scrollbar{display:none}
  .sg .hint{font-size:.78rem;margin-top:.3rem}
  .sg .xm-lede{padding:1.6rem 0 4.2rem;text-align:left}
  .sg .xm-lede .eyebrow{justify-content:flex-start}
  .sg .xm-lede .sg-lede{margin-left:0}
  .sg .glance{padding-top:2.6rem}
  .sg .cta-band{padding-bottom:2.6rem}
  .sg .xm-card{border-radius:18px}
}

/* ---------- 9. Print ---------- */
@media print{.sg .xm-scene,.sg .xm-lede{display:none!important}}

/* The sky runs under the fixed header. Header height by breakpoint (measured: 86 at 1181+, 94 at 901-1180, 66 at 481-900, 58 at 480-): the scene pads by it, so there is no flat band and nothing moves after load. */
.sg{--xm-h:86px}
@media (max-width:1180px){.sg{--xm-h:94px}}
@media (max-width:900px){.sg{--xm-h:66px}}
@media (max-width:480px){.sg{--xm-h:58px}}
body.is-sg{padding-top:0}
.sg .xm-scene{padding-top:var(--xm-h)}

/* No layout shift while the engine measures: reserve the book's height in CSS (same formula as the engine's measure(), slightly conservative).
   --xm-h is set inline from the header height before first paint; --sg-chrome is the hook above. */
.sg .stage{--xm-aw:min(1115px,calc(100vw - 60px));--xm-ph:min(max(320px,calc(100svh - var(--sg-chrome) - var(--xm-h))),calc(var(--xm-aw) / 2 * 1.2941),906px)}
.sg .stage .book-slot{min-height:calc(var(--xm-ph) - 2px)}
@media (max-width:804px){.sg .stage{--xm-aw:calc(100vw - 24px);--xm-ph:min(max(320px,calc(100svh - var(--sg-chrome) - var(--xm-h))),calc(var(--xm-aw) * 1.2941),621px)}}
@media (max-width:700px){.sg .stage .book-slot{min-height:calc(var(--xm-ph) - 2px)}}
.sg .stage:fullscreen .book-slot,.sg .stage:-webkit-full-screen .book-slot{min-height:0}
/* reserve the slot's width too, so the sparks canvas (100% of the slot) never grows from 0 */
.sg .stage .book-slot{min-width:calc(var(--xm-ph) / 1.2941 * 2 - 4px)}
@media (max-width:804px){.sg .stage .book-slot{min-width:calc(var(--xm-ph) / 1.2941 - 4px)}}
.sg .stage:fullscreen .book-slot,.sg .stage:-webkit-full-screen .book-slot{min-width:0}
/* the sparks canvas sits below the placeholder cover until the engine marks the slot ready; keep it out of layout until then (it jumped to the top and was counted as a layout shift) */
.sg .book-slot:not(.is-ready) .sparks{display:none}
/* Until the engine marks the slot ready, the in-flow text fallback page (about 725px tall) would hold the slot open and then collapse (a layout shift on fast first paints).
   With scripting on, hold the slot at the reserved book height and keep the fallback out of sight; the failed state and no-JS visitors still get the fallback page. */
@media (scripting:enabled){
  .sg .stage .book-slot:not(.is-ready):not(.is-failed){height:var(--xm-ph);overflow:hidden}
  .sg .stage .book-slot:not(.is-ready):not(.is-failed) .fallback-cover{visibility:hidden}
}

/* ---------- 8. Get the guide: lead capture card on paper + end-of-book CTA ---------- */
.sg .xm-get{position:relative;background:linear-gradient(180deg,rgba(224,184,120,.24),rgba(224,184,120,0) 130px),#FBF7EF;
  padding:clamp(2rem,5vw,3.4rem) 0 .6rem;scroll-margin-top:5.5rem}
.sg .xm-get-in{width:calc(100% - 2rem);max-width:70rem;margin:0 auto}
.sg .xm-get [hidden]{display:none}

.sg .xm-get-card{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;color:#E6EEF5}
.sg .xm-get-copy,.sg .xm-get-main{min-width:0}
.sg .xm-get .eyebrow{color:#E0B878;margin-bottom:.7rem}
.sg .xm-get h2{font-size:clamp(1.5rem,3vw,2.1rem);font-weight:500;color:#fff;margin:0 0 .9rem}
.sg .xm-get h2 em{font-style:italic;color:#E0B878}
.sg .xm-get-intro{margin:0 0 .8rem;font-size:1.04rem;line-height:1.6;color:#E6EEF5;max-width:34rem}

/* form */
.sg .xm-get-form{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;margin:0}
.sg .xm-get-row{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
.sg .xm-get-field{min-width:0}
.sg .xm-get-field label{display:block;margin:0 0 .35rem;font-size:.95rem;font-weight:600;color:#fff}
.sg .xm-get-opt{font-weight:400;color:#E6EEF5}
.sg .xm-get-field input,.sg .xm-get-field select{display:block;width:100%;min-height:48px;box-sizing:border-box;margin:0;
  padding:.65rem .85rem;font:inherit;font-size:max(16px,1rem);line-height:1.3;color:#102B40;background-color:#fff;
  border:1px solid #C9D6E2;border-radius:10px;box-shadow:inset 0 1px 2px rgba(12,34,51,.08);
  -webkit-appearance:none;-moz-appearance:none;appearance:none}
.sg .xm-get-field select{padding-right:2.6rem;text-overflow:ellipsis;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath fill='none' stroke='%23102B40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2 2l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right .95rem center;background-size:14px 9px}
.sg .xm-get-field select::-ms-expand{display:none}
.sg .xm-get-field input:hover,.sg .xm-get-field select:hover{border-color:#E0B878}

/* honeypot: off-screen, not display:none */
.sg .xm-get .hp{position:absolute!important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* errors: border + prefix text + icon, not color alone */
.sg .xm-get-field [aria-invalid="true"]{border:2px solid #D9480F;box-shadow:0 0 0 2px #FFC9B5}
.sg .xm-get-err{margin:.4rem 0 0;padding-left:.6rem;border-left:3px solid #FFB8A0;font-size:.9rem;line-height:1.4;font-weight:600;color:#FFD3C4}
.sg .xm-get-alert{position:relative;padding:.75rem .9rem .75rem 2.9rem;border:2px solid #B93A0A;border-left-width:6px;border-radius:10px;
  background:#FFF3EC;color:#6B1D00;font-size:.95rem;line-height:1.45;font-weight:600}
.sg .xm-get-alert:empty{display:none}
.sg .xm-get-alert::before{content:"!";position:absolute;left:.75rem;top:.72rem;width:1.4rem;height:1.4rem;border-radius:50%;
  background:#B93A0A;color:#fff;font-weight:700;font-size:.95rem;line-height:1.4rem;text-align:center}
.sg .xm-get-alert a{color:#6B1D00;text-decoration:underline}

/* consent rows */
.sg .xm-get .consent{display:flex;align-items:flex-start;min-height:44px;margin:0;padding:0;background:none;border-radius:0}
.sg .xm-get .consent input[type="checkbox"]{flex:0 0 auto;width:1.6rem;height:1.6rem;margin:.3rem 0 0;accent-color:#D2A35C;cursor:pointer}
.sg .xm-get .consent label{flex:1 1 auto;min-width:0;min-height:44px;padding:.3rem 0 .3rem .7rem;font-size:.85rem;line-height:1.5;color:#E6EEF5;cursor:pointer}
.sg .xm-get .consent a{color:#E0B878;text-decoration:underline;text-underline-offset:2px}
.sg .xm-get .consent a:hover{color:#fff}
.sg .xm-get .xm-get-privacy{margin:.1rem 0 0;padding-left:2.3rem;font-size:.8rem;line-height:1.5;color:#C5D2DE}

/* submit + notes */
.sg .xm-get-form .sg-btn{width:100%;min-height:48px;margin:.2rem 0 0;font:inherit;font-weight:600;font-size:1.02rem;cursor:pointer;
  -webkit-appearance:none;appearance:none;justify-content:center;text-align:center}
.sg .xm-get-form .sg-btn[disabled]{cursor:progress;background:#C9B38E;border-color:#C9B38E;color:#0C2233!important}
.sg .xm-get-note{margin:0;font-size:.88rem;line-height:1.5;color:#E6EEF5;text-align:center}
.sg .xm-get-foot{margin:0;padding-top:1.1rem;border-top:1px solid rgba(143,180,212,.3);font-size:.82rem;line-height:1.6;color:#D5E0EA}
.sg .xm-get-eho{white-space:nowrap}
.sg .xm-get-eho svg{display:inline-block;width:1em;height:1em;margin-right:.35em;vertical-align:-.12em;color:#E0B878}

/* thank-you panel */
.sg .xm-get-thanks{padding:clamp(1.1rem,3vw,1.6rem);border:1px solid rgba(224,184,120,.55);border-radius:16px;background:rgba(12,34,51,.55);color:#E6EEF5}
.sg .xm-get-thanks-h{margin:0 0 .6rem;font-size:clamp(1.35rem,2.6vw,1.75rem);font-weight:500;color:#fff}
.sg .xm-get-thanks p{margin:0 0 1rem;line-height:1.6;color:#E6EEF5}
.sg .xm-get-thanks p:last-child{margin-bottom:0}
.sg .xm-get-thanks .sg-btn{min-height:44px}
.sg .xm-get-thanks-row{display:flex;flex-wrap:wrap;gap:.6rem}
.sg .xm-get-thanks-row .sg-btn{font-size:.95rem}
/* no-script redirect to #guide-thanks */
.sg .xm-get .xm-get-thanks[hidden]:target{display:block}
.sg .xm-get-main:has(.xm-get-thanks:target) .xm-get-form{display:none}

/* focus: white ring + navy halo on the night card */
.sg .xm-get :focus-visible,.sg .xm-get a.sg-btn:focus-visible,.sg .xm-endcta :focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px #102B40}
.sg .xm-get-field input:focus-visible,.sg .xm-get-field select:focus-visible{outline:3px solid #fff;outline-offset:2px;border-color:#D2A35C;box-shadow:0 0 0 6px #102B40}

@media (min-width:560px){
  .sg .xm-get-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media (min-width:900px){
  .sg .xm-get-card{grid-template-columns:minmax(0,5fr) minmax(0,6fr);column-gap:clamp(2rem,4vw,3.4rem);align-items:start}
  .sg .xm-get-foot{grid-column:1 / -1}
  .sg .xm-get-copy{padding-top:.3rem}
}

/* ---------- 9. End-of-book CTA: absolute in the scene's bottom padding, no layout shift ---------- */
/* Tune --xm-endcta-bottom so the pill clears the ridge artwork. */
.sg .xm-scene{position:relative}
.sg .xm-endcta{position:absolute;left:50%;bottom:var(--xm-endcta-bottom,clamp(1rem,3.2vw,2.4rem));z-index:4;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.4rem .9rem;box-sizing:border-box;
  width:max-content;max-width:calc(100% - 1.5rem);margin:0;padding:.45rem .5rem .45rem 1.1rem;
  border:1px solid rgba(224,184,120,.6);border-radius:28px;background:rgba(12,34,51,.94);color:#E6EEF5;
  box-shadow:0 14px 34px -16px rgba(0,0,0,.7),inset 0 1px 0 rgba(255,255,255,.12);
  opacity:0;transform:translate(-50%,8px);transition:opacity .35s ease,transform .35s ease}
.sg .xm-endcta.is-on{opacity:1;transform:translate(-50%,0)}
.sg .xm-endcta[hidden]{display:none}
.sg .xm-endcta-t{margin:0;font-size:.95rem;line-height:1.35;color:#E6EEF5;text-align:center}
.sg .xm-endcta-b{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 1.15rem;border-radius:22px;
  background:#D2A35C;color:#0C2233;font-weight:600;font-size:.95rem;text-decoration:none;white-space:nowrap}
.sg .xm-endcta-b:hover{background:#E0B878;color:#0C2233}
/* room for the pill, always reserved (scene padding), so showing it never moves anything */
.sg .xm-scene{padding-bottom:clamp(88px,8vw,112px)}
@media (max-width:480px){
  .sg .xm-endcta{flex-wrap:nowrap;gap:.5rem;padding:.4rem .4rem .4rem .9rem;border-radius:28px;width:calc(100% - 1.5rem);justify-content:space-between;--xm-endcta-bottom:.6rem}
  .sg .xm-endcta-t{text-align:left;font-size:.9rem}
  .sg .xm-endcta-b{padding:0 .95rem;font-size:.9rem}
}

@media (prefers-reduced-motion:reduce){
  .sg .xm-endcta{transition:none;transform:translate(-50%,0)}
  .sg .xm-get *,.sg .xm-endcta *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

/* ---------- 10. sgpage (2026-11-29): printed-copy ribbon under the headline (opens the in-pop-up mail form) ---------- */
/* the ribbon takes room above the book, so the engine's chrome hook grows by the same amount (book shrinks a little, controls stay on screen) */
.sg .stage{--sg-chrome:226px}
@media (max-width:900px){.sg .stage{--sg-chrome:276px}}
.sg .xm-mail{position:relative;z-index:3;display:flex;justify-content:center;margin:12px auto 4px;padding:0 1rem}
.sg .xm-mail-b{-webkit-appearance:none;appearance:none;display:inline-flex;align-items:center;gap:.75rem;max-width:min(45rem,100%);min-height:46px;margin:0;
  padding:.25rem .25rem .25rem .4rem;border:1px solid rgba(224,184,120,.62);border-radius:999px;
  background:linear-gradient(180deg,rgba(23,56,82,.92),rgba(12,34,51,.94));color:#E6EEF5;font:inherit;font-size:.95rem;line-height:1.3;text-align:left;cursor:pointer;
  box-shadow:0 12px 30px -16px rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.1);transition:border-color .2s ease,box-shadow .2s ease}
.sg .xm-mail-b:hover{border-color:#E0B878;box-shadow:0 14px 34px -14px rgba(0,0,0,.8),0 0 0 3px rgba(224,184,120,.16),inset 0 1px 0 rgba(255,255,255,.12)}
.sg .xm-mail-b:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 6px #102B40}
.sg .xm-mail-ic{flex:none;display:inline-grid;place-items:center;width:2.15rem;height:2.15rem;border-radius:50%;background:rgba(224,184,120,.16);color:#E0B878}
.sg .xm-mail-ic svg{width:1.15rem;height:1.15rem}
.sg .xm-mail-t{min-width:0}
.sg .xm-mail-t strong{font-weight:600;color:#E0B878}
.sg .xm-mail-l1{color:#fff}
.sg .xm-mail-az{margin-left:.2rem;color:#C9D3DC;font-size:.82rem;white-space:nowrap}
.sg .xm-mail-m{display:none}
.sg .xm-mail-go{flex:none;display:inline-flex;align-items:center;min-height:36px;padding:0 1rem;border-radius:999px;background:#D2A35C;color:#0C2233;font-weight:600;font-size:.92rem;white-space:nowrap;transition:background .2s ease}
.sg .xm-mail-b:hover .xm-mail-go{background:#E0B878}
@media (max-width:900px){
  .sg .xm-mail{margin:8px -4px 2px;padding:0}   /* title has 16px side padding; -4px lines the ribbon up with the book's 12px inset */
  .sg .xm-mail-b{width:100%;max-width:30rem;gap:.6rem;min-height:56px;padding:.5rem .55rem .5rem .55rem;border-radius:16px}
  .sg .xm-mail-t{flex:1 1 auto;display:flex;flex-direction:column}
  .sg .xm-mail-d{display:none}
  .sg .xm-mail-m{display:inline}
  .sg .xm-mail-l1{font-size:.94rem;line-height:1.25;font-weight:600;white-space:nowrap}
  .sg .xm-mail-az{margin:1px 0 0;font-size:.8rem;line-height:1.3;white-space:normal}
  .sg .xm-mail-go{min-height:38px;padding:0 .85rem;font-size:.88rem}
}
@media (max-width:480px){.sg .xm-title .eyebrow{display:none}}   /* phones: the cover already says Holiday Edition 2026; gives the book room */
@media (max-width:379px){.sg .xm-mail-ic{display:none}}
/* one-time arrival cue (no layout shift: opacity/transform/box-shadow only) */
@media (prefers-reduced-motion:no-preference){
  .sg .xm-mail-b{animation:xmMailIn .5s .4s both ease-out,xmMailGlow 1.2s 1s 1 ease-in-out}
}
@keyframes xmMailIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes xmMailGlow{50%{box-shadow:0 12px 30px -16px rgba(0,0,0,.75),0 0 0 3px rgba(224,184,120,.35),inset 0 1px 0 rgba(255,255,255,.1)}}

/* form footer line: the page form is guide-link only; paper copies go through the pop-up */
.sg .xm-get .xm-get-paper{margin:.1rem 0 0;font-size:.9rem;line-height:1.5;color:#E6EEF5;text-align:center}
.sg .xm-get .xm-get-paper-b{-webkit-appearance:none;appearance:none;display:inline;min-height:0;margin:0;padding:.35rem .1rem;border:0;background:none;
  color:#E0B878;font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sg .xm-get .xm-get-paper-b:hover{color:#fff}
.sg .xm-get .xm-get-paper .xm-get-opt{color:#C5D2DE;font-size:.85rem}

/* printed-copy offer ended (12:00 AM MST Jan 5 2027; html.sg-mail-off set inline before the ribbon paints, and again by xmas.js) */
.sg-mail-off .sg .xm-mail,.sg-mail-off .sg .xm-get-paper,.sg-mail-off .sg [data-sg-mail]{display:none!important}
.sg-mail-off .sg .stage{--sg-chrome:172px}
@media (max-width:900px){.sg-mail-off .sg .stage{--sg-chrome:222px}}

/* ---------- 11. sgmob (2026-11-29): Seller's Guide page only — hide the sitewide
   Call / Text / Home value bar, enlarge the cover on phones, keep the pager and
   chips clear of the GHL chat bubble. Other pages are untouched. Printed-copy
   offer still ends 12:00 AM MST Jan 5 2027. */

/* Hide the sticky bar on this page only (body.is-sg). site.js may still inject it. */
body.is-sg .worth-bar,
body.is-sg .action-bar{
  display:none!important;
  pointer-events:none!important;
  visibility:hidden!important;
}

/* Undo the 78px body padding the action bar adds on phones; clearance lives under #guide. */
@media (max-width:767.98px){
  body.is-sg.has-action-bar{padding-bottom:0}
  html:has(body.is-sg.has-action-bar){scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
}

/* Book chrome no longer reserves the 52px sticky bar, so the cover can use the width. */
@media (max-width:900px){
  .sg .stage{--sg-chrome:224px}
  .sg-mail-off .sg .stage{--sg-chrome:170px}
}

/* Room under the pager + chips for the GHL chat bubble
   (~60px bubble + .7rem inset + safe area). The widget itself stays visible. */
.sg #guide .sg-wrap{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
@media (max-width:900px){
  .sg #guide .sg-wrap{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
}

/* Ribbon CTA: one consistent label that stays on one line at 360px. */
.sg .xm-mail-go{white-space:nowrap}
@media (max-width:900px){
  .sg .xm-mail-go{min-height:38px;padding:0 .75rem;font-size:.86rem}
}
@media (max-width:359px){
  .sg .xm-mail-go{padding:0 .6rem;font-size:.82rem}
}

/* Chip row is a horizontal scroller. On phones the track itself ends left of the
   fixed chat bubble, so every on-screen chip stays tappable (including first open,
   when the row shares the bottom of the viewport). Scroll for later chips. */
@media (max-width:900px){
  .sg .sg-chips{margin-right:calc(80px + env(safe-area-inset-right,0px));padding-right:.75rem;scroll-padding-right:.75rem}
}
