/*
 * v2 blog and FAQ layouts (GoSearch marketing website v2, Figma "v.2 Blog Landing / GS" and
 * "v.2 Blog Single Page / GS"). Loaded by the blog and FAQ child themes through
 * gs_blog_v2_enqueue_assets(), so only those sites get it. Rules are scoped under .gs-blog, except
 * the framed page chrome these templates turn on (.gs-frame, the framed navbar, footer and CTA).
 *
 * The purged Bootstrap build (css/bootstrap-wp.min.css) only has the classes the sites used at
 * the last crawl, so these templates use their own classes rather than new Bootstrap utilities.
 */

/* The search form also renders outside .gs-blog (404, tag and author archives), so it gets the tokens too. */
.gs-blog,
.gs-search {
  --gs-text-default: #091f32;
  --gs-text-strong: #1a232e;
  --gs-text-secondary: #3f4c60;
  --gs-text-tertiary: #5a6678;
  --gs-text-muted: #6d7888;
  --gs-primary: #00beac;
  --gs-primary-hover: #00a898;
  --gs-brand-surface: #edfaf9;
  --gs-brand-text: #009486;
  --gs-border: #e6ebef;
  --gs-border-strong: #ced3d9;
  --gs-border-button: #dbdde1;
  --gs-surface: #fff;
  --gs-surface-subtle: #f8f9fa;
  --gs-surface-placeholder: #f0f2f3;
  --gs-dark: #1a232e;
  --gs-sticky-top: 64px;
  /* The old blog cards' hover, kept as the one hover for every v2 card. */
  --gs-shadow-raised: 0 4px 10px rgb(109 120 136 / 15%);

  color: var(--gs-text-default);
  font-family: inherit;
}

.gs-blog *,
.gs-blog *::before,
.gs-blog *::after {
  box-sizing: border-box;
}

.gs-blog a {
  text-decoration: none;
}

/* Components below set display, which would otherwise override the hidden attribute. */
.gs-blog [hidden] {
  display: none !important;
}

.gs-blog-container {
  width: 100%;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 32px;
  padding-left: 32px;
}

/*
 * Page frame, as on the homepage and Enterprise page (marketing_v2.css on gosearch.ai): a 1140px
 * gray column with white panels 1px inside it and 1px apart, so the gray shows as thin lines
 * around and between them. The navbar's side borders, the closing CTA and the footer continue it
 * (header.php and footer.php, with get_header() / get_footer() args 'frame' => true).
 */
.gs-frame {
  box-sizing: border-box;
  max-width: 1140px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 1px 1px;
  background: #e6ebef;
}

/* The closing CTA runs edge to edge, and the footer runs into the bottom of the page. */
.gs-frame--cta {
  padding: 0 0 1px;
}

/* Squarer than the 16px card on pages without the frame (php_components/action_form.php). */
#ActionFormV2.gs-frame .action-form-card {
  border-radius: 8px;
}

.gs-frame--footer {
  padding: 0 1px;
}

.gs-frame__footer {
  /* 30px, not 32px: leaves the link columns the 878px they need for one row of six (Footer.inc). */
  padding-right: 30px;
  padding-left: 30px;
  border-radius: 8px 8px 0 0;
}

/* Lines the navbar up with the frame (HTMLComponents::externalGoSearchNavBar). */
.navbar-v3-side-borders {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  max-width: 1140px;
  height: 64px;
  margin: 0 auto;
  border-right: 1px solid #e6ebef;
  border-left: 1px solid #e6ebef;
  pointer-events: none;
}

/* Once scrolled, the navbar has a shadow instead (js/navbar.js). */
.navbar-v3.shadow .navbar-v3-side-borders {
  border-color: transparent;
}

/* The logo and buttons line up with the page content, as on gosearch.ai's framed pages. */
.navbar-v3-row--framed {
  max-width: 1140px;
  padding-right: 32px;
  padding-left: 32px;
}

