/* LawMantras: legal newspaper theme */
:root {
  --ink: #14161a;
  --text: #14161a;
  --text-2: #374151;
  --muted: #4b5563;
  --rule: #e5e7eb;
  --rule-strong: #14161a;
  --ground: #ffffff;
  --panel: #f4f5f7;
  --accent: #9b1c31;
  --btn-bg: #14161a;
  --btn-text: #ffffff;
  --ad-border: #c4c8cf;
  --footer-bg: #14161a;
  --footer-text: #c7cbd1;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f3f4f6;
    --text: #e8eaed;
    --text-2: #c9cdd3;
    --muted: #a3a9b2;
    --rule: #2c3038;
    --rule-strong: #e8eaed;
    --ground: #121418;
    --panel: #1c1f25;
    --accent: #f07b8c;
    --btn-bg: #e8eaed;
    --btn-text: #121418;
    --ad-border: #3a3f48;
    --footer-bg: #0b0c0f;
    --footer-text: #b4b9c1;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.page-pad { padding-block: 32px 64px; }
.stack-xl { display: flex; flex-direction: column; gap: 56px; }
.stack-l { display: flex; flex-direction: column; gap: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 10; background: var(--ground); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kicker--muted { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.meta, .note { font-size: 13px; color: var(--muted); }
.empty { color: var(--muted); }
.more { display: inline-block; margin-top: 12px; padding-block: 10px; font-weight: 600; font-size: 14px; }

/* Header */
.topbar { border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 8px; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 20px; }
.topbar__links a { color: var(--muted); text-decoration: none; }
.masthead { text-align: center; padding-block: 32px 20px; }
.masthead__logo { font-family: var(--serif); font-size: clamp(40px, 7vw, 60px); font-weight: 600; letter-spacing: -.02em; line-height: 1; text-decoration: none; color: var(--ink); }
.masthead__tagline { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.mainnav { border-top: 3px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.mainnav__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mainnav__links { display: flex; gap: 4px 24px; font-size: 15px; font-weight: 600; overflow-x: auto; max-width: 100%; }
.mainnav__links a { text-decoration: none; padding-block: 12px; white-space: nowrap; }
.search-form { display: flex; gap: 8px; padding-block: 8px; }
.search-form input, .inline-form input {
  font: inherit; font-size: 15px; padding: 10px 12px; min-height: 44px; border: 1px solid #9ca3af; border-radius: 4px;
  background: var(--ground); color: var(--text); width: 260px; max-width: 100%;
}
.search-form button { min-width: 44px; min-height: 44px; border: 0; border-radius: 4px; background: var(--btn-bg); color: var(--btn-text); cursor: pointer; display: grid; place-items: center; }
.notice { background: var(--panel); border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--text-2); }
.notice .wrap { padding-block: 8px; }

/* Ads: fixed reserved heights so the page does not jump when an ad loads */
.ad { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; margin-inline: auto; width: 100%; }
.ad__label { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; color: var(--muted); }
.ad--placeholder { border: 1px dashed var(--ad-border); border-radius: 4px; }
.ad--leaderboard { max-width: 728px; min-height: 90px; margin-top: 24px; }
.ad--sidebar { max-width: 300px; min-height: 250px; }
.article-side .ad--sidebar { min-height: 600px; }
.ad--in_article { min-height: 250px; margin-block: 28px; }
.ad--in_feed { min-height: 120px; }

/* Layout */
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split__main { flex: 999 1 600px; min-width: 0; }
.split__side { flex: 1 1 300px; min-width: 0; }
.grid { display: grid; gap: 24px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid--network { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule-strong); padding-bottom: 10px; margin-bottom: 20px; }
.section-head h2 { font-size: 30px; }
.section-head a { font-size: 14px; font-weight: 600; }
.section-head--page h1 { font-size: clamp(32px, 5vw, 44px); }
.side-head { font-size: 22px; border-bottom: 1px solid var(--rule-strong); padding-bottom: 8px; margin-bottom: 4px; }
.side-head--plain { border: 0; padding: 0; font-size: 20px; }

/* Home lead + brief */
.lead__title { font-size: clamp(32px, 4.5vw, 46px); line-height: 1.08; letter-spacing: -.01em; margin: 10px 0 14px; }
.lead__title a { text-decoration: none; }
.lead__dek { font-size: 18px; color: var(--text-2); margin: 0 0 16px; max-width: 640px; }
.brief { border-top: 3px solid var(--accent); padding-top: 14px; }
.brief__title { font-size: 26px; }
.brief__date { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.brief__list { list-style: none; margin: 0; padding: 0; }
.brief__list li { padding-block: 12px; border-bottom: 1px solid var(--rule); }
.brief__list a { display: block; text-decoration: none; font-weight: 500; margin-top: 2px; }

/* Cards */
.card { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.card__title { font-size: 21px; line-height: 1.25; }
.card__title a { text-decoration: none; }
.card__text { margin: 0; font-size: 14px; color: var(--text-2); }
.card__meta { font-size: 12px; color: var(--muted); margin-top: auto; }
#listing .card { border: 1px solid var(--rule); border-radius: 6px; padding: 18px; }
.network-card { border: 1px solid var(--rule); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.network-card h3 { font-size: 22px; }
.network-card p { margin: 0; font-size: 14px; color: var(--text-2); }
.network-card .btn { margin-top: auto; align-self: flex-start; }
.network-card__icon { width: 44px; height: 44px; border-radius: 8px; background: var(--panel); color: var(--accent); display: grid; place-items: center; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { padding-block: 12px; border-bottom: 1px solid var(--rule); }
.linklist a { text-decoration: none; font-weight: 500; }
.linklist .meta { font-size: 12px; }
.box { border: 1px solid var(--rule); border-radius: 8px; padding: 20px; }

/* Buttons, forms, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 4px; background: var(--btn-bg); color: var(--btn-text); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { color: var(--btn-text); opacity: .9; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 16px; }
.inline-form input { flex: 1 1 220px; width: auto; min-height: 48px; }
.inline-form .btn { min-height: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { font: inherit; font-size: 14px; font-weight: 500; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; border: 1px solid var(--ad-border); background: var(--ground); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.tools { background: var(--panel); border-radius: 8px; padding: 32px; }
.tools h2 { font-size: 30px; margin: 8px 0 6px; }
.tools p { margin: 0; color: var(--text-2); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font-weight: 600; }

/* Article */
.article-layout { display: flex; flex-wrap: wrap; gap: 56px; }
.article { flex: 999 1 620px; min-width: 0; max-width: 760px; }
.article--page { max-width: 760px; }
.article-side { flex: 1 1 300px; min-width: 0; }
.sticky { position: sticky; top: 16px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.article__title { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; letter-spacing: -.01em; margin: 10px 0 14px; }
.article__dek { font-size: 19px; color: var(--text-2); margin: 0 0 18px; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.byline strong { color: var(--text); font-weight: 600; }
.draft-flag { display: inline-block; background: #fef3c7; color: #78350f; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.facts { margin: 24px 0; background: var(--panel); border-radius: 8px; padding: 22px 24px; }
.facts__grid { margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 28px; font-size: 14px; }
.facts dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.prose { font-size: 17px; }
.prose h2 { font-size: 26px; margin: 32px 0 10px; }
.prose h3 { font-size: 21px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 20px; line-height: 1.45; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.brief-items { list-style: none; margin: 24px 0; padding: 0; }
.brief-items li { padding-block: 18px; border-bottom: 1px solid var(--rule); }
.brief-items h2 { font-size: 22px; margin: 4px 0 6px; }
.brief-items p { margin: 0 0 6px; color: var(--text-2); }
.sources { margin-top: 32px; border-top: 1px solid var(--rule); padding-top: 16px; }
.sources h2 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.sources ul { margin: 0; padding-left: 20px; }
.callout { margin: 28px 0 18px; background: var(--panel); border-radius: 8px; padding: 18px 20px; font-size: 14px; color: var(--text-2); }
.callout strong { color: var(--text); }
.article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border: 1px solid var(--ad-border); border-radius: 999px; font-size: 13px; }

/* Section finder & search */
.table-wrap { overflow-x: auto; margin-block: 16px; }
.finder-table { border-collapse: collapse; width: 100%; font-size: 15px; }
.finder-table th, .finder-table td { border-bottom: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.finder-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.search-results { list-style: none; margin: 16px 0 0; padding: 0; max-width: 760px; }
.search-results li { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.search-results a { font-family: var(--serif); font-size: 21px; font-weight: 600; text-decoration: none; }
.search-results p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }

/* Footer */
.footer { background: var(--footer-bg); color: var(--footer-text); font-size: 14px; }
.footer a { color: var(--footer-text); text-decoration: none; }
.footer a:hover { color: #ffffff; text-decoration: underline; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 40px; padding-block: 48px 32px; }
.footer__grid > div { flex: 1 1 160px; }
.footer__grid > .footer__about { flex: 2 1 300px; }
.footer__logo { font-family: var(--serif); font-size: 30px; font-weight: 600; color: #ffffff; }
.footer__about p { max-width: 420px; }
.footer__h { font-family: var(--sans); margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #ffffff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__legal { border-top: 1px solid #2d3139; }
.footer__legal p { padding-block: 20px 28px; margin-block: 0; color: #aeb3bb; font-size: 13px; }
