/* Kensite Induction app styles. Brand: green #0d823b, grey #40424a, light grey #dadada, white. Figtree. */
:root {
  --green: #0d823b;
  --green-dark: #0a6630;
  --green-tint: #eef7f1;
  --grey: #40424a;
  --light: #dadada;
  --page: #f4f4f4;
  --white: #ffffff;
  --radius: 10px;
  --gutter: 40px;
}
@media (max-width: 700px) { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Figtree, Arial, Helvetica, sans-serif;
  color: var(--grey);
  background: var(--page);
  font-size: 18px;
  line-height: 1.45;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }

/* Top bar */
.topbar {
  background: var(--white);
  border-bottom: 2px solid var(--light);
  padding: 12px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 12px 16px;
  align-items: center; justify-content: space-between;
}
.brand { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--grey); }
.brand img { height: 34px; width: auto; display: block; }
.brand span { font-size: 20px; font-weight: 800; border-left: 2px solid var(--light); padding-left: 14px; }
.topbar-right { display: flex; gap: 16px; align-items: center; font-size: 16px; }
.who { font-weight: 600; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) {
  .brand img { height: 26px; }
  .brand span { font-size: 17px; padding-left: 10px; }
  .who { display: none; }
}

/* Page layout */
.page {
  width: 100%; max-width: 920px; margin: 0 auto;
  padding: 32px var(--gutter) 48px;
  display: flex; flex-direction: column; gap: 24px;
}
.page.wide { max-width: 1120px; }
.page.narrow { max-width: 760px; }

.eyebrow {
  font-size: 14px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--green); margin: 0;
}
h1 { margin: 6px 0 8px; font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1.1; }
.intro { font-size: clamp(18px, 2.4vw, 20px); margin: 0; }
.panel {
  background: var(--white); border: 2px solid var(--light);
  border-radius: var(--radius); padding: 24px;
}
.panel.green { background: var(--green); border-color: var(--green); color: var(--white); }
.panel.topline { border-top: 8px solid var(--green); }
.panel.topline-grey { border-top: 8px solid var(--grey); }
.panel h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.panel p { margin: 0 0 8px; }
.panel p:last-child { margin-bottom: 0; }
.small-print { font-size: 15px; margin: 0; }
.link-btn { font-size: 16px; font-weight: 600; background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; cursor: pointer; font-family: inherit; align-self: flex-start; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 28px;
  background: var(--green); color: var(--white);
  font-family: inherit; font-size: 18px; font-weight: 800; line-height: 1.2;
  border: 2px solid var(--green); border-radius: 8px;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--white); }
