/* ==========================================================================
   PawCostWise — Design System
   Trust-first, YMYL-appropriate. Layered on top of Bootstrap 5.
   Bootstrap CSS must load BEFORE this file.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette — teal reads as clinical/trustworthy without feeling cold.
     Avoids the saturated orange/red common to content farms. */
  --pcw-teal-900: #0b3a3c;
  --pcw-teal-800: #12514f;
  --pcw-teal-700: #16706b;
  --pcw-teal-600: #1a8a83;
  --pcw-teal-100: #e3f2f1;
  --pcw-teal-50:  #f2f9f8;

  /* Accent reserved for cost/number emphasis only — never for ads. */
  --pcw-amber-600: #b26a00;
  --pcw-amber-100: #fdf1dd;

  /* Neutrals */
  --pcw-ink:      #16211f;
  --pcw-body:     #3d4b48;
  --pcw-muted:    #6b7a77;
  --pcw-line:     #e2e8e6;
  --pcw-surface:  #ffffff;
  --pcw-canvas:   #fbfcfc;

  /* Semantic */
  --pcw-warn-bg:   #fff8e6;
  --pcw-warn-line: #e8c264;

  /* Typography scale */
  --pcw-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pcw-font-serif: Georgia, "Times New Roman", serif;

  /* Rhythm */
  --pcw-radius:    10px;
  --pcw-radius-sm: 6px;
  --pcw-shadow:    0 1px 2px rgba(11, 58, 60, .05), 0 8px 24px rgba(11, 58, 60, .06);
  --pcw-shadow-sm: 0 1px 2px rgba(11, 58, 60, .06);

  /* Bootstrap variable overrides */
  --bs-primary: var(--pcw-teal-700);
  --bs-body-color: var(--pcw-body);
  --bs-body-font-family: var(--pcw-font-sans);
  --bs-border-color: var(--pcw-line);
  --bs-link-color: var(--pcw-teal-700);
  --bs-link-hover-color: var(--pcw-teal-900);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
body {
  font-family: var(--pcw-font-sans);
  color: var(--pcw-body);
  background: var(--pcw-canvas);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--pcw-ink);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
}

h1 { font-size: clamp(1.9rem, 1.35rem + 2.2vw, 3rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); }

a { text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* Visible focus for keyboard users — accessibility + a real trust signal. */
:focus-visible {
  outline: 3px solid var(--pcw-teal-600);
  outline-offset: 2px;
  border-radius: 3px;
}

.pcw-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--pcw-teal-900);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--pcw-radius-sm) 0;
}
.pcw-skip-link:focus { left: 0; }

/* Images never push layout around once loaded (CLS < 0.1). */
img { max-width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.pcw-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pcw-teal-700);
}

.pcw-muted  { color: var(--pcw-muted) !important; }
.pcw-surface{ background: var(--pcw-surface); }
.pcw-canvas { background: var(--pcw-canvas); }

.pcw-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

.pcw-section-head { max-width: 46rem; }
.pcw-section-head p { color: var(--pcw-muted); margin-bottom: 0; }

/* Placeholder marker — every unverified figure carries this until sourced.
   Deliberately conspicuous so nothing ships unsourced. */
