/* Laws That Protect - newspaper layout, navy and gold */

:root {
  --navy: #14284B;
  --navy-deep: #0E1D38;
  --navy-line: #2A416B;
  --gold: #C9A646;
  --gold-text: #8A6D1E;
  --ink: #1A1A1A;
  --ink-2: #3A3A3A;
  --muted: #5C5C5C;
  --line: #E3E3E3;
  --paper: #FFFFFF;
  --wash: #F5F6F8;
  --placeholder: #F4F4F4;
  --serif-display: 'Playfair Display', Georgia, serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 4px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold-text); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 10px 16px; z-index: 10; font-weight: 600; }
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Utility bar + masthead ---------- */
.utility { background: var(--navy-deep); color: #D9DEE8; font-size: 13px; }
.utility__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; }

.masthead { background: var(--navy); color: #fff; }
.masthead__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 26px; padding-bottom: 18px; text-align: center; }
.masthead__brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.masthead__brand:hover { color: #fff; }
.masthead__mark { color: var(--gold); flex: none; }
.masthead__name { font-family: var(--serif-display); font-weight: 700; font-size: clamp(32px, 6vw, 52px); line-height: 1.1; letter-spacing: -0.01em; }
.masthead__tagline { margin: 0; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--gold); }

.navbar { border-top: 1px solid var(--navy-line); }
.navbar__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 14px; min-height: 50px; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; font-size: 13.5px; font-weight: 600; }
.site-nav a { color: #fff; text-decoration: none; padding: 14px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.site-nav .site-nav__cta { color: var(--gold); }
.site-nav .site-nav__cta:hover { color: var(--gold); }

.menu-toggle { display: none; align-items: center; gap: 8px; background: none; border: 0; color: #fff; font: inherit; font-weight: 600; padding: 12px 0; cursor: pointer; min-height: 44px; }

.search-form { display: flex; align-items: center; background: #fff; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.search-form input { border: 0; font: inherit; font-size: 14px; padding: 8px 4px 8px 14px; width: 96px; color: var(--ink); background: transparent; }
.search-form input:focus { outline: none; }
.search-form:focus-within { outline: 3px solid var(--gold); }
.search-form button { border: 0; background: transparent; color: var(--navy); padding: 8px 12px; cursor: pointer; min-height: 38px; display: flex; align-items: center; }

/* ---------- Ads ---------- */
.ad { width: 100%; margin: 24px auto; text-align: center; }
.ad__label { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6B6B6B; margin-bottom: 6px; }
.ad__box { width: 100%; border: 1px dashed #B5B5B5; background: var(--placeholder); color: #5C5C5C; font-size: 13px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.ad--leaderboard .ad__box { max-width: 728px; height: 90px; }
.ad--in-feed .ad__box { max-width: 970px; height: 250px; }
.ad--in-article .ad__box { max-width: 100%; height: 250px; }
.ad--sidebar .ad__box { max-width: 300px; height: 250px; }
.ad--sidebar-tall .ad__box { max-width: 300px; height: 600px; }
.ad--top { margin-bottom: 4px; }

/* ---------- Shared bits ---------- */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 6px; }
.eyebrow--gold { color: var(--gold); }
.rule-title { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); border-bottom: 3px solid var(--gold); padding-bottom: 8px; font-family: var(--sans); }
.link-underline { font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 2px solid var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; font-size: 15px; padding: 13px 22px; min-height: 48px; text-decoration: none; border: 0; cursor: pointer; border-radius: var(--radius); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--block { width: 100%; }

.section { padding-top: 8px; padding-bottom: 40px; }
.section--tight { padding-top: 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; border-top: 3px solid var(--navy); padding-top: 12px; margin-bottom: 20px; }
.section__title { margin: 0; font-family: var(--serif-display); font-size: 28px; color: var(--navy); line-height: 1.2; }

/* ---------- Home: top stories ---------- */
.top-stories { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 24px; padding-bottom: 40px; }
.lead-story { flex: 2 1 540px; min-width: 0; }
.lead-story__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--wash); margin-bottom: 16px; }
.lead-story__title { margin: 4px 0 12px; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; }
.lead-story__title a { color: var(--navy); text-decoration: none; }
.lead-story__title a:hover { color: var(--gold-text); }
.lead-story__lead { margin: 0 0 12px; font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.lead-story__meta { margin: 0; font-size: 13px; color: var(--muted); }

.latest { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; }
.latest__item { display: flex; flex-direction: column; gap: 2px; padding: 0 0 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.latest__item .eyebrow { font-size: 11px; margin: 0; }
.latest__title { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.25; }
.latest__item:hover .latest__title { color: var(--gold-text); }
.latest__empty { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; color: var(--ink-2); }
.latest .ad { margin-top: 8px; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.type-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-top: 3px solid var(--gold); text-decoration: none; color: var(--navy); min-height: 44px; }
.type-card:hover { background: var(--wash); color: var(--navy); }
.type-card__name { font-family: var(--serif); font-weight: 700; font-size: 18px; }
.type-card__count { font-size: 13px; color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 24px; }
.card-grid--small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card__link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--wash); }
.card .eyebrow { margin: 4px 0 0; font-size: 11px; }
.card__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.25; color: var(--navy); }
.card__link:hover .card__title { color: var(--gold-text); }
.card__excerpt { margin: 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: 13px; color: var(--muted); }

