/* Phone Lookup design system -- the actual visual language from the canvas.
 *
 * Values are lifted from "Phone Lookup Design.dc.html", not approximated:
 * the page ground, the ink, the muted greys, the card borders, the footer
 * bar and both brand accents are the literals used there.
 *
 * Brand accents differ, and only the accent differs:
 *   Number Records (intl)  #4b3ff2
 *   IL Phone Lookup        #4b3ff2
 *   Who Called Me (AU)     #0f8f8a
 * Each brand's shell sets --pl-accent on <body>; the fallback here is the
 * indigo two of the three use.
 *
 * This file is inlined by every brand shell AFTER Bootstrap, so equal-
 * specificity rules win on order. It deliberately restyles Bootstrap's own
 * classes (.btn-primary, .card, .badge) rather than asking every template to
 * adopt new class names.
 *
 * It is rendered through the Django template engine and is also reachable as
 * a static file: keep it plain CSS, no template tags, not even inside a
 * comment.
 */

:root {
  --pl-accent: #4b3ff2;
  --pl-accent-ink: #3327c9;
  /* focus ring, as its own token so the teal brand does not get an indigo one */
  --pl-accent-ring: rgba(75, 63, 242, .12);

  --pl-ground: #eceef4;
  --pl-surface: #ffffff;
  --pl-surface-2: #fafafc;
  --pl-tint: #f7f6ff;

  --pl-ink: #14141a;
  --pl-ink-2: #3a3b45;
  --pl-ink-3: #4a4b55;
  --pl-muted: #7a7b88;
  --pl-muted-2: #9899a5;

  --pl-line: #e9e9f0;
  --pl-line-2: #e3e3ec;
  --pl-line-3: #dcdce5;

  --pl-bar: #16161c;
  --pl-bar-ink: #b7b8c2;

  --pl-radius: 12px;
  --pl-radius-sm: 9px;
  --pl-display: 'Rubik', system-ui, sans-serif;
  --pl-body: 'Assistant', system-ui, sans-serif;
}

/* Hand the accent to Bootstrap itself. Without this every .text-primary,
   .bg-primary, .border-primary and .bg-opacity-* on the page keeps Bootstrap's
   default violet -- which is why the hero's kicker pill read as a different
   colour from the button beside it. Brands override --pl-accent-rgb on <body>
   alongside --pl-accent. */
:root,
body {
  --pl-accent-rgb: 75, 63, 242;
  --bs-primary: var(--pl-accent);
  --bs-primary-rgb: var(--pl-accent-rgb);
  --bs-link-color: var(--pl-accent);
  --bs-link-hover-color: var(--pl-accent-ink);
}

/* ---------- page ---------- */

body {
  background: var(--pl-ground);
  color: var(--pl-ink);
  font-family: var(--pl-body);
  -webkit-font-smoothing: antialiased;
}

/* style-new.css paints body.en a different grey; the ground is the ground. */
body.en,
body.he {
  background: var(--pl-ground);
}

a {
  color: var(--pl-accent);
  text-decoration: none;
}
a:hover {
  color: var(--pl-accent-ink);
  text-decoration: underline;
}

input,
select,
textarea,
button {
  font-family: var(--pl-body);
}

/* ---------- type ---------- */

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--pl-display);
  color: var(--pl-ink);
  /* style-new.css sets weight 300 on h1-h3, which reads as a different site
     from the design; the canvas uses 600/700 throughout. */
  font-weight: 600;
}

h1, .h1 {
  font-weight: 700;
  letter-spacing: -0.015em;
}

.lead {
  color: var(--pl-ink-3);
}

.text-muted,
.text-body-secondary,
small {
  color: var(--pl-muted) !important;
}

/* style-new.css pins .text-primary to an orange #f96332 with !important, which
   is why the hero kicker read orange inside an accent-coloured pill. Same
   weapon, later in the cascade. */
.text-primary {
  color: var(--pl-accent) !important;
}

/* ---------- surfaces ---------- */

.card,
.panel,
.panel.box,
.box {
  background: var(--pl-surface);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  /* the canvas uses one soft shadow, not the heavy legacy drop shadow */
  box-shadow: 0 1px 2px rgba(20, 20, 26, .04);
}

.card-lift {
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 20, 26, .10);
}

.list-group-item {
  border-color: var(--pl-line);
}

hr {
  border-color: var(--pl-line);
}

/* ---------- controls ---------- */