.pcw-placeholder {
  background: var(--pcw-amber-100);
  border-bottom: 1px dashed var(--pcw-amber-600);
  color: var(--pcw-amber-600);
  font-weight: 600;
  padding: 0 .2em;
  border-radius: 2px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */
.pcw-topbar {
  background: var(--pcw-teal-900);
  color: rgba(255, 255, 255, .82);
  font-size: .8125rem;
}
.pcw-topbar a { color: #fff; text-decoration: none; }
.pcw-topbar a:hover { text-decoration: underline; }

.pcw-header {
  background: var(--pcw-surface);
  border-bottom: 1px solid var(--pcw-line);
}

.pcw-brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--pcw-teal-900);
  letter-spacing: -.03em;
  text-decoration: none;
}
.pcw-brand:hover { color: var(--pcw-teal-700); }
.pcw-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--pcw-teal-700);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.pcw-brand__mark svg { width: 20px; height: 20px; fill: #fff; }
.pcw-brand__wise { color: var(--pcw-teal-600); }

.pcw-nav .nav-link {
  color: var(--pcw-ink);
  font-weight: 600;
  font-size: .9375rem;
  padding: .5rem .875rem;
  border-radius: var(--pcw-radius-sm);
}
.pcw-nav .nav-link:hover,
.pcw-nav .nav-link:focus { color: var(--pcw-teal-700); background: var(--pcw-teal-50); }
.pcw-nav .nav-link.active { color: var(--pcw-teal-700); }

.pcw-dropdown {
  border: 1px solid var(--pcw-line);
  border-radius: var(--pcw-radius);
  box-shadow: var(--pcw-shadow);
  padding: .375rem;
}
.pcw-dropdown .dropdown-item {
  border-radius: var(--pcw-radius-sm);
  padding: .5rem .75rem;
  font-size: .9375rem;
  white-space: normal;
}
.pcw-dropdown .dropdown-item:hover,
.pcw-dropdown .dropdown-item:focus { background: var(--pcw-teal-50); color: var(--pcw-teal-900); }

/* Search toggle in header */
.pcw-search-panel { border-bottom: 1px solid var(--pcw-line); background: var(--pcw-surface); }
.pcw-search-panel .form-control { border-color: var(--pcw-line); }
.pcw-search-panel .form-control:focus {
  border-color: var(--pcw-teal-600);
  box-shadow: 0 0 0 .2rem rgba(26, 138, 131, .15);
}

.pcw-btn-primary {
  background: var(--pcw-teal-700);
  border-color: var(--pcw-teal-700);
  color: #fff;
  font-weight: 600;
}
.pcw-btn-primary:hover,
.pcw-btn-primary:focus {
  background: var(--pcw-teal-800);
  border-color: var(--pcw-teal-800);
  color: #fff;
}

.pcw-btn-outline {
  border-color: var(--pcw-line);
  color: var(--pcw-ink);
  font-weight: 600;
  background: var(--pcw-surface);
}
.pcw-btn-outline:hover,
.pcw-btn-outline:focus {
  border-color: var(--pcw-teal-600);
  color: var(--pcw-teal-800);
  background: var(--pcw-teal-50);
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.pcw-hero {
  background:
    radial-gradient(1200px 400px at 15% -10%, var(--pcw-teal-50), transparent 70%),
    var(--pcw-surface);
  border-bottom: 1px solid var(--pcw-line);
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.pcw-hero h1 { margin-bottom: 1rem; }

.pcw-hero__lede {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: var(--pcw-body);
  max-width: 38rem;
}

/* Trust strip — the E-E-A-T signals, above the fold, no ads nearby. */
.pcw-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pcw-trust li {
  display: flex;
  align-items: center;
  gap: .4375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--pcw-teal-800);
}
.pcw-trust svg { width: 16px; height: 16px; fill: var(--pcw-teal-600); flex: 0 0 auto; }

/* Hero side card: the cost-estimator entry point */
.pcw-hero-card {
  background: var(--pcw-surface);
  border: 1px solid var(--pcw-line);
  border-radius: var(--pcw-radius);
  box-shadow: var(--pcw-shadow);
  padding: 1.5rem;
}
.pcw-hero-card__figure {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  font-weight: 800;
  color: var(--pcw-teal-900);
  letter-spacing: -.03em;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.pcw-card {
  background: var(--pcw-surface);
  border: 1px solid var(--pcw-line);
  border-radius: var(--pcw-radius);
  overflow: hidden;
  height: 100%;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.pcw-card:hover {
  box-shadow: var(--pcw-shadow);
  border-color: #cfdcd9;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .pcw-card, .pcw-card:hover { transition: none; transform: none; }
}

.pcw-card__media {
  position: relative;
  display: block;
  background: var(--pcw-teal-50);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.pcw-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pcw-card__body { padding: 1.125rem 1.25rem 1.375rem; }

.pcw-card__title {
  font-size: 1.0625rem;
  line-height: 1.4;
  margin-bottom: .5rem;
}
.pcw-card__title a { color: var(--pcw-ink); text-decoration: none; }
.pcw-card__title a:hover { color: var(--pcw-teal-700); text-decoration: underline; }

.pcw-card__excerpt {
  font-size: .9375rem;
  color: var(--pcw-muted);
  margin-bottom: .875rem;
}

.pcw-tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pcw-teal-800);
  background: var(--pcw-teal-100);
  border-radius: 999px;
  padding: .25rem .625rem;
  text-decoration: none;
}
a.pcw-tag:hover { background: var(--pcw-teal-600); color: #fff; }

.pcw-meta {
  font-size: .8125rem;
  color: var(--pcw-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .375rem;
}
.pcw-meta a { color: var(--pcw-muted); }
.pcw-meta__dot::before { content: "·"; margin-right: .375rem; }

/* Featured (lead) card — larger type, horizontal on desktop */
.pcw-card--lead .pcw-card__title { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.65rem); }
.pcw-card--lead .pcw-card__excerpt { font-size: 1rem; }
.pcw-card--lead .pcw-card__body { padding: 1.5rem; }
.pcw-card--lead:hover { transform: none; }  /* too large to lift without feeling loose */

/* In the horizontal lead layout the media fills the column rather than
   holding a 16:9 box, so the image and copy stay the same height. */
@media (min-width: 992px) {
  .pcw-card--lead .pcw-card__media { aspect-ratio: auto; }
  .pcw-card--lead .pcw-card__body { padding: 2rem 2.25rem; }
}

/* Pillar entry cards */
.pcw-pillar {
  display: block;
  background: var(--pcw-surface);
  border: 1px solid var(--pcw-line);
  border-radius: var(--pcw-radius);
  padding: 1.5rem;
  height: 100%;
  text-decoration: none;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.pcw-pillar:hover { box-shadow: var(--pcw-shadow); border-color: var(--pcw-teal-600); }
.pcw-pillar__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--pcw-teal-100);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.pcw-pillar__icon svg { width: 22px; height: 22px; fill: var(--pcw-teal-700); }
.pcw-pillar h3 { margin-bottom: .375rem; font-size: 1.125rem; }
.pcw-pillar p { color: var(--pcw-muted); font-size: .9375rem; margin-bottom: .75rem; }
.pcw-pillar__more { color: var(--pcw-teal-700); font-weight: 600; font-size: .875rem; }
.pcw-pillar:hover .pcw-pillar__more { text-decoration: underline; }

/* --------------------------------------------------------------------------
   7. Cost estimator widget
   -------------------------------------------------------------------------- */
.pcw-estimator {
  background: var(--pcw-surface);
  border: 1px solid var(--pcw-line);
  border-radius: var(--pcw-radius);
  box-shadow: var(--pcw-shadow-sm);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.pcw-estimator .form-label { font-weight: 600; font-size: .875rem; color: var(--pcw-ink); }
.pcw-estimator .form-select,
.pcw-estimator .form-control { border-color: var(--pcw-line); }
.pcw-estimator .form-select:focus,
.pcw-estimator .form-control:focus {
  border-color: var(--pcw-teal-600);
  box-shadow: 0 0 0 .2rem rgba(26, 138, 131, .15);
}

.pcw-estimator__result {
  background: var(--pcw-teal-50);
  border: 1px solid var(--pcw-teal-100);
  border-radius: var(--pcw-radius-sm);
  padding: 1.25rem;
}
.pcw-estimator__range {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  font-weight: 800;
  color: var(--pcw-teal-900);
  letter-spacing: -.03em;
}

/* Reserve the result area so revealing it cannot shift the page (CLS). */
.pcw-estimator__slot { min-height: 168px; }
@media (max-width: 575.98px) { .pcw-estimator__slot { min-height: 196px; } }

/* --------------------------------------------------------------------------
   7b. FAQ accordion
   -------------------------------------------------------------------------- */
.accordion {
  --bs-accordion-border-color: var(--pcw-line);
  --bs-accordion-border-radius: var(--pcw-radius);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(26, 138, 131, .15);
  --bs-accordion-active-bg: var(--pcw-teal-50);
  --bs-accordion-active-color: var(--pcw-teal-900);
  --bs-accordion-btn-color: var(--pcw-ink);
}
.accordion-button {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.45;
  padding: 1.125rem 1.25rem;
}
.accordion-button:not(.collapsed) { box-shadow: none; }
.accordion-body {
  color: var(--pcw-body);
  font-size: .9375rem;
  padding: 0 1.25rem 1.25rem;
}
.accordion-body a { font-weight: 600; white-space: nowrap; }

/* --------------------------------------------------------------------------
   7c. Article page
   -------------------------------------------------------------------------- */
.pcw-breadcrumb {
  font-size: .8125rem;
  --bs-breadcrumb-divider-color: var(--pcw-muted);
  --bs-breadcrumb-item-padding-x: .5rem;
}
.pcw-breadcrumb a { color: var(--pcw-muted); text-decoration: none; }
.pcw-breadcrumb a:hover { color: var(--pcw-teal-700); text-decoration: underline; }
.pcw-breadcrumb .breadcrumb-item.active { color: var(--pcw-ink); font-weight: 600; }

.pcw-article-head { border-bottom: 1px solid var(--pcw-line); }
.pcw-article-head h1 { margin-bottom: .875rem; }
.pcw-article-head__standfirst {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: var(--pcw-body);
}

/* Byline block — the E-E-A-T signal, kept adjacent to the title. */
.pcw-byline { display: flex; align-items: center; gap: .75rem; }
.pcw-byline__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--pcw-teal-100); object-fit: cover; flex: 0 0 auto;
}
.pcw-byline__name { font-weight: 700; color: var(--pcw-ink); font-size: .9375rem; }
.pcw-byline__name a { color: inherit; text-decoration: none; }
.pcw-byline__name a:hover { color: var(--pcw-teal-700); text-decoration: underline; }
.pcw-byline__meta { font-size: .8125rem; color: var(--pcw-muted); }

/* Prose. The reading measure is governed by the grid column this sits in
   (col-lg-8), not a max-width here — layering a 68ch cap inside an already
   narrow column just left a dead gap between the text and the sidebar. */
.pcw-prose {
  font-size: 1.0625rem;
  line-height: 1.75;
}
.pcw-prose > * + * { margin-top: 1.25rem; }
.pcw-prose h2 {
  margin-top: 2.75rem;
  margin-bottom: .875rem;
  scroll-margin-top: 6rem;   /* clears the sticky header on anchor jump */
}
.pcw-prose h3 {
  margin-top: 2rem;
  margin-bottom: .625rem;
  scroll-margin-top: 6rem;
}
.pcw-prose ul, .pcw-prose ol { padding-left: 1.25rem; }
.pcw-prose li + li { margin-top: .5rem; }
.pcw-prose a { color: var(--pcw-teal-700); }
.pcw-prose figure { margin: 2rem 0; }
.pcw-prose figcaption {
  font-size: .8125rem;
  color: var(--pcw-muted);
  margin-top: .5rem;
  text-align: center;
}
.pcw-prose blockquote {
  border-left: 3px solid var(--pcw-teal-600);
  padding: .25rem 0 .25rem 1.25rem;
  margin-left: 0;
  color: var(--pcw-ink);
  font-size: 1.125rem;
}

/* Images inside CMS article bodies (<figure class="article-image">).
   The CMS ships the original pixel dimensions (often several thousand px),
   so constrain them and keep the intrinsic ratio to avoid layout shift. */
.pcw-prose figure.article-image { margin: 2rem 0; }
.pcw-prose figure.article-image img,
.pcw-prose img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--pcw-radius-sm);
  display: block;
}

/* Lazy placeholder: hold the space and show a soft tint until the real
   image swaps in, so the page doesn't jump (CLS). */
.pcw-prose img.lazyload {
  background: var(--pcw-teal-50);
  min-height: 180px;
}
.pcw-prose img.lazyloaded {
  background: none;
  min-height: 0;
  animation: pcw-fade-in .3s ease;
}
@keyframes pcw-fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .pcw-prose img.lazyloaded { animation: none; }
}