/* ---------- Bands ---------- */
.band { background: var(--navy); color: #fff; margin: 16px 0 0; }
.band__inner { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.band__intro { flex: 1 1 300px; min-width: 0; }
.band__title { margin: 0 0 10px; font-family: var(--serif-display); font-size: 32px; line-height: 1.15; }
.band__intro p { color: #D9DEE8; margin: 0; }
.band a { color: var(--gold); }
.first-steps { flex: 2 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .first-steps { grid-template-columns: 1fr; } }
.first-steps li { display: flex; gap: 14px; padding: 16px; border-top: 3px solid var(--gold); background: #182F57; }
.first-steps__n { flex: none; font-family: var(--serif-display); font-size: 28px; line-height: 1; color: var(--gold); }

.lawyer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; }
.lawyer-cta__text { flex: 1 1 420px; }
.lawyer-cta__text p { margin: 8px 0 0; font-family: var(--serif); font-size: 18px; color: var(--ink-2); }

/* ---------- Page heads ---------- */
.page-head { padding-top: 28px; padding-bottom: 20px; }
.page-head--center { text-align: center; }
.page-head__title { margin: 6px 0 10px; font-family: var(--serif-display); font-size: clamp(30px, 4vw, 42px); color: var(--navy); line-height: 1.15; }
.page-head__lead { margin: 0; font-family: var(--serif); font-size: 19px; color: var(--ink-2); max-width: 760px; }
.page-head--center .page-head__lead { margin: 0 auto 20px; }
.breadcrumb { font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.empty, .result-count { font-family: var(--serif); font-size: 18px; color: var(--ink-2); }

.search-big { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; max-width: 560px; }
.page-head--center .search-big { margin: 16px auto; }
.search-big input { flex: 1 1 240px; font: inherit; font-size: 16px; padding: 12px; border: 1px solid #8A8A8A; border-radius: var(--radius); min-height: 48px; }

.pagination { display: flex; justify-content: center; gap: 24px; margin-top: 32px; font-weight: 600; }

/* ---------- Article layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 20px; padding-bottom: 40px; }
.article { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.sidebar { flex: 1 1 300px; min-width: 0; max-width: 340px; }

.article__title { margin: 4px 0 12px; font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; color: var(--navy); }
.article__dek { margin: 0 0 14px; font-family: var(--serif); font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.article__meta { margin: 0 0 20px; font-size: 14px; color: var(--muted); }
.article__meta a { color: var(--muted); }
.article__figure { margin: 0 0 28px; }
.article__figure img { width: 100%; background: var(--wash); }
.article__figure figcaption, .prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--serif-display); font-size: 30px; line-height: 1.2; color: var(--navy); margin: 1.8em 0 0.6em; padding-top: 14px; border-top: 3px solid var(--gold); }
.prose h3 { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--navy); margin: 1.5em 0 0.4em; }
.prose li { margin-bottom: 0.4em; }
.prose strong { font-weight: 700; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-style: italic; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
.prose table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--navy); color: #fff; font-weight: 600; }
.prose tr:nth-child(even) td { background: var(--wash); }
.prose .lead-answer { font-size: 20px; background: var(--wash); border-left: 4px solid var(--navy); padding: 16px 20px; }
.prose .toc { font-family: var(--sans); font-size: 15px; background: var(--wash); padding: 16px 20px 16px 40px; }
.prose .toc-title { font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 6px; }
.prose .checklist { list-style: none; padding-left: 0; }
.prose .checklist li { position: relative; padding-left: 32px; }
.prose .checklist li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border: 2px solid var(--navy); border-radius: 3px; }
.prose .note { font-family: var(--sans); font-size: 15px; color: var(--ink-2); font-style: italic; }
.prose .sources { font-family: var(--sans); font-size: 14px; line-height: 1.5; }
.prose .ad { font-family: var(--sans); }

.callout { border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 20px 22px 6px; margin: 0 0 1.4em; font-family: var(--sans); font-size: 16px; }
.callout__title { font-weight: 700; color: var(--navy); font-size: 18px; margin: 0 0 6px !important; }
.callout__source { font-size: 13px; color: var(--muted); }
.small-print { font-family: var(--sans); font-size: 14px; color: var(--muted); }

.notice { margin: 32px 0; padding: 16px 20px; background: var(--wash); border-left: 4px solid var(--gold); font-size: 15px; color: var(--ink-2); }
.related { margin-top: 40px; }

.state-picker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.state-picker__item { font-size: 14px; font-weight: 600; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.state-picker__item.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.state-picker__item.is-soon { color: var(--muted); }

/* ---------- Sidebar ---------- */
.sidebar .ad { margin-top: 0; }
.sidebar__block { margin-bottom: 28px; }
.sidebar__title { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); border-bottom: 3px solid var(--gold); padding-bottom: 8px; }
.sidebar__lawyer { background: var(--wash); padding: 18px; }
.sidebar__lawyer p { margin: 0 0 10px; font-size: 15px; }
.sidebar__phone a { font-size: 22px; font-weight: 700; text-decoration: none; }
.latest-list { margin: 0; padding-left: 20px; }
.latest-list li { margin-bottom: 10px; font-family: var(--serif); font-size: 17px; line-height: 1.3; }
.latest-list a { text-decoration: none; }
.sidebar__topics ul { list-style: none; margin: 0; padding: 0; }
.sidebar__topics li { border-bottom: 1px solid var(--line); }
.sidebar__topics a { display: block; padding: 10px 0; text-decoration: none; font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #CBD3E1; font-size: 14px; margin-top: 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 40px; padding-bottom: 24px; }
.site-footer__about { flex: 2 1 360px; }
.site-footer__about p { line-height: 1.6; margin: 10px 0 0; max-width: 560px; }
.site-footer__name { font-family: var(--serif-display); font-size: 24px; color: #fff; }
.site-footer__cols { flex: 1 1 520px; display: flex; flex-wrap: wrap; gap: 32px 44px; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__heading { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.site-footer__bottom { border-top: 1px solid var(--navy-line); padding-top: 16px; padding-bottom: 24px; font-size: 13px; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .menu-toggle { display: inline-flex; }
  .navbar__inner { justify-content: space-between; }
  .site-nav { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding-bottom: 10px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--navy-line); }
  .search-form input { width: 120px; }
  .utility__inner span:last-child { display: none; }
  .prose { font-size: 18px; }
  .prose h2 { font-size: 26px; }
  .ad--in-feed .ad__box { height: 120px; }
  .sidebar { max-width: none; }
}
