@import url("https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans+Thai:wght@400;500;600&display=swap");

/* Law AI Club components. Every colour, size and radius comes from tokens.css.
   The page is paper: flat surfaces, thin rules, one blue accent. No glow, gradients, glass or texture.
   The logo's square brackets are the one mark the club repeats, and only around sections of law. */

body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 28px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 14%, transparent); }
::selection { background: var(--sky-soft); color: var(--sky-ink); }

/* Preview stages (used by the component previews) */
.lac-stage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-6); }
.lac-stage-col { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); }
.lac-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); padding: var(--space-6); }
.lac-muted { color: var(--ink-muted); }
.lac-dots { background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1.4px); background-size: 16px 16px; }

/* Logo */
.lac-logo { display: block; flex: none; color: var(--logo-ink); }
.lac-logo-ink { fill: currentColor; }
.lac-logo-cursor { fill: var(--brand-sky); }
.lac-logo--inverse { color: var(--brand-white); }
.lac-logo--mono .lac-logo-cursor { fill: currentColor; }

/* Button: pills; the label says what happens */
.lac-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; min-height: 44px; padding: 0 var(--space-6); border: 1px solid transparent; border-radius: var(--radius-full); font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.lac-btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.lac-btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.lac-btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.lac-btn--secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.lac-btn--secondary:hover { border-color: var(--ink); background: var(--surface-panel); }
.lac-btn--link { min-height: 0; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lac-btn--link:hover { text-decoration-thickness: 2px; }
.lac-btn:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.lac-btn:disabled, .lac-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* Tag: small pill chips for a topic or a kind; selected chips are filled */
.lac-tag { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 28px; padding: 0 var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-full); background: transparent; color: var(--ink-muted); font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; text-decoration: none; white-space: nowrap; }
button.lac-tag { min-height: 40px; padding: 0 var(--space-4); border-color: var(--line-strong); color: var(--ink); font-size: 14px; cursor: pointer; touch-action: manipulation; transition: border-color .15s ease-out, background-color .15s ease-out; }
button.lac-tag:hover, a.lac-tag:hover { border-color: var(--ink); }
.lac-tag--sky { border-color: transparent; background: var(--sky-soft); color: var(--sky-ink); }
.lac-tag--navy { border-color: transparent; background: var(--accent); color: var(--surface); }
.lac-tag.is-selected, .lac-tag[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: var(--on-primary); }
.lac-tag:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }

/* SiteHeader: brand left, links in the middle, the theme switch and the call to action right.
   Sticky on paper; a hairline appears under it once the page scrolls (.is-scrolled). */
.lac-header { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: var(--surface); }
.lac-header--overlay { background: transparent; border-bottom-color: transparent; }
.lac-header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-6); box-sizing: border-box; max-width: var(--container); height: var(--header-height); margin: 0 auto; padding: 0 var(--space-6); }
.lac-header-brand { justify-self: start; display: inline-flex; border-radius: var(--radius-sm); }
.lac-header-brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.lac-header-nav { display: flex; gap: var(--space-1); min-width: 0; }
.lac-header-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); color: var(--ink-muted); font-size: 15px; line-height: 24px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .15s ease-out; }
.lac-header-link::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: 6px; height: 2px; border-radius: 1px; background: transparent; }
.lac-header-link:hover { color: var(--ink); }
.lac-header-link.is-current { color: var(--ink); }
.lac-header-link.is-current::after { background: var(--accent); }
.lac-header-link:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: var(--radius-sm); }
.lac-header-end { justify-self: end; display: flex; align-items: center; gap: var(--space-3); }
.lac-header--sticky { position: sticky; top: 0; z-index: 50; border-bottom-color: transparent; transition: border-color .15s ease-out; }
.lac-header--sticky.is-scrolled, .lac-menu-open .lac-header--sticky { border-bottom-color: var(--line); }

/* Theme switch: paper or charcoal; the page remembers the choice (aria-pressed = dark is on) */
.lac-theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; min-width: 44px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid transparent; border-radius: var(--radius-full); background: transparent; color: var(--ink-muted); font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 500; cursor: pointer; touch-action: manipulation; }
.lac-theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
/* switched on: the button looks pressed, so the dark page reads as a choice the reader can undo */
.lac-theme-toggle[aria-pressed="true"] { border-color: var(--line-strong); background: var(--surface-panel); color: var(--ink); }
.lac-theme-toggle:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.lac-theme-toggle svg { flex: none; }
.lac-theme-toggle .is-sun, [data-theme="night"] .lac-theme-toggle .is-moon { display: none; }
[data-theme="night"] .lac-theme-toggle .is-sun { display: block; }

