:root {
  --ink: #131313;
  --muted: #605c55;
  --panel: #dedbd3;
  --stage: #686a62;
  --paper: #f8f5ed;
  --felony: #cf3b30;
  --felony-deep: #a72d25;
  --felony-soft: #ffdeda;
  --felony-wash: #fff8f5;
  --misdemeanor: #12795f;
  --misdemeanor-deep: #064637;
  --misdemeanor-soft: #d9f7eb;
  --misdemeanor-wash: #f4fffa;
  --wobbler: #c56a14;
  --wobbler-deep: #743706;
  --wobbler-soft: #ffe8c2;
  --wobbler-wash: #fffaf0;
  --infraction: #3267a8;
  --infraction-deep: #173b66;
  --infraction-soft: #e3efff;
  --infraction-wash: #f6faff;
  --lookup: #1f2937;
  --lookup-soft: #e5e7eb;
  --civil: #3b5b92;
  --civil-soft: #e1ecff;
  --municipal: #6f4e37;
  --municipal-soft: #f1e3d3;
  --county: #595f72;
  --county-soft: #e6e8ef;
  --federal: #174a7c;
  --federal-soft: #d8ecff;
  --general: #5b3b82;
  --general-soft: #ece1ff;
  --case-law: #24324b;
  --case-law-soft: #e5ebf6;
  --radio: #111827;
  --radio-soft: #dbeafe;
  --vehicle: #166f6b;
  --vehicle-soft: #ddf7f1;
  --vehicle-road: #26333a;
  --gold: #ffd44d;
  --cream: #fffaf0;
  --line: rgba(19, 19, 19, 0.12);
  --edge: rgba(255, 255, 255, 0.62);
  --shadow-soft: 0 24px 70px rgba(30, 27, 22, 0.16);
  --shadow-card: 0 18px 38px rgba(20, 20, 18, 0.14);
}

/* Matte visual pass: keep the layout, remove glossy/metallic surfaces. */
body {
  background: #f2efe8;
}

body.theme-dark {
  background: #101110;
}

.hero-bar h1,
body.theme-dark .hero-bar h1 {
  background: transparent;
  box-shadow: none;
}

.hero-bar h1 {
  text-shadow: 0 2px 0 #fff;
}

body.theme-dark .hero-bar h1 {
  text-shadow: none;
}

.kakobuy-trigger,
.contact-trigger,
.ten-codes-trigger,
.theme-toggle,
.secondary-button {
  background: #1f1f1d;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.12);
}

.theme-toggle {
  background: #f7f5ef;
}

body.theme-dark .theme-toggle {
  background: #e8dfd0;
}

body.theme-dark .kakobuy-trigger,
body.theme-dark .contact-trigger,
body.theme-dark .ten-codes-trigger,
body.theme-dark .secondary-button {
  background: #242624;
}

.categories-panel,
.class-panel,
.latest-panel {
  background: var(--panel);
  box-shadow: 0 18px 36px rgba(28, 27, 24, 0.09);
}

