/**
 * Geekflare V3 — article (buying-guide) body styling
 *
 * Styles raw editorial content (the_content()) to match the design, plus
 * a few block-style variations (see main_gf_v3_register_block_styles() in
 * inc/gf-v3.php) so an editor can build a "product entry" section (H3 +
 * tagline + intro + image + key features + pros/cons + pricing + CTA)
 * entirely from core Gutenberg blocks — no custom block required.
 *
 * Scoped to `.gf-article-body` (the wrapper around the_content() output
 * in templates/single-post-v3.php), same reasoning as `.gf-v3`
 * itself: this theme has no collision risk since the current design
 * doesn't use these tokens, but keeping a dedicated scope makes it obvious
 * this stylesheet only ever touches editorial content, never chrome.
 *
 * @package Main
 * @since 1.0.0
 */

.gf-article-body {
  font-family: var(--gf-sans);
  color: var(--gf-text);
}

/* ---------- Headings ---------- */
.gf-article-body h2 {
  font-family: var(--gf-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 40px 0 18px;
  scroll-margin-top: 90px;
}
/* The prototype sets h3 at 28px against h2's 30px, which works there
   only because every h3 in the listicle is a numbered product entry
   ("01. Rapid") sitting under a 2px entry divider — the number and the
   rule do the separating, not the size. A plain subheading has neither,
   so at 28px it reads as another h2. Generic h3 drops to 21.5px; the
   numbered entry heading keeps the design's 28px below. */
.gf-article-body h3 {
  font-family: var(--gf-display);
  font-weight: 700;
  font-size: 21.5px;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 30px 0 10px;
  scroll-margin-top: 90px;
}
.gf-article-body h4 {
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.018em;
  margin: 0 0 12px;
}

/* ---------- Prose ---------- */
.gf-article-body p {
  font-family: var(--gf-serif);
  font-size: 18.5px;
  line-height: 1.72;
  color: var(--gf-text);
  margin: 0 0 22px;
  max-width: 68ch;
}
.gf-article-body h2 + p,
.gf-article-body h3 + p {
  font-size: 17.5px;
}
/* Same treatment as geekflare-website's in-content links: color + medium
   weight carry the affordance, underline only appears on hover. */
.gf-article-body a {
  color: var(--gf-link);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
}
.gf-article-body a:hover {
  text-decoration: underline;
}
.gf-article-body strong { font-weight: 700; }
.gf-article-body blockquote {
  margin: 0 0 22px;
  padding-left: 20px;
  border-left: 2px solid var(--gf-2);
  font-family: var(--gf-serif);
  font-style: italic;
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--gf-dim);
  max-width: 68ch;
}
.gf-article-body code {
  font-family: var(--gf-mono);
  font-size: 0.88em;
  background: var(--gf-sunk);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
/* Code panels are dark in both themes, same as geekflare-website's
   (packages/gf-v3 — "Code panel (always dark)"): --gf-ink ground, hairline
   in white, #e8e4e1 ink, mono 15px/1.7. Gutenberg's core/code emits no
   syntax spans, so highlight.js adds them client side — see
   src/js/gf-v3-code.js and the .hljs-* rules below. */
.gf-article-body pre {
  font-family: var(--gf-mono);
  font-size: 15px;
  line-height: 1.7;
  tab-size: 2;
  background: #131211;
  color: #e8e4e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--gf-r);
  padding: 18px 18px 22px;
  overflow: auto;
  margin: 0 0 22px;
  color-scheme: dark;
}
.gf-article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
/* The panel is just the code — no header strip, since writers almost
   never tag a language and an empty bar is worse than none. The copy
   button floats over the top-right of the code instead, and the <pre>
   reserves room for it so a long first line never runs underneath. */
.gf-code-block {
  position: relative;
  margin: 0 0 22px;
  border-radius: var(--gf-r);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #131211;
  box-shadow: var(--gf-shadow);
  overflow: hidden;
  color-scheme: dark;
}
.gf-code-block > pre {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 18px 20px 20px;
}
.gf-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 9px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(19, 18, 17, 0.86);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.66);
  font-family: var(--gf-mono);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, border-color 0.15s, color 0.15s, background-color 0.15s;
}
/* Revealed on hover on a pointer device; always visible on touch and to
   keyboard users, who have no hover to reveal it with. */
.gf-code-block:hover .gf-code-copy,
.gf-code-copy:focus-visible,
.gf-code-copy[data-copied="true"] {
  opacity: 1;
}
@media (hover: none) {
  .gf-code-copy { opacity: 1; }
}
.gf-code-copy:hover {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}
.gf-code-copy[data-copied="true"] {
  color: #7bd88f;
  border-color: rgba(123, 216, 143, 0.45);
}

