:root {
  color-scheme: light;
  color: #18312a;
  background: #f7f8f4;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  scroll-padding-top: 176px;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid #3e795c; outline-offset: 4px; }
.learn-skip { position: fixed; z-index: 90; top: 12px; left: 12px; padding: 8px 12px; background: white; transform: translateY(-200%); }
.learn-skip:focus { transform: translateY(0); }

.learn-main { max-width: 1240px; margin: auto; padding: 0 clamp(18px, 4vw, 54px) 60px; }
.learn-path { display: flex; gap: 12px; padding-block: 20px; color: #455e51; font-size: .84rem; }
.learn-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid #d1ded3; border-radius: 14px; background: #e6eee6; }
.learn-hero > div { padding: clamp(23px, 4vw, 52px); }
.learn-hero h1 { margin: 8px 0 14px; font-size: clamp(2.5rem, 6vw, 4.65rem); font-weight: 560; letter-spacing: -.06em; line-height: 1; }
.learn-hero p:not(.learn-kicker) { max-width: 52ch; margin: 0; }
.learn-hero figure { position: relative; display: grid; min-height: 240px; margin: 0; }
.learn-hero img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.learn-hero figcaption { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 6px 12px; color: #fff; background: #142e27e8; font-size: .72rem; }
.learn-kicker { margin: 0; color: #3e6856; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.learn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; }
.learn-button, .learn-link { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font-size: .85rem; font-weight: 650; }
.learn-button { padding: 8px 14px; border: 1px solid #285d46; border-radius: 6px; color: #fff; background: #285d46; text-decoration: none; }
.learn-button:hover { background: #174735; }
.learn-link { color: #285d46; }

.learn-section { margin-block: clamp(32px, 5vw, 60px); }
.learn-section h2 { margin: 5px 0 13px; font-size: clamp(1.65rem, 4vw, 2.75rem); font-weight: 570; letter-spacing: -.045em; line-height: 1.13; }
.learn-section > p:not(.learn-kicker) { max-width: 74ch; }
.learn-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 19px; }
.learn-types article { padding: clamp(15px, 2.7vw, 25px); border: 1px solid #d6e1d7; border-radius: 9px; background: #fff; }
.learn-types .learn-feature { border-color: #80aa91; background: #eaf3eb; }
.learn-types h3 { margin: 9px 0; font-size: 1.16rem; line-height: 1.25; }
.learn-types article > p:last-child { margin: 0; }

.outage-panel { overflow: hidden; margin-top: 22px; border: 1px solid #35574b; border-radius: 12px; color: #f2f7f2; background: #142c25; }
.outage-panel :focus-visible { outline-color: #c1edce; }
.outage-head, .outage-model { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 16px clamp(14px, 3vw, 32px); padding: clamp(16px, 3vw, 28px); }
.outage-head { border-bottom: 1px solid #395d4f; }
.outage-head :is(h2, h3) { margin: 5px 0 8px; font-size: clamp(1.22rem, 3vw, 1.8rem); line-height: 1.25; }
.outage-head p:not(.learn-kicker) { max-width: 60ch; margin: 0; color: #d2e1d8; }
.outage-head .learn-kicker { color: #a8d6b9; }
.outage-head ul { display: grid; gap: 5px; margin: 0; padding: 1px 0; list-style: none; }
.outage-head li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: #d2e1d8; border-bottom: 1px solid #44675b; }
.outage-head strong { color: #fff; text-align: end; }
.outage-model[hidden] { display: none; }
.outage-controls fieldset { min-width: 0; margin: 0 0 13px; padding: 0; border: 0; }
.outage-controls legend { margin-bottom: 7px; padding: 0; font-weight: 650; }
.outage-controls fieldset label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 42px; padding-block: 5px; border-bottom: 1px solid #395d4f; cursor: pointer; }
.outage-controls fieldset span { color: #c0d9ca; font-variant-numeric: tabular-nums; white-space: nowrap; }
.outage-controls input { width: 18px; height: 18px; margin: 0; accent-color: #9fdbb2; }
.outage-choices { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.outage-choices select, .outage-choices button { min-height: 40px; padding: 3px 8px; border: 1px solid #779d89; border-radius: 5px; color: #f2f7f2; background: #25483a; }
.outage-choices label, .outage-choices button { font-size: .86rem; }
.outage-choices button { cursor: pointer; }
.outage-results { border-radius: 8px; padding: 12px 16px; background: #1f4033; }
.outage-results dl { display: grid; gap: 3px; margin: 0; }
.outage-results dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; padding: 4px 0; }
.outage-results dt { color: #d7e6db; }
.outage-results dd { margin: 0; color: #fff; font-size: 1.04rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: end; }
.outage-result { margin: 8px 0 0; padding: 7px 0 0; border-top: 1px solid #678c78; color: #bcf1ca; font-weight: 650; }
.outage-result.outage-warning { color: #ffdba6; }
.outage-static { margin: 16px; }
.outage-notes { padding: 0 clamp(16px, 3vw, 28px) 12px; }
.outage-notes details { border-top: 1px solid #395d4f; }
.outage-notes summary { padding: 8px 2px; cursor: pointer; font-weight: 600; }
.outage-notes p { max-width: 78ch; margin: 0 0 10px; color: #d4e3d9; }

.academy-hero { background: #e7eddf; }
.learn-quiz { margin-top: 21px; padding: 14px 18px; border: 1px solid #d6e1d7; border-radius: 8px; background: #fff; }
.learn-quiz h3 { margin: 0 0 5px; }
.learn-quiz fieldset { min-width: 0; margin: 14px 0; padding: 0 0 12px; border: 0; border-bottom: 1px solid #d6e1d7; }
.learn-quiz legend { padding: 0; font-weight: 650; }
.learn-quiz label { display: flex; align-items: baseline; gap: 9px; padding: 5px 1px; cursor: pointer; }
.learn-quiz input { margin: 0; accent-color: #285d46; }
.learn-quiz [data-quiz-feedback] { margin: 7px 0 0; color: #455e51; }
.learn-quiz [data-quiz-score] { margin: 9px 0 0; font-weight: 650; }
.learn-quiz [data-quiz-score]:empty { display: none; }
.learn-quiz button { cursor: pointer; }
.learn-related ul { display: flex; flex-wrap: wrap; gap: 9px 24px; margin: 0; padding: 0; list-style: none; }
.learn-related a { color: #2c6249; font-weight: 650; }

@media (max-width: 800px) {
  :root { scroll-padding-top: 87px; }
  .learn-hero, .outage-head, .outage-model { grid-template-columns: minmax(0, 1fr); }
  .learn-hero figure, .learn-hero img { min-height: 170px; max-height: 260px; }
}

@media (max-width: 620px) {
  .learn-types { grid-template-columns: minmax(0, 1fr); }
  .learn-types .learn-feature { grid-row: 1; }
}
