/* 7ohlaws.com — case-file look: dark desk, coloured folders, paper sheets, condensed caps, serif body, mono fields */
:root {
  --ink: #171717; --desk: #171717; --desk2: #202020; --paper: #f1ede4; --paper2: #e8e2d5; --line: #d8d1c2;
  --txt: #f1ede4; --mute: #a7a196; --dark: #1b1b1b;
  --red: #c63f2e; --blue: #2c4fd8; --green: #2f7a5a; --yellow: #f2cf3d; --teal: #9cc7c5; --purple: #4a2c6a;
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif; --serif: 'Fraunces', Georgia, serif; --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --max: 1240px; --gut: clamp(16px, 4vw, 48px);
  --s-legal: #4f8a5b; --s-legal_regulated: #d9a338; --s-local_bans: #e0783a; --s-banned: #c63f2e; --s-pending: #3f63d6; --s-unverified: #8a8780;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--txt); font: 400 18px/1.55 var(--serif); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-size: 12.5px; line-height: 1.45; letter-spacing: .02em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
main { overflow-x: clip; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 14px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); background: rgba(23,23,23,.96); border-bottom: 1px solid #2b2b2b; }
.brand { font: 400 26px/1 var(--display); letter-spacing: .01em; text-decoration: none; text-align: center; white-space: nowrap; }
.hdr-date { color: var(--mute); }
.hdr-nav { display: flex; justify-content: flex-end; gap: 22px; }
.hdr-nav a { font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; color: #d9d4ca; padding: 8px 0; }
.hdr-nav a:hover, .hdr-nav a[aria-current] { color: var(--yellow); }
@media (max-width: 860px) {
  .hdr { grid-template-columns: 1fr; padding-top: 12px; padding-bottom: 6px; gap: 4px; }
  .hdr-date { display: none; }
  .hdr-nav { justify-content: center; gap: 18px; overflow-x: auto; }
}

/* hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 110px) var(--gut) clamp(40px, 5vw, 64px); text-align: center; }
.hero.slim { padding-bottom: clamp(28px, 4vw, 44px); }
.kick { color: var(--mute); margin: 0 0 18px; }
.hero h1 { font: 400 clamp(54px, 9.2vw, 148px)/.9 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 0; text-wrap: balance; }
.lede { max-width: 34em; margin: 22px auto 0; color: #bdb7ab; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; text-wrap: pretty; }
.lede a { color: var(--yellow); }
.find { margin: 34px auto 0; max-width: 460px; text-align: left; }
.find label { display: block; color: var(--mute); margin-bottom: 8px; }
.find div { display: flex; gap: 8px; }
.find input { flex: 1; min-width: 0; height: 48px; border: 0; border-radius: 6px; padding: 0 14px; background: var(--paper); color: var(--ink); font: 500 15px var(--mono); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; cursor: pointer; white-space: nowrap; }
.pill:hover { background: #ffdc4e; }
.pill.dark { background: var(--ink); color: var(--paper); }
.pill.ghost { background: transparent; color: var(--paper); box-shadow: inset 0 0 0 1px #4a4a4a; }

/* folder */
.board, .files, .pair, .case { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.folder { --c: var(--red); position: relative; }
.ftabs { display: flex; flex-wrap: wrap; align-items: flex-end; padding-left: 18px; }
.ftab { --c: var(--red); position: relative; margin: 0 -10px 0 0; min-height: 50px; padding: 12px 34px 10px; border: 0; border-radius: 22px 22px 0 0; background: var(--c);
  color: #fff; font: 400 21px/1 var(--serif); cursor: pointer; text-decoration: none; filter: brightness(.78); transition: filter .15s, transform .15s; transform: translateY(6px); }
.ftab:nth-child(4) { color: var(--ink); }
.ftab:hover { filter: brightness(.92); transform: translateY(2px); }
.ftab.on { filter: none; transform: none; z-index: 2; }
.folder-body { position: relative; z-index: 1; background: var(--c); border-radius: 16px; padding: clamp(10px, 2.4vw, 30px); transition: background .2s; }
.ftabs + .folder-body { border-top-left-radius: 0; }

/* paper */
.sheet { position: relative; background: var(--paper); color: var(--ink); border-radius: 4px; padding: clamp(22px, 3.4vw, 44px) clamp(18px, 3.6vw, 52px) clamp(22px, 3.4vw, 44px) clamp(52px, 7vw, 104px);
  background-image: radial-gradient(1200px 600px at 20% 0%, rgba(255,255,255,.55), transparent 60%), linear-gradient(transparent 0, transparent);
  box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.holes { position: absolute; left: clamp(16px, 2.4vw, 34px); top: 0; bottom: 0; width: 18px;
  background: radial-gradient(circle at 9px 9px, var(--c, var(--blue)) 0 7px, transparent 7.5px) 0 60px / 18px 170px repeat-y; }
.sheet::before { content: ''; position: absolute; left: clamp(40px, 5.6vw, 76px); top: 0; bottom: 0; width: 1px; background: #d9cfc0; }
.clip { position: absolute; top: -18px; right: clamp(24px, 6vw, 90px); width: 26px; height: 74px; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 74'%3E%3Cpath d='M8 20v38a5 5 0 0 0 10 0V12a8 8 0 0 0-16 0v46a11 11 0 0 0 22 0V22' fill='none' stroke='%23464646' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.sheet .mono { color: #59544b; }

/* map sheet */
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 18px; }
.map-head p { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font: 500 12px/1.3 var(--mono); text-transform: uppercase; color: #3d3a34; }
.legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; background: var(--s); }
.map-wrap { position: relative; }
.usmap { width: 100%; height: auto; }
.usmap path { stroke: var(--paper); stroke-width: 1.1; stroke-linejoin: round; transition: filter .12s; cursor: pointer; }
.usmap a:hover path, .usmap a:focus path, .usmap path.hot { stroke: var(--ink); stroke-width: 2; filter: brightness(1.06); }
.usmap a:focus { outline: none; }
.s-legal { --s: var(--s-legal); } .s-legal_regulated { --s: var(--s-legal_regulated); } .s-local_bans { --s: var(--s-local_bans); }
.s-banned { --s: var(--s-banned); } .s-pending { --s: var(--s-pending); } .s-unverified { --s: var(--s-unverified); }
.usmap path { fill: var(--s); }
.usmap path.s-pending { fill: url(#hatch); }
.sw.s-pending { background: repeating-linear-gradient(45deg, #3f63d6 0 3px, #c9d3f5 3px 6px); }
.map-hint { margin: 14px 0 0; }
.note { position: absolute; z-index: 5; width: min(290px, 80%); background: #f6e48a; color: var(--ink); padding: 14px 16px 16px; border-radius: 2px; pointer-events: none;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); transform: rotate(-1.2deg); }
.note b { display: block; font: 400 26px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.note p { margin: 8px 0 0; font-size: 15px; line-height: 1.4; }
.note .mono { color: #4a4535; }

/* status chip */
.st { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1.25 var(--mono); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.st i { width: 10px; height: 10px; border-radius: 2px; background: var(--s-legal); flex: none; }
.st-legal i { background: var(--s-legal); } .st-legal_regulated i { background: var(--s-legal_regulated); } .st-local_bans i { background: var(--s-local_bans); }
.st-banned i { background: var(--s-banned); } .st-pending i { background: repeating-linear-gradient(45deg, #3f63d6 0 2px, #c9d3f5 2px 4px); } .st-unverified i { background: var(--s-unverified); }

/* stacks (files by status) */
.files { margin-top: clamp(56px, 7vw, 96px); }
.files-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 22px; }
.files-head h2 { font: 400 clamp(34px, 4.6vw, 64px)/.95 var(--display); text-transform: uppercase; margin: 0; }
.files-head .mono { color: var(--mute); margin: 0; }
.stacks { display: grid; }
.stack { background: var(--c); border-radius: 18px 18px 0 0; padding: 18px clamp(16px, 2.6vw, 30px) 30px; margin-top: -14px; color: #fff; }
.stack:first-child { margin-top: 0; }
.stack:last-child { border-radius: 18px; }
.stack.s-legal_regulated { color: var(--ink); }
.stack header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.stack h3 { font: 400 26px/1 var(--display); text-transform: uppercase; margin: 0; letter-spacing: .01em; }
.stack header .mono { opacity: .85; }
.stack-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 14px 14px 4px 4px; background: rgba(0,0,0,.2); text-decoration: none; font: 400 18px/1.1 var(--serif); }
.stack.s-legal_regulated .stack-tabs a { background: rgba(0,0,0,.1); }
.stack-tabs a:hover { background: rgba(0,0,0,.36); }

/* pair: federal card + faq */
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.fed { background: var(--teal); color: var(--ink); border-radius: 6px; padding: clamp(22px, 3vw, 36px); transform: rotate(-.6deg); }
.fed .mono { color: #2d4847; margin: 0 0 10px; }
.fed h3 { font: 400 clamp(28px, 3vw, 40px)/1 var(--display); text-transform: uppercase; margin: 0 0 14px; }
.fed p { margin: 0 0 20px; font-size: 17px; }
.sheet.small { padding-top: 28px; padding-bottom: 28px; }
.sheet.small.wide { grid-column: 1 / -1; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; font: 500 20px/1.3 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 2px; top: 14px; font: 400 22px var(--mono); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 18px; color: #3a372f; font-size: 17px; }
@media (max-width: 860px) { .pair { grid-template-columns: 1fr; } .fed { transform: none; } }

/* case file */
.case { margin-top: 0; }
.folder.file { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: start; }
.folder.file .folder-body { border-radius: 16px 0 16px 16px; }
.vtabs { display: flex; flex-direction: column; gap: 0; padding-top: 40px; }
.vtab { writing-mode: vertical-rl; background: var(--c); color: #fff; text-decoration: none; font: 400 19px/1 var(--serif); padding: 22px 12px; border-radius: 0 18px 18px 0; margin-bottom: -10px; filter: brightness(.85); min-height: 150px; }
.vtab:nth-child(3n+2) { color: #fff; } .vtab:hover { filter: none; }
.case-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
.statuscard { background: #fff; border: 1px solid var(--line); padding: 18px; transform: rotate(-1deg); box-shadow: 0 3px 8px -4px rgba(0,0,0,.25); }
.statuscard > .mono { margin: 0 0 12px; }
.fields { margin: 0; display: grid; gap: 12px; }
.fields dt { font-weight: 600; font-size: 13px; margin-bottom: 3px; color: var(--ink); }
.fields dd { margin: 0; font-size: 12px; color: #3d3a34; }
.case-side .updated { margin: 18px 0 0 6px; }
.case-body { max-width: 40em; font-size: 19px; line-height: 1.6; }
.case-body.solo { max-width: 44em; }
.drop { margin-top: 0; text-wrap: pretty; }
.drop::first-letter { float: left; font: 400 5.4em/.78 var(--serif); margin: .04em .1em 0 0; }
.case-body h2 { font: 400 clamp(26px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 46px 0 14px; }
.sub:first-of-type h2 { margin-top: 34px; }
.kv { display: grid; margin: 18px 0 0; border-top: 1px dashed #c9c0ae; font-size: 12px; }
.kv div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #c9c0ae; }
.kv dt { color: #6a6458; } .kv dd { margin: 0; color: var(--ink); text-transform: none; letter-spacing: 0; }
.small-h { margin: 18px 0 6px; }
.local { margin: 0; padding-left: 20px; font-size: 16px; columns: 2; column-gap: 28px; }
.src { margin-top: 14px; }
.src summary { cursor: pointer; padding: 6px 0; color: #59544b; }
.src ol { margin: 6px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.src li { margin-bottom: 6px; } .src a { color: #2a3f9e; }
.memo { margin: 44px 0 0; background: var(--teal); padding: clamp(20px, 3vw, 32px); transform: rotate(.5deg); max-width: 720px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.3); }
.memo > .mono { margin: 0 0 12px; color: #2d4847; font-weight: 600; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tl li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; font-size: 16px; line-height: 1.45; }
.tl time { font-size: 12px; padding-top: 3px; color: #1d3331; }
.shopnote { margin: 40px 0 0; max-width: 720px; background: var(--ink); color: var(--paper); padding: clamp(20px, 3vw, 30px); border-radius: 4px; }
.shopnote .mono { color: var(--yellow); margin: 0 0 8px; }
.shopnote p { margin: 0 0 16px; font-size: 17px; }
.case-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin: 22px 48px 0 0; }
.nextcard { margin-right: auto; display: grid; gap: 6px; min-width: 240px; background: var(--c); color: #fff; padding: 16px 20px; border-radius: 12px; text-decoration: none; }
.nextcard b { font: 400 24px/1.1 var(--serif); }
.nextcard .mono { color: rgba(255,255,255,.8); }
.updated { color: #6a6458; }
@media (max-width: 860px) {
  .folder.file { grid-template-columns: 1fr; }
  .folder.file .folder-body { border-radius: 16px; }
  .vtabs { flex-direction: row; padding: 0 0 0 18px; order: -1; }
  .vtab { writing-mode: horizontal-tb; min-height: 0; border-radius: 16px 16px 0 0; margin: 0 -8px -2px 0; padding: 12px 18px 10px; font-size: 16px; }
  .case-grid { grid-template-columns: 1fr; }
  .statuscard { transform: none; }
  .case-foot { margin-right: 0; }
  .nextcard { min-width: 0; flex: 1 1 100%; }
  .local { columns: 1; }
  .tl li { grid-template-columns: 1fr; gap: 2px; }
  .kv div { grid-template-columns: 104px 1fr; }
}

/* tables + log */
.tablesheet { padding-top: 26px; overflow-x: auto; }
.law { width: 100%; border-collapse: collapse; min-width: 560px; }
.law th, .law td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.law thead th { font: 600 12px var(--mono); text-transform: uppercase; color: #59544b; }
.law tbody th { font: 500 18px/1.25 var(--serif); }
.law tbody th a { text-decoration: none; } .law tbody th a:hover { text-decoration: underline; }
.law td { font-size: 15px; line-height: 1.4; }
.law.wide { min-width: 720px; }
.csv { margin: 16px 0 0; } .csv a { color: var(--yellow); }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 120px 170px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; }
.log time { font-size: 12px; padding-top: 3px; }
.log a { font-weight: 500; }
@media (max-width: 700px) { .log li { grid-template-columns: 1fr; gap: 2px; } }
.defs { display: grid; gap: 10px; margin: 0; }
.defs div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed #c9c0ae; }
.defs dd { margin: 0; font-size: 17px; }
@media (max-width: 700px) { .defs div { grid-template-columns: 1fr; gap: 4px; } }
.case-body a { color: #2a3f9e; }

/* footer */
.foot { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid #2b2b2b; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 28px; container-type: inline-size; }
.foot-word { font: 400 18.4cqi/.8 var(--display); color: #262626; margin: 28px 0 34px; white-space: nowrap; text-align: center; letter-spacing: .005em; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 28px; }
.foot-cols nav { display: grid; gap: 8px; align-content: start; }
.foot-cols a { color: #d9d4ca; text-decoration: none; font-size: 16px; } .foot-cols a:hover { color: var(--yellow); }
.foot-cols .mono { color: var(--mute); margin: 0 0 6px; }
.fine { color: #a7a196; font-size: 15px; margin: 0; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 36px 0 0; padding-top: 18px; border-top: 1px solid #2b2b2b; color: var(--mute); }
.foot-bar a { text-decoration: none; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div { grid-column: 1 / -1; } }

@media (max-width: 600px) {
  .ftabs { padding-left: 8px; }
  .ftab { padding: 11px 18px 9px; font-size: 17px; min-height: 44px; margin-right: -6px; border-radius: 16px 16px 0 0; }
  .sheet { padding-left: 46px; }
  .holes { left: 13px; transform: scale(.85); transform-origin: left top; }
  .sheet::before { left: 36px; }
  .clip { right: 18px; width: 20px; height: 58px; top: -14px; }
  .map-hint { display: none; }
  .stack-tabs a { font-size: 16px; min-height: 40px; padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* Fraunces (11/25, Dennis: tab font not nice): firmer weight on tabs and names */
body { font-variation-settings: 'SOFT' 50, 'WONK' 0; }
.ftab { font: 500 20px/1 var(--serif); letter-spacing: -.005em; font-variation-settings: 'SOFT' 100, 'opsz' 72; }
.vtab, .stack-tabs a, .nextcard b, .law tbody th, .faq summary { font-weight: 500; font-variation-settings: 'SOFT' 100, 'opsz' 36; }
.drop::first-letter { font-weight: 600; font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.case-body, .lede { font-variation-settings: 'SOFT' 30, 'opsz' 14; }
/* ledger (replaces the colour stacks) */
.ledger { padding-top: 14px; padding-bottom: 14px; }
.lrow { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px dashed #c9c0ae; }
.lrow:last-child { border-bottom: 0; }
.lk { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lk .st { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.lk .st i { width: 12px; height: 12px; }
.lc { font: 400 30px/1 var(--display); color: #6a6458; }
.ln { margin: 0; font: 400 19px/1.75 var(--serif); font-variation-settings: 'SOFT' 100, 'opsz' 24; }
.ln a { text-decoration: none; white-space: nowrap; }
.ln a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ln a:not(:last-child)::after { content: '·'; margin: 0 .55em; color: #b3aa98; text-decoration: none; display: inline-block; }
@media (max-width: 760px) { .lrow { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; } .lk { justify-content: flex-start; } .lc { font-size: 22px; } .ln { font-size: 17px; line-height: 1.7; } }
.hero h1 .hl { color: var(--yellow); }
/* sheets lying on the desk (not in a folder): punch holes show the desk */
.ledger, .pair .sheet, .files > .tablesheet, .files .tablesheet { --c: var(--desk); }
/* legal alternatives (Exhibit B) */
.alts { max-width: var(--max); margin: clamp(56px, 7vw, 96px) auto 0; padding: 0 var(--gut); }
.alts .folder-body { border-radius: 16px; }
.alt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 48px; align-items: end; margin-bottom: 30px; }
.alt-head .mono { grid-column: 1 / -1; margin: 0; }
.alt-head h2 { font: 400 clamp(38px, 5vw, 72px)/.92 var(--display); text-transform: uppercase; margin: 0; }
.alt-lead { margin: 0; font-size: 19px; line-height: 1.5; color: #2f2c26; max-width: 30em; }
.alt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.alt-card { display: grid; align-content: start; gap: 8px; text-decoration: none; color: var(--ink); }
.print { display: block; background: #fff; padding: 10px 10px 34px; box-shadow: 0 4px 10px -6px rgba(0,0,0,.35); position: relative; margin-bottom: 8px; transition: transform .2s; }
.alt-card:nth-child(1) .print { transform: rotate(-1.6deg); } .alt-card:nth-child(2) .print { transform: rotate(1deg); } .alt-card:nth-child(3) .print { transform: rotate(-.6deg); }
.print::before { content: ''; position: absolute; top: -10px; left: 50%; width: 74px; height: 22px; margin-left: -37px; background: rgba(242,207,61,.75); transform: rotate(-3deg); }
.print img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.9); }
.alt-card:hover .print { transform: rotate(0) translateY(-3px); }
.alt-card .mono { color: #6a6458; }
.alt-card b { font: 400 clamp(26px, 2.4vw, 34px)/1 var(--display); text-transform: uppercase; }
.alt-d { font-size: 17px; line-height: 1.45; color: #2f2c26; }
.alt-go { color: var(--green) !important; font-weight: 600; margin-top: 4px; }
.alt-card:hover .alt-go { text-decoration: underline; }
.alt-fine { margin: 30px 0 14px; }
@media (max-width: 860px) { .alt-head { grid-template-columns: 1fr; } .alt-cards { grid-template-columns: 1fr; gap: 34px; } .print { max-width: 420px; } }
.print img { height: auto; }
.alt-head h2 { font-size: clamp(36px, 4.2vw, 60px); }
/* floating sticker */
.sticker { position: fixed; right: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px); z-index: 60; width: 250px;
  transform: translateY(24px) rotate(2.5deg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.sticker.on { opacity: 1; transform: rotate(2.5deg); pointer-events: auto; }
.stk-a { display: grid; gap: 6px; background: var(--yellow); color: var(--ink); text-decoration: none; padding: 22px 20px 18px; border-radius: 2px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); position: relative; }
.stk-a::before { content: ''; position: absolute; top: -11px; left: 50%; width: 70px; height: 22px; margin-left: -35px; background: rgba(241,237,228,.7); transform: rotate(-4deg); }
.stk-a .mono { color: #5b4d12; font-size: 11px; }
.stk-a b { font: 400 25px/1 var(--display); text-transform: uppercase; }
.stk-d { font-size: 15px; line-height: 1.35; }
.stk-go { font-weight: 600; margin-top: 2px; }
.stk-a:hover .stk-go { text-decoration: underline; }
.stk-x { position: absolute; top: -12px; right: -10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font: 400 18px/1 var(--mono); cursor: pointer; }
@media (max-width: 600px) {
  .sticker { width: auto; left: 14px; right: 14px; bottom: 12px; transform: translateY(24px) rotate(-.8deg); }
  .sticker.on { transform: rotate(-.8deg); }
  .stk-a { grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 16px; }
  .stk-a .mono:first-child, .stk-d { display: none; }
  .stk-a b { font-size: 20px; }
  .stk-go { grid-row: 1; grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .sticker { transition: none; } }
/* back to map (Dennis 11/25) */
.backbar { max-width: var(--max); margin: 0 auto; padding: 22px var(--gut) 0; display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #262626; color: var(--paper); text-decoration: none; font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.back:first-child { background: var(--yellow); color: var(--ink); }
.back:hover { filter: brightness(1.08); }
#map { scroll-margin-top: 90px; }
.backbar + .hero.slim { padding-top: clamp(28px, 5vw, 64px); }
/* file tabs = this file's sections (Dennis: tabs showing other states was confusing) */
.vtab { display: flex; align-items: center; gap: 10px; filter: none; opacity: .92; }
.vtab:hover { opacity: 1; }
.vtab:nth-child(4) { color: var(--ink); }
.vtab .st { gap: 0; } .vtab .st > i { width: 10px; height: 10px; box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
.sub { scroll-margin-top: 90px; }
.vtab { white-space: nowrap; }
/* inline alternative block inside the case file */
.inline-alt { margin: 44px calc(-1 * clamp(18px, 3.6vw, 52px)) 8px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center;
  background: var(--ink); color: var(--paper); padding: clamp(22px, 3vw, 34px) clamp(20px, 3.2vw, 44px); position: relative; }
.inline-alt::before { content: ''; position: absolute; top: -10px; left: clamp(40px, 8vw, 120px); width: 84px; height: 22px; background: rgba(242,207,61,.8); transform: rotate(-2.5deg); }
.inline-alt .mono { color: var(--yellow) !important; margin: 0 0 8px; }
.inline-alt h3 { font: 400 clamp(28px, 3vw, 42px)/1 var(--display); text-transform: uppercase; margin: 0 0 10px; letter-spacing: .005em; }
.inline-alt p { margin: 0; font-size: 17.5px; line-height: 1.5; color: #d9d4ca; max-width: 40em; }
.ia-cta { display: grid; gap: 10px; justify-items: center; }
.ia-cta .mono { color: #8f8a80 !important; font-size: 11px; }
.case-grid.cont .case-body .sub:first-child h2 { margin-top: 40px; }
@media (max-width: 860px) {
  .inline-alt { grid-template-columns: 1fr; margin-right: 0; }
  .ia-cta { justify-items: start; }
  .case-grid.cont > div:first-child { display: none; }
}
/* section tabs: stay beside the file while you read, smooth jump, show where you are (Dennis: clicking made the page jump around) */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (min-width: 861px) {
  .vtabs { position: sticky; top: 84px; align-self: start; }
  .vtab { transform: translateX(-6px); transition: transform .2s, opacity .2s; opacity: .8; }
  .vtab.on, .vtab:hover { transform: none; opacity: 1; }
}
.vtab.on { box-shadow: inset 3px 0 0 rgba(255,255,255,.55); }
.sub { scroll-margin-top: 84px; }
/* tab stacking (Dennis: hovered tab slipped behind its neighbours): every tab gets an explicit layer; hovered/current comes forward */
.vtab { position: relative; z-index: 1; }
.vtab:hover, .vtab:focus-visible, .vtab.on { z-index: 3; }
.ftab { z-index: 1; }
.ftab:hover, .ftab:focus-visible { z-index: 3; }
.ftab.on { z-index: 4; }
/* QA fixes 11/25 */
@media (max-width: 860px) {
  .folder.file { grid-template-columns: minmax(0, 1fr); }
  .case-grid { grid-template-columns: minmax(0, 1fr); }
}
.kv dd, .src a, .local li, .tl span, .log span, .case-body p, .statuscard dd, .memo { overflow-wrap: anywhere; }
.brand { padding: 9px 4px; display: inline-block; }
.stk-x { width: 40px; height: 40px; top: -16px; right: -12px; }
.csv a { display: inline-block; padding: 12px 0; }
@media (max-width: 600px) { .pill { white-space: normal; text-align: center; line-height: 1.25; padding: 10px 18px; } }
/* small phones (QA 11/25) */
@media (max-width: 600px) { .drop::first-letter { font-size: 3.8em; } }
@media (max-width: 440px) {
  .vtabs { padding-left: 6px; }
  .vtab { font-size: 15px; padding: 11px 12px 9px; margin-right: -6px; }
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .case-body { font-size: 17.5px; }
  .hero h1 { font-size: clamp(46px, 15vw, 64px); }
}
@media (max-width: 440px) { .vtab { min-height: 42px; display: inline-flex; align-items: center; } }
/* hover fix (Dennis 11/25): an inactive tab that comes forward on hover must stay behind the folder body; only the open tab joins the folder */
.folder > .folder-body { z-index: 2; }
.ftab, .ftab:hover, .ftab:focus-visible { z-index: 1; }
.ftab:hover { z-index: 2; }
.ftab.on { z-index: 3; }
@media (max-width: 860px) { .vtab { margin-bottom: 0; } }
/* no smooth scroll on page load (Dennis: switching substance page showed the top, then slid down); smooth only for in-page jumps */
html { scroll-behavior: auto; }
html.smooth { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.smooth { scroll-behavior: auto; } }
/* side tabs (Dennis 11/25): solid colours, no see-through overlaps, no light edge line */
.vtab, .vtab:hover, .vtab.on { opacity: 1; filter: none; box-shadow: none; }
.vtab { background: color-mix(in srgb, var(--c) 78%, #171717); color: rgba(255,255,255,.88); }
.vtab:nth-child(4) { color: rgba(23,23,23,.85); }
.vtab:hover, .vtab.on { background: var(--c); color: #fff; }
.vtab:nth-child(4):hover, .vtab:nth-child(4).on { color: var(--ink); }
.ftab { filter: none; background: color-mix(in srgb, var(--c) 78%, #171717); }
.ftab:hover, .ftab.on { background: var(--c); }
/* sticker call-to-action motion (Dennis 11/25): arrow nudges, underline sweeps, the note gives a small wiggle now and then */
.stk-go { display: inline-flex; align-items: center; gap: 6px; }
.stk-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: 2px; animation: stk-sweep 3.2s ease-in-out infinite; }
.stk-ar { font-style: normal; display: inline-block; animation: stk-nudge 1.6s ease-in-out infinite; }
.sticker.on .stk-a { animation: stk-wiggle 6s ease-in-out 1.5s infinite; transform-origin: 50% 0; }
.stk-a:hover .stk-ar { animation-duration: .7s; }
@keyframes stk-nudge { 0%, 55%, 100% { transform: translateX(0); } 70% { transform: translateX(6px); } 85% { transform: translateX(1px); } }
@keyframes stk-sweep { 0% { background-size: 0 2px; } 40%, 70% { background-size: 100% 2px; } 100% { background-size: 0 2px; background-position: 100% 100%; } }
@keyframes stk-wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-2deg); } 94% { transform: rotate(1.6deg); } 97% { transform: rotate(-.8deg); } }
@media (prefers-reduced-motion: reduce) { .stk-u, .stk-ar, .sticker.on .stk-a { animation: none; } .stk-u { background-size: 100% 2px; } }
.hero-cta { margin: 28px 0 0; }
/* map link with icon in the header (Dennis 11/25) */
.hdr-nav .nav-map { display: inline-flex; align-items: center; gap: 7px; color: var(--yellow); }
.hdr-nav .nav-map .ico { flex: none; transform: translateY(-1px); }
.hdr-nav .nav-map:hover { color: #ffe36a; }
@media (max-width: 860px) { .hdr-nav { gap: 16px; } }
/* header order (Dennis 11/25): logo left, links centre, timestamp right */
.hdr { grid-template-columns: 1fr auto 1fr; }
.brand { justify-self: start; text-align: left; padding-left: 0; }
.hdr-nav { justify-content: center; }
.hdr-date { justify-self: end; text-align: right; }
@media (max-width: 860px) {
  .hdr { grid-template-columns: 1fr auto; row-gap: 2px; }
  .brand { grid-column: 1; grid-row: 1; }
  .hdr-date { display: block; grid-column: 2; grid-row: 1; font-size: 11px; }
  .hdr-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (max-width: 380px) { .hdr-date { display: none; } }
/* tables: state column stays put while the rest scrolls sideways (Dennis 11/25) */
.tablesheet { overflow: visible; }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.law th:first-child { position: sticky; left: 0; z-index: 2; background: var(--paper); padding-right: 14px; }
.law tbody th:first-child { box-shadow: 8px 0 8px -8px rgba(0,0,0,.18); }
.law thead th:first-child { box-shadow: 8px 0 8px -8px rgba(0,0,0,.12); }
@media (min-width: 900px) { .law tbody th:first-child, .law thead th:first-child { box-shadow: none; } }
/* header links: one baseline for all, Map coloured like the others (yellow only when current/hover) */
.hdr-nav a { display: inline-flex; align-items: center; gap: 7px; line-height: 1; height: 32px; padding: 0; }
.hdr-nav .nav-map { color: #d9d4ca; }
.hdr-nav .nav-map .ico { transform: none; width: 15px; height: 15px; margin-top: -1px; }
.hdr-nav .nav-map:hover, .hdr-nav .nav-map[aria-current] { color: var(--yellow); }
