/* ============================================================
   LEXNOMIK — Modern Design Layer
   assets/css/modern.css
   Loaded after style.css. Refines the existing navy/gold "Ledger &
   Seal" identity — tighter type scale, crisper shadows, a docket-tick
   signature motif — and styles every new component (court tracker,
   byline, corrections, language switcher, WhatsApp CTA).
   ============================================================ */

:root {
  --ink:          #0b1f38;
  --ink-soft:     #1a3a5c;
  --brass:        #b8923f;
  --brass-light:  #e8c97a;
  --paper:        #faf8f3;
  --teal-deep:    #0d5c53;
  --teal-pale:    #e4f2ef;
  --line:         #e7e2d6;
  --radius-md:    10px;
  --radius-lg:    16px;
  --shadow-card:  0 1px 2px rgba(11,31,56,.06), 0 8px 24px rgba(11,31,56,.06);
  --shadow-card-hover: 0 4px 10px rgba(11,31,56,.08), 0 16px 36px rgba(11,31,56,.10);
}

/* ---- Docket-tick signature motif ---------------------------
   A repeating tick pattern standing in for a court cause-list ledger
   margin. Used as a divider under key section headers. */
.docket-tick {
  height: 6px;
  background-image: repeating-linear-gradient(90deg, var(--brass) 0 2px, transparent 2px 10px);
  opacity: .55;
  margin: 6px 0 0;
  border-radius: 3px;
}

/* ---- Header refinements ------------------------------------ */
/* NOTE: nav links/logo are styled near-white in style.css (built for
   a dark header). Keep the header dark here — do not lighten this
   background without also repainting .site-nav a / .logo-name etc. */
.site-header {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-nav a { font-weight: 500; letter-spacing: .01em; }
.site-nav a.active { color: var(--brass-light); font-weight: 600; }

.header-lang-switch {
  display: flex;
  gap: 2px;
  margin-left: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 3px;
}
.header-lang-switch a {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.7);
  line-height: 1;
}
.header-lang-switch a.active { background: var(--brass); color: var(--ink); }
.header-lang-switch a:hover { color: #fff; }

/* ---- Language chips (listing filter bar) -------------------- */
.lang-chip-group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lang-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gray-600, #4b5563);
  background: #fff;
}
.lang-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.lang-chip:hover { border-color: var(--brass); color: var(--ink); }

/* Language badge shown on article pages for non-English content */
.lang-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--teal-pale); color: var(--teal-deep);
}

/* ---- Regional court tracker ---------------------------------- */
.court-tracker-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 10px;
}

.court-tracker-banner {
  background: linear-gradient(160deg, var(--ink) 0%, #123256 100%);
  color: #fff;
  padding: 40px 0;
}
.court-tracker-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  color: #fff;
  margin-bottom: 10px;
}
.court-tracker-banner p { color: rgba(255,255,255,.78); font-size: 15px; max-width: 640px; line-height: 1.65; }
.court-tracker-banner--landing { padding: 56px 0; }
.court-tracker-banner--landing h1 { font-size: 40px; }

.court-tracker-home {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
  margin-bottom: 48px;
}
.court-tracker-home-header {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.court-tracker-home-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 8px;
}
.court-tracker-home-header p { color: var(--gray-600, #4b5563); max-width: 560px; font-size: 14px; line-height: 1.6; }

.court-tracker-home-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--line);
}

.court-quicklinks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 28px; }
.court-quicklinks-label { font-size: 13px; font-weight: 700; color: var(--gray-500, #6b7280); margin-right: 4px; }
.court-quicklink-chip {
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.court-quicklink-chip:hover { border-color: var(--brass); color: var(--brass); }
.court-quicklink-more { background: var(--ink); color: #fff; border-color: var(--ink); }
.court-quicklink-more:hover { color: var(--brass-light); }

.courts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.court-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.court-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.court-card h2 { font-size: 19px; margin: 6px 0 12px; color: var(--ink); }
.court-card--flagship { border-color: var(--brass); border-width: 2px; }
.court-card-flag {
  position: absolute; top: -10px; left: 20px;
  background: var(--brass); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.court-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-500, #6b7280); }
.court-card-type { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }

/* Meta chip that's actually a link (jurisdiction -> /courts/{slug}/) */
.meta-chip--link { text-decoration: none; }
.meta-chip--link:hover { text-decoration: underline; }

/* ---- Cards (modernized shadows/radius) ------------------------ */
.content-card, .cards-grid .content-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.content-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }

/* ---- Byline ---------------------------------------------------- */
.article-byline {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
}
.byline-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
}
.byline-avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--brass-light);
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 15px;
}
.byline-info { display: flex; flex-direction: column; line-height: 1.35; }
.byline-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.byline-title { font-size: 12px; color: var(--gray-500, #6b7280); }

/* ---- Correction notice ------------------------------------------ */
.correction-notice {
  background: #fff7e6;
  border: 1px solid #f0d99a;
  border-left: 4px solid var(--brass);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #6b4f16;
  line-height: 1.6;
  margin: 20px 0;
}
.correction-notice a { color: var(--ink); font-weight: 600; margin-left: 6px; }

/* ---- Corrections policy / static pages -------------------------- */
.policy-page { max-width: 720px; padding: 56px 24px 80px; }
.policy-page h1 { font-family: 'Playfair Display', serif; font-size: 34px; margin-bottom: 14px; }
.policy-page .policy-intro { font-size: 17px; color: var(--gray-600, #4b5563); line-height: 1.7; margin-bottom: 32px; }
.policy-page h2 { font-size: 19px; margin: 28px 0 8px; color: var(--ink); }
.policy-page p { font-size: 15px; color: var(--gray-700, #374151); line-height: 1.7; margin-bottom: 6px; }

/* ---- WhatsApp distribution CTA (footer) -------------------------- */
.footer-whatsapp {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
  background: var(--teal-deep);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 20px 28px;
  margin-bottom: 36px;
}
.footer-whatsapp-text { display: flex; flex-direction: column; gap: 4px; }
.footer-whatsapp-text strong { font-size: 16px; }
.footer-whatsapp-text span { font-size: 13px; color: rgba(255,255,255,.8); max-width: 480px; }
.btn-whatsapp {
  background: #25D366; color: #06331e; font-weight: 700;
  padding: 10px 20px; border-radius: 999px; white-space: nowrap;
}
.btn-whatsapp:hover { background: #1ebd59; color: #06331e; }

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 860px) {
  .header-lang-switch { display: none; } /* shown via mobile drawer language links could be added later */
  .court-tracker-home-header { flex-direction: column; align-items: flex-start; }
  .footer-whatsapp { flex-direction: column; align-items: flex-start; }
}
