/* The codals index (/codals/, subject pages, /notes/) and the law reader (/codals/<slug>/): the Study Desk.
   Scoped to .ak-laws and .ak-law-reader so the shared markdown and nav styles elsewhere are untouched. */

.ak-laws, .ak-law-reader {
  --lw-paper: rgb(var(--color-paper-bg));
  --lw-ink: rgb(var(--color-paper-ink));
  --lw-edge: #0a0a0f;
  --lw-rule: rgba(10, 10, 15, 0.8);
  --lw-rule-soft: rgba(10, 10, 15, 0.16);
  --lw-chip: #f1e7e4;
  --lw-chip-hover: #eae1f3;
  --lw-accent: #7c3aed;
  --lw-accent-hover: #6d28d9;
  --lw-on-accent: #ffffff;
  --lw-tint: rgba(124, 58, 237, 0.08);
  --lw-tint-strong: rgba(124, 58, 237, 0.14);
  --lw-halo: 0 1px 2px rgba(10, 10, 15, 0.04), 0 8px 32px -12px rgba(124, 58, 237, 0.12);
  --lw-focus: 0 0 0 3px rgba(124, 58, 237, 0.12), 0 2px 16px -6px rgba(124, 58, 237, 0.4);
  --lw-lift: 0 28px 56px -28px rgba(10, 10, 15, 0.42), 0 2px 6px -2px rgba(10, 10, 15, 0.08);
  --lw-tile-lift: 0 22px 44px -30px rgba(76, 29, 149, 0.6);
  --lw-float: 0 18px 40px -20px rgba(10, 10, 15, 0.42), 0 2px 6px -2px rgba(10, 10, 15, 0.08);
  --lw-thread: rgb(var(--color-paper-ink) / 0.24);
  --lw-display: "DM Serif Text", ui-serif, Georgia, serif;
  --lw-serif: "IBM Plex Serif", ui-serif, Georgia, serif;
  --lw-sans: Geist, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lw-code: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  --lw-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lw-t: 320ms;
  font-family: var(--lw-sans);
  color: var(--lw-ink);
}
.dark .ak-laws, .dark .ak-law-reader {
  --lw-edge: rgba(255, 255, 255, 0.72);
  --lw-rule: rgba(255, 255, 255, 0.2);
  --lw-rule-soft: rgba(255, 255, 255, 0.12);
  --lw-chip: #24242e;
  --lw-chip-hover: #2e2a42;
  --lw-accent: #a78bfa;
  --lw-accent-hover: #c4b5fd;
  --lw-on-accent: #0a0a0f;
  --lw-tint: rgba(167, 139, 250, 0.14);
  --lw-tint-strong: rgba(167, 139, 250, 0.22);
  --lw-halo: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 32px -8px rgba(167, 139, 250, 0.18);
  --lw-lift: 0 28px 56px -28px rgba(0, 0, 0, 0.85), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
  --lw-tile-lift: 0 22px 44px -30px rgba(0, 0, 0, 0.9);
  --lw-float: 0 18px 40px -16px rgba(0, 0, 0, 0.85), 0 2px 6px -2px rgba(0, 0, 0, 0.5);
}