/* Menu button and the full-screen mobile menu */
.lac-menu-toggle { position: relative; display: none; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-full); background: transparent; cursor: pointer; touch-action: manipulation; }
.lac-menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .2s ease-out, top .2s ease-out; }
.lac-menu-toggle span:nth-child(1) { top: 17px; }
.lac-menu-toggle span:nth-child(2) { top: 25px; }
.lac-menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.lac-menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.lac-menu-toggle:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.lac-mobile-menu { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; z-index: 49; display: flex; flex-direction: column; align-items: stretch; gap: var(--space-6); overflow-y: auto; overscroll-behavior: contain; padding: var(--space-4) max(var(--space-4), env(safe-area-inset-right, 0px)) calc(var(--space-12) + env(safe-area-inset-bottom, 0px)) max(var(--space-4), env(safe-area-inset-left, 0px)); background: var(--surface); }
.lac-mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.lac-mobile-link { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4) 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-display); font-size: 22px; line-height: 32px; font-weight: 500; text-decoration: none; }
.lac-mobile-link small { color: var(--ink-muted); font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; }
.lac-mobile-link.is-current { color: var(--accent); }
.lac-mobile-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.lac-mobile-menu-note { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.lac-menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .lac-header-inner { grid-template-columns: minmax(0, 1fr) auto; height: 64px; gap: var(--space-3); padding: 0 max(var(--space-4), env(safe-area-inset-left, 0px)); }
  .lac-header-nav { display: none; }
  .lac-header-brand svg { width: auto; height: 30px; }
  .lac-header-end { gap: var(--space-2); }
  .lac-menu-toggle { display: inline-block; }
  .lac-theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 480px) {
  .lac-header-cta { display: none; }
}

/* Hero (home page top): what the club is, then where to start. Left-aligned text on the paper, nothing moves */
.lac-hero { position: relative; color: var(--ink); }
.lac-hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); box-sizing: border-box; max-width: var(--container); margin: 0 auto; padding: var(--space-16) var(--space-6) var(--space-12); }
.lac-hero-eyebrow { margin: 0; color: var(--accent); font-size: 14px; line-height: 22px; font-weight: 500; }
.lac-hero-title { margin: 0; max-width: 18em; font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 52px); line-height: 1.3; font-weight: 500; text-wrap: balance; }
.lac-hero-title > span:not(.nw) { display: block; } /* span.nw keeps a Thai word whole (thai-keep.js); it is not a line */
.lac-hero-lead { margin: 0; max-width: 36em; color: var(--ink-muted); font-size: 18px; line-height: 32px; text-wrap: pretty; }
.lac-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); padding-top: var(--space-2); }
.lac-hero-note { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
@media (max-width: 640px) {
  .lac-hero-inner { padding: var(--space-8) var(--space-4) var(--space-8); }
  .lac-hero-lead { font-size: 17px; line-height: 30px; }
}

/* Explainer: one worked example, a question and how the club would answer it, with the sections cited */
.lac-explainer { box-sizing: border-box; width: 100%; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); text-align: left; }
.lac-explainer-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-6); border-bottom: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.lac-explainer-dots { display: none; }
.lac-explainer-title { flex: 1; min-width: 0; }
.lac-explainer-tag { padding: 0 var(--space-3); border-radius: var(--radius-full); background: var(--sky-soft); color: var(--sky-ink); white-space: nowrap; }
.lac-explainer-tag:empty { display: none; }
.lac-explainer-body { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); }
.lac-explainer-label { margin: var(--space-2) 0 0; color: var(--accent); font-size: 13px; line-height: 20px; font-weight: 500; }
.lac-explainer-label:first-child { margin-top: 0; }
.lac-explainer-q { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 32px; font-weight: 500; }
.lac-explainer-a { margin: 0; color: var(--ink); font-size: 16px; line-height: 28px; }
.lac-explainer-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lac-explainer-typed { display: none; }
.lac-explainer-cites { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.lac-explainer-cite { color: var(--accent); font-size: 14px; line-height: 22px; font-weight: 500; white-space: nowrap; }
.lac-explainer-cite::before { content: "[ "; font-family: var(--font-mono); }
.lac-explainer-cite::after { content: " ]"; font-family: var(--font-mono); }
.lac-explainer-more { margin-left: auto; color: var(--link); font-size: 14px; line-height: 22px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.lac-explainer-more:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
@media (max-width: 640px) {
  .lac-explainer-bar, .lac-explainer-body { padding-left: var(--space-4); padding-right: var(--space-4); }
  .lac-explainer-more { margin-left: 0; }
}

/* SectionTitle: one heading in one colour; an optional second span is a quieter line under it */
.lac-heading { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.4; font-weight: 500; text-wrap: balance; }
.lac-heading > span:not(.nw) { display: block; }
.lac-heading > span:not(.nw) + span:not(.nw) { color: var(--ink-muted); font-weight: 400; }

/* Eyebrow: a short label above a heading, plain text in the accent */
.lac-eyebrow { display: block; width: fit-content; margin: 0; color: var(--accent); font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 500; }

/* Panel: a raised sheet on the paper, for forms, examples and grouped choices */
.lac-panel { position: relative; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }

/* Backdrop: kept as a hook for older pages; the paper needs no light behind it */
.lac-backdrop { position: relative; }

/* PageHead: the top of an inner page, what is here and how to use it, closed by a hairline */
.lac-pagehead { border-bottom: 1px solid var(--line); }
.lac-pagehead-inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); box-sizing: border-box; max-width: var(--container); margin: 0 auto; padding: var(--space-12) var(--space-6) var(--space-8); }
.lac-pagehead-lead { margin: 0; max-width: 40em; color: var(--ink-muted); font-size: 17px; line-height: 30px; text-wrap: pretty; }
@media (max-width: 640px) {
  .lac-pagehead-inner { padding: var(--space-8) var(--space-4) var(--space-6); }
}