/* ---------- Syntax highlighting ---------- */
/* Ported from geekflare-website's "Code panel (always dark)" block in
   packages/gf-v3/src/styles/gf-v3.css, so highlighted code reads the same
   on both sites. Applied by src/js/gf-v3-code.js via highlight.js. */
.gf-code-block .hljs-keyword,
.gf-code-block .hljs-built_in,
.gf-code-block .hljs-type,
.gf-code-block .hljs-selector-tag { color: #79cddb; }
.gf-code-block .hljs-string,
.gf-code-block .hljs-regexp,
.gf-code-block .hljs-link { color: #ffb094; }
.gf-code-block .hljs-number,
.gf-code-block .hljs-literal,
.gf-code-block .hljs-variable,
.gf-code-block .hljs-template-variable { color: #f2c97d; }
.gf-code-block .hljs-title,
.gf-code-block .hljs-title.function_,
.gf-code-block .hljs-title.class_,
.gf-code-block .hljs-name,
.gf-code-block .hljs-section { color: #f7f5f4; }
.gf-code-block .hljs-attr,
.gf-code-block .hljs-attribute,
.gf-code-block .hljs-property,
.gf-code-block .hljs-params { color: #b9e3ea; }
.gf-code-block .hljs-comment,
.gf-code-block .hljs-quote,
.gf-code-block .hljs-meta { color: rgba(255, 255, 255, 0.4); font-style: normal; }

.gf-article-body ul.wp-block-list,
.gf-article-body ol.wp-block-list,
.gf-article-body ul:not([class]),
.gf-article-body ol:not([class]) {
  font-family: var(--gf-serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gf-text);
  margin: 0 0 22px;
  padding-left: 20px;
  max-width: 68ch;
  /* The old theme's Tailwind base strips list-style on every <ul> —
     restore the browser default marker (disc/decimal) for plain lists. */
  list-style: revert;
}
.gf-article-body li { margin-bottom: 10px; }

.gf-article-body hr:not(.wp-block-separator) {
  border: none;
  border-top: var(--gf-hair);
  margin: 34px 0;
}

/* ---------- Figures / images ---------- */
.gf-article-body figure,
.gf-article-body .wp-block-image {
  margin: 0 0 24px;
}
.gf-article-body img {
  max-width: 100%;
  height: auto;
  display: block;
}
.gf-article-body .wp-block-image img {
  width: 100%;
  border: var(--gf-hair);
  border-radius: var(--gf-r);
}
/* Rounded corners for any other figure image too (galleries, embeds,
   and plain <img> dropped into content), and clip children so a figure
   with its own background doesn't square the corners back off. */
.gf-article-body figure > img,
.gf-article-body figure > a > img {
  border-radius: var(--gf-r);
}
.gf-article-body .wp-block-embed iframe,
.gf-article-body .wp-block-video video {
  border-radius: var(--gf-r);
}
.gf-article-body figcaption {
  font-family: var(--gf-sans);
  font-size: 12.5px;
  color: var(--gf-quiet);
  margin-top: 9px;
}

/* ---------- Comparison table ---------- */
/* The border/radius/scroll belong on the wrapping figure, not <table>
   itself — border-radius doesn't visually clip a table's corners once
   border-collapse:collapse is set, so putting it on the table was a
   no-op. core/table always wraps its output in <figure class="wp-block-table">. */
.gf-article-body .wp-block-table {
  border: var(--gf-hair);
  border-radius: var(--gf-r);
  overflow: auto;
  margin: 0 0 14px;
}
.gf-article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}
/* WordPress core's block-library stylesheet puts a 1px solid border on
   every table cell (`.wp-block-table td, .wp-block-table th`). The design
   has no cell borders at all — only a rule between rows — so clear them
   here at a specificity that beats core's. */
.gf-article-body .wp-block-table td,
.gf-article-body .wp-block-table th,
.gf-article-body table td,
.gf-article-body table th {
  border: none;
}
/* Core also puts a 3px rule under <thead>; the design uses the same
   hairline as every other row. */
.gf-article-body .wp-block-table thead,
.gf-article-body table thead {
  border-bottom: var(--gf-hair);
}
/* Header tint sits on the row, not the cell (same as the design file), so
   it reads as one continuous band inside the rounded container. */
.gf-article-body thead tr {
  background: var(--gf-sunk);
}
.gf-article-body th {
  text-align: left;
  padding: 13px 16px;
  font-family: var(--gf-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gf-quiet);
}
/* Row rules only — deliberately no column dividers and no zebra striping;
   the design keeps the grid quiet so the content carries it. */
.gf-article-body tbody tr {
  border-top: var(--gf-hair);
}
.gf-article-body td {
  padding: 13px 16px;
  color: var(--gf-dim);
  vertical-align: top;
}
.gf-article-body td:first-child {
  font-weight: 600;
  color: var(--gf-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ---------- Kicker label (paragraph block style) ---------- */
/* Used for a product entry's type label ("Marketplace"), and anywhere
   else a small uppercase kicker paragraph is useful in article body. */
.gf-article-body p.is-style-gf-kicker {
  font-family: var(--gf-mono);
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gf-2-text);
  margin: -4px 0 16px;
}
/* A kicker straight after a heading is a product entry's type label — the
   design sits it on the heading's baseline, not on its own line. */
.gf-article-body h3:has(+ p.is-style-gf-kicker) {
  display: inline-block;
  vertical-align: baseline;
  margin: 0 12px 8px 0;
}
.gf-article-body h3 + p.is-style-gf-kicker {
  display: inline-block;
  vertical-align: baseline;
  margin: 0 0 8px;
  max-width: none;
}
/* …and the paragraph after it is the entry tagline. */
.gf-article-body p.is-style-gf-kicker + p {
  font-family: var(--gf-serif);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--gf-dim);
  max-width: 62ch;
  margin-bottom: 18px;
}

/* ---------- Pricing: label row + plan rows ---------- */
/* "Pricing" on the left, the headline figure on the right, then hairline
   plan rows — a core/group and a core/table, both with a block style, so
   an editor can build it without a custom block. */
.gf-article-body .wp-block-group.is-style-gf-split-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.gf-article-body .wp-block-group.is-style-gf-split-row > * {
  margin: 0;
}
.gf-article-body p.is-style-gf-price {
  font-family: var(--gf-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--gf-text);
  margin: 0;
}
.gf-article-body .wp-block-table.is-style-gf-plans {
  border: none;
  border-radius: 0;
  margin: 0 0 4px;
}
.gf-article-body .wp-block-table.is-style-gf-plans table {
  min-width: 0;
  font-size: 14px;
}
.gf-article-body .wp-block-table.is-style-gf-plans tbody tr {
  border-top: var(--gf-hair);
}
.gf-article-body .wp-block-table.is-style-gf-plans td {
  padding: 9px 0 0;
  color: var(--gf-dim);
  vertical-align: baseline;
}
.gf-article-body .wp-block-table.is-style-gf-plans td:first-child {
  font-family: var(--gf-sans);
  font-weight: 600;
  color: var(--gf-text);
  letter-spacing: -0.01em;
  width: 92px;
  padding-right: 12px;
  white-space: normal;
}

/* ---------- Entry divider (separator block style) ---------- */
.gf-article-body hr.is-style-gf-entry {
  border: none;
  border-top: 2px solid var(--gf-line);
  margin: 46px 0 30px;
}

/* ---------- Pros / cons (the real main/pros-cons block) ---------- */
/* blocks/pros-cons/render.php is a site-wide block (also used by the old
   design elsewhere), styled entirely through hardcoded Tailwind utility
   classes (bg-white, border-gray-200, rounded-xl, text-success-600, …),
   and it hardcodes filled-circle icons. We can't edit that file without
   changing old-design pages, so everything below re-skins it in place,
   scoped to `.gf-article-body`, to match the listicle design file: two
   flat columns under a hairline rule, no card fill or border, mono
   labels, and thin stroked check/cross marks instead of filled circles. */
.gf-article-body .pros-cons {
  gap: 0 !important;
  border-top: var(--gf-hair);
  padding-top: 20px;
  margin-bottom: 28px;
}
/* The block always prints a "Pros & Cons" heading; the design labels each
   column instead, so it's redundant here. */
.gf-article-body .pros-cons > h3 {
  display: none;
}
.gf-article-body .pros-cons-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px !important;
  width: 100%;
}
.gf-article-body .pros-card,
.gf-article-body .cons-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 0 !important;
}
.gf-article-body .pros-card h4,
.gf-article-body .cons-card h4 {
  font-family: var(--gf-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.gf-article-body .pros-card h4 { color: var(--gf-pro); }
.gf-article-body .cons-card h4 { color: var(--gf-con); }
.gf-article-body .pros-list,
.gf-article-body .cons-list {
  gap: 12px !important;
}
.gf-article-body .pros-item,
.gf-article-body .cons-item {
  gap: 10px !important;
  align-items: flex-start !important;
}
/* Swap the block's filled-circle glyphs for the design's thin stroked
   marks (15px, 2.6 stroke) — drawn as a masked box so they take the
   pro/con token colour. */
.gf-article-body .pros-item > svg,
.gf-article-body .cons-item > svg {
  display: none;
}
.gf-article-body .pros-item::before,
.gf-article-body .cons-item::before {
  content: "";
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 3px;
}
.gf-article-body .pros-item::before {
  background: var(--gf-pro);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gf-article-body .cons-item::before {
  background: var(--gf-con);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Design has these at --gf-dim; bumped to full text colour and a slightly
   looser line for readability — these are scannable claims, not captions. */
.gf-article-body .pros-item span,
.gf-article-body .cons-item span {
  font-family: var(--gf-sans);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--gf-text);
  letter-spacing: 0;
}

/* ---------- Buttons (affiliate CTA) ---------- */
.gf-article-body .wp-block-buttons {
  margin: 22px 0 0;
}
/* The design's "Visit <product>" CTA carries an external-link arrow.
   Keyed off target="_blank" (set by main_gf_v3_content_link_attrs()) so
   it only shows on buttons that actually leave the site. */
.gf-article-body .wp-block-button__link[target="_blank"]::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gf-article-body .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--gf-r-sm);
  background: var(--gf-brand);
  color: #fff;
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.gf-article-body .wp-block-button__link:hover {
  background: var(--gf-brand-hover);
  color: #fff;
}
.gf-article-body .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--gf-line-2);
  color: var(--gf-text);
}

/* ---------- FAQ (native <details>/<summary>) ---------- */
.gf-article-body details {
  border-bottom: var(--gf-hair);
}
.gf-article-body details:first-of-type {
  border-top: var(--gf-hair);
}
.gf-article-body details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.015em;
}
.gf-article-body details > summary::-webkit-details-marker { display: none; }
.gf-article-body details > summary::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--gf-quiet);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease;
}
.gf-article-body details[open] > summary::after { transform: rotate(45deg); }
.gf-article-body details p {
  font-family: var(--gf-serif);
  font-size: 17px;
  line-height: 1.68;
  color: var(--gf-dim);
  margin: 0 0 20px;
  max-width: 68ch;
}

