/* City Quiz kit - on-screen layout and A4 print sheets. Class names are prefixed k-/ksheet to avoid the main app stylesheet. */
.kit-page .hero h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
.kit-page .licence { margin-top: 10px; font-weight: 800; color: var(--pos); }
.kit-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.kit-nav a { text-decoration: none; padding: 9px 14px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 800; }
.kit-nav a[aria-current="page"] { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.kit-ctl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; box-shadow: var(--shadow); }
.kit-ctl .wk-line { font-size: 1.05rem; }
.kit-weeks { display: flex; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.kit-weeks a { padding: 8px 12px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700; }
.kit-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.kit-btns .btn { justify-content: center; }
#status { min-height: 1.2em; color: var(--neg); margin-top: 8px; font-weight: 700; }
.kit-page h2 { font-size: 1.35rem; margin: 22px 0 8px; }
#guide { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 16px; margin: 18px 0; }
#guide table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .95rem; }
#guide th, #guide td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
#guide ul { padding-left: 1.2em; } #guide li + li { margin-top: 4px; }
.kit-why { margin: 16px 0; color: var(--muted); font-size: .92rem; }
.kit-why summary { cursor: pointer; font-weight: 800; color: var(--text); min-height: 44px; display: flex; align-items: center; }
.kit-why ul { padding-left: 1.2em; }

/* Sheets (paper preview) */
.ksheet { background: #fff; color: #111; border-radius: 12px; padding: 22px; margin: 16px 0; box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; }
.ksheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 12px; }
.ksheet-head h2 { margin: 0; font-size: 1.25rem; }
.ksheet-head p { margin: 0; font-weight: 700; }
.kfield { display: flex; gap: 8px; align-items: flex-end; flex: 1 1 100%; font-weight: 800; }
.kfield i { flex: 1; border-bottom: 1.5px solid #111; height: 1.4em; min-width: 80px; }
.kround { margin: 0 0 14px; break-inside: avoid; }
.kround h3 { font-size: 1rem; margin: 0 0 4px; border-bottom: 1px solid #111; padding-bottom: 2px; }
.q-list, .kopts, .kbubs { list-style: none; }
.q-list > li { margin: 6px 0; break-inside: avoid; }
.q-text { font-weight: 800; }
.kopts { margin-left: 1.5em; columns: 2; font-size: .93em; } .kopts li { break-inside: avoid; }
.kok { font-weight: 900; }
.ans { font-size: .9em; color: #333; margin-top: 2px; } .ksrc { margin-left: 8px; color: #174a9c; font-size: .85em; }
.kbubs li { display: flex; align-items: center; gap: 7px; padding: 4px 0; border-bottom: 1px dotted #999; }
.kbubs li b { width: 1.9em; }
.kbub { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; border: 1.5px solid #111; border-radius: 50%; font-weight: 800; font-size: .85em; }
.rscore { margin: 8px 0 0; font-weight: 800; } .khint { color: #444; font-size: .88em; margin-top: 6px; }
#team-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 22px; }
.kscore { width: 100%; border-collapse: collapse; } .kscore th, .kscore td { border: 1px solid #111; padding: 4px; height: 2em; text-align: center; } .kscore th:first-child { width: 30%; }
.ksheet-foot { display: flex; gap: 12px; align-items: center; border-top: 1px solid #999; margin-top: 12px; padding-top: 8px; font-size: 11.5px; color: #333; }
.ksheet-foot svg { width: 64px; height: 64px; flex: 0 0 64px; background: #fff; }
.ksheet-foot p + p { margin-top: 2px; }
details.kit-host > summary { cursor: pointer; font-weight: 900; min-height: 44px; display: flex; align-items: center; padding: 4px 2px; }
.kit-host .ksheet { margin-top: 6px; }

@media print {
  body { display: block !important; }
  .kit-page { max-width: none; padding: 0; }
  .noprint, .kit-nav, .kit-ctl, .hero, .kit-why, .kit-host > summary { display: none !important; }
  .ksheet, #guide { display: none; }
  body[data-print="all"] .ksheet, body[data-print="all"] #guide,
  body[data-print="q"] #sheet-q, body[data-print="team"] #sheet-team, body[data-print="host"] #sheet-host, body[data-print="host"] #guide { display: block; }
  .ksheet, #guide { box-shadow: none; border-radius: 0; border: 0; padding: 0; margin: 0; break-before: page; page-break-before: always; color: #111; background: #fff; }
  body[data-print="q"] #sheet-q, body[data-print="team"] #sheet-team, body[data-print] #guide { break-before: auto; page-break-before: auto; }
  #q-body { columns: 2; column-gap: 8mm; font-size: 11.5px; }
  #team-body { grid-template-columns: repeat(2, 1fr); }
  .ksrc { display: none; }
  a { color: inherit; text-decoration: none; }
}
