/*
 * Eagle Overland Field Journal — safari safety.
 * A calm field-manual layer: practical, open and deliberately restrained.
 */

body.ej-safety-journal {
  --safety-rule: #235347;
  --safety-rule-soft: #daf1de;
  --safety-caution: #8a6a32;
  --safety-line: #c9d8c4;
}

body.ej-safety-journal .article-hero h1 {
  max-width: 700px;
  font-size: clamp(49px, 4.7vw, 69px);
}

body.ej-safety-journal .article-hero-visual img {
  object-position: 72% 30%;
  filter: brightness(1.04) saturate(.82);
}

body.ej-safety-journal .article-hero-visual figcaption {
  background: rgba(11, 43, 38, .88);
}

/* Keep the non-negotiable daylight rule distinct without turning it into a card. */
body.ej-safety-journal .article-note.daylight-note {
  margin-block: 36px;
  padding: 27px 28px 25px 74px;
  border: 0;
  border-block: 1px solid #d8c59c;
  border-radius: 0;
  background: rgba(242, 234, 216, .36);
}

body.ej-safety-journal .article-note.daylight-note::before {
  content: "Non-negotiable";
  color: var(--safety-caution);
}

/* Prepared vehicle, navigation and breakdown guidance become open protocols. */
body.ej-safety-journal .safety-card,
body.ej-safety-journal .safety-card.safety-support {
  position: relative;
  margin: 36px 0 50px;
  padding: 34px 0 0;
  border: 0;
  border-top: 2px solid var(--safety-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.ej-safety-journal .safety-card.safety-support {
  border-top-color: var(--safety-caution);
}

body.ej-safety-journal .safety-card::before {
  content: "Vehicle readiness";
  position: absolute;
  top: -13px;
  left: 0;
  padding-right: 15px;
  color: var(--safety-rule);
  background: var(--journal-paper);
  font: 700 9px/1.4 var(--font-sans);
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.ej-safety-journal .safety-card.safety-navigation::before {
  content: "Navigation protocol";
}

body.ej-safety-journal .safety-card.safety-support::before {
  content: "Breakdown protocol";
  color: var(--safety-caution);
}

body.ej-safety-journal .article-body .safety-card h3 {
  max-width: 660px;
  margin: 0;
  color: var(--journal-ink);
  font: 500 clamp(27px, 3vw, 36px)/1.2 var(--font-serif);
  letter-spacing: -.025em;
}

body.ej-safety-journal .safety-card h3 > i {
  padding-top: 7px;
  color: var(--safety-rule);
  font-size: 21px;
}

body.ej-safety-journal .safety-support h3 > i {
  color: var(--safety-caution);
}

body.ej-safety-journal .safety-badge-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 25px 0 24px;
  padding: 0;
  border-block: 1px solid var(--safety-line);
}

body.ej-safety-journal .safety-support .safety-badge-row {
  border-bottom-color: #d9cdb4;
  border-top-color: #d9cdb4;
}

body.ej-safety-journal .safety-badge-row > span {
  min-height: 70px;
  padding: 16px 18px;
  border-right: 1px solid var(--safety-line);
  color: #41594b;
  font-size: 11px;
  line-height: 1.6;
}

body.ej-safety-journal .safety-support .safety-badge-row > span {
  border-right-color: #d9cdb4;
}

body.ej-safety-journal .safety-badge-row > span:first-child {
  padding-left: 0;
}

body.ej-safety-journal .safety-badge-row > span:last-child {
  padding-right: 0;
  border-right: 0;
}

body.ej-safety-journal .safety-badge-row i {
  color: var(--safety-rule);
  font-size: 16px;
}

body.ej-safety-journal .safety-support .safety-badge-row i {
  color: var(--safety-caution);
}

body.ej-safety-journal .article-body .safety-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 36px;
  margin: 28px 0 0;
  padding: 0;
}

body.ej-safety-journal .safety-card li,
body.ej-safety-journal .safety-card.safety-support li {
  min-height: 70px;
  padding: 15px 0 15px 25px;
  border-top: 1px solid #d9e0d4;
  color: #4b5c50;
  font-size: 13px;
  line-height: 1.75;
}

body.ej-safety-journal .safety-card.safety-support li {
  border-top-color: #e2d9c7;
}

body.ej-safety-journal .safety-card li::before {
  content: "—";
  top: 16px;
  left: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: var(--safety-rule);
}

body.ej-safety-journal .safety-card.safety-support li::before {
  border: 0;
  color: var(--safety-caution);
}

/* The two longer checklists are reading ledgers, not floating boxes. */
body.ej-safety-journal .article-body :is(.principle-list, .handover-checklist) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  margin: 25px 0 42px;
  padding: 20px 0;
  border-block: 1px solid var(--safety-line);
}

