/* law.rooz.live — court / party facing. No eng debt in chrome. */
:root {
  --ink: #161b22;
  --muted: #5a6572;
  --line: #e2e6eb;
  --paper: #f4f1ea;
  --card: #ffffff;
  --navy: #152033;
  --navy-2: #243247;
  --gold: #9a8048;
  --gold-soft: #e8dfc8;
  --focus: #2a4d6e;
  --ok: #1f6b4a;
  --shadow: 0 8px 28px rgba(21, 32, 51, 0.07);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #ebe4d4 0%, transparent 55%),
    radial-gradient(900px 400px at 100% 0%, #dfe7ef 0%, transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
}
a { color: var(--focus); text-underline-offset: 2px; }
a:hover { color: var(--navy); }

/* —— shell —— */
.topbar {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #f3efe6;
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  color: inherit;
  min-width: 12rem;
}
.brand-kicker {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.15rem;
}
.brand-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}
.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}
.nav-main a {
  color: #d7dde6;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}
.nav-main a.cta {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.nav-main a.cta:hover { filter: brightness(1.05); color: var(--navy); }

.page {
  flex: 1;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  width: 100%;
}

/* —— hero —— */
.hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.75rem;
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.35fr 1fr; align-items: stretch; }
}
.hero-copy {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--navy);
}
.hero-copy .lede {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.panel {
  background: var(--navy);
  color: #e8edf3;
  border-radius: 6px;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}
.panel h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: #fff;
}
.panel p { margin: 0 0 0.75rem; color: #c5ced9; font-size: 0.95rem; }
.panel ul { margin: 0; padding-left: 1.1rem; color: #d5dce5; }
.panel li { margin: 0.3rem 0; }

/* —— cards / grid —— */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 0 rgba(21,32,51,0.03);
}
.card h2, .card h3.card-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.55rem;
  color: var(--navy);
}
.card h3.section {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.1rem 0 0.4rem;
  font-weight: 700;
}
.card p { margin: 0 0 0.7rem; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.55rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
}
.btn:hover { border-color: var(--navy); color: var(--navy); }
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #f4f1ea;
}
.btn-primary:hover { background: var(--navy-2); color: #fff; border-color: var(--navy-2); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* —— tables —— */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.65rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  width: 36%;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
}
.num { font-variant-numeric: tabular-nums; font-weight: 650; }

/* —— hierarchy tree —— */
.tree {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tree > li {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfaf7;
  margin: 0.45rem 0;
  padding: 0.7rem 0.85rem;
}
.tree .level {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  display: block;
  margin-bottom: 0.15rem;
}
.tree .name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
}
.tree .means {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 0.2rem;
}
.tree ul {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0 0 0 0.75rem;
  border-left: 2px solid var(--gold-soft);
}
.tree ul li {
  margin: 0.35rem 0;
  padding: 0.35rem 0 0.35rem 0.65rem;
  border: none;
  background: transparent;
}

/* —— markdown rendered —— */
.prose h1, .prose h2, .prose h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.25;
  margin: 1.1rem 0 0.45rem;
}
.prose h1 { font-size: 1.55rem; }
.prose h2 { font-size: 1.3rem; }
.prose h3 { font-size: 1.12rem; }
.prose p, .prose li { color: var(--ink); }
.prose p { margin: 0.45rem 0 0.7rem; }
.prose ul, .prose ol { margin: 0.4rem 0 0.8rem; padding-left: 1.25rem; }
.prose blockquote {
  margin: 0.75rem 0;
  padding: 0.65rem 0.9rem;
  border-left: 3px solid var(--gold);
  background: #fbf8f1;
  color: var(--navy-2);
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86em;
  background: #eef1f5;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
.prose pre {
  background: #f7f5f0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  overflow: auto;
  font-size: 0.88rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.92rem;
}
.prose th, .prose td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
.prose th { background: #f3efe6; color: var(--navy); }
.prose strong { color: var(--navy); }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 1.25rem 0; }

.matter-list { list-style: none; margin: 0; padding: 0; }
.matter-list li {
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 0.55rem 0;
  background: #fff;
}
.matter-list a {
  display: block;
  padding: 0.95rem 1.05rem;
  text-decoration: none;
  color: inherit;
}
.matter-list a:hover { background: #faf8f3; }
.matter-list .case-id {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.matter-list .case-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0.15rem 0;
}
.matter-list .case-meta { color: var(--muted); font-size: 0.9rem; }

.circle-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
}
.circle-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 0.65rem 0.7rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--navy);
}
.circle-chip span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #efebe3;
  margin-top: auto;
}
.site-footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 1.75rem;
  color: var(--muted);
  font-size: 0.84rem;
}
.site-footer-inner p { margin: 0.3rem 0; }