/* Ticker: sections of law we explain, as a still row in square brackets (no motion) */
.lac-ticker { border-block: 1px solid var(--line); }
.lac-ticker-track { display: block; }
.lac-ticker-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); margin: 0; padding: var(--space-4) 0; list-style: none; }
.lac-ticker-list[aria-hidden="true"] { display: none; }
.lac-ticker-list li { display: inline-flex; align-items: baseline; gap: var(--space-2); color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.lac-ticker-list li::before { content: "["; color: var(--accent); font-family: var(--font-mono); }
.lac-ticker-list li::after { content: "]"; color: var(--accent); font-family: var(--font-mono); }
.lac-ticker-list b { color: var(--ink); font-weight: 600; }

/* ArticleCard: an entry in a list. Topic and level, the title as the link, two lines of summary, time to read.
   Entries sit on a rule rather than in boxes; the whole entry is the link's target */
.lac-card { position: relative; display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; box-sizing: border-box; padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.lac-card-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; margin-bottom: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: var(--surface-panel); background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1.4px); background-size: 16px 16px; }
.lac-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.lac-card-cover-code { position: relative; padding: var(--space-1) var(--space-3); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: 18px; line-height: 26px; font-weight: 500; }
.lac-card-cover-code::before { content: "[ "; color: var(--accent); }
.lac-card-cover-code::after { content: " ]"; color: var(--accent); }
.lac-card-cover--art { place-items: end start; padding: var(--space-3); background-image: none; }
.lac-card-art, .lac-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.lac-art-line { fill: none; stroke: var(--line-strong); stroke-width: 1; opacity: .55; }
.lac-art-sky { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.lac-art-dot { fill: var(--line-strong); opacity: .5; }
.lac-art-fill { fill: var(--accent); }
.lac-art-bar { fill: var(--line-strong); opacity: .45; }
.lac-art-band { fill: color-mix(in srgb, var(--accent) 14%, transparent); }
.lac-art-lens { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 1.4; }
.lac-art-glow-a { stop-color: var(--accent); stop-opacity: .12; }
.lac-art-glow-b { stop-color: var(--accent); stop-opacity: 0; }
.lac-card-cover--art .lac-card-cover-code { z-index: 1; padding: 2px var(--space-3); font-size: 13px; line-height: 20px; white-space: nowrap; }
.lac-card-body { display: flex; flex-direction: column; gap: var(--space-2); }
.lac-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.lac-card-title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 32px; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.lac-card-title a { color: inherit; text-decoration: none; }
.lac-card-title a::after { content: ""; position: absolute; inset: 0; }
.lac-card:hover .lac-card-title a, .lac-card:hover .lac-card-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lac-card-title a:focus-visible { outline: none; }
.lac-card-title a:focus-visible::after { box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.lac-card-excerpt { margin: 0; max-width: 40em; color: var(--ink-muted); font-size: 15px; line-height: 26px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lac-card-foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-top: auto; padding-top: var(--space-1); }
.lac-card-meta { color: var(--ink-muted); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
/* a second action in the entry (e.g. join the team) sits above the title link */
.lac-card-link { position: relative; z-index: 1; display: inline-block; padding-block: var(--space-2); color: var(--link); font-size: 14px; line-height: 22px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lac-card-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.lac-level { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.lac-level-bars { display: inline-flex; align-items: flex-end; gap: 2px; }
.lac-level-bar { width: 4px; background: var(--line-strong); border-radius: 1px; opacity: .55; }
.lac-level-bar:nth-child(1) { height: 6px; }
.lac-level-bar:nth-child(2) { height: 9px; }
.lac-level-bar:nth-child(3) { height: 12px; }
.lac-level-bar.is-on { background: var(--accent); opacity: 1; }

/* Lead and side entries: .lac-bento holds one larger entry and two smaller ones beside it */
.lac-bento { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 var(--space-12); }
.lac-card--lead { grid-row: span 2; }
.lac-card--lead .lac-card-title { font-size: 26px; line-height: 40px; font-weight: 500; }
.lac-card--lead .lac-card-excerpt { font-size: 16px; line-height: 28px; -webkit-line-clamp: 4; }
@media (max-width: 900px) {
  .lac-bento { grid-template-columns: minmax(0, 1fr); }
  .lac-card--lead { grid-row: auto; }
  .lac-card--lead .lac-card-title { font-size: 22px; line-height: 34px; }
}

/* WorkCard: status by word and dot fill (hollow, half, solid), tools as mono chips */
.lac-status { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); font-size: 13px; line-height: 20px; font-weight: 500; }
.lac-status::before { content: ""; width: 10px; height: 10px; box-sizing: border-box; border: 1.5px solid var(--accent); border-radius: var(--radius-full); }
.lac-status--prototype::before { background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.lac-status--live { color: var(--ink); }
.lac-status--live::before { background: var(--accent); }
.lac-tools { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.lac-tool { padding: 0 var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; line-height: 22px; }

/* NewsItem: dated rows on thin rules */
.lac-news { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6) 0; border-top: 1px solid var(--line); }
.lac-news-date { display: flex; flex-direction: column; gap: 2px; font-variant-numeric: tabular-nums; }
.lac-news-day { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 500; color: var(--ink); }
.lac-news-month { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.lac-news-body { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.lac-news-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); }
.lac-news-kind { color: var(--ink-muted); font-size: 13px; line-height: 20px; font-weight: 500; }
.lac-news-title { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 30px; font-weight: 600; text-wrap: pretty; }
.lac-news-link { color: var(--ink); text-decoration: none; }
.lac-news-link::after { content: ""; position: absolute; inset: 0; }
.lac-news:hover .lac-news-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.lac-news-link:focus-visible { outline: none; }
.lac-news-link:focus-visible::after { box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.lac-news-source { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
/* the source line can link to the original even though the title link covers the row */
.lac-news-source a { position: relative; z-index: 1; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .lac-news { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-4) 0; }
  .lac-news-date { flex-direction: row; align-items: baseline; gap: var(--space-2); }
  .lac-news-day { font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; color: var(--ink-muted); }
}

/* ClaimTag: fact, a party's argument, the court's order or ruling, or an opinion; each has its own colour,
   and its own mark and outline so the kinds still differ without colour */
.lac-claim { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 1px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-full); color: var(--ink); font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; white-space: nowrap; }
.lac-claim::before { content: ""; flex: none; width: 8px; height: 8px; box-sizing: border-box; border: 1.5px solid currentColor; border-radius: 50%; }
.lac-claim--fact { background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.lac-claim--fact::before { background: currentColor; }
.lac-claim--argument { border-style: dashed; border-color: color-mix(in srgb, var(--amber-ink) 60%, transparent); background: var(--amber-soft); color: var(--amber-ink); }
.lac-claim--argument::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.lac-claim--ruling { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: var(--sky-soft); color: var(--sky-ink); }
.lac-claim--ruling::before { border-radius: 1px; background: currentColor; }
.lac-claim--opinion { border-style: dotted; border-color: color-mix(in srgb, var(--violet-ink) 65%, transparent); background: var(--violet-soft); color: var(--violet-ink); }

/* CaseFacts: label beside value; stacks on narrow screens */
.lac-facts { margin: 0; padding: var(--space-2) var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.lac-facts-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.lac-facts-row:last-child { border-bottom: 0; }
.lac-facts dt { color: var(--ink-muted); font-size: 14px; line-height: 24px; font-weight: 500; }
.lac-facts dd { margin: 0; color: var(--ink); font-size: 16px; line-height: 28px; }
@media (max-width: 640px) {
  .lac-facts { padding: var(--space-1) var(--space-4); }
  .lac-facts-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* CaseStatus: where a case stands at a glance; the steps of the case on a line, then a few key facts */
.lac-case-status { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6) var(--space-8) var(--space-8); }
.lac-case-status-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.lac-case-asof { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--ink-muted); font-size: 13px; line-height: 20px; font-weight: 500; }
.lac-case-asof::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lac-stages { display: grid; grid-template-columns: repeat(var(--stages, 5), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.lac-stages li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 34px var(--space-4) 0 0; min-width: 0; }
.lac-stages li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line-strong); }
.lac-stages li:last-child::before { right: auto; width: 18px; }
.lac-stages li.is-done::before { background: var(--accent); }
.lac-stages li.is-now::before { background: linear-gradient(90deg, var(--accent) 0, var(--accent) 18px, var(--line-strong) 18px); }
.lac-stage-dot { position: absolute; top: 1px; left: 0; z-index: 1; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.lac-stages .is-done .lac-stage-dot { border-color: var(--accent); background: var(--accent); }
.lac-stages .is-done .lac-stage-dot::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lac-stages .is-now .lac-stage-dot { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.lac-stages .is-now .lac-stage-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.lac-stages b { color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 600; }
.lac-stages .is-next b { color: var(--ink-muted); font-weight: 500; }
.lac-stages .is-done b { color: var(--ink-muted); font-weight: 500; }
.lac-stages .is-now b { color: var(--ink); font-weight: 700; }
.lac-stages em { width: fit-content; margin: 2px 0; padding: 0 8px; border-radius: var(--radius-full); background: var(--sky-soft); color: var(--sky-ink); font-size: 13px; line-height: 20px; font-style: normal; font-weight: 600; }
/* the note under a step only: a step name may hold no-break spans of its own (.nw), which must keep the name's size */
.lac-stages li > span:not(.lac-stage-dot) { color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.lac-case-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-4) var(--space-6); margin: 0; padding-top: var(--space-6); border-top: 1px solid var(--line); }
.lac-case-keys dt { color: var(--ink-muted); font-size: 13px; line-height: 20px; font-weight: 500; }
.lac-case-keys dd { margin: 2px 0 0; color: var(--ink); font-size: 16px; line-height: 26px; font-weight: 500; }
@media (max-width: 760px) {
  .lac-case-status { padding: var(--space-4); }
  .lac-stages { grid-template-columns: minmax(0, 1fr); }
  .lac-stages li { padding: 0 0 var(--space-4) 34px; }
  .lac-stages li::before, .lac-stages li:last-child::before { top: 18px; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; }
  .lac-stages li:last-child::before { display: none; }
  .lac-stages li.is-now::before { background: var(--line-strong); }
}

/* LawCitation: a section of law framed by the logo's square brackets, the club's one recurring mark */
.lac-cite { position: relative; display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: var(--space-6) var(--space-8); background: var(--surface-raised); }
.lac-cite::before, .lac-cite::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14px; box-sizing: border-box; border: 3px solid var(--accent); }
.lac-cite::before { left: 0; border-right: 0; }
.lac-cite::after { right: 0; border-left: 0; }
.lac-cite-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.lac-cite-section { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--accent); }
.lac-cite-law { color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.lac-cite-body { margin: 0; color: var(--ink); font-size: 18px; line-height: 32px; }
.lac-cite-note { margin: 0; color: var(--ink-muted); font-size: 13px; line-height: 20px; }

/* FaqItem: a question that opens to its answer; plus turns to minus */
.lac-faq { border-bottom: 1px solid var(--line); }
.lac-faq:first-child { border-top: 1px solid var(--line); }
.lac-faq-q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 44px; padding: var(--space-4) 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 18px; line-height: 30px; font-weight: 500; color: var(--ink); }
.lac-faq-q::-webkit-details-marker { display: none; }
.lac-faq-q:hover { color: var(--accent); }
.lac-faq-q:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 2px; }
.lac-faq-icon { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-full); }
.lac-faq-icon::before, .lac-faq-icon::after { content: ""; position: absolute; top: 50%; left: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .2s ease-out; }
.lac-faq-icon::after { transform: rotate(90deg); }
.lac-faq[open] .lac-faq-icon::after { transform: rotate(0deg); }
.lac-faq-a { max-width: var(--measure); padding: 0 var(--space-12) var(--space-6) 0; color: var(--ink); font-size: 16px; line-height: 28px; }
.lac-faq-a p { margin: 0; }

/* Text links that lead on carry a small arrow */
.lac-btn--link::after { content: "\2192"; display: inline-block; margin-left: var(--space-1); }

/* Blank: text still to be filled in, shown the way a draft contract shows a blank */
.lac-blank { color: var(--accent); font-family: var(--font-sans); }

/* SiteFooter: brand block beside three link groups, a legal row, the disclaimer */
.lac-footer { border-top: 1px solid var(--line); background: var(--surface); }
.lac-footer-mark { display: none; }
.lac-footer-inner { box-sizing: border-box; max-width: var(--container); margin: 0 auto; padding: var(--space-12) max(var(--space-6), env(safe-area-inset-right, 0px)) calc(var(--space-12) + env(safe-area-inset-bottom, 0px)) max(var(--space-6), env(safe-area-inset-left, 0px)); }
.lac-footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-12); }
.lac-footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.lac-footer-logo { display: inline-flex; border-radius: var(--radius-sm); }
.lac-footer-logo:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.lac-footer-tagline { margin: 0; max-width: 28ch; color: var(--ink-muted); font-size: 15px; line-height: 26px; }
.lac-footer-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.lac-footer-head { margin: 0 0 var(--space-3); color: var(--ink-muted); font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 500; }
.lac-footer-groups ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.lac-footer-groups a { display: inline-block; padding: 6px 0; color: var(--ink); font-size: 14px; line-height: 22px; text-decoration: none; }
.lac-footer-groups a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lac-footer-groups a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.lac-footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-8); margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.lac-footer-disclaimer { margin: var(--space-3) 0 0; color: var(--ink-muted); font-size: 13px; line-height: 20px; }
@media (max-width: 900px) {
  .lac-footer-top { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}
@media (max-width: 640px) {
  .lac-footer-inner { padding-left: max(var(--space-4), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-4), env(safe-area-inset-right, 0px)); }
  .lac-footer-groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lac-footer-groups > div:last-child { grid-column: 1 / -1; }
}