.btn {
  border-radius: var(--pl-radius-sm);
  font-weight: 600;
}

.btn-primary,
.btn-primary:focus {
  background-color: var(--pl-accent);
  border-color: var(--pl-accent);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:active {
  background-color: var(--pl-accent-ink);
  border-color: var(--pl-accent-ink);
  color: #fff;
}

.btn-outline-secondary {
  border-color: var(--pl-line-2);
  color: var(--pl-ink-3);
}
.btn-outline-secondary:hover {
  background: var(--pl-surface-2);
  border-color: var(--pl-line-3);
  color: var(--pl-ink);
}

.form-control,
.form-select {
  border: 1px solid #d7d5f5;
  border-radius: var(--pl-radius-sm);
  color: var(--pl-ink);
  padding: 9px 12px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--pl-accent);
  box-shadow: 0 0 0 3px var(--pl-accent-ring);
}

.form-label {
  color: var(--pl-ink-3);
  font-size: 14px;
}

/* ---------- header ---------- */

.navbar {
  background: var(--pl-surface);
  border-bottom: 1px solid var(--pl-line);
}
.navbar .nav-link {
  color: var(--pl-ink-3);
  font-size: 14.5px;
}
.navbar .nav-link:hover {
  color: var(--pl-accent);
}
.navbar-brand {
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--pl-ink);
}

/* ---------- footer ---------- */

footer,
.footer,
footer.container-fluid.text-center.foot {
  background: var(--pl-bar);
  color: var(--pl-bar-ink);
  border-top: 0;
}
footer a,
.footer a {
  color: var(--pl-bar-ink);
}
footer a:hover,
.footer a:hover {
  color: #fff;
}

/* ---------- hero ---------- */

/* The kit's hero ran py-lg-8 + my-10, about 340px of air above the headline.
   The design's hero is compact -- kicker, headline, one line of copy, search.
   Scoped to the hero section so inner sections keep their own rhythm. */
.pl-hero {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.pl-hero .display-5 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
}

/* The hero is a tinted, bordered card in the design -- not type sitting
   directly on the page ground. */
.pl-hero-card {
  border: 1px solid var(--pl-line-2);
  border-radius: 16px;
  padding: 28px 20px;
  background: linear-gradient(180deg, var(--pl-tint) 0%, var(--pl-surface) 100%);
  text-align: center;
}
.pl-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--pl-accent);
  background: #f4f3ff;
  border: 1px solid #dedbf9;
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 14px;
}

/* Trending / report cards: ranged left, chip above the number. */
.pl-tile {
  border: 1px solid var(--pl-line);
  border-radius: 11px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-decoration: none;
  background: var(--pl-surface);
}
.pl-tile-num {
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--pl-ink);
  direction: ltr;
  unicode-bidi: embed;
}
.pl-tile-meta { font-size: 12.5px; color: var(--pl-muted); }

/* "How it works": one bordered card, numbered accent squares, ranged left --
   was a full-bleed grey band of centred columns with circular icons. */
