/* ryc-sale.css: pairs with ryc-sale.js ("Black Friday in Color"). Design: BF_SPEC.md sections 3-4
   and the Popup / PopupMobile / QuizMobile boards. Every class is prefixed ryc- so nothing on the
   host pages is touched. Colors: ink #16140F, cream #FCFAF4, muted on ink #D9D3C3, yellow #F2C516. */

/* ── "this stylesheet is here": ryc-sale.js draws nothing unless it can read this marker, so a page
   never gets an unstyled banner or an unstyled (page-locking) dialog. Do not remove. */
html{ --ryc-sale-css:1; }

/* ── the banner's height, reserved before paint (ryc-sale.js sets the classes synchronously) ──
   Pages sized to the viewport subtract var(--ryc-sale-h, 0px). */
html.ryc-sale-on{ --ryc-sale-h:60px; }                     /* 4px stripe + 56px row */
@media (max-width:720px){ html.ryc-sale-on{ --ryc-sale-h:44px; } }
html.ryc-sale-on.ryc-sale-slimonly{ --ryc-sale-h:44px; }    /* the quiz: slim at every width */

/* ── lines in the pages that are only true while the sale / the box sets are on ──
   A sale line carries the `hidden` attribute IN THE PAGE and gets no display from the page's own
   CSS, so it is not there by default: no JS, no stylesheet, a switched-off sale, a passed deadline
   or a gift recipient all leave it hidden. Only the rules below show it, while ryc-sale.js says the
   sale is on. A plain line becomes a block, a span stays inline, a link becomes an inline block;
   write data-ryc-sale-only="flex" for a flex row. */
html.ryc-sale-live [data-ryc-sale-only]{ display:block !important; }
html.ryc-sale-live span[data-ryc-sale-only]{ display:inline !important; }
html.ryc-sale-live a[data-ryc-sale-only]{ display:inline-block !important; }
html.ryc-sale-live [data-ryc-sale-only="flex"]{ display:flex !important; }
html:not(.ryc-sale-live) [data-ryc-sale-only]{ display:none !important; }
html.ryc-boxsets-over [data-ryc-boxset-only]{ display:none !important; }

/* inline "Color" wordmark inside page copy (ink letters on a light ground) */
.ryc-sale-wm{ display:inline-block !important; height:15px; width:auto; vertical-align:middle; }

/* ═════════════════════════════════ banner ═════════════════════════════════
   In the page flow, first child of <body>. Never sticky, never fixed. Its height is fixed and it
   cannot wrap: anything that does not fit is clipped, never pushed onto a second line or sideways. */
