/* ==========================================================================
   BizzPress — article layer (assets/css/bp-article.css)
   The article page body (article.php): breadcrumb strip, the .bt-article card (category tags, title,
   standfirst, byline + share circles, hero figure, body copy with the inline ad and the "Also Read" box,
   tags row, share row, author box, related grid) and the reader comments (includes/partials/comments.php).
   Tokens and shared components (.bt-card, .bt-tag, .bt-cat, .bt-chip, .bt-media, .bt-play, .bt-grid-3,
   .bt-ad, .bt-btn, .bt-input, .bt-breadcrumb) come from bizzpress.css — docs/design-spec.md §1, §2, §6.
   Only white is written literally (text on cyan circles); everything else is a token.
   ========================================================================== */

/* ---- 0. Page frame + preview strip ------------------------------------------------------------ */
.bt-article-wrap { margin: 6px auto 0; }
.bt-article-wrap > .bt-breadcrumb { padding: 10px 0 12px; }
.bt-article-wrap .bt-breadcrumb .cur { flex: 0 1 auto; min-width: 0; }
.bt-breaking-note { padding: 9px 0; background: var(--bt-down-bg); color: var(--bt-down); border-bottom: 1px solid var(--bt-down-line); font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; }
.bt-breaking-note a { color: var(--bt-down); text-decoration: underline; }
.bt-breaking-note a:hover { color: var(--bt-ink); }

/* ---- 1. Article card: tags, title, standfirst ------------------------------------------------- */
.bt-article { padding: 20px 24px 24px; }
.bt-article__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bt-article__title { margin: 0 0 10px; font-size: 32px; font-weight: 700; line-height: 42px; color: var(--bt-ink); overflow-wrap: anywhere; }
.bt-article__sub { margin: 0 0 16px; font-size: 16px; font-weight: 400; line-height: 24px; color: var(--bt-ink); }

/* ---- 2. Byline + share circles ---------------------------------------------------------------- */
.bt-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--bt-line); border-bottom: 1px solid var(--bt-line); }
.bt-byline__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bt-byline__av { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--bt-cyan); color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.bt-byline__av img { width: 100%; height: 100%; object-fit: cover; }
.bt-byline__av:hover, .bt-author__av:hover { color: #fff; }   /* a:hover in bizzpress.css would turn the white initial link-blue */
.bt-byline__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.3; }
.bt-byline__name { font-size: 14px; font-weight: 600; color: var(--bt-ink); }
.bt-byline__name a:hover { color: var(--bt-link); }
.bt-byline__src { font-weight: 400; color: var(--bt-muted); }
.bt-byline__date { font-size: 12px; color: var(--bt-grey); }

/* .bt-share also carries the legacy .card-share class (main.js share counter), so these rules out-rank the
   small-icon styles dynamic.css still has for .card-share .cs* */
