/* In-chapter book layout and inline explanatory drawings. */
.chapter-index {
  margin:0 0 18px;
  border:1px solid #d7e6e1;
  border-radius:11px;
  background:#f8fbfa;
  padding:10px 13px;
  color:#245a56
}

.chapter-index summary {
  cursor:pointer;
  font-size:15px;
  font-weight:850
}

.chapter-index summary span {
  font-weight:550;
  color:#4f6a68
}

.chapter-index ol {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  list-style-type:arabic-indic;
  gap:5px 30px;
  margin:8px 0 0;
  padding-inline-start:25px
}

.chapter-index li {
  padding-inline-start:2px;
  font-size:15px;
  line-height:1.6;
  font-weight:700
}

.chapter-index li::marker {
  font-weight:900;
  color:#087367
}

.chapter-index a {
  text-decoration:underline;
  text-underline-offset:3px
}

.chapter-index a:hover {
  color:#0f7b6c
}

.book-section {
  margin-block:0 18px;
  padding-block:12px 6px;
  border-top:1px solid #e2e8ea;
  scroll-margin-top:17px
}

.book-section:focus {
  outline:none
}

.book-section:focus-visible>.book-title {
  outline:2px solid #318c7f;
  outline-offset:3px;
  border-radius:5px
}

.chapter .book-title {
  display:flex;
  align-items:flex-start;
  gap:10px;
  line-height:1.5;
  font-size:clamp(21px,2.6vw,26px);
  margin:0 0 6px;
  color:#142c40
}

.book-no {
  display:inline-grid;
  place-items:center;
  width:31px;
  height:31px;
  flex:0 0 31px;
  border-radius:8px;
  background:#e6f4ef;
  color:#126b5f;
  font-size:17px;
  font-weight:900;
  line-height:1;
  margin-block-start:3px
}

.book-section>h4,.book-section .decision>h4,.book-section .extra>h4 {
  font-size:17px;
  margin:12px 0 4px;
  color:#24596a
}

.book-section.deep,.book-section.study {
  border-top-width:1px;
  padding:14px 16px
}

.book-section .extra {
  margin-block:14px 0;
  padding:10px 13px
}

.book-section .extra>h4 {
  margin-top:0
}

.book-section .work-card {
  margin:9px 0 0
}

.book-section .work-item ol {
  list-style-type:arabic-indic
}

.book-section .work-item li::marker {
  font-weight:800;
  color:var(--green)
}

.book-section .decision {
  margin:14px 0 0
}

.book-definitions {
  margin:9px 0 12px;
  border-inline-start:3px solid #80c1b4;
  border-radius:8px;
  background:#f5f9f7;
  padding:5px 13px
}

.book-definitions>div {
  padding:5px 0;
  line-height:1.72
}

.book-definitions>div+div {
  border-top:1px solid #e1ece8
}

.book-definitions dt {
  font-weight:850;
  color:#185952;
  margin-block-end:1px
}

.book-definitions dd {
  font-weight:400;
  color:#304854;
  margin:0
}

.body-illustration {
  max-width:540px;
  margin:15px auto 6px;
  overflow:hidden;
  border:1px solid #d8e8e2;
  border-radius:13px;
  background:white
}

.field-figure-svg {
  display:block;
  width:100%;
  height:auto;
  font-family:Cairo,Tahoma,Arial,sans-serif
}

.body-illustration figcaption {
  background:#eff7f3;
  padding:8px 12px;
  line-height:1.65;
  color:#294a5a
}

.body-illustration figcaption strong,.body-illustration figcaption span {
  display:block
}

.body-illustration figcaption strong {
  font-size:15px;
  font-weight:850
}

.body-illustration figcaption span {
  font-size:14px;
  font-weight:400
}

.chapter-risk-fig {
  display:grid;
  gap:7px;
  padding:7px
}