body.theme-dark .categories-panel,
body.theme-dark .class-panel,
body.theme-dark .latest-panel {
  background: var(--panel);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.category-chip,
.severity-chip,
body.theme-dark .category-chip,
body.theme-dark .severity-chip {
  background: var(--paper);
  box-shadow: none;
}

body.theme-dark .category-chip,
body.theme-dark .severity-chip {
  background: #252725;
}

.category-chip:hover,
.category-chip.active,
.severity-chip:hover,
.severity-chip.active {
  background: #22221f;
  box-shadow: none;
}

body.theme-dark .category-chip:hover,
body.theme-dark .category-chip.active,
body.theme-dark .severity-chip:hover,
body.theme-dark .severity-chip.active {
  background: #eee6d8;
}

.severity-chip-felony,
.severity-chip-felony:hover,
.severity-chip-felony.active,
body.theme-dark .severity-chip-felony,
body.theme-dark .severity-chip-felony:hover,
body.theme-dark .severity-chip-felony.active {
  background: var(--felony);
  box-shadow: none;
}

.severity-chip-wobbler {
  background: var(--wobbler-soft);
}

.severity-chip-misdemeanor {
  background: var(--misdemeanor-soft);
}

.severity-chip-infraction {
  background: var(--infraction-soft);
}

.severity-chip-wobbler:hover,
.severity-chip-wobbler.active {
  background: var(--wobbler);
}

.severity-chip-misdemeanor:hover,
.severity-chip-misdemeanor.active {
  background: var(--misdemeanor);
}

.severity-chip-infraction:hover,
.severity-chip-infraction.active {
  background: var(--infraction);
}

.severity-chip-federal:hover,
.severity-chip-federal.active {
  background: var(--federal);
}

.severity-chip-civil:hover,
.severity-chip-civil.active {
  background: var(--civil);
}

.products-panel {
  background: var(--stage);
  box-shadow: 0 18px 42px rgba(28, 27, 24, 0.15);
}

body.theme-dark .products-panel {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.product-card,
body.theme-dark .product-card {
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(20, 20, 18, 0.1);
}

body.theme-dark .product-card {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.product-card:hover,
.product-card:focus-visible,
.product-card.severity-felony:hover,
.product-card.severity-felony:focus-visible {
  box-shadow: 0 18px 34px rgba(20, 20, 18, 0.16);
}

.product-band,
.product-code,
.product-offence-class,
.product-card.severity-felony .product-band,
.product-card.severity-felony .product-code,
.product-card.severity-felony .product-offence-class,
.product-card.severity-misdemeanor .product-band,
.product-card.severity-misdemeanor .product-code,
.product-card.severity-misdemeanor .product-offence-class,
.product-card.severity-wobbler .product-band,
.product-card.severity-wobbler .product-code,
.product-card.severity-wobbler .product-offence-class,
.product-card.severity-infraction .product-band,
.product-card.severity-infraction .product-code,
.product-card.severity-infraction .product-offence-class {
  box-shadow: none;
  text-shadow: none;
}

.product-title,
body.theme-dark .product-title {
  background: #fff;
  box-shadow: none;
}

body.theme-dark .product-title {
  background: #232523;
}

.product-card.severity-felony,
body.theme-dark .product-card.severity-felony {
  box-shadow: 0 12px 24px rgba(86, 40, 34, 0.11);
}

.product-card.severity-felony .product-title {
  background: var(--felony-soft);
}

body.theme-dark .product-card.severity-felony .product-title {
  background: var(--felony-soft);
}

.product-price,
.product-arrestable,
body.theme-dark .product-price,
body.theme-dark .product-arrestable {
  box-shadow: none;
}

.product-price {
  background: var(--gold);
}

.product-arrestable {
  background: #eceae4;
}

body.theme-dark .product-arrestable {
  background: #2d302d;
}

.contact-card,
.kakobuy-card,
.ten-codes-card,
.case-law-card,
.law-detail-card,
body.theme-dark .contact-card,
body.theme-dark .kakobuy-card,
body.theme-dark .ten-codes-card,
body.theme-dark .case-law-card,
body.theme-dark .law-detail-card {
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.case-law-grid section,
.law-detail-grid section,
body.theme-dark .case-law-grid section,
body.theme-dark .law-detail-grid section {
  background: #fff;
  box-shadow: none;
}

body.theme-dark .case-law-grid section,
body.theme-dark .law-detail-grid section {
  background: #252725;
}

/* Password gate and final card alignment. */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(242, 240, 234, 0.56);
  backdrop-filter: blur(16px);
}

.access-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid #cbc8c0;
  border-radius: 22px;
  background: #deddd7;
  color: #111;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.18);
}

.access-kicker,
.access-label,
.access-error {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.access-kicker {
  color: #5e5d57;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.access-card h1 {
  margin: 8px 0 22px;
  font-family: "Cooper Black", "Franklin Gothic Heavy", "Arial Black", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 0.92;
}

.access-label {
  display: block;
  margin-bottom: 8px;
  color: #5e5d57;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.access-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #bdb9b0;
  border-radius: 12px;
  background: #eeeeea;
  color: #111;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 900;
  outline: 0;
}

.access-input::placeholder {
  color: #77736b;
}

.access-input:focus {
  border-color: #6d6e67;
}

.access-error {
  min-height: 20px;
  margin-top: 9px;
  color: #d23b32;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.access-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: #1f1f1d;
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .page-shell {
  filter: blur(12px);
  pointer-events: none;
  user-select: none;
}

body.theme-dark .access-gate {
  background: rgba(16, 17, 16, 0.66);
}

body.theme-dark .access-card {
  border-color: #343834;
  background: #1f211f;
  color: #fff7e8;
}

body.theme-dark .access-kicker,
body.theme-dark .access-label {
  color: #aaa397;
}

body.theme-dark .access-input {
  border-color: #343834;
  background: #2d302d;
  color: #fff7e8;
}

.product-copy {
  min-height: 100% !important;
  grid-template-rows: auto minmax(84px, auto) auto minmax(0, 1fr) !important;
}

.product-meta {
  align-self: end !important;
  margin-top: auto !important;
}

/* Keep felony title boxes neutral; only the strip/chips should be red. */
.product-card.severity-felony .product-title {
  background: #fff !important;
  color: #111 !important;
}

body.theme-dark .product-card.severity-felony .product-title {
  background: #232523 !important;
  color: #fff7e8 !important;
}

/* Crime-type class filters. */
.severity-chip-murder-class-1,
.severity-chip-murder-class-1:hover,
.severity-chip-murder-class-1.active {
  background: #d23b32 !important;
  color: #fff !important;
  border-color: #c9352d !important;
}

.severity-chip-murder-class-2 {
  background: #f3d2cc !important;
  color: #9f332b !important;
}

.severity-chip-murder-class-3 {
  background: #f6ded7 !important;
  color: #8b3a2f !important;
}

.severity-chip-assault-battery {
  background: #f3d2cc !important;
  color: #9f332b !important;
}

.severity-chip-theft-robbery {
  background: #eadcc9 !important;
  color: #65462c !important;
}

.severity-chip-drugs {
  background: #d9f3e7 !important;
  color: #16836d !important;
}

.severity-chip-weapons {
  background: #e2e4ea !important;
  color: #303744 !important;
}

.severity-chip-traffic {
  background: #d8ecff !important;
  color: #215b91 !important;
}

.severity-chip-murder-class-2:hover,
.severity-chip-murder-class-2.active,
.severity-chip-murder-class-3:hover,
.severity-chip-murder-class-3.active,
.severity-chip-assault-battery:hover,
.severity-chip-assault-battery.active,
.severity-chip-theft-robbery:hover,
.severity-chip-theft-robbery.active,
.severity-chip-drugs:hover,
.severity-chip-drugs.active,
.severity-chip-weapons:hover,
.severity-chip-weapons.active,
.severity-chip-traffic:hover,
.severity-chip-traffic.active {
  background: #24231f !important;
  color: #fff !important;
}

/* EOF badge refinement: keep arrest/fine tags compact. */
.product-meta { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important; gap: 8px !important; }
.product-arrestable, .product-price, body.theme-dark .product-arrestable, body.theme-dark .product-price {
  min-height: 36px !important;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: 0.6rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.05 !important;
  text-align: center !important;
}
.product-arrestable { background: #ecece8 !important; color: #111 !important; }
.product-price { background: #ffca3a !important; color: #111 !important; }
body.theme-dark .product-arrestable { background: #2d302d !important; color: #fff7e8 !important; }
body.theme-dark .product-price { background: #d8a928 !important; color: #111 !important; }

/* Keep felony title boxes neutral; only the strip/chips should be red. */
.product-card.severity-felony .product-title {
  background: #fff !important;
  color: #111 !important;
}

body.theme-dark .product-card.severity-felony .product-title {
  background: #232523 !important;
  color: #fff7e8 !important;
}
/* EOF screenshot restore: this must stay last. */
body { background: #f3f1ec; }
.products-panel { background: #6d6e67; box-shadow: none; }
.categories-panel, .class-panel { background: #deddd7; box-shadow: 0 18px 38px rgba(17, 17, 17, 0.08); }
.category-chip, .severity-chip { background: #fff; box-shadow: none; border-radius: 12px; }
.product-card, .product-card.severity-felony, .product-card.severity-misdemeanor, .product-card.severity-wobbler, .product-card.severity-infraction, .product-card.severity-federal, .product-card.severity-civil, .product-card.severity-municipal, .product-card.severity-county, .product-card.severity-general, .product-card.severity-case-law, .product-card.severity-radio, .product-card.severity-lookup, .product-card.code-vehicle-code { background: #faf8f1; border: 0; box-shadow: none; }
.product-band, .product-card.severity-felony .product-band, .product-card.severity-misdemeanor .product-band, .product-card.severity-wobbler .product-band, .product-card.severity-infraction .product-band, .product-card.severity-federal .product-band, .product-card.severity-civil .product-band, .product-card.severity-municipal .product-band, .product-card.severity-county .product-band, .product-card.severity-general .product-band, .product-card.severity-case-law .product-band, .product-card.severity-radio .product-band, .product-card.severity-lookup .product-band, .product-card.code-vehicle-code .product-band { min-height: 8px; height: 8px; margin: -12px -12px 12px; padding: 0; color: transparent; font-size: 0; line-height: 0; box-shadow: none; text-shadow: none; }
.product-card.severity-felony .product-band, .product-card.severity-felony .product-code, .product-card.severity-felony .product-offence-class { background: #d23b32; }
.product-card.severity-felony .product-title { background: #fff; color: #111; }
.product-title, .product-card.code-vehicle-code .product-title, .product-card.severity-misdemeanor .product-title, .product-card.severity-wobbler .product-title, .product-card.severity-infraction .product-title, .product-card.severity-federal .product-title, .product-card.severity-civil .product-title, .product-card.severity-municipal .product-title, .product-card.severity-county .product-title, .product-card.severity-general .product-title, .product-card.severity-case-law .product-title, .product-card.severity-radio .product-title, .product-card.severity-lookup .product-title { background: #fff; color: #111; box-shadow: none; text-shadow: none; }
.product-price { background: #ffca3a; box-shadow: none; }
.product-arrestable { background: #ecece8; box-shadow: none; }

/* Restore screenshot-style layout: flat cream cards, thin class strip, small chips. */
body {
  background: #f3f1ec;
}

.page-shell {
  width: min(1720px, calc(100% - 28px));
}

.hero-bar h1 {
  color: #111;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow: 0 2px 0 #fff, 0 10px 22px rgba(17, 17, 17, 0.12);
}

.kakobuy-trigger,
.contact-trigger,
.ten-codes-trigger {
  background: #1f1f1d;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.16);
}

.theme-toggle {
  background: #ffffff;
  color: #111;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.1);
}

.categories-panel,
.class-panel {
  background: #deddd7;
  border: 1px solid #cac8c0;
  border-radius: 22px;
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.08);
}

.products-panel {
  background: #6d6e67;
  border: 0;
  border-radius: 20px;
  box-shadow: none;
}

.search-row {
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.toolbar input {
  min-height: 50px;
  background: #fff;
  border: 1px solid #ddd9d2;
  border-radius: 12px;
  box-shadow: none;
}

.secondary-button {
  min-height: 50px;
  background: #fff;
  color: #111;
  border: 1px solid #ddd9d2;
  border-radius: 12px;
  box-shadow: none;
}

.category-chip,
.severity-chip {
  background: #fff;
  border: 1px solid #e5e1db;
  border-radius: 12px;
  box-shadow: none;
}

.category-chip:hover,
.category-chip.active,
.severity-chip:hover,
.severity-chip.active {
  background: #24231f;
  color: #fff;
  box-shadow: none;
}

.severity-chip-felony {
  background: #ffe0dc;
  color: #c9362e;
  border-color: #f2c8c2;
}

.severity-chip-felony:hover,
.severity-chip-felony.active {
  background: #d23b32;
  color: #fff;
}

.severity-chip-wobbler {
  background: #ffe5bf;
  color: #8d5a11;
}

.severity-chip-misdemeanor {
  background: #d9f3e7;
  color: #18806b;
}

.severity-chip-infraction {
  background: #e3ebf7;
  color: #61728b;
}

.severity-chip-federal {
  background: #d8ecff;
  color: #215b91;
}

.severity-chip-civil {
  background: #dce8fb;
  color: #42659b;
}

.severity-chip-municipal {
  background: #efe1cf;
  color: #72553a;
}

.severity-chip-county {
  background: #e3e6ee;
  color: #687184;
}

.products-grid {
  gap: 12px;
}

.product-card,
.product-card.severity-felony,
.product-card.severity-misdemeanor,
.product-card.severity-wobbler,
.product-card.severity-infraction,
.product-card.severity-federal,
.product-card.severity-civil,
.product-card.severity-municipal,
.product-card.severity-county,
.product-card.severity-general,
.product-card.severity-case-law,
.product-card.severity-radio,
.product-card.severity-lookup,
.product-card.code-vehicle-code {
  min-height: 238px;
  padding: 12px;
  background: #faf8f1;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
}

.product-card:hover,
.product-card:focus-visible,
.product-card.severity-felony:hover,
.product-card.severity-felony:focus-visible {
  transform: translateY(-2px);
  box-shadow: none;
}

.product-band,
.product-card.severity-felony .product-band,
.product-card.severity-misdemeanor .product-band,
.product-card.severity-wobbler .product-band,
.product-card.severity-infraction .product-band,
.product-card.severity-federal .product-band,
.product-card.severity-civil .product-band,
.product-card.severity-municipal .product-band,
.product-card.severity-county .product-band,
.product-card.severity-general .product-band,
.product-card.severity-case-law .product-band,
.product-card.severity-radio .product-band,
.product-card.severity-lookup .product-band,
.product-card.code-vehicle-code .product-band {
  min-height: 8px;
  height: 8px;
  margin: -12px -12px 12px;
  padding: 0;
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  text-shadow: none;
}

.product-card.severity-felony .product-band,
.product-card.severity-felony .product-code,
.product-card.severity-felony .product-offence-class {
  background: #d23b32;
}

.product-card.severity-misdemeanor .product-band,
.product-card.severity-misdemeanor .product-code,
.product-card.severity-misdemeanor .product-offence-class {
  background: #18806b;
}

.product-card.severity-wobbler .product-band,
.product-card.severity-wobbler .product-code,
.product-card.severity-wobbler .product-offence-class {
  background: #c56a14;
}

.product-card.severity-infraction .product-band,
.product-card.severity-infraction .product-code,
.product-card.severity-infraction .product-offence-class {
  background: #6c7d95;
}

.product-card.severity-federal .product-band,
.product-card.severity-federal .product-code,
.product-card.severity-federal .product-offence-class {
  background: #215b91;
}

.product-card.severity-civil .product-band,
.product-card.severity-civil .product-code,
.product-card.severity-civil .product-offence-class {
  background: #42659b;
}

.product-card.severity-municipal .product-band,
.product-card.severity-municipal .product-code,
.product-card.severity-municipal .product-offence-class {
  background: #72553a;
}

.product-card.severity-county .product-band,
.product-card.severity-county .product-code,
.product-card.severity-county .product-offence-class {
  background: #687184;
}

.product-card.severity-general .product-band,
.product-card.severity-general .product-code,
.product-card.severity-general .product-offence-class {
  background: #5b3b82;
}

.product-card.severity-case-law .product-band,
.product-card.severity-case-law .product-code,
.product-card.severity-case-law .product-offence-class {
  background: #24324b;
}

.product-card.severity-radio .product-band,
.product-card.severity-radio .product-code,
.product-card.severity-radio .product-offence-class,
.product-card.severity-lookup .product-band,
.product-card.severity-lookup .product-code,
.product-card.severity-lookup .product-offence-class {
  background: #1f2937;
}

.product-card.code-vehicle-code .product-band,
.product-card.code-vehicle-code .product-code,
.product-card.code-vehicle-code .product-offence-class {
  background: #166f6b;
}

.product-code {
  min-height: 28px;
  border-radius: 8px;
  box-shadow: none;
}

.product-title,
.product-card.severity-felony .product-title,
.product-card.severity-misdemeanor .product-title,
.product-card.severity-wobbler .product-title,
.product-card.severity-infraction .product-title,
.product-card.severity-federal .product-title,
.product-card.severity-civil .product-title,
.product-card.severity-municipal .product-title,
.product-card.severity-county .product-title,
.product-card.severity-general .product-title,
.product-card.severity-case-law .product-title,
.product-card.severity-radio .product-title,
.product-card.severity-lookup .product-title,
.product-card.code-vehicle-code .product-title {
  min-height: 84px;
  background: #fff;
  border: 0;
  border-radius: 11px;
  color: #111;
  box-shadow: none;
  text-shadow: none;
}

.product-card.severity-felony .product-title {
  background: #ffe0dc;
}

.product-offence-class {
  border-radius: 8px;
  box-shadow: none;
}

.product-price {
  background: #ffca3a;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
}

.product-arrestable {
  background: #ecece8;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
}

body.theme-dark .categories-panel,
body.theme-dark .class-panel {
  background: #1f211f;
  border-color: #343834;
}

body.theme-dark .products-panel {
  background: #111312;
}

body.theme-dark .product-card,
body.theme-dark .product-card.severity-felony,
body.theme-dark .product-card.severity-misdemeanor,
body.theme-dark .product-card.severity-wobbler,
body.theme-dark .product-card.severity-infraction,
body.theme-dark .product-card.severity-federal,
body.theme-dark .product-card.severity-civil,
body.theme-dark .product-card.severity-municipal,
body.theme-dark .product-card.severity-county,
body.theme-dark .product-card.severity-general,
body.theme-dark .product-card.severity-case-law,
body.theme-dark .product-card.severity-radio,
body.theme-dark .product-card.severity-lookup,
body.theme-dark .product-card.code-vehicle-code {
  background: #191b1a;
}

body.theme-dark .product-title,
body.theme-dark .product-card.severity-felony .product-title,
body.theme-dark .product-card.severity-misdemeanor .product-title,
body.theme-dark .product-card.severity-wobbler .product-title,
body.theme-dark .product-card.severity-infraction .product-title,
body.theme-dark .product-card.severity-federal .product-title,
body.theme-dark .product-card.severity-civil .product-title,
body.theme-dark .product-card.severity-municipal .product-title,
body.theme-dark .product-card.severity-county .product-title,
body.theme-dark .product-card.severity-general .product-title,
body.theme-dark .product-card.severity-case-law .product-title,
body.theme-dark .product-card.severity-radio .product-title,
body.theme-dark .product-card.severity-lookup .product-title,
body.theme-dark .product-card.code-vehicle-code .product-title {
  background: #232523;
  color: #fff7e8;
}

body.theme-dark .product-card.severity-felony .product-title {
  background: #321817;
}

/* Refined bottom badges for arrest/fine. */
.product-meta {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 8px;
}

.product-arrestable,
.product-price,
body.theme-dark .product-arrestable,
body.theme-dark .product-price {
  min-height: 36px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-align: center;
}

.product-arrestable {
  background: #ecece8;
  color: #111;
}

.product-price {
  background: #ffca3a;
  color: #111;
}

body.theme-dark .product-arrestable {
  background: #2d302d;
  color: #fff7e8;
}

body.theme-dark .product-price {
  background: #d8a928;
  color: #111;
}

/* True final palette: flat screenshot colors, no metallic finish. */
:root {
  --panel: #deddd7;
  --stage: #6c6d66;
  --paper: #faf8f1;
  --felony: #d23b32;
  --felony-deep: #b3322b;
  --felony-soft: #ffe0dc;
  --felony-wash: #faf8f1;
  --wobbler-soft: #ffe5bf;
  --misdemeanor-soft: #d9f3e7;
  --infraction-soft: #e3ebf7;
  --federal-soft: #d8ecff;
  --civil-soft: #dce8fb;
  --municipal-soft: #efe1cf;
  --county-soft: #e3e6ee;
  --gold: #ffca3a;
}

body {
  background: #f2f0ea;
}

body.theme-dark {
  --panel: #1f211f;
  --stage: #111312;
  --paper: #191b1a;
  --felony: #d23b32;
  --felony-deep: #b3322b;
  --felony-soft: #321817;
  --felony-wash: #191b1a;
  background: #101110;
}

.categories-panel,
.class-panel,
.latest-panel {
  background: #deddd7;
  border-color: #c9c7c0;
  box-shadow: 0 14px 28px rgba(24, 24, 22, 0.08);
}

.products-panel {
  background: #6c6d66;
  border-color: #5f6059;
  box-shadow: 0 14px 30px rgba(24, 24, 22, 0.16);
}

.category-chip,
.severity-chip {
  background: #fff;
  border-color: #e5e1da;
  box-shadow: none;
}

.severity-chip-felony {
  background: #ffe0dc;
  color: #c9322b;
  border-color: #f3c3bd;
}

.severity-chip-felony:hover,
.severity-chip-felony.active {
  background: #d23b32;
  color: #fff;
}

.severity-chip-wobbler {
  background: #ffe5bf;
  color: #8c570c;
}

.severity-chip-misdemeanor {
  background: #d9f3e7;
  color: #16836d;
}

.severity-chip-infraction {
  background: #e3ebf7;
  color: #62748f;
}

.severity-chip-federal {
  background: #d8ecff;
  color: #215b91;
}

.severity-chip-civil {
  background: #dce8fb;
  color: #42659b;
}

.severity-chip-municipal {
  background: #efe1cf;
  color: #72553a;
}

.severity-chip-county {
  background: #e3e6ee;
  color: #687184;
}

.product-card,
.product-card.severity-felony,
.product-card.severity-misdemeanor,
.product-card.severity-wobbler,
.product-card.severity-infraction,
.product-card.severity-federal,
.product-card.severity-civil,
.product-card.severity-municipal,
.product-card.severity-county,
.product-card.severity-general,
.product-card.severity-case-law,
.product-card.severity-radio,
.product-card.severity-lookup,
.product-card.code-vehicle-code {
  background: #faf8f1;
  border: 0;
  box-shadow: none;
}

.product-card:hover,
.product-card:focus-visible,
.product-card.severity-felony:hover,
.product-card.severity-felony:focus-visible {
  box-shadow: none;
  transform: translateY(-2px);
}

.product-card.severity-felony .product-band,
.product-card.severity-felony .product-code,
.product-card.severity-felony .product-offence-class {
  background: #d23b32;
  color: #fff;
}

.product-card.severity-misdemeanor .product-band,
.product-card.severity-misdemeanor .product-code,
.product-card.severity-misdemeanor .product-offence-class {
  background: #16836d;
}

.product-card.severity-wobbler .product-band,
.product-card.severity-wobbler .product-code,
.product-card.severity-wobbler .product-offence-class {
  background: #c56a14;
}

.product-card.severity-infraction .product-band,
.product-card.severity-infraction .product-code,
.product-card.severity-infraction .product-offence-class {
  background: #6c7d95;
}

.product-card.severity-federal .product-band,
.product-card.severity-federal .product-code,
.product-card.severity-federal .product-offence-class {
  background: #215b91;
}

.product-card.severity-civil .product-band,
.product-card.severity-civil .product-code,
.product-card.severity-civil .product-offence-class {
  background: #42659b;
}

.product-card.severity-municipal .product-band,
.product-card.severity-municipal .product-code,
.product-card.severity-municipal .product-offence-class {
  background: #72553a;
}

.product-card.severity-county .product-band,
.product-card.severity-county .product-code,
.product-card.severity-county .product-offence-class {
  background: #687184;
}

.product-card.severity-general .product-band,
.product-card.severity-general .product-code,
.product-card.severity-general .product-offence-class {
  background: #5b3b82;
}

.product-card.severity-case-law .product-band,
.product-card.severity-case-law .product-code,
.product-card.severity-case-law .product-offence-class {
  background: #24324b;
}

.product-card.severity-radio .product-band,
.product-card.severity-radio .product-code,
.product-card.severity-radio .product-offence-class,
.product-card.severity-lookup .product-band,
.product-card.severity-lookup .product-code,
.product-card.severity-lookup .product-offence-class {
  background: #1f2937;
}

.product-card.code-vehicle-code .product-band,
.product-card.code-vehicle-code .product-code,
.product-card.code-vehicle-code .product-offence-class {
  background: #166f6b;
}

.product-title,
.product-card.severity-felony .product-title,
.product-card.severity-misdemeanor .product-title,
.product-card.severity-wobbler .product-title,
.product-card.severity-infraction .product-title,
.product-card.severity-federal .product-title,
.product-card.severity-civil .product-title,
.product-card.severity-municipal .product-title,
.product-card.severity-county .product-title,
.product-card.severity-general .product-title,
.product-card.severity-case-law .product-title,
.product-card.severity-radio .product-title,
.product-card.severity-lookup .product-title,
.product-card.code-vehicle-code .product-title {
  background: #fff;
  border-color: transparent;
  color: #111;
  box-shadow: none;
  text-shadow: none;
}

.product-card.severity-felony .product-title {
  background: #ffe0dc;
}

.product-price {
  background: #ffca3a;
  border-color: transparent;
}

.product-arrestable {
  background: #ecece8;
  border-color: transparent;
}

.search-row {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.toolbar input {
  background: #fff;
  border-color: #e1ded8;
  box-shadow: none;
}

.secondary-button {
  background: #fff;
  color: #111;
  border-color: #e1ded8;
  box-shadow: none;
}

body.theme-dark .categories-panel,
body.theme-dark .class-panel,
body.theme-dark .latest-panel {
  background: #1f211f;
  border-color: #343834;
}

body.theme-dark .products-panel {
  background: #111312;
  border-color: #30332f;
}

body.theme-dark .category-chip,
body.theme-dark .severity-chip,
body.theme-dark .product-card,
body.theme-dark .product-card.severity-felony,
body.theme-dark .product-card.severity-misdemeanor,
body.theme-dark .product-card.severity-wobbler,
body.theme-dark .product-card.severity-infraction,
body.theme-dark .product-card.severity-federal,
body.theme-dark .product-card.severity-civil,
body.theme-dark .product-card.severity-municipal,
body.theme-dark .product-card.severity-county,
body.theme-dark .product-card.severity-general,
body.theme-dark .product-card.severity-case-law,
body.theme-dark .product-card.severity-radio,
body.theme-dark .product-card.severity-lookup,
body.theme-dark .product-card.code-vehicle-code {
  background: #191b1a;
  border-color: #30332f;
}

body.theme-dark .product-title,
body.theme-dark .product-card.severity-felony .product-title,
body.theme-dark .product-card.severity-misdemeanor .product-title,
body.theme-dark .product-card.severity-wobbler .product-title,
body.theme-dark .product-card.severity-infraction .product-title,
body.theme-dark .product-card.severity-federal .product-title,
body.theme-dark .product-card.severity-civil .product-title,
body.theme-dark .product-card.severity-municipal .product-title,
body.theme-dark .product-card.severity-county .product-title,
body.theme-dark .product-card.severity-general .product-title,
body.theme-dark .product-card.severity-case-law .product-title,
body.theme-dark .product-card.severity-radio .product-title,
body.theme-dark .product-card.severity-lookup .product-title,
body.theme-dark .product-card.code-vehicle-code .product-title {
  background: #232523;
  color: #fff7e8;
}

body.theme-dark .product-card.severity-felony .product-title {
  background: #321817;
}

body.theme-dark .toolbar input,
body.theme-dark .secondary-button {
  background: #232523;
  border-color: #343834;
  color: #fff7e8;
}

/* Screenshot-style flat palette: final high-specificity color pass. */
:root {
  --panel: #deddd7;
  --stage: #6c6d66;
  --paper: #faf8f1;
  --felony: #d23b32;
  --felony-deep: #b3322b;
  --felony-soft: #ffe0dc;
  --felony-wash: #faf8f1;
  --wobbler-soft: #ffe5bf;
  --misdemeanor-soft: #d9f3e7;
  --infraction-soft: #e3ebf7;
  --federal-soft: #d8ecff;
  --civil-soft: #dce8fb;
  --municipal-soft: #efe1cf;
  --county-soft: #e3e6ee;
  --gold: #ffca3a;
}

body {
  background: #f2f0ea;
}

body.theme-dark {
  --panel: #1f211f;
  --stage: #111312;
  --paper: #191b1a;
  --felony: #d23b32;
  --felony-deep: #b3322b;
  --felony-soft: #311817;
  --felony-wash: #191b1a;
  background: #101110;
}

.categories-panel,
.class-panel,
.latest-panel {
  background: #deddd7;
  border-color: #c9c7c0;
  box-shadow: 0 16px 32px rgba(24, 24, 22, 0.08);
}

.products-panel {
  background: #6c6d66;
  border-color: #5f6059;
  box-shadow: 0 16px 32px rgba(24, 24, 22, 0.16);
}

.category-chip,
.severity-chip {
  background: #ffffff;
  border-color: #e5e1da;
  box-shadow: none;
}

.category-chip:hover,
.category-chip.active,
.severity-chip:hover,
.severity-chip.active {
  background: #24231f;
  color: #fff;
  box-shadow: none;
}

.severity-chip-felony,
.severity-chip-felony:hover,
.severity-chip-felony.active {
  background: #ffe0dc;
  color: #c9322b;
  border-color: #f3c3bd;
}

.severity-chip-felony.active,
.severity-chip-felony:hover {
  background: #d23b32;
  color: #fff;
}

.severity-chip-wobbler {
  background: #ffe5bf;
  color: #8c570c;
}

.severity-chip-misdemeanor {
  background: #d9f3e7;
  color: #16836d;
}

.severity-chip-infraction {
  background: #e3ebf7;
  color: #62748f;
}

.severity-chip-federal {
  background: #d8ecff;
  color: #215b91;
}

.severity-chip-civil {
  background: #dce8fb;
  color: #42659b;
}

.severity-chip-municipal {
  background: #efe1cf;
  color: #72553a;
}

.severity-chip-county {
  background: #e3e6ee;
  color: #687184;
}

.product-card,
.product-card.severity-felony,
.product-card.severity-misdemeanor,
.product-card.severity-wobbler,
.product-card.severity-infraction,
.product-card.severity-federal,
.product-card.severity-civil,
.product-card.severity-municipal,
.product-card.severity-county,
.product-card.severity-general,
.product-card.severity-case-law,
.product-card.severity-radio,
.product-card.severity-lookup,
.product-card.code-vehicle-code {
  background: #faf8f1;
  border: 1px solid #e8e2d8;
  box-shadow: none;
}

.product-card:hover,
.product-card:focus-visible,
.product-card.severity-felony:hover,
.product-card.severity-felony:focus-visible {
  box-shadow: none;
  transform: translateY(-2px);
}

.product-band,
.product-card.severity-felony .product-band,
.product-card.severity-felony .product-code,
.product-card.severity-felony .product-offence-class {
  background: #d23b32;
  color: #fff;
}

.product-card.severity-misdemeanor .product-band,
.product-card.severity-misdemeanor .product-code,
.product-card.severity-misdemeanor .product-offence-class {
  background: #16836d;
}

.product-card.severity-wobbler .product-band,
.product-card.severity-wobbler .product-code,
.product-card.severity-wobbler .product-offence-class {
  background: #c56a14;
}

.product-card.severity-infraction .product-band,
.product-card.severity-infraction .product-code,
.product-card.severity-infraction .product-offence-class {
  background: #6c7d95;
}

.product-card.severity-federal .product-band,
.product-card.severity-federal .product-code,
.product-card.severity-federal .product-offence-class {
  background: #215b91;
}

.product-card.severity-civil .product-band,
.product-card.severity-civil .product-code,
.product-card.severity-civil .product-offence-class {
  background: #42659b;
}

.product-card.severity-municipal .product-band,
.product-card.severity-municipal .product-code,
.product-card.severity-municipal .product-offence-class {
  background: #72553a;
}

.product-card.severity-county .product-band,
.product-card.severity-county .product-code,
.product-card.severity-county .product-offence-class {
  background: #687184;
}

.product-card.severity-general .product-band,
.product-card.severity-general .product-code,
.product-card.severity-general .product-offence-class {
  background: #5b3b82;
}

.product-card.severity-case-law .product-band,
.product-card.severity-case-law .product-code,
.product-card.severity-case-law .product-offence-class {
  background: #24324b;
}

.product-card.severity-radio .product-band,
.product-card.severity-radio .product-code,
.product-card.severity-radio .product-offence-class,
.product-card.severity-lookup .product-band,
.product-card.severity-lookup .product-code,
.product-card.severity-lookup .product-offence-class {
  background: #1f2937;
}

.product-card.code-vehicle-code .product-band,
.product-card.code-vehicle-code .product-code,
.product-card.code-vehicle-code .product-offence-class {
  background: #166f6b;
}

.product-title,
.product-card.severity-felony .product-title,
.product-card.severity-misdemeanor .product-title,
.product-card.severity-wobbler .product-title,
.product-card.severity-infraction .product-title,
.product-card.severity-federal .product-title,
.product-card.severity-civil .product-title,
.product-card.severity-municipal .product-title,
.product-card.severity-county .product-title,
.product-card.severity-general .product-title,
.product-card.severity-case-law .product-title,
.product-card.severity-radio .product-title,
.product-card.severity-lookup .product-title,
.product-card.code-vehicle-code .product-title {
  background: #ffffff;
  border-color: transparent;
  color: #111;
  box-shadow: none;
  text-shadow: none;
}

.product-card.severity-felony .product-title {
  background: #ffe0dc;
}

.product-price {
  background: #ffca3a;
  border-color: transparent;
}

.product-arrestable {
  background: #ecece8;
  border-color: transparent;
}

.search-row {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.toolbar input {
  background: #fff;
  border-color: #e1ded8;
  box-shadow: none;
}

.secondary-button {
  background: #fff;
  color: #111;
  border-color: #e1ded8;
  box-shadow: none;
}

body.theme-dark .categories-panel,
body.theme-dark .class-panel,
body.theme-dark .latest-panel {
  background: #1f211f;
  border-color: #343834;
}

body.theme-dark .products-panel {
  background: #111312;
  border-color: #30332f;
}

body.theme-dark .category-chip,
body.theme-dark .severity-chip,
body.theme-dark .product-card,
body.theme-dark .product-card.severity-felony,
body.theme-dark .product-card.severity-misdemeanor,
body.theme-dark .product-card.severity-wobbler,
body.theme-dark .product-card.severity-infraction,
body.theme-dark .product-card.severity-federal,
body.theme-dark .product-card.severity-civil,
body.theme-dark .product-card.severity-municipal,
body.theme-dark .product-card.severity-county,
body.theme-dark .product-card.severity-general,
body.theme-dark .product-card.severity-case-law,
body.theme-dark .product-card.severity-radio,
body.theme-dark .product-card.severity-lookup,
body.theme-dark .product-card.code-vehicle-code {
  background: #191b1a;
  border-color: #30332f;
}

body.theme-dark .product-title,
body.theme-dark .product-card.severity-felony .product-title,
body.theme-dark .product-card.severity-misdemeanor .product-title,
body.theme-dark .product-card.severity-wobbler .product-title,
body.theme-dark .product-card.severity-infraction .product-title,
body.theme-dark .product-card.severity-federal .product-title,
body.theme-dark .product-card.severity-civil .product-title,
body.theme-dark .product-card.severity-municipal .product-title,
body.theme-dark .product-card.severity-county .product-title,
body.theme-dark .product-card.severity-general .product-title,
body.theme-dark .product-card.severity-case-law .product-title,
body.theme-dark .product-card.severity-radio .product-title,
body.theme-dark .product-card.severity-lookup .product-title,
body.theme-dark .product-card.code-vehicle-code .product-title {
  background: #232523;
  color: #fff7e8;
}

body.theme-dark .product-card.severity-felony .product-title {
  background: #321817;
}

body.theme-dark .toolbar input,
body.theme-dark .secondary-button {
  background: #232523;
  border-color: #343834;
  color: #fff7e8;
}

* {
  box-sizing: border-box;
}

[hidden],
.utility-hidden,
.hero-copy,
.status-strip {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(circle at 15% 2%, rgba(255, 212, 77, 0.14), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(22, 111, 107, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(250, 247, 239, 0.98), rgba(225, 222, 213, 0.92)),
    #f2efe8;
  color: var(--ink);
  font-family: Bahnschrift, "Aptos", "Segoe UI", Arial, sans-serif;
}

body.theme-dark {
  --ink: #f7f2e8;
  --muted: #c1b8aa;
  --panel: #1d1f1e;
  --stage: #111312;
  --paper: #191b1a;
  --felony: #cf3b30;
  --felony-deep: #9f2b24;
  --felony-soft: #321817;
  --felony-wash: #221514;
  --misdemeanor-soft: #102a22;
  --misdemeanor-wash: #0d1d19;
  --wobbler-soft: #31210f;
  --wobbler-wash: #21180c;
  --infraction-soft: #12243b;
  --infraction-wash: #101a27;
  --lookup-soft: #20242c;
  --civil-soft: #14243f;
  --municipal-soft: #2a2118;
  --county-soft: #20232b;
  --federal-soft: #11253a;
  --general-soft: #221831;
  --case-law-soft: #1b2332;
  --radio-soft: #141c2b;
  --vehicle-soft: #102621;
  --line: rgba(255, 255, 255, 0.12);
  --edge: rgba(255, 255, 255, 0.1);
  --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 18px 38px rgba(0, 0, 0, 0.34);
  background:
    radial-gradient(circle at 50% -12%, rgba(207, 59, 48, 0.2), transparent 30%),
    radial-gradient(circle at 9% 7%, rgba(255, 212, 77, 0.12), transparent 24%),
    radial-gradient(circle at 93% 12%, rgba(18, 121, 95, 0.14), transparent 30%),
    linear-gradient(135deg, #0b0d0c, #181714 62%, #0d0f0e),
    #0b0d0c;
}

button,
input,
a {
  font: inherit;
}

.page-shell {
  width: min(1720px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(8px, 1.4svh, 16px) 0 clamp(12px, 1.8svh, 20px);
}

.hero-bar {
  width: 100%;
  margin: 0 auto clamp(10px, 1.8svh, 18px);
  text-align: center;
}

.hero-bar h1 {
  margin: 0;
  display: inline-block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #101010;
  font-family: "Cooper Black", "Franklin Gothic Heavy", "Arial Black", Georgia, serif;
  font-size: clamp(2.4rem, min(4.9vw, 8svh), 5.35rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 2px 0 #fff, 0 10px 24px rgba(17, 17, 17, 0.12);
  box-shadow: none;
}

body.theme-dark .hero-bar h1 {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(35, 37, 35, 0.94), rgba(18, 19, 18, 0.82));
  color: #fff8ec;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.8), 0 16px 32px rgba(0, 0, 0, 0.42);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
}

.kakobuy-trigger,
.contact-trigger,
.ten-codes-trigger,
.theme-toggle {
  position: fixed;
  top: 18px;
  z-index: 30;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0 18px;
  background: linear-gradient(135deg, #111, #292621);
  color: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.22);
}

.kakobuy-trigger {
  left: 18px;
}

.contact-trigger {
  right: 18px;
}

.ten-codes-trigger {
  right: 122px;
}

.theme-toggle {
  right: 254px;
  background: linear-gradient(135deg, #ffffff, #f4efe4);
  color: #111;
  border-color: rgba(17, 17, 17, 0.12);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(17, 17, 17, 0.26);
}

body.theme-dark .theme-toggle {
  background: linear-gradient(135deg, #fff7e8, #d8cbb6);
  color: #111;
}

body.theme-dark .kakobuy-trigger,
body.theme-dark .contact-trigger,
body.theme-dark .ten-codes-trigger {
  background: linear-gradient(135deg, #252724, #0f100f);
  border-color: rgba(255, 255, 255, 0.12);
}

.layout-grid {
  --panel-height: clamp(520px, calc(100svh - 122px), 790px);
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 3.55fr) minmax(215px, 0.58fr);
  gap: 16px;
  align-items: start;
}

.side-rail,
.class-rail {
  display: grid;
}

.categories-panel,
.class-panel,
.latest-panel {
  min-height: 0;
  height: var(--panel-height);
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(19, 19, 19, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.12)),
    var(--panel);
  box-shadow: 0 22px 50px rgba(28, 27, 24, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

body.theme-dark .categories-panel,
body.theme-dark .class-panel,
body.theme-dark .latest-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-heading h2 {
  margin: 0;
  color: #030406;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
}

body.theme-dark .panel-heading h2 {
  color: #fff7e8;
}

.category-list,
.severity-list,
.latest-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.category-chip,
.severity-chip {
  min-height: 48px;
  border: 1px solid rgba(19, 19, 19, 0.12);
  border-radius: 8px;
  padding: 0 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 237, 0.88));
  color: var(--ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-align: left;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.06), inset 4px 0 0 rgba(17, 17, 17, 0.06);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.severity-chip {
  min-height: 58px;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 0.96rem;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.08);
}

body.theme-dark .category-chip,
body.theme-dark .severity-chip {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  color: #f5efe4;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2), inset 4px 0 0 rgba(255, 255, 255, 0.06);
}

body.theme-dark .category-chip:hover,
body.theme-dark .category-chip.active,
body.theme-dark .severity-chip:hover,
body.theme-dark .severity-chip.active {
  background: linear-gradient(135deg, #f5efe4, #cfc4b5);
  color: #111;
}

.category-chip:hover,
.category-chip.active,
.severity-chip:hover,
.severity-chip.active {
  background: linear-gradient(135deg, #111, #26231f);
  color: #fff;
  border-color: rgba(17, 17, 17, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.14);
}

.severity-chip-felony {
  background: var(--felony);
  color: #fff;
  border-color: rgba(207, 59, 48, 0.62);
  box-shadow: 0 15px 30px rgba(207, 59, 48, 0.16);
}

body.theme-dark .severity-chip-felony,
body.theme-dark .severity-chip-felony:hover,
body.theme-dark .severity-chip-felony.active {
  background: var(--felony);
  color: #fff;
  border-color: rgba(207, 59, 48, 0.72);
  box-shadow: 0 18px 36px rgba(207, 59, 48, 0.22);
}

.severity-chip-wobbler {
  background: linear-gradient(135deg, var(--wobbler-soft), #fff3d7);
  color: var(--wobbler-deep);
  border-color: rgba(197, 106, 20, 0.28);
}

.severity-chip-misdemeanor {
  background: linear-gradient(135deg, var(--misdemeanor-soft), #effff8);
  color: var(--misdemeanor);
  border-color: rgba(18, 121, 95, 0.28);
}

.severity-chip-infraction {
  background: linear-gradient(135deg, var(--infraction-soft), #f5f9ff);
  color: var(--infraction);
  border-color: rgba(50, 103, 168, 0.28);
}

.severity-chip-federal {
  background: var(--federal-soft);
  color: var(--federal);
}

.severity-chip-general {
  background: var(--general-soft);
  color: var(--general);
}

.severity-chip-civil {
  background: var(--civil-soft);
  color: var(--civil);
}

.severity-chip-municipal {
  background: var(--municipal-soft);
  color: var(--municipal);
}

.severity-chip-county {
  background: var(--county-soft);
  color: var(--county);
}

.severity-chip-radio,
.severity-chip-lookup {
  background: #fff;
  color: #111;
}

.severity-chip-felony:hover,
.severity-chip-felony.active {
  background: var(--felony);
  color: #fff;
  border-color: rgba(207, 59, 48, 0.68);
  box-shadow: 0 18px 36px rgba(207, 59, 48, 0.2);
}

.severity-chip-wobbler:hover,
.severity-chip-wobbler.active {
  background: linear-gradient(135deg, var(--wobbler), var(--wobbler-deep));
  color: #fff;
  border-color: rgba(197, 106, 20, 0.56);
}

.severity-chip-misdemeanor:hover,
.severity-chip-misdemeanor.active {
  background: linear-gradient(135deg, var(--misdemeanor), var(--misdemeanor-deep));
  color: #fff;
  border-color: rgba(18, 121, 95, 0.56);
}

.severity-chip-infraction:hover,
.severity-chip-infraction.active {
  background: linear-gradient(135deg, var(--infraction), var(--infraction-deep));
  color: #fff;
  border-color: rgba(50, 103, 168, 0.56);
}

.severity-chip-federal:hover,
.severity-chip-federal.active {
  background: linear-gradient(135deg, var(--federal), #092b4d);
  color: #fff;
}

.severity-chip-civil:hover,
.severity-chip-civil.active {
  background: linear-gradient(135deg, var(--civil), #182f55);
  color: #fff;
}

.category-chip-penal-code {
  border-left: 6px solid var(--felony);
}

.category-chip-vehicle-code {
  border-left: 6px solid var(--vehicle);
}

.category-chip-health-safety {
  border-left: 6px solid #2f8f5f;
}

.category-chip-welfare-institutions {
  border-left: 6px solid #8f5fc2;
}

.category-chip-business-professions {
  border-left: 6px solid var(--gold);
}

.category-chip-government-civil {
  border-left: 6px solid var(--civil);
}

.category-chip-la-municipal {
  border-left: 6px solid var(--municipal);
}

.category-chip-la-county {
  border-left: 6px solid var(--county);
}

.category-chip-us-federal {
  border-left: 6px solid var(--federal);
}

.category-chip-radio-codes {
  border-left: 6px solid var(--radio);
}

.category-chip-case-law {
  border-left: 6px solid var(--case-law);
}

.products-panel {
  height: var(--panel-height);
  max-height: none;
  overflow: hidden;
  border: 1px solid rgba(19, 19, 19, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 30%),
    var(--stage);
  padding: 12px 14px 16px;
  box-shadow: 0 24px 54px rgba(28, 27, 24, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.search-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  backdrop-filter: blur(12px);
  box-shadow: none;
}

.catalog-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 0 2px 2px 0;
  scrollbar-color: rgba(255, 255, 255, 0.5) transparent;
}

.toolbar,
.toolbar input {
  width: 100%;
}

.toolbar input {
  min-height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.74);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  padding: 0 18px;
  font-size: 0.94rem;
  font-weight: 800;
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04);
}

body.theme-dark .toolbar input {
  background: rgba(245, 239, 228, 0.96);
  color: #111;
  border-color: rgba(255, 255, 255, 0.18);
}

.toolbar input:focus {
  border-color: var(--felony);
  box-shadow: 0 0 0 4px rgba(207, 59, 48, 0.14);
}

.toolbar input::placeholder {
  color: #777;
}

.secondary-button {
  min-width: 86px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: linear-gradient(135deg, #111, #2b2924);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

body.theme-dark .secondary-button {
  background: var(--felony);
  border-color: rgba(207, 59, 48, 0.72);
}

.catalog-heading {
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.panel-kicker {
  margin: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.results-meta {
  margin: 3px 0 0;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: right;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  min-height: 218px;
  padding: 12px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 239, 0.92)),
    var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, filter 150ms ease;
}

body.theme-dark .product-card {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  outline: 0;
  border-color: rgba(17, 17, 17, 0.16);
  box-shadow: 0 30px 52px rgba(0, 0, 0, 0.22);
  filter: saturate(1.04);
}

.product-card::before {
  content: "";
  display: none;
}

.product-band {
  min-height: 32px;
  margin: -12px -12px 11px;
  padding: 9px 12px 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #111, #3a3934);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.product-copy {
  min-height: 184px;
  display: grid;
  grid-template-rows: auto minmax(80px, auto) auto 1fr;
  gap: 8px;
}

.product-code-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: start;
}

.product-code {
  min-height: 28px;
  margin: 0;
  padding: 6px 9px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #111;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
  font-size: 0.59rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.product-title {
  min-height: 80px;
  margin: 0;
  padding: 11px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background:
    linear-gradient(145deg, #fff, #f8f4ea);
  color: var(--ink);
  border: 1px solid rgba(17, 17, 17, 0.08);
  font-size: clamp(0.83rem, 0.75vw, 1.02rem);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

body.theme-dark .product-title {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff7e8;
}

.product-offence-class {
  justify-self: start;
  min-height: 28px;
  margin: 0;
  padding: 6px 9px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eee;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.product-meta {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.product-arrestable,
.product-price {
  min-height: 34px;
  margin: 0;
  padding: 7px 8px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
}

.product-price {
  background: linear-gradient(135deg, var(--gold), #fff0a8);
  border: 1px solid rgba(127, 84, 0, 0.12);
}

body.theme-dark .product-price {
  color: #17120a;
}

.product-arrestable {
  background: linear-gradient(135deg, #f0f0ea, #ffffff);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

body.theme-dark .product-arrestable {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.055));
  border-color: rgba(255, 255, 255, 0.08);
  color: #fff7e8;
}

.product-card.severity-felony {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 242, 0.96)),
    var(--felony-wash);
  border: 1px solid rgba(207, 59, 48, 0.38);
  box-shadow: 0 18px 38px rgba(86, 40, 34, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.product-card.severity-felony .product-band,
.product-card.severity-felony .product-code,
.product-card.severity-felony .product-offence-class {
  background: var(--felony);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.26);
}

.product-card.severity-felony .product-title {
  background:
    linear-gradient(145deg, #fff8f6, var(--felony-soft));
  border-color: rgba(207, 59, 48, 0.2);
  color: #111;
  text-shadow: none;
}

body.theme-dark .product-card.severity-felony {
  border-color: var(--felony);
  box-shadow: 0 22px 48px rgba(207, 59, 48, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-dark .product-card.severity-felony .product-title {
  background:
    linear-gradient(145deg, rgba(207, 59, 48, 0.18), rgba(207, 59, 48, 0.1));
  color: #fff7e8;
}

.product-card.severity-felony:hover,
.product-card.severity-felony:focus-visible {
  border-color: var(--felony);
  box-shadow: 0 30px 56px rgba(207, 59, 48, 0.18);
}

.product-card.severity-misdemeanor {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 255, 250, 0.94)),
    var(--misdemeanor-wash);
  border-color: rgba(18, 121, 95, 0.22);
}

.product-card.severity-misdemeanor .product-band,
.product-card.severity-misdemeanor .product-code,
.product-card.severity-misdemeanor .product-offence-class {
  background: linear-gradient(135deg, var(--misdemeanor), var(--misdemeanor-deep));
  color: #fff;
}

.product-card.severity-misdemeanor .product-title {
  background:
    linear-gradient(145deg, #fbfffd, var(--misdemeanor-soft));
  border-color: rgba(18, 121, 95, 0.17);
}

.product-card.severity-wobbler {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 240, 0.95)),
    var(--wobbler-wash);
  border-color: rgba(197, 106, 20, 0.26);
}

.product-card.severity-wobbler .product-band,
.product-card.severity-wobbler .product-code,
.product-card.severity-wobbler .product-offence-class {
  background: linear-gradient(135deg, var(--wobbler), var(--wobbler-deep));
  color: #fff;
}

.product-card.severity-wobbler .product-title {
  background:
    linear-gradient(145deg, #fffdfa, var(--wobbler-soft));
  border-color: rgba(197, 106, 20, 0.18);
}

.product-card.severity-infraction {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.96)),
    var(--infraction-wash);
  border-color: rgba(50, 103, 168, 0.22);
}

.product-card.severity-infraction .product-band,
.product-card.severity-infraction .product-code,
.product-card.severity-infraction .product-offence-class {
  background: linear-gradient(135deg, var(--infraction), var(--infraction-deep));
  color: #fff;
}

.product-card.severity-infraction .product-title {
  background:
    linear-gradient(145deg, #fbfdff, var(--infraction-soft));
  border-color: rgba(50, 103, 168, 0.17);
}

.product-card.severity-lookup .product-band,
.product-card.severity-lookup .product-code,
.product-card.severity-lookup .product-offence-class {
  background: var(--lookup);
  color: #fff;
}

.product-card.severity-lookup .product-title {
  background: var(--lookup-soft);
}

.product-card.severity-civil .product-band,
.product-card.severity-civil .product-code,
.product-card.severity-civil .product-offence-class {
  background: var(--civil);
  color: #fff;
}

.product-card.severity-civil .product-title {
  background: var(--civil-soft);
}

.product-card.severity-municipal .product-band,
.product-card.severity-municipal .product-code,
.product-card.severity-municipal .product-offence-class {
  background: var(--municipal);
  color: #fff;
}

.product-card.severity-municipal .product-title {
  background: var(--municipal-soft);
}

.product-card.severity-county .product-band,
.product-card.severity-county .product-code,
.product-card.severity-county .product-offence-class {
  background: var(--county);
  color: #fff;
}

.product-card.severity-county .product-title {
  background: var(--county-soft);
}

.product-card.severity-radio .product-band,
.product-card.severity-radio .product-code,
.product-card.severity-radio .product-offence-class {
  background: var(--radio);
  color: #fff;
}

.product-card.severity-radio .product-title {
  background: var(--radio-soft);
}

.product-card.severity-federal .product-band,
.product-card.severity-federal .product-code,
.product-card.severity-federal .product-offence-class {
  background: var(--federal);
  color: #fff;
}

.product-card.severity-federal .product-title {
  background: var(--federal-soft);
}

.product-card.severity-general .product-band,
.product-card.severity-general .product-code,
.product-card.severity-general .product-offence-class {
  background: var(--general);
  color: #fff;
}

.product-card.severity-general .product-title {
  background: var(--general-soft);
}

.product-card.severity-case-law .product-band,
.product-card.severity-case-law .product-code,
.product-card.severity-case-law .product-offence-class {
  background: var(--case-law);
  color: #fff;
}

.product-card.severity-case-law .product-title {
  background: var(--case-law-soft);
}

.product-card.code-vehicle-code {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(221, 247, 241, 0.92)),
    var(--paper);
  border: 1px solid rgba(22, 111, 107, 0.16);
}

.product-card.code-vehicle-code .product-band {
  background:
    repeating-linear-gradient(
      90deg,
      var(--vehicle-road) 0 22px,
      #f7c948 22px 28px,
      var(--vehicle-road) 28px 50px
    );
}

.product-card.code-vehicle-code .product-code {
  background: var(--vehicle);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.product-card.code-vehicle-code .product-title {
  background:
    linear-gradient(135deg, #ffffff 0%, var(--vehicle-soft) 100%);
  border: 2px solid rgba(22, 111, 107, 0.2);
}

.product-card.code-vehicle-code .product-offence-class {
  background: #174a7c;
}

.product-card.code-vehicle-code .product-arrestable {
  background: #e6f0f5;
}

.product-card.code-vehicle-code .product-price {
  background: #ffe3a3;
}

.latest-item {
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  text-decoration: none;
}

.latest-title,
.latest-price {
  margin: 0;
}

.latest-title {
  font-weight: 900;
  line-height: 1.1;
}

.latest-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 240px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.contact-modal,
.kakobuy-modal,
.ten-codes-modal,
.case-law-modal,
.law-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.38);
}

.contact-backdrop,
.kakobuy-backdrop,
.ten-codes-backdrop,
.case-law-backdrop,
.law-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.contact-card,
.kakobuy-card,
.ten-codes-card,
.case-law-card,
.law-detail-card {
  position: relative;
  width: min(540px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 240, 0.98)),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

body.theme-dark .contact-card,
body.theme-dark .kakobuy-card,
body.theme-dark .ten-codes-card,
body.theme-dark .case-law-card,
body.theme-dark .law-detail-card {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.56);
}

.ten-codes-card {
  width: min(920px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
}

.case-law-card {
  width: min(1040px, 100%);
}

.law-detail-card {
  width: min(980px, 100%);
}

.contact-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 20px;
}

.contact-head h2,
.kakobuy-card h2,
.ten-codes-card h2,
.case-law-card h2,
.law-detail-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0;
}

body.theme-dark .contact-head h2,
body.theme-dark .kakobuy-card h2,
body.theme-dark .ten-codes-card h2,
body.theme-dark .case-law-card h2,
body.theme-dark .law-detail-card h2 {
  color: #fff7e8;
}

.case-law-citation {
  margin: 8px 0 0;
  color: var(--case-law);
  font-size: 0.95rem;
  font-weight: 900;
}

.case-law-grid,
.law-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.case-law-grid section,
.law-detail-grid section {
  min-height: 190px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, #fff, #fffaf0);
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(36, 50, 75, 0.08), 0 10px 24px rgba(17, 17, 17, 0.05);
}

body.theme-dark .case-law-grid section,
body.theme-dark .law-detail-grid section {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.case-law-grid h3,
.law-detail-grid h3 {
  margin: 0 0 10px;
  color: var(--case-law);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-law-grid p,
.law-detail-grid p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.38;
}

.case-law-source {
  display: block;
  border-radius: 16px;
  background: var(--case-law);
  color: #fff;
  padding: 14px 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.law-detail-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.law-detail-refs span {
  border-radius: 12px;
  background: var(--case-law-soft);
  color: var(--case-law);
  padding: 8px 11px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ten-codes-note {
  margin: 0 0 14px;
  border-radius: 18px;
  background: #fff5cf;
  color: #4a3900;
  padding: 14px 16px;
  font-weight: 900;
  line-height: 1.35;
}

.la-radio-list,
.ten-codes-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.la-radio-list {
  margin-bottom: 14px;
}

.la-radio-list p,
.ten-codes-list p {
  margin: 0;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.15;
}

.la-radio-list p {
  background: #111;
  color: #fff;
}

.kakobuy-badge {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kakobuy-copy {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.contact-links,
.kakobuy-actions {
  display: grid;
  gap: 12px;
}

.rights-copy {
  display: grid;
  gap: 14px;
}

.rights-copy p {
  margin: 0;
  border-radius: 20px;
  background: #fff;
  padding: 18px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
}

.rights-copy .rights-note {
  background: #fff5cf;
  color: #4a3900;
  font-size: 0.9rem;
}

.rights-source {
  border-radius: 16px;
  background: #111;
  color: #fff;
  padding: 13px 18px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.kakobuy-close,
.kakobuy-open,
.contact-close {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 12px 16px;
  font-weight: 900;
  text-decoration: none;
}

.contact-close,
.kakobuy-close {
  cursor: pointer;
}

@media (max-width: 1180px) {
  .layout-grid {
    grid-template-columns: 1fr;
    --panel-height: auto;
  }

  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .categories-panel,
  .class-panel,
  .latest-panel,
  .products-panel {
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .catalog-scroll {
    overflow: visible;
  }

  .category-list,
  .severity-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-height: 780px) and (min-width: 1181px) {
  .page-shell {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .layout-grid {
    --panel-height: calc(100svh - 118px);
  }

  .hero-bar {
    margin-bottom: 8px;
  }

  .hero-bar h1 {
    font-size: clamp(2.2rem, 6.8svh, 3.8rem);
  }

  .kakobuy-trigger,
  .contact-trigger,
  .ten-codes-trigger,
  .theme-toggle {
    top: 10px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.78rem;
  }

  .ten-codes-trigger {
    right: 108px;
  }

  .theme-toggle {
    right: 220px;
  }

  .products-panel {
    padding: 10px 12px 14px;
  }

  .toolbar input {
    min-height: 44px;
  }

  .product-card {
    min-height: 196px;
  }

  .product-copy {
    min-height: 166px;
    grid-template-rows: auto minmax(66px, auto) auto 1fr;
  }

  .product-title {
    min-height: 66px;
    font-size: clamp(0.76rem, 0.68vw, 0.94rem);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 92px;
  }

  .hero-bar {
    width: 100%;
  }

  .hero-bar h1 {
    font-size: 2.75rem;
  }

  .kakobuy-trigger,
  .contact-trigger,
  .ten-codes-trigger,
  .theme-toggle {
    top: 12px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .ten-codes-trigger {
    top: 58px;
    right: 12px;
  }

  .theme-toggle {
    top: 58px;
    left: 12px;
    right: auto;
  }

  .contact-trigger {
    right: 12px;
  }

  .la-radio-list,
  .ten-codes-list,
  .case-law-grid,
  .law-detail-grid {
    grid-template-columns: 1fr;
  }

  .search-row,
  .products-grid,
  .product-meta,
  .category-list,
  .severity-list {
    grid-template-columns: 1fr;
  }

  .catalog-heading {
    display: grid;
    align-items: start;
  }

  .results-meta {
    text-align: left;
  }

  .product-card {
    min-height: auto;
  }
}

@media (max-width: 1420px) and (min-width: 1181px) {
  .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 2200px) and (min-height: 1200px) {
  .page-shell {
    width: min(2360px, calc(100% - 96px));
    padding-top: 28px;
    padding-bottom: 30px;
  }

  .hero-bar {
    margin-bottom: 26px;
  }

  .hero-bar h1 {
    font-size: clamp(5.4rem, 4.35vw, 6.8rem);
  }

  .kakobuy-trigger,
  .contact-trigger,
  .ten-codes-trigger,
  .theme-toggle {
    top: 28px;
    min-height: 58px;
    border-radius: 12px;
    padding: 0 26px;
    font-size: 1rem;
  }

  .kakobuy-trigger {
    left: 28px;
  }

  .contact-trigger {
    right: 28px;
  }

  .ten-codes-trigger {
    right: 166px;
  }

  .theme-toggle {
    right: 322px;
  }

  .layout-grid {
    --panel-height: min(1120px, calc(100svh - 185px));
    grid-template-columns: 300px minmax(0, 1fr) 285px;
    gap: 24px;
  }

  .categories-panel,
  .class-panel,
  .latest-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .panel-heading h2 {
    font-size: 1.34rem;
  }

  .category-list,
  .severity-list,
  .latest-list {
    gap: 11px;
    margin-top: 20px;
  }

  .category-chip,
  .severity-chip {
    min-height: 54px;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .severity-chip {
    min-height: 62px;
    font-size: 1rem;
  }

  .products-panel {
    padding: 18px 20px 22px;
    border-radius: 24px;
    gap: 18px;
  }

  .search-row {
    gap: 14px;
    border-radius: 14px;
  }

  .toolbar input {
    min-height: 62px;
    border-radius: 10px;
    padding: 0 24px;
    font-size: 1.08rem;
  }

  .secondary-button {
    min-width: 102px;
    min-height: 58px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .catalog-heading {
    margin-bottom: 16px;
  }

  .panel-kicker {
    font-size: 0.94rem;
  }

  .results-meta {
    font-size: 0.96rem;
  }

  .products-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
  }

  .product-card {
    min-height: 250px;
    padding: 16px;
    border-radius: 22px;
  }

  .product-band {
    min-height: 34px;
    margin: -16px -16px 14px;
    padding: 9px 14px 8px;
    font-size: 0.82rem;
  }

  .product-copy {
    min-height: 210px;
    grid-template-rows: auto minmax(92px, auto) auto 1fr;
    gap: 11px;
  }

  .product-code {
    min-height: 34px;
    border-radius: 11px;
    padding: 7px 11px;
    font-size: 0.68rem;
  }

  .product-title {
    min-height: 92px;
    border-radius: 17px;
    padding: 14px;
    font-size: clamp(0.98rem, 0.58vw, 1.18rem);
  }

  .product-offence-class {
    min-height: 34px;
    border-radius: 11px;
    padding: 7px 11px;
    font-size: 0.78rem;
  }

  .product-arrestable,
  .product-price {
    min-height: 42px;
    border-radius: 11px;
    padding: 8px 10px;
    font-size: 0.68rem;
  }
}

/* Final matte override: no metallic gradients or shiny surfaces. */
.product-card,
.product-card.severity-felony,
.product-card.severity-misdemeanor,
.product-card.severity-wobbler,
.product-card.severity-infraction,
.product-card.severity-federal,
.product-card.severity-civil,
.product-card.severity-municipal,
.product-card.severity-county,
.product-card.severity-general,
.product-card.severity-case-law,
.product-card.severity-radio,
.product-card.severity-lookup,
.product-card.code-vehicle-code {
  background: #faf8f1;
  border: 1px solid #e8e2d8;
  box-shadow: none;
}

.product-card.severity-felony .product-band,
.product-card.severity-felony .product-code,
.product-card.severity-felony .product-offence-class {
  background: #d23b32;
}

.product-card.severity-misdemeanor .product-band,
.product-card.severity-misdemeanor .product-code,
.product-card.severity-misdemeanor .product-offence-class {
  background: #16836d;
}

.product-card.severity-wobbler .product-band,
.product-card.severity-wobbler .product-code,
.product-card.severity-wobbler .product-offence-class {
  background: #c56a14;
}

.product-card.severity-infraction .product-band,
.product-card.severity-infraction .product-code,
.product-card.severity-infraction .product-offence-class {
  background: #6c7d95;
}

.product-card.severity-federal .product-band,
.product-card.severity-federal .product-code,
.product-card.severity-federal .product-offence-class {
  background: #215b91;
}

.product-card.severity-civil .product-band,
.product-card.severity-civil .product-code,
.product-card.severity-civil .product-offence-class {
  background: #42659b;
}

.product-card.severity-municipal .product-band,
.product-card.severity-municipal .product-code,
.product-card.severity-municipal .product-offence-class {
  background: #72553a;
}

.product-card.severity-county .product-band,
.product-card.severity-county .product-code,
.product-card.severity-county .product-offence-class {
  background: #687184;
}

.product-card.severity-general .product-band,
.product-card.severity-general .product-code,
.product-card.severity-general .product-offence-class {
  background: #5b3b82;
}

.product-card.severity-case-law .product-band,
.product-card.severity-case-law .product-code,
.product-card.severity-case-law .product-offence-class {
  background: #24324b;
}

.product-card.severity-radio .product-band,
.product-card.severity-radio .product-code,
.product-card.severity-radio .product-offence-class,
.product-card.severity-lookup .product-band,
.product-card.severity-lookup .product-code,
.product-card.severity-lookup .product-offence-class {
  background: #1f2937;
}

.product-card.code-vehicle-code .product-band,
.product-card.code-vehicle-code .product-code,
.product-card.code-vehicle-code .product-offence-class {
  background: #166f6b;
}

.product-card.severity-felony .product-title {
  background: #ffe0dc;
  color: #111;
}

.product-card.code-vehicle-code .product-title,
.product-card.severity-misdemeanor .product-title,
.product-card.severity-wobbler .product-title,
.product-card.severity-infraction .product-title,
.product-card.severity-federal .product-title,
.product-card.severity-civil .product-title,
.product-card.severity-municipal .product-title,
.product-card.severity-county .product-title,
.product-card.severity-general .product-title,
.product-card.severity-case-law .product-title,
.product-card.severity-radio .product-title,
.product-card.severity-lookup .product-title {
  background: #fff;
  color: #111;
}

body.theme-dark .product-card,
body.theme-dark .product-card.severity-felony,
body.theme-dark .product-card.severity-misdemeanor,
body.theme-dark .product-card.severity-wobbler,
body.theme-dark .product-card.severity-infraction,
body.theme-dark .product-card.severity-federal,
body.theme-dark .product-card.severity-civil,
body.theme-dark .product-card.severity-municipal,
body.theme-dark .product-card.severity-county,
body.theme-dark .product-card.severity-general,
body.theme-dark .product-card.severity-case-law,
body.theme-dark .product-card.severity-radio,
body.theme-dark .product-card.severity-lookup,
body.theme-dark .product-card.code-vehicle-code {
  background: #191b1a;
  border-color: #30332f;
}

body.theme-dark .product-card.severity-felony .product-title {
  background: #321817;
  color: #fff7e8;
}

.product-band,
.product-card.severity-felony .product-band,
.product-card.severity-misdemeanor .product-band,
.product-card.severity-wobbler .product-band,
.product-card.severity-infraction .product-band,
.product-card.severity-federal .product-band,
.product-card.severity-civil .product-band,
.product-card.severity-municipal .product-band,
.product-card.severity-county .product-band,
.product-card.severity-general .product-band,
.product-card.severity-case-law .product-band,
.product-card.severity-radio .product-band,
.product-card.severity-lookup .product-band,
.product-card.code-vehicle-code .product-band {
  min-height: 8px !important;
  height: 8px !important;
  margin: -12px -12px 12px !important;
  padding: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body {
  background: #f2efe8;
}

body.theme-dark {
  background: #101110;
}

.hero-bar h1,
body.theme-dark .hero-bar h1 {
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.hero-bar h1 {
  text-shadow: 0 2px 0 #fff;
}

.kakobuy-trigger,
.contact-trigger,
.ten-codes-trigger,
.theme-toggle,
.secondary-button {
  background: #1f1f1d;
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.12);
}

.theme-toggle {
  background: #f7f5ef;
}

body.theme-dark .theme-toggle {
  background: #e8dfd0;
}

body.theme-dark .kakobuy-trigger,
body.theme-dark .contact-trigger,
body.theme-dark .ten-codes-trigger,
body.theme-dark .secondary-button {
  background: #242624;
}

.categories-panel,
.class-panel,
.latest-panel {
  background: var(--panel);
  box-shadow: 0 18px 36px rgba(28, 27, 24, 0.09);
}

body.theme-dark .categories-panel,
body.theme-dark .class-panel,
body.theme-dark .latest-panel {
  background: var(--panel);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.category-chip,
.severity-chip,
body.theme-dark .category-chip,
body.theme-dark .severity-chip {
  background: var(--paper);
  box-shadow: none;
}

body.theme-dark .category-chip,
body.theme-dark .severity-chip {
  background: #252725;
}

.category-chip:hover,
.category-chip.active,
.severity-chip:hover,
.severity-chip.active {
  background: #22221f;
  box-shadow: none;
}

body.theme-dark .category-chip:hover,
body.theme-dark .category-chip.active,
body.theme-dark .severity-chip:hover,
body.theme-dark .severity-chip.active {
  background: #eee6d8;
}

.severity-chip-felony,
.severity-chip-felony:hover,
.severity-chip-felony.active,
body.theme-dark .severity-chip-felony,
body.theme-dark .severity-chip-felony:hover,
body.theme-dark .severity-chip-felony.active {
  background: var(--felony);
  box-shadow: none;
}

.severity-chip-wobbler {
  background: var(--wobbler-soft);
}

.severity-chip-misdemeanor {
  background: var(--misdemeanor-soft);
}

.severity-chip-infraction {
  background: var(--infraction-soft);
}

.severity-chip-wobbler:hover,
.severity-chip-wobbler.active {
  background: var(--wobbler);
}

.severity-chip-misdemeanor:hover,
.severity-chip-misdemeanor.active {
  background: var(--misdemeanor);
}

.severity-chip-infraction:hover,
.severity-chip-infraction.active {
  background: var(--infraction);
}

.severity-chip-federal:hover,
.severity-chip-federal.active {
  background: var(--federal);
}

.severity-chip-civil:hover,
.severity-chip-civil.active {
  background: var(--civil);
}

.products-panel {
  background: var(--stage);
  box-shadow: 0 18px 42px rgba(28, 27, 24, 0.15);
}

body.theme-dark .products-panel {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.product-card,
body.theme-dark .product-card {
  background: var(--paper);
  box-shadow: 0 12px 24px rgba(20, 20, 18, 0.1);
}

body.theme-dark .product-card {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.product-card:hover,
.product-card:focus-visible,
.product-card.severity-felony:hover,
.product-card.severity-felony:focus-visible {
  box-shadow: 0 18px 34px rgba(20, 20, 18, 0.16);
}

.product-band,
.product-code,
.product-offence-class,
.product-card.severity-felony .product-band,
.product-card.severity-felony .product-code,
.product-card.severity-felony .product-offence-class,
.product-card.severity-misdemeanor .product-band,
.product-card.severity-misdemeanor .product-code,
.product-card.severity-misdemeanor .product-offence-class,
.product-card.severity-wobbler .product-band,
.product-card.severity-wobbler .product-code,
.product-card.severity-wobbler .product-offence-class,
.product-card.severity-infraction .product-band,
.product-card.severity-infraction .product-code,
.product-card.severity-infraction .product-offence-class {
  box-shadow: none;
  text-shadow: none;
}

.product-title,
body.theme-dark .product-title {
  background: #fff;
  box-shadow: none;
}

body.theme-dark .product-title {
  background: #232523;
}

.product-card.severity-felony,
body.theme-dark .product-card.severity-felony {
  box-shadow: 0 12px 24px rgba(86, 40, 34, 0.11);
}

.product-card.severity-felony .product-title,
body.theme-dark .product-card.severity-felony .product-title {
  background: var(--felony-soft);
}

.product-price,
.product-arrestable,
body.theme-dark .product-price,
body.theme-dark .product-arrestable {
  box-shadow: none;
}

.product-price {
  background: var(--gold);
}

.product-arrestable {
  background: #eceae4;
}

body.theme-dark .product-arrestable {
  background: #2d302d;
}

.contact-card,
.kakobuy-card,
.ten-codes-card,
.case-law-card,
.law-detail-card,
body.theme-dark .contact-card,
body.theme-dark .kakobuy-card,
body.theme-dark .ten-codes-card,
body.theme-dark .case-law-card,
body.theme-dark .law-detail-card {
  background: var(--paper);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.case-law-grid section,
.law-detail-grid section,
body.theme-dark .case-law-grid section,
body.theme-dark .law-detail-grid section {
  background: #fff;
  box-shadow: none;
}

body.theme-dark .case-law-grid section,
body.theme-dark .law-detail-grid section {
  background: #252725;
}

/* EOF password gate and card alignment: must remain last. */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(242, 240, 234, 0.56);
  backdrop-filter: blur(16px);
}

.access-card {
  width: min(460px, 100%);
  padding: 30px;
  border: 1px solid #cbc8c0;
  border-radius: 22px;
  background: #deddd7;
  color: #111;
  box-shadow: 0 24px 70px rgba(17, 17, 17, 0.18);
}

.access-kicker,
.access-label,
.access-error {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.access-kicker {
  color: #5e5d57;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.access-card h1 {
  margin: 8px 0 22px;
  font-family: "Cooper Black", "Franklin Gothic Heavy", "Arial Black", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 0.92;
}

.access-label {
  display: block;
  margin-bottom: 8px;
  color: #5e5d57;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.access-input {
  width: 100%;
  min-height: 54px;
  border: 1px solid #bdb9b0;
  border-radius: 12px;
  background: #eeeeea;
  color: #111;
  padding: 0 16px;
  font-size: 1rem;
  font-weight: 900;
  outline: 0;
}

.access-input::placeholder {
  color: #77736b;
}

.access-input:focus {
  border-color: #6d6e67;
}

.access-error {
  min-height: 20px;
  margin-top: 9px;
  color: #d23b32;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.access-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: #1f1f1d;
  color: #fff;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.auth-locked {
  overflow: hidden;
}

body.auth-locked .page-shell {
  filter: blur(12px);
  pointer-events: none;
  user-select: none;
}

body.theme-dark .access-gate {
  background: rgba(16, 17, 16, 0.66);
}

body.theme-dark .access-card {
  border-color: #343834;
  background: #1f211f;
  color: #fff7e8;
}

body.theme-dark .access-kicker,
body.theme-dark .access-label {
  color: #aaa397;
}

body.theme-dark .access-input {
  border-color: #343834;
  background: #2d302d;
  color: #fff7e8;
}

.product-copy {
  min-height: 100% !important;
  grid-template-rows: auto minmax(84px, auto) auto minmax(0, 1fr) !important;
}

.product-meta {
  align-self: end !important;
  margin-top: auto !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
  gap: 8px !important;
}

.product-arrestable,
.product-price,
body.theme-dark .product-arrestable,
body.theme-dark .product-price {
  min-height: 36px !important;
  padding: 7px 9px !important;
  border: 0 !important;
  border-radius: 9px !important;
  box-shadow: none !important;
  font-size: 0.6rem !important;
  font-weight: 950 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.05 !important;
  text-align: center !important;
}

.product-arrestable {
  background: #ecece8 !important;
  color: #111 !important;
}

.product-price {
  background: #ffca3a !important;
  color: #111 !important;
}

body.theme-dark .product-arrestable {
  background: #2d302d !important;
  color: #fff7e8 !important;
}

body.theme-dark .product-price {
  background: #d8a928 !important;
  color: #111 !important;
}

.product-card.severity-felony .product-title {
  background: #fff !important;
  color: #111 !important;
}

body.theme-dark .product-card.severity-felony .product-title {
  background: #232523 !important;
  color: #fff7e8 !important;
}