.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.breadcrumb a { color: var(--focus); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

@media print {
  .topbar, .hero-actions, .no-print { display: none !important; }
  body { background: #fff; }
  .card, .hero-copy { box-shadow: none; }
}


/* —— spacing v2 —— design philosophy: breathable court paper —— */
body {
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
.page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.75rem 1.35rem 3.5rem;
  width: 100%;
}
.card {
  padding: 1.35rem 1.4rem 1.5rem;
  margin-bottom: 1.35rem;
  border-radius: 8px;
}
.card h2, .card h3.section {
  margin: 0 0 0.85rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.card p {
  margin: 0 0 0.95rem;
}
.card p:last-child { margin-bottom: 0; }
.card ul, .card ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.card li { margin: 0.4rem 0; }
.card table.data {
  margin: 0.75rem 0 1rem;
  border-collapse: collapse;
  width: 100%;
}
.card table.data th,
.card table.data td {
  padding: 0.55rem 0.65rem;
  vertical-align: top;
  line-height: 1.5;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
  margin: 1rem 0 0.25rem;
}
.btn {
  padding: 0.5rem 0.95rem;
  line-height: 1.35;
}
.breadcrumb { margin: 0 0 1.25rem; }
.topbar-inner { padding: 0.95rem 1.35rem; gap: 0.85rem 1.35rem; }
.nav-main a { padding: 0.5rem 0.85rem; }
.site-footer-inner { padding: 1.5rem 1.35rem 2.25rem; line-height: 1.55; }
.grid.cols-2 { gap: 1.25rem; margin-bottom: 1.35rem; }
.prose p { margin: 0 0 0.9rem; }
.prose h1, .prose h2, .prose h3 { margin: 1.25rem 0 0.65rem; line-height: 1.3; }
.prose li { margin: 0.35rem 0; }
.prose table { margin: 0.85rem 0 1.1rem; }


/* —— PLAIN TEXT VIEW (must be obvious) —— */
body.plain-mode {
  background: #ffffff !important;
  background-image: none !important;
  color: #000 !important;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.85 !important;
  letter-spacing: 0.02em !important;
}
body.plain-mode .topbar {
  background: #000 !important;
  border-bottom: 4px solid #000 !important;
  position: sticky;
}
body.plain-mode .brand-kicker { color: #bbb !important; }
body.plain-mode .brand-title {
  font-family: inherit !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}
body.plain-mode .nav-main a {
  border-radius: 0 !important;
  border: 1px solid #444 !important;
  color: #eee !important;
  background: transparent !important;
  font-weight: 600 !important;
}
body.plain-mode .nav-main a.cta,
body.plain-mode .nav-main a[aria-current="page"] {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}
body.plain-mode #plain-mode-link {
  background: #ffe566 !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  font-weight: 800 !important;
}
body.plain-mode .page {
  max-width: 40rem !important;
  padding: 2.5rem 1.25rem 5rem !important;
}
body.plain-mode .card,
body.plain-mode .hero-copy,
body.plain-mode .role-card,
body.plain-mode .path-card,
body.plain-mode .arc-card {
  background: #fff !important;
  border: 2px solid #000 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.75rem 1.25rem !important;
  margin-bottom: 1.75rem !important;
}
body.plain-mode .card h2,
body.plain-mode .card h3,
body.plain-mode h2,
body.plain-mode h3 {
  font-family: inherit !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  border-bottom: 2px solid #000;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem !important;
}
body.plain-mode p { margin: 0 0 1.15rem !important; }
body.plain-mode li { margin: 0.55rem 0 !important; }
body.plain-mode table.data th,
body.plain-mode table.data td {
  border: 1px solid #333 !important;
  padding: 0.75rem 0.65rem !important;
}
body.plain-mode .btn,
body.plain-mode .btn-primary {
  border-radius: 0 !important;
  border: 2px solid #000 !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}
body.plain-mode .btn-primary {
  background: #000 !important;
  color: #fff !important;
}
body.plain-mode .visionflow {
  background: #f0f0f0 !important;
  border-bottom: 2px solid #000 !important;
  backdrop-filter: none !important;
}
body.plain-mode .visionflow-steps a {
  border-radius: 0 !important;
  border: 1px solid #000 !important;
  background: #fff !important;
}
body.plain-mode .visionflow-steps a.is-active {
  background: #000 !important;
  color: #fff !important;
}
body.plain-mode .site-footer {
  background: #f0f0f0 !important;
  border-top: 2px solid #000 !important;
}
body.plain-mode #law-support-fab {
  border-radius: 0 !important;
  background: #000 !important;
  border: 2px solid #ffe566 !important;
}
body.plain-mode #law-support-toast { display: none !important; }
body.plain-mode .gold,
body.plain-mode .brand-kicker { opacity: 0.85; }

/* Banner injected by app.js */
#plain-banner {
  display: none;
  background: #ffe566;
  color: #000;
  border-bottom: 3px solid #000;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  z-index: 50;
  position: relative;
}
body.plain-mode #plain-banner { display: block; }
#plain-banner a { color: #000; font-weight: 800; margin-left: 0.75rem; }
body:not(.plain-mode) #plain-mode-link {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,229,102,0.7) !important;
  color: #ffe566 !important;
}


/* —— Here-and-now strip: horizontal critical do (Refer leads) —— */
#law-here-now {
  background: linear-gradient(90deg, #1a3d2b 0%, #244a35 55%, #2a5540 100%);
  border-bottom: 2px solid #0f291c;
  font-family: var(--sans);
  z-index: 48;
  position: relative;
}
#law-here-now .lhn-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.45rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}
#law-here-now .lhn-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fd4b0;
  margin-right: 0.25rem;
}
#law-here-now a {
  font-size: 0.86rem;
  font-weight: 700;
  color: #f4fff7;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.12);
  line-height: 1.25;
}
#law-here-now a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffe566;
}
#law-here-now a.lhn-refer {
  background: #ffe566;
  color: #0f291c !important;
  border-color: #ffe566;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
}
#law-here-now a.lhn-refer:hover {
  filter: brightness(1.05);
}
#law-here-now a.is-active {
  outline: 2px solid #ffe566;
  outline-offset: 1px;
}
#law-here-now a.lhn-refer.is-active {
  outline-color: #fff;
}
body.plain-mode #law-here-now {
  background: #000 !important;
  border-bottom: 2px solid #ffe566 !important;
}
body.plain-mode #law-here-now a {
  border-radius: 0 !important;
}
body.focus-mode #law-here-now {
  background: var(--f-deep, #063540) !important;
  border-bottom-color: var(--f-chip-active, #ffe566) !important;
}
body.focus-mode #law-here-now a.lhn-refer {
  background: var(--f-chip-active, #ffe566) !important;
  color: var(--f-on-accent, #042028) !important;
}
@media print {
  #law-here-now { display: none !important; }
}

/* Top nav Refer CTA when promoted */
.nav-main a.nav-refer.cta,
.nav-main a.cta.nav-refer {
  background: #1a3d2b !important;
  color: #fff !important;
  border: 1px solid #1a3d2b !important;
  font-weight: 800 !important;
}
.topbar .nav-main a.nav-refer.cta:hover {
  filter: brightness(1.08);
}

/* —— Dash menu: burned-down Action · View · Menu (hands up as panel) —— */
#law-triple-bar {
  position: relative;
  z-index: 50;
  background: #efebe3;
  border-bottom: 1px solid var(--line, #e2e6eb);
  font-family: var(--sans);
  box-shadow: 0 2px 10px rgba(21,32,51,0.06);
}
.topbar { z-index: 46; }
body.has-triple-bar .topbar { position: sticky; top: 0; }

#law-triple-bar .ltb-dash {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.4rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}
#law-triple-bar .ltb-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--navy, #152033);
  background: var(--navy, #152033);
  color: #fff;
  cursor: pointer;
  line-height: 1.2;
}
#law-triple-bar .ltb-toggle:hover { filter: brightness(1.08); }
#law-triple-bar.ltb-open .ltb-toggle {
  background: #fff;
  color: var(--navy, #152033);
}
#law-triple-bar .ltb-toggle-mark { font-size: 1rem; line-height: 1; }
#law-triple-bar .ltb-toggle-chevron { opacity: 0.85; font-size: 0.75rem; }
#law-triple-bar .ltb-summary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted, #5a6572);
  flex: 1 1 auto;
  min-width: 8rem;
}
#law-triple-bar .ltb-quick {
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line, #d5d0c6);
  background: #fff;
  color: var(--ink, #161b22);
  text-decoration: none;
}
#law-triple-bar .ltb-quick:hover {
  border-color: var(--focus, #2a4d6e);
  color: var(--focus, #2a4d6e);
}
#law-triple-bar .ltb-quick.is-active {
  background: #1a3d2b;
  border-color: #1a3d2b;
  color: #fff;
}
#law-triple-bar .ltb-quick-refer {
  background: #1a3d2b;
  border-color: #1a3d2b;
  color: #fff;
  font-weight: 800;
}
#law-triple-bar .ltb-quick-refer:hover {
  background: #0f291c;
  color: #ffe566;
  border-color: #0f291c;
}
#law-triple-bar .ltb-section[data-theme="action"] {
  order: -1;
  border-color: #1a3d2b;
  box-shadow: 0 0 0 1px rgba(26, 61, 43, 0.12);
}
@media (max-width: 560px) {
  #law-triple-bar .ltb-quick-hide-sm { display: none; }
  #law-triple-bar .ltb-summary { flex-basis: 100%; order: 5; }
}