/* Key-figure callout — where a sourced cost gets emphasis. */
.pcw-figure-callout {
  background: var(--pcw-teal-50);
  border: 1px solid var(--pcw-teal-100);
  border-radius: var(--pcw-radius);
  padding: 1.25rem 1.5rem;
}
.pcw-figure-callout__value {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  font-weight: 800;
  color: var(--pcw-teal-900);
  letter-spacing: -.03em;
  line-height: 1.2;
}

/* Cost table */
.pcw-table-wrap { overflow-x: auto; }   /* never let a table scroll the page */
.pcw-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
  min-width: 30rem;
}
.pcw-table th, .pcw-table td {
  padding: .75rem .875rem;
  border-bottom: 1px solid var(--pcw-line);
  text-align: left;
  vertical-align: top;
}
.pcw-table thead th {
  background: var(--pcw-teal-50);
  color: var(--pcw-teal-900);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--pcw-teal-100);
  white-space: nowrap;
}
.pcw-table tbody tr:hover { background: var(--pcw-canvas); }

/* Table of contents */
.pcw-toc {
  background: var(--pcw-surface);
  border: 1px solid var(--pcw-line);
  border-radius: var(--pcw-radius);
  padding: 1.25rem;
}
.pcw-toc h2 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pcw-teal-700);
  margin: 0 0 .75rem;
}
/* Nested outline: each <ol> restarts its own counter, and counters() joins the
   whole chain — so H2s read 1., 2., 3. and their H3 children read 1.1, 1.2. */
