/* CorpLawTracker shared light-mode design tokens. The India dark theme retains its existing overrides. */
:root {
  --clt-navy:#172e40; --clt-ink:#26353f; --clt-muted:#53656e;
  --clt-paper:#f6f7f6; --clt-surface:#ffffff; --clt-surface-subtle:#f9faf9;
  --clt-line:#dce3e2; --clt-control:#75847f; --clt-accent:#225c57;
  --clt-selected:#eaf2ef; --clt-focus:#916217; --clt-positive:#24543d; --clt-warning:#745518;
  --clt-sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --clt-serif:Georgia,"Times New Roman",serif;
  --clt-space-1:4px; --clt-space-2:8px; --clt-space-3:12px; --clt-space-4:16px;
  --clt-space-6:24px; --clt-space-8:32px; --clt-space-12:48px; --clt-space-16:64px;
  --clt-radius:7px;
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Exact logo navy: hierarchy and navigation, not legal or financial status. */
:root{--clt-brand:#16243f;--clt-brand-tint:#edf1f7;--clt-brand-line:#c8d2e2;--clt-brand-hover:#263e62}

/* Card separation: restrained elevation and structural accents, not status colours.
   Scope to the two existing workspaces; leave print and compact table rows untouched. */
:root {
  --clt-card-line:#cbd5d8;
  --clt-card-shadow:0 1px 2px rgba(22,36,63,.055),0 3px 9px rgba(22,36,63,.075);
  --clt-card-hover:0 2px 4px rgba(22,36,63,.07),0 5px 15px rgba(22,36,63,.12);
  --clt-card-rule:#8a9db0;
}
@media screen {
  /* UK: these are actual card surfaces, not every nested div or control. */
  html:not([data-theme]) :is(.entry,.rail-card,.reading-desk,.search,.feed-group,.research-finding):not(:target) {
    border-color:var(--clt-card-line);
    box-shadow:var(--clt-card-shadow);
  }
  html:not([data-theme]) .entry:not(:target) {
    border-left:3px solid var(--clt-card-rule);
  }
  html:not([data-theme]) #transactions .entry:not(:target) {
    border-left-color:var(--clt-brand);
  }
  html:not([data-theme]) #briefing .entry:not(:target) {
    border-left-color:var(--clt-accent);
  }
  html:not([data-theme]) .reading-desk {
    border-top:3px solid var(--clt-brand);
  }
  html:not([data-theme]) .rail-card:first-child:not(:target) {
    border-top-color:var(--clt-brand);
  }
  html:not([data-theme]) #method {
    border-color:var(--clt-card-line);
    box-shadow:var(--clt-card-shadow);
  }
  html:not([data-theme]) .desk-grid {row-gap:10px;column-gap:12px}
  html:not([data-theme]) .desk-item {
    border:1px solid var(--clt-card-line);
    border-radius:5px;
    padding:10px 12px;
    box-shadow:0 1px 3px rgba(22,36,63,.07);
  }
  html:not([data-theme]) .desk-item:first-child {
    border-left:3px solid var(--clt-brand);
    margin:0;
  }
  html:not([data-theme]) .desk-item:focus-visible {
    outline:3px solid var(--clt-focus);
    outline-offset:3px;
  }
  @media (hover:hover) and (pointer:fine) {
    html:not([data-theme]) .desk-item:hover {
      border-color:var(--clt-card-rule);
      box-shadow:var(--clt-card-hover);
    }
  }

  /* India: build on existing theme tokens; retain priority/regulatory accents. */
  html[data-theme="light"] {
    --shadow:var(--clt-card-shadow);
    --shadow-h:var(--clt-card-hover);
  }
  html:root[data-theme="dark"] {
    --clt-card-line:#3a3b45;
    --clt-card-rule:#65718a;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 4px 10px rgba(0,0,0,.32);
    --shadow-h:0 3px 6px rgba(0,0,0,.45),0 8px 20px rgba(0,0,0,.42);
  }
  html[data-theme] :is(.card,.trendcard,.fcard,.stat,.sec,.firmhero,.lawcard,.pcol,.hero,.toolbar,.moverow,.cmptbl):not(:hover):not(:focus-within) {
    border-color:var(--clt-card-line);
  }
  html[data-theme] :is(.priocard,.regc,.dlitem):not(:hover):not(:focus-within) {
    border-top-color:var(--clt-card-line);
    border-right-color:var(--clt-card-line);
    border-bottom-color:var(--clt-card-line);
  }
  html[data-theme] :is(.card,.fcard,.trendcard,.lawcard) {
    border-left-width:3px;
  }
  html[data-theme] :is(.card,.fcard,.trendcard,.lawcard):not(:hover):not(:focus-within) {
    border-left-color:var(--clt-card-rule);
  }
}

/* Editorial identity: outlined wordmark; preserve navigation and body typography. */
.brand img.clt-wordmark{display:block;flex:none;width:178px;height:24px;max-width:100%;object-fit:contain;object-position:left center}
.brand .clt-wordmark+small{margin-top:2px}
html[data-theme="dark"] .brand img.clt-wordmark{content:url("/brand/wordmark-dark.svg")}
header.top .brand{font-family:var(--clt-serif,Georgia,serif);font-weight:600}
@media(max-width:780px){.brand img.clt-wordmark{width:148px;height:20px}}
@media(max-width:360px){.brand img.clt-wordmark{width:130px;height:18px}}
