@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  --header-bg: #0b2a44;
  --header-bg-light: #0f3558;
  --link-blue: #0067b1;
  --link-hover: #004d85;
  --body-text: #373739;
  --muted-text: #656565;
  --light-text: #8a8a8d;
  --page-bg: #f0f2f5;
  --card-bg: #ffffff;
  --accent-blue: #e8f1fa;
  --accent-red: #9c2b44;
  --divider: #e2e5e9;
  --divider-light: #eef0f2;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
  --accent-color: #0067b1;
  --text: #373739;
  --radius: 6px;
  --radius-lg: 10px;
  --max-width: 1100px;
  --side-pad: 24px;
  --transition: 0.2s ease;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--body-text);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--link-hover);
}

h1, h2, h3, h4 {
  font-family: 'Lato', sans-serif;
  margin: 0;
  line-height: 1.25;
  color: var(--body-text);
  font-weight: 700;
}

p { margin: 0; }

img { max-width: 100%; }

/* ── Layout shell ── */
.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

/* ── Card base ── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand:hover { color: #ffffff; }

.brand-icon {
  font-size: 1.5rem;
  opacity: 0.85;
}

/* ── Desktop nav ── */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.desktop-nav > a {
  color: rgba(255,255,255,0.8);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 18px 10px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.desktop-nav > a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.5);
}

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 18px 13px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}

.nav-dropdown-trigger:hover {
  color: #ffffff;
}

.caret {
  font-size: 10px;
  transition: transform var(--transition);
}

.nav-dropdown.open .caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px 0;
  z-index: 200;
  animation: dropIn 0.15s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  color: var(--body-text);
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--accent-blue);
  color: var(--link-blue);
}

.nav-count {
  font-size: 11px;
  color: var(--light-text);
  background: var(--page-bg);
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
}

/* ── Header actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background var(--transition);
}

.header-search:focus-within {
  background: rgba(255,255,255,0.2);
}

.header-search input {
  border: none;
  background: transparent;
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  font-family: inherit;
  width: 180px;
  outline: none;
}

.header-search input::placeholder {
  color: rgba(255,255,255,0.5);
}

.header-search button {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.7);
  padding: 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.header-search button:hover {
  color: #fff;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
  transition: transform var(--transition);
}

/* ═══════════════════════════════════════
   MOBILE MENU OVERLAY
   ═══════════════════════════════════════ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--header-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-brand {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 28px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.mobile-search {
  display: flex;
  margin: 16px 20px;
  gap: 0;
}

.mobile-search input {
  flex: 1;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.mobile-search input::placeholder {
  color: rgba(255,255,255,0.5);
}

.mobile-search button {
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--link-blue);
  color: #fff;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.mobile-nav-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.mobile-nav-links a:hover {
  background: rgba(255,255,255,0.06);
}

.mobile-nav-count {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 10px;
}

/* ═══════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════ */
.breadcrumb-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--divider);
  padding: 10px 0;
  font-size: 13px;
}

.breadcrumb-bar a {
  color: var(--link-blue);
}

.bc-sep {
  color: var(--light-text);
  margin: 0 6px;
}

.bc-current {
  color: var(--muted-text);
}

/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */
.page-main {
  padding-top: 28px;
  padding-bottom: 48px;
  min-height: 50vh;
}

.page-headline {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--link-blue);
}

.page-headline h1 {
  font-size: 28px;
  margin-bottom: 4px;
}

.page-headline p {
  color: var(--muted-text);
  font-size: 14px;
}

/* ── Section headers ── */
.section-header {
  margin-top: 32px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--link-blue);
}

.section-header h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--body-text);
}

/* ═══════════════════════════════════════
   HOMEPAGE LAYOUT
   ═══════════════════════════════════════ */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}

/* ── Lead story ── */
.lead-story {
  padding: 28px;
  margin-bottom: 4px;
  position: relative;
  border-left: 4px solid var(--link-blue);
}