/* Hand-up panel */
#law-triple-bar .ltb-panel {
  border-top: 1px solid var(--line, #e2e6eb);
  background: #fbf9f4;
  max-height: min(70vh, 32rem);
  overflow: auto;
  animation: ltb-hand-up 0.18s ease-out;
}
#law-triple-bar .ltb-panel[hidden] { display: none !important; }
@keyframes ltb-hand-up {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #law-triple-bar .ltb-panel { animation: none; }
}
#law-triple-bar .ltb-panel-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.75rem 1.15rem 1rem;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  #law-triple-bar .ltb-panel-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  #law-triple-bar .ltb-panel-inner {
    grid-template-columns: 1.1fr 1fr 0.9fr 0.9fr 1fr;
  }
}
#law-triple-bar .ltb-section {
  min-width: 0;
  padding: 0.55rem 0.65rem 0.7rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line, #e8e2d6);
}
#law-triple-bar .ltb-section-title {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #5a6572);
}
#law-triple-bar .ltb-hint {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.85;
}
#law-triple-bar .ltb-items {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
#law-triple-bar .ltb-items a,
#law-triple-bar .ltb-items button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink, #161b22);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.3;
}
#law-triple-bar .ltb-items a:hover,
#law-triple-bar .ltb-items button:hover {
  background: #f4f1ea;
  border-color: var(--line, #e2e6eb);
}
#law-triple-bar .ltb-items a.is-active,
#law-triple-bar .ltb-items button.is-active {
  background: var(--navy, #152033);
  border-color: var(--navy, #152033);
  color: #fff;
}
#law-triple-bar .ltb-section[data-theme="action"] .ltb-items a.is-active {
  background: #1a3d2b;
  border-color: #1a3d2b;
}
#law-triple-bar .ltb-section[data-theme="view"] .ltb-items button.is-active {
  background: #3d4f6f;
  border-color: #3d4f6f;
}
#law-triple-bar .ltb-section[data-theme="menu"] .ltb-items a.is-active,
#law-triple-bar .ltb-section[data-theme="places"] .ltb-items a.is-active {
  background: #5a4a32;
  border-color: #5a4a32;
}
#law-triple-bar .ltb-section[data-theme="tone"] .ltb-items button.is-active {
  background: #0a5463;
  border-color: #0a5463;
}
#law-triple-bar .ltb-section.ltb-climate-dim {
  opacity: 0.55;
}
#law-triple-bar .ltb-section.ltb-climate-dim .ltb-items button {
  cursor: pointer; /* still clickable → switches to Focus */
}
#law-triple-bar .ltb-section.ltb-climate-live {
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(10, 84, 99, 0.2);
}

