/* All the Pieces Matter: an unofficial guide to The Wire. The detail's case files:
   navy headers, manila folders, a corkboard, typewriter text and handwritten index cards. */
:root {
  --navy: #1c2330;
  --navy-2: #2b3346;
  --paper: #e9e4d8;
  --sheet: #fbf9f3;
  --manila: #e3c98f;
  --manila-2: #d7c08a;
  --cork: #a87b50;
  --frame: #5b3a22;
  --red: #b3262c;
  --blue: #1e3a5f;
  --pin-blue: #2f6fb5;
  --yellow: #f2c94c;
  --ink: #1c2330;
  --muted: #4f596d;
  --line: #c4bba8;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --type: 'Special Elite', 'Courier New', monospace;
  --hand: 'Permanent Marker', 'Comic Sans MS', cursive;
  --head: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  --body: 'Libre Franklin', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
a { color: var(--blue); }
a:hover { color: var(--red); }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; padding: 8px 12px; background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* header */
.top { background: var(--navy); color: var(--paper); }
.top__strip { border-bottom: 1px solid #34405a; }
.top__strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 9px; padding-bottom: 9px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #9fb0c6; }
.top__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 22px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--paper); text-decoration: none; }
.brand:hover { color: #fff; }
.brand__stamp { padding: 5px 11px; border: 3px solid #d9453d; color: #ff6a5e; font: 700 14px var(--head); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-4deg); white-space: nowrap; }
.brand__name { font: 700 clamp(30px, 4.6vw, 44px)/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.brand__tag { margin: 0; font: 400 15px var(--type); color: #c9d3e0; }
.navwrap { border-top: 1px solid #34405a; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 13px 11px; color: #c9d3e0; text-decoration: none; font: 600 14.5px var(--head); letter-spacing: .1em; text-transform: uppercase; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--yellow); }

/* type */
.main { padding-top: 40px; padding-bottom: 72px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: uppercase; line-height: .98; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(48px, 8vw, 84px); }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
.eyebrow { margin: 0 0 10px; font: 500 13px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.intro { max-width: 680px; margin: 16px 0 30px; font-size: 18px; color: #3c4658; }
.source { margin-top: 34px; font-size: 13px; color: var(--muted); }
.sechead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 22px; }
.sechead span { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
mark { background: var(--yellow); color: inherit; padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.btn { display: inline-block; padding: 11px 16px; background: var(--navy); color: #fff; text-decoration: none; font: 600 14px var(--head); letter-spacing: .12em; text-transform: uppercase; }
.btn:hover { background: var(--red); color: #fff; }

/* corkboard and index cards */
.cork { background-color: var(--cork); background-image: radial-gradient(rgba(70,40,15,.35) 1px, transparent 1.4px), radial-gradient(rgba(255,230,190,.25) 1px, transparent 1.4px); background-size: 9px 9px, 13px 13px; background-position: 0 0, 4px 6px;
  border: 12px solid var(--frame); padding: 28px 18px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px 22px; box-shadow: 0 14px 26px rgba(28,35,48,.3); }
.crew { display: flex; flex-direction: column; align-items: center; }
.crew__label { margin: 0 0 18px; padding: 5px 12px; background: var(--sheet); font: 400 21px var(--hand); text-transform: none; transform: rotate(-2deg); box-shadow: 0 3px 6px rgba(0,0,0,.25); }
.crew:nth-child(even) .crew__label { transform: rotate(2deg); }
.crew__head { display: flex; justify-content: center; }
.crew__rest { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px; }
.string { display: block; width: 3px; height: 22px; background: var(--red); }
.crew__head + .string + .crew__rest { position: relative; padding-top: 14px; border-top: 3px solid var(--red); width: 92%; }
.crew--police .string, .crew--police .crew__head + .string + .crew__rest { background: none; border-color: var(--pin-blue); }
.crew--police .string { background: var(--pin-blue); }
.crew--brass .string { background: #6b4fa0; }
.crew--brass .crew__head + .string + .crew__rest { border-color: #6b4fa0; }
.crew--other .string { background: #2e6b4f; }
.crew--other .crew__head + .string + .crew__rest { border-color: #2e6b4f; }
.crew .btn { margin-top: 24px; }

.ic { position: relative; width: 150px; background: var(--sheet); background-image: repeating-linear-gradient(transparent 0 21px, #c7d5e6 21px 22px); border-top: 3px solid #d9453d; box-shadow: 0 4px 8px rgba(0,0,0,.25); transform: rotate(-1.5deg); scroll-margin-top: 20px; }
.ic:nth-child(3n+2) { transform: rotate(1.8deg); }
.ic:nth-child(3n) { transform: rotate(-.6deg); }
.ic--big { width: 200px; }
.ic--police { border-top-color: var(--pin-blue); background-color: #eef4fb; }
.ic--brass { border-top-color: #6b4fa0; }
.ic--other { border-top-color: #2e6b4f; }
.ic[open] { z-index: 2; transform: none; box-shadow: 0 10px 20px rgba(0,0,0,.4); outline: 2px solid var(--ink); }
.ic:target { outline: 3px solid var(--yellow); }
.ic summary { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px 12px; text-align: center; cursor: pointer; list-style: none; }
.ic summary::-webkit-details-marker { display: none; }
.ic__pin { position: absolute; top: -8px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #d9453d; box-shadow: 0 2px 2px rgba(0,0,0,.4); }
.ic--police .ic__pin { background: var(--pin-blue); }
.ic--brass .ic__pin { background: #6b4fa0; }
.ic--other .ic__pin { background: var(--yellow); }
.ic__name { font: 400 19px/1.15 var(--hand); }
.ic--big .ic__name { font-size: 22px; }
.ic__role { font: 400 13px/1.35 var(--type); color: #2c3445; }
.ic__back { padding: 0 12px 14px; border-top: 1px dashed var(--line); background: var(--sheet); }
.ic__back dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 10px 0 0; font: 400 12.5px/1.45 var(--mono); }
.ic__back dt { color: var(--muted); }
.ic__back dd { margin: 0; }
.ic__fate { margin: 10px 0 0; font: 400 13px/1.45 var(--type); }
.ic__fate span { display: block; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; }
.tabs a { padding: 9px 14px 7px; background: var(--manila); color: var(--ink); text-decoration: none; border-radius: 6px 6px 0 0; font: 600 14px var(--head); letter-spacing: .08em; text-transform: uppercase; box-shadow: inset 0 -3px 0 rgba(0,0,0,.08); }
.tabs a:hover { background: var(--yellow); }
.cork-season { margin-bottom: 54px; scroll-margin-top: 20px; }
.cork-season > h2, .drawer > h2 { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.cork-season > h2 span, .drawer > h2 span { font: 500 12px var(--mono); letter-spacing: .14em; color: var(--red); }

/* home */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 40px; align-items: center; margin-bottom: 64px; }
.hero h1 { font-size: clamp(46px, 6.6vw, 76px); line-height: 1.04; }
.hero h1 mark { padding: 0 6px; }
.today { display: flex; flex-direction: column; gap: 4px; max-width: 520px; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--line); border-top: 6px solid var(--blue); }
.today .eyebrow { margin: 0; color: var(--blue); }
.today a { color: var(--ink); text-decoration: none; }
.today a:hover { color: var(--red); }
.today b { font: 700 30px/1.05 var(--head); text-transform: uppercase; }
.today__meta { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.today__p { margin: 4px 0 0; font: 400 15px/1.5 var(--type); }
.cork--home { grid-template-columns: 1fr; }
.cork--home .crew__label { font-size: 22px; }
.cases { margin-bottom: 64px; }
.cases__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.case { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.case__tab { align-self: flex-start; padding: 6px 14px 4px; background: var(--manila); border-radius: 6px 6px 0 0; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.case__body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 170px; padding: 18px; background: var(--manila); border-radius: 0 6px 6px 6px; box-shadow: 0 6px 12px rgba(28,35,48,.15); }
.case:nth-child(even) .case__tab, .case:nth-child(even) .case__body { background: var(--manila-2); }
.case b { font: 700 28px/1 var(--head); text-transform: uppercase; }
.case span span, .case__body > span { font: 400 15px/1.45 var(--type); }
.case em { margin-top: auto; font: normal 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #6a4f1d; }
.case:hover .case__body { box-shadow: 0 10px 18px rgba(28,35,48,.25); transform: translateY(-2px); }
.jump { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: center; margin-bottom: 64px; padding: clamp(22px, 4vw, 36px); background: var(--navy); color: var(--paper); }
.jump .eyebrow { color: var(--yellow); }
.jump h2 { font-size: clamp(36px, 5vw, 48px); }
.jump p { color: #c9d3e0; }
.jump .five { padding: 0; background: none; border: 0; }
.exhibits { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.ex { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--sheet); border: 1px solid var(--line); border-top: 6px solid var(--red); color: var(--ink); text-decoration: none; }
.ex span { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.ex b { font: 700 26px/1.05 var(--head); text-transform: uppercase; }
.ex em { font-style: normal; font-size: 15px; line-height: 1.5; color: #3c4658; }
.ex--b { border-top-color: var(--blue); } .ex--b span { color: var(--blue); }
.ex--c { border-top-color: #b07a1a; } .ex--c span { color: #8a5f12; }
.ex--d { border-top-color: #2e6b4f; } .ex--d span { color: #2e6b4f; }
.ex--e { border-top-color: var(--navy); } .ex--e span { color: var(--muted); }
.ex--f { border-top-color: #6b4fa0; } .ex--f span { color: #6b4fa0; }
.ex:hover { box-shadow: 0 8px 16px rgba(28,35,48,.15); }

/* jump the five */
.five { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; align-items: center; padding: clamp(20px, 4vw, 34px); background: var(--navy); color: var(--paper); }
.five__in { display: flex; flex-direction: column; gap: 10px; }
.five label { font: 600 14px var(--head); letter-spacing: .12em; text-transform: uppercase; color: #9fb0c6; }
.five input { min-height: 54px; width: 100%; padding: 0 16px; border: 2px solid #9fb0c6; background: #101622; color: #fff; font: 500 24px var(--mono); letter-spacing: .1em; }
.five__how { margin: 0; color: #c9d3e0; font-size: 15px; }
.five__out { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.beeper { width: 100%; max-width: 360px; padding: 18px; background: var(--navy-2); border-radius: 22px; box-shadow: inset 0 0 0 3px #45506a; }
.beeper__lcd { display: block; min-height: 50px; padding: 12px 14px; background: #a8b98a; border-radius: 6px; box-shadow: inset 0 2px 6px rgba(0,0,0,.35); font: 600 clamp(22px, 5vw, 30px) var(--mono); letter-spacing: .1em; color: #1f2a14; text-align: right; overflow-wrap: anywhere; }
.beeper span { display: block; margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #9fb0c6; text-align: right; }
.pad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 230px; }
.pad span { padding: 9px 0; border-radius: 8px; background: var(--navy-2); text-align: center; font: 600 19px var(--mono); }
.pad span:empty { background: none; }
.pad .on { background: var(--yellow); color: var(--ink); }

/* episode index */
.filter { display: flex; flex-direction: column; gap: 6px; max-width: 520px; margin-bottom: 22px; }
.filter label { font: 600 13px var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.filter input { min-height: 50px; padding: 0 14px; border: 2px solid var(--ink); background: var(--sheet); font: 400 16px var(--mono); color: var(--ink); }
.drawer { margin-bottom: 44px; scroll-margin-top: 20px; }
.drawer[hidden] { display: none; }
.files { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.fi[hidden] { display: none; }
.fi a { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 2px 18px; padding: 14px 4px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; }
.fi a:hover { background: var(--sheet); }
.fi__no { font: 600 13px var(--mono); color: var(--red); padding-top: 5px; }
.fi b { font: 700 24px/1.1 var(--head); text-transform: uppercase; }
.fi__d { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; padding-top: 6px; }
.fi__p { grid-column: 2 / 4; font: 400 15px/1.5 var(--type); color: #3c4658; }
.empty { color: var(--muted); }

/* episode page */
.crumbs { margin: 0 0 16px; font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); }
.folder { display: flex; flex-direction: column; max-width: 1000px; }
.folder__tab { align-self: flex-start; padding: 8px 20px 6px; background: var(--manila); border-radius: 8px 8px 0 0; font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.folder__body { position: relative; padding: clamp(10px, 2vw, 18px); background: var(--manila); border-radius: 0 8px 8px 8px; box-shadow: 0 10px 22px rgba(28,35,48,.2); }
.stamp { position: absolute; top: 28px; right: 30px; padding: 6px 12px; border: 3px solid var(--red); color: var(--red); font: 700 16px var(--head); letter-spacing: .16em; text-transform: uppercase; transform: rotate(6deg); background: rgba(251,249,243,.7); z-index: 1; }
.sheet { display: flex; flex-direction: column; gap: 30px; padding: clamp(22px, 4vw, 44px); background: var(--sheet); box-shadow: 0 2px 4px rgba(0,0,0,.12); }
.sheet__head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.sheet__head .eyebrow { margin: 0; }
.sheet h1 { font-size: clamp(44px, 7vw, 72px); padding-right: 140px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 24px; margin: 0; font: 400 15px var(--mono); }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.epi { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding: 18px 22px; background: var(--navy); color: #f6f1e4; }
.epi p { margin: 0; font: 400 clamp(20px, 2.6vw, 26px)/1.35 var(--type); }
.epi cite { font: normal 500 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.sheet h2 { font-size: 30px; margin-bottom: 10px; }
.log { margin: 0; padding: 0; list-style: none; }
.log li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.log span { font: 600 13px var(--mono); color: var(--red); padding-top: 3px; }
.log p { margin: 0; font: 400 16px/1.6 var(--type); }
.lastpage { margin-top: 18px; }
.lastpage summary { display: inline-block; min-height: 44px; padding: 12px 18px; background: var(--red); color: #fff; font: 600 16px var(--head); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; list-style: none; }
.lastpage summary::-webkit-details-marker { display: none; }
.lastpage summary:hover { background: var(--navy); }
.lastpage p { margin: 12px 0 0; padding: 16px 18px; border: 2px solid var(--ink); font: 400 17px/1.6 var(--type); }
.when-open { display: none; }
details[open] .when-open { display: inline; }
details[open] .when-closed { display: none; }
.notes ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.notes a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: #fff7c9; color: var(--ink); text-decoration: none; box-shadow: 0 4px 8px rgba(0,0,0,.12); transform: rotate(-.6deg); }
.notes li:nth-child(even) a { transform: rotate(.8deg); }
.notes a span { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8a5f12; }
.notes a { font: 400 18px/1.25 var(--hand); }
.notes a:hover { background: var(--yellow); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; max-width: 1000px; margin-top: 30px; padding-top: 18px; border-top: 2px solid var(--ink); }
.pager a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.pager a:last-child { align-items: flex-end; text-align: right; margin-left: auto; }
.pager span { font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pager b { font: 700 24px/1.1 var(--head); text-transform: uppercase; }
.pager a:hover b { color: var(--red); }

/* lexicon */
.lex { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 34px; border-top: 2px solid var(--ink); }
.lex__e { padding: 16px 0; border-bottom: 1px dashed var(--line); scroll-margin-top: 20px; }
.lex__e:target { background: #fff7c9; }
.lex dt { font: 700 26px/1.05 var(--head); text-transform: uppercase; }
.lex dd { margin: 6px 0 0; }
.lex dd p { margin: 0; font: 400 16px/1.55 var(--type); }
.lex dd a { display: inline-block; margin-top: 6px; font: 500 13px var(--mono); }

/* map */
.map { height: min(62vh, 560px); border: 2px solid var(--ink); z-index: 0; }
.places { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 28px; margin: 28px 0 0; padding: 0; list-style: none; }
.place { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px dashed var(--line); scroll-margin-top: 20px; }
.place:target { background: #fff7c9; }
.place__pin { width: 22px; height: 22px; margin-top: 5px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--red); cursor: pointer; }
.place__pin:hover { transform: scale(1.15); }
.place h2 { font-size: 24px; }
.place p { margin: 4px 0 0; font-size: 15px; line-height: 1.5; }
.place__a { font: 500 13px var(--mono) !important; color: var(--muted); }
.place__eps { font-size: 13px !important; }
.leaflet-container a { color: var(--red); }

/* ledger */
.ledger { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.ledger li { border-bottom: 1px dashed var(--line); scroll-margin-top: 20px; }
.ledger li:target { background: #fff7c9; }
.ledger summary { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 4px; cursor: pointer; list-style: none; }
.ledger summary::-webkit-details-marker { display: none; }
.ledger__ep { font: 600 13px var(--mono); color: var(--red); }
.ledger b { font: 700 22px/1.1 var(--head); text-transform: uppercase; }
.ledger__open { font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ledger details[open] .ledger__open { visibility: hidden; }
.ledger p { margin: 0 0 16px 104px; font: 400 16px/1.6 var(--type); }

/* before they were famous */
.mugs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.mug { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--sheet); border: 1px solid var(--line); border-top: 6px solid var(--navy); scroll-margin-top: 20px; }
.mug:target { outline: 3px solid var(--yellow); }
.mug__no { margin: 0; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.mug h2 { font-size: 30px; }
.mug__as { margin: 0; font: 400 19px var(--hand); }
.mug__as a { color: var(--ink); }
.mug__later { margin: 8px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font: 400 15px/1.5 var(--type); }
.mug__later span { display: block; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* footer */
.foot { background: var(--navy); color: #9fb0c6; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 28px; padding-bottom: 28px; font: 400 14px var(--mono); }
.foot a { color: var(--yellow); }
.df { display: flex; align-items: center; gap: 10px; }
.df img { width: 29px; height: 40px; object-fit: contain; flex: none; }
.foot__bye { color: var(--yellow); }

@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  .main { padding-top: 28px; padding-bottom: 56px; }
  .nav a { padding: 10px 8px; font-size: 13px; }
  .cork { border-width: 8px; padding: 22px 8px 26px; grid-template-columns: 1fr; }
  .ic { width: 140px; }
  .ic--big { width: 180px; }
  .sheet h1 { padding-right: 0; }
  .stamp { position: relative; top: 0; right: 0; display: block; width: fit-content; margin: 2px 6px 12px auto; font-size: 13px; }
  .top__strip { display: none; }
  .top__bar { padding-top: 18px; padding-bottom: 14px; }
  .fi a { grid-template-columns: 1fr auto; }
  .fi__no, .fi b, .fi__p { grid-column: 1 / 3; }
  .fi__d { grid-row: 1; grid-column: 2; }
  .ledger summary { grid-template-columns: 1fr auto; }
  .ledger__ep { grid-column: 1 / 3; }
  .ledger p { margin-left: 4px; }
  .log li { grid-template-columns: 34px minmax(0, 1fr); }
}

/* related cases: the other dumbfun sites (redrawn from the shared list by dumbfun.lol/assets/xlinks.js) */
.related { margin-top: 64px; }
.xl { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.xl-rc { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; background: var(--sheet); background-image: repeating-linear-gradient(transparent 0 23px, #d6e1ee 23px 24px); border: 1px solid var(--line); border-top: 3px solid var(--red); color: var(--ink); text-decoration: none; box-shadow: 0 3px 6px rgba(28,35,48,.1); }
.xl-rc:nth-child(3n+1) { transform: rotate(-.5deg); }
.xl-rc:nth-child(3n+2) { transform: rotate(.6deg); }
.xl-rc:hover { box-shadow: 0 8px 16px rgba(28,35,48,.2); border-top-color: var(--blue); }
.xl-n { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.xl-rc b { font: 400 21px/1.15 var(--hand); }
.xl-b { font: 400 14px/1.45 var(--type); color: #3c4658; }
.xl-u { margin-top: auto; padding-top: 4px; font: 500 12px var(--mono); color: var(--muted); }