/* Back to top: a round button that appears after a screen of scrolling (.is-shown) */
.lac-to-top { position: fixed; right: max(var(--space-4), env(safe-area-inset-right, 0px)); bottom: max(var(--space-4), env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-full); background: var(--surface-raised); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s ease-out; }
.lac-to-top.is-shown { opacity: 1; pointer-events: auto; }
.lac-to-top:hover { border-color: var(--ink); }
.lac-to-top:focus-visible { outline: 2px solid transparent; box-shadow: var(--focus-ring); }
.lac-menu-open .lac-to-top { display: none; }

/* Field: label, optional hint, the control, and an error that says how to fix it */
.lac-field { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
/* the consent line (.lac-check) is a label too, but keeps its own padding for the box */
.lac-field > label:not(.lac-check), .lac-field > legend, .lac-field-label { padding: 0; color: var(--ink); font-size: 15px; line-height: 24px; font-weight: 500; }
.lac-field > legend { margin-bottom: var(--space-2); }
.lac-field-note { margin-left: var(--space-2); color: var(--ink-muted); font-size: 13px; font-weight: 400; }
.lac-field-hint { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.lac-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), .lac-field select, .lac-field textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: var(--space-2) var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; }
.lac-field textarea { min-height: 112px; resize: vertical; }
.lac-field input::placeholder, .lac-field textarea::placeholder { color: var(--ink-muted); }
.lac-field select { appearance: none; padding-right: var(--space-12); background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.lac-field select option { background: var(--surface-raised); color: var(--ink); }
.lac-field input:focus-visible, .lac-field select:focus-visible, .lac-field textarea:focus-visible { outline: 2px solid transparent; border-color: var(--accent); box-shadow: var(--focus-ring); }
.lac-field [aria-invalid="true"] { border-color: var(--danger); }
.lac-field-error { margin: 0; color: var(--danger); font-size: 14px; line-height: 22px; }

/* Choice: the real input stays in the label, hidden but focusable; .lac-box draws it */
.lac-choice input, .lac-check input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.lac-box { position: absolute; left: var(--space-4); top: var(--space-4); width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface-raised); transition: background-color .15s ease-out, border-color .15s ease-out; }
input:checked + .lac-box { border-color: var(--accent); background: var(--accent); }
input[type="checkbox"]:checked + .lac-box::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
input[type="radio"] + .lac-box { border-radius: var(--radius-full); }
input[type="radio"]:checked + .lac-box { border-width: 5px; background: var(--surface); }
input:focus-visible + .lac-box { box-shadow: var(--focus-ring); }
input[aria-invalid="true"] + .lac-box { border-color: var(--danger); }
.lac-choice { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 48px; box-sizing: border-box; padding: var(--space-3) var(--space-4) var(--space-3) 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); cursor: pointer; transition: border-color .15s ease-out, background-color .15s ease-out; }
.lac-choice--radio .lac-box { top: 50%; margin-top: -9px; }
.lac-choice:hover { border-color: var(--ink); }
.lac-choice:has(input:checked) { border-color: var(--accent); background: var(--sky-soft); }
.lac-choice-name { color: var(--ink); font-size: 15px; line-height: 24px; font-weight: 500; }
.lac-choice--radio .lac-choice-name { font-weight: 400; }
.lac-choice-desc { color: var(--ink-muted); font-size: 13px; line-height: 20px; }
.lac-check { position: relative; display: block; padding: var(--space-2) 0 var(--space-2) 32px; color: var(--ink-muted); font-size: 14px; line-height: 22px; cursor: pointer; }
.lac-check .lac-box { left: 0; top: 10px; }
.lac-check a { display: inline-block; margin: 0 .25em; padding-block: 2px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* FormStatus: what happened after submit, never a success that did not happen */
.lac-form-status { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.lac-form-status strong { color: var(--ink); font-size: 15px; }
.lac-form-status--error { border-color: var(--danger); }
.lac-form-status--error strong { color: var(--danger); }
.lac-form-status--success { border-color: var(--accent); }

/* LeadStory: one story on the club's blue across the page, its headline across the top, the text and the case map below.
   CaseMap: who claims what, and what the court has ordered. Dashed = a party's claim, solid = ordered, hollow = not yet decided.
   The legend (.lac-legend) explains the marks wherever a map is shown. The page decides where the story sits. */
.lac-lead-inner { box-sizing: border-box; max-width: var(--container); margin: 0 auto; padding-left: max(var(--space-6), env(safe-area-inset-left, 0px)); padding-right: max(var(--space-6), env(safe-area-inset-right, 0px)); }
.lac-lead { background: var(--cover); color: var(--on-cover); }
.lac-lead-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-8) 56px; align-items: start; padding-block: var(--space-12) 72px; }
.lac-lead-head { grid-column: 1 / -1; display: flex; flex-direction: column; gap: var(--space-2); }
.lac-lead-text { display: flex; flex-direction: column; gap: var(--space-6); }
.lac-lead-title { margin: 0; font-family: var(--font-display); font-size: clamp(40px, 4.8vw, 64px); line-height: 1.2; font-weight: 600; text-wrap: balance; }
.lac-lead-title a { color: inherit; text-decoration: none; }
.lac-lead-title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 10px; }
.lac-lead-title a:focus-visible { outline: 3px solid var(--on-cover); outline-offset: 4px; border-radius: 4px; }
.lac-lead-sub { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 24px); line-height: 1.55; font-weight: 500; text-wrap: balance; }
.lac-lead-dek { margin: 0; max-width: 34em; color: var(--on-cover-muted); font-size: 17px; line-height: 30px; text-wrap: pretty; }
.lac-lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
/* the stages of the case: a real sequence, drawn as a line with the current step ringed */
.lac-lead-steps { margin: 0; padding: 0; list-style: none; }
.lac-lead-steps li { position: relative; display: flex; flex-direction: column; padding: 0 0 var(--space-4) 32px; }
.lac-lead-steps li::before { content: ""; position: absolute; left: 6px; top: 22px; bottom: -4px; width: 2px; background: rgba(255, 255, 255, .35); }
.lac-lead-steps li:last-child { padding-bottom: 0; }
.lac-lead-steps li:last-child::before { display: none; }
.lac-lead-steps li::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, .55); border-radius: 50%; }
.lac-lead-steps li.is-done::after { border-color: var(--on-cover); background: var(--on-cover); }
.lac-lead-steps li.is-now::after { left: -3px; top: 3px; width: 20px; height: 20px; border: 3px solid var(--on-cover); box-shadow: inset 0 0 0 3px var(--cover), inset 0 0 0 7px var(--on-cover); }
.lac-lead-steps b { font-size: 16px; line-height: 26px; font-weight: 500; color: var(--on-cover-muted); }
.lac-lead-steps .is-now b { color: var(--on-cover); font-weight: 600; }
.lac-lead-steps .lac-lead-step-note { color: var(--on-cover-muted); font-size: 13px; line-height: 20px; }
.lac-lead-btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-6); border-radius: var(--radius-full); background: #ffffff; color: #1f44b4; font-size: 16px; font-weight: 600; text-decoration: none; touch-action: manipulation; transition: background-color .15s ease-out, color .15s ease-out, transform .12s ease-out; }
.lac-lead-btn:hover { background: #e9eefc; }
.lac-lead-btn:hover svg { transform: translateX(2px); }
.lac-lead-btn svg { transition: transform .15s ease-out; }
.lac-lead-btn:focus-visible { outline: 3px solid var(--on-cover); outline-offset: 3px; }
.lac-lead-meta { margin: 0; color: var(--on-cover-muted); font-size: 14px; line-height: 22px; }

/* the case map: parties at the top, what each claims under them, the court below */
.lac-casemap { margin: 0; padding: var(--space-6) var(--space-6) var(--space-4); border-radius: 20px; background: var(--cover-raised); }
.lac-casemap-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-6); }
.lac-casemap-title { font-size: 16px; line-height: 24px; font-weight: 600; }
.lac-casemap-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.lac-casemap-filter button { min-height: 36px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-full); background: rgba(255, 255, 255, .14); color: var(--on-cover); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; touch-action: manipulation; transition: background-color .15s ease-out, color .15s ease-out, transform .12s ease-out; }
.lac-casemap-filter button:hover { background: rgba(255, 255, 255, .24); }
.lac-casemap-filter button[aria-pressed="true"] { background: #ffffff; color: #1f44b4; }
.lac-casemap-filter button:focus-visible { outline: 2px solid var(--on-cover); outline-offset: 2px; }
.lac-casemap-parties { display: grid; grid-template-columns: minmax(0, 1fr) minmax(64px, auto) minmax(0, 1fr); align-items: center; gap: var(--space-3); }
.lac-party { display: flex; flex-direction: column; margin: 0; }
.lac-party b { font-family: var(--font-display); font-size: 19px; line-height: 28px; font-weight: 600; }
.lac-party span { color: var(--on-cover-muted); font-size: 13px; line-height: 20px; }
.lac-party--right { text-align: right; }
/* "ฟ้อง": an arrow from the plaintiff to the defendants */
.lac-casemap-sued { position: relative; margin: 0; padding-bottom: 10px; text-align: center; color: var(--on-cover-muted); font-size: 13px; line-height: 20px; }
.lac-casemap-sued::before { content: ""; position: absolute; left: 0; right: 6px; bottom: 3px; height: 2px; background: var(--on-cover-muted); }
.lac-casemap-sued::after { content: ""; position: absolute; right: 0; bottom: 0; border: 4px solid transparent; border-left: 8px solid var(--on-cover-muted); border-right: 0; }
.lac-casemap-claims { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); margin-top: var(--space-3); }
.lac-casemap-court { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-4); margin-top: var(--space-6); padding: var(--space-8) var(--space-4) var(--space-4); border-radius: 14px; background: rgba(8, 13, 37, .18); }
.lac-casemap-court-label { position: absolute; top: 10px; left: var(--space-4); margin: 0; color: var(--on-cover-muted); font-size: 13px; line-height: 20px; font-weight: 600; }
.lac-lane { transition: opacity .16s ease-out; }
.lac-lane-title { display: flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); color: var(--on-cover-muted); font-family: var(--font-sans); font-size: 13px; line-height: 20px; font-weight: 600; }
.lac-lane-title::before { content: ""; flex: none; width: 12px; height: 12px; box-sizing: border-box; border-radius: 3px; }
.lac-lane--claim .lac-lane-title::before { border: 2px dashed var(--on-cover-muted); }
.lac-lane--ruled .lac-lane-title::before { background: var(--on-cover); }
.lac-lane--open .lac-lane-title::before { border: 2px solid var(--on-cover-muted); border-radius: 50%; }
.lac-lane ul { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
/* the court's orders sit two to a row on a wide screen, so the map is about as tall as the text beside it */
.lac-lane--ruled ul { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
/* the longest order (the chat logs, with its later change) takes the full width; the two short ones pair up */
.lac-lane--ruled li:nth-child(2) { grid-column: 1 / -1; }
/* how to read the map: the three marks and the dagger, under the action where the blue had room */
.lac-legend { display: grid; gap: var(--space-2); margin: 0; padding-top: var(--space-6); border-top: 2px solid rgba(255, 255, 255, .25); }
.lac-legend div { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: var(--space-3); }
.lac-legend dd { margin: 0; color: var(--on-cover-muted); font-size: 14px; line-height: 22px; }
.lac-mark { box-sizing: border-box; width: 22px; height: 16px; margin-top: 3px; border-radius: 4px; }
.lac-mark--claim { border: 2px dashed var(--on-cover-muted); }
.lac-mark--ruled { background: var(--on-cover); }
.lac-mark--open { width: 16px; height: 16px; margin-left: 3px; border: 2px solid var(--on-cover); border-radius: 50%; }
.lac-mark--dagger { width: auto; height: auto; margin: 0; color: var(--on-cover); font-size: 16px; line-height: 22px; text-align: center; }
.lac-lane li { padding: 10px 14px; border-radius: 12px; font-size: 15px; line-height: 24px; }
.lac-lane--claim li { border: 2px dashed rgba(255, 255, 255, .55); }
.lac-lane--ruled li { background: #ffffff; color: #1d2230; }
.lac-lane--open li { border: 2px solid rgba(255, 255, 255, .8); }
.lac-dagger { margin-left: 2px; font-size: 12px; vertical-align: super; line-height: 0; cursor: help; }
.lac-casemap[data-show="claim"] .lac-lane:not([data-kind="claim"]), .lac-casemap[data-show="ruled"] .lac-lane:not([data-kind="ruled"]), .lac-casemap[data-show="open"] .lac-lane:not([data-kind="open"]) { opacity: .28; }
.casemap-note { margin: var(--space-4) 0 0; color: var(--on-cover-muted); font-size: 13px; line-height: 22px; }
/* a press answers at once */
.lac-lead-btn:active, .lac-casemap-filter button:active { transform: scale(.97); }
@media (max-width: 900px) {
  .lac-lead-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}
@media (max-width: 640px) {
  .lac-lead-inner { padding: var(--space-8) max(var(--space-4), env(safe-area-inset-right, 0px)) var(--space-12) max(var(--space-4), env(safe-area-inset-left, 0px)); }
  .lac-lead-title { font-size: 36px; line-height: 1.25; }
  .lac-casemap { margin-inline: calc(-1 * var(--space-2)); padding: var(--space-4) var(--space-4) var(--space-3); border-radius: 16px; }
  .lac-casemap-parties { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lac-party--right { text-align: left; }
  .lac-casemap-sued { width: fit-content; padding: 0 0 0 18px; text-align: left; }
  .lac-casemap-sued::before { left: 6px; right: auto; top: 0; bottom: 4px; width: 2px; height: auto; }
  .lac-casemap-sued::after { left: 2px; right: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--on-cover-muted); border-bottom: 0; }
  .lac-casemap-claims, .lac-casemap-court, .lac-lane--ruled ul { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .lac-lead-btn, .lac-lead-btn svg, .lac-casemap-filter button, .lac-lane { transition: none; }
  .lac-lead-btn:active, .lac-casemap-filter button:active, .lac-lead-btn:hover svg { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lac-btn, .lac-tag, .lac-header--sticky, .lac-header-link, .lac-menu-toggle span, .lac-faq-icon::before, .lac-faq-icon::after, .lac-to-top, .lac-box, .lac-choice { transition: none; }
}
@media print {
  .lac-header, .lac-to-top, .lac-theme-toggle { display: none !important; }
}