.pl-how {
  border: 1px solid var(--pl-line-2);
  border-radius: 14px;
  padding: 20px;
  background: var(--pl-surface-2);
}
.pl-how-kicker {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pl-accent);
  font-weight: 700;
  margin-bottom: 6px;
}
.pl-how-step-n {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f4f3ff;
  color: var(--pl-accent);
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
}
.pl-how-step-t {
  font-family: var(--pl-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}

/* Search: one control, not an input with a detached button. */
.pl-search {
  display: flex;
  max-width: 560px;
  margin-inline: auto;
  border: 1px solid #d7d5f5;
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  overflow: hidden;
}
.pl-search .form-control {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
  font-size: 16.5px;
}
.pl-search .form-control:focus {
  box-shadow: none;
}
.pl-search .btn {
  border: 0;
  border-radius: 0;
  padding: 14px 24px;
  font-size: 16.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Section headings on the home page: the design sets these at 20px, ranged
   left, with a muted line under them -- not centred display type. */
.pl-section-title {
  font-family: var(--pl-display);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 4px;
}
.pl-section-sub {
  font-size: 13.5px;
  color: var(--pl-muted);
  margin: 0 0 14px;
}

/* ---------- the page frame ----------
   In the design the site sits on the grey ground inside one white card with a
   soft shadow -- header, content and footer all within it. Read from the
   rendered canvas, not guessed: I first took this for the design tool's own
   device frame and left it out, which is most of why the build did not look
   like the mock. */
.pl-frame {
  max-width: 1150px;
  margin: 22px auto 60px;
  background: var(--pl-surface);
  border: 1px solid var(--pl-line-3);
  border-radius: 16px;
  box-shadow: 0 12px 44px rgba(20, 20, 26, .10);
  overflow: hidden;
}
.pl-frame > main {
  /* top padding matters: several pages open straight onto an <h1>, which
     otherwise sits flush against the header's bottom border */
  padding: 18px 16px 8px;
}

/* the brand mark: an accent square with a ring-and-handle glyph */
.pl-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: var(--pl-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pl-logo svg { display: block; }

/* ---------- breadcrumb ---------- */

.pl-crumbs {
  font-size: 12.5px;
  color: var(--pl-muted);
  margin: 18px 0 14px;
}
.pl-crumbs a { color: var(--pl-muted); }
.pl-crumbs a:hover { color: var(--pl-accent); }

/* ---------- facts sidebar ---------- */

.pl-facts {
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  overflow: hidden;
  background: var(--pl-surface);
}
.pl-fact {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f1f6;
}
.pl-fact:last-child { border-bottom: 0; }
.pl-fact-label {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pl-muted-2);
  font-weight: 700;
}
.pl-fact-value {
  font-size: 15px;
  color: var(--pl-ink);
  margin-top: 2px;
}

/* ---------- the IL brand's legacy chrome ----------
   ilphones/style.css paints a dark teal gradient header and a full-bleed
   gradient hero band behind the page title, with its own --primary-* ramp.
   The canvas gives all three brands the same white header and plain title, so
   those two are flattened here. Scoped to .pl-frame so nothing outside the
   design's shell is touched. */
.pl-frame .site-header {
  background: var(--pl-surface);
  border-bottom: 1px solid var(--pl-line);
  box-shadow: none;
  padding: 11px 0;
  position: static;
}
.pl-frame .site-logo,
.pl-frame .site-logo span {
  color: var(--pl-ink);
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: 16.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.pl-frame .text-center.box {
  background: none;
  color: var(--pl-ink);
  padding: 4px 0 0;
  text-align: start;
  box-shadow: none;
  border: 0;
}
.pl-frame .text-center.box::before { content: none; }
/* ilphones/style.css colours headings and .btn-primary from its own
   --primary-* ramp (a teal), which the design does not use for this brand --
   IL is indigo, the same accent as Number Records. These win it back inside
   the design's shell. */
.pl-frame h1,
.pl-frame h2,
.pl-frame h3,
.pl-frame .pl-hero-card h1 {
  color: var(--pl-ink);
  -webkit-text-fill-color: var(--pl-ink);
}
.pl-frame .btn-primary,
.pl-frame .pl-search .btn {
  background: var(--pl-accent);
  border-color: var(--pl-accent);
  color: #fff;
}
.pl-frame .pl-search .btn {
  border-radius: 0;
}
.pl-frame .pl-search .form-control {
  border-radius: 0;
  box-shadow: none;
}

.pl-frame .text-center.box h1 {
  color: var(--pl-ink);
  /* style.css pins -webkit-text-fill-color:#fff, which beats `color` outright
     -- without resetting it the title is white on white once the gradient band
     behind it is gone. */
  -webkit-text-fill-color: var(--pl-ink);
  text-shadow: none;
  letter-spacing: -0.015em;
}

/* The design's "Check this number →" line at the foot of a feed card. */
.pl-card-cta {
  font-size: 13px;
  color: var(--pl-accent);
  font-weight: 600;
  margin-top: 10px;
}

/* The filter chips are links with a chip look and an active state. */
.chip {
  display: inline-block;
  border: 1px solid var(--pl-line-2);
  background: var(--pl-surface);
  color: var(--pl-ink-3);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--pl-accent);
  color: var(--pl-accent);
  text-decoration: none;
}
.chip.active {
  background: var(--pl-accent);
  border-color: var(--pl-accent);
  color: #fff;
}

/* ---------- phone-book rows ----------
   The design lists numbers as rows carrying a verdict chip and a risk bar,
   not as a wall of links. */
/* The list carries Bootstrap's .row as well as .phone-list, so it is a flex
   container: block rows inside it become content-width flex items and the
   phone book came out as two ragged columns of differently-sized cards, with
   each risk bar wherever that row's text happened to end. Forcing the list
   back to a block stack makes every row span the frame and lines the bars and
   scores up on one edge.

   style-new.css also floats .phone-list li and gives it a width; both are
   reset on the row items below. */
.pl-frame .phone-list,
.phone-list {
  display: block;
  padding: 0;
  margin: 0;
}
/* Written as `li.pl-row-item`, not `.pl-row-item`: style-new.css targets
   `.phone-list li`, which at 0,1,1 outranks a lone class at 0,1,0 -- so the
   float survived and the rows stayed content-width and two-up. */
li.pl-row-item,
.phone-list li.pl-row-item {
  list-style: none;
  margin: 0 0 8px;
  float: none;
  width: auto;
  max-width: none;
  display: block;
  /* the area-code heading floats an "All phones in area code N" button, and
     without this the first row wraps around it and comes out short */
  clear: both;
}
/* Written to outrank `.phone-list li a`, which ilphones/style.css uses to
   render each number as a small grey inline-block chip (0,1,2 -- more
   specific than a lone .pl-row at 0,1,0). Without this the Hebrew phone book
   came out as narrow right-aligned boxes with the score wrapped onto a second
   line. */
.pl-row,
.phone-list li a.pl-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  border: 1px solid var(--pl-line);
  border-radius: 11px;
  padding: 12px 14px;
  background: var(--pl-surface);
  text-decoration: none;
  transform: none;
  box-shadow: none;
}
.pl-row:hover,
.phone-list li a.pl-row:hover {
  border-color: var(--pl-line-3);
  background: var(--pl-surface);
  color: inherit;
  text-decoration: none;
  transform: none;
}
.pl-row-num {
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--pl-ink);
  direction: ltr;
  unicode-bidi: embed;
}
/* The "recently found" listing reuses .pl-row, but its rows carry a source
   site and an optional asserted owner name instead of a risk bar. The meta is
   pushed to the end the same way .pl-row-bar is, so both row shapes line up. */