.pcw-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  font-size: .875rem;
}
.pcw-toc li { counter-increment: toc; }
.pcw-toc li + li { margin-top: .5rem; }

.pcw-toc a {
  color: var(--pcw-body);
  text-decoration: none;
  display: flex;
  gap: .5rem;
  line-height: 1.45;
}
.pcw-toc a::before {
  content: counters(toc, ".") ".";
  color: var(--pcw-muted);
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.pcw-toc a:hover { color: var(--pcw-teal-700); }

/* Child levels: indented, smaller, lighter — clearly subordinate. */
.pcw-toc ol ol {
  margin-top: .5rem;
  padding-left: .875rem;
  border-left: 1px solid var(--pcw-line);
}
.pcw-toc ol ol li { margin-top: .4375rem; }
.pcw-toc ol ol a {
  font-size: .8125rem;
  color: var(--pcw-muted);
}
.pcw-toc ol ol a:hover { color: var(--pcw-teal-700); }

/* Top-level entries carry a little more weight so the sections stand out. */
.pcw-toc > ol > li > a { font-weight: 600; color: var(--pcw-ink); }
.pcw-toc a:hover::before { color: var(--pcw-teal-600); }

@media (min-width: 992px) {
  .pcw-sidebar { position: sticky; top: 6rem; }
}

/* Latest-articles widget in the sidebar */
.pcw-widget {
  background: var(--pcw-surface);
  border: 1px solid var(--pcw-line);
  border-radius: var(--pcw-radius);
  padding: 1.25rem;
}
.pcw-widget__head {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--pcw-teal-700);
  margin: 0 0 1rem;
}
.pcw-latest { list-style: none; padding: 0; margin: 0; }
.pcw-latest > li { padding-block: .875rem; border-top: 1px solid var(--pcw-line); }
.pcw-latest > li:first-child { padding-top: 0; border-top: 0; }
.pcw-latest > li:last-child { padding-bottom: 0; }
.pcw-latest__tag {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pcw-teal-700);
}
.pcw-latest__title {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pcw-ink);
  text-decoration: none;
  margin-top: .125rem;
}
.pcw-latest__title:hover { color: var(--pcw-teal-700); }
.pcw-latest__meta { font-size: .75rem; color: var(--pcw-muted); margin-top: .25rem; }

