/* The Warranty page (block 86, inc/warranty.php). Design system B, Warm Nordic, rules in DESIGN.md.
   The top follows the warehouse and category pages Francis approved: a photo band over the whole width with a
   plum shade, then a cream bar that sits half on the photo and half on the page. Every rule starts at .wty. */

@font-face{font-family:"Albert Sans";src:url("../fonts/AlbertSans.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

.wty{
  --ink:#26222F;--body:#4A4451;--muted:#645D6A;--line:#E3DCD5;--cream:#EEE9E5;--white:#FFFFFF;
  --orange:#B5412A;--orange-deep:#9C3622;--star:#F6BB06;
  --font:"Albert Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-family:var(--font);color:var(--body);background:var(--white);
}
.wty *,.wty *::before,.wty *::after{box-sizing:border-box}
/* a site-wide rule says p, div { font-family: Inter !important }, so ours must say !important too (only inside .wty) */
body .wty :is(h1,h2,h3,p,li,a,span,b,strong,th,td,summary,ol,ul,div,aside,article,section){font-family:var(--font) !important}

/* ---------- top ---------- */
.wty-hero{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(480px,40vw,600px);overflow:hidden;isolation:isolate;background:var(--ink)}
.wty-hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(0deg,rgba(38,34,47,.6) 0%,rgba(38,34,47,0) 46%),linear-gradient(90deg,rgba(38,34,47,.88) 0%,rgba(38,34,47,.7) 36%,rgba(38,34,47,.22) 64%,rgba(38,34,47,0) 100%)}
.wty-hero .wty-hero-img{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 30%}
.wty-hero-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;width:100%;max-width:1413px;margin:auto auto 0;padding:40px 24px 124px}
.wty-kicker{display:inline-flex;align-items:center;gap:7px;height:32px;margin:0 0 18px;padding:0 14px 0 11px;border-radius:999px;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);font-size:13px;font-weight:500;line-height:1;color:var(--white)}
.wty-kicker::before{content:"";flex:0 0 14px;width:14px;height:14px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linejoin='round' d='M12 2.2 20 5v6.3c0 5-3.4 8.9-8 10.5-4.6-1.6-8-5.5-8-10.5V5z'/%3E%3C/svg%3E") center/contain no-repeat}
.wty-hero h1{max-width:760px;margin:0;font-size:clamp(36px,5.2vw,56px);font-weight:700;line-height:1.04;letter-spacing:-.025em;color:var(--white);text-wrap:balance}
.wty-sub{max-width:54ch;margin:16px 0 0;font-size:18px;font-weight:400;line-height:1.55;color:rgba(255,255,255,.9);text-wrap:balance}
.wty-btns{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:26px}

/* buttons: primary orange, plum rises on hover; on the photo the rise is cream with plum words */
.wty-btn{position:relative;overflow:hidden;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:6px 22px;border:0;border-radius:999px;background:var(--orange);color:var(--white);font-size:15px;font-weight:600;line-height:1.2;text-decoration:none;transition:color .3s .12s,background .25s,box-shadow .25s,transform .2s}
.wty-btn::before{content:"";position:absolute;z-index:-1;left:-10%;width:120%;bottom:0;height:175%;background:var(--cream);border-radius:50% 50% 0 0/32% 32% 0 0;transform:translateY(101%);transition:transform .65s cubic-bezier(.6,.05,.2,1);pointer-events:none}
.wty-btn:hover::before,.wty-btn:focus-visible::before{transform:translateY(0)}
.wty-btn:hover,.wty-btn:focus-visible{color:var(--ink)}
.wty-btn:visited{color:var(--white)}
.wty-btn:active{transform:scale(.97)}
.wty-btn--2,.wty-btn--2:visited{background:transparent;color:var(--white);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.7)}
.wty-btn--2::before{display:none}
.wty-btn--2:hover,.wty-btn--2:focus-visible{background:rgba(255,255,255,.12);color:var(--white)}

/* rating line (shym_look_rating) */
.wty-rating{display:inline-flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:22px;font-size:14px;line-height:1.5;color:rgba(255,255,255,.88);text-decoration:none}
.wty-rating .shym-look-stars{display:inline-flex;gap:1px}
.wty-rating svg{width:16px;height:16px;fill:var(--star)}
.wty-rating b{font-weight:600;color:var(--white)}
.wty-rating:hover span:last-child{text-decoration:underline}