@media (max-width: 767.98px) {
  .navbar-v3-row--framed {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.gs-panel {
  border-radius: 8px;
  background: var(--gs-surface);
}

/* The top panel hangs from the navbar, so it only rounds its bottom corners. */
.gs-panel--top {
  border-radius: 0 0 8px 8px;
  padding-bottom: 32px;
}

.gs-panel + .gs-panel {
  margin-top: 1px;
}

/* ---------- Shared pieces ---------- */

/* Inline SVG icons (gs_blog_v2_icon()): sized by the font, coloured by the text. */
.gs-icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

.gs-blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.gs-blog-meta__text {
  color: var(--gs-text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.26px;
  text-transform: uppercase;
}

/* Keeps the dot with the date when a long category name wraps the line. */
.gs-blog-meta__group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.gs-blog-meta__dot {
  display: inline-block;
  flex: none;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gs-text-secondary);
}

.gs-blog-badge {
  display: inline-flex;
  align-items: center;
  min-width: 28px;
  padding: 4px 8px;
  border: 1px solid var(--gs-border-strong);
  border-radius: 44px;
  color: var(--gs-text-secondary);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.03px;
  text-transform: uppercase;
  white-space: nowrap;
}

.gs-blog-badge--brand {
  border-color: var(--gs-brand-surface);
  background: var(--gs-brand-surface);
  color: var(--gs-brand-text);
  text-transform: none;
}

.gs-blog-badge--dark,
.gs-blog a.gs-blog-badge--dark {
  color: var(--gs-text-strong);
}

.gs-blog a.gs-blog-badge--dark:hover {
  border-color: var(--gs-primary);
}

.gs-text-link,
.gs-blog a.gs-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gs-primary);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.gs-blog a.gs-text-link:hover {
  color: var(--gs-primary-hover);
}

.gs-btn,
.gs-blog a.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.gs-btn--sm,
.gs-blog a.gs-btn--sm {
  padding: 6px 12px;
  font-size: 14px;
  line-height: 20px;
}

.gs-btn--lg,
.gs-blog a.gs-btn--lg {
  padding: 13px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.gs-btn--block {
  width: 100%;
}

.gs-btn--primary,
.gs-blog a.gs-btn--primary {
  background: var(--gs-primary);
  color: #fff;
}

.gs-blog a.gs-btn--primary:hover {
  background: var(--gs-primary-hover);
  color: #fff;
}

.gs-btn--outline,
.gs-blog a.gs-btn--outline {
  border-color: var(--gs-border-button);
  background: var(--gs-surface);
  color: var(--gs-text-default);
}

.gs-blog a.gs-btn--outline:hover {
  border-color: var(--gs-text-muted);
  color: var(--gs-text-default);
}

.gs-blog :focus-visible {
  outline: 2px solid var(--gs-primary);
  outline-offset: 2px;
}

/* ---------- Article cards ---------- */

/*
 * White cards on a 1px gray frame, like the frame grids on the homepage and Enterprise page: the
 * grid's gray background shows between the cards and in their rounded corners.
 */
.gs-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border-radius: 9px;
  background: var(--gs-border);
}

.gs-blog-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/*
 * A short last row would show empty gray cells, so a blank white cell fills the rest of it, sized
 * from the number of cards: in three columns, 3n+1 cards leave two cells and 3n+2 leave one. The
 * two- and one-column grids redo this below (.gs-blog-grid--2 here, the breakpoints at the end).
 */
.gs-blog-grid::after {
  content: '';
  display: none;
  border-radius: 8px;
  background: var(--gs-surface);
}

.gs-blog-grid:has(> :last-child:nth-child(3n + 1))::after {
  display: block;
  grid-column: span 2;
}

.gs-blog-grid:has(> :last-child:nth-child(3n + 2))::after {
  display: block;
  grid-column: span 1;
}

.gs-blog-grid--2:has(> :last-child:nth-child(even))::after {
  display: none;
}

.gs-blog-grid--2:has(> :last-child:nth-child(odd))::after {
  display: block;
  grid-column: span 1;
}

.gs-blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 8px;
  background: var(--gs-surface);
}

/*
 * Featured images are banners with text baked in (670x361 and 2x), so image frames use that
 * shape instead of Figma's placeholder boxes; cropping to the placeholder cut the text off.
 */
.gs-blog-card__media {
  display: block;
  padding: 16px;
}

.gs-blog-card__media,
.gs-blog-featured__thumb,
.gs-blog-hero__media,
.gs-article-hero__media {
  overflow: hidden;
}

/* The frame clips the image so it can zoom on hover inside its rounded corners. */
.gs-blog-card__frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 670 / 361;
  border-radius: 16px;
  background: var(--gs-surface-placeholder);
}

.gs-blog-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px 32px 64px;
}

/* Badge and date stay on one line; a long category name is cut short instead of wrapping. */
.gs-blog-card .gs-blog-meta {
  flex-wrap: nowrap;
  min-width: 0;
}

.gs-blog-card .gs-blog-badge {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gs-blog-card .gs-blog-meta__group {
  flex: none;
}

.gs-blog-card__title {
  margin: 0;
  color: var(--gs-text-default);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.25px;
}

/* Hover (mouse only): the card is raised, the image zooms and the title turns teal. */
.gs-blog-card__link,
.gs-blog-card__image,
.gs-blog-card__title {
  transition: box-shadow 0.2s ease, color 0.2s ease, transform 0.35s ease;
}

@media (hover: hover) {
  /* Lifts the card above its neighbours so the shadow isn't painted over. */
  .gs-blog-card:hover {
    position: relative;
    z-index: 1;
  }

  .gs-blog-card__link:hover {
    box-shadow: var(--gs-shadow-raised);
  }

  .gs-blog-card__link:hover .gs-blog-card__image {
    transform: scale(1.05);
  }

  .gs-blog-card__link:hover .gs-blog-card__title {
    color: var(--gs-primary);
  }
}

.gs-blog-card:focus-within {
  position: relative;
  z-index: 1;
}

.gs-blog-card__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gs-text-secondary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* ---------- Landing: intro, latest post, featured posts ---------- */

.gs-blog-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 80px;
}

.gs-blog-intro__title {
  margin: 0;
  color: var(--gs-text-default);
  font-size: 56px;
  font-weight: 700;
  line-height: 68px;
  letter-spacing: -1.5px;
}

.gs-blog-intro__subtitle {
  margin: 0;
  color: var(--gs-text-default);
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
}

.gs-blog-intro--search {
  padding-top: 30px;
}

.gs-blog-intro--search .gs-blog-intro__title {
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -1px;
}

.gs-blog-hero {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  padding: 20px;
  border-radius: 16px;
  background: var(--gs-surface-subtle);
  transition: box-shadow 0.2s ease;
}

.gs-blog-hero__media {
  display: block;
  flex: 1 1 0;
  align-self: center;
  min-width: 0;
  aspect-ratio: 670 / 361;
  border-radius: 16px;
  background: var(--gs-surface-placeholder);
}

.gs-blog-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-blog-hero__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.gs-blog-hero__title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.5px;
}

.gs-blog .gs-blog-hero__title a {
  color: var(--gs-text-default);
}

.gs-blog .gs-blog-hero__title a:hover {
  color: var(--gs-primary);
}

/* The latest and featured posts share the article cards' hover: raised, image zoom, teal title. */
.gs-blog-hero__image,
.gs-blog-featured__thumb img {
  transition: transform 0.35s ease;
}

.gs-blog .gs-blog-hero__title a,
.gs-blog-featured__name {
  transition: color 0.2s ease;
}

