/* Crime Times. Desktop layout; colours #111 #fff #ffd400 #f3f3f1 #dcdcd8 #666. Square corners, solid black borders. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #111; font-family: Inter, Arial, sans-serif; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }
.nav a:focus-visible, .mast:focus-visible { outline-color: #111; }

.in { max-width: 1240px; margin: 0 auto; padding: 0 26px; }

/* Header bar and menu */
.bar { background: #111; color: #fff; }
.bar .in { padding-top: 14px; padding-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.bar { position: relative; overflow: hidden; }
.mast { display: block; }
.plate { position: relative; display: inline-block; margin: 0; font: 400 58px/1.1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.plate .w { display: inline-block; }
.plate .times { background: #ffd400; color: #111; padding: 0 8px; margin-left: 6px; line-height: 1.1; }

/* Nameplate doors: the finished state, shut over the words. Bars are gradients; clicks pass through. */
.door { position: absolute; top: -6px; bottom: -6px; width: 50%; pointer-events: none;
  background:
    linear-gradient(#5d5d5d, #5d5d5d) top / 100% 5px no-repeat,
    linear-gradient(#5d5d5d, #5d5d5d) bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 14px, #4a4a4a 14px 15px, #9a9a9a 15px 16px, #3a3a3a 16px 18px, transparent 18px 26px); }
.door.l { left: 0; }
.door.r { right: 0; }

/* Intro: site.js adds .intro to <html> on the first page of a session. */
@media (prefers-reduced-motion: no-preference) {
  .intro .plate .crime { animation: throw-l .9s cubic-bezier(.25,.8,.3,1.35) both; }
  .intro .plate .times { animation: throw-r .9s .22s cubic-bezier(.25,.8,.3,1.35) both; }
  .intro .door.l { animation: door-l .2s 1.3s cubic-bezier(.7,0,1,.5) both; }
  .intro .door.r { animation: door-r .2s 1.3s cubic-bezier(.7,0,1,.5) both; }
  .intro .bar { animation: jolt .45s 1.5s cubic-bezier(.36,.07,.19,.97) both; }
}

@keyframes throw-l { 0% { transform: translate(-140%, -60%) rotate(-28deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes throw-r { 0% { transform: translate(160%, 70%) rotate(32deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes door-l { from { transform: translateX(-100vw); } to { transform: none; } }
@keyframes door-r { from { transform: translateX(100vw); } to { transform: none; } }
@keyframes jolt { 0%, 100% { transform: none; } 15% { transform: translate(-7px, 2px); } 30% { transform: translate(6px, -2px); } 50% { transform: translate(-4px, 1px); } 70% { transform: translate(3px, 0); } 85% { transform: translate(-1px, 0); } }
.ed { text-align: right; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #bbb; line-height: 1.6; }

.nav { border-bottom: 3px solid #111; }
.nav .in { display: flex; gap: 22px; align-items: center; padding-top: 10px; padding-bottom: 10px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; white-space: nowrap; overflow-x: auto; }
.srch { margin-left: auto; display: flex; gap: 6px; }
.srch input { font: 500 12px Inter, Arial, sans-serif; letter-spacing: 0; text-transform: none; border: 2px solid #111; border-radius: 0; padding: 4px 8px; width: 170px; background: #fff; color: #111; }
.srch button { font: 800 10.5px Inter, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; border: 2px solid #111; border-radius: 0; background: #ffd400; color: #111; padding: 4px 10px; cursor: pointer; }
.srch input:focus-visible, .srch button:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.srch .srch-toggle { display: none; }
.nav a.on { background: #ffd400; padding: 1px 6px; }

/* Numbers strip */
.tick { background: #ffd400; }
.tick .in { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.tick .in > div { padding: 12px 26px; border-right: 2px solid #111; }
.tick .in > div:last-child { border-right: 0; }
.tick b { display: block; font: 400 34px/1 Anton, Impact, sans-serif; text-transform: uppercase; }
.tick b.long { font-size: 20px; line-height: 1.2; padding: 7px 0 6px; }
.tick span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }

.pg { max-width: 1240px; margin: 0 auto; padding: 0 26px 22px; }

/* Section headings */
.sec { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 12px; padding-bottom: 6px; border-bottom: 3px solid #111; }
.sec h2 { margin: 0; font: 400 22px/1 Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.sec span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #666; }
.note { margin: -4px 0 12px; font-size: 12px; color: #666; max-width: 80ch; }

/* Photo wall */
.grid { display: grid; gap: 10px; grid-template-columns: repeat(6, 1fr); }
.grid .person { border: 2px solid #111; background: #fff; transition: transform .12s, box-shadow .12s; }
.grid .person:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #ffd400, 5px 5px 0 2px #111; }
.ph { aspect-ratio: 3 / 4; background: #e4e4e0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; position: relative; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ph svg { width: 78%; fill: #bdbdb6; display: block; }
.ph em { position: absolute; left: 0; top: 0; background: #111; color: #fff; font: 700 9.5px/1 Inter, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; padding: 5px 7px; font-style: normal; }
.cb { padding: 7px 8px 9px; }
.nm { font-weight: 800; font-size: 12px; line-height: 1.15; text-transform: uppercase; overflow-wrap: anywhere; }
.mt { font-size: 11px; color: #666; margin: 3px 0 4px; }
.ag { display: inline-block; background: #ffd400; color: #111; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 6px; margin: 0 0 5px; }
.ag.none { background: #f3f3f1; box-shadow: inset 0 0 0 1px #dcdcd8; }
.ch { margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.35; }

.person { cursor: pointer; }
.person:focus-visible { outline: 3px solid #ffd400; outline-offset: 2px; }
.log tr.person:hover { background: #f3f3f1; }
html.js .extra { display: none; }
.show-all { display: block; margin: 14px auto 0; background: #ffd400; color: #111; border: 3px solid #111; font: 700 12px/1 Inter, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; padding: 12px 20px; cursor: pointer; }
.show-all[hidden] { display: none; }
.show-all:focus-visible { outline: 3px solid #111; outline-offset: 2px; }

/* Person panel */
.panel { border: 3px solid #111; padding: 0; background: #fff; color: #111; width: 86%; max-width: 760px; box-shadow: 8px 8px 0 #ffd400, 8px 8px 0 3px #111; overflow: visible; }
.panel[open] { display: grid; grid-template-columns: 220px 1fr; }
.panel::backdrop { background: rgba(17, 17, 17, .75); }
.panel.nophoto[open] { grid-template-columns: 1fr; }
.panel.nophoto .pp { display: none; }
.panel .x { position: absolute; right: 8px; top: 6px; background: none; border: 0; font: 800 18px/1 Inter, Arial, sans-serif; cursor: pointer; padding: 6px 8px; color: #111; }
.panel .x:focus-visible { outline: 3px solid #111; }
.panel .pp { background: #e4e4e0; min-height: 100%; }
.panel .pp img { display: block; width: 100%; height: 100%; object-fit: cover; }
.panel .pi { padding: 18px 22px 16px; max-height: 80vh; overflow-y: auto; }
.panel h2 { margin: 0 34px 4px 0; font: 400 30px/1 Anton, Impact, sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.panel .pm { margin: 0 0 4px; font-size: 13px; color: #666; }
.panel .ag { margin: 6px 0; }
.panel ul.c { margin: 4px 0 12px; padding: 0; list-style: none; font-size: 14px; }
.panel ul.c li { padding: 6px 0; border-bottom: 1px solid #dcdcd8; }
.panel .note { margin: 0; font-size: 11px; color: #666; max-width: none; }

/* The week */
.two { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.hl { margin: 8px 0 10px; font: 400 32px/1.02 Anton, Impact, sans-serif; text-transform: uppercase; }
.lede { margin: 0; font-size: 15px; line-height: 1.45; color: #333; max-width: 60ch; }
.side { background: #f3f3f1; padding: 16px 18px 4px; border-top: 6px solid #ffd400; margin-top: 20px; }
.side h3 { margin: 0 0 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.side ol { list-style: none; margin: 0 0 14px; padding: 0; }
.side li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; border-bottom: 1px solid #dcdcd8; }
.side li b { font: 400 17px/1 Anton, Impact, sans-serif; }

/* Arrest log */
.log { width: 100%; border-collapse: collapse; font-size: 13px; }
.log th, .log td { text-align: left; vertical-align: baseline; padding: 9px 14px 9px 0; border-bottom: 1px solid #dcdcd8; font-weight: 400; }
.log thead th { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #666; border-bottom: 2px solid #111; }
.log tbody th { font-weight: 800; text-transform: uppercase; }
.log .dot > * + *::before { content: " \00b7  "; }
.log ul { margin: 0; padding: 0; list-style: none; }
.log th:nth-child(1), .log td:nth-child(1) { width: 26%; }
.log th:nth-child(2), .log td:nth-child(2) { width: 20%; }
.log th:nth-child(3), .log td:nth-child(3) { width: 22%; }

/* Past weeks and About */
.wk { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #dcdcd8; }
.wk .n { font: 400 30px/1 Anton, Impact, sans-serif; background: #ffd400; text-align: center; padding: 8px 0; }
.wk b { font-size: 14px; }
.wk small { display: block; color: #666; font-size: 12px; margin-top: 2px; }
.wk .read { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border: 2px solid #111; padding: 4px 8px; }
.wk .read:hover { background: #ffd400; }
.about { max-width: 70ch; }
.about p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }

/* Search page */
.sform { display: flex; gap: 8px; max-width: 520px; margin: 0 0 14px; }
.sform input { flex: 1; font: 500 16px Inter, Arial, sans-serif; border: 3px solid #111; border-radius: 0; padding: 8px 10px; background: #fff; color: #111; }
.sform button { font: 800 12px Inter, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; border: 3px solid #111; border-radius: 0; background: #ffd400; color: #111; padding: 8px 14px; cursor: pointer; }
.sform input:focus-visible, .sform button:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.smsg { font-size: 14px; color: #666; margin: 0 0 12px; }
.sres { list-style: none; margin: 0; padding: 0; }
.sres li { border-bottom: 1px solid #dcdcd8; }
.sres a { display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 12px 0; align-items: start; }
.sres a:hover { background: #f3f3f1; }
.sres .sp { width: 54px; aspect-ratio: 3 / 4; background: #e4e4e0; overflow: hidden; }
.sres .sp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sres b { text-transform: uppercase; font-size: 14px; }
.sres .sm { display: block; font-size: 12px; color: #666; margin: 2px 0 4px; }
.sres .sa { font-size: 12px; font-weight: 700; }
.sres .sc { display: block; font-size: 12.5px; margin-top: 2px; }

/* Footer */
.foot { margin-top: 20px; background: #111; color: #ddd; font-size: 12px; line-height: 1.5; }
.foot .in { padding-top: 14px; padding-bottom: 14px; }
.foot p { margin: 0 0 4px; }
.foot b { color: #ffd400; }

/* Phones and small screens */
@media (max-width: 700px) {
  .in, .pg { padding-left: 14px; padding-right: 14px; }

  /* Nameplate on its own row, fixed gap above the area/week line. Doors stay tied to .plate. */
  .bar .in { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 14px; padding-top: 16px; padding-bottom: 12px; }
  .mast { display: block; }
  .plate { display: block; width: max-content; font-size: min(46px, 11.5vw); line-height: 1.15; }
  .plate .times { line-height: 1.15; }
  .ed { text-align: left; }

  /* Menu: one line per item, scrolls sideways. Search collapses to an icon when the script is running. */
  .nav .in { gap: 18px; }
  .nav a, .srch { flex: none; }
  html.js .srch .srch-toggle { display: flex; align-items: center; justify-content: center; width: 32px; height: 28px; padding: 0; border: 2px solid #111; border-radius: 0; background: #ffd400; color: #111; cursor: pointer; }
  .srch-toggle svg { width: 16px; height: 16px; display: block; }
  html.js .srch:not(.open) input, html.js .srch:not(.open) button[type="submit"] { display: none; }
  .srch input { width: 150px; font-size: 16px; }

  .tick .in { grid-template-columns: repeat(2, 1fr); }
  .tick .in > div { padding: 9px 14px; border-bottom: 2px solid #111; min-width: 0; }
  .tick .in > div:nth-child(2n) { border-right: 0; }
  .tick b { font-size: 26px; }
  .tick b.long { font-size: 16px; padding: 5px 0 4px; }
  .tick span { font-size: 9.5px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .grid .person:hover { transform: none; box-shadow: none; }

  .two { grid-template-columns: 1fr; gap: 0; }
  .hl { font-size: 26px; }
  .sec h2 { font-size: 19px; }
  .sec { gap: 10px; }
  .sec span { text-align: right; font-size: 10px; }

  /* Arrest log: stacked entries on the same table markup; the header row is hidden visually only. */
  .log, .log tbody, .log tr, .log th, .log td { display: block; width: auto; }
  .log thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .log tr { padding: 10px 0; border-bottom: 1px solid #dcdcd8; }
  .log th, .log td { border: 0; padding: 0; }
  .log th:nth-child(n), .log td:nth-child(n) { width: auto; }
  .log tbody th { font-size: 14px; }
  .log td { margin-top: 2px; }
  .log th, .log td, .cb, .ch { overflow-wrap: anywhere; }
  .log td:empty { display: none; }
  .log td:nth-child(2) { color: #666; font-size: 12px; }
  .log td:nth-child(3) { font-size: 12px; font-weight: 700; }
  .log td:nth-child(4) { margin-top: 4px; }

  /* Panel fills most of the screen; photo on top. */
  .panel { width: 94%; max-height: 94vh; box-shadow: 4px 4px 0 #ffd400, 4px 4px 0 3px #111; }
  .panel[open] { grid-template-columns: 1fr; }
  .panel .pp { min-height: 0; height: 190px; }
  .panel .pi { padding: 14px 16px; max-height: calc(94vh - 200px); }
  .panel.nophoto .pi { max-height: calc(94vh - 10px); }
  .panel h2 { font-size: 26px; }
  .panel .x { background: #fff; border: 2px solid #111; padding: 4px 8px; right: 8px; top: 8px; z-index: 1; }

  .wk { grid-template-columns: 64px 1fr; gap: 10px 12px; }
  .wk .n { font-size: 24px; }
  .wk .read { grid-column: 2; justify-self: start; }

  .sform { max-width: none; }
  .sres a { gap: 12px; }
}
.panel .lk { margin: 8px 0 0; font-size: 12px; }
.panel .lk a { color: #111; }