/* Sources list — the citation trail (Part 5.1) */
.pcw-sources {
  background: var(--pcw-surface);
  border: 1px solid var(--pcw-line);
  border-radius: var(--pcw-radius);
  padding: 1.5rem;
}
.pcw-sources ol { font-size: .875rem; padding-left: 1.25rem; margin: 0; }
.pcw-sources li + li { margin-top: .625rem; }
.pcw-sources a { word-break: break-word; }

/* Review/update stamp — freshness signal for YMYL cost data */
.pcw-stamp {
  display: inline-flex;
  align-items: center;
  gap: .4375rem;
  background: var(--pcw-teal-50);
  border: 1px solid var(--pcw-teal-100);
  border-radius: 999px;
  padding: .3125rem .75rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--pcw-teal-800);
}
.pcw-stamp svg { width: 14px; height: 14px; fill: var(--pcw-teal-600); }

/* Share row */
.pcw-share { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pcw-share__btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--pcw-line);
  background: var(--pcw-surface);
  display: grid;
  place-items: center;
}
.pcw-share__btn svg { width: 16px; height: 16px; fill: var(--pcw-body); }
.pcw-share__btn:hover { border-color: var(--pcw-teal-600); background: var(--pcw-teal-50); }
.pcw-share__btn:hover svg { fill: var(--pcw-teal-700); }

/* --------------------------------------------------------------------------
   7d. Error page
   -------------------------------------------------------------------------- */
.pcw-error-body main { display: flex; align-items: center; min-height: 60vh; }
.pcw-error-body h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }

/* --------------------------------------------------------------------------
   8. Disclaimer / notice
   -------------------------------------------------------------------------- */
