/* ===== Kickwise guides (guides/*.html, made by tools/guides.py) ===== */
.g-wrap { padding-bottom: 88px; }
.g-crumbs { display: flex; gap: 8px; padding: 22px 0 0; font-size: 14px; color: var(--muted); }
.g-crumbs a { color: var(--muted); text-decoration: none; }
.g-crumbs a:hover { color: var(--text); }
.g-article { max-width: 780px; }
.g-head { position: relative; padding: 18px 0 8px; }
.g-head h1 { font-size: clamp(42px, 6.4vw, 78px); max-width: 15ch; }
.g-meta { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
/* the cards fan out to the right of the title on wide screens */
.g-cards { display: flex; margin-top: 22px; }
.g-cards a { display: block; margin-right: -26px; transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.g-cards a:nth-child(odd) { transform: rotate(-4deg); } .g-cards a:nth-child(even) { transform: rotate(3deg) translateY(6px); }
.g-cards a:hover { transform: translateY(-8px) rotate(0); z-index: 2; }
.g-cards .pcard { width: 108px; }
@media (min-width: 1180px) {
  .g-article { max-width: none; display: grid; grid-template-columns: minmax(0, 760px) 1fr; column-gap: 56px; }
  .g-head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 760px) 1fr; column-gap: 56px; align-items: end; }
  .g-head .g-meta { grid-column: 1; }
  .g-cards { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; margin: 0; padding-right: 26px; }
  .g-toc { grid-column: 2; grid-row: 2 / span 2; align-self: start; position: sticky; top: 90px; margin-top: 30px; }
  .g-body, .g-play { grid-column: 1; }
}
.g-toc { margin: 26px 0 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.g-toc h2 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; }
.g-toc ol { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
.g-toc a { text-decoration: none; font-size: 15px; }
.g-toc a:hover { color: var(--accent); }

.g-body { font-size: 17.5px; line-height: 1.7; }
.g-body .g-lead { font-size: 20px; line-height: 1.55; color: var(--text); margin-top: 26px; }
.g-body p { margin: 0 0 18px; max-width: 68ch; }
.g-body h2 { margin: 46px 0 14px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 40px); line-height: 1; scroll-margin-top: 90px; }
.g-body h3 { margin: 26px 0 8px; font-size: 19px; line-height: 1.35; scroll-margin-top: 90px; }
.g-body ul, .g-body ol { margin: 0 0 20px; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; max-width: 68ch; }
.g-body li::marker { color: var(--accent); font-weight: 700; }
.g-body strong { color: var(--text); }
.g-body a { color: var(--accent); }
.table-wrap { margin: 6px 0 24px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.g-body table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.g-body th { text-align: start; padding: 12px 14px; background: var(--surface-2); font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.g-body td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.g-body tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.g-body td:first-child { font-weight: 600; white-space: nowrap; }

/* FAQ and quiz answers */
.faq-item { padding: 16px 0; border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 6px; }
.faq-a p { margin: 0; color: var(--muted); }
.g-body { counter-reset: q; }
.quiz-q { counter-increment: q; border-top: 1px solid var(--line); }
.quiz-q summary { display: flex; gap: 14px; align-items: baseline; padding: 16px 4px; cursor: pointer; list-style: none; font-weight: 600; font-size: 17.5px; line-height: 1.4; }
.quiz-q summary::-webkit-details-marker { display: none; }
.quiz-q .qn::before { content: counter(q); display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2);
  font-family: var(--display); font-weight: 900; font-size: 16px; color: var(--accent); }
.quiz-q summary::after { content: "Show answer"; margin-inline-start: auto; flex: none; font-size: 13px; font-weight: 600; color: var(--muted); }
.quiz-q[open] summary::after { content: "Hide"; }
.quiz-a { padding: 0 4px 18px; padding-inline-start: 50px; }
.quiz-a p { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-inline-start: 3px solid var(--accent); }

/* play the game */
.g-play { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin: 42px 0 0; padding: 20px 22px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 60%); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.g-play h2 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; }
.g-play p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.g-play .gp-k { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--accent); }

.g-more { padding-top: 64px; }
.g-more h2, .gi-sec h2 { font-size: clamp(32px, 4vw, 46px); margin-bottom: 16px; }
.g-more ul, .gi-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.g-more a, .gi-list a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, transform .2s; }
.g-more a:hover, .gi-list a:hover { border-color: var(--accent); transform: translateY(-2px); }
.g-more b, .gi-list b { font-size: 17px; line-height: 1.3; }
.g-more span, .gi-list span { font-size: 14px; color: var(--muted); }
.gi-head { padding: 34px 0 8px; }
.gi-head h1 { font-size: clamp(52px, 7vw, 96px); }
.gi-head .g-lead { font-size: 19px; color: var(--muted); margin: 10px 0 0; max-width: 56ch; }
.gi-sec { padding-top: 40px; }

@media (max-width: 720px) {
  .g-body { font-size: 16.5px; }
  .g-body .g-lead { font-size: 18px; }
  .g-cards .pcard { width: 84px; }
  .g-cards a { margin-right: -20px; }
  .g-play { grid-template-columns: auto minmax(0, 1fr); }
  .g-play .btn { grid-column: 1 / -1; }
  .quiz-q summary::after { display: none; }
  .quiz-a { padding-inline-start: 4px; }
  .g-body td:first-child { white-space: normal; }
}
