/* The check "Kan rättsskyddet gälla för dig?" (shared component, .ck-*). Markup: scripts/pages/tpl/_check.html.
   Without JS: the three questions as a list, the meeting line and Boka möte. With JS (html.js): one step at a time. */
.ck { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-7); align-items: center; }
.ck__title { font-size: var(--h2); }
.ck__intro { margin-top: var(--s-4); color: var(--mute); }
.ck__panel {
  position: relative; background: var(--paper); border-radius: var(--r-2); box-shadow: var(--sh-raised);
  padding: clamp(24px, 3.4vw, 48px); border-top: 6px solid var(--ochre);
}
.ck__step { font: 600 var(--small)/1.3 var(--f-text); color: var(--teal); min-height: 1.3em; margin-bottom: var(--s-3); }
.ck__qs { list-style: none; }
.ck__q + .ck__q { margin-top: var(--s-5); }
.ck__qh { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); line-height: 1.18; font-weight: 450; outline: none; }
.ck__qh:focus-visible, .ck__eh:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.ck__answers { display: none; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.ck__a {
  min-height: 50px; min-width: 96px; padding: 0 22px; border-radius: var(--r-pill); border: 1.5px solid var(--teal);
  background: var(--paper); color: var(--teal-deep); font-weight: 600; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.ck__a:hover { background: var(--sea); }
.ck__a:active { transform: translateY(1px); background: var(--teal); color: #fff; }
.ck__a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-pill); }
.ck__end p { margin-top: var(--s-3); }
.ck__eh { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); line-height: 1.18; font-weight: 450; outline: none; }
.ck__close { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.ck__meeting { margin-bottom: var(--s-4); }
.ck__nav { display: flex; gap: var(--s-5); margin-top: var(--s-4); }
.ck__nav:empty { display: none; }
.ck__back, .ck__restart {
  min-height: 44px; padding: 0 2px; background: none; border: 0; color: var(--teal); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
}
.ck__back:hover, .ck__restart:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }
.ck__note { margin-top: var(--s-5); font-size: var(--small); color: var(--mute); }

/* JS on: one question at a time, then one ending; the close shows only with an ending */
.ck.is-live .ck__q { display: none; }
.ck.is-live .ck__q.is-cur { display: block; animation: ck-in 420ms var(--ease) both; }
.ck.is-live .ck__q + .ck__q { margin-top: 0; }
.ck.is-live .ck__answers { display: flex; }
.ck.is-live .ck__close { display: none; }
.ck.is-live.is-done .ck__close { display: block; }
.ck.is-live .ck__end:not([hidden]) { animation: ck-in 420ms var(--ease) both; }
.ck:not(.is-live) .ck__ends { display: none; }
@keyframes ck-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.rm .ck__q.is-cur, html.rm .ck__end { animation: none !important; }

@media (max-width: 899.98px) { .ck { grid-template-columns: 1fr; gap: var(--s-5); } }
@media (max-width: 479.98px) { .ck__a { flex: 1 1 0; min-width: 0; padding: 0 12px; } }