/* ---------- Advertisement placeholder ---------- */
.gf-ad-slot {
  border: 1px dashed var(--gf-line-2);
  border-radius: var(--gf-r);
  background: var(--gf-sunk);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}
.gf-ad-slot .gf-ad-kicker {
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gf-quiet);
}
.gf-ad-slot .gf-ad-size {
  font-size: 12.5px;
  color: var(--gf-quiet);
  margin-top: 6px;
}

/* ---------- Article grid + sidebar ---------- */
.gf-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}
.gf-article-side {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
@media (max-width: 1020px) {
  .gf-article-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gf-article-side { position: static; }
}

.gf-toc a {
  display: block;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--gf-dim);
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--gf-line);
}
.gf-toc a:hover { color: var(--gf-text); border-left-color: var(--gf-line-2); }
.gf-toc a.sub { padding-left: 26px; font-size: 13px; color: var(--gf-quiet); }
.gf-toc a.on { color: var(--gf-text); border-left-color: var(--gf-2); font-weight: 600; }
.gf-toc a[hidden] { display: none; }

.gf-toc-more {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 4px;
  padding: 7px 0 7px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--gf-2-text);
}
.gf-toc-more:hover { color: var(--gf-accent-text); }

/* ---------- Popovers (author bio, affiliate disclosure) ---------- */
.gf-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  width: max-content;
  max-width: 320px;
  background: var(--gf-panel);
  border: var(--gf-hair);
  border-radius: var(--gf-r);
  box-shadow: var(--gf-shadow-lg);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.16s;
}
[data-gf-popover].is-open .gf-popover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0s;
}


