/* AI workflow self-check (/resources/ai-workflow-check/): question list beside a sticky night result panel, and the
   Generic AI vs Statvis table. The webinar form reuses .contact / .contact-form from pages.css. */
.check-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .check-grid { grid-template-columns: minmax(0, 1fr); } }

.check-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--aqua); }
.check-toolbar p { font-size: 0.92rem; color: var(--paper-muted); }
.check-clear { font: 600 0.92rem var(--sans); color: var(--blue); background: none; border: 0; padding: 6px 0; cursor: pointer; }

.check-qs { list-style: none; margin: 0; padding: 0; }
.check-q { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--paper-line); }
.check-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--night-1); color: var(--aqua); font-weight: 700; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.check-q h2 { font: 600 1.15rem/1.35 var(--sans); color: var(--paper-ink); padding-top: 5px; letter-spacing: 0; }
.check-hint { margin: 6px 0 14px; font: italic 400 1.15rem/1.4 var(--title); color: var(--paper-muted); max-width: 40em; }

.seg { display: inline-flex; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--paper-line); }
.seg button { font: 500 0.92rem var(--sans); color: var(--paper-body); background: transparent; border: 0; border-right: 1px solid var(--paper-line); padding: 9px 18px; min-width: 78px; cursor: pointer; transition: background 0.2s; }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--paper-2); }
.seg button[aria-pressed="true"] { font-weight: 700; }
.seg button[aria-pressed="true"][data-v="yes"] { background: #ECFDF5; color: #047857; }
.seg button[aria-pressed="true"][data-v="partly"] { background: #FFFBEB; color: #B45309; }
.seg button[aria-pressed="true"][data-v="no"] { background: #FEF2F2; color: #B91C1C; }
:is(.seg button, .check-clear):focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.check-result { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 0; padding: 28px; border-radius: var(--radius-lg); background: var(--night-1); color: var(--cream); border-top: 4px solid var(--aqua); }
/* Six gaps make the panel taller than a laptop screen: it scrolls inside, with the webinar button pinned below. */
@media (min-width: 901px) {
  .check-result { max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; overscroll-behavior: contain; }
  .check-cta { position: sticky; bottom: -28px; margin: 0 -28px -28px; padding: 18px 28px 28px; background: var(--night-1); }
}
@media (max-width: 900px) { .check-result { position: static; } }
.check-score { display: flex; align-items: baseline; gap: 10px; }
.check-score b { font: 400 4rem/1 var(--title); color: var(--aqua); font-variant-numeric: lining-nums tabular-nums; }
.check-score span { color: var(--mist); font-size: 0.95rem; }
.check-meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 16px 0 18px; }
.check-meter i { height: 6px; border-radius: 3px; background: rgba(174, 184, 200, 0.25); transition: background 0.2s; }
.check-meter i.yes { background: #34D399; } .check-meter i.partly { background: #FBBF24; } .check-meter i.no { background: #F08A8C; }
.check-verdict { font: 400 1.6rem/1.15 var(--title); color: var(--cream); }
.check-sub { margin: 6px 0 20px; font-size: 0.92rem; color: var(--mist); }
.check-gaps-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); margin-bottom: 10px; }
.check-gaps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.check-gaps li { position: relative; padding-left: 16px; font-size: 0.9rem; line-height: 1.45; }
.check-gaps li::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; background: var(--aqua); }
.check-gaps small { display: block; margin-top: 2px; font-size: 0.84rem; color: var(--mist); }
.check-cta { display: grid; gap: 14px; }
.check-cta .btn { justify-content: center; }
.check-cta .link-arrow { justify-self: center; font-size: 0.92rem; }

.check-table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--paper-line); background: #fff; }
.check-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.96rem; }
.check-table :is(th, td) { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--paper-line); color: var(--paper-body); }
.check-table thead th { font-size: 0.84rem; font-weight: 700; color: #fff; background: var(--night-1); }
.check-table thead th:last-child { background: var(--blue); }
.check-table tbody th { width: 30%; font-weight: 600; color: var(--paper-ink); }
.check-table tbody td:last-child { font-weight: 600; color: var(--paper-ink); background: #EFF7FD; }
.check-table tbody tr:last-child :is(th, td) { border-bottom: 0; }

/* Webinar: details beside a card of the key facts and the ESAA register button (the card reuses .contact-form). */
.webinar-card { display: grid; gap: 22px; justify-items: start; }
.webinar-facts { display: grid; gap: 18px; margin: 0; }
.webinar-facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.webinar-facts dd { margin: 4px 0 0; font-size: 1.05rem; color: var(--cream); }
.webinar-card .fine { font-size: 0.86rem; color: var(--fog); }
@media (max-width: 900px) { #webinar .contact-form { order: 0; } }