.pcw-notice {
  background: var(--pcw-warn-bg);
  border: 1px solid var(--pcw-warn-line);
  border-left-width: 4px;
  border-radius: var(--pcw-radius-sm);
  padding: 1rem 1.125rem;
  font-size: .875rem;
  color: #5c4611;
}
.pcw-notice strong { color: #3f300a; }
.pcw-notice a { color: #6b4d05; }

/* --------------------------------------------------------------------------
   9. Ad slots
   AdSense policy: clearly labelled, never adjacent to nav/buttons,
   fixed reserved height so late-loading ads never shift content.

   Unused by the homepage on purpose — that page is almost entirely links and
   cards, so no ad position there is far enough from a tappable control to be
   safe. These styles are for article and category pages, where running prose
   gives an ad real clearance.
   -------------------------------------------------------------------------- */
.pcw-ad {
  text-align: center;
}
.pcw-ad__label {
  display: block;
  font-size: .6875rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #9aa8a5;
  margin-bottom: .375rem;
}
.pcw-ad__slot {
  background: #f4f7f6;
  border: 1px dashed #d8e1df;
  border-radius: var(--pcw-radius-sm);
  display: grid;
  place-items: center;
  color: #a9b6b3;
  font-size: .8125rem;
  min-height: 100px;          /* mobile reservation */
  margin-inline: auto;
}
@media (min-width: 768px) {
  .pcw-ad__slot { min-height: 280px; max-width: 970px; }
}
/* Keep clear space on BOTH sides of an ad. A tappable control sitting flush
   against a banner is the mis-click layout AdSense penalises, and thumbs on
   mobile are the least precise — so the gap is widest there. */
.pcw-ad + * { margin-top: 1.5rem; }
.pcw-ad { margin-block: clamp(2.5rem, 6vw, 3.5rem); }

/* --------------------------------------------------------------------------
   10. Newsletter
   -------------------------------------------------------------------------- */
.pcw-newsletter {
  background: linear-gradient(135deg, var(--pcw-teal-900), var(--pcw-teal-700));
  border-radius: var(--pcw-radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  color: rgba(255, 255, 255, .88);
}
.pcw-newsletter h2 { color: #fff; }
.pcw-newsletter .form-control { border: 1px solid transparent; padding: .625rem .875rem; }
.pcw-newsletter .form-control:focus { box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .3); }
.pcw-newsletter__btn {
  background: #fff;
  color: var(--pcw-teal-900);
  font-weight: 700;
  border: 1px solid #fff;
}
.pcw-newsletter__btn:hover { background: var(--pcw-teal-50); color: var(--pcw-teal-900); }
.pcw-newsletter__fine { font-size: .8125rem; color: rgba(255, 255, 255, .7); }
.pcw-newsletter__fine a { color: #fff; }

/* --------------------------------------------------------------------------
   11. Author / editorial block
   -------------------------------------------------------------------------- */
.pcw-author {
  background: var(--pcw-surface);
  border: 1px solid var(--pcw-line);
  border-radius: var(--pcw-radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.pcw-author__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pcw-teal-100);
  object-fit: cover;
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.pcw-footer {
  background: var(--pcw-teal-900);
  color: rgba(255, 255, 255, .72);
  font-size: .9375rem;
}
.pcw-footer h4 {
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.pcw-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.pcw-footer a:hover { color: #fff; text-decoration: underline; }
.pcw-footer .pcw-brand { color: #fff; }
.pcw-footer .pcw-brand__mark { background: rgba(255, 255, 255, .14); }
.pcw-footer__list { list-style: none; padding: 0; margin: 0; }
.pcw-footer__list li + li { margin-top: .5rem; }
.pcw-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .58);
}
.pcw-footer__disclaimer {
  background: rgba(0, 0, 0, .18);
  border-radius: var(--pcw-radius-sm);
  padding: 1rem 1.125rem;
  font-size: .8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .66);
}

/* --------------------------------------------------------------------------
   13. Cookie consent banner
   Bottom-anchored and compact: never an interstitial over content on entry
   (Google Intrusive Interstitials). Reject is equal in weight to Accept (GDPR).
   -------------------------------------------------------------------------- */
.pcw-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1050;
  background: var(--pcw-surface);
  border-top: 1px solid var(--pcw-line);
  box-shadow: 0 -6px 24px rgba(11, 58, 60, .1);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform .25s ease;
}
.pcw-cookie.is-visible { transform: translateY(0); }
.pcw-cookie[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pcw-cookie { transition: none; }
}
.pcw-cookie__text { font-size: .875rem; color: var(--pcw-body); margin: 0; }

/* --------------------------------------------------------------------------
   14. Back to top
   -------------------------------------------------------------------------- */
.pcw-totop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1040;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pcw-line);
  background: var(--pcw-surface);
  box-shadow: var(--pcw-shadow);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.pcw-totop.is-visible { opacity: 1; visibility: visible; }
.pcw-totop svg { width: 18px; height: 18px; fill: var(--pcw-teal-800); }
@media (prefers-reduced-motion: reduce) { .pcw-totop { transition: none; } }
