/* The learning edition adds an entry path and splits each chapter into decisions and examples. */
.learn-hero {
  display:inline-block;
  margin-top:13px;
  color:#a6ecdf;
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:5px
}

.learn-hero:hover {
  color:#fff
}

.learn-hero span {
  display:inline-block;
  margin-inline-start:3px
}

.chapter .chapter-opening {
  color:#314c60;
  font-size:1.1rem;
  line-height:1.87;
  margin:10px 0 17px;
  padding-block-end:15px;
  border-block-end:1px solid #e2e8e9
}

.lesson-steps {
  display:grid;
  gap:1px
}

.lesson-step h3,.learn-first h3 {
  display:flex;
  gap:9px;
  align-items:baseline;
  font-size:21px;
  margin-block:13px 4px
}

.step-no {
  display:inline-block;
  color:#076b60;
  background:#eaf7f3;
  border-radius:7px;
  padding:1px 6px;
  font-size:13px;
  font-weight:900;
  flex:0 0 auto;
  white-space:nowrap
}

.lesson-step p {
  margin-block:5px 12px
}

.deep {
  background:#f4f8fa;
  border:1px solid #dde8ed;
  border-radius:13px;
  padding:15px 19px;
  margin-block:19px
}

.deep h3 {
  margin:1px 0 4px
}

.deep p:last-child {
  margin-bottom:2px
}

.decision {
  margin-block:20px
}

.decision h3 {
  margin:0 0 8px
}

.decision dl,.glossary {
  margin:0;
  display:grid;
  gap:1px;
  border:1px solid var(--line);
  background:var(--line);
  overflow:hidden;
  border-radius:11px
}

.decision dl>div,.glossary>div {
  background:#fff;
  display:grid;
  grid-template-columns:minmax(100px,.34fr) 1fr;
  gap:10px;
  padding:9px 13px;
  line-height:1.8
}

.decision dt,.glossary dt {
  font-weight:850;
  color:#0c635d
}

.decision dd,.glossary dd {
  margin:0
}

.decision dl>div:nth-child(2) {
  background:#fff6e9
}

.decision dl>div:nth-child(2) dt {
  color:#794a11
}

.learn-main>section {
  margin-block:0 24px
}

.learn-main>section>h2 {
  margin-bottom:11px
}

.learn-intro p,.learn-level p,.quiz p {
  line-height:1.9
}

.learn-first+.learn-first {
  border-top:1px solid var(--line);
  margin-top:10px
}

.learn-level h3 {
  font-size:22px
}

.learn-links {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-block:9px;
  padding:0;
  list-style:none
}

.learn-links a {
  display:inline-block;
  background:#ebf6f2;
  color:#075c55;
  padding:3px 9px;
  border-radius:7px;
  font-weight:800
}

.learn-links a:hover {
  text-decoration:underline
}

.task {
  border-inline-start:3px solid #79b9ad;
  padding-inline-start:10px;
  color:#27475b
}

.task strong {
  margin-inline-end:5px
}

.glossary>div:nth-child(even) {
  background:#f4f8f7
}

.quiz {
  border-top:1px solid var(--line);
  padding-block:14px 8px
}

.quiz:first-of-type {
  margin-top:14px
}

.quiz h3 {
  font-size:19px;
  margin-top:2px
}

.quiz details {
  padding:6px 10px;
  background:#f1f8f5;
  border-radius:8px;
  color:#154d48
}

.quiz summary {
  font-weight:850;
  cursor:pointer
}

.quiz .field-link {
  margin-top:2px
}

@media(max-width:680px) {
  .lesson-step h3,.learn-first h3 {
    font-size:19px
  }
  .decision dl>div,.glossary>div {
    grid-template-columns:minmax(0,1fr);
    gap:1px
  }
  .deep {
    padding:12px 13px
  }
  .chapter .chapter-opening {
    font-size:1.035rem;
    line-height:1.87
  }
  .learn-hero {
    font-size:14px
  }
  .quiz h3 {
    font-size:17px
  }
}

.practice-hero {
  margin-inline-start:14px
}

.work-card {
  background:#fbfcfb;
  border:1px solid #cddfd7;
  border-radius:15px;
  padding:18px 21px;
  margin:22px 0
}

.work-card h3 {
  margin:2px 0 9px
}

.work-card h4 {
  font-size:17px;
  color:#215468;
  margin:0
}

.work-item {
  padding:11px 0;
  border-top:1px solid #e0e9e5
}

.work-item p {
  margin:3px 0 0;
  line-height:1.85
}

.work-item ol,.how-steps {
  padding-inline-start:24px;
  margin-block:6px 0
}

.work-item li {
  margin:4px 0;
  line-height:1.85
}

