/* Detail pages (e/*.html): only what the blocks do not cover. */
@layer pages {
  .ent .pager small { font-size: 14px; }
  /* Short breadcrumb labels (Map, Cars) keep a 44 px wide target. */
  @media (max-width: 899px) { .crumbs a { min-width: 44px; justify-content: center; } }
  /* A long entry title in the breadcrumb wraps as text after its separator. */
  .crumbs ol { display: block; }
  .crumbs li { display: inline; }
  .crumbs li:last-child span { line-height: 1.4; }
  .ent { padding-bottom: 24px; }
  /* A hidden story word in the text is a control (tap shows it): a 44 px tall target without moving the lines. */
  #main .redact:not(.is-revealed) { padding-block: 14px; background-clip: content-box; }
  .ent-main, .ent-seal, .ent > .ent-act, .ent > .pager { max-width: 760px; }
  .ent-main > .status:first-child { margin-top: 4px; }
  .ent .lede { max-width: none; }
  .ent-codes { display: grid; gap: 12px; margin-top: 24px; }
  .ent .sec { margin-top: 40px; }
  .ent-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
  .ent-act .bm { margin-top: 0; }
  .ent-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ac); font-weight: 600; text-decoration: none; }
  .ent-back::before { content: "\2190"; }
  .ent-back:hover { text-decoration: underline; text-underline-offset: 4px; }
  .ent .sources { margin-top: 16px; }
  .ent-cover { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 16px 18px; border-radius: var(--r3); background: var(--s1); color: var(--tx2); }
  .ent-seal [data-sealed-slot] h3 { font: 800 28px/1.1 var(--disp); text-transform: uppercase; margin-top: 16px; }
  .ent-seal [data-sealed-slot] > * + * { margin-top: 16px; }
  @media (min-width: 900px) {
    .ent .sec { margin-top: 56px; }
    /* Key facts sit beside the text; the last row (1fr) takes up their extra height, so the text keeps its spacing. */
    .ent-main { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-rows: repeat(10, auto) 1fr; column-gap: 56px; align-items: start; }
    .ent-main > * { grid-column: 1; }
    .ent-main > .ent-facts { grid-column: 2; grid-row: 1 / -1; margin-top: 20px; }
    .ent-main > .ent-facts .sec-h h2 { font-size: 34px; }
    /* Code rows sit in the text column here, which is too narrow for the four-column cheats table: keep the stacked form. */
    .ent-codes .cheat { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; padding: 16px; }
    .ent-codes .cheat h3, .ent-codes .cheat h4 { grid-column: 1; grid-row: 1; align-self: center; }
    .ent-codes .cheat .copy { grid-column: 2; grid-row: 1; }
    .ent-codes .cheat .does, .ent-codes .cheat .nocode, .ent-codes .cheat .unl, .ent-codes .cheat .seq { grid-column: 1 / -1; grid-row: auto; }
    .ent-codes .cheat .does { color: var(--tx); font-size: 16px; }
    .ent-codes .cheat .seq { margin-top: 6px; }
  }
}
