/* ========================================
   PredelNews Custom Styles (Bootstrap 5 Override)
   Only what Bootstrap doesn't provide
   ======================================== */

/* Design Tokens */
:root {
  --pn-primary: #005BBB;
  --pn-primary-hover: #004A99;
  --pn-accent: #D9002B;
  --pn-accent-hover: #B80024;
  --pn-text-dark: #1A1A1A;
  --pn-text-body: #333333;
  --pn-text-meta: #666666;
  --pn-text-light: #999999;
  --pn-bg-surface: #F7F7F7;
  --pn-border: #E5E5E5;
  --pn-sponsored-bg: #FFF3CD;
  --pn-sponsored-text: #856404;
  --pn-font-heading: 'Noto Serif', Georgia, serif;
  --pn-font-body: 'Noto Sans', 'Segoe UI', Arial, sans-serif;

  /* Bootstrap overrides */
  --bs-primary: #005BBB;
  --bs-primary-rgb: 0, 91, 187;
  --bs-danger: #D9002B;
  --bs-danger-rgb: 217, 0, 43;
  --bs-body-font-family: 'Noto Sans', 'Segoe UI', Arial, sans-serif;
  --bs-body-color: #333333;
  --bs-link-color: #005BBB;
  --bs-link-hover-color: #004A99;
  --bs-border-color: #E5E5E5;
}

html { color-scheme: light only; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--pn-font-heading);
  color: var(--pn-text-dark);
}

a { transition: color 150ms ease; }
:focus-visible { outline: 3px solid var(--pn-primary); outline-offset: 2px; }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--pn-primary); color: #fff;
  padding: .375rem 1rem; border-radius: .25rem;
  z-index: 2000; font-weight: 600;
}
.skip-link:focus { top: .5rem; color: #fff; }

/* -- CONTAINER WIDTH --
   Bootstrap's default max-width (1140px at xl, 1320px at xxl) leaves a lot of
   dead margin on wide desktop screens. Widened here so every .container — header,
   footer and every page template all use the plain Bootstrap class — fills more
   of the viewport and stays aligned with each other automatically. */
@media (min-width: 1200px) {
  .container { max-width: 1240px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1440px; }
}

/* -- MAIN + SIDEBAR WIDTH --
   At large desktop the aside was a full col-lg-4 (33% of the row), much wider
   than the 300px ad creatives it holds — leaving dead space on both sides of
   every banner, and stretching the "Най-четено" widget wider than the ad
   above it. Narrowed to the ad's own width (300px content + Bootstrap's 12px
   gutter padding each side); the main column grows to take the rest via flex.
   Bootstrap's col-lg-8/col-lg-4 percentage split is untouched below 1200px,
   so tablet/mobile stacking is unaffected. */
@media (min-width: 1200px) {
  .pn-sidebar-col { flex: 0 0 324px; max-width: 324px; }
  .pn-main-col { flex: 1 1 0%; max-width: none; }
}

/* -- HEADER -- */
.pn-header { border-bottom: 3px solid var(--pn-primary); background: #fff; }

.pn-logo {
  font-family: var(--pn-font-heading);
  font-size: 1.5rem; font-weight: 700;
  color: var(--pn-primary); text-decoration: none;
}
.pn-logo:hover { color: var(--pn-primary); }
.pn-logo .accent { color: var(--pn-accent); }

.pn-header .nav-link {
  color: var(--pn-text-dark); font-weight: 500;
  font-size: .875rem; text-transform: uppercase;
  letter-spacing: .5px; padding: .5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 150ms ease;
}
.pn-header .nav-link:hover,
.pn-header .nav-link.active {
  color: var(--pn-primary);
  border-bottom-color: var(--pn-primary);
}

.btn-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  padding: 0; background: none; border: none;
  color: var(--pn-text-dark); cursor: pointer;
}
.btn-icon:hover { color: var(--pn-primary); }

/* -- HEADER SEARCH -- */
.pn-header-search { position: relative; }

.pn-search-form {
  overflow: hidden; max-width: 0; opacity: 0;
  transition: max-width 0.3s ease, opacity 0.2s ease;
}
.pn-search-form.expanded { max-width: 250px; opacity: 1; }

.pn-search-input-header {
  width: 250px; padding: 0.375rem 0.75rem;
  border: 1px solid var(--pn-border); border-radius: 0.375rem;
  font-size: 0.875rem; outline: none;
  font-family: var(--pn-font-body);
}
.pn-search-input-header:focus {
  border-color: var(--pn-primary);
  box-shadow: 0 0 0 0.2rem rgba(0,91,187,.15);
}

/* -- SECTION HEADERS -- */
.pn-section-header {
  border-bottom: 2px solid var(--pn-primary);
  padding-bottom: .75rem; margin-bottom: 1.5rem;
}
.pn-section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0; }
.pn-section-link { font-size: .875rem; font-weight: 600; white-space: nowrap; }