/* Focus / plain recolor of dash chrome */
body.focus-mode #law-triple-bar {
  background: var(--f-mid) !important;
  border-bottom: 3px solid var(--f-hi) !important;
}
body.focus-mode #law-triple-bar .ltb-summary { color: var(--f-soft) !important; }
body.focus-mode #law-triple-bar .ltb-toggle {
  background: var(--f-on-accent) !important;
  color: var(--f-text) !important;
  border-color: var(--f-hi) !important;
  border-radius: 4px !important;
}
body.focus-mode #law-triple-bar .ltb-quick {
  background: var(--f-on-accent) !important;
  color: var(--f-text) !important;
  border-color: var(--f-hi) !important;
  border-radius: 4px !important;
}
body.focus-mode #law-triple-bar .ltb-panel { background: var(--f-paper1) !important; }
body.plain-mode #law-triple-bar {
  background: #f0f0f0 !important;
  border-bottom: 2px solid #000 !important;
  box-shadow: none !important;
}
body.plain-mode #law-triple-bar .ltb-toggle,
body.plain-mode #law-triple-bar .ltb-quick,
body.plain-mode #law-triple-bar .ltb-items a,
body.plain-mode #law-triple-bar .ltb-items button {
  border-radius: 0 !important;
}

/* —— Outcome strip: clock · who · one next do (Plane B — not velocity theater) —— */
#law-outcome-strip {
  background: #f7f4ed;
  border-bottom: 1px solid var(--line, #e2e6eb);
  font-family: var(--sans);
  font-size: 0.88rem;
}
#law-outcome-strip .los-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.4rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  color: var(--ink, #161b22);
}
#law-outcome-strip .los-sep {
  color: var(--muted, #5a6572);
  opacity: 0.7;
}
#law-outcome-strip .los-clock {
  font-weight: 750;
  letter-spacing: 0.01em;
}
#law-outcome-strip .los-role {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed var(--line, #c8c2b4);
  font-weight: 650;
}
#law-outcome-strip .los-role:hover {
  color: var(--focus, #2a4d6e);
  border-bottom-color: var(--focus, #2a4d6e);
}
#law-outcome-strip .los-next-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #5a6572);
}
#law-outcome-strip .los-next {
  font-weight: 750;
  color: #1a3d2b;
  text-decoration: none;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #1a3d2b;
  background: #fff;
}
#law-outcome-strip .los-next:hover {
  background: #1a3d2b;
  color: #fff;
}
body.plain-mode #law-outcome-strip {
  background: #fff;
  border-bottom: 2px solid #000;
}
body.plain-mode #law-outcome-strip .los-next {
  border-radius: 0;
  border-color: #000;
  color: #000;
}
body.plain-mode #law-outcome-strip .los-next:hover {
  background: #000;
  color: #fff;
}
body.focus-mode #law-outcome-strip {
  background: var(--f-card, #f4f8fb) !important;
  border-bottom: 2px solid var(--f-hi, #2a8f9e) !important;
  color: var(--f-ink) !important;
}
body.focus-mode #law-outcome-strip .los-next {
  border-color: var(--f-mid) !important;
  color: var(--f-deep) !important;
  background: #fff !important;
  border-radius: 4px !important;
}
body.focus-mode #law-outcome-strip .los-next:hover {
  background: var(--f-mid) !important;
  color: var(--f-text) !important;
}
@media print {
  #law-outcome-strip { display: none !important; }
}