/* ---------- Yoast FAQ block ---------- */
/* main_gf_v3_faq_to_details() rewrites Yoast's
   div.schema-faq-section > strong + p into native <details>, so the rules
   above do the work. These only undo the old theme's own FAQ styling in
   dist/style.css, which is printed last and would otherwise space the
   rows apart and re-pad the question. */
/* Doubled class: the old rule is `.schema-faq.wp-block-yoast-faq-block`,
   which ties on specificity and wins on order because dist/style.css is
   printed last. Its flex + 1rem gap would break the flush hairline stack. */
.gf-article-body .schema-faq.schema-faq {
  display: block;
  margin: 28px 0;
  gap: 0;
}
.gf-article-body .schema-faq > details:first-of-type {
  border-top: var(--gf-hair);
}
.gf-article-body details > summary.gf-faq__q {
  padding: 18px 0;
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--gf-text);
  background: none;
  border: 0;
  width: auto;
  text-align: left;
}
.gf-article-body .schema-faq-answer {
  font-family: var(--gf-serif);
  font-size: 17px;
  line-height: 1.68;
  color: var(--gf-dim);
  margin: 0 0 20px;
  max-width: 68ch;
}

/* ---------- Numbered heading style ---------- */
/* The "number style" toggle (inc/heading-number-style.php) puts the value
   in data-number and tags the heading .has_number_style. The old theme
   renders it as a solid orange square; here it becomes the soft accent
   tile the rest of V3 uses, sized in em so it tracks whatever heading
   level it lands on. Flex + baseline alignment on the heading itself is
   what keeps the gap even — as an inline-block it inherited the heading's
   tight letter-spacing and sat too close on H2. */