/* -- BREADCRUMB -- */
.pn-breadcrumb { margin-bottom: 1.25rem; }

.pn-breadcrumb-bar {
  background: var(--pn-bg-surface);
  border: 1px solid var(--pn-border);
  border-left: 3px solid var(--pn-primary);
  border-radius: .5rem;
  padding: .5rem .875rem;
}

.pn-breadcrumb-list {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .125rem 0; margin: 0; padding: 0; list-style: none;
  font-size: .8125rem; font-weight: 500; line-height: 1.4;
}

.pn-breadcrumb-item { display: inline-flex; align-items: center; min-width: 0; }

/* chevron separators (›) */
.pn-breadcrumb-item + .pn-breadcrumb-item::before {
  content: "\203A"; color: #B9C0CA; padding: 0 .5rem;
  font-size: .875rem; line-height: 1;
}

.pn-breadcrumb-item a {
  display: inline-flex; align-items: center; gap: .3125rem;
  color: var(--pn-text-meta); text-decoration: none;
  transition: color 150ms ease;
}
.pn-breadcrumb-item a:hover { color: var(--pn-primary); }

.pn-breadcrumb-home { color: var(--pn-primary); font-size: .9375rem; line-height: 1; }

.pn-breadcrumb-item.is-current { color: var(--pn-text-dark); font-weight: 600; }
.pn-breadcrumb-item.is-current .pn-breadcrumb-home { color: var(--pn-text-meta); }