@media (hover: hover) {
  .gs-blog-hero:hover,
  .gs-blog .gs-blog-featured__item:hover {
    box-shadow: var(--gs-shadow-raised);
  }

  .gs-blog-hero:hover .gs-blog-hero__image,
  .gs-blog .gs-blog-featured__item:hover .gs-blog-featured__thumb img {
    transform: scale(1.05);
  }

  .gs-blog .gs-blog-hero:hover .gs-blog-hero__title a,
  .gs-blog .gs-blog-featured__item:hover .gs-blog-featured__name {
    color: var(--gs-primary);
  }
}

.gs-blog-hero__excerpt {
  margin: 0;
  color: var(--gs-text-secondary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.32px;
}

.gs-blog-featured {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.gs-blog-featured__title {
  margin: 0;
  color: #53626f;
  font-size: 14px;
  font-weight: 800;
  line-height: 24px;
  letter-spacing: 0.56px;
  text-transform: uppercase;
}

.gs-blog-featured__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.gs-blog .gs-blog-featured__item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--gs-surface-subtle);
  color: var(--gs-text-strong);
  transition: box-shadow 0.2s ease;
}

.gs-blog-featured__thumb {
  flex: none;
  width: 160px;
  height: 110px;
  border-radius: 12px;
  background: var(--gs-surface-placeholder);
}

.gs-blog-featured__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-blog-featured__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

/*
 * As in the design, every featured card is the thumbnail's height (110px + padding): the category
 * keeps to one line and the title to four, so a long category name can't stretch the row.
 */
.gs-blog-featured__category {
  overflow: hidden;
  color: var(--gs-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-blog-featured__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

/* ---------- Landing: filter bar and grid ---------- */

.gs-blog-articles {
  position: relative;
  padding-top: 32px;
  padding-bottom: 32px;
}

.gs-blog-filter-sentinel {
  position: absolute;
  top: 32px;
  left: 0;
  width: 1px;
  height: 1px;
}

.gs-blog-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-radius: 8px;
  background: var(--gs-surface);
}

.gs-blog-filter[data-gs-filter] {
  position: sticky;
  z-index: 1010;
  top: var(--gs-sticky-top);
  transition: box-shadow 0.15s ease-in-out;
}

/*
 * While the filter bar is stuck, it and the navbar read as one piece: the navbar drops the shadow
 * it gets on scroll (Bootstrap's .shadow, hence !important) and only the bar casts one. Without
 * its shadow the navbar keeps its side borders, which run down the edges of the bar.
 */
body:has(.gs-blog-filter.is-stuck) .navbar-v3.shadow {
  box-shadow: none !important;
}

body:has(.gs-blog-filter.is-stuck) .navbar-v3.shadow .navbar-v3-side-borders {
  border-color: #e6ebef;
}

/* Stuck under the navbar: full container width with a shadow, and the quieter CTA */
.gs-blog-filter.is-stuck {
  margin-right: -32px;
  margin-left: -32px;
  padding-right: 32px;
  padding-left: 16px;
  border-radius: 0 0 8px 8px;
  /* A 1px line separates it from the navbar (inset, so the bar doesn't change height). */
  box-shadow: inset 0 1px 0 var(--gs-border), 0 4px 10px rgb(109 120 136 / 15%);
}

.gs-blog-filter__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gs-blog-filter__cta-stuck,
.gs-blog a.gs-blog-filter__cta-stuck {
  display: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.gs-blog-filter.is-stuck .gs-blog-filter__cta {
  display: none;
}

.gs-blog-filter.is-stuck .gs-blog-filter__cta-stuck {
  display: inline-flex;
}

.gs-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 252px;
  height: 40px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  background: var(--gs-surface);
}

.gs-search:focus-within {
  border-color: var(--gs-primary);
}

.gs-search__icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--gs-text-muted);
}

.gs-search__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--gs-text-default);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.gs-search__input::placeholder {
  color: var(--gs-text-tertiary);
  opacity: 1;
}

.gs-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.gs-dropdown {
  position: relative;
}

.gs-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  background: var(--gs-surface);
  color: #0b2138;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
}

.gs-dropdown__toggle:hover {
  border-color: var(--gs-border-strong);
}

.gs-dropdown__toggle .gs-icon--angle-down {
  transition: transform 0.15s ease-in-out;
}

.gs-dropdown__toggle[aria-expanded='true'] .gs-icon--angle-down {
  transform: rotate(180deg);
}

.gs-dropdown__menu {
  position: absolute;
  z-index: 1020;
  top: calc(100% + 4px);
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 100%;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  background: var(--gs-surface);
  box-shadow: 0 4px 2px rgb(0 0 0 / 10%);
  list-style: none;
}

.gs-blog .gs-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--gs-text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.gs-blog .gs-dropdown__item:hover,
.gs-blog .gs-dropdown__item:focus-visible {
  background: var(--gs-surface-subtle);
  color: var(--gs-text-strong);
}

.gs-dropdown__item .gs-icon--check {
  color: var(--gs-text-tertiary);
  font-size: 16px;
}

.gs-blog-articles__title {
  margin: 24px 0;
  color: var(--gs-text-strong);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.5px;
}

.gs-blog-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
}

.gs-blog-more [data-gs-load-more] .gs-icon {
  transition: transform 0.2s ease;
}

