/* How we check information — the policy as a transparent working checklist (rebuilt 2026-09-29).
   The three labels hang from one string as paper tags, each with its own mark: a checked stamp,
   a gold rosette, and a crossed-out stamp. The work itself is a clipboard of five checks; each box
   inks its tick as it scrolls into view, and a check unfolds when opened. Scoped to body.p-editorial. */

.p-editorial main { overflow-x: clip; }
.p-editorial .ep-open .lede { color: var(--navy); font-size: clamp(18px, 1.6vw, 20.5px); max-width: 26em; }
.p-editorial .ep-review { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.p-editorial .ep-review .review-status { margin: 0; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255, 252, 245, .85); border: 1px solid rgba(122, 91, 19, .22); color: var(--navy); font-weight: 700; }
.p-editorial .ep-review .btn { min-height: 50px; padding-inline: 24px; font-size: 16.5px; }

/* ---------- the three tags on a string ---------- */
.p-editorial .ep-labels { background: var(--cream); padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.p-editorial .ep-head { text-align: center; }
.p-editorial .ep-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); }
.p-editorial .ep-line { position: relative; height: 34px; margin: 18px auto -10px; max-width: 1040px; }
.p-editorial .ep-line::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; border-bottom: 2px solid rgba(122, 91, 19, .55); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.p-editorial .ep-tags { display: grid; align-items: start; gap: 26px; grid-template-columns: minmax(0, 1fr); max-width: 1040px; margin: 0 auto; }
@media (min-width: 820px) { .p-editorial .ep-tags { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); } }
@media (max-width: 819px) { .p-editorial .ep-line { display: none; } .p-editorial .ep-tags { margin-top: 26px; } .p-editorial .ep-hang::before { top: 0; height: 24px; } }

.p-editorial .ep-tag { position: relative; margin: 0; padding: 50px clamp(20px, 2.4vw, 30px) 28px; background: var(--paper); color: var(--text);
  clip-path: polygon(16% 0, 84% 0, 100% 9%, 100% 100%, 0 100%, 0 9%); border-radius: 0 0 14px 14px;
  height: 100%; }
