/* THW Design: sticker sheet tokens, page body and page sections. Everything is scoped to .thw-ds.
 * The two @font-face rules are printed in the head by THW_Design::head_early, with versioned URLs. */

.thw-ds{
  --bg:#FFF3D1;--dot:rgba(17,17,17,.09);--surf:#FFFFFF;--surf2:#FFE7A3;--ink:#111111;--mut:#3F3A2E;--line:#111111;--sh:#111111;
  --acc:#FF6A3D;--blue:#7CC6FE;--lilac:#C9A7FF;--mint:#8EE3B0;--tE:#FFFFFF;--tEb:#CFC6AE;--tline:#111111;
  --g:#35C46A;--y:#FFD23F;--x:#BDB6A6;--onTile:#111111;--ftBg:#111111;--ftInk:#FFF3D1;
  --display:'Lilita One','Arial Black',Impact,system-ui,sans-serif;
  --body:'Rubik',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  color-scheme:light
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .thw-ds{
  --bg:#18171D;--dot:rgba(255,243,209,.06);--surf:#24232B;--surf2:#33313B;--ink:#FFF3D1;--mut:#D6CFBA;--line:#FFF3D1;--sh:#4D4A57;
  --acc:#FF7A50;--tE:#24232B;--tEb:#4A4752;--g:#3DD675;--y:#FFD84F;--x:#8C8778;--ftBg:#FFF3D1;--ftInk:#18171D;color-scheme:dark}}
:root[data-theme="dark"] .thw-ds{
  --bg:#18171D;--dot:rgba(255,243,209,.06);--surf:#24232B;--surf2:#33313B;--ink:#FFF3D1;--mut:#D6CFBA;--line:#FFF3D1;--sh:#4D4A57;
  --acc:#FF7A50;--tE:#24232B;--tEb:#4A4752;--g:#3DD675;--y:#FFD84F;--x:#8C8778;--ftBg:#FFF3D1;--ftInk:#18171D;color-scheme:dark}
:root.cb .thw-ds{--g:#FF8A2B;--y:#4DA3FF}

.thw-ds,.thw-ds *,.thw-ds *::before,.thw-ds *::after{box-sizing:border-box}
body.thw-ds{margin:0;background-color:var(--bg);background-image:radial-gradient(var(--dot) 1.2px,transparent 1.2px);background-size:22px 22px;color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
.thw-ds [hidden]{display:none!important}
.thw-ds h1,.thw-ds h2{font-family:var(--display);font-weight:400;margin:0;line-height:1.1;text-wrap:balance}
.thw-ds h3{font-family:var(--body);font-weight:700;margin:0;line-height:1.25}
.thw-ds svg{width:22px;height:22px;flex:none}
.thw-ds a{color:inherit}
.thw-ds :focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.thw-ds .wrap{max-width:1280px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.thw-ds .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* The header and footer are in thw-chrome.css, which also loads on pages without this template. */

/* page sections */
.thw-ds .thw-content>*:first-child{margin-top:0}
.thw-ds .sec{margin-top:56px}
.thw-ds .sec h2,.thw-ds .card h2{font-size:30px;margin-bottom:14px}
.thw-ds .sec p,.thw-ds .card p{margin:0 0 10px;max-width:68ch}
.thw-ds .steps{counter-reset:st;display:grid;gap:14px}
.thw-ds .step{counter-increment:st;background:var(--surf);border:2.5px solid var(--line);border-radius:14px;padding:16px;box-shadow:5px 5px 0 var(--sh);display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:14px;align-content:start}
.thw-ds .step::before{content:counter(st);grid-row:1/3;width:44px;height:44px;border-radius:50%;border:2.5px solid #111;display:flex;align-items:center;justify-content:center;font:400 22px/1 var(--display);color:#111;background:var(--acc)}
.thw-ds .step:nth-child(2)::before{background:var(--g)}.thw-ds .step:nth-child(3)::before{background:var(--y)}.thw-ds .step:nth-child(4)::before{background:var(--blue)}
.thw-ds .step h3{font-size:18px;margin-bottom:4px}
.thw-ds .sec .step p{margin:0;font-size:15px;color:var(--mut)}
.thw-ds .key{margin:18px 0;display:grid;gap:12px;background:var(--surf2);border:2.5px solid var(--line);border-radius:14px;padding:16px}
.thw-ds .sec .kr{position:relative;min-height:42px;padding:10px 0 10px 54px;font-size:15px;line-height:1.45;margin:0}
.thw-ds .kr::before{position:absolute;left:0;top:50%;margin-top:-21px;width:42px;height:42px;border-radius:8px;border:2.5px solid #111;display:flex;align-items:center;justify-content:center;font:400 22px/1 var(--display);color:#111;box-shadow:3px 3px 0 var(--sh)}
.thw-ds .kr.kg::before{content:"A";content:"A"/"";background:var(--g)}.thw-ds .kr.ky::before{content:"B";content:"B"/"";background:var(--y)}.thw-ds .kr.kx::before{content:"C";content:"C"/"";background:var(--x)}
.thw-ds .duo,.thw-ds .trio{display:grid;gap:56px;margin-top:56px}
.thw-ds .card{--c:var(--acc);background:var(--surf);border:2.5px solid var(--line);border-radius:16px;box-shadow:6px 6px 0 var(--sh);overflow:hidden;min-width:0;padding:0 20px 20px}
.thw-ds .card::before{content:"";display:block;height:14px;margin:0 -20px 20px;border-bottom:2.5px solid var(--line);background:var(--c)}
.thw-ds .c-y{--c:var(--y)}.thw-ds .c-g{--c:var(--g)}.thw-ds .c-lilac{--c:var(--lilac)}.thw-ds .c-blue{--c:var(--blue)}
.thw-ds .card>:last-child{margin-bottom:0}
.thw-ds .tips{list-style:none;margin:6px 0 14px;padding:0;display:grid;gap:10px}
.thw-ds .tips li{position:relative;padding-left:24px}
.thw-ds .tips li::before{content:"";position:absolute;left:0;top:.3em;width:14px;height:14px;border-radius:3px;border:2px solid #111;background:var(--y)}
.thw-ds .lead{font-weight:600;font-size:18px}
.thw-ds .faq{display:grid;gap:12px;max-width:880px}
.thw-ds .qa{background:var(--surf);border:2.5px solid var(--line);border-radius:12px;box-shadow:4px 4px 0 var(--sh)}
.thw-ds .qa summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:10px 14px;font:600 16.5px/1.3 var(--body);cursor:pointer}
.thw-ds .qa summary::-webkit-details-marker{display:none}
.thw-ds .qa summary::after{content:"";flex:none;width:34px;height:34px;border-radius:8px;border:2px solid var(--line);background:linear-gradient(currentColor,currentColor) center/16px 3px no-repeat,linear-gradient(currentColor,currentColor) center/3px 16px no-repeat;transition:transform .2s}
.thw-ds .qa[open]{background:var(--surf2)}
.thw-ds .qa[open] summary::after{background-color:var(--acc);border-color:#111;color:#111;transform:rotate(45deg)}
.thw-ds .sec .qa p{margin:0;padding:0 14px 16px}
.thw-ds .links{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.thw-ds .links a{display:flex;align-items:center;gap:12px;min-height:60px;height:100%;padding:8px 14px 8px 8px;border-radius:12px;background:var(--surf);border:2.5px solid var(--line);box-shadow:4px 4px 0 var(--sh);text-decoration:none;font-weight:600;font-size:16px;transition:transform .1s,box-shadow .1s}
.thw-ds .links a:hover{transform:translate(-1px,-1px);box-shadow:6px 6px 0 var(--sh)}
.thw-ds .links a::after{content:"";flex:none;width:22px;height:22px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.thw-ds .lx{flex:1;min-width:0}
.thw-ds .lt{flex:none;width:40px;height:40px;border-radius:8px;border:2px solid #111;display:flex;align-items:center;justify-content:center;font:400 20px/1 var(--display);color:#111;background:var(--g)}
.thw-ds .links li:nth-child(5n+2) .lt{background:var(--y)}.thw-ds .links li:nth-child(5n+3) .lt{background:var(--blue)}.thw-ds .links li:nth-child(5n+4) .lt{background:var(--acc)}.thw-ds .links li:nth-child(5n+5) .lt{background:var(--lilac)}

@media (min-width:960px){
  .thw-ds .wrap.main{padding-left:max(40px,env(safe-area-inset-left,0px));padding-right:max(40px,env(safe-area-inset-right,0px))}
  .thw-ds .sec,.thw-ds .duo,.thw-ds .trio{margin-top:96px}
  .thw-ds .sec h2{font-size:44px}
  .thw-ds .card h2{font-size:32px}
  .thw-ds .steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
  .thw-ds .step{grid-template-columns:minmax(0,1fr);padding:22px}
  .thw-ds .step::before{grid-row:auto;margin-bottom:14px}
  .thw-ds .step:nth-child(odd){transform:rotate(-.8deg)}.thw-ds .step:nth-child(even){transform:rotate(.8deg)}
  .thw-ds .key{grid-template-columns:repeat(3,minmax(0,1fr));padding:20px}
  .thw-ds .duo{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px;align-items:start}
  .thw-ds .trio{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;align-items:start}
  .thw-ds .card{padding:0 28px 28px}
  .thw-ds .card::before{margin:0 -28px 28px}
  .thw-ds .qa summary{padding:12px 20px;font-size:18px}
  .thw-ds .sec .qa p{padding:0 20px 20px}
  .thw-ds .links{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
}
@media (min-width:600px) and (max-width:959px){
  .thw-ds .links,.thw-ds .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.thw-ds *,.thw-ds *::before,.thw-ds *::after{animation:none!important;transition:none!important}}