/* Mobile: single scrollable line instead of an awkward wrap */
@media (max-width: 575.98px) {
  .pn-breadcrumb-list {
    flex-wrap: nowrap; overflow-x: auto; white-space: nowrap;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .pn-breadcrumb-list::-webkit-scrollbar { display: none; }
  .pn-breadcrumb-item { flex: 0 0 auto; }
  .pn-breadcrumb-item.is-current .pn-breadcrumb-label {
    display: inline-block; max-width: 52vw;
    overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; vertical-align: bottom;
  }
}

/* -- ARTICLE CARD -- */
.pn-card {
  position: relative;
  border: 1px solid var(--pn-border); border-radius: .5rem;
  overflow: hidden; transition: box-shadow 250ms ease;
  height: 100%; background: #fff;
}
.pn-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.pn-card .card-img-top { aspect-ratio: 16 / 9; object-fit: cover; }
.pn-card .card-title {
  font-family: var(--pn-font-heading); font-weight: 600; line-height: 1.3;
}
.pn-card .card-title a { color: inherit; text-decoration: none; }
.pn-card .card-title a:hover { color: var(--pn-primary); }
/* keep inline card links (e.g. comment count) clickable above the stretched title link */
.pn-card-meta a { position: relative; z-index: 2; }
.pn-card-subtitle {
  font-size: .875rem; color: var(--pn-text-meta);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pn-card-meta { font-size: .75rem; color: var(--pn-text-meta); }

.pn-card.pn-card-horizontal {
  display: flex; flex-direction: row;
  border: 0; border-radius: 0; background: transparent; overflow: visible;
  border-bottom: 1px solid var(--pn-border);
  transition: background-color 150ms ease;
}
/* Last row in a list (Latest News, or any Region/Category/Author/NewsTag/AllNewsPage
   list using this variant) shouldn't trail a divider before pagination. Scoped by
   element type, not position, because in-feed AdSlot markup is interspersed between
   some rows — :last-of-type still finds the last <article>, ads render as <div>/<a>. */
.pn-card-horizontal:last-of-type { border-bottom: none; }
.pn-card-horizontal:hover { box-shadow: none; background-color: var(--pn-bg-surface); }
/* The row hover tint is the same token as .pn-badge-region's background, so the
   badge would dissolve into a hovered row. Lift it back to white on hover only. */
.pn-card-horizontal:hover .pn-badge-region { background: #fff; }
/* Required today, not just insurance: .pn-card-sponsored (declared later in this
   file, at equal specificity) sets border-color: #F0D060, which would otherwise
   win the cascade by source order and turn the divider under sponsored rows gold.
   The :hover variant is also required on its own: .pn-card-horizontal:hover has
   higher specificity (class + pseudo-class) than plain .pn-card-sponsored, so
   without it the grey hover tint would silently win over the yellow one. */
.pn-card-horizontal.pn-card-sponsored {
  background-color: var(--pn-sponsored-bg);
  border-bottom-color: var(--pn-border);
}
.pn-card-horizontal.pn-card-sponsored:hover { background-color: var(--pn-sponsored-bg); }
.pn-card-horizontal .pn-card-thumb {
  width: 180px; min-height: 120px; flex-shrink: 0; object-fit: cover;
}
@media (max-width: 575.98px) {
  .pn-card-horizontal .pn-card-thumb { width: 120px; }
}

/* -- HERO CARD (homepage featured story) -- */
/* Framed rather than borderless, reversing the original card-hierarchy spec. A 1px
   var(--pn-border) box was tried first and was invisible against white. What stops this
   reading as "just a bigger .pn-card" is the colour — primary blue, which no .pn-card
   uses — rather than the absence of a border.
   Deliberately does NOT carry .pn-card-sponsored: that class sets border-color #F0D060
   at equal specificity and would turn part of this frame gold. The "Платена" badge is
   the compliance label — see the note in _ArticleHeroCard.cshtml. */
.pn-card-hero {
  position: relative;
  border: 2px solid var(--pn-primary);
  border-bottom-width: 4px;
  border-radius: .5rem;
  padding: 1.25rem;
}
.pn-card-hero-title {
  font-family: var(--pn-font-heading); font-weight: 700; color: var(--pn-text-dark);
  font-size: clamp(1.5rem, 1.15rem + 1.7vw, 2.25rem);
  line-height: 1.12; margin-bottom: 1rem;
}
.pn-card-hero-title a { color: inherit; text-decoration: none; }
.pn-card-hero-title a:hover { color: var(--pn-primary); }
/* No margin-bottom: the image is the hero's last child now that the subtitle and meta
   are gone, so the container's padding alone gives an even inset on all four sides.
   A margin here would make the gap below the image wider than the gap beside it.

   The hero never crops. A hard `aspect-ratio: 16 / 9` + `object-fit: cover` was here
   first, and centre-cropped every cover that is not 16:9 — live covers arrive at 3:2
   (1536x1024) as well as 16:9 (1672x941), and a 3:2 cover lost 15.6% of its height:
   80px off the top, taking half the headline band, and 80px off the bottom, taking the
   whole footer strip. Covers are text-dense infographics, so every edge carries content
   and there is no safe crop. Article.cshtml already renders the same file whole; this
   makes the hero agree with it.

   `aspect-ratio: auto 16 / 9` is the two-value form: auto wins whenever the element has
   a natural ratio, so a loaded cover sets its own box, and the 16/9 applies only as the
   placeholder before the natural ratio is known. The hero is the LCP element, so the
   partial also emits width/height attributes — with those the natural ratio is known
   from markup and even that placeholder never gets used. */
.pn-card-hero-img {
  display: block; width: 100%; height: auto; aspect-ratio: auto 16 / 9;
}

.pn-card-sponsored { border-color: #F0D060; background: var(--pn-sponsored-bg); }

/* -- HEADLINES PANEL (homepage, beside the hero) -- */
/* Tinted, not bordered: border + radius is .pn-widget, the sidebar's idiom. Borrowing
   it here would make main-column news look like sidebar furniture. The tint edge is
   also what separates this column from the hero — no vertical rule is needed. */
.pn-headlines {
  background: var(--pn-bg-surface);
  border-radius: .5rem;
  padding: 1.25rem;
}
/* Bootstrap gives .list-group-item an opaque white background, which would punch
   through the tint above. */
.pn-headlines .list-group-item { background: transparent; }
.pn-headlines h4 { font-size: .9375rem; line-height: 1.3; }
.pn-headlines-title {
  font-family: var(--pn-font-heading);
  font-size: .8125rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--pn-text-meta);
  padding-bottom: .5rem; margin-bottom: .25rem;
  border-bottom: 2px solid var(--pn-primary);
}

/* -- BADGES -- */
.pn-badge-category {
  background: var(--pn-primary); color: #fff;
  font-size: .6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px;
}
.pn-badge-region {
  background: var(--pn-bg-surface); color: var(--pn-text-meta);
  border: 1px solid var(--pn-border);
  font-size: .6875rem; font-weight: 600;
}
.pn-badge-sponsored {
  background: var(--pn-sponsored-bg); color: var(--pn-sponsored-text);
  border: 1px solid #F0D060; font-size: .6875rem; font-weight: 600;
}
.pn-badge-breaking {
  background: var(--pn-accent); color: #fff;
  font-size: .6875rem; font-weight: 600;
  animation: pn-pulse 2s infinite;
}
@keyframes pn-pulse { 0%,100%{opacity:1} 50%{opacity:.7} }

/* -- BUTTONS (Bootstrap override) -- */
.btn { min-height: 44px; min-width: 44px; font-weight: 600; }
.btn-primary {
  --bs-btn-bg: var(--pn-primary); --bs-btn-border-color: var(--pn-primary);
  --bs-btn-hover-bg: var(--pn-primary-hover); --bs-btn-hover-border-color: var(--pn-primary-hover);
  --bs-btn-active-bg: var(--pn-primary-hover);
}
.btn-outline-primary {
  --bs-btn-color: var(--pn-primary); --bs-btn-border-color: var(--pn-primary);
  --bs-btn-hover-bg: var(--pn-primary); --bs-btn-hover-border-color: var(--pn-primary);
}
.btn-danger {
  --bs-btn-bg: var(--pn-accent); --bs-btn-border-color: var(--pn-accent);
  --bs-btn-hover-bg: var(--pn-accent-hover);
}

/* -- AD SLOTS -- */
.pn-ad-slot {
  background: var(--pn-bg-surface); border: 1px dashed var(--pn-border);
  border-radius: .25rem; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: .25rem;
  color: var(--pn-text-light); font-size: .75rem; overflow: hidden;
}
.pn-ad-label {
  text-transform: uppercase; letter-spacing: 1px;
  font-size: .625rem; font-weight: 600; color: var(--pn-text-light);
}

/* Direct-sold banner: just the image, no placeholder chrome (border/background/label) */
.pn-ad-banner { display: block; overflow: hidden; }

/* Slot-specific sizing: max-width caps each slot at its creative's native size (CLS
   prevention + stops img-fluid from stretching a 728x90/300x250 banner to fill a much
   wider Bootstrap .container), margin-inline centers it within that container.
   aspect-ratio (not a fixed min-height) keeps the reserved space proportional to the
   creative's real dimensions as img-fluid scales it down on narrow viewports — a fixed
   90px/250px min-height left empty space below the shrunk image on mobile.

   The article-inline / article-inline-2 / article-bottom / article-post-comments slots
   were dropped from this list when Article.cshtml stopped rendering any ad inside
   <article>. Their rows still exist in the ad-slots table, so if a slot is ever put back
   in a template, add its class here too or it will size unconstrained. */
.pn-ad-header-leaderboard,
.pn-ad-footer-banner { aspect-ratio: 728 / 90; max-width: 728px; margin-inline: auto; }
.pn-ad-sidebar-top,
.pn-ad-sidebar-middle,
.pn-ad-sidebar-bottom,
.pn-ad-sidebar-extra,
.pn-ad-in-feed { aspect-ratio: 300 / 250; max-width: 300px; margin-inline: auto; }

/* Mobile sticky — fixed bottom bar, mobile-only */
.pn-ad-mobile-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  min-height: 50px; z-index: 1050; background: #fff;
  border-top: 1px solid var(--pn-border);
}

/* Responsive: hide sidebar slots on mobile */
@media (max-width: 1023px) {
  .pn-ad-sidebar-top,
  .pn-ad-sidebar-bottom { display: none; }
}

/* Mobile sticky: hide on desktop */
@media (min-width: 1024px) {
  .pn-ad-mobile-sticky { display: none; }
}

/* -- SPONSORED BANNER -- */
.pn-sponsored-banner {
  background: var(--pn-sponsored-bg); border: 1px solid #F0D060;
  border-radius: .25rem; padding: .5rem 1rem;
  font-size: .875rem; font-weight: 600; color: var(--pn-sponsored-text);
}

/* -- SIDEBAR WIDGETS -- */
.pn-widget { border: 1px solid var(--pn-border); border-radius: .5rem; }
.pn-widget-title {
  font-family: var(--pn-font-heading); font-size: 1.125rem;
  font-weight: 700; padding-bottom: .5rem;
  border-bottom: 2px solid var(--pn-primary);
}

.pn-poll-option {
  display: flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .5rem .75rem;
  background: var(--pn-bg-surface); border: 1px solid var(--pn-border);
  border-radius: .25rem; cursor: pointer; transition: all 150ms ease;
}
.pn-poll-option:hover {
  border-color: var(--pn-primary); background: rgba(0,91,187,.05);
}

.pn-most-read { counter-reset: most-read; list-style: none; padding: 0; }
.pn-most-read li {
  counter-increment: most-read; padding: .5rem 0;
  border-bottom: 1px solid var(--pn-border);
  display: flex; gap: .75rem;
}
.pn-most-read li:last-child { border-bottom: none; }
.pn-most-read li::before {
  content: counter(most-read); font-family: var(--pn-font-heading);
  font-size: 1.5rem; font-weight: 700; color: var(--pn-primary);
  min-width: 28px; line-height: 1;
}
.pn-most-read li a { font-size: .875rem; font-weight: 500; color: var(--pn-text-dark); }
.pn-most-read li a:hover { color: var(--pn-primary); }

/* -- ARTICLE PAGE -- */
.pn-article-body { font-size: 1.125rem; line-height: 1.8; }
.pn-article-body p { margin-bottom: 1.25rem; }
.pn-article-body h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: 1rem; }
.pn-article-body h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: .75rem; }
.pn-article-body blockquote {
  border-left: 4px solid var(--pn-primary);
  padding: 1rem 1.5rem; background: var(--pn-bg-surface);
  border-radius: 0 .25rem .25rem 0; font-style: italic;
  color: var(--pn-text-meta); margin: 1.5rem 0;
}