.framework-note {
  background:#eef7f3;
  border-radius:9px;
  padding:10px 12px;
  color:#19554f
}

.framework-note p {
  margin:2px 0 4px;
  line-height:1.8;
  font-size:14px
}

.work-links,.zone-index,.risk-legend {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-block:9px
}

.work-links a,.zone-index a {
  display:inline-block;
  font-weight:800;
  color:#075f57;
  background:#e9f5f0;
  padding:3px 9px;
  border-radius:7px;
  text-decoration:underline;
  text-underline-offset:3px
}

.work-links a:hover,.zone-index a:hover {
  background:#d7ede3
}

.manual-main>.field-card {
  margin-bottom:15px
}

.manual-intro {
  font-weight:700;
  color:#29465a;
  margin-bottom:16px
}

.manual-block {
  scroll-margin-top:12px
}

.manual-block h2 {
  margin-bottom:8px
}

.manual-block p {
  line-height:1.9;
  margin-block:3px 8px
}

.how-steps>li {
  padding-block:7px
}

.how-steps h3,.audit-rows h3 {
  font-size:19px;
  margin-bottom:3px
}

.how-steps>li+li,.audit-rows>section+section {
  border-top:1px solid #dfebe6
}

.how-steps>li::marker {
  color:#1c7165;
  font-weight:850
}

.audit-rows {
  margin-top:9px
}

.audit-rows>section {
  padding:10px 0
}

.code-tag {
  display:inline-block;
  background:#e9f5f0;
  color:#145b52;
  padding:1px 7px;
  font-size:13px;
  border-radius:5px;
  font-weight:850;
  margin-bottom:5px
}

.zone-condition,.legal-example {
  background:#f1f6f8;
  padding:8px 10px;
  border-radius:8px
}

.attention-card {
  background:#fff4df;
  border-inline-start:4px solid #bd8131;
  border-radius:9px;
  padding:9px 13px;
  color:#643900;
  margin:12px 0
}

.manual-block figure {
  max-width:540px;
  margin:12px auto
}

.manual-block figcaption {
  color:#395b6e;
  line-height:1.75;
  font-size:14px
}

.risk-picture {
  display:block;
  width:100%;
  height:auto;
  font-family:Cairo,Tahoma,Arial,sans-serif;
  direction:ltr
}

.risk-picture>text {
  dominant-baseline:auto
}

.risk-legend span,.calc-out {
  padding:3px 8px;
  border-radius:6px;
  font-weight:850
}

.band-low {
  background:#d4f4e5;
  color:#104e3b
}

.band-moderate {
  background:#fff0b9;
  color:#634700
}

.band-high {
  background:#ffdbbd;
  color:#743300
}

.band-critical {
  background:#ffd4d9;
  color:#711d2a
}

.risk-table {
  width:min(100%,500px);
  margin-inline:auto;
  border-collapse:separate;
  border-spacing:3px;
  text-align:center;
  table-layout:fixed
}

.risk-table td,.risk-table th {
  border-radius:4px;
  font-weight:850;
  padding:4px
}

.risk-table th {
  background:#eff6f2;
  color:#206257
}

.risk-table caption {
  color:#325466;
  font-weight:850
}

.guide-details {
  margin:8px 0;
  color:#166459
}

.guide-details summary {
  cursor:pointer;
  text-decoration:underline
}

.scale-grid,.risk-calc {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}

.reading-scale,.calc-one {
  background:#f2f7f5;
  border:1px solid #dbe7e4;
  border-radius:9px;
  padding:10px 12px
}

.reading-scale>div {
  padding-top:5px
}

.reading-scale>div+div {
  border-top:1px solid #dbe7e4
}

.reading-scale h3,.calc-one h3,.scored-rows h3 {
  font-size:18px;
  margin-bottom:4px
}

.reading-scale p {
  line-height:1.65;
  font-size:14px
}

.calc-inputs {
  display:flex;
  gap:9px;
  margin:7px 0 9px
}

.calc-inputs label {
  font-weight:800;
  display:flex;
  flex:1;
  gap:7px;
  align-items:center
}

.calc-inputs select {
  font:inherit;
  background:#fff;
  border:1px solid #9eafaa;
  border-radius:6px;
  padding:2px 5px;
  color:#1a3d4c
}

.calc-out {
  display:block
}

.calc-one p {
  font-size:14px
}

.riskdownload {
  margin-top:10px
}

.scored-rows>div {
  border-top:1px solid #dce9e4;
  padding:9px 0
}

.scored-rows strong {
  color:#175d52
}

.guide-search {
  background:#e8f4ef;
  padding:10px;
  border-radius:9px;
  margin-top:10px
}

.guide-search .work-links {
  margin:2px 0
}