.lead-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--link-blue);
  margin-bottom: 10px;
}

.lead-story h2 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.lead-story h2 a {
  color: var(--body-text);
}

.lead-story h2 a:hover {
  color: var(--link-blue);
}

.lead-story .lede {
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--link-blue);
  letter-spacing: 0.02em;
}

.read-more:hover {
  color: var(--link-hover);
}

/* ── Card grid (trending / featured) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.article-card {
  padding: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card h3 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 6px;
}

.article-card h3 a {
  color: var(--body-text);
}

.article-card h3 a:hover {
  color: var(--link-blue);
}

.significance-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--link-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ── Article row (list items) ── */
.article-row {
  padding: 18px 22px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.article-row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.article-row-body {
  flex: 1;
  min-width: 0;
}

.article-row h3 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 4px;
}

.article-row h3 a {
  color: var(--body-text);
}

.article-row h3 a:hover {
  color: var(--link-blue);
}

.article-row-tags {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

/* ── Byline ── */
.byline {
  color: var(--muted-text);
  font-size: 12.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.byline a {
  color: var(--muted-text);
}

.byline a:hover {
  color: var(--link-blue);
}

.sep {
  color: var(--light-text);
  margin: 0 6px;
}

/* ── Excerpt ── */
.excerpt {
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.55;
}

/* ── Tags ── */
.tag-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--link-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--accent-blue);
  padding: 3px 9px;
  border-radius: 3px;
  transition: background var(--transition), color var(--transition);
}

.tag:hover {
  background: var(--link-blue);
  color: #fff;
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.sidebar-col {
  min-width: 0;
}

.sidebar-panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.sidebar-panel-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--body-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--link-blue);
  background: var(--page-bg);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  border-bottom: 1px solid var(--divider-light);
}

.sidebar-list li:last-child {
  border-bottom: 0;
}

.sidebar-list a {
  display: block;
  padding: 9px 16px;
  color: var(--link-blue);
  font-size: 13.5px;
  font-weight: 600;
  transition: background var(--transition);
}

.sidebar-list a:hover {
  background: var(--accent-blue);
}

.sidebar-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-bullet-list li {
  padding: 10px 16px;
  border-bottom: 1px solid var(--divider-light);
  font-size: 13px;
  line-height: 1.45;
}

.sidebar-bullet-list li:last-child {
  border-bottom: 0;
}

.sidebar-bullet-list li::before {
  content: "\2022";
  color: var(--link-blue);
  font-weight: 900;
  margin-right: 8px;
}

.sidebar-bullet-list a {
  color: var(--body-text);
  font-weight: 600;
  font-size: 13px;
}

.sidebar-bullet-list a:hover {
  color: var(--link-blue);
}

/* ── Most Read ── */
.most-read-panel {
  border: 2px solid var(--link-blue);
}

.most-read-list {
  list-style: none;
  counter-reset: most-read;
  padding: 0;
  margin: 0;
}

.most-read-list li {
  counter-increment: most-read;
  padding: 10px 16px 10px 44px;
  border-bottom: 1px solid var(--divider-light);
  position: relative;
  line-height: 1.4;
}

.most-read-list li:last-child {
  border-bottom: 0;
}

.most-read-list li::before {
  content: counter(most-read);
  position: absolute;
  left: 14px;
  top: 11px;
  font-size: 16px;
  font-weight: 800;
  color: var(--link-blue);
  width: 22px;
  text-align: center;
}

.most-read-list a {
  color: var(--body-text);
  font-weight: 600;
  font-size: 13px;
  display: block;
}

.most-read-list a:hover {
  color: var(--link-blue);
}

.most-read-court {
  display: block;
  font-size: 11px;
  color: var(--meta-gray);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════
   ARTICLE DETAIL PAGE
   ═══════════════════════════════════════ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
}

.article-main {
  padding: 36px;
}

.article-topic {
  margin-bottom: 14px;
}

