/* A320 cockpit map: a scale drawing of the flight deck as real buttons over
   the zone outlines, a Study / Find it bar and the list of what each panel
   holds. Colours follow the site's ECAM drawings. */
.ck-page {
  width: min(1080px, calc(100% - 2rem));
  margin: 20px auto 48px;
  color: #0f2338;
}

.ck-layout { display: grid; gap: 14px; }

.ck-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: 0 -1rem;
  padding: 12px 1rem 12px;
  background: #ffffff;
  border-bottom: 1px solid #e3eaf2;
  box-shadow: 0 6px 14px rgba(15, 35, 56, 0.06);
}

.ck-mode {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  border: 1px solid #c9d6e4;
  border-radius: 12px;
  max-width: 360px;
}
.ck-mode label { position: relative; flex: 1; }
.ck-mode input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ck-mode span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 9px;
  color: #52667d;
  font-size: 0.9375rem;
  font-weight: 600;
}
.ck-mode input:checked + span { background: #e8eefb; color: #1b4f8f; }
.ck-mode input:focus-visible + span { outline: 2px solid #2d67d4; outline-offset: 2px; }

.ck-info { margin-top: 12px; min-height: 64px; }
.ck-info p { margin: 0; }
.ck-area { color: #52667d; font-size: 0.8125rem; font-weight: 600; }
.ck-name { margin: 2px 0 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.ck-info .ck-controls-line { margin-top: 4px; color: #33485f; font-size: 0.875rem; line-height: 1.5; }
.ck-link { display: inline-block; margin-top: 6px; color: #1b4f8f; font-size: 0.875rem; font-weight: 600; }

.ck-question {
  margin: 2px 0 0;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.ck-result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; min-height: 44px; }
.ck-info .ck-result { font-size: 0.875rem; font-weight: 600; line-height: 1.4; }
.ck-result.is-right { color: #17633b; }
.ck-result.is-miss { color: #8a4b00; }
.ck-next {
  flex: none;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: #2d67d4;
  color: #ffffff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.ck-next:focus-visible { outline: 3px solid #0f2338; outline-offset: 2px; }

/* The map: a 358 x 880 drawing, panels placed in percent of it. */
.ck-map {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 358 / 880;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 12px;
  background: #15191e;
}
.ck-zones { position: absolute; inset: 0; width: 100%; height: 100%; }
.ck-zones path,
.ck-zones rect { fill: #1b2027; stroke: #3a424d; stroke-width: 1.5; }

.ck-panel {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1px;
  border: 1px solid #4a5562;
  border-radius: 2px;
  background: #2a313b;
  color: #e8edf2;
  font-family: inherit;
  font-size: 2.4cqw;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ck-panel span { pointer-events: none; }
.ck-panel.ck-small { font-size: 1.95cqw; }
.ck-panel.ck-tiny { font-size: 1.65cqw; }
.ck-panel.ck-vertical span { display: none; }
.ck-panel.ck-screen { background: #0b0e12; }
.ck-panel:hover { border-color: #8b96a3; }
.ck-panel:focus-visible { outline: 2px solid #6cc0ff; outline-offset: -2px; z-index: 1; }
.ck-panel.is-selected { background: #12294a; border: 2px solid #6cc0ff; }

/* Find it: names hidden until a panel is tapped. */
.ck-map.is-finding .ck-panel span { visibility: hidden; }
.ck-map.is-finding .ck-panel.is-right span,
.ck-map.is-finding .ck-panel.is-wrong span { visibility: visible; }
.ck-panel.is-right { background: #143524; border: 2px solid #33d17a; }
.ck-panel.is-wrong { background: #3a2a0a; border: 2px solid #ffb000; }

/* What is on each panel */
.ck-list { margin-top: 40px; }
.ck-list h2 { margin: 0; font-size: 1.375rem; }
.ck-group { margin-top: 24px; }
.ck-group h3 { margin: 0 0 10px; font-size: 1.0625rem; }
.ck-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ck-entry { padding: 12px 14px; border: 1px solid #d6e0ea; border-radius: 12px; background: #ffffff; }
.ck-entry h4 { margin: 0; font-size: 0.9375rem; }
.ck-controls { margin: 4px 0 0; padding: 0; list-style: none; color: #33485f; font-size: 0.875rem; line-height: 1.5; }
.ck-controls li { display: inline; }
.ck-controls li:not(:last-child)::after { content: ", "; }
.ck-entry a { display: inline-block; margin-top: 6px; color: #1b4f8f; font-size: 0.875rem; font-weight: 600; }

.ck-page .question-bank-study-note { margin-top: 32px; }

@media (min-width: 900px) {
  .ck-layout {
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    grid-template-areas: "map bar";
    gap: 32px;
    align-items: start;
  }
  .ck-map { grid-area: map; }
  .ck-bar {
    grid-area: bar;
    top: 24px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid #d6e0ea;
    border-radius: 16px;
  }
}