/* —— FOCUS VIEW: intent = path-first hearing structure
   Climate (cool/warm/neutral) = temporal resonance only — not a 4th View, not MCP/tool chips.
   Cool is the deliberate Focus counter-system (vs warm Standard paper / B&W Plain).
   Warm/neutral keep Focus layout while answering “these colors don’t fit me now.”
*/
body.focus-mode {
  --f-ink: #0e1a24;
  --f-muted: #3d5566;
  --f-line: #b8c9d4;
  --f-paper0: #c5d9e4;
  --f-paper1: #e8f1f5;
  --f-paper2: #d2e4ec;
  --f-card: #f4f8fb;
  --f-deep: #063540;
  --f-mid: #0a5463;
  --f-hi: #2a8f9e;
  --f-soft: #9fd4dc;
  --f-text: #e7f6f8;
  --f-on-accent: #042028;
  --f-chip-active: #ffe566;
  --f-rail: #0a5463;
  color: var(--f-ink) !important;
  font-size: 17.5px !important;
  line-height: 1.7 !important;
  background: linear-gradient(165deg, var(--f-paper0) 0%, var(--f-paper1) 42%, var(--f-paper2) 100%) !important;
}
/* Resonance tones — same Focus structure, different climate */
body.focus-mode.tone-cool {
  /* default cool hearing-room (tokens above) */
}
body.focus-mode.tone-warm {
  --f-ink: #1c1410;
  --f-muted: #6b5344;
  --f-line: #d4c0a8;
  --f-paper0: #e8d4bc;
  --f-paper1: #f6ebe0;
  --f-paper2: #e6d2ba;
  --f-card: #fffaf4;
  --f-deep: #3d2918;
  --f-mid: #6b4423;
  --f-hi: #b8894a;
  --f-soft: #e8d4a8;
  --f-text: #faf3e8;
  --f-on-accent: #2a1a0c;
  --f-chip-active: #ffe566;
  --f-rail: #8b5a2b;
}
body.focus-mode.tone-neutral {
  --f-ink: #141414;
  --f-muted: #555;
  --f-line: #bbb;
  --f-paper0: #d8d8d8;
  --f-paper1: #ececec;
  --f-paper2: #e0e0e0;
  --f-card: #f7f7f7;
  --f-deep: #222;
  --f-mid: #444;
  --f-hi: #666;
  --f-soft: #ccc;
  --f-text: #f2f2f2;
  --f-on-accent: #111;
  --f-chip-active: #fff59d;
  --f-rail: #333;
}