.article-topic a {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--link-blue);
  background: var(--accent-blue);
  padding: 4px 10px;
  border-radius: 3px;
}

.article-topic a:hover {
  background: var(--link-blue);
  color: #fff;
}

.article-main h1 {
  font-size: 28px;
  color: var(--body-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  color: var(--muted-text);
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--divider);
}

.article-source {
  font-weight: 700;
}

.judge-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 13px;
  color: var(--body-text);
  background: var(--accent-blue);
  padding: 10px 16px;
  border-radius: 6px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.judge-label {
  font-weight: 700;
  color: var(--link-blue);
  margin-right: 4px;
}

.judge-label.dissent {
  color: #b91c1c;
}

.judge-info .sep {
  margin: 0 8px;
  color: var(--meta-gray);
}

.article-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-text);
  margin-bottom: 24px;
  font-weight: 700;
}

.summary-note {
  border-left: 4px solid #d4a017;
  background: #fdf8e8;
  color: #6b4f00;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  line-height: 1.55;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
  color: var(--body-text);
}

.article-infobox {
  background: var(--page-bg);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.55;
}
.counsel-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}
.counsel-box p {
  margin: 0 0 8px 0;
  padding-left: 0;
}
.counsel-box p:last-child {
  margin-bottom: 0;
}

.case-meta {
  margin: 24px 0 18px;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 16px 0;
}

.case-meta div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13.5px;
}

.case-meta div:last-child {
  margin-bottom: 0;
}

.case-meta dt {
  font-weight: 700;
  color: var(--body-text);
}

.case-meta dd {
  margin: 0;
  color: var(--muted-text);
}

.case-meta dd a {
  color: var(--link-blue);
}

.external-links {
  border-top: 1px solid var(--divider);
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.external-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 8px 16px;
  background: var(--page-bg);
  color: var(--link-blue);
  font-weight: 700;
  font-size: 13px;
  transition: background var(--transition), border-color var(--transition);
}

.external-links a:hover {
  background: var(--accent-blue);
  border-color: var(--link-blue);
}

/* ── Article sidebar ── */
.sticky-panel {
  position: sticky;
  top: 72px;
}

.related-list {
  padding: 0;
  margin: 0;
}

.related-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--divider-light);
  transition: background var(--transition);
}

.related-item:last-child {
  border-bottom: 0;
}

.related-item:hover {
  background: var(--accent-blue);
}

.related-item h3 {
  font-size: 13.5px;
  margin-bottom: 4px;
  line-height: 1.35;
}

.related-item h3 a {
  color: var(--body-text);
}

.related-item h3 a:hover {
  color: var(--link-blue);
}

.related-item p {
  font-size: 12.5px;
  color: var(--muted-text);
  line-height: 1.45;
  margin-bottom: 4px;
}

.related-item .meta-row {
  font-size: 11px;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  font-size: 12px;
  color: var(--light-text);
}

.meta-row a {
  color: var(--light-text);
}

.meta-row a:hover {
  color: var(--link-blue);
}

/* ═══════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════ */
.search-box {
  display: flex;
  margin-bottom: 24px;
  max-width: 600px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: 2px solid var(--divider);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--body-text);
  outline: none;
  transition: border-color var(--transition);
}

.search-box input:focus {
  border-color: var(--link-blue);
}

.search-box button {
  border: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--link-blue);
  color: #fff;
  padding: 12px 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition);
}

.search-box button:hover {
  background: var(--link-hover);
}

/* ═══════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════ */
.pagination {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13.5px;
}

.pg-btn {
  display: inline-block;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 8px 18px;
  background: var(--card-bg);
  color: var(--link-blue);
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

a.pg-btn:hover {
  background: var(--accent-blue);
  border-color: var(--link-blue);
  transform: translateY(-1px);
}

.pg-btn.disabled {
  color: #bbb;
  background: var(--page-bg);
  cursor: default;
  box-shadow: none;
}

.pg-info {
  color: var(--muted-text);
  font-weight: 600;
}

/* ── Empty state ── */
.empty-state {
  color: var(--muted-text);
  padding: 32px 20px;
  text-align: center;
  font-size: 15px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--header-bg);
  color: rgba(255,255,255,0.7);
  margin-top: 48px;
}

