/* Department of Jolly — field-notes/fn-ending.css — v1.0.1 — 2026-11-12 — Dropped the ending's own top rule (the article's sign-off rule already divides it) and closed up the gap above it; widened to the article column (1088px) so the ending shares its left edge. v1.0.0 — 2026-11-12 — The shared Field Note ending,
   "The Intelligence Continues": a short line, two (at most three) related Field Notes, one button and a link
   to the archive. Replaces the old Intelligence Continues tiles, the Open a Case band and the ten-card
   More Field Notes grid. The cards repeat the existing Field Note card rules, scoped to .fn-end, so the
   ending looks the same on every page whatever that page's own stylesheet holds. Markup is written by
   tools/build-fn-endings.mjs from field-notes/fn-endings.json. */

.fn-end { max-width: 1088px; margin: 40px auto 0; padding: 0 56px 8px; box-sizing: content-box; }
.fn-end-head { margin-bottom: 26px; }
.fn-end .k { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #224E3F; margin: 0 0 8px; }
.fn-end .sub { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; font-size: 21px; line-height: 1.4; color: #2a2a2a; margin: 0; max-width: none; }

/* Cards: the existing Field Note card, unchanged. */
.fn-end .files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fn-end .files.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fn-end .files.n1 { grid-template-columns: minmax(0, 478px); }
.fn-end .file { display: flex; flex-direction: column; position: relative; padding-top: 18px; color: #111; text-decoration: none; transition: transform 0.12s; }
.fn-end .file:hover { transform: translateY(-3px); }
.fn-end .file .ftab { position: absolute; top: 0; left: 0; height: 22px; width: 42%; border-radius: 6px 6px 0 0; }
.fn-end .file .fbody { border-radius: 0 6px 6px 6px; padding: 26px 24px 24px; flex: 1; display: flex; flex-direction: column; min-height: 260px; box-shadow: 0 1px 0 rgba(17,17,17,0.1); }
.fn-end .file .fimg { aspect-ratio: 3 / 2; margin: -10px -8px 18px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,0.4); }
.fn-end .file .fimg img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.fn-end .file:hover .fimg img { transform: scale(1.03); }
.fn-end .file .fno { font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(17,17,17,0.65); margin-bottom: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.fn-end .file .fno span { white-space: nowrap; }
.fn-end .file h3 { font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.fn-end .file p { font-size: 14px; line-height: 1.55; color: #2a2a2a; margin: 0 0 18px; }
.fn-end .file .fread { margin-top: auto; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #C62828; }

/* One button, one quiet link. */
.fn-end-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 32px; }
.fn-end-cta { background: #C62828; color: #F8F4EB; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 15px 26px; border-radius: 3px; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.fn-end-cta:hover, .fn-end-cta:focus-visible { background: #111; color: #F8F4EB; }
.fn-end-all { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #C62828; text-decoration: none; }
.fn-end-all:hover, .fn-end-all:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) { .fn-end .files.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .fn-end { margin-top: 32px; padding-left: 20px; padding-right: 20px; }
  .fn-end .sub { font-size: 19px; }
  .fn-end .files, .fn-end .files.n3, .fn-end .files.n1 { grid-template-columns: 1fr; }
  .fn-end .file .fbody { min-height: 0; }
  .fn-end-actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .fn-end-cta { text-align: center; white-space: normal; }
  .fn-end-all { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .fn-end .file, .fn-end .file .fimg img, .fn-end-cta { transition: none; } }
