/*
Theme Name: Ranking Bridge Forbes v1.1.17
Theme URI: https://rankingbridge.com/
Author: Ranking Bridge
Description: Forbes-style homepage for Ranking Bridge (v1.1.17). Adds a sidebar Table of Contents (numbered H2 list, collapsible, sticky on desktop) and a Newsletter subscribe card to single posts, both injected automatically into the right sidebar. Signups are stored in WordPress (Subscribers) and notified to info@rankingbridge.com. Everything else is identical to v1.1.16. Reproduces the approved Forbes-style preview HTML uploaded by the site owner as closely as WordPress allows. Template: colormag. Keep ColorMag installed for a one-click revert.
Version: 1.1.17
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ranking-bridge-forbes
Template: colormag
Tags: blog, news, magazine, editorial
*/

/*
 * All rules below are copied from the approved preview HTML file
 * (Ranking_Bridge_Forbes-style_Preview.html), with exactly three
 * intentional changes, documented in README-V11.md:
 *   1. The @media (prefers-color-scheme: dark) block is NOT included.
 *   2. The .preview-tag rule is dropped (preview-only chrome).
 *   3. Two small additions: .rb-pagination (the static preview has
 *      no pagination; the live site needs it) and .news-form form
 *      styles so the real [newsletter_form] shortcode output looks
 *      like the preview's form.
 */

:root {
  --navy: #1c3448;
  --navy-deep: #122433;
  --navy-ink: #0d1b28;
  --accent: #72b4d0;
  --accent-dark: #2f7ea6;
  --paper: #ffffff;
  --paper-soft: #f7f5f0;
  --ink: #14181c;
  --ink-soft: #3d454d;
  --muted: #6d767f;
  --rule: #d9d5cc;
  --rule-dark: #1c3448;
  --on-navy: #ffffff;
  --on-navy-soft: #c3d5e2;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.serif { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-dark); margin: 0 0 8px;
}
.byline { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.byline strong { color: var(--ink-soft); font-weight: 700; }

/* ---------- Top strip ---------- */
.topstrip { background: var(--navy-ink); color: var(--on-navy-soft); font-size: 12px; }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topstrip a { color: var(--on-navy); font-weight: 600; white-space: nowrap; }
.topstrip .date { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Masthead ---------- */
.masthead { background: var(--navy); color: var(--on-navy); }
.masthead .wrap {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding-top: 22px; padding-bottom: 22px;
}
.mast-side { display: flex; gap: 22px; font-size: 13.5px; font-weight: 600; }
.mast-side.right { justify-content: flex-end; align-items: center; }
.mast-side a { color: var(--on-navy); }
.wordmark {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-weight: 900;
  font-size: clamp(34px, 5.4vw, 54px); line-height: 1; letter-spacing: 0.01em;
  text-align: center; white-space: nowrap; color: var(--on-navy);
}
.wordmark:hover { text-decoration: none; }
.wordmark .bridge { color: var(--accent); }
.btn-write {
  border: 1.5px solid var(--on-navy); color: var(--on-navy); font-weight: 700;
  font-size: 13.5px; padding: 9px 18px; border-radius: 2px; white-space: nowrap;
}
.btn-write:hover { background: var(--on-navy); color: var(--navy); text-decoration: none; }
.burger {
  display: none; background: none; border: 0; color: var(--on-navy);
  font-size: 15px; font-weight: 700; cursor: pointer; padding: 6px 0;
  font-family: inherit; letter-spacing: 0.06em;
}

/* ---------- Section nav ---------- */
.sectionnav { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.14); }
.sectionnav .wrap { display: flex; justify-content: center; flex-wrap: wrap; }
.sectionnav a {
  color: var(--on-navy); font-size: 13.5px; font-weight: 600;
  padding: 12px 18px; letter-spacing: 0.02em;
}
.sectionnav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- Authors dropdown (v1.1.6) ---------- */
/* Scoped to the two header navs only — never a bare .has-drop /
 * .drop / .drop-link rule, so no component selector can collide
 * with a WordPress body class (see the v1.1.5 .author lesson). */
.masthead .has-drop, .sectionnav .has-drop { position: relative; display: flex; align-items: center; }
.masthead .drop-link::after, .sectionnav .drop-link::after { content: "▾"; font-size: 10px; margin-left: 6px; }
.masthead .has-drop .drop, .sectionnav .has-drop .drop {
  display: none; position: absolute; top: 100%; min-width: 240px;
  background: var(--navy); border-top: 2px solid var(--accent);
  box-shadow: 0 14px 30px rgba(0,0,0,0.35); z-index: 60; text-align: left;
}
.masthead .has-drop .drop { left: 0; }
.sectionnav .has-drop .drop { right: 0; left: auto; }
.masthead .has-drop:hover .drop, .sectionnav .has-drop:hover .drop,
.masthead .has-drop:focus-within .drop, .sectionnav .has-drop:focus-within .drop,
.masthead .has-drop.open .drop, .sectionnav .has-drop.open .drop { display: block; }
.masthead .has-drop .drop a, .sectionnav .has-drop .drop a {
  display: block; padding: 11px 16px; color: var(--on-navy);
  font-size: 14px; font-weight: 600; border-top: 1px solid rgba(255,255,255,0.09);
}
.masthead .has-drop .drop a:first-child, .sectionnav .has-drop .drop a:first-child { border-top: 0; }
.masthead .has-drop .drop a:hover, .sectionnav .has-drop .drop a:hover { background: var(--navy-deep); color: var(--accent); text-decoration: none; }
.masthead .has-drop .drop a span, .sectionnav .has-drop .drop a span { display: block; font-size: 11.5px; font-weight: 500; color: var(--on-navy-soft); letter-spacing: 0.04em; }

/* ---------- Trending strip ---------- */
.trending { border-bottom: 1px solid var(--rule); }
.trending .wrap { display: flex; align-items: baseline; gap: 20px; padding-top: 13px; padding-bottom: 13px; overflow: hidden; }
.trending .t-label {
  color: var(--accent-dark); font-weight: 800; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.trending nav { display: flex; gap: 26px; flex-wrap: wrap; }
.trending nav a { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 300px 1fr 320px; gap: 36px; }
.rail-head {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  border-top: 3px solid var(--rule-dark); padding-top: 10px; margin: 0 0 6px;
}
.pop-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.pop-list li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.pop-list li:last-child { border-bottom: 0; }
.pop-num {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: 34px; font-weight: 800;
  line-height: 0.95; color: var(--accent-dark);
}
.pop-list h3 { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: 17.5px; line-height: 1.3; margin: 0; font-weight: 700; }
.pop-list .pop-cat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }

.cover { border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); padding: 0 36px; }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cover h1 {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; margin: 20px 0 0;
}
.cover .dek { font-size: 16.5px; color: var(--ink-soft); margin: 14px 0 0; line-height: 1.6; }