.gf-article-body h2.has_number_style,
.gf-article-body h3.has_number_style,
.gf-article-body h4.has_number_style {
  display: flex;
  align-items: baseline;
  gap: 0.44em;
  letter-spacing: -0.03em;
}
/* A numbered H3 is a product entry, so it keeps the prototype's 28px and
   sits tight under its divider. */
.gf-article-body h3.has_number_style {
  font-size: 28px;
  margin-top: 0;
}
.gf-article-body .has_number_style::before {
  content: attr(data-number);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  box-sizing: border-box;
  min-width: 1.75em;
  height: 1.75em;
  padding: 0 0.35em;
  border-radius: var(--gf-r-sm);
  background: var(--gf-accent-soft);
  color: var(--gf-accent-text);
  font-family: var(--gf-mono);
  font-weight: 500;
  font-size: 0.58em;
  line-height: 1;
  letter-spacing: 0;
  /* Undo dist/style.css's .has_number_style:before orange block. */
  aspect-ratio: auto;
  margin-inline-end: 0;
  padding-top: 0;
}
/* Writers type 1, 2, 3 — the design shows 01, 02, 03. Padding is done
   here rather than in inc/heading-number-style.php because that filter is
   shared with un-migrated pages, and purely as presentation: the stored
   attribute stays "1". Only single digits are listed, so 10+ and any
   non-numeric label (e.g. "A") are left exactly as typed. */
.gf-article-body .has_number_style[data-number="1"]::before,
.gf-article-body .has_number_style[data-number="2"]::before,
.gf-article-body .has_number_style[data-number="3"]::before,
.gf-article-body .has_number_style[data-number="4"]::before,
.gf-article-body .has_number_style[data-number="5"]::before,
.gf-article-body .has_number_style[data-number="6"]::before,
.gf-article-body .has_number_style[data-number="7"]::before,
.gf-article-body .has_number_style[data-number="8"]::before,
.gf-article-body .has_number_style[data-number="9"]::before {
  content: "0" attr(data-number);
}


/* ---------- Info Box block ---------- */
/* blocks/info-box is shared with un-migrated pages, so its render.php is
   left alone and the four Tailwind variants are re-skinned here. Doubled
   class: the variant background is `.info_box_block.bg-success-100`
   (2 classes) and dist/style.css is printed last, so a plain
   `.gf-article-body .info_box_block` would tie and lose.
   
   No coloured left rule and no tinted fill — that callout pattern isn't
   in the design system anywhere. This is the same recessed panel the
   sidebar and partner cards use (--gf-sunk, hairline, --gf-r), with the
   variant showing only in the mono kicker and its icon, exactly how every
   other V3 label works. */
.gf-article-body .info_box_block.info_box_block {
  --gf-info: var(--gf-quiet);
  display: block;
  padding: 18px 20px;
  border: var(--gf-hair);
  border-radius: var(--gf-r);
  background: var(--gf-sunk);
  margin: 0 0 24px;
  max-width: 68ch;
  box-shadow: none;
}
.gf-article-body .info_box_block.bg-success-100 { --gf-info: var(--gf-ok); }
.gf-article-body .info_box_block.bg-warning-100 { --gf-info: var(--gf-warn); }
/* Pricing gets neutral ink, not the accent: --gf-accent-text lands on a
   brick red in light mode, which reads as a warning next to a number.
   The design's own price figure (is-style-gf-price) is --gf-text for the
   same reason, so this matches it. */
.gf-article-body .info_box_block.bg-pricing-100 { --gf-info: var(--gf-2-text); }