.lw-frame { width: 100%; max-width: calc(1152px + 48px); margin: 0 auto; padding: 0 24px; }
.lw-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lw-cite { font-family: var(--lw-code); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.lw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ak-laws :focus-visible, .ak-law-reader :focus-visible { outline: 2px solid var(--lw-accent); outline-offset: 2px; border-radius: 8px; }
.ak-laws [hidden], .ak-law-reader [hidden] { display: none !important; }

/* Text actions and pills */
.lw-act { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.lw-act.is-on { color: var(--lw-accent); }
.lw-act .lw-icon { width: 16px; height: 16px; }
.lw-pill { height: 36px; padding: 0 14px; border: 1px solid var(--lw-edge); border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease), border-color var(--lw-t) var(--lw-ease); }
.lw-pill.is-on { background: var(--lw-accent); border-color: var(--lw-accent); color: var(--lw-on-accent); }
.lw-pill .lw-n { font-family: var(--lw-code); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lw-round { width: 36px; height: 36px; border-radius: 999px; display: inline-grid; place-items: center; cursor: pointer; transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }

/* ---------- Index ---------- */
.lw-head { padding: 40px 0 0; }
.lw-head__row { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.lw-head h1 { font-family: var(--lw-display); font-weight: 400; font-size: 56px; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.lw-overview { font-family: var(--lw-serif); font-size: 17px; line-height: 1.625; max-width: 62ch; margin: -6px 0 22px; }

.lw-box { position: relative; display: flex; align-items: center; gap: 10px; max-width: 760px; height: 56px; padding: 6px 6px 6px 20px; border: 1px solid var(--lw-edge); border-radius: 28px; background: var(--lw-paper); box-shadow: var(--lw-halo); transition: box-shadow var(--lw-t) var(--lw-ease), border-color var(--lw-t) var(--lw-ease); }
.lw-box:focus-within { box-shadow: var(--lw-focus); border-color: var(--lw-accent); }
.lw-box > .lw-icon { pointer-events: none; }
.lw-box input[type="search"] { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--lw-ink); font: 400 16px/1.5 var(--lw-sans); padding: 0; }
.lw-box input[type="search"]::placeholder { color: rgb(var(--color-paper-muted)); }
.lw-box input[type="search"]::-webkit-search-cancel-button { display: none; }
.lw-box input[type="search"]:focus { box-shadow: none; }
.lw-box__clear { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; flex: none; transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.lw-box__clear .lw-icon { width: 16px; height: 16px; }
.lw-scope { position: relative; flex: none; display: inline-flex; align-items: center; height: 44px; border-radius: 999px; background: var(--lw-chip); transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.lw-scope select { appearance: none; -webkit-appearance: none; height: 100%; max-width: 15rem; padding: 0 34px 0 14px; border: 0; outline: 0; background: transparent; color: inherit; font: 500 14px/1 var(--lw-sans); cursor: pointer; text-overflow: ellipsis; }
.lw-scope select:focus { box-shadow: none; }
.lw-scope .lw-icon { position: absolute; right: 12px; width: 15px; height: 15px; pointer-events: none; }
.lw-go { flex: none; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--lw-accent); color: var(--lw-on-accent); cursor: pointer; transition: background var(--lw-t) var(--lw-ease); }

/* The desk: continue reading (from this browser) and bookmarks (signed in) */
.lw-h2 { font-family: var(--lw-display); font-weight: 400; font-size: 26px; line-height: 1.2; margin: 0; }
.lw-rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.lw-rowhead .lw-act { margin-right: -10px; }
.lw-desk { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.lw-desk--solo { grid-template-columns: minmax(0, 1fr); }
.lw-desk--solo .lw-continue { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
/* Between phone and desktop the desk's tiles pair up, so four never wrap three plus one. */
@media (min-width: 640px) and (max-width: 1023px) {
  .lw-desk--solo .lw-continue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lw-continue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lw-tile { position: relative; display: flex; flex-direction: column; min-height: 176px; padding: 22px 22px 18px; border: 1px solid var(--lw-edge); border-radius: 22px; transition: transform var(--lw-t) var(--lw-ease), box-shadow var(--lw-t) var(--lw-ease), border-color var(--lw-t) var(--lw-ease); }
.lw-tile__t { font-family: var(--lw-display); font-size: 23px; line-height: 1.2; padding-right: 30px; transition: color var(--lw-t) var(--lw-ease); }
.lw-tile__t::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.lw-tile__forget { z-index: 1; }
.lw-tile .lw-cite { margin-top: 6px; }
.lw-tile__place { margin-top: auto; padding-top: 18px; display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 500; min-width: 0; }
.lw-tile__place b { font-family: var(--lw-code); font-size: 13px; font-weight: 600; color: var(--lw-accent); white-space: nowrap; }
.lw-tile__place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-tile__forget { position: absolute; right: 52px; top: 14px; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; opacity: 0; cursor: pointer; transition: opacity var(--lw-t) var(--lw-ease), background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.lw-tile__forget .lw-icon { width: 15px; height: 15px; }
.lw-ribbon { position: absolute; top: -1px; right: 20px; width: 18px; height: 26px; color: var(--lw-accent); }
.lw-ribbon svg, .lw-mk svg { display: block; width: 100%; height: 100%; }
.lw-edge { position: relative; display: flex; align-items: center; gap: 3px; height: 12px; margin-top: 12px; }
.lw-edge i { display: block; min-width: 6px; height: 2px; background: var(--lw-ink); border-radius: 1px; }
.lw-edge__read { position: absolute; left: 0; top: 4px; height: 4px; background: var(--lw-accent); border-radius: 2px; }
.lw-edge__pin { position: absolute; top: -2px; width: 10px; height: 16px; margin-left: -5px; background: var(--lw-accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.lw-saved { display: grid; gap: 10px; align-content: start; }
.lw-saved__row { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--lw-edge); border-radius: 16px; transition: background var(--lw-t) var(--lw-ease), border-color var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.lw-mk { width: 14px; height: 20px; flex: none; color: var(--lw-accent); }
.lw-saved__t { display: block; font-family: var(--lw-display); font-size: 18px; line-height: 1.25; }
.lw-saved__row .lw-cite { display: block; margin-top: 2px; color: var(--lw-ink); }
.lw-saved__more[hidden] { display: none; }

/* The shelf */
.lw-shelf { --lw-shelf-cols: minmax(0, 1fr) 300px 168px; --lw-shelf-gap: 24px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--lw-rule); }
.lw-shelf__count { font-family: var(--lw-code); font-size: 14px; margin-left: 10px; vertical-align: 4px; }
.lw-sort { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--lw-chip); }
.lw-sort button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.lw-sort button[aria-pressed="true"] { background: var(--lw-paper); box-shadow: 0 1px 2px rgba(10, 10, 15, 0.08), 0 0 0 1px var(--lw-rule-soft); }
.lw-subjects { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
/* One straight table: Law, Citation and Subject columns on hairline rows, the A–Z letter in a 44px gutter. */
.lw-shelf.lw-shelf--notes { --lw-shelf-cols: minmax(0, 1fr) 168px; }
.lw-table-head { display: grid; grid-template-columns: var(--lw-shelf-cols); column-gap: var(--lw-shelf-gap); padding: 0 40px 10px 56px; border-bottom: 1px solid var(--lw-rule); font-size: 13px; font-weight: 500; }
.lw-table-head.is-flat { padding-left: 12px; }
.lw-letters--flat .lw-letter > h3 { display: none; }
.lw-letters--flat .lw-letter { grid-template-columns: minmax(0, 1fr); }
.lw-letter { display: grid; grid-template-columns: 44px minmax(0, 1fr); border-top: 1px solid var(--lw-rule-soft); }
#documents-list > .lw-letter { margin-top: 0; }
#documents-list > .lw-letter:first-child { border-top: 0; }
.lw-letter > h3 { margin: 13px 0 0; font-family: var(--lw-display); font-weight: 400; font-size: 24px; line-height: 1; }
.lw-letter ul { margin: 0; padding: 0; list-style: none; }
.lw-law { position: relative; display: grid; grid-template-columns: var(--lw-shelf-cols); column-gap: var(--lw-shelf-gap); align-items: baseline; padding: 11px 40px 11px 12px; transition: background var(--lw-t) var(--lw-ease); }
.lw-law + .lw-law { border-top: 1px solid var(--lw-rule-soft); }
.lw-law__t { grid-column: 1; grid-row: 1; font-size: 16px; font-weight: 500; line-height: 1.4; transition: color var(--lw-t) var(--lw-ease); }
.lw-law__t::after { content: ""; position: absolute; inset: 0; }
.lw-law .lw-cite { grid-column: 2; grid-row: 1; }
.lw-law__s { grid-column: 3; grid-row: 1; font-size: 13px; }
.lw-shelf--notes .lw-law__s { grid-column: 2; }
.lw-law__d { grid-column: 1; grid-row: 2; margin-top: 2px; font-family: var(--lw-serif); font-size: 14px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-notice { margin-top: 32px; }
.lw-law__bm { position: absolute; z-index: 1; right: 8px; top: 9px; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; opacity: 0; cursor: pointer; transition: opacity var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease), background var(--lw-t) var(--lw-ease); }
.lw-law__bm .lw-icon { width: 16px; height: 16px; }
.lw-law__bm .is-filled { fill: currentColor; }
.lw-empty { padding: 28px 0 40px; font-family: var(--lw-serif); font-size: 17px; line-height: 1.6; }
.lw-empty b { font-weight: 600; }

/* Search results */
.lw-results { margin-top: 40px; max-width: 760px; }
.lw-count { margin: 0 0 22px; font-size: 15px; line-height: 1.6; }
.lw-count b { font-weight: 600; }
.lw-count a, .lw-results a.lw-link { color: var(--lw-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lw-exact { position: relative; display: block; margin-bottom: 32px; padding: 22px 24px 18px; border: 1px solid var(--lw-edge); border-radius: 22px; transition: border-color var(--lw-t) var(--lw-ease), box-shadow var(--lw-t) var(--lw-ease); }
.lw-exact__h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lw-exact__h b { font-family: var(--lw-display); font-weight: 400; font-size: 24px; line-height: 1.25; }
.lw-exact p { margin: 12px 0 14px; font-family: var(--lw-serif); font-size: 16.5px; line-height: 1.7; }
.lw-exact__go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--lw-accent); }
.lw-group { margin: 0; font-family: var(--lw-display); font-weight: 400; font-size: 20px; line-height: 1.3; }
#documents-list > * + section { margin-top: 44px; }
.lw-group .lw-n { font-family: var(--lw-code); font-size: 13px; margin-left: 6px; }
.lw-row { position: relative; display: block; margin: 0 -12px; padding: 14px 44px 14px 12px; border-radius: 14px; transition: background var(--lw-t) var(--lw-ease); }
.lw-row__t { font-size: 17px; font-weight: 500; line-height: 1.4; transition: color var(--lw-t) var(--lw-ease); }
.lw-row__t::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.lw-row__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-top: 2px; font-size: 13px; }
.lw-row__snip { margin: 6px 0 0; max-width: 64ch; font-family: var(--lw-serif); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lw-row__snip b, .lw-row__snip strong { font-weight: 600; }
.lw-row .lw-law__bm { top: 14px; }
.ak-laws mark { background: rgba(124, 58, 237, 0.16); color: inherit; border-radius: 3px; padding: 0 1px; }
.dark .ak-laws mark { background: rgba(167, 139, 250, 0.28); }
.lw-note { margin: 14px 0 0; font-family: var(--lw-serif); font-size: 15px; line-height: 1.6; }
#law-results { transition: opacity 0.15s ease; }
#law-results[aria-busy="true"] { opacity: 0.6; }

/* Official source PDFs */
.lw-sources { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--lw-rule); }
.lw-sources > summary { display: inline-flex; align-items: center; gap: 8px; margin-left: -12px; padding: 6px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.lw-sources > summary::-webkit-details-marker { display: none; }
.lw-sources > summary .lw-chev { width: 14px; height: 14px; transition: transform var(--lw-t) var(--lw-ease); }
.lw-sources[open] > summary .lw-chev { transform: rotate(90deg); }
.lw-sources ul { margin: 10px 0 0; padding: 0; list-style: none; max-width: 820px; }
.lw-sources li { padding: 12px 0; }
.lw-sources li a { font-size: 16px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--lw-t) var(--lw-ease); }
.lw-sources li p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; }
.lw-bottom { height: 96px; }

/* ---------- Reader ---------- */
.lr-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; }
.lr-crumb { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 14px; font-weight: 500; }
.lr-crumb a { padding: 4px 8px; border-radius: 999px; white-space: nowrap; transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.lr-crumb a:first-child { margin-left: -8px; }
.lr-crumb .lw-icon { width: 14px; height: 14px; }
.lr-acts { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.lr-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 14px 0 22px; border-bottom: 1px solid var(--lw-rule); }
.lr-title--compact { padding-top: 6px; }
.lr-title h1 { margin: 0; font-family: var(--lw-display); font-weight: 400; font-size: 54px; line-height: 1.05; }
.lr-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 10px; font-family: var(--lw-code); font-size: 13px; }
.lr-sub span { display: inline-flex; align-items: center; gap: 6px; }
.lr-sub .lw-icon { width: 15px; height: 15px; }
.lr-resume { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--lw-tint); color: var(--lw-accent); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background var(--lw-t) var(--lw-ease); }
.lr-resume__go { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--lw-accent); color: var(--lw-on-accent); }
.lr-resume__go .lw-icon { width: 16px; height: 16px; }
.lr-edition { max-width: 680px; margin: 20px 0 0; font-family: var(--lw-serif); font-size: 15px; line-height: 1.6; }
.lr-edition p { margin: 0 0 4px; }
.lr-edition summary { cursor: pointer; padding: 6px 0; font-family: var(--lw-sans); font-size: 14px; font-weight: 500; }
.lr-edition ul { margin: 2px 0 0; padding-left: 1.2em; }
.lr-edition a { color: var(--lw-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lr-messages { margin-top: 16px; }
.lr-messages p { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border: 1px solid var(--lw-edge); border-radius: 16px; font-size: 14px; }

.lr-body { display: grid; grid-template-columns: 280px minmax(0, 680px); gap: 64px; padding-top: 32px; }
.lr-body--solo { grid-template-columns: minmax(0, 680px); justify-content: center; }
.lr-col { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.lr-outline { position: sticky; top: calc(4rem + 1px + 1rem); align-self: start; max-height: calc(100vh - 4rem - 2rem); overflow-y: auto; padding: 2px 8px 24px 2px; overscroll-behavior: contain; scrollbar-gutter: stable; }
/* Its scrollbar is a thin ink line on no track, purple under the pointer. Chrome ignores these
   pseudo-elements once scrollbar-color is set, so only browsers without them get the standard pair. */
.lr-outline::-webkit-scrollbar { width: 12px; }
.lr-outline::-webkit-scrollbar-track { background: transparent; margin-block: 6px; }
.lr-outline::-webkit-scrollbar-thumb { min-height: 48px; border: 4px solid transparent; border-radius: 999px; background: var(--lw-thread) padding-box; }
.lr-outline::-webkit-scrollbar-thumb:hover, .lr-outline::-webkit-scrollbar-thumb:active { background-color: var(--lw-accent); }
.lr-outline::-webkit-scrollbar-button { display: none; }
@supports not selector(::-webkit-scrollbar) {
  .lr-outline { scrollbar-width: thin; scrollbar-color: var(--lw-thread) transparent; }
}
.lr-tree { margin: 0; padding: 0; list-style: none; }
.lr-tree li[hidden] { display: none; }
.lr-tree a { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 6px 8px; border-radius: 10px; font-size: 14px; line-height: 1.35; transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.lr-tree a[aria-current="true"] { background: var(--lw-tint); color: var(--lw-accent); }
.lr-tree .lr-tw { width: 16px; height: 16px; margin: -2px 0 0 -2px; border-radius: 6px; display: inline-grid; place-items: center; cursor: pointer; transition: transform var(--lw-t) var(--lw-ease); }
.lr-tree .lr-tw .lw-icon { width: 14px; height: 14px; }
.lr-tree li.is-closed > a .lr-tw { transform: rotate(-90deg); }
.lr-tree .lv1 { font-weight: 600; }
.lr-tree .lv2 { padding-left: 26px; }
.lr-tree .lv3 { padding-left: 44px; font-size: 13.5px; }
.lr-tree .lv4, .lr-tree .lv5, .lr-tree .lv6 { padding-left: 60px; font-size: 13.5px; }
.lr-tree .lr-rng { font-family: var(--lw-code); font-size: 12px; font-weight: 400; white-space: nowrap; }
.lr-tree a.is-placed .lr-lbl::after { content: ""; display: inline-block; width: 8px; height: 12px; margin-left: 6px; vertical-align: -1px; background: var(--lw-accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }

/* The description line (the SEO extractor reads this paragraph by its two utility classes) */
.ak-law-reader .lr-desc { margin: 10px 0 0; font-family: var(--lw-serif); font-size: 19px; line-height: 1.45; }
.lr-title--compact .lr-desc { margin-top: 4px; }
.lw-act.text-purple-700, .lw-act[aria-expanded="true"] { background: var(--lw-tint); color: var(--lw-accent); }
.ak-law-reader .lr-resume[hidden] { display: none !important; }

/* The reading column */
.ak-law-reader #law-text { font-family: var(--lw-serif); font-size: 17px; line-height: 1.75; hyphens: auto; -webkit-hyphens: auto; }
.ak-law-reader #law-text p { margin: 0 0 1.05em; text-align: justify; }
.ak-law-reader #law-text > :first-child { margin-top: 0; }
.ak-law-reader #law-text :is(h1, h2, h3, h4, h5, h6) { color: var(--lw-ink); text-align: left; hyphens: manual; -webkit-hyphens: manual; scroll-margin-top: 6rem; }
.ak-law-reader #law-text h1 { margin: 34px 0 6px; font-family: var(--lw-display); font-weight: 400; font-size: 32px; line-height: 1.2; }
.ak-law-reader #law-text h2 { margin: 30px 0 22px; font-family: var(--lw-display); font-weight: 400; font-size: 23px; line-height: 1.3; }
.ak-law-reader #law-text h1 + h2 { margin-top: 0; }
.ak-law-reader #law-text h3 { margin: 26px 0 14px; font-family: var(--lw-serif); font-weight: 600; font-size: 19px; line-height: 1.35; }
.ak-law-reader #law-text :is(h4, h5, h6) { margin: 22px 0 10px; font-family: var(--lw-serif); font-weight: 600; font-size: 17px; line-height: 1.4; }
.ak-law-reader #law-text :is(h1, h2, h3) .lr-range { white-space: nowrap; }
.ak-law-reader #law-text p[id] { position: relative; scroll-margin-top: 6rem; }
.ak-law-reader #law-text p > strong:first-child { font-weight: 600; }
.ak-law-reader #law-text a { color: var(--lw-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ak-law-reader #law-text ol, .ak-law-reader #law-text ul { margin: -0.35em 0 1.05em; padding-left: 2.2em; }
.ak-law-reader #law-text li { margin: 0.2em 0; padding-left: 0.2em; }
.ak-law-reader #law-text p.lr-placed::after { content: ""; position: absolute; left: -38px; top: -1px; width: 14px; height: 26px; background: var(--lw-accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%); }
.lr-anchor { position: absolute; left: -46px; top: 3px; width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; color: var(--lw-accent); opacity: 0; cursor: pointer; transition: opacity var(--lw-t) var(--lw-ease), background var(--lw-t) var(--lw-ease); }
.lr-anchor .lw-icon { width: 16px; height: 16px; }
.ak-law-reader #law-text p.lr-placed > .lr-anchor { display: none; }

/* Amendment notes, find bar */
.lr-panel { padding: 14px 18px 12px; border: 1px solid var(--lw-edge); border-radius: 22px; }
.lr-panel__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 600; }
.lr-panel__body { margin-top: 6px; font-family: var(--lw-serif); font-size: 15.5px; line-height: 1.6; }
.lr-panel__body p { margin: 6px 0 0; }
.lr-panel__body a { color: var(--lw-accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Find in this law. In one column it spans the column on a paper band that stops the text 8px under the navbar. Beside the
   outline it is a compact 40px box at the top right of the text, level with the top of the outline; once it sticks it lifts
   off the text, which stops 8px short of it. The script reads --lr-find-gap to stick it that far under the navbar. */
.ak-law-reader .law-find { --lr-find-gap: 0px; position: sticky; top: calc(4rem + 1px); z-index: 20; display: flex; padding: 8px 0 10px; background: var(--lw-paper); }
.ak-law-reader .law-find::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: linear-gradient(var(--lw-paper), rgb(var(--color-paper-bg) / 0)); pointer-events: none; }
.ak-law-reader .law-find__field { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 4px 0 16px; border: 1px solid var(--lw-edge); border-radius: 999px; background: var(--lw-paper); transition: border-color var(--lw-t) var(--lw-ease), box-shadow var(--lw-t) var(--lw-ease); }
.ak-law-reader .law-find__field:focus-within { border-color: var(--lw-accent); box-shadow: var(--lw-focus); }
.ak-law-reader .law-find__icon { flex: none; width: 18px; height: 18px; margin-right: 8px; color: var(--lw-ink); }
.ak-law-reader .law-find__input { flex: 1 1 auto; min-width: 0; padding: 0; color: var(--lw-ink); caret-color: var(--lw-accent); font: 400 15px/1.4 var(--lw-sans); outline: none; }
.ak-law-reader .law-find__input::placeholder { color: rgb(var(--color-paper-muted)); opacity: 1; }
.ak-law-reader .law-find__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ak-law-reader .law-find__count { flex: none; padding: 0 6px 0 8px; font: 400 13px/1 var(--lw-code); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ak-law-reader .law-find__count:empty { display: none; }
.ak-law-reader .law-find__btn { flex: none; width: 34px; height: 34px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--lw-ink); cursor: pointer; transition: background var(--lw-t) var(--lw-ease), color var(--lw-t) var(--lw-ease); }
.ak-law-reader .law-find__btn:disabled { opacity: 0.35; cursor: default; }
.ak-law-reader .law-find__btn:focus-visible { border-radius: 999px; }
@media (min-width: 1024px) {
  .ak-law-reader .lr-body:not(.lr-body--solo) .law-find { --lr-find-gap: 18px; top: calc(4rem + 1px + 18px); justify-content: flex-end; margin-top: 2px; padding: 0; background: none; }
  .ak-law-reader .lr-body:not(.lr-body--solo) .law-find::after { content: none; }
  .ak-law-reader .lr-body:not(.lr-body--solo) .law-find__field { flex: 0 1 400px; height: 40px; padding-left: 14px; }
  .ak-law-reader .lr-body:not(.lr-body--solo) .law-find__btn { width: 32px; height: 32px; }
  .ak-law-reader .lr-body:not(.lr-body--solo) .law-find.is-stuck .law-find__field { box-shadow: 0 0 0 8px var(--lw-paper), var(--lw-float); }
  .ak-law-reader .lr-body:not(.lr-body--solo) .law-find.is-stuck .law-find__field:focus-within { box-shadow: var(--lw-focus), 0 0 0 8px var(--lw-paper), var(--lw-float); }
}
@media (max-width: 639px) {
  .ak-law-reader .law-find__icon { display: none; }
}
.ak-law-reader #law-text mark.law-find-hit { padding: 0 1px; border-radius: 2px; background-color: #e9d5ff; color: inherit; }
.ak-law-reader #law-text mark.law-find-hit.is-current { background-color: #a855f7; color: #fff; box-shadow: 0 0 0 2px #a855f7; }
.dark .ak-law-reader #law-text mark.law-find-hit { background-color: rgba(168, 85, 247, 0.32); }
.dark .ak-law-reader #law-text mark.law-find-hit.is-current { background-color: #c084fc; color: #111827; box-shadow: 0 0 0 2px #c084fc; }
.ak-law-reader #law-text .law-pin { border-radius: 6px; background: rgb(124 58 237 / 0.10); box-shadow: 0 0 0 6px rgb(124 58 237 / 0.10); }
.dark .ak-law-reader #law-text .law-pin { background: rgb(167 139 250 / 0.16); box-shadow: 0 0 0 6px rgb(167 139 250 / 0.16); }

/* Phone: the outline folds into one bottom line that opens a sheet */
.lr-bar { display: none; }
.lr-sheet { position: fixed; inset: 0; z-index: 60; }
.lr-sheet__scrim { position: absolute; inset: 0; background: rgba(10, 10, 15, 0.45); animation: lw-fade var(--lw-t) var(--lw-ease); }
.lr-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; display: flex; flex-direction: column; padding: 8px 16px 20px; border-top: 1px solid var(--lw-edge); border-radius: 22px 22px 0 0; background: var(--lw-paper); box-shadow: var(--lw-lift); animation: lw-rise var(--lw-t) var(--lw-ease); }
.lr-sheet__h { display: flex; align-items: center; justify-content: space-between; padding: 8px 0 12px; }
.lr-sheet__h h2 { margin: 0; font-family: var(--lw-display); font-weight: 400; font-size: 22px; }
.lr-sheet__scroll { overflow-y: auto; overscroll-behavior: contain; }
@keyframes lw-fade { from { opacity: 0; } }
@keyframes lw-rise { from { transform: translateY(24px); opacity: 0; } }

@media (max-width: 1023px) {
  .lr-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .lr-body > .lr-outline { display: none; }
  .lr-anchor { display: none; }
  .ak-law-reader #law-text p.lr-placed::after { left: -16px; width: 10px; height: 20px; }
  .lr-bar { position: fixed; left: 16px; right: 74px; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 5px 0 16px; border: 1px solid var(--lw-edge); border-radius: 999px; background: var(--lw-paper); box-shadow: var(--lw-lift); font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
  .lr-bar__here { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lr-bar__at { flex: none; font-family: var(--lw-code); font-size: 13px; font-weight: 600; color: var(--lw-accent); }
  .lr-bar__at:empty { display: none; }
  .lr-bar__icon { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: var(--lw-chip); flex: none; }
  .lr-sheet .lr-tree a { padding-top: 9px; padding-bottom: 9px; }
  .lw-shelf { --lw-shelf-cols: minmax(0, 1fr) 220px 140px; --lw-shelf-gap: 20px; }
}
/* Below 900px a shelf row stacks: the title, then the citation and subject on one line. */
@media (max-width: 899px) {
  .lw-desk { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lw-table-head { display: none; }
  .lw-law { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  .lw-law__t, .lw-law__d { flex-basis: 100%; }
  .lw-law .lw-cite { order: 1; margin-top: 3px; }
  .lw-law:has(.lw-law__s) .lw-cite::after { content: "·"; margin-left: 6px; font-family: var(--lw-sans); }
  .lw-law__s { order: 2; margin-top: 3px; white-space: nowrap; }
  .lw-law__d { order: 3; }
}
@media (max-width: 639px) {
  .lw-frame { padding: 0 16px; }
  .lw-head { padding-top: 24px; }
  .lw-head h1 { font-size: 40px; }
  .lw-head__row { margin-bottom: 16px; }
  .lw-scope { display: none; }
  .lw-continue, .lw-desk--solo .lw-continue { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .lw-continue > * { scroll-snap-align: start; }
  .lw-continue, .lw-subjects { scroll-padding-inline: 16px; }
  .lw-tile { min-height: 168px; }
  .lw-tile__t { font-size: 21px; }
  .lw-tile__forget { opacity: 1; }
  .lw-shelf .lw-rowhead { flex-wrap: wrap; }
  .lw-subjects { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 22px; padding: 2px 16px 6px; scrollbar-width: none; }
  .lw-letter { grid-template-columns: 30px minmax(0, 1fr); }
  .lw-letter > h3 { font-size: 22px; }
  .lw-law { padding: 12px 36px 12px 4px; }
  .lw-law__bm { opacity: 1; }
  .lw-results { margin-top: 28px; }
  .lw-exact { padding: 18px 18px 16px; }
  .lr-meta { flex-wrap: wrap; }
  .lr-acts .lw-act { padding: 0 8px; }
  .lr-acts .lw-act > span { display: none; }
  .lr-title { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lr-title h1 { font-size: 40px; }
  .ak-law-reader #law-text { font-size: 16.5px; }
  .ak-law-reader #law-text p { text-align: left; }
}
/* ---------- Motion: one set on the house curve; the ribbon is the one authored moment ---------- */
@keyframes lw-arrive { from { opacity: 0.4; transform: translateY(8px); } }
@keyframes lw-settle { from { opacity: 0.4; transform: translateY(4px); } }
@keyframes lw-fade-in { from { opacity: 0; } }
@keyframes lw-track { from { transform: scaleX(0); } }
@keyframes lw-ribbon-drop { from { opacity: 0; transform: translateY(-12px); } }
@keyframes lw-slide-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes lw-unfold { from { opacity: 0.4; clip-path: inset(0 0 100% 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes lw-drop-in { from { opacity: 0; transform: translateY(-4px); } }
@keyframes lw-leave { to { opacity: 0; transform: scale(0.96); } }
@keyframes lw-pop { 40% { transform: scale(1.2); } }
@keyframes lw-wash { from { background-color: var(--lw-tint-strong); box-shadow: 0 0 0 10px var(--lw-tint-strong); } to { background-color: transparent; box-shadow: 0 0 0 10px transparent; } }
@keyframes lw-pin-wash { from { background-color: rgb(124 58 237 / 0.24); box-shadow: 0 0 0 6px rgb(124 58 237 / 0.24); } }
@keyframes lw-sink { to { opacity: 0; transform: translateY(24px); } }
@keyframes lw-fade-out { to { opacity: 0; } }

/* Index: the desk's tiles rise in a step apart; each Continue track draws out to your place and its ribbon drops onto it. */
.lw-arrive { animation: lw-arrive 360ms var(--lw-ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.lw-arrive .lw-edge__read { transform-origin: left center; animation: lw-track 720ms var(--lw-ease) backwards; animation-delay: calc(var(--i, 0) * 60ms + 180ms); }
.lw-arrive .lw-edge__pin, .lw-arrive .lw-ribbon { animation: lw-ribbon-drop 360ms var(--lw-ease) backwards; animation-delay: calc(var(--i, 0) * 60ms + 620ms); }
.lw-arrive .lw-ribbon { animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.lw-leaving { animation: lw-leave 240ms cubic-bezier(0.7, 0, 0.84, 0) forwards; pointer-events: none; }
.lw-swap > .lw-results, .lw-swap > .lw-shelf { animation: lw-settle 300ms var(--lw-ease) backwards; }
.lw-reordered li { animation: lw-settle 300ms var(--lw-ease) backwards; animation-delay: calc(var(--i, 0) * 20ms); }
.bookmark-btn.is-popping .bookmark-icon-filled { animation: lw-pop 300ms var(--lw-ease); }

/* Reader: back at your place the Continue pill slides in; landing there drops the ribbon and fades a violet wash. */
.lr-resume.lw-in { animation: lw-slide-in 360ms var(--lw-ease) 160ms backwards; }
.ak-law-reader #law-text p.lr-landing { border-radius: 2px; animation: lw-wash 1600ms ease-out; }
.ak-law-reader #law-text p.lr-placed.lr-landing::after { animation: lw-ribbon-drop 360ms var(--lw-ease) backwards; }
.ak-law-reader #law-text .law-pin { animation: lw-pin-wash 1200ms ease-out backwards; }
.ak-law-reader #law-currency-panel:not([hidden]) { animation: lw-unfold 240ms var(--lw-ease); }
.ak-law-reader #law-find-bar:not([hidden]) .law-find__field { animation: lw-drop-in 320ms var(--lw-ease); }
.lr-tree li.lr-reveal { animation: lw-drop-in 240ms var(--lw-ease) backwards; animation-delay: calc(var(--i, 0) * 20ms); }
.lr-cite.is-on > span { animation: lw-fade-in 240ms var(--lw-ease); }
.lr-sheet.is-closing .lr-sheet__panel { animation: lw-sink 280ms cubic-bezier(0.7, 0, 0.84, 0) forwards; }
.lr-sheet.is-closing .lr-sheet__scrim { animation: lw-fade-out 280ms ease-in forwards; }

@media (prefers-reduced-motion: reduce) {
  .ak-laws *, .ak-laws *::after, .ak-law-reader *, .ak-law-reader *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
  .lw-tile:hover { transform: none !important; }
}

/* The site's global form styles paint fields (and dark-mode fields) as square boxes; inside the pills they stay clear. */
.lw-box input[type="search"], .lw-scope select, .ak-law-reader .law-find__input {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
}
.lw-round:focus-visible, .lw-go:focus-visible, .lr-resume:focus-visible, .lw-pill:focus-visible, .lw-act:focus-visible { border-radius: 999px; }


/* Hover tints and lifts only where a pointer can hover, so a tap never leaves one behind. */
@media (hover: hover) {
  .lw-act:hover { background: var(--lw-tint); color: var(--lw-accent); }
  .lw-pill:hover { background: var(--lw-tint); color: var(--lw-accent); border-color: var(--lw-accent); }
  .lw-round:hover { background: var(--lw-tint); color: var(--lw-accent); }
  .lw-box__clear:hover { background: var(--lw-tint); color: var(--lw-accent); }
  .lw-scope:hover { background: var(--lw-chip-hover); color: var(--lw-accent); }
  .lw-go:hover { background: var(--lw-accent-hover); }
  .lw-tile:hover { transform: translateY(-4px); box-shadow: var(--lw-tile-lift); border-color: var(--lw-accent); }
  .lw-tile:hover .lw-tile__t { color: var(--lw-accent); }
  .lw-tile:hover .lw-tile__forget, .lw-tile__forget:focus-visible { opacity: 1; }
  .lw-tile__forget:hover { background: var(--lw-tint); color: var(--lw-accent); }
  .lw-saved__row:hover { background: var(--lw-tint); border-color: var(--lw-accent); color: var(--lw-accent); }
  .lw-sort button:hover { color: var(--lw-accent); }
  .lw-law:hover { background: var(--lw-tint); }
  .lw-law:hover .lw-law__t { color: var(--lw-accent); }
  .lw-law:hover .lw-law__bm, .lw-law__bm:focus-visible, .lw-law__bm[data-bookmarked="true"] { opacity: 1; }
  .lw-law__bm:hover, .lw-law__bm[data-bookmarked="true"] { color: var(--lw-accent); }
  .lw-law__bm:hover { background: var(--lw-tint); }
  .lw-exact:hover { border-color: var(--lw-accent); box-shadow: var(--lw-tile-lift); }
  .lw-row:hover { background: var(--lw-tint); }
  .lw-row:hover .lw-row__t { color: var(--lw-accent); }
  .lw-row:hover .lw-law__bm { opacity: 1; }
  .lw-sources > summary:hover { background: var(--lw-tint); color: var(--lw-accent); }
  .lw-sources li a:hover { color: var(--lw-accent); }
  .lr-crumb a:hover { background: var(--lw-tint); color: var(--lw-accent); }
  .lr-resume:hover { background: var(--lw-tint-strong); }
  .lr-edition summary:hover { color: var(--lw-accent); }
  .ak-law-reader .law-find__btn:hover:enabled { background: var(--lw-tint); color: var(--lw-accent); }
  .lr-tree a:hover { background: var(--lw-tint); color: var(--lw-accent); }
  .ak-law-reader #law-text a:hover { color: var(--lw-accent-hover); }
  .ak-law-reader #law-text p[id]:hover > .lr-anchor, .lr-anchor:focus-visible { opacity: 1; }
  .lr-anchor:hover { background: var(--lw-tint); }
}

/* Where nothing can hover (phones, touch tablets), the per-item actions stay visible. */
@media (hover: none) {
  .lw-tile__forget, .lw-law__bm { opacity: 1; }
}
