/* ── Law library (pages/law.php) in the dashboard style (.lw-page). module.css still styles the
   law writeups (including the DPDP Act page); this file restyles the frame, cards and labels. ── */
.lw-page .hd-welcome h1 { max-width: 960px; }
.lw-flag { display: inline-grid; width: 1.25em; margin-right: 14px; place-items: center; }
.dpdp-act-page .lw-flag { display: none; }
.lw-page .dpdp-law-eyebrow { margin: 0 0 10px; color: var(--hd-muted); font-weight: 500; }

.lw-page .bl-search { width: 320px; }

/* The old white panel becomes a glass card */
.lw-page .module1-panel.lw-panel {
  min-height: 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 30px;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px rgba(38,43,50,.05);
}

.lw-page .lw-panel .learn-content { max-width: none; }

/* Law cards */
.lw-page .module1-law-summary { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 10px; }

.lw-page .module1-law-card {
  border: 0;
  border-radius: 24px;
  background: rgba(255,255,255,.85);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.lw-page .module1-law-card:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 0 0 2px var(--hd-accent), 0 14px 30px rgba(38,43,50,.08); }
.lw-page .module1-law-card.active { background: #fff; box-shadow: 0 0 0 2px #20211f; }

.lw-page .module1-law-card span,
.lw-page .module1-law-writeup-label {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--hd-accent);
  color: var(--hd-ink);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .04em;
}

.lw-page .module1-panel .module1-law-card h2 { margin-top: 10px; font-weight: 500; letter-spacing: -.01em; }
.lw-page .module1-panel .module1-law-card p { color: var(--hd-muted); }

.lw-page .module1-law-card-meta span,
.lw-page .module1-law-card-meta a {
  border: 0;
  background: #f2f1ed;
  color: var(--hd-ink);
  font-weight: 500;
  transition: background .15s, color .15s;
}

.lw-page .module1-law-card-meta a:last-child { background: #20211f; color: #fff; }
.lw-page .module1-law-card-meta a:hover { background: var(--hd-accent); color: var(--hd-ink); }

/* Writeups */
.lw-page .module1-law-writeup { border-top: 1px dashed rgba(32,33,31,.16); }
.lw-page .dpdp-act-page .module1-law-writeup,
.dpdp-act-page .lw-page .module1-law-writeup { border-top: 0; }
.lw-page .learn-content a { color: var(--hd-ink); text-decoration-color: var(--hd-accent-hover); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lw-page .learn-content blockquote { border-left-color: var(--hd-accent-hover); }
.lw-page .learn-content table { border-radius: 18px; overflow: hidden; }

@media (max-width: 760px) {
  .lw-page .bl-search { width: 100%; }
  .lw-page .module1-panel.lw-panel { border-radius: 24px; }
  .lw-page .module1-law-card { grid-template-columns: 1fr; }
  .lw-page .module1-law-card-meta { justify-items: start; min-width: 0; }
}