.pn-tag {
  padding: .25rem .75rem; background: var(--pn-bg-surface);
  border: 1px solid var(--pn-border); border-radius: 50rem;
  font-size: .875rem; color: var(--pn-text-meta);
  text-decoration: none; transition: all 150ms ease;
}
.pn-tag:hover {
  background: var(--pn-primary); color: #fff; border-color: var(--pn-primary);
}

.pn-share-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--pn-border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--pn-text-meta); transition: all 150ms ease; cursor: pointer;
}
.pn-share-btn:hover {
  background: var(--pn-primary); color: #fff; border-color: var(--pn-primary);
}

/* -- COMMENTS -- */
#comment-list { display: flex; flex-direction: column; gap: .75rem; }

.pn-comment {
  background: #fff;
  border: 1px solid var(--pn-border);
  border-left: 3px solid var(--pn-primary);
  border-radius: .5rem;
  padding: 1rem 1.25rem;
}
.pn-comment-head { display: flex; align-items: baseline; gap: .75rem; }
.pn-comment-ident {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: .125rem .625rem; min-width: 0;
}
.pn-comment-name { font-weight: 600; color: var(--pn-text-dark); }
.pn-comment-time { font-size: .8125rem; color: var(--pn-text-light); }
.pn-comment-body { margin: .625rem 0 0; color: var(--pn-text-body); overflow-wrap: anywhere; }