/* key facts: a cream bar half on the photo */
.wty-factsec{position:relative;z-index:3;max-width:1413px;margin:-60px auto 0;padding:0 24px}
.wty-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 28px;margin:0;padding:26px 32px;border-radius:18px;background:var(--cream);list-style:none}
.wty-facts li{display:flex;flex-direction:column;gap:4px;margin:0;padding:0}
.wty-facts b{font-size:clamp(26px,2.8vw,30px);font-weight:700;line-height:1.12;letter-spacing:-.02em;color:var(--ink)}
.wty-facts span{font-size:14px;line-height:1.5;color:var(--body)}

/* ---------- the terms ---------- */
.wty-main{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,8fr);gap:56px;align-items:start;max-width:1413px;margin:0 auto;padding:64px 24px 96px}
.wty-side{position:sticky;top:110px;display:flex;flex-direction:column;gap:18px}
.wty-toc{margin:0}
.wty-toc--small{display:none}
.wty-toc-head{margin:0 0 12px;font-size:17px;font-weight:600;line-height:1.3;color:var(--ink)}
.wty-toc summary{margin:0 0 12px;font-size:17px;font-weight:600;line-height:1.3;color:var(--ink);list-style:none;cursor:default}
.wty-toc summary::-webkit-details-marker{display:none}
.wty-toc ol{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;counter-reset:wty}
.wty-toc li{margin:0;padding:0;counter-increment:wty}
.wty-toc a{display:flex;gap:10px;padding:7px 12px;border-radius:12px;font-size:14px;line-height:1.5;color:var(--body);text-decoration:none}
.wty-toc a::before{content:counter(wty);flex:0 0 18px;font-weight:600;color:var(--muted)}
.wty-toc a:hover,.wty-toc a:focus-visible,.wty-toc a.is-here{background:var(--cream);color:var(--ink)}
.wty-link{display:inline-flex;align-items:center;gap:6px;padding-left:12px;font-size:15px;font-weight:600;color:var(--orange);text-decoration:none}
.wty-link::after{content:"\2192";transition:transform .2s}
.wty-link:hover,.wty-link:focus-visible{color:var(--orange-deep)}
.wty-link:hover::after{transform:translateX(3px)}

.wty-terms{min-width:0;max-width:760px}
.wty-terms .wty-title{margin:0 0 6px;font-size:clamp(30px,3.2vw,40px);font-weight:700;line-height:1.1;letter-spacing:-.02em;color:var(--ink)}
.wty-terms .wty-version{margin:0 0 24px;font-size:14px;color:var(--muted)}
.wty-terms h2{scroll-margin-top:110px;margin:48px 0 14px;font-size:clamp(26px,2.8vw,30px);font-weight:700;line-height:1.12;letter-spacing:-.02em;color:var(--ink)}
.wty-terms h3{scroll-margin-top:110px;margin:32px 0 12px;font-size:17px;font-weight:600;line-height:1.3;color:var(--ink)}
.wty-terms p,.wty-terms li{font-size:16px;font-weight:400;line-height:1.65;color:var(--body)}
.wty-terms p{max-width:70ch;margin:0 0 14px}
.wty-terms strong{font-weight:600;color:var(--ink)}
.wty-terms ul{margin:0 0 16px;padding-left:22px}
.wty-terms li{margin:0 0 6px;max-width:68ch}
.wty-terms li::marker{color:var(--muted)}
.wty-terms a{color:var(--orange);font-weight:600;text-decoration:none}
.wty-terms a:hover,.wty-terms a:focus-visible{color:var(--orange-deep)}

/* the two tables: cream card, no borders, lines between rows */
.wty-table{margin:4px 0 18px;padding:6px 20px;border-radius:18px;background:var(--cream);overflow-x:auto}
.wty-table table{width:100%;margin:0;border:0;border-collapse:collapse;background:transparent}
.wty-table th,.wty-table td{padding:14px 12px 14px 0;border:0;background:transparent;text-align:left;vertical-align:top;font-size:14px;line-height:1.5}
.wty-table thead th{font-weight:600;color:var(--muted);border-bottom:1.5px solid var(--line)}
.wty-table tbody th{width:38%;font-weight:600;color:var(--ink)}
.wty-table tbody td{font-weight:600;color:var(--ink)}
.wty-table tbody tr+tr th,.wty-table tbody tr+tr td{border-top:1.5px solid var(--line)}