body.focus-mode .topbar {
  background: linear-gradient(90deg, var(--f-deep) 0%, var(--f-mid) 50%, var(--f-hi) 100%) !important;
  border-bottom: 4px solid var(--f-hi) !important;
}
body.focus-mode .brand-kicker { color: var(--f-soft) !important; letter-spacing: 0.18em !important; }
body.focus-mode .brand-title {
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}
body.focus-mode .nav-main a {
  border-radius: 4px !important;
  border: 1px solid color-mix(in srgb, var(--f-soft) 40%, transparent) !important;
  color: var(--f-text) !important;
  background: rgba(0,0,0,0.15) !important;
}
body.focus-mode .nav-main a.cta,
body.focus-mode .nav-main a[aria-current="page"] {
  background: var(--f-hi) !important;
  color: var(--f-on-accent) !important;
  border-color: var(--f-hi) !important;
  font-weight: 800 !important;
}
body.focus-mode .nav-main a:not([aria-current="page"]):not(.cta) {
  opacity: 0.72;
  font-size: 0.82rem !important;
}
body.focus-mode #law-triple-bar {
  background: var(--f-mid) !important;
  border-bottom: 3px solid var(--f-hi) !important;
  box-shadow: none !important;
}
body.focus-mode #law-triple-bar .ltb-section {
  background: var(--f-card) !important;
  border-color: var(--f-line) !important;
}
body.focus-mode #law-triple-bar .ltb-section-title { color: var(--f-muted) !important; }
body.focus-mode #law-triple-bar .ltb-items a.is-active,
body.focus-mode #law-triple-bar .ltb-items button.is-active {
  background: var(--f-hi) !important;
  color: var(--f-on-accent) !important;
  border-color: var(--f-text) !important;
  font-weight: 800 !important;
}

