/* THW Design: 5 letter word list pages ([thw_word_list]). Needs thw-design.css (tokens). Mobile first; the chips
 * are a grid of equal cells, so they wrap cleanly at any width and nothing moves after the first paint (no JS). */
.thw-ds .wl-page{max-width:1080px}
.thw-ds .wl-h1{font-size:34px;margin:18px 0 12px}
.thw-ds .wl-page>p{margin:0 0 12px;max-width:68ch}
.thw-ds .wl-pending{padding:10px 14px;border:2px dashed var(--tEb);border-radius:10px;color:var(--mut);font-weight:600}

/* Buttons and the hub link. */
.thw-ds .wl-acts{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 18px}
.thw-ds .wl-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 18px;border-radius:12px;border:2.5px solid #111;background:var(--acc);color:#111;font:700 16px/1.2 var(--body);text-align:center;text-decoration:none;box-shadow:4px 4px 0 var(--sh);transition:transform .1s,box-shadow .1s}
.thw-ds .wl-btn:hover{transform:translate(-1px,-1px);box-shadow:6px 6px 0 var(--sh)}
.thw-ds .wl-btn:active{transform:translate(3px,3px);box-shadow:1px 1px 0 var(--sh)}
.thw-ds .wl-btn.s{background:var(--surf);color:var(--ink);border-color:var(--line)}
.thw-ds .wl-page>.wl-back{margin:28px 0 0;font-weight:600}

/* The list card. */
.thw-ds .wl{margin:8px 0 24px;background:var(--surf);border:2.5px solid var(--line);border-radius:16px;padding:14px;box-shadow:5px 5px 0 var(--sh);min-width:0}
.thw-ds .wl-count{margin:0 0 12px;font-size:16px;line-height:1.45}
.thw-ds .wl-h{display:flex;align-items:center;gap:10px;font-size:24px;margin:0 0 12px}
.thw-ds .wl-n{display:inline-block;min-width:28px;padding:3px 7px;border-radius:8px;border:2px solid #111;background:var(--y);color:#111;font:700 13px/1.2 var(--body);text-align:center;vertical-align:middle}
.thw-ds .wl-grp{margin:0 0 14px}
.thw-ds .wl-grp:last-child{margin-bottom:0}
.thw-ds .wl-gh{display:flex;align-items:center;gap:8px;margin:0 0 7px;font:400 18px/1.2 var(--display);letter-spacing:.08em}
.thw-ds .wl-gh .wl-n{background:var(--surf2);letter-spacing:0}
.thw-ds .wl-chips{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:6px}
.thw-ds .wl-chips li{margin:0;padding:9px 2px;border-radius:8px;border:2px solid var(--line);background:var(--surf);color:var(--ink);font:400 18px/1 var(--display);letter-spacing:.06em;text-align:center;box-shadow:2px 2px 0 var(--sh)}
.thw-ds .wl-chips.wl-rare li{background:var(--surf2);border-style:dashed;box-shadow:none;color:var(--ink)}
.thw-ds .wl-none{margin:0;color:var(--mut)}

/* Other valid guesses: closed by default. */
.thw-ds .wl-more{margin-top:18px;border:2.5px solid var(--line);border-radius:12px;background:var(--surf)}
.thw-ds .wl-more summary{list-style:none;display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 14px;font:600 17px/1.3 var(--body);cursor:pointer}
.thw-ds .wl-more summary::-webkit-details-marker{display:none}
.thw-ds .wl-sum{flex:0 1 auto}
.thw-ds .wl-more summary::after{content:"";flex:none;margin-left:auto;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 .wl-more[open] summary::after{background-color:var(--acc);border-color:#111;color:#111;transform:rotate(45deg)}
.thw-ds .wl-more>:not(summary){margin-left:14px;margin-right:14px}
.thw-ds .wl-more>:last-child{margin-bottom:14px}
.thw-ds .wl-note{margin-top:0;margin-bottom:12px;font-size:14.5px;color:var(--mut)}

/* Hub: wider letter badge for STA. */
.thw-ds .wl-hub .links{margin:8px 0 18px}
.thw-ds .wl-hub .lt{width:auto;min-width:40px;padding:0 6px;font-size:17px}
.thw-ds .wl-hub .lx small{display:block;font-weight:500;font-size:14px;color:var(--mut)}

@media (min-width:600px){
  .thw-ds .wl{padding:20px}
  .thw-ds .wl-chips{grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:8px}
  .thw-ds .wl-chips li{font-size:20px;padding:10px 2px;letter-spacing:.05em}
}
@media (min-width:960px){
  .thw-ds .wl-h1{font-size:48px;line-height:1;margin:32px 0 18px}
  .thw-ds .wl{padding:24px 28px;border-width:3px;border-radius:20px;box-shadow:8px 8px 0 var(--sh)}
  .thw-ds .wl-h{font-size:30px}
  .thw-ds .wl-hub .links{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* The same markup inside a blog post (.thw-prose, thw-posts.css): the post's text size, paragraph, heading and list
 * rules are more specific than the ones above, so undo them here and the list, tips and FAQ render as on the word
 * list pages. Only margins, padding and sizes the post rules change; nothing else. */
.thw-ds .thw-prose .wl-page{font-size:16px;line-height:1.55}
.thw-ds .thw-prose .wl-page>p{margin-top:0;margin-bottom:12px;max-width:68ch}
.thw-ds .thw-prose .wl-page>.wl-back{margin:28px 0 0}
.thw-ds .thw-prose .wl .wl-count,.thw-ds .thw-prose .wl .wl-note{margin-top:0;margin-bottom:12px}
.thw-ds .thw-prose .wl .wl-none{margin:0}
.thw-ds .thw-prose .wl h2.wl-h{font-size:24px;line-height:1.1;margin:0 0 12px}
.thw-ds .thw-prose .wl h3.wl-gh{font-size:18px;line-height:1.2;margin:0 0 7px}
.thw-ds .thw-prose ul.wl-chips{margin:0;padding:0}
.thw-ds .thw-prose ul.wl-chips li{margin:0}
.thw-ds .thw-prose .wl-page .sec h2{font-size:30px;line-height:1.1;margin:0 0 14px}
.thw-ds .thw-prose .wl-page ul.tips{margin:6px 0 14px;padding:0}
.thw-ds .thw-prose .wl-page ul.tips li{margin:0}
@media (min-width:960px){
  .thw-ds .thw-prose .wl h2.wl-h{font-size:30px}
  .thw-ds .thw-prose .wl-page .sec h2{font-size:44px}
}