.bt-share { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.bt-share.card-share .cs { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--bt-cyan-soft); color: var(--bt-ink); line-height: 0; cursor: pointer; opacity: 1; transition: background-color .15s, color .15s; }
.bt-share.card-share .cs svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bt-share.card-share .cs:hover, .bt-share.card-share .cs:focus-visible { background: var(--bt-cyan); color: #fff; transform: none; opacity: 1; }
.bt-share.card-share .cs.copied { background: var(--bt-up); color: #fff; }

/* ---- 3. Hero figure + video link -------------------------------------------------------------- */
.bt-article__figure { margin: 18px 0 0; }
.bt-article__media { border-radius: 0; }
.bt-article__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
div.bt-article__media:hover img { transform: none; }
.bt-article__figure figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--bt-grey); text-align: left; }
.bt-article__watch { margin: 14px 0 0; }
.bt-article__watch .bt-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- 4. Body copy (editor HTML) -------------------------------------------------------------- */
.bt-article__body { margin-top: 22px; font-size: 18px; line-height: 28px; color: var(--bt-ink); overflow-wrap: break-word; }
.bt-article__body > :first-child { margin-top: 0; }
.bt-article__body p { margin: 0 0 18px; }
.bt-article__body h2 { margin: 28px 0 12px; font-size: 22px; font-weight: 700; line-height: 1.35; }
.bt-article__body h3 { margin: 24px 0 10px; font-size: 19px; font-weight: 700; line-height: 1.4; }
.bt-article__body h4 { margin: 20px 0 8px; font-size: 17px; font-weight: 700; line-height: 1.4; }
.bt-article__body a { color: var(--bt-link); text-decoration: underline; text-underline-offset: 2px; }
.bt-article__body a:hover { color: var(--bt-cyan); }
.bt-article__body ul, .bt-article__body ol { margin: 0 0 18px; padding-left: 26px; font-size: 18px; }
.bt-article__body ul { list-style: disc; }      /* style.css resets ul to list-style:none */
.bt-article__body ol { list-style: decimal; }
.bt-article__body ul ul { list-style: circle; }
.bt-article__body li { margin-bottom: 8px; }
.bt-article__body li > p { margin-bottom: 6px; }
.bt-article__body blockquote:not([class]) { margin: 22px 0; padding: 14px 18px; border-left: 4px solid var(--bt-cyan); background: var(--bt-cyan-soft); font-size: 18px; font-weight: 500; font-style: italic; line-height: 1.6; color: var(--bt-ink); }
.bt-article__body blockquote:not([class]) p { margin: 0; }
.bt-article__body blockquote:not([class]) p + p { margin-top: 10px; }
.bt-article__body hr { margin: 24px 0; border: 0; border-top: 1px solid var(--bt-line); }
.bt-article__body img { display: block; max-width: 100%; height: auto; margin: 18px 0; }
.bt-article__body figure { margin: 22px 0; }
.bt-article__body figure img { margin: 0; }
.bt-article__body figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--bt-grey); text-align: center; }
.bt-article__body figure.image { display: table; max-width: 100%; margin: 22px auto; }
.bt-article__body figure.image img { display: block; margin: 0; }
.bt-article__body figure.image-style-side, .bt-article__body figure.image-style-align-right { float: right; max-width: 46%; margin: 6px 0 16px 22px; }
.bt-article__body figure.image-style-align-left { float: left; max-width: 46%; margin: 6px 22px 16px 0; }
.bt-article__body figure.image-style-block, .bt-article__body figure.image-style-align-center { margin-left: auto; margin-right: auto; }
.bt-article__body .image_resized { max-width: 100%; }
.bt-article__body .image_resized img { width: 100%; }
.bt-article__body::after { content: ""; display: block; clear: both; }
.bt-article__body .raw-html-embed, .bt-article__body figure.media { max-width: 720px; margin: 22px auto; text-align: center; }
.bt-article__body iframe { max-width: 100%; border: 0; }
.bt-article__body iframe[src*="youtube.com"], .bt-article__body iframe[src*="youtube-nocookie.com"], .bt-article__body iframe[src*="youtu.be"],
.bt-article__body iframe[src*="player.vimeo.com"], .bt-article__body iframe[src*="dailymotion.com"] { width: 100%; max-width: 720px; aspect-ratio: 16 / 9; height: auto; }
.bt-article__body table { display: block; width: max-content; max-width: 100%; margin: 0 0 20px; overflow-x: auto; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.bt-article__body th, .bt-article__body td { padding: 8px 12px; border: 1px solid var(--bt-line); text-align: left; vertical-align: top; }
.bt-article__body th { background: var(--bt-cyan-soft-2); font-weight: 600; }
.bt-article__body pre { overflow-x: auto; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--bt-line); font-size: 14px; line-height: 1.6; }
.bt-article__body .bt-ad--inline { margin: 22px 0; }

/* ---- 5. "Also Read" box ------------------------------------------------------------------------ */
.bt-alsoread { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 22px; padding: 14px 18px; background: var(--bt-cyan-soft); border-left: 4px solid var(--bt-cyan); }
.bt-alsoread__lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-ink); white-space: nowrap; }
.bt-article__body .bt-alsoread a { font-size: 16px; font-weight: 600; line-height: 1.45; color: var(--bt-ink); text-decoration: none; }
.bt-article__body .bt-alsoread a:hover { color: var(--bt-link); text-decoration: underline; }

/* ---- 6. Tags row + share row ------------------------------------------------------------------- */
.bt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 14px 0; border-top: 1px solid var(--bt-line); }
.bt-tags__lbl { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-muted); }
.bt-share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid var(--bt-line); border-bottom: 1px solid var(--bt-line); }
.bt-share-row__lbl { font-size: 14px; font-weight: 700; color: var(--bt-ink); }