.pn-comment-delete {
  margin-left: auto; flex: 0 0 auto;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--pn-text-light); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms ease, color 150ms ease;
}
.pn-comment-delete:hover { background: #FDEEF0; color: var(--pn-accent); }

.pn-comment-empty {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.25rem;
  background: var(--pn-bg-surface);
  border: 1px dashed var(--pn-border); border-radius: .5rem;
  color: var(--pn-text-meta); font-size: .9375rem;
}
.pn-comment-empty .bi { color: var(--pn-primary); font-size: 1.25rem; line-height: 1; }

.pn-comment-form {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--pn-border); border-radius: .75rem;
  padding: 1.5rem;
}
.pn-comment-form .form-control:focus {
  border-color: var(--pn-primary);
  box-shadow: 0 0 0 .2rem rgba(0, 91, 187, .15);
}

.btn.pn-btn-primary {
  background: var(--pn-primary); color: #fff;
  border: 1px solid var(--pn-primary);
  font-weight: 600; padding: .5rem 1.25rem;
}
.btn.pn-btn-primary:hover,
.btn.pn-btn-primary:focus {
  background: var(--pn-primary-hover);
  border-color: var(--pn-primary-hover); color: #fff;
}

.pn-hp { position: absolute; left: -9999px; }

/* -- SEARCH -- */
.pn-search-input {
  min-height: 52px; font-size: 1.125rem;
  border: 2px solid var(--pn-border); border-radius: .5rem;
}
.pn-search-input:focus {
  border-color: var(--pn-primary);
  box-shadow: 0 0 0 .2rem rgba(0,91,187,.15);
}