.p-editorial .ep-hang { position: relative; filter: drop-shadow(0 16px 18px rgba(60, 40, 10, .16)) drop-shadow(0 1px 1px rgba(60, 40, 10, .1)); transform-origin: 50% -40px; }
.p-editorial .ep-hang::before { /* the tag's string, tied to the line above */ content: ""; position: absolute; left: 50%; top: -38px; width: 2px; height: 62px; margin-left: -1px; background: rgba(122, 91, 19, .55); z-index: 1; }
.p-editorial .ep-hang--listing { rotate: -1.6deg; }
.p-editorial .ep-hang--pick { rotate: 1deg; margin-top: 10px; }
.p-editorial .ep-hang--none { rotate: -.6deg; }
.p-editorial .ep-tag--pick { background: #fbf0cf; }
.p-editorial .ep-tag--none { background: var(--blue-soft); }
.p-editorial .ep-hole { position: absolute; top: 16px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 3px #e2cf9f, inset 0 2px 3px rgba(60, 40, 10, .25); }
.p-editorial .ep-tag--none .ep-hole { box-shadow: inset 0 0 0 3px #c9d3e3, inset 0 2px 3px rgba(60, 40, 10, .25); }
.p-editorial .ep-tag h3 { display: flex; align-items: center; min-height: 58px; margin: -10px 0 12px; font-size: clamp(24px, 2.2vw, 28px); padding-right: 64px; }
.p-editorial .ep-tag p { margin: 0; font-size: 17px; line-height: 1.65; }

/* stamps and the rosette (marks only; the heading carries the meaning) */
.p-editorial .ep-stamp, .p-editorial .ep-rosette { position: absolute; top: 40px; right: 18px; display: grid; place-items: center; width: 58px; height: 58px; }
.p-editorial .ep-stamp { border-radius: 50%; border: 3px double var(--sage-ink); color: var(--sage-ink); rotate: -12deg; opacity: .9; }
.p-editorial .ep-stamp svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.p-editorial .ep-stamp--no { border-color: var(--brick-ink); color: var(--brick-ink); rotate: 10deg; }
.p-editorial .ep-stamp--no svg { width: 34px; height: 34px; stroke-width: 2.4; }
.p-editorial .ep-rosette { border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 54%, #e8bf62 55% 62%, var(--gold) 63%); box-shadow: 0 0 0 3px #fbf0cf, 0 0 0 5px rgba(122, 91, 19, .35), 0 6px 10px -4px rgba(60, 40, 10, .4); color: var(--navy); }
.p-editorial .ep-rosette::before, .p-editorial .ep-rosette::after { content: ""; position: absolute; top: 44px; width: 16px; height: 34px; background: var(--brick); z-index: -1; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.p-editorial .ep-rosette::before { left: 12px; rotate: 14deg; }
.p-editorial .ep-rosette::after { right: 12px; rotate: -14deg; background: var(--navy-soft); }
.p-editorial .ep-rosette svg { width: 28px; height: 28px; fill: currentColor; }

/* ---------- the clipboard of checks ---------- */
.p-editorial .ep-work { background: var(--cream); padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.p-editorial .ep-clipboard { position: relative; max-width: 820px; margin: 0 auto; padding: 34px clamp(10px, 2.2vw, 22px) clamp(12px, 2.2vw, 22px); border-radius: 26px;
  background: linear-gradient(160deg, #c99a58, #b27f3f 60%, #a57335); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(60, 40, 10, .2), var(--shadow-lift); }
.p-editorial .ep-clip { position: absolute; top: -18px; left: 50%; width: 170px; height: 52px; margin-left: -85px; z-index: 2; border-radius: 12px 12px 18px 18px;
  background: linear-gradient(180deg, #e9ecef, #b9c0c8 55%, #9aa3ad); box-shadow: 0 6px 10px -4px rgba(20, 32, 58, .5), inset 0 1px 0 #fff; }
.p-editorial .ep-clip::before { content: ""; position: absolute; top: -14px; left: 50%; width: 64px; height: 28px; margin-left: -32px; border: 6px solid #a9b1ba; border-bottom: 0; border-radius: 30px 30px 0 0; }
.p-editorial .ep-clip::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 12px; height: 4px; border-radius: 4px; background: rgba(20, 32, 58, .18); }
.p-editorial .ep-sheet { position: relative; background: var(--paper); border-radius: 8px; padding: clamp(40px, 5vw, 56px) clamp(16px, 4vw, 48px) clamp(24px, 4vw, 40px); box-shadow: 0 2px 3px rgba(60, 40, 10, .2); }
.p-editorial .ep-sheet::before { /* the sheet beneath */ content: ""; position: absolute; inset: 6px -4px -6px 4px; background: #f3ead4; border-radius: 8px; z-index: -1; rotate: .8deg; }
.p-editorial .ep-sheet-head { text-align: center; margin-bottom: 20px; }
.p-editorial .ep-sheet-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); }
.p-editorial .ep-checks { list-style: none; margin: 0; padding: 0; counter-reset: ep; }
.p-editorial .ep-checks > li { border-top: 1.5px dashed rgba(122, 91, 19, .3); }
.p-editorial .ep-checks > li:last-child { border-bottom: 1.5px dashed rgba(122, 91, 19, .3); }
.p-editorial details.ep-check { margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.p-editorial details.ep-check > summary { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 6px; border-radius: 12px; font-family: var(--f-display); font-weight: 600; font-size: clamp(18.5px, 1.8vw, 21px); color: var(--navy); }
.p-editorial details.ep-check > summary:hover { background: rgba(243, 229, 192, .45); }
.p-editorial details.ep-check > summary:focus-visible { outline: 3px solid var(--gold-deep, #b8862b); outline-offset: 2px; }
.p-editorial details.ep-check > summary::after { content: "+"; margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); font: 600 22px/1 var(--f-display); transition: rotate .3s var(--ease), background .2s; }
.p-editorial details.ep-check[open] > summary::after { rotate: 45deg; background: var(--gold); color: var(--navy); }
.p-editorial .ep-sum { flex: 1 1 auto; min-width: 0; }
.p-editorial .ep-sum::before { counter-increment: ep; content: counter(ep) ". "; font-family: var(--f-hand); font-weight: 400; color: var(--gold-ink); font-size: 1.1em; }
.p-editorial .ep-box { position: relative; flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; border: 2.5px solid var(--navy); background: #fff; rotate: -3deg; }
.p-editorial .ep-box svg { width: 30px; height: 30px; margin: -6px -8px 0 0; fill: none; stroke: var(--sage-ink); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.p-editorial details.ep-check .accordion-body { padding: 0 6px 22px 50px; }
.p-editorial details.ep-check .accordion-body p { font-size: 17px; line-height: 1.7; color: var(--text); margin: 0 0 12px; max-width: 60ch; }
.p-editorial details.ep-check .accordion-body .btn { margin-top: 6px; }
@media (max-width: 520px) {
  .p-editorial details.ep-check .accordion-body { padding-left: 6px; }
  .p-editorial .ep-clip { width: 130px; margin-left: -65px; }
}

/* ---------- meaningful movement ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the tags swing on their string, then hang still; hovering nudges one */
  @keyframes ep-swing { 0% { transform: rotate(-7deg); opacity: 0; } 40% { transform: rotate(4deg); opacity: 1; } 70% { transform: rotate(-2deg); } 100% { transform: none; opacity: 1; } }
  .p-editorial .ep-hang { animation: ep-swing 1.2s var(--ease) both; }
  .p-editorial .ep-hang--pick { animation-delay: .15s; }
  .p-editorial .ep-hang--none { animation-delay: .3s; }
  .p-editorial .ep-tag { transition: translate .4s var(--spring); }
  .p-editorial .ep-hang:hover .ep-tag { translate: 0 -4px; }
  /* stamps land a beat after the tags */
  @keyframes ep-stamp { 0% { transform: scale(1.8); opacity: 0; } 60% { transform: scale(.92); opacity: 1; } 100% { transform: none; opacity: 1; } }
  .p-editorial :is(.ep-stamp, .ep-rosette) { animation: ep-stamp .5s .9s var(--spring) both; }
  .p-editorial .ep-tag--pick .ep-rosette { animation-delay: 1.05s; }
  .p-editorial .ep-tag--none .ep-stamp { animation-delay: 1.2s; }
  /* a check unfolds when opened */
  @keyframes ep-unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .p-editorial details.ep-check[open] > .accordion-body { animation: ep-unfold .4s var(--ease); }
  /* each box inks its tick as it scrolls into view (where the browser supports view timelines;
     elsewhere every tick is simply drawn) */
  @supports (animation-timeline: view()) {
    @keyframes ep-tick { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
    @keyframes ep-box { from { background: #fff; } to { background: var(--sage-soft); } }
    .p-editorial .ep-box svg { animation: ep-tick linear both; animation-timeline: view(); animation-range: entry 90% cover 38%; }
    .p-editorial .ep-box { animation: ep-box linear both; animation-timeline: view(); animation-range: entry 90% cover 38%; }
  }
}
@media print { .p-editorial .ep-clipboard { background: none; box-shadow: none; padding: 0; } .p-editorial .ep-clip { display: none; } .p-editorial .ep-hang { filter: none; } .p-editorial .ep-tag { clip-path: none; border: 1px solid #ccc; } }