.gs-blog-more__count {
  margin: 0;
  color: var(--gs-text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.gs-blog a.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Results line and "Clear filters" on category and search results. */
.gs-blog-results {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: -8px 0 24px;
}

.gs-blog-results__label {
  margin: 0;
  color: var(--gs-text-secondary);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.gs-blog-empty {
  margin: 0 0 32px;
  padding: 40px 20px;
  border: 1px dashed var(--gs-border-strong);
  border-radius: 16px;
  text-align: center;
}

.gs-blog-empty__title {
  margin: 0;
  color: var(--gs-text-default);
  font-size: 18px;
  font-weight: 800;
  line-height: 26px;
}

.gs-blog-empty__text {
  margin: 8px 0 18px;
  color: var(--gs-text-secondary);
  font-size: 16px;
  line-height: 24px;
}

/* After the last Load more: browse by category instead. */
.gs-blog-browse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gs-blog-browse__title {
  margin: 0;
  color: var(--gs-text-default);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.gs-chip-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gs-blog a.gs-chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  background: var(--gs-surface);
  color: var(--gs-text-default);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.gs-blog a.gs-chip:hover {
  border-color: var(--gs-primary);
  color: var(--gs-primary);
}

.gs-blog a.gs-blog-more__link {
  color: var(--gs-text-secondary);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: underline;
}

.gs-blog a.gs-blog-more__link:hover {
  color: var(--gs-text-default);
}

/* Numbered pagination on /page/N/ and search results. */
.gs-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gs-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 6px;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  color: var(--gs-text-default);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.gs-blog .gs-pagination a.page-numbers:hover {
  border-color: var(--gs-primary);
  color: var(--gs-primary);
}

.gs-pagination .page-numbers.current {
  border-color: var(--gs-text-default);
  background: var(--gs-text-default);
  color: #fff;
}

.gs-pagination .page-numbers.dots {
  min-width: 24px;
  border: 0;
  color: var(--gs-text-secondary);
}

.gs-blog-intro--paged {
  padding-top: 24px;
}

/* ---------- Article: breadcrumb and hero ---------- */

.gs-breadcrumb {
  padding-top: 80px;
}

.gs-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.03px;
}

.gs-breadcrumb__item {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}

.gs-blog .gs-breadcrumb__link {
  color: var(--gs-primary);
}

.gs-blog .gs-breadcrumb__link:hover {
  color: var(--gs-primary-hover);
}

.gs-breadcrumb__separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  color: var(--gs-text-secondary);
  font-size: 8px;
}

.gs-breadcrumb__current {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--gs-text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-article-hero {
  display: flex;
  gap: 30px;
  margin-top: 30px;
  padding: 20px 0;
}

.gs-article-hero__text {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.gs-article-hero__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.gs-article-hero__title {
  margin: 0;
  color: var(--gs-text-default);
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1px;
}

.gs-article-hero__excerpt {
  margin: 0;
  color: var(--gs-text-secondary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0.32px;
}

.gs-article-hero__media {
  flex: 1 1 0;
  align-self: center;
  min-width: 0;
  aspect-ratio: 670 / 361;
  border-radius: 16px;
  background: linear-gradient(125.5deg, #b6f2ed 0%, #d1efff 50%, #e8e3ff 100%);
}

.gs-article-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gs-profile__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.gs-profile__details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gs-profile__name,
.gs-blog a.gs-profile__name {
  color: var(--gs-text-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.gs-blog a.gs-profile__name:hover {
  color: var(--gs-primary);
}

.gs-profile__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--gs-text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

/* ---------- Article: sidebar ---------- */

.gs-article-layout {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.gs-article-aside {
  position: sticky;
  top: calc(var(--gs-sticky-top) + 24px);
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 24px;
  width: 262px;
  max-height: calc(100vh - var(--gs-sticky-top) - 48px);
  overflow: hidden;
}

/*
 * When the table of contents doesn't fit above the demo card, its window clips it and blog-v2.js
 * slides the list up as the reader moves through the article, so the demo card and share buttons
 * always stay in view with no scroll bar. The list fades out at the edges it is clipped at.
 * Without the script the window scrolls instead (wheel, touch or keyboard), still with no bar.
 */
.gs-toc-window {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.gs-toc-window::-webkit-scrollbar {
  display: none;
}

.gs-toc-window.is-enhanced {
  overflow: hidden;
}

/* Only a clipped list moves, so only it gets its own layer. */
.gs-toc-window.is-clipped .gs-toc {
  will-change: transform;
}

.gs-toc-window.is-clipped {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
}

.gs-toc-window.is-clipped.is-shifted {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 32px), transparent);
}

.gs-toc-window.is-clipped.is-shifted.is-end {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px);
  mask-image: linear-gradient(to bottom, transparent, #000 24px);
}

.gs-aside-pinned {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 24px;
}

.gs-article-main {
  flex: 1 1 0;
  min-width: 0;
  max-width: 734px;
}

.gs-aside-label {
  margin: 0 0 8px;
  color: var(--gs-text-secondary);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
}

.gs-toc {
  padding-right: 32px;
}

.gs-toc__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gs-blog .gs-toc__link {
  display: block;
  padding: 8px;
  border-radius: 8px;
  color: var(--gs-text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.gs-blog .gs-toc__link:hover {
  color: var(--gs-text-strong);
}

/* <h3> entries (articles with few <h2>s, e.g. interview questions), indented under their section. */
.gs-blog .gs-toc__item--sub .gs-toc__link {
  padding-left: 20px;
}

.gs-blog .gs-toc__link.is-active {
  background: var(--gs-surface-subtle);
  color: var(--gs-text-strong);
  font-weight: 700;
}

.gs-aside-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  background: var(--gs-dark);
}

.gs-aside-cta__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gs-aside-cta__title {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.gs-aside-cta__subtitle {
  margin: 0;
  color: var(--gs-border);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.gs-share__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.gs-icon-btn,
.gs-blog a.gs-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 12px;
  border: 1px solid var(--gs-border);
  border-radius: 40px;
  background: var(--gs-surface);
  color: var(--gs-text-strong);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.gs-icon-btn:hover,
.gs-blog a.gs-icon-btn:hover {
  border-color: var(--gs-border-strong);
  background: var(--gs-surface-subtle);
}

.gs-icon-btn img {
  display: block;
  width: 16px;
  height: 16px;
}

.gs-share__status {
  color: var(--gs-text-secondary);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Article: content ---------- */

.gs-article-content {
  color: var(--gs-text-secondary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.gs-article-content > :first-child {
  margin-top: 0;
}

/*
 * Editors add Spacer blocks around headings for the old layout. Here the headings and blocks
 * carry their own spacing (32px between sections), so spacers would double it.
 */
.gs-article-content .wp-block-spacer {
  display: none;
}

.gs-article-content h2 {
  margin: 32px 0 8px;
  color: var(--gs-text-strong);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.5px;
  scroll-margin-top: calc(var(--gs-sticky-top) + 24px);
}

.gs-article-content h3 {
  margin: 32px 0 16px;
  color: var(--gs-text-strong);
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: -0.25px;
  scroll-margin-top: calc(var(--gs-sticky-top) + 24px);
}

.gs-article-content h4 {
  margin: 24px 0 8px;
  color: var(--gs-text-strong);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.25px;
}

/*
 * Body text. :where() keeps these defaults at one class of specificity: they beat the theme's
 * element rules, while widgets and shortcodes inside a post (e.g. the AI summary) keep their own.
 */
.gs-article-content :where(p, li) {
  color: var(--gs-text-secondary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.gs-article-content :where(p) {
  margin: 0 0 24px;
}

/* Empty paragraphs left in the editor add no space. */
.gs-article-content p:empty {
  display: none;
}

.gs-article-content :where(ul, ol) {
  margin: 0 0 24px;
  padding-left: 24px;
}

/* A paragraph that introduces a list sits right on top of it. */
.gs-article-content :where(p:has(+ ul), p:has(+ ol)) {
  margin-bottom: 0;
}

.gs-article-content :where(strong, b) {
  color: inherit;
  font-weight: 700;
}

/*
 * Inline links in the text: bold primary teal with no underline, darker teal on hover.
 * Links with a class are components (buttons, cards, widgets) and keep their own look.
 */
.gs-blog .gs-article-content a:not([class]) {
  color: var(--gs-primary);
  font-weight: 700;
  text-decoration: none;
}

.gs-blog .gs-article-content a:not([class]):hover {
  color: var(--gs-primary-hover);
}

/* "Related read" card from the [gs_related_read] shortcode. */
.gs-blog .gs-related-read {
  display: flex;
  gap: 16px;
  margin: 0 0 32px;
  padding: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--gs-surface-subtle);
  color: var(--gs-text-secondary);
}

.gs-blog .gs-related-read:hover {
  box-shadow: var(--gs-shadow-raised);
}

.gs-related-read__thumb {
  flex: none;
  width: 160px;
  height: 110px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gs-surface-placeholder);
}

.gs-related-read__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.gs-related-read__body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.gs-related-read__badge {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--gs-border);
  color: var(--gs-text-secondary);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.03px;
}

.gs-related-read__title {
  color: var(--gs-text-strong);
  font-weight: 700;
}

.gs-related-read__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gs-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.26px;
}

.gs-related-read__cta .gs-icon {
  font-size: 12px;
}

.gs-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.gs-article-content figure {
  margin: 0 0 32px;
}

.gs-article-content figcaption {
  margin-top: 8px;
  color: var(--gs-text-muted);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.gs-article-content blockquote {
  margin: 0 0 32px;
  padding: 24px;
  border: 1px solid var(--gs-border);
  border-radius: 16px;
  background: var(--gs-surface-subtle);
}

.gs-article-content blockquote > :last-child {
  margin-bottom: 0;
}

/*
 * Group blocks in classic themes (no theme.json, like these) render their blocks inside an extra
 * <div class="wp-block-group__inner-container">. Inside the gs- components it takes no box, so the
 * blocks lay out as the component's own children (flex items, gaps, margins) with or without it.
 */
.gs-article-content :is(.gs-quote, .gs-quote__photo, .gs-quote__card, .gs-quote__by, .gs-quote__logo,
    .gs-callout, .gs-quick-answer, .gs-quick-answer__card, .gs-faq, .gs-faq__item) > .wp-block-group__inner-container {
  display: contents;
}

/*
 * Quote card (Customer quote pattern; older posts converted by tools/blog-v2/convert-quote-cards.php):
 * photo panel on the left, then the quote, name, role and story link, like the quote card on
 * gosearch.ai/sales. All Groups and Paragraphs, with the photo and logo image blocks in Groups.
 */
.gs-article-content .gs-quote {
  display: flex;
  gap: 1px;
  margin: 0 0 32px;
  padding: 1px;
  border-radius: 9px;
  background: var(--gs-border);
}

.gs-article-content :is(.gs-quote, .gs-quote__by) > :not(.wp-block-group__inner-container),
.gs-article-content :is(.gs-quote, .gs-quote__by) > .wp-block-group__inner-container > *,
.gs-article-content :is(.gs-quote__photo, .gs-quote__logo) :is(figure, .wp-block-image) {
  float: none;
  margin: 0;
}

.gs-quote__photo {
  position: relative;
  flex: none;
  width: 160px;
  min-height: 160px;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--gs-surface);
  background-image: radial-gradient(circle, var(--gs-border) 1px, transparent 1px);
  background-size: 8px 8px;
}

/*
 * The whole photo, standing on the bottom of the panel: a headshot cut out from its background
 * sits on the dotted panel as in the design, and a designed graphic keeps the name printed on it.
 * (.gs-blog: beats the rounded image block style a headshot may still carry.)
 */
.gs-blog .gs-article-content .gs-quote__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
}

.gs-quote__card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px;
  border-radius: 8px;
  background: var(--gs-surface);
}

/* Quote mark (Font Awesome Free "quote-left", see the SVG for its license), in the text colour. */
.gs-quote__card::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background-color: var(--gs-text-strong);
  -webkit-mask: url("../d/images/blog/quote-left.svg") center / contain no-repeat;
  mask: url("../d/images/blog/quote-left.svg") center / contain no-repeat;
}

.gs-article-content blockquote.gs-quote__text {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.gs-article-content .gs-quote__text p {
  margin: 0 0 8px;
  color: #0b2138;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.25px;
}

.gs-article-content .gs-quote__text p:last-child {
  margin-bottom: 0;
}

.gs-quote__text :where(em, i) {
  font-style: normal;
}

.gs-article-content .gs-quote__by {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 16px;
  color: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
}

.gs-blog .gs-article-content .gs-quote__by :where(p) {
  color: inherit;
  font-size: 14px;
  line-height: 20px;
}

.gs-blog .gs-article-content .gs-quote__name {
  color: #0b2138;
  font-weight: 700;
}

.gs-blog .gs-article-content .gs-quote__role {
  color: var(--gs-text-secondary);
  font-weight: 500;
}

.gs-article-content .gs-quote__by .gs-quote__logo {
  margin-top: 8px;
}

.gs-blog .gs-article-content .gs-quote__logo img {
  display: block;
  width: auto;
  max-width: 120px;
  height: 32px;
  border-radius: 0;
  object-fit: contain;
  object-position: left center;
}

.gs-article-content .gs-quote__by .gs-quote__link {
  margin-top: 8px;
}

.gs-blog .gs-article-content .gs-quote__link a {
  color: var(--gs-primary);
  font-weight: 700;
  text-decoration: none;
}

.gs-blog .gs-article-content .gs-quote__link a:hover {
  color: var(--gs-primary-hover);
  text-decoration: underline;
}

/* Phones: one card, with the photo beside the name (as in the mobile design). */
@media (max-width: 767.98px) {
  .gs-article-content .gs-quote {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    column-gap: 16px;
    padding: 16px;
    border: 1px solid var(--gs-border);
    border-radius: 8px;
    background: var(--gs-surface);
  }

  .gs-quote__card {
    display: contents;
  }

  .gs-quote__card::before,
  .gs-article-content blockquote.gs-quote__text {
    grid-column: 1 / -1;
  }

  .gs-article-content blockquote.gs-quote__text {
    margin: 4px 0 32px;
  }

  .gs-article-content .gs-quote__text p {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: 0;
  }

  .gs-quote__photo {
    grid-row: 3;
    grid-column: 1;
    width: 80px;
    height: 80px;
    min-height: 0;
    margin: 0;
    border: 1px solid var(--gs-border);
  }

  /* At 80px a whole graphic is too small to read: a square crop from the top shows the face. */
  .gs-blog .gs-article-content .gs-quote__photo img {
    object-fit: cover;
    object-position: center top;
  }

  .gs-article-content .gs-quote__by {
    grid-row: 3;
    grid-column: 2;
    margin-top: 0;
  }

  .gs-article-content .gs-quote:not(.gs-quote--photo) .gs-quote__by {
    grid-column: 1 / -1;
  }
}

.gs-article-content iframe,
.gs-article-content video {
  max-width: 100%;
  border-radius: 16px;
}

.gs-article-content .wp-block-embed__wrapper iframe {
  width: 100%;
}

/* Callout card (Callout pattern): add the class gs-callout to a Group or Paragraph block. */
.gs-article-content .gs-callout {
  margin: 0 0 32px;
  padding: 24px;
  border: 1px solid var(--gs-border);
  border-radius: 16px;
  background: var(--gs-surface-subtle);
}

.gs-article-content .gs-callout > :last-child:not(.wp-block-group__inner-container),
.gs-article-content .gs-callout > .wp-block-group__inner-container > :last-child {
  margin-bottom: 0;
}

/*
 * "Quick answer" (Quick answer pattern; older posts converted by tools/blog-v2/convert-quick-answers.php):
 * a title over a gray card holding the answer.
 */
.gs-article-content .gs-quick-answer {
  margin: 0 0 32px;
}

.gs-blog .gs-article-content .gs-quick-answer__title {
  margin: 0 0 8px;
  color: var(--gs-text-strong);
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.5px;
}

.gs-article-content .gs-quick-answer__card {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--gs-border);
  border-radius: 16px;
  background: var(--gs-surface-subtle);
}

.gs-article-content .gs-quick-answer__card p {
  margin: 0;
}

/*
 * Stats row: add the class gs-stats to a Columns block (or use the Stats pattern), one column per
 * number. The cards sit on a gray container, like the card grids.
 */
.gs-article-content .gs-stats {
  display: flex;
  gap: 0;
  margin: 0 0 32px;
  border-radius: 9px;
  background: var(--gs-border);
}

.gs-article-content .gs-stats > * {
  flex: 1 1 0;
  margin: 0 -1px 0 0;
  padding: 32px;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  background: var(--gs-surface);
}

.gs-article-content .gs-stats > * > :first-child {
  margin: 0 0 8px;
  color: #0b2138;
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: -1px;
}

.gs-article-content .gs-stats > * > :last-child {
  margin: 0;
  color: var(--gs-text-secondary);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.25px;
}

/* Tables */
.gs-article-content .wp-block-table,
.gs-article-content > table {
  margin: 0 0 32px;
  padding: 0 16px 8px;
  overflow-x: auto;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  background: var(--gs-surface);
}

.gs-article-content table {
  width: 100%;
  border-collapse: collapse;
}

.gs-article-content .wp-block-table table {
  margin: 0;
}

/*
 * WordPress's "fixed width table cells" option breaks words mid-word ("organizatio/ns"). Columns
 * size to their content instead, and a table too wide for the column scrolls inside its card.
 */
.gs-article-content .wp-block-table table,
.gs-article-content > table {
  table-layout: auto;
}

.gs-article-content .wp-block-table table :is(th, td),
.gs-article-content > table :is(th, td) {
  overflow-wrap: normal;
  word-break: normal;
}

.gs-article-content th,
.gs-article-content thead td {
  padding: 16px 8px;
  border: 0;
  border-bottom: 1px solid var(--gs-border);
  color: var(--gs-text-secondary);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: 0.06px;
  text-align: left;
  vertical-align: middle;
}

.gs-article-content td {
  padding: 16px 8px;
  border: 0;
  border-bottom: 1px solid var(--gs-border);
  color: var(--gs-text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  vertical-align: top;
}

/* Skip rows with no content, e.g. a blank first row left in the editor. */
.gs-article-content tr:not(:has(> :not(:empty))) {
  display: none;
}

.gs-article-content tbody tr:last-child td {
  border-bottom: 0;
}

.gs-article-content .wp-block-table thead {
  border-bottom: 0;
}

/*
 * Phones: a table with four or more columns keeps readable columns and scrolls sideways inside
 * its card, instead of squeezing every column (and breaking words) to fit.
 */
@media (max-width: 767.98px) {
  .gs-article-content table:has(tr > :nth-child(4)) :is(th, td) {
    min-width: 128px;
  }
}

/*
 * Wide comparison tables (six or more columns) get tighter cells on larger screens, so a
 * seven-column table fits the article column instead of scrolling.
 */
@media (min-width: 768px) {
  .gs-article-content table:has(tr > :nth-child(6)) :is(th, td) {
    padding-inline: 6px;
  }

  .gs-article-content table:has(tr > :nth-child(6)) td {
    font-size: 13px;
    line-height: 18px;
  }
}

/*
 * A table that still doesn't fit shows a shadow on the side that scrolls, since macOS hides
 * scroll bars and the table would otherwise look cut off. CSS only: the "local" covers scroll
 * with the content and hide each shadow once that edge is reached. On the Table block's wrapper:
 * a bare <table> is display: table, which overflow doesn't apply to.
 */
.gs-article-content .wp-block-table {
  background:
    linear-gradient(to right, var(--gs-surface) 30%, transparent) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--gs-surface) 30%, transparent) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(11, 33, 56, 0.14), transparent)
      left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(11, 33, 56, 0.14), transparent)
      right center / 14px 100% no-repeat scroll,
    var(--gs-surface);
}

/*
 * FAQs: Yoast FAQ blocks and gs-faq sections render as stacked cards in one gray container with
 * 1px gaps, like the card grids.
 */
.gs-article-content .schema-faq,
.gs-article-content .gs-faq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 32px;
  padding: 1px;
  border-radius: 9px;
  background: var(--gs-border);
}

.gs-article-content .schema-faq-section,
.gs-article-content .gs-faq__item {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0 0 -1px;
  padding: 24px 32px;
  border: 1px solid var(--gs-border);
  border-radius: 8px;
  background: var(--gs-surface);
}

/* Inside the gray container the gaps are the borders. */
.gs-article-content .schema-faq > .schema-faq-section,
.gs-article-content .gs-faq .gs-faq__item {
  margin: 0;
  border: 0;
}

.gs-article-content .schema-faq-question {
  color: #0b2138;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

/* One question per gs-faq__item group (the FAQs pattern, and posts converted by tools/blog-v2/convert-faqs.php). */
.gs-article-content .gs-faq__item h3 {
  margin: 0;
  color: #0b2138;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.gs-blog .gs-article-content .schema-faq-answer,
.gs-blog .gs-article-content .gs-faq__item :is(p, ul, ol) {
  margin: 0;
  color: #0b2138;
}

/* Inline "Get a demo" banner: where the post puts [gs_demo_banner], or at the end of the article. */
.gs-article-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0;
  padding: 16px;
  border: 1px solid var(--gs-dark);
  border-radius: 16px;
  background: var(--gs-dark);
}

.gs-blog .gs-article-content .gs-article-banner__text {
  max-width: 423px;
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.gs-blog .gs-article-banner .gs-btn {
  padding: 10px 12px;
}

/*
 * Small screens have no sidebar demo card, so (as in the mobile design) a "See GoSearch in action"
 * button floats at the bottom of the screen instead of the inline banner. It goes to the demo page.
 */
.gs-demo-float {
  display: none;
}

@media (max-width: 991.98px) {
  .gs-blog .gs-article-banner {
    display: none;
  }

  .gs-blog a.gs-demo-float {
    position: fixed;
    z-index: 1000;
    bottom: 16px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--gs-primary);
    box-shadow: 0 4px 4px rgb(0 0 0 / 10%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
    text-decoration: none;
    white-space: nowrap;
    transform: translateX(-50%);
  }

  .gs-blog a.gs-demo-float:hover {
    background: var(--gs-primary-hover);
    color: #fff;
  }

  .gs-demo-float .gs-icon {
    font-size: 16px;
  }

  /* Room for the button, so it never covers the end of the page or the element in focus. */
  body:has(.gs-demo-float) {
    padding-bottom: 72px;
  }

  html:has(.gs-demo-float) {
    scroll-padding-bottom: 80px;
  }
}

/* ---------- Article: author and related posts ---------- */

.gs-author {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--gs-border);
  border-radius: 16px;
  background: var(--gs-surface-subtle);
  scroll-margin-top: calc(var(--gs-sticky-top) + 24px);
}

.gs-author__title {
  color: var(--gs-text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.gs-author__heading {
  margin: 0 0 4px;
  color: var(--gs-text-strong);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.gs-author__bio {
  margin: 0;
  color: var(--gs-text-secondary);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.gs-blog a.gs-author__linkedin {
  align-self: flex-end;
  gap: 6px;
  border-color: var(--gs-border-strong);
  border-radius: 6px;
  color: var(--gs-text-strong);
}

.gs-keep-reading {
  margin-top: 32px;
}

.gs-keep-reading__title {
  margin: 0 0 8px;
  color: var(--gs-text-strong);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.25px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  .gs-article-layout {
    gap: 48px;
  }

  /* Narrower cards: less side padding, so the badge and date fit on one line. */
  .gs-blog-card__body {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 991.98px) {
  .gs-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gs-blog-grid:has(> :last-child:nth-child(even))::after {
    display: none;
  }

  .gs-blog-grid:has(> :last-child:nth-child(odd))::after {
    display: block;
    grid-column: span 1;
  }

  .gs-blog-hero {
    flex-direction: column;
    gap: 20px;
  }

  .gs-blog-hero__media {
    flex: none;
    align-self: stretch;
  }

  .gs-blog-featured__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .gs-article-hero {
    flex-direction: column-reverse;
    gap: 16px;
    margin-top: 24px;
    padding-top: 0;
  }

  .gs-article-hero__media {
    flex: none;
    align-self: stretch;
  }

  /* The mobile design has no sidebar: no table of contents, demo card or share buttons. */
  .gs-article-aside {
    display: none;
  }

  .gs-article-main {
    max-width: none;
  }
}

@media (max-width: 767.98px) {
  .gs-blog-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .gs-panel:not(.gs-panel--top) {
    padding: 56px 32px;
  }

  .gs-frame__footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .gs-blog a.gs-author__linkedin {
    align-self: flex-start;
  }

  .gs-blog-card__title {
    font-size: 18px;
    line-height: 26px;
  }

  .gs-blog-card__excerpt {
    font-size: 14px;
    line-height: 22px;
  }

  .gs-blog .gs-related-read {
    flex-direction: column;
  }

  .gs-related-read__thumb {
    width: 100%;
  }

  .gs-blog-intro {
    padding-top: 40px;
    text-align: center;
  }

  .gs-blog-intro__title {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -1px;
  }

  .gs-blog-intro__subtitle {
    color: var(--gs-text-secondary);
    font-size: 16px;
    line-height: 24px;
  }

  .gs-blog-intro--search .gs-blog-intro__title {
    font-size: 32px;
    line-height: 40px;
  }

  .gs-blog-hero__title {
    font-size: 24px;
    line-height: 32px;
  }

  .gs-blog-grid,
  .gs-blog-grid--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .gs-blog-grid:has(> :last-child:nth-child(n))::after {
    display: none;
  }

  /*
   * Landing and search: 16px gutters like the top panel and the navbar logo, so the cards (and
   * the badge-and-date line in them) get the room they need. Article pages keep 32px, as in the
   * mobile article design.
   */
  .gs-blog-landing .gs-panel:not(.gs-panel--top) {
    padding-right: 16px;
    padding-left: 16px;
  }

  .gs-blog-landing .gs-blog-card__body {
    padding: 16px 16px 32px;
  }

  .gs-blog-landing .gs-blog-filter.is-stuck {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .gs-blog-filter.is-stuck .gs-blog-filter__cta-stuck {
    justify-content: center;
  }

  /* Mobile filter: search and categories share a row, "Explore GoSearch" spans below. */
  .gs-blog-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .gs-blog-filter__controls {
    flex-wrap: nowrap;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  .gs-blog-filter__controls .gs-search {
    flex: 1 1 55%;
    width: auto;
    min-width: 0;
    height: 32px;
  }

  .gs-blog-filter__controls .gs-search__input {
    font-size: 11px;
    font-weight: 700;
    line-height: 16px;
  }

  .gs-blog-filter__controls .gs-search__input::placeholder {
    color: var(--gs-text-muted);
  }

  .gs-blog-filter__controls .gs-dropdown {
    flex: 1 1 45%;
    min-width: 0;
  }

  /* The category button is on the right, so its menu opens leftwards and stays on screen. */
  .gs-blog-filter__controls .gs-dropdown__menu {
    right: 0;
    left: auto;
    max-width: calc(100vw - 32px);
  }

  .gs-blog-filter__controls .gs-dropdown__toggle {
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 32px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 16px;
  }

  .gs-blog-filter__controls .gs-dropdown__toggle span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .gs-blog a.gs-blog-filter__cta {
    padding: 6px 16px;
    font-size: 12px;
    line-height: 18px;
  }

  /* The mobile design goes straight from the filter to the cards. */
  .gs-blog-articles__title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .gs-blog-grid {
    margin-top: 8px;
  }

  .gs-blog-more {
    margin-top: 24px;
  }

  .gs-blog-more__count {
    font-size: 12px;
    line-height: 18px;
  }

  .gs-breadcrumb {
    padding-top: 32px;
  }

  .gs-article-hero__title {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.25px;
  }

  .gs-article-content h2 {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.25px;
  }

  .gs-article-content h3 {
    font-size: 20px;
    line-height: 28px;
  }

  .gs-blog .gs-article-content .gs-quick-answer__title {
    font-size: 24px;
    line-height: 32px;
    letter-spacing: -0.25px;
  }

  .gs-article-content .gs-stats {
    flex-direction: column;
  }

  .gs-article-content .gs-stats > * {
    margin: 0 0 -1px;
  }

  .gs-article-content .schema-faq-section,
  .gs-article-content .gs-faq__item {
    padding: 16px;
  }

  .gs-blog .gs-article-content .gs-article-banner__text {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* The navbar's animated gradient button, reused for "Explore GoSearch". */
  .gs-blog a.get-demo-button {
    animation: none;
  }

  .gs-blog *,
  .gs-blog *::before,
  .gs-blog *::after {
    transition: none !important;
  }

  .gs-blog .gs-blog-card__image,
  .gs-blog .gs-blog-hero__image,
  .gs-blog .gs-blog-featured__thumb img {
    transform: none !important;
  }
}
