/* CaseModel website: css/p-security.css
   Security and custody: the head without a film, the custody log as a numbered chain, six protections, and privilege. */

/* ---- the head: the promise on the left, what it means on the right ---- */
.aud h1 { font-size: clamp(38px, 4.6vw, 66px); line-height: 1.02; letter-spacing: -.035em; }
.ph-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
.ph-side .lede { margin-top: 0; }
@media (max-width: 900px) { .ph-in { grid-template-columns: 1fr; } }

/* ---- the custody log: each line a numbered step, joined to the next, with its fingerprint ---- */
.lg-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lg-wrap { padding: clamp(18px, 2.6vw, 34px); }
.lg-head { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; padding: 0 0 10px 58px; font: 700 12.5px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.lg { list-style: none; margin: 0; padding: 0; counter-reset: lg; }
.lg > li { position: relative; counter-increment: lg; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 8px 24px; align-items: center; min-height: 64px; padding: 12px 0 12px 58px; border-top: 1px solid var(--line-2); transition: background .3s var(--ease); }
.lg > li:last-child { border-bottom: 1px solid var(--line-2); }
.lg > li::before { content: counter(lg); position: absolute; left: 0; top: 50%; margin-top: -19px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 16px/1 var(--display); z-index: 1; transition: background .3s var(--ease); }
.lg > li::after { content: ''; position: absolute; left: 18px; top: calc(50% + 19px); height: calc(100% - 38px + 2px); width: 2px; background: var(--edge); }
.lg > li:last-child::after { display: none; }
.lg-t { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 17px; line-height: 1.4; color: var(--text); }
.lg-d { border-radius: 3px; transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease); }
.lg > li.edited .lg-d { padding: 0 3px; background: var(--red-bg); color: #7a1f10; font-weight: 700; box-shadow: inset 0 -2px 0 var(--red); }
.lg-btn { min-height: 44px; }
.lg-f b { display: block; font: 700 19px/1.1 var(--display); letter-spacing: .02em; color: var(--navy); }
.lg-f small { display: block; margin-top: 4px; font: 600 13.5px/1.2 var(--display); color: var(--navy); }
.lg > li.bad { background: #fff6f3; }
.lg > li.bad::before { background: var(--red); }
.lg > li.bad .lg-f b { color: var(--red-d); }
.lg > li.bad .lg-f small { color: var(--text-3); text-decoration: line-through; text-decoration-color: transparent; }
@media (max-width: 700px) {
  .lg-head { display: none; }
  .lg > li { grid-template-columns: 1fr; padding-left: 52px; }
  .lg-t { font-size: 16px; }
}

/* ---- six protections, ruled ---- */
.guard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 34px; }
.guard > div { padding-top: 22px; border-top: 2px solid var(--navy); }
.guard h3 { font-size: 20px; margin-bottom: 10px; }
.guard p { margin: 0; font-size: 16.5px; color: var(--text-2); }
@media (max-width: 960px) { .guard { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .guard { grid-template-columns: 1fr; gap: 28px; } }

/* ---- privilege: one statement ---- */

.priv h2 { font-size: clamp(30px, 3.4vw, 48px); max-width: 18em; }
.priv > p:last-child { margin-top: 22px; font-size: clamp(19px, 1.5vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 36em; }