.gf-article-body .info_box_block > div:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.gf-article-body .info_box_block svg,
.gf-article-body .info_box_block img {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--gf-info);
}
.gf-article-body .info_box_block h4 {
  font-family: var(--gf-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gf-info);
  margin: 0;
}
.gf-article-body .info_box_block .info-box-content,
.gf-article-body .info_box_block .info-box-content p {
  font-family: var(--gf-serif);
  font-size: 16px;
  line-height: 1.62;
  color: var(--gf-text);
  margin: 0;
  max-width: none;
}
.gf-article-body .info_box_block .info-box-content p + p {
  margin-top: 10px;
}

/* ---------- FAQ open/close transition ---------- */
/* ::details-content is animatable in Chromium 131+/Safari 18.4+; with
   interpolate-size the auto height can be interpolated. Anywhere it isn't
   supported the FAQ simply snaps open as before — no JS either way. */
.gf-article-body {
  interpolate-size: allow-keywords;
}
.gf-article-body details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    content-visibility 0.3s allow-discrete;
}
.gf-article-body details[open]::details-content {
  block-size: auto;
}
.gf-article-body details > summary::after {
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), background-color 0.15s;
}
.gf-article-body details > summary:hover::after {
  background: var(--gf-text);
}
@media (prefers-reduced-motion: reduce) {
  .gf-article-body details::details-content,
  .gf-article-body details > summary::after {
    transition: none;
  }
}

/* ---------- Sidebar: custom HTML + widget areas ---------- */
/* Whatever an editor puts in "Sidebar Custom HTML" or the widget area is
   arbitrary markup, so this only sets the surrounding rhythm and the
   default type — it deliberately doesn't box the content, since a banner
   (.gf-ad below) brings its own panel. */
.gf-side-custom,
.gf-side-widgets {
  min-width: 0;
  font-family: var(--gf-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gf-dim);
}
.gf-side-widgets .widget + .widget {
  margin-top: 24px;
}
.gf-side-custom p,
.gf-side-widgets p {
  margin: 0 0 10px;
}
.gf-side-custom p:last-child,
.gf-side-widgets p:last-child {
  margin-bottom: 0;
}
.gf-side-custom a,
.gf-side-widgets a {
  color: var(--gf-link);
  font-weight: 500;
}
.gf-side-widgets .widget-title {
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gf-quiet);
  margin: 0 0 12px;
}
.gf-side-custom img,
.gf-side-widgets img {
  max-width: 100%;
  height: auto;
  border-radius: var(--gf-r-sm);
}

/* ---------- Sidebar banner (.gf-ad) ---------- */
/* A 300x300 house ad built in HTML/CSS rather than as an image: it stays
   sharp, follows light/dark automatically, and the copy stays editable.
   Square by aspect-ratio so both slots line up however long the copy is;
   centred because the sidebar column is 320px. */
.gf-ad {
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  padding: 22px;
  border-radius: var(--gf-r);
  border: var(--gf-hair);
  background: var(--gf-panel);
  overflow: hidden;
  position: relative;
  isolation: isolate;
  text-decoration: none;
  transition: border-color 0.18s;
}
a.gf-ad:hover {
  border-color: var(--gf-line-2);
}
/* Orange glow bleeding in from the top-right, same gesture as the
   closing CTA panel — kept faint so it reads as texture, not a fill. */
.gf-ad::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 90% at 92% -8%, var(--gf-accent-soft), transparent 62%);
}
.gf-ad__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--gf-text);
}
/* Optional square logo, if you have one. */
.gf-ad__mark {
  width: 17px;
  height: 17px;
  flex: none;
  display: block;
  object-fit: contain;
}
/* Used instead of a logo in the supplied banners, so the markup stays
   self-contained — nothing to 404 if an asset path changes. */
.gf-ad__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--gf-brand);
}
.gf-ad--ink .gf-ad__dot {
  background: var(--gf-2);
}
.gf-ad__label {
  margin-left: auto;
  font-family: var(--gf-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gf-quiet);
  border: var(--gf-hair);
  border-radius: 999px;
  padding: 3px 8px;
}
.gf-ad__title {
  font-family: var(--gf-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--gf-text);
  margin: 14px 0 0;
  text-wrap: balance;
}
.gf-ad__text {
  font-family: var(--gf-sans);
  font-size: 12.5px;
  line-height: 1.46;
  color: var(--gf-dim);
  margin: 8px 0 0;
}
/* Pushes the CTA to the bottom edge whatever the copy length, so the two
   banners align when they sit one above the other. */