/* ---- 7. Author box ---------------------------------------------------------------------------- */
.bt-author { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 20px; padding: 16px 18px; background: var(--bt-cyan-soft-2); border: 1px solid var(--bt-line); }
.bt-author__av { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--bt-cyan); color: #fff; font-size: 22px; font-weight: 700; line-height: 1; }
.bt-author__av img { width: 100%; height: 100%; object-fit: cover; }
.bt-author__name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--bt-ink); }
.bt-author__name a:hover { color: var(--bt-link); }
.bt-author__role { margin: 2px 0 0; font-size: 13px; color: var(--bt-muted); }
.bt-author__bio { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: var(--bt-ink); }
.bt-author__more { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--bt-link); }
.bt-author__more svg { width: 14px; height: 14px; stroke-width: 2.2; }
.bt-author__more:hover { text-decoration: underline; }

/* ---- 8. Related news -------------------------------------------------------------------------- */
.bt-related { margin-top: 28px; }
.bt-related .bt-chip-row { margin-bottom: 16px; }
.bt-related__card { min-width: 0; }
.bt-related__card .bt-cat { display: inline-block; margin: 10px 0 4px; }
.bt-related__card h3 { margin-top: 10px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.bt-related__card .bt-cat + h3 { margin-top: 0; }
.bt-related__card h3 a:hover { color: var(--bt-link); }
.bt-related__card .bt-play { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.bt-related__card .bt-play svg { width: 16px; height: 16px; }

/* ---- 9. Comments (includes/partials/comments.php) --------------------------------------------- */
.bt-comments { margin-top: 28px; }
.bt-comments .bt-chip-row { margin-bottom: 16px; }
.bt-comments__note { margin: 0 0 14px; padding: 10px 14px; border: 1px solid transparent; font-size: 14px; line-height: 1.5; }
.bt-comments__note p { margin: 0; }
.bt-comments__note p + p { margin-top: 4px; }
.bt-comments__note--ok { background: var(--bt-up-bg); color: var(--bt-up); border-color: var(--bt-up-bg); }
.bt-comments__note--err { background: var(--bt-down-bg); color: var(--bt-down); border-color: var(--bt-down-line); }
.bt-comments__form { position: relative; display: flex; flex-direction: column; gap: 12px; }
.bt-comments__body { min-height: 110px; resize: vertical; line-height: 1.5; }
.bt-comments__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bt-comments__hp { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.bt-comments__actions { display: flex; align-items: center; }
.bt-comments__empty { margin: 18px 0 0; font-size: 14px; color: var(--bt-muted); }
.bt-comments__list { list-style: none; margin: 18px 0 0; padding: 0; }
.bt-comment { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-top: 1px solid var(--bt-line); }
.bt-comment__av { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--bt-cyan-soft); color: var(--bt-link); font-size: 15px; font-weight: 700; line-height: 1; }
.bt-comment__txt { flex: 1; min-width: 0; }
.bt-comment__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.bt-comment__name { font-size: 14px; font-weight: 600; color: var(--bt-ink); }
.bt-comment__time { font-size: 12px; color: var(--bt-grey); }
.bt-comment p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--bt-ink); overflow-wrap: anywhere; }

/* ---- 10. Mobile ---------------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .bt-article { padding: 16px 14px 20px; }
  .bt-article__title { font-size: 26px; line-height: 34px; }
  .bt-byline { align-items: flex-start; }
  .bt-byline .bt-share { width: 100%; }
  .bt-author { grid-template-columns: 48px minmax(0, 1fr); padding: 14px; }
  .bt-author__av { width: 48px; height: 48px; font-size: 20px; }
  .bt-comments__row { grid-template-columns: minmax(0, 1fr); }
  .bt-article__body table { font-size: 14px; }
  .bt-article__body figure.image-style-side, .bt-article__body figure.image-style-align-left, .bt-article__body figure.image-style-align-right { float: none; max-width: 100%; margin: 18px auto; }
}

/* ---- 11. Motion preferences --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) { .bt-share.card-share .cs { transition: none; } }