/* -- FOOTER -- */
.pn-footer { background: var(--pn-text-dark); color: #ccc; }
.pn-footer a { color: #ccc; }
.pn-footer a:hover { color: #fff; }
.pn-footer-title {
  color: #fff; font-family: var(--pn-font-heading);
  font-size: 1rem; font-weight: 700;
}
.pn-social-link {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); display: flex;
  align-items: center; justify-content: center;
  transition: background 150ms ease; color: #ccc;
}
.pn-social-link:hover { background: var(--pn-primary); color: #fff; }

/* -- COOKIE BANNER -- */
.pn-cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--pn-text-dark); color: #fff;
  z-index: 1050; box-shadow: 0 -2px 10px rgba(0,0,0,.2);
}
.pn-cookie-banner a { color: #fff; text-decoration: underline; }

/* -- ERROR PAGE -- */
.pn-error-code {
  font-family: var(--pn-font-heading); font-size: 8rem;
  font-weight: 700; line-height: 1;
}

/* -- PRICING -- */
.pn-pricing-card {
  border: 2px solid var(--pn-border); border-radius: .75rem;
  transition: all 250ms ease;
}
.pn-pricing-card:hover {
  border-color: var(--pn-primary); box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.pn-pricing-featured {
  border-color: var(--pn-primary); background: rgba(0,91,187,.02);
  transform: scale(1.02);
}
.pn-pricing-price { font-size: 2.25rem; font-weight: 700; color: var(--pn-primary); }
.pn-pricing-features { list-style: none; padding: 0; }
.pn-pricing-features li {
  padding: .5rem 0; border-bottom: 1px solid var(--pn-border); font-size: .875rem;
}
.pn-pricing-features li::before {
  content: "\2713"; color: var(--bs-success, #198754);
  font-weight: 700; margin-right: .5rem;
}

/* -- NATIONAL STRIP -- */
.pn-national-strip {
  background: var(--pn-bg-surface);
  border-top: 1px solid var(--pn-border);
  border-bottom: 1px solid var(--pn-border);
}

/* -- UTILITIES -- */
.bg-surface { background-color: var(--pn-bg-surface) !important; }
.text-meta { color: var(--pn-text-meta) !important; }
.font-heading { font-family: var(--pn-font-heading) !important; }

/* ========================================
   MOBILE POLISH — responsive fixes only.
   All rules are mobile-scoped or no-ops on desktop; desktop layout unchanged.
   ======================================== */

/* [1] Header nav grows to fit the expanded mobile menu.
   Previously a hard-coded height:64px clipped the open menu, so it
   overlapped the page content instead of pushing it down. */
.pn-navbar { min-height: 64px; }
@media (max-width: 767.98px) {
  .pn-navbar .navbar-collapse { padding-bottom: .75rem; }
  /* Keep the top row a stable 64px tall whether the menu is open or closed, so
     the logo and hamburger don't jump up ~10px when the menu expands. The text
     is centered inside, so the closed appearance is unchanged. */
  .pn-navbar > .pn-logo,
  .pn-navbar > .navbar-toggler { min-height: 64px; }
  .pn-navbar > .pn-logo { display: inline-flex; align-items: center; }
}

/* [2] Bottom of the viewport on mobile: the fixed mobile-sticky ad and the
   cookie banner both pinned to bottom:0 (overlapping), and the ad covered the
   footer. Reserve space for the ad bar and stack the cookie banner above it.
   (Range matches when .pn-ad-mobile-sticky is visible, i.e. width < 1024px.) */
@media (max-width: 1023.98px) {
  body { padding-bottom: 52px; }
  #pn-cookie-consent { bottom: 52px !important; }
}

/* [3] Long headlines/words can't overflow their container. */
.pn-card .card-title,
.pn-card-hero-title,
article h1,
.pn-article-body { overflow-wrap: break-word; }

/* -- NEWSLETTER SIGNUP -- */
.pn-newsletter {
  background: linear-gradient(135deg, #0064CE 0%, var(--pn-primary) 55%, var(--pn-primary-hover) 100%);
  color: #fff;
}
.pn-newsletter-icon { font-size: 2.75rem; line-height: 1; color: rgba(255,255,255,.85); }
.pn-newsletter-title {
  font-family: var(--pn-font-heading); color: #fff; font-weight: 700; line-height: 1.2;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
}
.pn-newsletter-lead {
  color: rgba(255,255,255,.85); font-size: .95rem; line-height: 1.55; max-width: 48ch;
}
/* Mobile-first: field + button stacked full-width (no horizontal overflow);
   side-by-side only from the sm breakpoint up, where there's room. */
.pn-newsletter-fields { display: flex; flex-direction: column; gap: .75rem; }
.pn-newsletter-fields .form-control { min-height: 48px; border: 0; }
.pn-newsletter-fields .form-control:focus { box-shadow: 0 0 0 .25rem rgba(255,255,255,.35); }
.pn-newsletter-fields .btn { min-height: 48px; }
@media (min-width: 576px) {
  .pn-newsletter-fields { flex-direction: row; }
  .pn-newsletter-fields .form-control { flex: 1 1 auto; min-width: 0; }
  .pn-newsletter-fields .btn { flex: 0 0 auto; }
}
.pn-newsletter .form-check-label { color: rgba(255,255,255,.85); }
.pn-newsletter .form-check-input {
  border-color: rgba(255,255,255,.6); background-color: rgba(255,255,255,.15);
}
.pn-newsletter .form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(255,255,255,.3); }
.pn-newsletter .form-check-input:checked {
  background-color: #fff; border-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23005BBB' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3 6-6'/%3e%3c/svg%3e");
}