.gf-ad__spacer {
  flex: 1 1 auto;
  min-height: 10px;
}
.gf-ad__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--gf-r-sm);
  background: var(--gf-brand);
  color: #fff;
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.gf-ad:hover .gf-ad__cta,
.gf-ad__cta:hover {
  background: var(--gf-brand-hover);
  color: #fff;
}
.gf-ad__cta svg {
  flex: none;
}
/* Neutral variant, for when two orange CTAs stacked would be too much. */
.gf-ad--ink .gf-ad__cta {
  background: var(--gf-text);
  color: var(--gf-bg);
}
.gf-ad--ink:hover .gf-ad__cta,
.gf-ad--ink .gf-ad__cta:hover {
  background: var(--gf-2);
  color: var(--gf-bg);
}
.gf-ad--ink::before {
  background: radial-gradient(70% 90% at 92% -8%, var(--gf-2-soft), transparent 62%);
}

/* ---------- Banner: Sparkian variant ---------- */
/* Matches the Sparkian card in the geekflare.com/tools/* sidebar exactly:
   #0d0d10 ground with a warm radial from the top-right and a cool one
   from the bottom-left. Dark in both themes, like the code panel and the
   closing CTA, so the gradient reads the same everywhere. */
.gf-ad--spark {
  background-color: #0d0d10;
  background-image:
    radial-gradient(85% 65% at 78% -12%, rgba(237, 117, 69, 0.45), transparent 60%),
    radial-gradient(70% 55% at 6% 106%, rgba(131, 185, 153, 0.16), transparent 62%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--gf-shadow-lg);
  color-scheme: dark;
}
/* The variant paints its own gradient, so the shared glow layer is off. */
.gf-ad--spark::before { content: none; }
a.gf-ad--spark:hover { border-color: rgba(255, 255, 255, 0.28); }
.gf-ad--spark .gf-ad__title { color: #fff; }
.gf-ad--spark .gf-ad__text { color: rgba(255, 255, 255, 0.7); }
.gf-ad--spark .gf-ad__cta {
  background: #fff;
  color: #131211;
  border-radius: 999px;
  align-self: stretch;
  justify-content: space-between;
}
.gf-ad--spark:hover .gf-ad__cta,
.gf-ad--spark .gf-ad__cta:hover {
  background: rgba(255, 255, 255, 0.88);
  color: #131211;
}

/* Logos come from the stylesheet, not the widget markup: paths resolve
   against this file so they work on any install, and the banner HTML an
   editor pastes stays free of anything that can 404. */
.gf-ad__wordmark {
  display: block;
  width: 85px;
  height: 22px;
  background: url("../../assets/images/v3/sparkian-logo.png") left center / contain no-repeat;
  /* The asset is dark; the card is always dark, so knock it to white. */
  filter: brightness(0) invert(1);
}
.gf-ad__pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-family: var(--gf-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.gf-ad__pill::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #ed7545;
}
.gf-ad__models {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
}
.gf-ad__model {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: var(--gf-r-sm);
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
}
.gf-ad__model--openai { background-image: url("../../assets/images/v3/openai-light.svg"); }
.gf-ad__model--claude { background-image: url("../../assets/images/v3/claude-logo.svg"); }
.gf-ad__model--gemini { background-image: url("../../assets/images/v3/gemini-logo.svg"); }
.gf-ad__model--more {
  display: grid;
  place-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  font-family: var(--gf-mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.8);
}

/* Banners with no brand row start straight on the headline. */
.gf-ad__title:first-child { margin-top: 0; }

/* ---------- Banner: brand row + capability chips ---------- */
/* The Geekflare card has less copy than the Sparkian one, which left a
   gap above the CTA. Filled the same way the live card on
   geekflare.com/tools/* does — a small grid of capability tiles — so the
   two banners read as a pair rather than one looking unfinished. */
.gf-ad__logo {
  display: block;
  width: 22px;
  height: 22px;
  flex: none;
  background: url("../../assets/images/v3/geekflare-mark.png") center / contain no-repeat;
}
.gf-ad__brandname {
  font-family: var(--gf-sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.028em;
  color: var(--gf-text);
}
.gf-ad__caps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}
.gf-ad__cap {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: var(--gf-r-sm);
  border: var(--gf-hair);
  background: var(--gf-sunk);
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--gf-text);
}
.gf-ad__cap svg {
  flex: none;
  color: var(--gf-accent-text);
}

/* ---------- Product comparison table (main/summary-table) ---------- */
/* blocks/summary-table is shared with un-migrated pages, so its
   render.php is untouched and its Tailwind utilities are re-skinned here.
   The wrapper has no class of its own — it's all utilities — so it's
   matched by what it contains. :has() takes the specificity of its
   argument, making this 0,1,2, which beats the single utility classes
   without !important. */