/* ---------- quiet motion, once ---------- */
@media (prefers-reduced-motion:no-preference){
  .wty-hero .wty-hero-img{animation:wty-settle 9s cubic-bezier(.2,.8,.2,1) both}
  .wty-hero-copy>*{animation:wty-rise .8s cubic-bezier(.2,.8,.2,1) both}
  .wty-hero-copy>*:nth-child(2){animation-delay:.08s}
  .wty-hero-copy>*:nth-child(3){animation-delay:.16s}
  .wty-hero-copy>*:nth-child(4){animation-delay:.24s}
  .wty-hero-copy>*:nth-child(5){animation-delay:.32s}
  .wty-facts{animation:wty-rise .8s .4s cubic-bezier(.2,.8,.2,1) both}
}
@keyframes wty-settle{from{transform:scale(1.07)}to{transform:scale(1)}}
@keyframes wty-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* ---------- tablet and phone ---------- */
@media (max-width:1024px){
  .wty-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .wty-main{grid-template-columns:minmax(0,1fr);gap:28px;padding-top:48px}
  .wty-side{position:static}
  .wty-toc--wide{display:none}
  .wty-toc--small{display:block}
  .wty-toc{padding:16px 18px;border-radius:18px;background:var(--cream)}
  .wty-toc summary{margin:0;cursor:pointer;display:flex;justify-content:space-between;align-items:center}
  .wty-toc summary::after{content:"";width:9px;height:9px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg) translateY(-3px);transition:transform .2s}
  .wty-toc[open] summary{margin-bottom:10px}
  .wty-toc[open] summary::after{transform:rotate(-135deg)}
  .wty-toc a:hover,.wty-toc a:focus-visible{background:var(--white)}
}
@media (max-width:767px){
  .wty-hero{min-height:520px}
  .wty-hero::after{background:linear-gradient(0deg,rgba(38,34,47,.92) 0%,rgba(38,34,47,.62) 55%,rgba(38,34,47,.25) 100%)}
  .wty-hero-copy{padding:32px 16px 104px}
  .wty-sub{font-size:16px}
  .wty-factsec{padding:0 12px}
  .wty-facts{gap:16px 18px;padding:20px}
  .wty-facts span{font-size:13px}
  .wty-main{padding:40px 16px 56px}
  .wty-terms h2{margin-top:40px}
  .wty-table{padding:4px 14px}
  .wty-table th,.wty-table td{font-size:13px}
}

/* ---------- "Our policies": the same list as the legal pages (shym-legal.css, .lgl-pol) ---------- */
.wty-pol{margin-top:10px;padding-top:22px;border-top:1.5px solid var(--line)}
.wty-pol ul{display:flex;flex-direction:column;gap:2px;margin:0;padding:0;list-style:none}
.wty-pol li{margin:0;padding:0}
.wty-pol a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px;border-radius:12px;font-size:14px;line-height:1.5;color:var(--body);text-decoration:none}
.wty-pol a::after{content:"\2192";color:var(--muted);transition:transform .2s}
.wty-pol a:hover,.wty-pol a:focus-visible{background:var(--cream);color:var(--ink)}
.wty-pol a:hover::after{transform:translateX(3px)}
.wty-pol a.is-here{background:var(--cream);color:var(--ink);font-weight:600}
.wty-pol a.is-here::after{content:none}
.wty-pol--end{display:none}
/* the side is taller now (contents, PDF link, policies): it scrolls inside itself on short screens */
@media (min-width:1025px){.wty-side{max-height:calc(100vh - 130px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}}
@media (max-width:1024px){
  .wty-side .wty-pol{display:none}
  .wty-pol--end{display:block;margin-top:0;padding:16px 18px;border:0;border-radius:18px;background:var(--cream)}
  .wty-pol a:hover,.wty-pol a:focus-visible,.wty-pol a.is-here{background:var(--white)}
}