body.ej-safety-journal :is(.principle-list, .handover-checklist) li {
  min-height: 67px;
  padding: 14px 0 14px 25px;
  border-top: 1px solid #dbe2d6;
  color: #4b5c50;
  font-size: 13px;
  line-height: 1.75;
}

body.ej-safety-journal :is(.principle-list, .handover-checklist) li::before {
  content: "—";
  top: 15px;
  left: 0;
  color: var(--safety-rule);
  font-size: 14px;
}

/* Tables emphasize the safer response while remaining native and scrollable. */
body.ej-safety-journal .table-scroll {
  background: transparent;
}

body.ej-safety-journal .article-table thead th:last-child {
  background: var(--safety-rule-soft);
}

body.ej-safety-journal .article-table tbody td:last-child {
  background: rgba(218, 241, 222, .26);
  color: var(--journal-ink);
}

body.ej-safety-journal .article-table tbody tr {
  transition: background-color .2s ease;
}

@media (hover: hover) {
  body.ej-safety-journal .article-table tbody tr:hover {
    background: rgba(218, 241, 222, .22);
  }
}

body.page-article.ej-article-journal.ej-safety-journal .article-faq-block > h2::before {
  content: "13";
}

/* Hash navigation is represented by the active chapter; headings remain visually quiet. */
body.ej-safety-journal .article-body > h2[id]:focus {
  outline: 0;
}

@media (max-width: 900px) {
  body.ej-safety-journal .article-hero h1 {
    font-size: clamp(39px, 6vw, 53px);
  }

  body.ej-safety-journal .article-hero-visual img {
    object-position: 73% 28%;
  }
}

@media (max-width: 600px) {
  body.ej-safety-journal .article-hero h1 {
    font-size: clamp(33px, 9.2vw, 41px);
  }

  body.ej-safety-journal .article-note.daylight-note {
    padding: 45px 0 22px;
  }

  body.ej-safety-journal .safety-card,
  body.ej-safety-journal .safety-card.safety-support {
    margin-block: 31px 45px;
    padding-top: 30px;
  }

  body.ej-safety-journal .article-body .safety-card h3 {
    font-size: 27px;
  }

  body.ej-safety-journal .safety-badge-row {
    grid-template-columns: 1fr;
  }

  body.ej-safety-journal .safety-badge-row > span,
  body.ej-safety-journal .safety-badge-row > span:first-child,
  body.ej-safety-journal .safety-badge-row > span:last-child {
    min-height: 0;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid #d7e1d3;
  }

  body.ej-safety-journal .safety-support .safety-badge-row > span {
    border-bottom-color: #e2d9c7;
  }

  body.ej-safety-journal .safety-badge-row > span:last-child {
    border-bottom: 0;
  }

  body.ej-safety-journal .article-body .safety-card ul,
  body.ej-safety-journal .article-body :is(.principle-list, .handover-checklist) {
    grid-template-columns: 1fr;
  }

  body.ej-safety-journal .safety-card li,
  body.ej-safety-journal .safety-card.safety-support li,
  body.ej-safety-journal :is(.principle-list, .handover-checklist) li {
    min-height: 0;
  }
}