.btn.secondary { background: var(--white); color: var(--grey); border-color: var(--light); font-weight: 600; }
.btn.secondary:hover { border-color: var(--grey); color: var(--grey); }
.btn.outline { background: var(--white); color: var(--green); border-color: var(--green); font-weight: 600; min-height: 44px; padding: 9px 18px; font-size: 16px; }
.btn.outline:hover { background: var(--green-tint); color: var(--green-dark); }
.btn.on-green { background: var(--white); color: var(--grey); border-color: var(--white); font-weight: 600; }
.btn.small { min-height: 44px; padding: 10px 22px; font-size: 16px; }
.btn[disabled] { background: var(--light); border-color: var(--light); color: #6b6d74; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.actions .group { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
@media (max-width: 520px) {
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .group { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
  .actions .small-print { text-align: center; }
}

/* Progress bars */
.bar { height: 10px; background: var(--light); border-radius: 5px; overflow: hidden; flex: 1; }
.bar > div { height: 100%; background: var(--green); border-radius: 5px; transition: width .3s; }
.bar.thick { height: 14px; border-radius: 7px; }
.progress-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.progress { flex: 1 1 260px; max-width: 460px; display: flex; gap: 14px; align-items: center; }
.progress .label { font-size: 15px; font-weight: 600; white-space: nowrap; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 16px; font-weight: 600; }
.field input {
  height: 56px; padding: 0 16px; width: 100%;
  border: 2px solid var(--grey); border-radius: 8px;
  font-family: inherit; font-size: 18px; color: var(--grey); background: var(--white);
}
.field input:focus { outline: 3px solid var(--green); outline-offset: 0; border-color: var(--green); }
.form { display: flex; flex-direction: column; gap: 18px; padding: 32px; }
@media (max-width: 520px) { .form { padding: 20px; } }
.error { color: #9b1c1c; font-weight: 600; margin: 0; }

/* Home */
.home-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.home-head > div:first-child { flex: 1 1 480px; min-width: 0; }
.progress-card { flex: 0 1 300px; }
.progress-card .count { font-size: 40px; font-weight: 800; color: var(--green); line-height: 1.2; margin-bottom: 6px; }
.section-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.section-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 18px 24px; }
.num {
  width: 44px; height: 44px; border-radius: 22px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; background: var(--light); color: var(--grey);
}
.num.passed { background: var(--green); color: var(--white); }
.num.current { background: var(--grey); color: var(--white); }
.section-row .info { flex: 1 1 220px; min-width: 0; }
.section-row .name { font-size: 20px; font-weight: 800; line-height: 1.25; }
.section-row .line { font-size: 15px; }
.tag { padding: 6px 12px; font-size: 14px; font-weight: 800; border-radius: 6px; background: var(--page); border: 2px solid var(--light); }
.tag.passed { background: var(--green); border-color: var(--green); color: var(--white); }
.tag.current { background: var(--grey); border-color: var(--grey); color: var(--white); }
.section-row .go { min-width: 96px; display: flex; justify-content: flex-end; }
.section-row.locked { opacity: .8; }
@media (max-width: 520px) {
  .section-row { padding: 16px; }
  .section-row .go { min-width: 0; flex: 1 1 100%; }
  .section-row .go .btn { width: 100%; }
}
.section-row .time { font-size: 14px; color: #5d5f66; }
.section-row .time::before { content: "\23F1"; margin-right: 6px; }
.mini-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; max-width: 360px; }
.mini-progress .bar { height: 8px; }
.mini-progress span { font-size: 13px; font-weight: 600; white-space: nowrap; }
.time-total { margin: 10px 0 0; font-size: 16px; font-weight: 600; }

/* Slide progress */
.slide-progress { display: flex; flex-direction: column; gap: 8px; }
.slide-progress-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 15px; font-weight: 600; }
.slide-progress-top .sec { color: var(--green); font-weight: 800; }
.slide-progress .bar { flex: none; width: 100%; }
.slide-time { font-size: 15px; }

.help-banner { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; justify-content: space-between; }
.help-banner > div { flex: 1 1 380px; min-width: 0; }

/* Slides */
.slide {
  background: var(--white); border: 2px solid var(--light); border-radius: var(--radius);
  padding: clamp(22px, 4.5vw, 48px);
  display: flex; flex-direction: column; gap: 20px;
  min-height: 340px;
}
.slide.green { background: var(--green); border-color: var(--green); color: var(--white); }
.slide.dark { background: var(--grey); border-color: var(--grey); color: var(--white); }
.slide.tint { background: var(--light); border-color: var(--light); }
.slide.green .eyebrow, .slide.dark .eyebrow { color: var(--white); }
.slide.green, .slide.dark { justify-content: center; }
.slide h1 { margin: 0; }
.slide h1.xl { font-size: clamp(36px, 7vw, 64px); }
.slide h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 800; line-height: 1.15; }
.slide p { margin: 0; }
.t-tagline { font-size: clamp(19px, 2.4vw, 22px); font-weight: 600; color: var(--green); line-height: 1.3; }
.t-lede { font-size: clamp(22px, 3.2vw, 28px); font-weight: 300; line-height: 1.3; }
.t-body { font-size: 18px; }
.t-small { font-size: 16px; }
.t-next { font-size: 20px; }
.t-closing { font-size: clamp(20px, 2.8vw, 26px); font-weight: 300; line-height: 1.35; }
.t-statement { font-size: clamp(34px, 6vw, 56px); font-weight: 800; line-height: 1.05; }
.t-foot { font-size: 15px; margin-top: 12px !important; opacity: .95; }
.t-big, .t-stat72 { font-size: clamp(44px, 7vw, 64px); font-weight: 800; color: var(--green); line-height: 1; }
.t-attrib { font-size: 16px; font-weight: 800; }
.slide.green .t-tagline, .slide.dark .t-tagline,
.slide.green .t-big, .slide.dark .t-big,
.slide.green .t-stat72, .slide.dark .t-stat72 { color: var(--white); }

.highlight { background: var(--green); color: var(--white); padding: 16px 24px; font-size: 18px; font-weight: 600; line-height: 1.35; border-radius: 4px; }
.slide.green .highlight { background: var(--white); color: var(--grey); }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards.grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 900px) { .cards.grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); color: var(--grey); border: 2px solid var(--light); border-top: 8px solid var(--green); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.card.grey { border-top-color: var(--grey); }
.card h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--green); line-height: 1.25; }
.card.grey h3 { color: var(--grey); }
.card ul { margin: 0; padding-left: 22px; }
.card li { margin: 0 0 8px; font-size: 17px; line-height: 1.4; }
.card li:last-child { margin-bottom: 0; }
.card p { font-size: 17px; }
.card .figure { font-size: clamp(36px, 5vw, 48px); font-weight: 800; color: var(--green); line-height: 1; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; padding: 0; list-style: none; }
.step { background: var(--white); color: var(--grey); border: 2px solid var(--light); border-top: 8px solid var(--green); padding: 18px 20px; }
.slide.tint .step { border-color: var(--white); border-top-color: var(--green); }
.step .label { font-size: 30px; font-weight: 800; color: var(--green); line-height: 1.1; margin-bottom: 6px; }
.step h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.step p { font-size: 17px; }

