/*
 * Articles section (archive + individual article pages) -- continuous
 * document-flow layout, same base pattern as faq.css/about.css: reuses the
 * site's nav/hotline/footer/bg-fixed directly. Only the scaffolding and the
 * components unique to this section live here.
 */
html, body.fpv-body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}
.fpv-main { display: block; }

.fpv-inner { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.fpv-header { max-width: 42rem; margin: 0 auto; text-align: center; }

.fpv-section { padding: 4rem 0; position: relative; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--pc-ease), transform 0.8s var(--pc-ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* --- Hero -- text over the shared bg-fixed wave background, no photo. --- */
.fpv-hero {
  position: relative; min-height: 46vh; min-height: 46svh;
  display: flex; align-items: center; justify-content: center;
  padding: 9rem 1.5rem 2.5rem; text-align: center;
}
.fpv-hero__content { position: relative; z-index: 2; max-width: 46rem; }
.fpv-hero__content .copy { margin-left: auto; margin-right: auto; }

/* --- Breadcrumbs -- visible trail + JSON-LD BreadcrumbList in the page head
   handles the SEO side. Sits just under the hero, above the main content. --- */
.breadcrumb {
  max-width: 72rem; margin: 2.5rem auto; padding: 0 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  list-style: none; font-size: 0.85rem; color: var(--pc-ink-soft);
}
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb a { color: var(--pc-ink-soft); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { color: var(--pc-baby-blue-deep); }
.breadcrumb li:last-child { color: var(--pc-ink); font-weight: 600; }
.breadcrumb li:last-child a { color: var(--pc-ink); pointer-events: none; }
.breadcrumb .breadcrumb__sep { color: var(--pc-ink-soft); opacity: 0.5; }

/* =========================================================================
   Shared "pl-" component library (article cards, search/filter bar,
   pagination, sidebar TOC, checklist, callouts, CTA banner) used by both
   articles/index.html (archive) and each individual article page.
   ========================================================================= */
:root {
  --pl-blue: #4169e1;
  --pl-blue-dark: #2447b8;
  --pl-blue-soft: #eef3ff;
  --pl-blue-pale: #f7f9ff;
  --pl-muted: #5d6472;
  --pl-border: #dfe5f2;
  --pl-shadow: 0 18px 50px rgba(31, 52, 102, 0.10);
  --pl-radius-lg: 28px;
  --pl-radius-md: 18px;
  --pl-radius-sm: 12px;
  --pl-reading: 760px;
}

/* --- Archive: search + category filter bar --- */
.pl-controls {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: 1.1rem; border: 1px solid var(--pl-border); border-radius: var(--pl-radius-md);
  background: rgba(255, 255, 255, 0.9); box-shadow: var(--pl-shadow); margin-bottom: 1.5rem;
}
.pl-search {
  display: flex; align-items: center; gap: 0.75rem; min-width: 0; padding: 0 1rem;
  border: 1px solid var(--pl-border); border-radius: 999px; background: #fff;
}
.pl-search svg { width: 20px; min-width: 20px; height: 20px; color: #798092; }
.pl-search input {
  width: 100%; height: 50px; border: 0; outline: 0; background: transparent;
  color: var(--pc-ink); font: inherit; font-size: 15px;
}
.pl-search input::placeholder { color: #8a91a0; }
.pl-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; }
.pl-filter {
  min-height: 42px; padding: 0.55rem 0.9rem; border: 1px solid var(--pl-border); border-radius: 999px;
  background: #fff; color: #4c5362; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.pl-filter.is-active, .pl-filter:hover { border-color: var(--pl-blue); background: var(--pl-blue); color: #fff; }

/* --- Archive: section spacing --- */
.pl-controls-wrap { padding-bottom: 1.5rem; }
.pl-featured-wrap { padding-bottom: 4rem; }
.pl-section { padding-bottom: 4rem; }

/* --- Archive: featured article --- */
.pl-featured {
  display: grid; grid-template-columns: 1.08fr 0.92fr; overflow: hidden;
  border: 1px solid var(--pl-border); border-radius: var(--pl-radius-lg); background: #fff; box-shadow: var(--pl-shadow);
}
.pl-featured-media {
  position: relative; min-height: 380px; overflow: hidden;
  background-color: var(--pl-blue-soft);
  background-image: linear-gradient(135deg, rgba(65, 105, 225, .12), rgba(65, 105, 225, .03));
}
.pl-featured-media img, .pl-card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.pl-featured-content { display: flex; flex-direction: column; justify-content: center; padding: 2.75rem; }
.pl-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin: 0 0 1.1rem; color: #747b8a; font-size: 13px; font-weight: 600; }
.pl-badge {
  display: inline-flex; width: fit-content; margin: 0 0 1rem; padding: 0.5rem 0.75rem; border-radius: 999px;
  background: var(--pl-blue-soft); color: var(--pl-blue-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.pl-featured h2 { margin: 0 0 1.1rem; font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.pl-featured p { margin: 0 0 1.5rem; color: var(--pl-muted); font-size: 16px; line-height: 1.7; }
.pl-read-link { display: inline-flex; width: fit-content; align-items: center; gap: 0.5rem; color: var(--pc-baby-blue-deep); font-size: 15px; font-weight: 800; text-decoration: none; }
.pl-read-link:after { content: "→"; transition: transform 0.2s ease; }
.pl-read-link:hover:after { transform: translateX(4px); }
.pl-read-link.pl-read-link--pending { color: var(--pl-muted); opacity: 0.65; cursor: default; }
.pl-read-link.pl-read-link--pending:after { content: none; }

/* --- Archive: card grid --- */
.pl-section-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-end; margin-bottom: 1.75rem; }
.pl-section-head h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.16; letter-spacing: -0.03em; }
.pl-section-head p { max-width: 32rem; margin: 0; color: var(--pl-muted); font-size: 15px; line-height: 1.65; }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.pl-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md); background: #fff; box-shadow: 0 12px 34px rgba(31, 52, 102, .07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pl-card:hover { transform: translateY(-4px); border-color: #bdcaf0; box-shadow: 0 18px 44px rgba(31, 52, 102, .12); }
.pl-card-media {
  position: relative; min-height: 190px; background: linear-gradient(135deg, #eef3ff, #dfe8ff);
  background-size: cover; background-position: center; overflow: hidden;
}
.pl-card-media:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17, 25, 46, .08)); }
.pl-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.pl-card h3 { margin: 0 0 0.75rem; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.pl-card p { margin: 0 0 1.2rem; color: var(--pl-muted); font-size: 15px; line-height: 1.65; }
.pl-card .pl-read-link { margin-top: auto; }
.pl-empty { display: none; padding: 2.4rem; border: 1px dashed #cfd8eb; border-radius: var(--pl-radius-md); background: var(--pl-blue-pale); color: var(--pl-muted); text-align: center; }
.pl-empty.is-visible { display: block; }
.pl-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pl-page-btn {
  display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--pl-border);
  border-radius: 50%; background: #fff; color: #4d5564; font-size: 14px; font-weight: 700; text-decoration: none;
}
.pl-page-btn.is-active, .pl-page-btn:hover { border-color: var(--pl-blue); background: var(--pl-blue); color: #fff; }

/* --- Shared: closing CTA banner --- */
.pl-newsletter, .pl-cta {
  padding: 2.6rem; border-radius: var(--pl-radius-lg); color: #fff; box-shadow: 0 22px 60px rgba(36, 71, 184, .25);
  background: radial-gradient(circle at top right, rgba(255, 255, 255, .22), transparent 15rem), linear-gradient(135deg, #2447b8, #4169e1);
}
.pl-cta {
  margin-top: 0; box-shadow: 0 22px 60px rgba(64, 183, 255, .35);
  background: radial-gradient(circle at top right, rgba(255, 255, 255, .22), transparent 15rem), linear-gradient(135deg, #40b7ff, #8fdcff);
}
.pl-newsletter h2, .pl-cta h2 { max-width: 44rem; margin: 0 0 0.9rem; color: #fff; font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.16; letter-spacing: -0.03em; }
.pl-newsletter p, .pl-cta p { max-width: 44rem; margin: 0; color: rgba(255, 255, 255, .9); font-size: 16px; line-height: 1.7; }
.pl-newsletter-actions, .pl-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.pl-button {
  display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0.8rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, .42); border-radius: 999px; background: transparent; color: #fff;
  font-size: 15px; font-weight: 700; text-decoration: none; transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.pl-button:hover { transform: translateY(-2px); background: #fff; color: var(--pl-blue-dark); }
.pl-button-primary { background: #fff; color: var(--pl-blue-dark); }
.pl-button-primary:hover { background: #f4f6ff; }

/* =========================================================================
   Individual article page
   ========================================================================= */
.pl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 3.25rem; align-items: start; padding-top: 3rem; padding-bottom: 5rem; }
.pl-content { min-width: 0; }

.pl-intro-card {
  margin-bottom: 3rem; padding: 2rem; border: 1px solid var(--pl-border); border-radius: var(--pl-radius-lg);
  background: rgba(255, 255, 255, .92); box-shadow: var(--pl-shadow);
}
.pl-intro-card p { max-width: var(--pl-reading); }
.pl-intro-card p:last-child { margin-bottom: 0; }

.pl-article-section { scroll-margin-top: 6.5rem; margin-top: 4rem; }
.pl-article-section:first-of-type { margin-top: 0; }
.pl-kicker { margin: 0 0 0.6rem; color: var(--pl-blue); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.pl-article-section h2 { margin: 0 0 1.3rem; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; letter-spacing: -0.03em; }
.pl-article-section h3 { margin: 2rem 0 0.85rem; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.3; letter-spacing: -0.015em; }
.pl-article-section p { max-width: var(--pl-reading); margin: 0 0 1.2rem; color: #343a47; font-size: 17px; line-height: 1.75; }
.pl-article-section ul, .pl-article-section ol { max-width: var(--pl-reading); margin: 1.3rem 0 1.6rem; padding-left: 1.4rem; }
.pl-article-section li { margin-bottom: 0.6rem; color: #343a47; font-size: 17px; }
.pl-article-section li::marker { color: var(--pl-blue); font-weight: 800; }

.pl-callout { max-width: var(--pl-reading); margin: 2rem 0; padding: 1.75rem; border: 1px solid #d8e1fb; border-radius: var(--pl-radius-md); background: linear-gradient(135deg, #f7f9ff, #eef3ff); }
.pl-callout h3 { margin-top: 0; }
.pl-callout p:last-child { margin-bottom: 0; }

/* --- Article figures: generated photography, comparisons and diagrams.
   .pl-figure-labels renders the label set for diagram-style images that
   were deliberately generated text-free, as pill badges under the image. --- */
.pl-figure { margin: 2rem 0 2.25rem; }
.pl-figure img { width: 100%; height: auto; border-radius: var(--pl-radius-md); display: block; border: 1px solid #eef1f7; }
.pl-figure figcaption { margin-top: 0.85rem; font-size: 15px; line-height: 1.75; color: #6b7280; text-align: center; }
.pl-figure-labels { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.6rem; margin-top: 0.9rem; }
.pl-figure-labels span { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; color: var(--pl-blue); background: #eef3ff; padding: 0.35rem 0.85rem; border-radius: 999px; }

/* --- Image placeholder: stands in for a section image before the real
   asset is produced. Keeps the image's real aspect ratio (set inline per
   instance) so layout doesn't shift once the placeholder is swapped for a
   real <img>, and surfaces its intended slug/alt text for that later pass. --- */
.pl-image-placeholder { width: 100%; border-radius: var(--pl-radius-md); border: 1.5px dashed var(--pl-border); background: var(--pl-blue-soft); display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; }
.pl-image-placeholder__label { font-size: 12.5px; font-weight: 700; color: #6b7280; line-height: 1.6; max-width: 26rem; }
.pl-image-placeholder__label code { display: block; margin-top: 0.35rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--pl-blue-dark); word-break: break-all; }

/* --- Contextual internal links -- underline weight makes in-paragraph links
   to sibling/child/parent articles visually distinct from a plain citation
   link, without needing a differently-colored link scheme. --- */
.context-link, .context-link:visited { color: var(--pl-blue); font-weight: 700; border-bottom: 2px solid rgba(65, 105, 225, .25); text-decoration: none; }
.context-link:hover { border-bottom-color: var(--pl-blue); text-decoration: none; }
.context-link--pending { color: var(--pc-ink); border-bottom: none; opacity: 0.55; cursor: default; }

/* --- Upward link -- callout back to the parent hub, placed near the top of
   the article so both readers and crawlers see the hub relationship early. --- */
.pl-parent-link {
  max-width: var(--pl-reading); margin: 0 0 2.5rem; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1rem;
  border-left: 4px solid var(--pl-blue); border-radius: var(--pl-radius-sm); background: var(--pl-blue-soft);
}
.pl-parent-link svg { flex: none; color: var(--pl-blue); }
.pl-parent-link p { margin: 0; font-size: 15px; line-height: 1.55; }
.pl-parent-link a { font-weight: 800; }

/* --- Sidebar: related sibling guides --- */
.pl-related-box { margin-top: 1.75rem; padding: 1.1rem; border-radius: 14px; background: var(--pc-baby-blue-deep); }
.pl-related-box h2 { color: #fff; }
.pl-related-list { margin: 0; padding: 0; list-style: none; }
.pl-related-list li { padding: 0.7rem 0; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.pl-related-list li:last-child { border-bottom: 0; }
.pl-related-list a { display: block; color: var(--pc-ink); font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.4; }
.pl-related-list a:hover { color: #fff; }
.pl-related-pending { display: block; color: var(--pc-ink); font-size: 14px; font-weight: 700; line-height: 1.4; opacity: 0.55; cursor: default; }

/* --- Bottom "continue reading" section -- reuses the archive's .pl-grid /
   .pl-card components directly so the two pages stay visually consistent. --- */
.pl-continue { margin-top: 4rem; }
.pl-continue h2 { margin: 0 0 1.5rem; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.18; letter-spacing: -0.03em; }
.pl-card-kicker { display: inline-block; margin-bottom: 0.6rem; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pl-blue); }

.pl-service-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; max-width: 860px; margin: 1.75rem 0; padding: 0; list-style: none; }
.pl-service-links a {
  display: flex; min-height: 100px; height: 100%; align-items: flex-end; padding: 1.25rem; border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-md); background: #fff; color: var(--pc-ink); font-weight: 700; line-height: 1.35; text-decoration: none;
  box-shadow: 0 12px 30px rgba(28, 45, 84, .07); transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.pl-service-links a:hover { transform: translateY(-3px); border-color: #b8c8f6; color: var(--pl-blue-dark); box-shadow: 0 16px 38px rgba(28, 45, 84, .11); }

.pl-checklist { display: grid; gap: 0.8rem; max-width: 860px; margin-top: 1.75rem; }
.pl-check-item {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 0.85rem; align-items: start; padding: 1.1rem 1.25rem;
  border: 1px solid var(--pl-border); border-radius: var(--pl-radius-sm); background: #fff; cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.pl-check-item:hover { transform: translateY(-1px); border-color: #bdcaf0; background: #fbfcff; }
.pl-check-item input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--pl-blue); }
.pl-check-item span { color: #343a47; font-size: 16px; line-height: 1.55; }

.pl-faq { display: grid; gap: 0.8rem; max-width: 860px; margin-top: 1.75rem; }
.pl-faq details { border: 1px solid var(--pl-border); border-radius: var(--pl-radius-sm); background: #fff; overflow: clip; }
.pl-faq summary { position: relative; padding: 1.2rem 3.4rem 1.2rem 1.3rem; cursor: pointer; color: var(--pc-ink); font-size: 16px; font-weight: 700; line-height: 1.45; list-style: none; }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after {
  content: "+"; position: absolute; top: 50%; right: 1.3rem; width: 26px; height: 26px; transform: translateY(-50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--pl-blue-soft); color: var(--pl-blue); font-size: 18px; line-height: 1;
}
.pl-faq details[open] summary::after { content: "\2013"; }
.pl-faq-answer { padding: 0 1.3rem 1.3rem; }
.pl-faq-answer p:last-child { margin-bottom: 0; }

.pl-disclaimer { max-width: var(--pl-reading); margin-top: 1.75rem; padding: 1.1rem 1.25rem; border-left: 4px solid var(--pl-blue); background: #f8f9fc; color: #555d6c; font-size: 14px; line-height: 1.65; }

.pl-back-top {
  position: fixed; right: 1.4rem; bottom: 5.5rem; z-index: 20; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: #000; color: #fff; font-size: 20px; cursor: pointer; box-shadow: 0 14px 34px rgba(0, 0, 0, .30);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease;
}
.pl-back-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.pl-sidebar {
  position: sticky; top: 6.5rem; padding: 1.5rem; border: 1px solid var(--pl-border); border-radius: var(--pl-radius-md);
  background: rgba(255, 255, 255, .94); box-shadow: 0 14px 40px rgba(35, 53, 94, .08); backdrop-filter: blur(16px);
}
.pl-sidebar h2 { margin: 0 0 1rem; font-size: 18px; line-height: 1.3; }
.pl-toc { margin: 0; padding: 0; list-style: none; }
.pl-toc a { display: block; padding: 0.55rem 0; border-bottom: 1px solid #edf0f6; color: #4b5362; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.pl-toc li:last-child a { border-bottom: 0; }
.pl-toc a:hover, .pl-toc a.is-active { color: var(--pl-blue); }
.pl-sidebar-help { margin-top: 1.4rem; padding: 1.1rem; border-radius: 14px; background: var(--pl-blue-soft); }
.pl-sidebar-help strong { display: block; margin-bottom: 0.4rem; font-size: 15px; }
.pl-sidebar-help p { margin: 0 0 0.75rem; color: #515867; font-size: 13px; line-height: 1.55; }
.pl-sidebar-help a { font-size: 14px; font-weight: 800; color: var(--pl-blue-dark); }

@media (max-width: 980px) {
  .pl-controls { grid-template-columns: 1fr; }
  .pl-categories { justify-content: flex-start; }
  .pl-featured { grid-template-columns: 1fr; }
  .pl-featured-media { min-height: 300px; }
  .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pl-layout { grid-template-columns: 1fr; gap: 0; }
  .pl-sidebar { position: static; order: -1; margin-bottom: 2.75rem; }
  .pl-toc { columns: 2; column-gap: 1.75rem; }
  .pl-toc li { break-inside: avoid; }
}

@media (max-width: 700px) {
  .pl-featured-content, .pl-newsletter, .pl-cta { padding: 1.5rem; }
  .pl-featured-media { min-height: 220px; }
  .pl-grid { grid-template-columns: 1fr; }
  .pl-section-head { display: block; }
  .pl-section-head p { margin-top: 0.75rem; }
  .pl-newsletter-actions, .pl-cta-actions { display: grid; }
  .pl-button { width: 100%; }

  .pl-intro-card { padding: 1.5rem; border-radius: 20px; }
  .pl-article-section { margin-top: 2.75rem; }
  .pl-service-links { grid-template-columns: 1fr; }
  .pl-service-links a { min-height: 84px; }
  .pl-toc { columns: 1; }
  .pl-callout { padding: 1.5rem; border-radius: 20px; }
  .pl-back-top { right: 1rem; bottom: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-back-top { transition: none; }
}