.rail-story { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rail-story:first-of-type { padding-top: 4px; }
.rail-story:last-child { border-bottom: 0; }
.rail-story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; }
.rail-story h3 { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: 19px; line-height: 1.3; margin: 0; font-weight: 700; }

/* ---------- Section blocks ---------- */
section.block { padding: 30px 0 6px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 3px solid var(--rule-dark); padding-top: 12px; margin-bottom: 22px; }
.sec-head h2 { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0; }
.sec-head a.more { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dark); white-space: nowrap; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 14px; }
.card h3 { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: 19.5px; line-height: 1.32; font-weight: 700; margin: 0; }
.card p.excerpt { font-size: 14px; color: var(--ink-soft); margin: 9px 0 0; line-height: 1.55; }

.lead-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; }
.lead-story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 16px; }
.lead-story h3 { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: clamp(23px, 2.6vw, 30px); line-height: 1.22; font-weight: 800; margin: 0; }
.lead-story p.excerpt { font-size: 15.5px; color: var(--ink-soft); margin: 12px 0 0; }
.text-list { list-style: none; margin: 0; padding: 0; }
.text-list li { padding: 15px 0; border-bottom: 1px solid var(--rule); }
.text-list li:first-child { padding-top: 2px; }
.text-list li:last-child { border-bottom: 0; }
.text-list h3 { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: 18.5px; line-height: 1.32; font-weight: 700; margin: 0; }
.text-list .byline { margin-top: 6px; }

.guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.guide-list li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 14px; }
.guide-list .g-date { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- Write for us band ---------- */
.write-band { background: var(--navy); color: var(--on-navy); margin: 38px 0 6px; }
.write-band .wrap { padding-top: 40px; padding-bottom: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
.write-band .eyebrow { color: var(--accent); }
.write-band h2 { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: clamp(25px, 3vw, 34px); font-weight: 800; line-height: 1.2; margin: 0; color: var(--on-navy); }
.write-band p { color: var(--on-navy-soft); font-size: 15.5px; margin: 12px 0 0; max-width: 56ch; }
.write-cats { list-style: none; margin: 0; padding: 0; }
.write-cats li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.22); font-size: 14.5px; }
.write-cats li:first-child { border-top: 1px solid rgba(255,255,255,0.22); }
.write-cats .count { color: var(--accent); font-weight: 700; background: none; font-size: inherit; padding: 0; float: none; }
.btn-solid {
  display: inline-block; margin-top: 20px; background: var(--accent); color: var(--navy-ink);
  font-weight: 800; font-size: 14px; padding: 12px 22px; border-radius: 2px;
}
.btn-solid:hover { background: var(--on-navy); text-decoration: none; }

/* ---------- Newsletter ---------- */
/* NOTE: the preview file styles this as a light paper-soft band
   (#f7f5f0), NOT navy. Earlier notes describing it as a navy band
   were wrong; the uploaded file is the authority. */