.pl-row-owner {
  font-size: 14px;
  color: var(--pl-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pl-row-meta {
  margin-inline-start: auto;
  font-size: 13px;
  color: var(--pl-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.pl-row-bar {
  margin-inline-start: auto;
  width: 60px;
  height: 6px;
  border-radius: 999px;
  background: var(--pl-ground);
  overflow: hidden;
  display: block;
}
.pl-row-bar-fill { display: block; height: 100%; }
.pl-row-score {
  font-family: var(--pl-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--pl-ink-3);
  min-width: 2ch;
  text-align: end;
}

/* ---------- article layout ----------
   The design runs an article as a reading column with a sidebar holding the
   TOC and a sticky unit. Collapses to one column on narrow screens, where the
   TOC sits above the article. */
.pl-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 8px 0 24px;
}
@media (min-width: 992px) {
  .pl-article-wrap { grid-template-columns: minmax(0, 1fr) 300px; }
}
.pl-article-main { min-width: 0; }
.pl-article-main p,
.pl-article-main li {
  font-size: 16.5px;
  line-height: 1.75;
  color: #33343d;
  max-width: 64ch;
  text-wrap: pretty;
}
.pl-article-main h2 {
  font-size: 21px;
  margin: 26px 0 10px;
}
.pl-article-sticky { position: sticky; top: 16px; }

.pl-toc {
  border: 1px solid var(--pl-line-2);
  background: var(--pl-surface-2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}
.pl-toc-title {
  font-family: var(--pl-display);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 10px;
}
.pl-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.pl-toc-list a { font-size: 14px; line-height: 1.4; }

/* Full-width "show more" control, as the design draws it. */
.pl-more-btn {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--pl-line-2);
  background: var(--pl-surface-2);
  border-radius: 10px;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--pl-ink-2);
  cursor: pointer;
}
.pl-more-btn:hover { border-color: var(--pl-line-3); }

/* ---------- narrow screens ----------
   The design carries a Mobile view; these are the rules it implies. The frame
   loses its side margin and rounding so it does not waste width on a phone,
   the hero tightens, and the search control stacks rather than squeezing the
   field to nothing beside its button. */
@media (max-width: 575.98px) {
  .pl-frame {
    margin: 0 0 32px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .pl-hero { padding-top: 20px !important; padding-bottom: 20px !important; }
  .pl-hero-card { padding: 20px 14px; }

  .pl-search { flex-wrap: wrap; }
  .pl-search .form-control { flex: 1 0 100%; }
  .pl-search .btn { flex: 1 0 100%; }

  /* the facts card and the reading column are full width already; the score
     on a verdict banner should not be pushed onto its own line */
  .verdict-banner-score { margin-inline-start: 0; }
}

/* ---------- legacy panels ----------
   The company, address, business-directory and listing pages are all built
   from the same Bootstrap-3-era block: .panel > .panel-heading (a grey bar
   holding an h2) > .panel-body. Restyling that block here brings every one of
   those pages onto the design without rewriting six large templates by hand,
   and keeps them consistent with pages that use the new classes directly.

   This is a restyle, not a redesign: their information architecture is
   unchanged. */
.pl-frame .panel-heading {
  background: none;
  border: 0;
  border-bottom: 1px solid var(--pl-line);
  padding: 14px 16px;
}
.pl-frame .panel-heading h2,
.pl-frame .panel-heading h3 {
  font-family: var(--pl-display);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  color: var(--pl-ink);
}
.pl-frame .panel-body { padding: 16px; }
.pl-frame .panel,
.pl-frame .panel-default {
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  box-shadow: 0 1px 2px rgba(20, 20, 26, .04);
  background: var(--pl-surface);
  margin-bottom: 16px;
}

/* the same pages print label/value pairs as .text-type spans */
.pl-frame .title-type {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pl-muted-2);
  font-weight: 700;
  margin-bottom: 4px;
}

/* /all/ and the "related numbers" blocks list numbers as plain links, which
   rendered as a bulleted grid. They become chips -- the shape ilphones
   already used for the same markup.

   :not(.pl-row) matters: the phone-book rows are anchors in the same list and
   must keep their row layout, and this selector would otherwise tie with the
   rule that gives them it. */
.pl-frame .phone-list { list-style: none; }
.pl-frame .phone-list li { list-style: none; }
.pl-frame .phone-list li > a:not(.pl-row) {
  display: inline-block;
  padding: 8px 14px;
  background: var(--pl-surface-2);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius-sm);
  color: var(--pl-ink-3);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  direction: ltr;
  unicode-bidi: embed;
}
.pl-frame .phone-list li > a:not(.pl-row):hover {
  border-color: var(--pl-accent);
  color: var(--pl-accent);
  text-decoration: none;
}

/* ---------- badges ---------- */

.badge {
  font-weight: 700;
  border-radius: 7px;
}

/* ---------- the articles page (/blog/, every brand) ----------
   Section chips, then one grid of title + summary cards per topic. Tokens
   only, logical properties only, so the same rules serve RTL. */
.pl-articles-head h1 {
  font-family: var(--pl-display);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  margin: 0 0 8px;
  text-wrap: balance;
}
.pl-articles-head p {
  color: var(--pl-ink-2);
  max-width: 68ch;
  margin: 0;
}
.pl-articles-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
}
.pl-articles-jump a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--pl-line-3);
  border-radius: 999px;
  color: var(--pl-ink-2);
  text-decoration: none;
  font-size: 14px;
  background: var(--pl-surface);
}
.pl-articles-jump a span { color: var(--pl-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.pl-articles-jump a:hover { border-color: var(--pl-accent); color: var(--pl-accent-ink); }
.pl-articles-jump a:focus-visible,
.pl-article-card a:focus-visible,
.pl-header-nav a:focus-visible {
  outline: 2px solid var(--pl-accent);
  outline-offset: 2px;
}
.pl-articles-section { margin-top: 34px; scroll-margin-top: 16px; }
.pl-articles-section h2 {
  font-family: var(--pl-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pl-line);
}
.pl-articles-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 12px;
}
.pl-article-card {
  background: var(--pl-surface);
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pl-article-card a {
  color: var(--pl-ink);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.35;
}
.pl-article-card a:hover { color: var(--pl-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.pl-article-card p {
  margin: 0;
  color: var(--pl-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Related articles at the end of every article (section/article_related). */
.pl-related { margin: 36px 0 8px; }
.pl-related h2 {
  font-family: var(--pl-display);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
}
.pl-related-all { margin: 12px 0 0; }
.pl-related-all a { color: var(--pl-accent-ink); font-weight: 600; }

/* IL header links: the header used to be the logo alone, so the articles,
   phone book and reports were reachable from the footer only. */
.pl-header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
}
.pl-header-nav a {
  color: var(--pl-ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.pl-header-nav a:hover,
.pl-header-nav a[aria-current="page"] { color: var(--pl-accent); }
@media (max-width: 560px) {
  .pl-frame .site-header .container { flex-wrap: wrap; gap: 8px; }
}