.figures { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.figures .fig { font-size: clamp(44px, 7vw, 64px); font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 8px !important; }
.slide.green .figures .fig, .slide.dark .figures .fig { color: var(--white); }

.values { margin: 0; padding: 0; list-style: none; }
.values li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; padding: 14px 0; border-top: 2px solid var(--light); }
.values .vnum { font-size: 26px; font-weight: 800; color: var(--green); width: 48px; }
.values .vname { font-size: 24px; font-weight: 800; flex: 0 1 380px; }
.values .vtext { font-size: 19px; flex: 1 1 220px; }

.table-wrap { overflow-x: auto; }
.slide table { border-collapse: collapse; width: 100%; background: var(--white); color: var(--grey); }
.slide th { font-size: 16px; font-weight: 800; text-align: left; padding: 12px 16px; background: var(--green); color: var(--white); }
.slide td { font-size: 17px; line-height: 1.35; padding: 12px 16px; border-bottom: 2px solid var(--light); vertical-align: top; }
.slide td.bold { font-weight: 800; }
.slide td.mark { font-size: 30px; font-weight: 800; color: var(--green); white-space: nowrap; }
@media (max-width: 640px) {
  .slide table, .slide tbody, .slide tr, .slide td { display: block; width: 100%; }
  .slide thead { display: none; }
  .slide tr { border: 2px solid var(--light); border-top: 6px solid var(--green); margin-bottom: 12px; }
  .slide td { border-bottom: 1px solid var(--light); padding: 10px 14px; }
  .slide td:last-child { border-bottom: 0; }
  .slide td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 2px; }
}

.video { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.video .vlabel { font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.video .vtitle { font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1.1; }
.video .vby { font-size: 20px; }
.video .vprompt { font-size: 20px; line-height: 1.4; margin-top: 8px !important; }
.video .note { font-size: 14px; }
.btn.play { font-size: 22px; padding: 18px 36px; background: var(--green); border-color: var(--white); }

.columns { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .columns { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); } }
.columns > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.wheel { width: 100%; max-width: 440px; margin: 0 auto; display: block; }
.wheel .ring { transform-origin: 380px 340px; animation: spin 12s linear 2; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wheel .ring { animation: none; } }

/* Quiz */
.question { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 4.5vw, 40px) clamp(18px, 4.5vw, 44px); }
.question h1 { font-size: clamp(24px, 3.6vw, 32px); line-height: 1.2; margin: 0; }
.badge { align-self: flex-start; padding: 6px 12px; background: var(--grey); color: var(--white); font-size: 14px; font-weight: 800; border-radius: 6px; }
.options { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.option {
  display: flex; gap: 16px; align-items: center; width: 100%; min-height: 68px;
  padding: 12px 18px; border: 2px solid var(--light); background: var(--white); border-radius: var(--radius);
  font-family: inherit; font-size: clamp(17px, 2.4vw, 20px); color: var(--grey); text-align: left; cursor: pointer; line-height: 1.3;
}
.option:hover { border-color: var(--grey); }
.option .letter { width: 40px; height: 40px; border-radius: 20px; background: var(--grey); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.option .otext { flex: 1; }
.option .sel { font-size: 14px; font-weight: 800; color: var(--green); }
.option[aria-pressed="true"] { border: 3px solid var(--green); background: var(--green-tint); padding: 11px 17px; }
.option[aria-pressed="true"] .letter { background: var(--green); }

/* Result */
.result-head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; padding: clamp(24px, 5vw, 48px); }
.result-head h1 { margin: 0; }
.result-head .bar { width: 100%; flex: none; }
.missed { display: flex; flex-direction: column; gap: 14px; }
.missed .q { font-weight: 600; }

/* Numbered step panels (Try Cora, complete) */
.step-row { display: flex; gap: 18px; align-items: flex-start; }
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.step-body h2, .step-body p { margin: 0; }
.example { padding: 12px 16px; background: var(--page); border-radius: 8px; font-weight: 600; align-self: stretch; }
.tick { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; font-size: 17px; cursor: pointer; min-height: 44px; }
.tick input { width: 24px; height: 24px; accent-color: var(--green); margin: 0; }
.btn.dark-border { border-color: var(--grey); }
@media (max-width: 520px) {
  .step-row { gap: 12px; }
  .step-row .num { width: 36px; height: 36px; font-size: 16px; }
  .step-body .btn { width: 100%; }
}

/* Directions box (how to find Cora or the IMS folder) */
.howto { background: var(--green-tint); border-left: 6px solid var(--green); border-radius: 6px; padding: 14px 18px; font-size: 18px; align-self: stretch; }
.howto strong { display: block; color: var(--green); margin-bottom: 2px; }
.howto p { margin: 0; }

/* Help */
.two-up { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.two-up .panel { display: flex; flex-direction: column; gap: 12px; }
.two-up .panel .btn { align-self: flex-start; }
.two-up h2 { font-size: 24px; margin: 0; }
.green-text { color: var(--green); }
.pre-line { white-space: pre-line; }

/* Loading and errors */
.loading { padding: 64px var(--gutter); text-align: center; font-size: 18px; }
.notice { background: #fff6dd; border: 2px solid #e8c95a; border-radius: var(--radius); padding: 16px 20px; font-size: 16px; }
