/* Page-scoped editorial layout for the postmortem service. Article copy stays in Grav Markdown. */
.postmortem-article { --pm-ink: #17382f; --pm-green: #2f6c51; --pm-green-soft: #eaf2ed; --pm-line: #d5e0d9; --pm-warm: #faf5eb; color: #45544e; font-size: 16px; line-height: 1.72; }
.postmortem-article * { min-width: 0; }
.postmortem-article p { margin: 0 0 18px; }
.postmortem-article p:last-child { margin-bottom: 0; }
.postmortem-article h2 { margin: 0; color: var(--pm-ink); font-size: 35px; font-weight: 800; line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
.postmortem-article h3 { margin: 0 0 15px; color: var(--pm-ink); font-size: 20px; line-height: 1.38; }
.postmortem-article strong { color: var(--pm-ink); font-weight: 760; }
.pm-section { padding-block: 62px; border-bottom: 1px solid var(--pm-line); scroll-margin-top: 24px; }
.pm-section:first-child { padding-top: 8px; }
.pm-section:last-child { padding-bottom: 0; border-bottom: 0; }
.pm-section-heading { max-width: 900px; margin-bottom: 25px; }
.postmortem-article .pm-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; color: #ae4e40; font-size: 12px; font-weight: 800; letter-spacing: .085em; text-transform: uppercase; }
.pm-eyebrow::before { width: 24px; height: 3px; background: currentColor; content: ''; }
.pm-context { display: flex; gap: 38px; align-items: flex-start; max-width: 1060px; }
.pm-context-copy { flex: 1 1 0; width: auto; padding: 4px 0 4px 28px; border-left: 4px solid #ae4e40; }
.pm-context-copy h2 { margin-bottom: 24px; font-size: 35px; }
.pm-context-copy > p:first-of-type { color: var(--pm-ink); font-size: 18px; line-height: 1.62; }
.pm-context-path { flex: 0 0 320px; width: 320px; padding: 26px; color: #e5f3ea; background: var(--pm-ink); border-radius: 8px; }
.pm-context-path > p { margin-bottom: 20px; color: #b9d8c1; font-size: 12px; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.pm-context-path ol { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.pm-context-path li { position: relative; padding: 0 0 17px 25px; border-bottom: 1px solid rgba(222,241,228,.2); }
.pm-context-path li:last-child { padding-bottom: 0; border-bottom: 0; }
.pm-context-path li::before { position: absolute; top: 4px; left: 0; width: 9px; height: 9px; background: #b4d87c; border-radius: 50%; content: ''; }
.pm-context-path span { display: block; margin-bottom: 4px; color: #b9d8c1; font-size: 12px; }
.pm-context-path strong { display: block; color: #fff; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.pm-section-intro { max-width: 1010px; margin-bottom: 28px; }
.pm-section-intro > p:first-child { color: #344a42; font-size: 18px; line-height: 1.66; }
.pm-groups { display: grid; gap: 18px; }
.pm-group { padding: 27px 29px; background: #fff; border: 1px solid var(--pm-line); border-radius: 8px; }
.postmortem-article ul { margin: 19px 0 0; padding: 0; list-style: none; }
.postmortem-article ul li { position: relative; padding: 11px 0 11px 29px; border-bottom: 1px solid #e1e9e3; }
.postmortem-article ul li:last-child { border-bottom: 0; }
.postmortem-article ul li::before { position: absolute; top: 18px; left: 1px; width: 9px; height: 9px; background: var(--pm-green); border-radius: 50%; box-shadow: 0 0 0 4px var(--pm-green-soft); content: ''; }
.pm-purpose .pm-groups { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.pm-purpose .pm-group { min-height: 100%; padding-top: 30px; border-top: 4px solid var(--pm-green); }
.pm-purpose .pm-group-2 { border-top-color: #b97320; background: #fffaf1; }
.pm-purpose .pm-group-3 { border-top-color: #aa4e41; background: #fff7f5; }
.pm-purpose .pm-group h3 { min-height: 56px; }
.pm-safety .pm-section-intro { max-width: none; padding: 24px 27px; color: #513c1a; background: #fff8e9; border: 1px solid #ecd9ad; border-left: 4px solid #c18a2b; border-radius: 0 8px 8px 0; }
.pm-safety .pm-section-intro > p:first-child { color: #513c1a; font-size: 17px; }
.pm-safety .pm-groups { grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); }
.pm-safety .pm-group-2 { background: #f4f8f4; border-color: #d4e2d5; }
.pm-dispatch .pm-section-intro { max-width: none; }
.pm-dispatch .pm-section-intro > p:first-child { max-width: 950px; }
.pm-dispatch .pm-section-intro > ol { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; margin: 30px 0 0; padding: 0; list-style: none; border: 1px solid var(--pm-line); border-radius: 8px; overflow: hidden; background: #fff; counter-reset: pm-step; }
.pm-dispatch .pm-section-intro > ol > li { counter-increment: pm-step; min-height: 208px; padding: 72px 19px 23px; border-right: 1px solid var(--pm-line); font-size: 14px; line-height: 1.55; }
.pm-dispatch .pm-section-intro > ol > li:last-child { border-right: 0; }
.pm-dispatch .pm-section-intro > ol > li::before { position: absolute; top: 24px; left: 19px; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--pm-green); border-radius: 50%; font-size: 12px; font-weight: 800; content: counter(pm-step, decimal-leading-zero); }
.pm-dispatch .pm-section-intro > ol > li strong { display: block; margin-bottom: 8px; font-size: 16px; line-height: 1.34; }
.pm-diagnostics .pm-section-intro { max-width: none; }
.postmortem-article table { width: 100%; margin: 28px 0 0; border: 1px solid var(--pm-line); border-spacing: 0; border-collapse: separate; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px rgba(21,58,47,.06); font-size: 15px; line-height: 1.5; }
.postmortem-article th { padding: 15px 18px; color: #fff; background: var(--pm-green); font-size: 12px; font-weight: 800; text-align: left; }
.postmortem-article td { padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--pm-line); }
.postmortem-article tbody tr:nth-child(even) td { background: #f7faf7; }
.postmortem-article tbody td:first-child { width: 31%; color: var(--pm-ink); font-weight: 760; }
.pm-diagnostics .pm-groups { grid-template-columns: repeat(3,minmax(0,1fr)); }
.pm-diagnostics .pm-group { background: #f8faf8; }
.pm-areas .pm-section-intro { max-width: none; }
.pm-areas .pm-section-intro > ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 24px 0 27px; }
.pm-areas .pm-section-intro > ul li { min-height: 132px; padding: 23px 22px 22px; background: #f7faf7; border: 1px solid var(--pm-line); border-radius: 8px; }
.pm-areas .pm-section-intro > ul li::before { position: static; display: inline-block; margin: 0 0 14px; box-shadow: none; }
.pm-areas .pm-section-intro > ul li strong { display: block; margin-bottom: 8px; }
.pm-areas .pm-section-intro > p:last-child { padding: 20px 23px; color: #234538; background: #edf4ef; border-left: 4px solid var(--pm-green); border-radius: 0 8px 8px 0; }
.pm-faq { padding: 0 27px; background: #fff; border: 1px solid var(--pm-line); border-radius: 8px; }
.pm-faq[open] { border-left: 3px solid var(--pm-green); }
.pm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer; }
.pm-faq summary::-webkit-details-marker { display: none; }
.pm-faq summary:hover h3 { color: var(--pm-green); }
.pm-faq summary h3 { margin: 0; font-size: 18px; }
.pm-faq-sign { flex: 0 0 25px; width: 25px; height: 25px; display: grid; place-items: center; color: var(--pm-green); background: var(--pm-green-soft); border-radius: 50%; font-size: 20px; line-height: 1; }
.pm-faq-sign::before { content: '+'; }
.pm-faq[open] .pm-faq-sign::before { content: '−'; }
.pm-answer { padding: 0 46px 25px 0; }
.pm-conclusion { padding: 38px 40px; color: #e4f0e8; background: var(--pm-ink); border: 1px solid #234e40; border-radius: 8px; }
.pm-conclusion .pm-section-heading h2 { color: #fff; }
.pm-conclusion .pm-eyebrow { color: #bddb9a; }
.pm-conclusion .pm-section-intro { max-width: 1000px; }
.pm-conclusion .pm-section-intro > p:first-child { color: #fff; }
@media (max-width: 1040px) {
  .pm-purpose .pm-groups, .pm-diagnostics .pm-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pm-dispatch .pm-section-intro > ol { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .pm-dispatch .pm-section-intro > ol > li { border-right: 1px solid var(--pm-line); border-bottom: 1px solid var(--pm-line); }
  .pm-dispatch .pm-section-intro > ol > li:nth-child(3n) { border-right: 0; }
  .pm-dispatch .pm-section-intro > ol > li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 720px) {
  .postmortem-article { font-size: 15px; }
  .postmortem-article h2 { font-size: 27px; }
  .postmortem-article h3 { font-size: 19px; }
  .pm-section { padding-block: 42px; }
  .pm-context { flex-direction: column; gap: 24px; }
  .pm-context-copy { width: 100%; padding: 0 0 0 20px; }
  .pm-context-path { flex-basis: auto; width: 100%; }
  .pm-context-copy h2 { font-size: 29px; }
  .pm-context-copy > p:first-of-type, .pm-section-intro > p:first-child { font-size: 16px; }
  .pm-context-path { padding: 22px 20px; }
  .pm-purpose .pm-groups, .pm-safety .pm-groups, .pm-diagnostics .pm-groups, .pm-areas .pm-section-intro > ul { grid-template-columns: 1fr; }
  .pm-purpose .pm-group h3 { min-height: 0; }
  .pm-group { padding: 23px 20px; }
  .pm-safety .pm-section-intro { padding: 20px; }
  .pm-dispatch .pm-section-intro > ol { grid-template-columns: 1fr; gap: 0; }
  .pm-dispatch .pm-section-intro > ol > li, .pm-dispatch .pm-section-intro > ol > li:nth-child(n) { min-height: 0; padding: 23px 20px 23px 72px; border-right: 0; border-bottom: 1px solid var(--pm-line); }
  .pm-dispatch .pm-section-intro > ol > li:last-child { border-bottom: 0; }
  .pm-dispatch .pm-section-intro > ol > li::before { top: 23px; left: 20px; }
  .postmortem-article table { display: block; max-width: 100%; overflow-x: auto; font-size: 14px; }
  .postmortem-article th, .postmortem-article td { min-width: 180px; padding: 14px 15px; }
  .pm-areas .pm-section-intro > ul li { min-height: 0; }
  .pm-faq { padding: 0 20px; }
  .pm-faq summary { gap: 12px; }
  .pm-faq summary h3 { font-size: 17px; }
  .pm-answer { padding-right: 0; }
  .pm-conclusion { padding: 29px 22px; }
}
