/* THW Design: the six daily answer pages (THW Daily Answers shortcodes [thw_wordle_today], [thw_wordle_archive],
 * [thw_quordle_today], [thw_quordle_archive], [thw_octordle_today], [thw_octordle_archive]) on the THW Design
 * template. Styles only: the plugin's markup is unchanged, so answers stay where the plugin puts them (inside
 * closed <details>, inside data-nosnippet). Replaces thw-answers.css on these pages. Needs thw-design.css. */
.thw-ds .thw-answers{max-width:880px;margin:0 auto;padding:22px 0 8px;font-size:16px;line-height:1.55;overflow-wrap:anywhere}
.thw-ds .thw-answers p{margin:0 0 10px;max-width:68ch}
.thw-ds .thw-answers a{color:inherit;text-decoration-thickness:2px;text-underline-offset:3px}
.thw-ds .thw-answers .thw-title{font:400 30px/1.08 var(--display);margin:6px 0 14px}
.thw-ds .thw-answers .thw-intro{font-size:16px;color:var(--mut)}
.thw-ds .thw-answers .thw-updated{display:inline-block;margin:2px 0 14px;padding:8px 11px;border-radius:9px;border:2px solid #111;background:var(--y);color:#111;font:700 13.5px/1.2 var(--body);box-shadow:3px 3px 0 var(--sh)}
.thw-ds .thw-answers .thw-note{max-width:none;margin:0 0 14px;padding:12px 14px;border:2px solid var(--line);border-radius:12px;background:var(--surf2);font-size:14.5px;line-height:1.5}
.thw-ds .thw-answers .thw-h2{font:400 26px/1.1 var(--display);margin:30px 0 12px}

/* Hints and reveals: sticker cards. Each one is a native <details>: no script needed to open it. */
.thw-ds .thw-answers .thw-hints,.thw-ds .thw-answers .thw-hints>[data-nosnippet],.thw-ds .thw-answers .thw-today>[data-nosnippet]{display:grid;gap:12px}
.thw-ds .thw-answers .thw-today>[data-nosnippet]{margin-top:12px}
.thw-ds .thw-answers .thw-hint{margin:0;background:var(--surf);border:2.5px solid var(--line);border-radius:14px;box-shadow:4px 4px 0 var(--sh)}
.thw-ds .thw-answers .thw-hint>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:10px 14px;border:0;border-radius:11px;font:600 16.5px/1.3 var(--body);cursor:pointer;position:static}
.thw-ds .thw-answers .thw-hint>summary::-webkit-details-marker{display:none}
.thw-ds .thw-answers .thw-hint>summary::after{content:"";position:static;transform:none;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 .thw-answers .thw-hint[open]{background:var(--surf2)}
.thw-ds .thw-answers .thw-hint[open]>summary{border:0}
.thw-ds .thw-answers .thw-hint[open]>summary::after{content:"";background-color:var(--acc);border-color:#111;color:#111;transform:rotate(45deg)}
.thw-ds .thw-answers .thw-hint>p,.thw-ds .thw-answers .thw-hint>.thw-hint-list{margin:0;padding:0 14px 14px}
.thw-ds .thw-answers .thw-hint-list{list-style:none;display:grid;gap:6px}
.thw-ds .thw-answers .thw-hint-list li{margin:0}
/* The answer reveals: louder colours, so they are never opened by mistake for a hint. */
.thw-ds .thw-answers .thw-reveal>summary{background:var(--acc);color:#111}
.thw-ds .thw-answers .thw-reveal[open]>summary{border-radius:11px 11px 0 0}
.thw-ds .thw-answers .thw-reveal>summary::after,.thw-ds .thw-answers .thw-reveal-one>summary::after{border-color:#111;color:#111;background-color:#fff}
.thw-ds .thw-answers .thw-reveal-one>summary{background:var(--blue);color:#111}
.thw-ds .thw-answers .thw-reveal-one[open]>summary{border-radius:11px 11px 0 0}
.thw-ds .thw-answers .thw-meaning>summary::before{content:"";flex:none;order:-1;width:14px;height:14px;border-radius:3px;border:2px solid #111;background:var(--lilac)}
.thw-ds .thw-answers .thw-meaning>summary{justify-content:flex-start}
.thw-ds .thw-answers .thw-meaning>summary::after{margin-left:auto}
.thw-ds .thw-answers .thw-reveal>p{margin-top:12px}
.thw-ds .thw-answers .thw-source{font-size:13.5px;color:var(--mut)}

/* Answer tiles (inside the closed reveals only). */
.thw-ds .thw-answers .thw-tiles{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:12px 14px 16px}
.thw-ds .thw-answers .thw-tile{display:inline-flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:8px;border:2.5px solid var(--tline);background:var(--g);color:var(--onTile);font:400 28px/1 var(--display);text-transform:uppercase;box-shadow:3px 3px 0 var(--sh)}
.thw-ds .thw-answers .thw-answer-list{list-style:none;margin:0;padding:6px 14px 4px;display:grid;gap:4px}
.thw-ds .thw-answers .thw-answer-list li{margin:0}
.thw-ds .thw-answers .thw-answer-list .thw-tiles{padding:6px 0 10px}
.thw-ds .thw-answers .thw-answer-label{display:block;margin:0;font:700 13.5px/1.3 var(--body);color:var(--mut)}

/* Yesterday, links, brand line. */
.thw-ds .thw-answers .thw-yesterday{max-width:none;margin:28px 0 0;padding:14px 16px;border:2.5px solid var(--line);border-radius:14px;background:var(--surf);box-shadow:4px 4px 0 var(--sh)}
.thw-ds .thw-answers .thw-links ul{list-style:none;margin:6px 0 14px;padding:0;display:grid;gap:10px}
.thw-ds .thw-answers .thw-links li{position:relative;margin:0;padding-left:24px}
.thw-ds .thw-answers .thw-links 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 .thw-answers .thw-brand{max-width:none;margin:28px 0 0;padding-top:14px;border-top:2px dashed var(--tEb);font-size:13.5px;color:var(--mut)}

/* Archives: the jump list as month chips, then one sticker table per month. Every row stays in the HTML with its
 * id, so #wordle-1931 style links keep landing on their row. */
.thw-ds .thw-answers .thw-jump{margin:16px 0 4px;padding:12px 14px;border:2.5px solid var(--line);border-radius:14px;background:var(--surf);box-shadow:4px 4px 0 var(--sh)}
.thw-ds .thw-answers .thw-jump p{display:flex;flex-wrap:wrap;align-items:center;gap:6px;max-width:none;margin:0 0 8px}
.thw-ds .thw-answers .thw-jump p:last-child{margin-bottom:0}
.thw-ds .thw-answers .thw-jump strong{min-width:52px;font:400 18px/1 var(--display)}
.thw-ds .thw-answers .thw-jump a{display:inline-flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;padding:0 8px;border-radius:9px;border:2px solid var(--line);background:var(--surf2);font:700 14px/1 var(--body);text-decoration:none}
.thw-ds .thw-answers .thw-jump a:hover{background:var(--y);color:#111;border-color:#111}
.thw-ds .thw-answers .thw-archive .thw-h2{font-size:24px;margin:30px 0 10px}
.thw-ds .thw-answers .thw-h2[id],.thw-ds .thw-answers .thw-table tr[id]{scroll-margin-top:16px}
.thw-ds .thw-answers .thw-table{width:100%;margin:0 0 6px;border-collapse:separate;border-spacing:0;background:var(--surf);border:2.5px solid var(--line);border-radius:12px;box-shadow:4px 4px 0 var(--sh);overflow:hidden;font-size:15px}
.thw-ds .thw-answers .thw-table th,.thw-ds .thw-answers .thw-table td{padding:9px 12px;border:0;border-bottom:2px solid var(--tEb);text-align:left;vertical-align:top}
.thw-ds .thw-answers .thw-table thead th{background:var(--surf2);font-weight:700}
.thw-ds .thw-answers .thw-table tbody tr:last-child td{border-bottom:0}
.thw-ds .thw-answers .thw-table td:nth-child(2){white-space:nowrap;font-variant-numeric:tabular-nums}
.thw-ds .thw-answers .thw-word{font:400 17px/1.3 var(--display);letter-spacing:.07em}
.thw-ds .thw-answers .thw-table-multi td.thw-word{font-size:15.5px;letter-spacing:.04em;word-spacing:.15em;overflow-wrap:normal}
/* A row reached through a #wordle-NNNN link. */
.thw-ds .thw-answers .thw-table tr:target td{background:var(--y);color:#111}

@media (max-width:599px){
  /* Phones: each row becomes a two-line card line: date and number, then the answer(s) underneath. */
  .thw-ds .thw-answers .thw-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .thw-ds .thw-answers .thw-table,.thw-ds .thw-answers .thw-table tbody{display:block}
  .thw-ds .thw-answers .thw-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;padding:9px 12px;border-bottom:2px solid var(--tEb)}
  .thw-ds .thw-answers .thw-table tbody tr:last-child{border-bottom:0}
  .thw-ds .thw-answers .thw-table td{display:block;padding:0;border:0;font-size:14px}
  .thw-ds .thw-answers .thw-table td:first-child{color:var(--mut)}
  .thw-ds .thw-answers .thw-table-multi td.thw-word{grid-column:1/-1;margin-top:3px;font-size:15px}
  /* Wordle: one word per row, so date, number and answer share one line. */
  .thw-ds .thw-answers .thw-table:not(.thw-table-multi) tr{grid-template-columns:minmax(0,1fr) auto 76px;align-items:baseline}
  .thw-ds .thw-answers .thw-table:not(.thw-table-multi) td.thw-word{font-size:17px;text-align:right}
  .thw-ds .thw-answers .thw-table tr:target{background:var(--y);color:#111}
  .thw-ds .thw-answers .thw-table tr:target td{background:transparent;color:#111}
}
@media (max-width:380px){
  .thw-ds .thw-answers .thw-tile{width:46px;height:46px;font-size:25px}
}
@media (min-width:960px){
  .thw-ds .thw-answers{padding-top:40px;font-size:17px}
  .thw-ds .thw-answers .thw-title{font-size:48px;line-height:1;margin:0 0 18px}
  .thw-ds .thw-answers .thw-intro{font-size:18px}
  .thw-ds .thw-answers .thw-h2{font-size:36px;margin-top:44px}
  .thw-ds .thw-answers .thw-archive .thw-h2{font-size:30px;margin-top:40px}
  .thw-ds .thw-answers .thw-hint>summary{min-height:60px;padding:12px 20px;font-size:18px}
  .thw-ds .thw-answers .thw-hint>p,.thw-ds .thw-answers .thw-hint>.thw-hint-list{padding:0 20px 18px}
  .thw-ds .thw-answers .thw-tiles{padding:14px 20px 18px}
  .thw-ds .thw-answers .thw-tile{width:58px;height:58px;font-size:32px}
  .thw-ds .thw-answers .thw-answer-list{padding:6px 20px 4px}
  .thw-ds .thw-answers .thw-answer-list .thw-tiles{padding:6px 0 12px}
  .thw-ds .thw-answers .thw-table th,.thw-ds .thw-answers .thw-table td{padding:10px 16px}
}