@media(max-width:680px) {
  .chapter-index ol {
    grid-template-columns:minmax(0,1fr)
  }
  .chapter .book-title {
    font-size:20px;
    gap:8px
  }
  .book-no {
    width:26px;
    height:26px;
    flex-basis:26px;
    font-size:15px
  }
  .book-section {
    padding-block-start:10px
  }
  .book-section.deep,.book-section.study {
    padding:12px
  }
  .book-section>h4,.book-section .decision>h4,.book-section .extra>h4 {
    font-size:16px
  }
  .body-illustration figcaption {
    padding:7px 9px
  }
  .body-illustration figcaption span {
    font-size:13px
  }
  .book-definitions {
    padding-inline:10px
  }
}

/* The feature pairs a short introduction with a scene, without a narrow image crop. */
.door-hero { border-bottom:1px solid var(--line); }
.door-hero-frame { padding-block:13px 18px; }
.door-crumbs { display:flex; flex-wrap:wrap; align-items:center; gap:2px 8px; margin-block-end:10px; color:#456481; font-size:clamp(.75rem,1.4vw,.9rem); font-weight:750; line-height:1.45; }
.door-crumbs a { color:#235b96; text-decoration:underline; text-underline-offset:3px; }
.door-feature {
 display:grid; grid-template-columns:minmax(0,4fr) minmax(0,6fr);
 gap:clamp(11px,2vw,24px); align-items:center; border:1px solid #d7e1ec; border-radius:14px;
 padding:clamp(9px,1.5vw,17px); background:linear-gradient(125deg,#fffdf8,#edf3fa);
}
.door-photo { margin:0; width:100%; overflow:hidden; border:1px solid #d5dfeb; border-radius:11px; background:#eff4f9; }
.door-photo img { display:block; width:100%; height:auto; aspect-ratio:2; object-fit:cover; object-position:center 47%; }
.door-photo figcaption { color:#385b7b; padding:5px 9px; font-size:clamp(.72rem,1.2vw,.82rem); line-height:1.55; }
.door-hero + .reader .toc a { color:#245e94; }
.door-hero + .reader .toc a i { color:#245e94; background:#e8f0f9; }
.door-intro { border-inline-start:4px solid #3b7db8; padding-inline-start:12px; }
.door-intro h1 { color:var(--ink); font-size:clamp(1.35rem,3.1vw,2.76rem); line-height:1.31; }
.door-intro p { color:var(--muted); font-size:clamp(.84rem,1.45vw,1.04rem); line-height:1.65; margin-block-start:6px; }
.door-jump {
 display:inline-flex; gap:7px; align-items:center; min-height:44px; margin-block-start:10px;
 border:1px solid #bfcfe2; border-radius:8px; padding:5px 9px;
 color:#225b93; background:#f9fbfe; font-size:.83rem; font-weight:850;
}
.door-jump:hover { background:#eaf1f9; }
@media(max-width:615px) {
 .door-hero-frame { padding-block:9px 14px; }
 .door-feature { grid-template-columns:minmax(0,1fr); gap:9px; border-radius:10px; }
 .door-photo { grid-row:1; border-radius:8px; }
 .door-intro { padding-inline-start:8px; }
 .door-jump { margin-block-start:6px; }
}
@media print {
 .door-photo,.door-crumbs,.door-jump { display:none; }
 .door-feature { display:block; border:0; padding:0; background:none; }
 .door-hero-frame { padding-block:0 6px; }
}

.area-inspection { border:1px solid #cbdcec; border-radius:11px; background:#f5f9fd; color:var(--ink); padding:12px 14px; margin-block:12px 16px; min-width:0; }
.area-inspection h4,.area-inspection h5 { color:#174672; margin:0; font-weight:850; }
.area-inspection h4 { font-size:1.12rem; margin-block-end:8px; }
.area-inspection h5 { font-size:.97rem; }
.area-inspection summary { color:#174672; font-weight:850; cursor:pointer; padding:4px 0; }
.area-inspection summary:focus-visible { outline:2px solid #285d8f; outline-offset:3px; }
.area-inspection-grid,.area-inspection-branches dl { display:grid; gap:4px; margin:0; }
.area-inspection-grid>div,.area-inspection-branches dl>div { display:grid; grid-template-columns:minmax(113px,1fr) minmax(0,3.5fr); align-items:baseline; gap:4px 9px; padding:7px 8px; border-block-end:1px solid #dce7f1; }
.area-inspection-grid dt,.area-inspection-branches dt { color:#174672; font-weight:850; font-size:.91rem; line-height:1.55; }
.area-inspection-grid dd,.area-inspection-branches dd { margin:0; font-size:.91rem; line-height:1.78; overflow-wrap:anywhere; }
.area-inspection-evidence,.area-inspection-branches { margin-block-start:10px; }
.area-inspection .area-inspection-evidence p { font-size:.86rem; line-height:1.65; margin-block:4px; }
.area-inspection .area-inspection-note { padding-inline-start:7px; border-inline-start:3px solid #5a90be; }
.area-inspection-refs { margin-block-start:7px; font-size:.8rem; color:#456481; }
.area-inspection-refs .refs { margin-block-start:3px; }
.area-fire { margin-block:6px 14px; padding:10px 11px; border:1px solid #e7c8bb; border-radius:9px; background:#fff9f4; }
.area-fire h5 { color:#863920; font-size:1.03rem; }
.area-inspection .area-fire p { font-size:.89rem; line-height:1.75; margin-block:6px; }
.area-fire-focus { padding-inline-start:9px; border-inline-start:3px solid #b35b3e; }
.area-fire .area-inspection-grid>div { border-block-end-color:#eadbd2; }
.area-fire .area-inspection-grid dt { color:#713921; }
.area-fire-record { color:#5c504b; }
.area-fire-jump { margin-block:9px 12px; }
.round-topics { padding-block:3px 12px; }
.round-topic,.round-workbook { border:1px solid #cadeef; border-radius:9px; background:#fff; margin-block:7px; }
.round-workbook { background:#edf5ff; border-color:#b9cfe7; margin-block:7px 12px; }
.area-inspection .round-topic>summary,.area-inspection .round-workbook>summary { padding:10px 12px; }
.round-topic dl,.round-form-body { margin:0; padding:0 12px 12px; }
.round-topic dl>div { padding:6px 0; border-block-start:1px solid #e2e9f1; }
.round-topic dt { color:#174672; font-weight:850; font-size:.88rem; }
.round-topic dd { margin:0; font-size:.92rem; overflow-wrap:anywhere; }
.area-inspection .round-form-intro,.area-inspection .round-cue { color:#435971; font-size:.88rem; line-height:1.7; margin-block:0 9px; }
.round-context,.round-result,.round-action-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr)); gap:8px 10px; }
.round-items { margin-block:12px; display:grid; gap:10px; }
.round-item { margin:0; border:1px solid #cedceb; border-radius:8px; padding:8px 10px 10px; background:#fff; min-inline-size:0; }
.round-item legend { padding-inline:5px; color:#174672; font-size:.93rem; font-weight:850; }
.round-workbook label { min-width:0; display:grid; align-content:start; gap:4px; font-size:.81rem; font-weight:750; }
.round-workbook input,.round-workbook select,.round-workbook textarea { inline-size:100%; min-inline-size:0; min-height:42px; border:1px solid #b7cade; border-radius:6px; background:#fff; color:#142a44; padding:5px 7px; font:inherit; font-weight:500; }
.round-workbook textarea { resize:vertical; }
.round-workbook .round-action { margin-block-start:7px; border-block-start:1px solid #e4edf6; }
.area-inspection .round-action summary { font-size:.8rem; padding-block:7px; }
.round-controls { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 12px; font-size:.85rem; font-weight:750; }
.round-controls .btn { min-height:44px; font-size:.84rem; }
@media(max-width:520px) {
 .area-inspection { padding:8px 9px; }
 .area-inspection-grid>div,.area-inspection-branches dl>div { grid-template-columns:minmax(0,1fr); gap:1px; padding:6px 0; }
}