.ryc-sale-bar{
  position:relative; z-index:2; display:block;
  width:100%; max-width:100%; height:var(--ryc-sale-h,60px); overflow:hidden;
  margin:0; padding:0; box-sizing:border-box;
  background:#16140F; color:#FCFAF4;
  font-family:'Jost',system-ui,sans-serif; font-style:normal; letter-spacing:normal; text-transform:none; text-align:left;
  -webkit-font-smoothing:antialiased;
}
.ryc-sale-bar *, .ryc-sale-bar *::before, .ryc-sale-bar *::after{ box-sizing:border-box; margin:0; padding:0; }
.ryc-sale-stripe{
  height:4px;
  background:linear-gradient(90deg,#EE3B2E 0 16.66%,#F2912E 16.66% 33.33%,#F2C516 33.33% 50%,#46B72C 50% 66.66%,#2E86E0 66.66% 83.33%,#8E44E8 83.33% 100%);
}
.ryc-sale-row{
  height:56px; max-width:1180px; margin:0 auto; padding:0 40px;
  display:flex; align-items:center; justify-content:center; flex-wrap:nowrap; gap:0 26px;
  font-size:15.5px; line-height:1.3; white-space:nowrap; overflow:hidden;
}
.ryc-sale-bar a{ -webkit-tap-highlight-color:rgba(0,0,0,0); }
.ryc-sale-name{
  display:inline-flex; align-items:center; gap:9px; min-height:44px; flex:none;
  color:#FCFAF4 !important; text-decoration:none !important;
  font-family:'Fraunces',Georgia,serif; font-style:italic; font-weight:500; font-size:20px;
}
.ryc-sale-name img{ display:block; height:18px; width:auto; flex:none; }
.ryc-sale-tag{ font-weight:500; color:#D9D3C3; }
.ryc-sale-timer{ display:inline-flex; align-items:baseline; gap:7px; flex:none; font-weight:700; font-variant-numeric:tabular-nums; }
.ryc-sale-muted{ font-weight:500; color:#D9D3C3; }
.ryc-sale-pill{
  display:inline-flex; align-items:center; min-height:44px; flex:none; padding:0 22px !important;
  background:#FCFAF4; color:#16140F !important; text-decoration:none !important;
  border-radius:999px; font-weight:700; font-size:14.5px;
  transition:background-color .15s ease;
}
.ryc-sale-pill:hover{ background:#F4EFDD; }
.ryc-sale-name:hover{ text-decoration:underline !important; text-underline-offset:4px; text-decoration-thickness:1px; }

/* slim: one line, 44px */
.ryc-sale-slim{
  display:none; align-items:center; justify-content:center; gap:8px;
  height:44px; padding:0 14px !important; overflow:hidden; white-space:nowrap;
  color:#FCFAF4 !important; text-decoration:none !important;
  font-size:13.5px; line-height:1.2; border-top:3px solid #F2C516;
}
.ryc-sale-slim-name{ font-family:'Fraunces',Georgia,serif; font-style:italic; font-size:15.5px; flex:none; }
.ryc-sale-slim img{ display:block; height:14px; width:auto; flex:none; }
.ryc-sale-slim-tag{ font-weight:700; flex:none; margin-left:3px; padding-left:11px; border-left:1px solid rgba(252,250,244,.38); }
.ryc-sale-slim-timer{ font-weight:700; font-variant-numeric:tabular-nums; margin-left:4px; flex:none; }
.ryc-sale-slim svg{ display:block; flex:none; }
@media (max-width:519px){   /* phones: the offer takes the countdown's place, so the line never clips */
  .ryc-sale-slim-timer{ display:none; }
}

.ryc-sale-bar a:focus-visible{ outline:2px solid #F2C516; outline-offset:2px; }
.ryc-sale-slim:focus-visible{ outline-offset:-4px !important; }

@media (max-width:979px){
  .ryc-sale-tag{ display:none; }
  .ryc-sale-row{ padding:0 20px; gap:0 20px; }
}
@media (max-width:720px){
  .ryc-sale-full{ display:none; }
  .ryc-sale-slim{ display:flex; }
}
.ryc-sale-bar--slimonly .ryc-sale-slim{ display:flex; }
@media (max-width:360px){   /* 320px phones: still one line */
  .ryc-sale-slim{ gap:6px; padding:0 8px !important; font-size:13px; }
  .ryc-sale-slim-name{ font-size:14.5px; }
  .ryc-sale-slim img{ height:13px; }
  .ryc-sale-slim-timer{ margin-left:2px; }
  .ryc-sale-slim-tag{ margin-left:1px; padding-left:8px; }
}

/* ═════════════════════════════════ pop-up (home only) ═════════════════════════════════
   Wide: a centered dialog. Phones: a bottom sheet. The dimmed overlay itself is the scrim. */
.ryc-pop{
  position:fixed; inset:0; z-index:2147483000;
  display:flex; padding:40px 16px; box-sizing:border-box;
  overflow-y:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch;
  background:rgba(22,20,15,0); transition:background-color .18s ease;
  font-family:'Jost',system-ui,sans-serif; color:#FCFAF4; text-align:left; letter-spacing:normal; text-transform:none;
  -webkit-font-smoothing:antialiased; cursor:pointer;
}
.ryc-pop *, .ryc-pop *::before, .ryc-pop *::after{ box-sizing:border-box; }
.ryc-pop--in{ background:rgba(22,20,15,.66); }
.ryc-pop-box{
  position:relative; margin:auto; width:100%; max-width:880px; cursor:auto;
  background:#16140F; color:#FCFAF4; border-radius:22px; overflow:hidden;
  opacity:0; transform:translateY(14px) scale(.985);
  transition:opacity .18s ease, transform .22s cubic-bezier(.22,.61,.21,1);
}
.ryc-pop--in .ryc-pop-box{ opacity:1; transform:none; }
.ryc-pop-box:focus{ outline:none; }
.ryc-pop a:focus-visible, .ryc-pop button:focus-visible{ outline:2px solid #F2C516; outline-offset:3px; }
@media (prefers-reduced-motion:reduce){
  .ryc-pop, .ryc-pop-box{ transition:none !important; }
  .ryc-pop-box{ transform:none !important; }
}
.ryc-pop p, .ryc-pop h2, .ryc-pop ul{ margin:0; padding:0; }
.ryc-pop-stripe{
  height:6px;
  background:linear-gradient(90deg,#EE3B2E 0 16.66%,#F2912E 16.66% 33.33%,#F2C516 33.33% 50%,#46B72C 50% 66.66%,#2E86E0 66.66% 83.33%,#8E44E8 83.33% 100%);
}
.ryc-pop-grab{ display:none; }
.ryc-pop-x{
  position:absolute; top:20px; right:20px; width:44px; height:44px; padding:0; margin:0;
  display:flex; align-items:center; justify-content:center;
  border-radius:50%; background:transparent; border:1px solid rgba(252,250,244,.28); color:#FCFAF4; cursor:pointer;
}
.ryc-pop-x:hover{ border-color:rgba(252,250,244,.6); }
.ryc-pop-body{ padding:clamp(30px,5vw,46px) clamp(20px,5.5vw,52px) clamp(28px,4vw,40px); }
.ryc-pop-eyebrow{ font-size:12.5px; font-weight:700; letter-spacing:.26em; text-transform:uppercase; color:#D9D3C3; padding-right:52px; }
.ryc-pop-title{
  margin:16px 0 0 !important; color:#FCFAF4;
  font-family:'Fraunces',Georgia,serif; font-style:normal; font-weight:500; font-size:clamp(38px,6vw,64px);
  line-height:1.05; letter-spacing:-.015em;
  display:flex; align-items:center; flex-wrap:wrap; column-gap:.2em; row-gap:4px;
}
.ryc-pop-title img{ display:block; height:.84em; width:auto; }
.ryc-pop-value{ margin-top:14px !important; font-family:'Fraunces',Georgia,serif; font-style:italic; font-weight:500; font-size:clamp(25px,3.4vw,34px); line-height:1.15; }
.ryc-pop-value span{ color:#F2C516; }
.ryc-pop-lead{ margin-top:12px !important; font-size:17px; line-height:1.5; color:#D9D3C3; max-width:600px; text-wrap:pretty; }
.ryc-narrow{ display:none; }
.ryc-pop-time{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 22px; margin-top:24px; }
.ryc-tiles{ display:flex; flex-wrap:wrap; gap:10px; }
.ryc-tile{ min-width:72px; padding:12px 8px 9px; border-radius:12px; background:#FCFAF4; color:#16140F; text-align:center; }
.ryc-tile-n{ font-family:'Fraunces',Georgia,serif; font-weight:600; font-size:38px; line-height:1; font-variant-numeric:tabular-nums; }
.ryc-tile-l{ font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; margin-top:6px; color:#564F40; }
.ryc-pop-ends{ font-size:15.5px; font-weight:500; color:#D9D3C3; }

.ryc-offers{ list-style:none; margin-top:28px !important; display:flex; flex-wrap:wrap; gap:16px 14px; }
.ryc-offer{
  position:relative; flex:1 1 220px; min-width:0; margin:0; padding:20px 20px 18px;
  border-radius:16px; background:rgba(252,250,244,.07); border:1px solid rgba(252,250,244,.18);
  display:flex; flex-direction:column; justify-content:space-between;
}
.ryc-offer::before{ content:none; }
.ryc-offer--best{ border:2px solid #FCFAF4; padding:19px 19px 17px; }
.ryc-best{
  position:absolute; top:-12px; left:18px; background:#FCFAF4; color:#16140F; border-radius:999px;
  padding:5px 11px; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; line-height:1.2; white-space:nowrap;
}
.ryc-o-text{ min-width:0; }
.ryc-o-name{ font-family:'Fraunces',Georgia,serif; font-size:22px; line-height:1.15; }
.ryc-o-n, .ryc-o-small-n{ display:none; }
.ryc-o-count{ font-size:15px; color:#D9D3C3; margin-top:4px; }
.ryc-o-pace{ font-size:13.5px; color:#D9D3C3; margin-top:2px; }
.ryc-o-shelf{ display:flex; align-items:flex-end; gap:3px; height:34px; margin-top:16px; padding:0 2px; border-bottom:2px solid #FCFAF4; }
.ryc-spine{ display:block; flex:none; width:10px; border-radius:2px 2px 0 0; }
.ryc-spine--free{ border:1.5px dashed #FCFAF4; border-bottom:0; }
.ryc-shelf-free{ align-self:center; margin-left:6px; font-size:10.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:#F2C516; }
.ryc-o-deal{ font-size:14.5px; font-weight:700; color:#F2C516; margin-top:14px; }
.ryc-o-small{ font-size:13.5px; line-height:1.35; color:#D9D3C3; margin-top:4px; }
.ryc-o-price{ display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 10px; margin-top:6px; }
.ryc-o-price b{ font-family:'Fraunces',Georgia,serif; font-weight:600; font-size:34px; line-height:1.05; font-variant-numeric:tabular-nums; }
.ryc-o-price s{ font-size:16px; font-weight:500; color:#D9D3C3; text-decoration-thickness:1.5px; }
.ryc-vh{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }

.ryc-pop-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 26px; margin-top:26px; }
.ryc-pop-claim{
  display:inline-flex; align-items:center; justify-content:center; gap:11px; min-height:60px; padding:0 38px;
  background:#FCFAF4; color:#16140F !important; text-decoration:none !important; border-radius:999px;
  font-weight:700; font-size:19px; white-space:nowrap; transition:background-color .15s ease;
}
.ryc-pop-claim:hover{ background:#F4EFDD; }
.ryc-pop-claim svg{ display:block; flex:none; }
.ryc-pop-not{
  min-height:44px; padding:0 6px; margin:0; background:transparent; border:0; cursor:pointer;
  font-family:'Jost',system-ui,sans-serif; font-size:16px; font-weight:600; color:#D9D3C3;
  text-decoration:underline; text-underline-offset:4px; text-decoration-thickness:1px;
}
.ryc-pop-not:hover{ color:#FCFAF4; }
.ryc-pop-fine{ margin-top:4px !important; font-size:14px; line-height:1.5; color:#D9D3C3; }
.ryc-pop-actions + .ryc-pop-fine{ margin-top:18px !important; }

/* phones: bottom sheet (PopupMobile board) */
@media (max-width:720px){
  .ryc-pop{ padding:0; align-items:flex-end; overflow:hidden; }
  .ryc-pop-box{
    margin:0; max-width:none; max-height:calc(100% - 16px); overflow-y:auto; overscroll-behavior:contain;
    border-radius:22px 22px 0 0; transform:translateY(32px);
  }
  .ryc-pop-stripe{ height:5px; }
  /* swipe down to close (ryc-sale.js attachSwipe): no easing while the sheet follows the finger,
     then it slides the rest of the way out. The reduced-motion rules above still win. */
  .ryc-pop.ryc-pop--drag, .ryc-pop.ryc-pop--drag .ryc-pop-box{ transition:none; }
  .ryc-pop.ryc-pop--out{ background:rgba(22,20,15,0); }
  .ryc-pop.ryc-pop--out .ryc-pop-box{ transform:translateY(105%); }
  .ryc-pop-grab{ display:flex; justify-content:center; padding-top:9px; }
  .ryc-pop-grab::before{ content:""; width:38px; height:4px; border-radius:999px; background:rgba(252,250,244,.32); }
  .ryc-pop-x{ top:14px; right:12px; }
  .ryc-pop-body{ padding:0 20px max(16px, env(safe-area-inset-bottom)); display:flex; flex-direction:column; text-align:center; }
  .ryc-pop-eyebrow{ margin-top:12px; padding:0 48px; font-size:11.5px; line-height:16px; letter-spacing:.24em; }
  .ryc-pop-title{ margin-top:9px !important; justify-content:center; font-size:clamp(26px,9vw,34px); line-height:1.18; column-gap:9px; }
  .ryc-pop-title img{ height:.85em; }
  .ryc-pop-value{ margin-top:4px !important; font-size:22px; line-height:28px; }
  .ryc-wide{ display:none; }
  .ryc-narrow{ display:block; }
  .ryc-pop-lead{ margin:6px auto 0 !important; max-width:330px; font-size:14px; line-height:19px; text-wrap:balance; }
  .ryc-pop-time{ flex-direction:column; align-items:stretch; gap:7px; margin-top:14px; }
  .ryc-tiles{ flex-wrap:nowrap; gap:8px; }
  .ryc-tile{ flex:1 1 0; min-width:0; padding:9px 4px 7px; }
  .ryc-tile-n{ font-size:30px; }
  .ryc-tile-l{ font-size:10.5px; line-height:13px; margin-top:5px; }
  .ryc-pop-ends{ font-size:13px; line-height:18px; }

  .ryc-offers{ flex-direction:column; flex-wrap:nowrap; gap:0; margin-top:16px !important; border-top:1px solid rgba(252,250,244,.18); text-align:left; }
  .ryc-offer, .ryc-offer--best{
    flex:none; flex-direction:row; align-items:center; justify-content:space-between; gap:12px;
    padding:8px 0; border:0; border-bottom:1px solid rgba(252,250,244,.18); border-radius:0; background:none;
  }
  .ryc-offer--best{ padding-top:14px; }
  .ryc-offer--12{ order:1; } .ryc-offer--6{ order:2; } .ryc-offer--3{ order:3; }
  .ryc-best{ top:-9px; left:0; padding:3px 9px; font-size:10px; line-height:12px; }
  .ryc-o-name{ font-family:'Jost',system-ui,sans-serif; font-size:15.5px; line-height:21px; font-weight:600; }
  .ryc-o-n{ display:inline; font-weight:400; color:#D9D3C3; }
  .ryc-o-small-n{ display:inline; }
  .ryc-o-count, .ryc-o-pace, .ryc-o-shelf, .ryc-o-small{ display:none; }
  .ryc-o-deal{ margin-top:0; font-size:13.5px; line-height:19px; font-weight:600; }
  .ryc-o-price{ flex:none; flex-direction:column; align-items:flex-end; flex-wrap:nowrap; gap:0; margin-top:0; text-align:right; }
  .ryc-o-price b{ font-size:19px; line-height:21px; }
  .ryc-o-price s{ font-size:13px; line-height:19px; }

  .ryc-pop-actions{ flex-direction:column; align-items:stretch; gap:2px; margin-top:14px; }
  .ryc-pop-claim{ min-height:50px; font-size:17px; padding:0 28px; }
  .ryc-pop-not{ align-self:center; padding:0 16px; font-size:15px; }
  .ryc-pop-fine{ font-size:11.5px; line-height:16px; text-wrap:balance; }
  .ryc-pop-actions + .ryc-pop-fine{ margin-top:0 !important; }
  .ryc-pop-actions ~ .ryc-pop-fine{ margin-top:2px !important; }
}
@media (max-width:720px) and (prefers-reduced-motion:reduce){
  .ryc-pop-box{ transform:none !important; }
}