.gf-article-body div:has(> table.product-compare-table) {
  /* The old design pulled this 344px out to the right (lg:-me-[21.5rem])
     so it ran under that layout's sidebar. In V3 the article column is a
     grid track, so the bleed just overlapped the sidebar — the table
     stays inside its column and scrolls instead. */
  margin: 0 0 24px;
  border: var(--gf-hair);
  border-radius: var(--gf-r);
  overflow: auto;
  position: static;
  z-index: auto;
}
/* The block sets `w-full max-w-full`, which caps the table at the column
   width and squeezes the columns; it needs to be free to overflow and
   scroll. border-collapse stays `separate` (dist/style.css sets it) —
   the generic .gf-article-body table rule would switch it to `collapse`,
   which silently breaks the sticky columns below. */
.gf-article-body table.product-compare-table {
  margin: 0;
  width: auto;
  min-width: 100%;
  max-width: none;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--gf-panel);
}

/* Sticky first/last columns are the block's own design — the product
   name and the CTA stay put while the middle scrolls. They only work if
   the cells are opaque, and the block sets a background on the tbody
   cells only, hardcoded to #fff. So: tokens instead of #fff (dark mode),
   and the header's sticky cells get one too — without it the pinned
   header text sat transparent over the columns scrolling beneath it. */
.gf-article-body .product-compare-table thead th:first-child,
.gf-article-body .product-compare-table thead th:last-child {
  background: var(--gf-sunk);
}
.gf-article-body .product-compare-table tbody td:first-child,
.gf-article-body .product-compare-table tbody td:last-child {
  background: var(--gf-panel);
}
.gf-article-body .product-compare-table thead tr {
  background: var(--gf-sunk);
}
.gf-article-body .product-compare-table th {
  background: none;
  font-family: var(--gf-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gf-quiet);
  padding: 13px 16px;
  /* Columns can carry an editor-set width. A label like "Starting price"
     is wider than a 120px column at this tracking, and nowrap made it
     spill over its neighbour — so headers wrap and the widths hold. */
  white-space: normal;
  line-height: 1.35;
  border-bottom: var(--gf-hair);
}
/* Row rules live on the cells: with border-collapse: separate a border
   on <tr> doesn't paint. The block's own rule hardcodes #e9eaeb. */
.gf-article-body .product-compare-table tbody tr:not(:last-child) td {
  border-bottom: var(--gf-hair);
}
.gf-article-body .product-compare-table tbody tr {
  border: 0;
}
/* Padding belongs to the inner div the block renders, so the cell keeps
   none — otherwise the two stack and rows get very tall. */
.gf-article-body .product-compare-table td {
  padding: 0;
  vertical-align: middle;
}
.gf-article-body .product-compare-table td > div {
  padding: 14px 16px;
  font-family: var(--gf-sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gf-dim);
}

.gf-article-body .product-compare-table .product-logo-wrap {
  width: 26px;
  flex: none;
}
.gf-article-body .product-compare-table .product-logo-wrap img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: var(--gf-r-sm);
  margin: 0;
  border: 0;
}
.gf-article-body .product-compare-table .product-name-wrap {
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  color: var(--gf-text);
}
.gf-article-body .product-compare-table .pricing-wrap > div {
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--gf-text);
}

/* Yes/no marks ship with hardcoded hex fills, so they're matched on the
   presentation attribute and recoloured to the same tokens the pros/cons
   block uses. */
.gf-article-body .product-compare-table .free-plan-wrap svg {
  width: 19px;
  height: 19px;
}
.gf-article-body .product-compare-table path[fill="#039855"] {
  fill: var(--gf-pro);
  stroke: var(--gf-pro);
}
.gf-article-body .product-compare-table path[fill="#D92D20"] {
  fill: var(--gf-con);
  stroke: var(--gf-con);
}
.gf-article-body .product-compare-table path.text-rating-star { fill: var(--gf-warn); }
.gf-article-body .product-compare-table path.text-gray-300 { fill: var(--gf-line-2); }

/* The action button is an <a>, so .gf-article-body a (0,1,1) was winning
   over .btn--primary and painting the label --gf-link — orange text on an
   orange button. Two classes deep here so the button wins. */
.gf-article-body .product-compare-table a.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--gf-r-sm);
  background: var(--gf-brand);
  border: 0;
  color: #fff;
  font-family: var(--gf-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s;
}
.gf-article-body .product-compare-table a.btn:hover {
  background: var(--gf-brand-hover);
  color: #fff;
  text-decoration: none;
}
.gf-article-body .product-compare-table a.btn .btn-icon {
  width: 14px;
  height: 14px;
}
.gf-article-body .product-compare-table a.btn .btn-icon path {
  stroke: currentColor;
}