.newsletter { background: var(--paper-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 38px; }
.newsletter .wrap { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.newsletter h2 { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: clamp(23px, 2.8vw, 30px); font-weight: 800; margin: 0; line-height: 1.25; }
.newsletter p { color: var(--ink-soft); margin: 10px 0 0; font-size: 15px; }
.news-form { display: flex; gap: 10px; }
/* The live form is the Newsletter plugin's [newsletter_form] shortcode
   output wrapped in .news-form, so its own form/input/button elements
   are styled here to match the preview's form exactly. */
.news-form form { display: flex; gap: 10px; flex: 1; min-width: 0; }
.news-form input[type="email"],
.news-form input[type="text"] {
  flex: 1; min-width: 0; padding: 13px 14px; font: inherit; font-size: 14.5px;
  border: 1px solid var(--muted); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.news-form input[type="submit"],
.news-form button[type="submit"],
.news-form button {
  background: var(--navy); color: #fff; border: 0; font: inherit; font-weight: 700;
  font-size: 14px; padding: 13px 22px; border-radius: 2px; cursor: pointer; white-space: nowrap;
}
.news-form input[type="submit"]:hover,
.news-form button[type="submit"]:hover,
.news-form button:hover { background: var(--navy-deep); }
.news-note { font-size: 13px; color: var(--accent-dark); font-weight: 600; margin-top: 10px; min-height: 1.2em; }

/* ---------- Authors ---------- */
.authors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.authors-grid .author { border-top: 1px solid var(--rule); padding-top: 18px; display: grid; grid-template-columns: 58px 1fr; gap: 16px; }
.monogram {
  width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-weight: 800; font-size: 20px;
}
.authors-grid .author h3 { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: 20px; margin: 2px 0 0; font-weight: 800; }
.authors-grid .author .role { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); margin: 3px 0 0; }
.authors-grid .author p.bio { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); margin: 2px 0 0; }

/* ---------- Footer ---------- */
footer { background: var(--navy-ink); color: var(--on-navy-soft); margin-top: 46px; }
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 36px; padding-top: 44px; padding-bottom: 36px; }
footer h4 { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 16px; }
footer .f-word { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; color: #fff; font-size: 28px; font-weight: 900; margin: 0 0 12px; }
footer .f-word span { color: var(--accent); }
footer p { font-size: 14px; margin: 0; line-height: 1.65; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { padding: 5px 0; font-size: 14px; }
footer li a:hover { color: var(--accent); }
footer .f-post { font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif; font-size: 15.5px; color: #e8eef3; line-height: 1.4; }
footer .f-date { font-size: 11.5px; color: #8fa6ba; }
.foot-bar { border-top: 1px solid rgba(255,255,255,0.16); }
.foot-bar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 16px; padding-bottom: 18px; font-size: 12.5px; }
.foot-bar a { color: var(--on-navy); font-weight: 600; }

/* ---------- Pagination (live-only addition; the static preview has none) ---------- */
.rb-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 34px 0 6px; }
.rb-pagination .page-numbers {
  display: inline-block; padding: 9px 14px; font-size: 13.5px; font-weight: 700;
  color: var(--ink-soft); border: 1px solid var(--rule); border-radius: 2px;
}
.rb-pagination a.page-numbers:hover { color: var(--navy); border-color: var(--navy); text-decoration: none; }
.rb-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.rb-pagination .page-numbers.dots { border: 0; padding: 9px 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .cover { grid-column: 1 / -1; order: -1; border: 0; padding: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .masthead .wrap { grid-template-columns: auto 1fr; padding-top: 16px; padding-bottom: 16px; row-gap: 14px; }
  .mast-side.left { display: none; }
  .mast-side.right { grid-column: 1 / -1; justify-content: center; }
  .wordmark { font-size: 30px; text-align: left; }
  .burger { display: block; justify-self: start; }
  .topstrip .date { display: none; }
  .topstrip .wrap { justify-content: flex-end; }
  .sectionnav { display: none; }
  .sectionnav.open { display: block; }
  .sectionnav .wrap { flex-direction: column; align-items: stretch; padding: 6px 18px 10px; }
  .sectionnav a { padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .sectionnav .has-drop { display: block; }
  .sectionnav .has-drop > a { padding: 10px 2px; }
  .sectionnav .has-drop .drop { position: static; display: none; min-width: 0; background: transparent; border-top: 0; box-shadow: none; }
  .sectionnav .has-drop.open .drop { display: block; }
  .sectionnav .has-drop .drop a { padding: 9px 2px 9px 16px; font-size: 13.5px; border-top: 0; }
  .hero { padding-top: 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .card-grid, .authors-grid, .guide-list { grid-template-columns: 1fr; }
  .lead-split, .write-band .wrap, .newsletter .wrap { grid-template-columns: 1fr; }
  .news-form, .news-form form { flex-direction: column; }
  footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .trending nav a:nth-child(n+3) { display: none; }
  .trending .wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .trending nav { flex-wrap: wrap; }
  .trending nav a { white-space: normal; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 23px; }
  .masthead .wrap { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Numbered pagination on category archives (v1.1.4): match the navy
 * theme. The parent colours the current page with its default blue
 * (var(--cm-color-1, #207daf)); the child theme uses navy instead. */
.tg-numbered-pagination .page-numbers .current {
  background-color: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tg-numbered-pagination .page-numbers li > a { color: var(--navy); }
.tg-numbered-pagination .page-numbers li > a:hover { background-color: #eef2f5; }
.tg-numbered-pagination .page-numbers .fa { color: var(--navy); }

/* ---------- Site-wide typography (v1.1.9) ----------
 * One type system on EVERY template, not just the homepage:
 * Inter for body/UI, Libre Franklin for headings/display.
 * Before v1.1.9 the site mixed three looks — Playfair Display
 * headlines on the homepage, an unloaded Libre Franklin (so plain
 * Arial/Helvetica) for homepage body text, and ColorMag's Open Sans
 * on single posts, archives and widgets. These rules override the
 * parent's Open Sans selectors (verified from the served CSS) at
 * equal specificity; this stylesheet loads after the parent's, so
 * these win. The homepage's own rules above already use the same
 * two families. */
body, button, input, select, textarea {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}
.cm-primary-nav li,
.cm-header .cm-menu-toggle,
.cm-site-description {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
blockquote p,
.wp-block-quote p,
.wp-block-quote.is-style-large p,
.wp-block-quote.has-text-align-right p {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Internal links in content (v1.1.10) ----------
 * All internal links inside post/page content render in the
 * theme's blue (--accent-dark #2f7ea6) instead of inheriting the
 * body text colour, so readers can spot them. Scoped to single
 * posts and pages only: ColorMag 4.x renders the_content() inside
 * .cm-entry-summary on singles (there is no .entry-content in the
 * served HTML — verified 2026-11-12), and the same class is used
 * for excerpts on archives/search, which must NOT change. Only
 * links to rankingbridge.com (absolute or root-relative) are
 * coloured; external links and in-page anchors are untouched.
 * Homepage cards, nav, sidebar and footer are outside this
 * container and are unaffected. Hover keeps the theme's underline
 * and darkens slightly. */
.single-post .cm-entry-summary a[href*="rankingbridge.com"],
.single-post .cm-entry-summary a[href^="/"],
.page .cm-entry-summary a[href*="rankingbridge.com"],
.page .cm-entry-summary a[href^="/"] {
  color: var(--accent-dark);
}
.single-post .cm-entry-summary a[href*="rankingbridge.com"]:hover,
.single-post .cm-entry-summary a[href^="/"]:hover,
.page .cm-entry-summary a[href*="rankingbridge.com"]:hover,
.page .cm-entry-summary a[href^="/"]:hover {
  color: #1f6a94;
}

/* ---------- Bold links in content (v1.1.11) ----------
 * ColorMag's parent theme sets strong { font-weight: 600 }, which
 * in Inter at 16px reads as regular text — the company links added
 * to listicle posts (markup <a><strong>Name</strong></a>) looked
 * blue but not bold in body paragraphs and comparison tables,
 * while the same markup in headings (Libre Franklin, larger size)
 * read as bold. This rule renders <strong> inside links in post
 * and page content at true bold (700). Scoped to single posts and
 * pages inside .cm-entry-summary, same as v1.1.10: archives/search
 * excerpts, homepage cards, nav, sidebar and footer are outside
 * this container and are unaffected. Specificity (0,2,2) beats the
 * parent's bare strong rule (0,0,1); no !important needed. Plain
 * <strong> text outside links is unchanged (still 600). */
.single-post .cm-entry-summary a strong,
.page .cm-entry-summary a strong {
  font-weight: 700;
}

/* ---------- AI voice player (v1.1.15) ----------
 * Forbes-style audio card, prepended to the_content on single
 * posts that have an audio URL in post meta (_rb_audio_url).
 * Reference: the Forbes screenshot the site owner shared (light
 * grey rounded card, title line truncated with ellipsis, dark
 * circular play button, circular outline ±10s skip buttons, 1x
 * speed label, volume icon, time right-aligned, "This voice
 * experience is generated by AI." note below the card).
 * Every selector is scoped to .rb-voice-player / .rb-ai-summarize
 * with rb- prefixed class names, so no rule can collide with a
 * WordPress body class (see the wordpress_child_theme_css skill).
 * The play button uses the theme navy (#1c3448) instead of the
 * Forbes near-black, so the card stays on-theme. The progress
 * bar below the controls is an addition the task requires — the
 * Forbes screenshot shows time only, no bar. */
.rb-voice-player {
  background: #f6f6f4;
  border: 1px solid #e2e0da;
  border-radius: 10px;
  padding: 14px 18px 12px;
  margin: 0 0 8px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
.rb-voice-player__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #14181c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 0 12px;
}
.rb-voice-player__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rb-voice-player__play {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: var(--navy);
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.rb-voice-player__play:hover { background: var(--navy-deep); }
.rb-voice-player__play svg { width: 18px; height: 18px; display: block; }
.rb-voice-player__play .rb-voice-player__icon-pause { display: none; }
.rb-voice-player.is-playing .rb-voice-player__play .rb-voice-player__icon-play { display: none; }
.rb-voice-player.is-playing .rb-voice-player__play .rb-voice-player__icon-pause { display: block; }
.rb-voice-player__skip {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid #14181c;
  color: #14181c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.rb-voice-player__skip:hover { background: #eceae6; }
.rb-voice-player__skip svg { width: 24px; height: 24px; display: block; }
.rb-voice-player__speed {
  background: transparent;
  border: 0;
  color: #14181c;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-width: 44px;
  text-align: center;
  cursor: pointer;
  padding: 6px 2px;
}
.rb-voice-player__speed:hover { color: var(--accent-dark); }
.rb-voice-player__mute {
  background: transparent;
  border: 0;
  color: #14181c;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.rb-voice-player__mute svg { width: 22px; height: 22px; display: block; }
.rb-voice-player__mute .rb-voice-player__icon-muted { display: none; }
.rb-voice-player.is-muted .rb-voice-player__mute .rb-voice-player__icon-volume { display: none; }
.rb-voice-player.is-muted .rb-voice-player__mute .rb-voice-player__icon-muted { display: block; }
.rb-voice-player__volume {
  width: 72px;
  flex: 0 1 72px;
  accent-color: var(--navy);
  cursor: pointer;
}
.rb-voice-player__time {
  margin-left: auto;
  font-size: 13px;
  color: #6d767f;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.rb-voice-player__progress { margin-top: 10px; }
.rb-voice-player__seek {
  width: 100%;
  display: block;
  accent-color: var(--navy);
  cursor: pointer;
  margin: 0;
}
.rb-voice-player__note {
  font-size: 12.5px;
  color: #6d767f;
  margin: 0 0 24px;
}
.rb-voice-player button:focus-visible,
.rb-voice-player input:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

/* ---------- AI Summarize row (v1.1.15) ----------
 * Appended to the_content on single posts. Reference: the
 * "AI Summarize:" strip the site owner shared — bold label on
 * the left, rounded-square white icon buttons with a soft
 * shadow. The reference strip is teal-tinted; Ranking Bridge
 * uses a light navy tint (#eef4f8 / #d7e3ec) to stay on-theme.
 * Five platforms only: ChatGPT, Claude, Perplexity, Gemini,
 * Microsoft Copilot. Icons are inline SVG (no external images).
 * Each button links to the platform with a prefilled prompt
 * "Summarize this article: {post URL}" and opens in a new tab. */
.rb-ai-summarize {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: #eef4f8;
  border: 1px solid #d7e3ec;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 32px 0 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
.rb-ai-summarize__label {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-right: 4px;
}
.rb-ai-summarize__btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e3e1dc;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(28, 52, 72, 0.08);
  color: var(--navy);
  text-decoration: none;
}
.rb-ai-summarize__btn:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 3px 10px rgba(28, 52, 72, 0.14);
  text-decoration: none;
}
.rb-ai-summarize__btn:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}
.rb-ai-summarize__btn svg { width: 24px; height: 24px; display: block; }

/* ---------- Voice player + AI row on small screens ----------
 * v1.1.16 fix: the v1.1.15 controls row was a single non-wrapping
 * flex row, so at phone widths the mute button and the time were
 * pushed off the card (verified live 22 Nov at 320px in the
 * Customizer Mobile preview: mute showed only a sliver, the time
 * was clipped). flex-wrap lets the controls flow to a second line
 * instead of overflowing, and the smaller skip/speed sizes leave
 * room for the mute button on the first row at most phone widths.
 * The volume slider stays hidden below 480px (phones have hardware
 * volume buttons); mute remains the on-screen volume control.
 * The AI row label takes its own line so the five icons wrap as a
 * clean group instead of 1 + 3 + 1. */
@media (max-width: 480px) {
  .rb-voice-player { padding: 12px 14px 10px; }
  .rb-voice-player__controls { gap: 8px; flex-wrap: wrap; }
  .rb-voice-player__skip { width: 32px; height: 32px; flex-basis: 32px; }
  .rb-voice-player__speed { min-width: 36px; }
  .rb-voice-player__volume { display: none; }
  .rb-voice-player__time { font-size: 12px; }
  .rb-ai-summarize { gap: 10px; padding: 12px 14px; }
  .rb-ai-summarize__label { flex: 0 0 100%; margin-right: 0; }
}

/* ---------- Sidebar Table of Contents (v1.1.17) ----------
 * Reference: the "Table of Content" widget the site owner shared
 * — coloured header bar with white bold text and a collapse
 * chevron, numbered list below with accent-coloured numbers and
 * dark section titles. The reference is teal; Ranking Bridge uses
 * the navy theme (navy #1c3448 header, accent-dark #2f7ea6
 * numbers). Rendered by the RB_Forbes_TOC_Widget (functions.php),
 * injected as the first widget in the right sidebar on single
 * posts only, and only when the post has 2 or more H2s.
 *
 * Sticky: the widget wrapper (.widget_rb_toc — the class WordPress
 * itself adds to this widget's <aside>) sticks at top: 20px on
 * desktop so the TOC follows the reader. No fixed heights, no
 * negative margins, nothing that can break the sidebar layout; if
 * an ancestor ever blocks sticky positioning, the widget simply
 * does not stick. Sticky is off below 768px, where the sidebar
 * stacks below the content. */
.widget_rb_toc {
  position: sticky;
  top: 20px;
}
.rb-toc {
  background: #fff;
  border: 1px solid #e3e1dc;
  border-radius: 12px;
  overflow: hidden;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
.rb-toc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 14px 18px;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.rb-toc__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.rb-toc__chevron {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.rb-toc__chevron svg {
  width: 18px;
  height: 18px;
  display: block;
  transition: transform 0.2s ease;
}
.rb-toc.is-collapsed .rb-toc__chevron svg {
  transform: rotate(180deg);
}
.rb-toc.is-collapsed .rb-toc__list {
  display: none;
}
.rb-toc__header:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: -2px;
}
.rb-toc__list {
  margin: 0;
  padding: 12px 18px 14px 38px;
  list-style: decimal;
}
.rb-toc__list li::marker {
  color: var(--accent-dark);
  font-weight: 700;
}
.rb-toc__item {
  font-size: 14.5px;
  line-height: 1.45;
  color: #3a3f45;
  padding: 5px 0;
}
.rb-toc__link {
  color: inherit;
  text-decoration: none;
}
.rb-toc__link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}
.rb-toc__link:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

/* Anchor offset: a TOC jump never hides a heading under the
 * header. Only affects scroll positioning — no visual change. */
.single-post .cm-entry-summary h2 {
  scroll-margin-top: 90px;
}

/* ---------- Sidebar Newsletter subscribe card (v1.1.17) ----------
 * Reference: the "Subscribe GSB Newsletter" card the site owner
 * shared — rounded white card with a thick coloured top border,
 * bold dark heading, grey subtext, pill-shaped email input and a
 * full-width pill Submit button. Ranking Bridge uses the navy
 * theme (accent-dark #2f7ea6 top border, navy #1c3448 button).
 * The "Preferred source on Google" button shown above the
 * reference card is NOT built (not requested). Rendered by the
 * RB_Forbes_Newsletter_Widget, injected into the right sidebar on
 * single posts only, directly below the TOC widget. */
.rb-newsletter {
  background: #fff;
  border: 1px solid #e3e1dc;
  border-top: 6px solid var(--accent-dark);
  border-radius: 12px;
  padding: 20px 20px 22px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
.rb-newsletter__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 8px;
}
.rb-newsletter__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}
.rb-newsletter__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.rb-newsletter__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d7e3ec;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  margin: 0 0 12px;
}
.rb-newsletter__input::placeholder {
  color: #9aa3ab;
}
.rb-newsletter__input:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
  border-color: var(--accent-dark);
}
.rb-newsletter__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.rb-newsletter__submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 18px;
  cursor: pointer;
}
.rb-newsletter__submit:hover {
  background: var(--navy-deep);
}
.rb-newsletter__submit:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}
.rb-newsletter__submit:disabled {
  opacity: 0.6;
  cursor: default;
}
.rb-newsletter__message {
  font-size: 14px;
  line-height: 1.5;
  color: #3a3f45;
  margin: 12px 0 0;
}
.rb-newsletter__message:empty {
  display: none;
}
.rb-newsletter__message.is-success {
  color: #1e7a34;
  font-weight: 600;
}
.rb-newsletter__message.is-error {
  color: #b3261e;
  font-weight: 600;
}
.rb-newsletter.is-subscribed .rb-newsletter__form {
  display: none;
}

/* ---------- Sidebar widgets on small screens ---------- */
@media (max-width: 768px) {
  .widget_rb_toc {
    position: static;
  }
}