.guide-search a {
  background:#fff
}

@media(max-width:680px) {
  .work-card {
    padding:13px
  }
  .manual-block h2 {
    font-size:22px
  }
  .how-steps h3,.work-item h4 {
    font-size:17px
  }
  .scale-grid,.risk-calc {
    grid-template-columns:1fr
  }
  .risk-legend span {
    font-size:13px
  }
  .practice-hero {
    margin-inline-start:8px
  }
}

.how-steps.numbered {
  list-style:none;
  padding-inline-start:0
}

/* Explain how the illustrative tools are meant to be read and reused. */
#main .tool-notice {
  margin-block:9px;
  padding:7px 10px;
  border-inline-start:3px solid #668aaf;
  border-radius:6px;
  background:#edf3f9;
  color:#304d68;
  font-size:.86rem;
  line-height:1.65;
}
.tool-notice strong {
  margin-inline-end:.3em;
  color:#173b60;
}

/* Compact, light headers for reading tools and guides. */
.utility-hero { padding-block:12px 0; }
.utility-crumbs {
  display:flex; flex-wrap:wrap; align-items:center; gap:3px 8px;
  color:#4a6178; font-size:clamp(.72rem,1.35vw,.87rem); font-weight:700;
  line-height:1.5; margin-block-end:9px;
}
.utility-crumbs a { color:#245b93; text-decoration:underline; text-underline-offset:3px; }
.utility-panel {
  display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:14px;
  padding:15px clamp(12px,2.25vw,24px);
  border:1px solid #d7e1ec; border-inline-start:4px solid #5486bc; border-radius:13px;
  background:linear-gradient(120deg,#edf3fa,#fdfbf5 80%);
}
.utility-mark {
  display:grid; place-items:center; width:56px; height:56px; border:1px solid #c4d6ed;
  border-radius:13px; color:#285c90; background:#e1ebf8;
}
.utility-mark svg { width:29px; height:29px; }
.utility-copy h1 { color:#153352; font-size:clamp(1.42rem,3.15vw,2.57rem); line-height:1.3; }
.utility-copy p { margin-block-start:4px; color:#455f78; font-size:clamp(.85rem,1.45vw,1rem); line-height:1.65; max-width:76ch; }
.utility-label { font-size:.72rem; font-weight:850; color:#336394; margin-block-end:2px; }
.utility-hero + .field-main,.utility-hero + .source-main,.utility-hero + .search-main { padding-block-start:18px; }
.search-panel {
  border:1px solid #d7e1ec; border-radius:12px; padding:12px 14px;
  background:#fffdf8; margin-block-end:12px;
}
.search-main .search-inline { display:flex; gap:8px; align-items:stretch; margin:0; }
.search-main .search-inline input {
  min-width:0; flex:1; width:100%; min-height:44px; border:1px solid #bdcfe2;
  border-radius:8px; background:#fff; color:#173b5d; font-size:16px; padding:7px 10px;
}
.search-main .search-inline button { flex:none; min-height:44px; }
.search-picks { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-block-start:9px; }
.search-picks>span { font-size:.78rem; color:#465f77; font-weight:800; }
.search-picks>a {
  border:1px solid #d0deeb; border-radius:999px; color:#244f79;
  background:#edf3fa; min-height:35px; display:inline-flex;
  align-items:center; padding:3px 9px; font-size:.79rem; font-weight:750;
}
.search-picks>a:hover { border-color:#6993bc; }
@media(max-width:540px) {
 .utility-hero { padding-block-start:9px; }
 .utility-panel { align-items:start; gap:8px; padding:10px 8px; border-radius:9px; }
 .utility-mark { width:36px; height:36px; border-radius:8px; }
 .utility-mark svg { width:20px; height:20px; }
 .utility-copy h1 { font-size:clamp(1.13rem,5.2vw,1.42rem); }
 .search-panel { padding:9px; }
 .search-main .search-inline { gap:5px; }
}
@media(pointer:coarse) { .search-picks>a { min-height:44px; } }
@media print {
 .utility-crumbs,.utility-mark,.search-panel { display:none; }
 .utility-panel { display:block; background:none; border:0; padding:0; }
}
.search-main .search-inline .btn {
 color:#fff;
 border-color:#284d77;
 background:linear-gradient(135deg,#346698,#173855);
}
.search-main .search-inline .btn:hover { background:#224d78; }

#main .ledger-example {
  margin-block:9px;
  padding:7px 10px;
  border:1px solid #d7e1ec;
  border-radius:7px;
  background:#f5f8fb;
  color:#304d68;
  font-size:.9rem;
  line-height:1.7;
}
.ledger-example strong { display:block; color:#173b60; }