.footer-inner {
  padding-top: 36px;
  padding-bottom: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.footer-about p {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-sections h4,
.footer-links h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.footer-sections ul,
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sections li,
.footer-links li {
  margin-bottom: 6px;
}

.footer-sections a,
.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
  transition: color var(--transition);
}

.footer-sections a:hover,
.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .home-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-col {
    display: none;
  }

  .sticky-panel {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --side-pad: 16px;
  }

  .header-inner {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .brand {
    font-size: 1.15rem;
  }

  .desktop-nav {
    display: none;
  }

  .header-search {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .page-main {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .page-headline h1 {
    font-size: 22px;
  }

  .section-header {
    margin-top: 24px;
  }

  .lead-story {
    padding: 20px;
  }

  .lead-story h2 {
    font-size: 20px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .article-card {
    padding: 16px;
  }

  .article-row {
    padding: 14px 16px;
    flex-direction: column;
    gap: 8px;
  }

  .article-row-tags {
    flex-direction: row;
  }

  .article-row h3 {
    font-size: 15px;
  }

  .article-main {
    padding: 20px;
  }

  .article-main h1 {
    font-size: 22px;
  }

  .article-lede {
    font-size: 15px;
  }

  .article-meta {
    font-size: 12px;
  }

  .case-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .search-box {
    max-width: 100%;
  }

  .search-box input {
    font-size: 14px;
    padding: 10px 14px;
  }

  .search-box button {
    padding: 10px 16px;
    font-size: 14px;
  }

  .external-links a {
    font-size: 12px;
    padding: 6px 12px;
  }

  .related-item h3 {
    font-size: 13px;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Desktop nav hidden below 900px
   ═══════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 641px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ═══════════════════════════════════════
   AUTH FORMS — login, register, account
   ═══════════════════════════════════════ */
.auth-wrapper {
  max-width: 420px;
  margin: 48px auto;
  padding: 0 16px;
}
.auth-card {
  background: #ffffff;
  border: 1px solid #e2e5e9;
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.auth-title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
}
.auth-subtitle {
  text-align: center;
  font-size: 14px;
  color: #656565;
  margin: 0 0 24px;
}
.auth-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
}
.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #373739;
}
.auth-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
  color: #1a1a1a;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.auth-field input:focus {
  outline: none;
  border-color: #0067b1;
  box-shadow: 0 0 0 3px rgba(0,103,177,0.12);
}
.auth-field input::placeholder {
  color: #9ca3af;
}
.auth-field-error {
  color: #991b1b;
  font-size: 12px;
  margin-top: 4px;
}
.auth-btn {
  display: block;
  width: 100%;
  padding: 11px;
  background: #0b2a44;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.15s;
}
.auth-btn:hover {
  background: #0f3558;
}
.auth-footer {
  text-align: center;
  margin: 18px 0 0;
  font-size: 13.5px;
  color: #656565;
}
.auth-footer a {
  color: #0067b1;
  text-decoration: none;
  font-weight: 600;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* Account page */
.account-table {
  font-size: 14px;
  line-height: 1.8;
  color: #373739;
}
.account-table td:first-child {
  font-weight: 600;
  padding-right: 20px;
  color: #656565;
  white-space: nowrap;
}
.newsletter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #e2e5e9;
  flex-wrap: wrap;
}
.newsletter-area {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  min-width: 120px;
}
.newsletter-select {
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
  color: #373739;
}
.newsletter-remove {
  padding: 5px 12px;
  background: none;
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.newsletter-remove:hover {
  background: #fef2f2;
}
.newsletter-add {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