body.focus-mode .page {
  max-width: 38rem !important;
  padding: 1.5rem 1.1rem 4rem !important;
}
body.focus-mode .card,
body.focus-mode .hero-copy,
body.focus-mode .role-card,
body.focus-mode .path-card {
  background: var(--f-card) !important;
  border: 1px solid var(--f-line) !important;
  border-left: 5px solid var(--f-rail) !important;
  border-radius: 2px 10px 10px 2px !important;
  box-shadow: 0 4px 0 rgba(0,0,0,0.06) !important;
  padding: 1.15rem 1.15rem 1.25rem !important;
  margin-bottom: 1rem !important;
}
body.focus-mode .card h2,
body.focus-mode .card h3,
body.focus-mode h2 {
  font-family: var(--sans) !important;
  font-weight: 800 !important;
  color: var(--f-deep) !important;
  letter-spacing: 0.03em !important;
  border-bottom: 2px solid var(--f-hi);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem !important;
}
body.focus-mode .card p { color: var(--f-ink) !important; }
body.focus-mode .btn {
  border-radius: 4px !important;
  border: 1.5px solid var(--f-mid) !important;
  background: #fff !important;
  color: var(--f-deep) !important;
  font-weight: 700 !important;
}
body.focus-mode .btn-primary {
  background: var(--f-mid) !important;
  color: var(--f-text) !important;
  border-color: var(--f-deep) !important;
}
body.focus-mode .visionflow {
  background: var(--f-mid) !important;
  border-bottom: 3px solid var(--f-hi) !important;
  color: var(--f-text) !important;
  backdrop-filter: none !important;
}
body.focus-mode .visionflow-label,
body.focus-mode .flow-mini,
body.focus-mode .role-strip .hint { color: var(--f-soft) !important; }
body.focus-mode .visionflow-steps a {
  background: var(--f-on-accent) !important;
  border: 1px solid var(--f-hi) !important;
  color: var(--f-text) !important;
  border-radius: 4px !important;
}
body.focus-mode .visionflow-steps a.is-active {
  background: var(--f-chip-active) !important;
  color: var(--f-on-accent) !important;
  border-color: var(--f-chip-active) !important;
  font-weight: 800 !important;
}
body.focus-mode .visionflow-steps .sep { color: var(--f-soft) !important; }
body.focus-mode .site-footer { display: none !important; }
body.focus-mode .breadcrumb {
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--f-muted) !important;
}
body.focus-mode table.data th {
  background: var(--f-paper2) !important;
  color: var(--f-deep) !important;
}
body.focus-mode table.data th,
body.focus-mode table.data td { border-color: var(--f-line) !important; }
body.focus-mode #law-support-fab {
  background: var(--f-mid) !important;
  border: 2px solid var(--f-chip-active) !important;
  border-radius: 4px !important;
}
body.focus-mode #plain-banner {
  display: block !important;
  background: var(--f-mid) !important;
  color: var(--f-text) !important;
  border-bottom: 3px solid var(--f-chip-active) !important;
  font-weight: 700 !important;
}
body.focus-mode #plain-banner a { color: var(--f-chip-active) !important; }

body.plain-mode.focus-mode {
  /* plain-mode rules already !important for core look */
}

body.plain-mode #law-triple-bar {
  background: #f0f0f0 !important;
  border-bottom: 2px solid #000 !important;
  box-shadow: none !important;
}
body.plain-mode #law-triple-bar a,
body.plain-mode #law-triple-bar button {
  border-radius: 0 !important;
  border: 1px solid #000 !important;
}
body.plain-mode #law-triple-bar a.is-active,
body.plain-mode #law-triple-bar button.is-active {
  background: #000 !important;
  color: #fff !important;
}

@media print {
  #law-triple-bar { display: none !important; }
}
