.pgbe-article {
  --pgbe-navy: #0b1f33;
  --pgbe-muted: #425466;
  --pgbe-blue: #0057d9;
  --pgbe-blue-dark: #0044ad;
  --pgbe-red: #e30613;
  --pgbe-card: #f4f7fb;
  --pgbe-border: #d8e1ec;
  --pgbe-focus: #ffbf47;
  --pgbe-shadow: 0 18px 54px rgba(11, 31, 51, 0.1);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 42px) 24px clamp(48px, 6vw, 84px);
  color: var(--pgbe-navy);
  font-size: clamp(17px, 1.25vw, 18px);
  line-height: 1.68;
}

.pgbe-article,
.pgbe-article * {
  box-sizing: border-box;
}

.pgbe-article a {
  text-underline-offset: 0.16em;
}

.pgbe-article a:focus-visible,
.pgbe-article summary:focus-visible {
  outline: 3px solid var(--pgbe-focus);
  outline-offset: 3px;
}

.pgbe-article__inner {
  margin: 0;
}

.pgbe-breadcrumbs {
  margin: 0 0 20px;
  color: var(--pgbe-muted);
  font-size: 13px;
  line-height: 1.45;
}

.pgbe-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pgbe-breadcrumbs li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.pgbe-breadcrumbs li:not(:last-child)::after {
  margin-left: 6px;
  color: #8796a8;
  content: "›";
}

.pgbe-breadcrumbs a {
  color: var(--pgbe-blue-dark);
}

.pgbe-breadcrumbs [aria-current="page"] span {
  max-width: min(48ch, 55vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgbe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
  gap: 0;
  min-height: clamp(420px, 38vw, 560px);
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--pgbe-navy);
  box-shadow: var(--pgbe-shadow);
}

.pgbe-hero--text-only {
  grid-template-columns: minmax(0, 920px);
  min-height: auto;
}

.pgbe-hero__content {
  align-self: center;
  padding: clamp(32px, 5vw, 72px);
}

.pgbe-hero__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pgbe-hero__labels span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.pgbe-hero__labels .pgbe-kicker {
  border-color: var(--pgbe-red);
  background: var(--pgbe-red);
  color: #fff;
}

.pgbe-hero__title {
  margin: 0;
  max-width: 22ch;
  color: #fff;
  font-size: clamp(32px, 3.35vw, 48px);
  letter-spacing: -0.028em;
  line-height: 1.06;
}

.pgbe-hero__excerpt {
  max-width: 68ch;
  margin-top: 18px;
  color: #dce8f5;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
}

.pgbe-hero__excerpt p {
  margin: 0;
}

.pgbe-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 22px 0 0;
  padding: 0;
  color: #dce8f5;
  font-size: 14px;
  list-style: none;
}

.pgbe-hero__meta li {
  display: inline-flex;
  align-items: center;
}

.pgbe-hero__meta li + li::before {
  margin: 0 10px;
  color: #8398ad;
  content: "•";
}

.pgbe-hero__media {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #e8eef5;
}

.pgbe-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgbe-quick-answer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 48px));
  margin: -28px auto 40px;
  padding: 22px 26px;
  border: 1px solid #c7ddff;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(11, 31, 51, 0.12);
}

.pgbe-quick-answer__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pgbe-blue);
  color: #fff;
  font-weight: 850;
}

.pgbe-quick-answer p {
  margin: 0;
}

.pgbe-quick-answer__label {
  margin-bottom: 4px !important;
  color: var(--pgbe-blue-dark);
  font-size: 14px;
  font-weight: 800;
}

/* Topic profiles keep one design system while changing hierarchy for the task. */
.pgbe-profile-tire-size .pgbe-hero {
  min-height: clamp(360px, 33vw, 490px);
}

.pgbe-profile-tire-size .pgbe-quick-answer {
  border-left: 5px solid var(--pgbe-blue);
}

.pgbe-profile-tire-size .pgbe-comparison-table caption {
  font-size: clamp(22px, 2.2vw, 30px);
}

.pgbe-profile-season .pgbe-comparison-table,
.pgbe-profile-season .pgbe-section:has(.pgbe-comparison-table) {
  border-radius: 16px;
  background: #f7f9fc;
}

.pgbe-profile-dot-safety .pgbe-quick-answer {
  border-color: rgba(227, 6, 19, 0.38);
  border-left: 5px solid var(--pgbe-red);
}

.pgbe-profile-dot-safety .pgbe-quick-answer__icon {
  background: var(--pgbe-red);
}

.pgbe-profile-dot-safety .pgbe-quick-answer__label {
  color: #a6000a;
}

.pgbe-profile-brand-model .pgbe-reading-layout--with-commercial {
  grid-template-columns: minmax(180px, 200px) minmax(0, 720px) minmax(290px, 340px);
}

.pgbe-profile-maintenance .pgbe-article__content ol {
  counter-reset: pgbe-step;
  padding-left: 0;
  list-style: none;
}

.pgbe-profile-maintenance .pgbe-article__content ol > li {
  position: relative;
  min-height: 54px;
  margin-bottom: 18px;
  padding: 12px 14px 12px 62px;
  border: 1px solid var(--pgbe-border);
  border-radius: 12px;
  background: #fff;
  counter-increment: pgbe-step;
}

.pgbe-profile-maintenance .pgbe-article__content ol > li::before {
  position: absolute;
  top: 10px;
  left: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--pgbe-red);
  color: #fff;
  content: counter(pgbe-step);
  font-weight: 800;
}

.pgbe-reading-layout {
  display: grid;
  grid-template-columns: minmax(190px, 210px) minmax(0, 860px);
  justify-content: center;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.pgbe-reading-layout--with-commercial {
  grid-template-columns: minmax(190px, 210px) minmax(0, 760px) minmax(260px, 300px);
}

.pgbe-reading-layout--without-toc {
  grid-template-columns: minmax(0, 860px);
}

.pgbe-reading-layout--without-toc.pgbe-reading-layout--with-commercial {
  grid-template-columns: minmax(0, 860px) minmax(260px, 300px);
}

.pgbe-hero + .pgbe-reading-layout {
  margin-top: 40px;
}

.pgbe-reading-layout__rail {
  min-width: 0;
}

.pgbe-reading-layout__commercial,
.pgbe-reading-layout__commercial-inner {
  min-width: 0;
}

.pgbe-toc {
  padding: 18px;
  border: 1px solid var(--pgbe-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(11, 31, 51, 0.055);
}

.pgbe-toc > summary {
  position: relative;
  margin: 0 0 12px;
  padding-right: 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.pgbe-toc > summary::-webkit-details-marker {
  display: none;
}

.pgbe-toc > summary::after {
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--pgbe-blue);
  content: "+";
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

.pgbe-toc[open] > summary::after {
  content: "−";
}

.pgbe-toc ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  counter-reset: pgbe-toc;
  list-style: none;
}

.pgbe-toc li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  counter-increment: pgbe-toc;
}

.pgbe-toc li::before {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #edf5ff;
  color: var(--pgbe-blue-dark);
  content: counter(pgbe-toc);
  font-size: 12px;
  font-weight: 800;
}

.pgbe-toc a {
  padding-top: 1px;
  color: var(--pgbe-navy);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.pgbe-toc a:hover {
  color: var(--pgbe-blue);
  text-decoration: underline;
}

.pgbe-article__content {
  min-width: 0;
  max-width: 860px;
}

.pgbe-article__content > :first-child {
  margin-top: 0;
}

.pgbe-article__content p,
.pgbe-article__content li {
  color: var(--pgbe-navy);
}

.pgbe-article__content a:not(.pgbe-button) {
  color: var(--pgbe-blue-dark);
}

.pgbe-article__content img {
  max-width: 100%;
  height: auto;
}

.pgbe-article__content figure {
  margin-inline: 0;
}

.pgbe-section {
  max-width: 860px;
  margin: 0 0 42px;
  scroll-margin-top: 110px;
}

.pgbe-section + .pgbe-section {
  padding-top: 4px;
}

.pgbe-section__title {
  margin: 0 0 16px;
  color: var(--pgbe-navy);
  font-size: clamp(25px, 2.6vw, 32px);
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.pgbe-section__title::after,
.pgbe-faq__title::after,
.pgbe-sources h2::after {
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pgbe-blue), var(--pgbe-red));
  content: "";
}

.pgbe-section h3 {
  margin: 30px 0 12px;
  color: var(--pgbe-navy);
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.3;
}

.pgbe-section--products {
  display: grid;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

.pgbe-section--products[data-pgbe-product-count="1"] {
  grid-template-columns: minmax(0, 620px);
}

.pgbe-section--products > .pgbe-section__title {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.pgbe-editorial-note {
  margin: 24px 0;
  padding: 18px 20px;
  border: 0;
  border-left: 4px solid #d69e00;
  border-radius: 0 10px 10px 0;
  background: #fff8df;
}

.pgbe-sources {
  max-width: 860px;
  margin: 48px 0 0;
  padding: 24px;
  border: 1px solid var(--pgbe-border);
  border-radius: 12px;
  background: var(--pgbe-card);
  scroll-margin-top: 110px;
}

.pgbe-sources h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 2.5vw, 30px);
}

.pgbe-sources__list {
  margin: 0;
  padding-left: 24px;
}

.pgbe-sources__list li + li {
  margin-top: 12px;
}

.pgbe-sources__list a {
  color: var(--pgbe-blue-dark);
  overflow-wrap: anywhere;
}

.pgbe-sources__list small {
  display: block;
  color: var(--pgbe-muted);
  font-size: 13px;
}

.pgbe-faq {
  max-width: 860px;
  margin: 44px 0 0;
  scroll-margin-top: 110px;
}

.pgbe-faq__title {
  margin: 0 0 16px;
  font-size: clamp(25px, 2.6vw, 32px);
  line-height: 1.2;
}

.pgbe-faq__items {
  display: grid;
  gap: 10px;
}

.pgbe-faq__item {
  border: 1px solid var(--pgbe-border);
  border-radius: 10px;
  background: #fff;
}

.pgbe-faq__item summary {
  position: relative;
  min-height: 48px;
  padding: 13px 48px 13px 16px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1.4;
  list-style: none;
}

.pgbe-faq__item summary::-webkit-details-marker {
  display: none;
}

.pgbe-faq__item summary::after {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--pgbe-blue);
  content: "+";
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.pgbe-faq__item[open] summary::after {
  content: "−";
}

.pgbe-faq__answer {
  padding: 0 16px 16px;
  color: var(--pgbe-muted);
}

.pgbe-faq__answer p {
  margin: 0;
}

.pgbe-comparison-table {
  margin: 28px 0;
}

.pgbe-table-scroll-hint {
  margin: 0 0 8px !important;
  color: var(--pgbe-muted) !important;
  font-size: 13px;
}

.pgbe-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--pgbe-border);
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.pgbe-table-scroll:focus-visible {
  outline: 3px solid var(--pgbe-focus);
  outline-offset: 3px;
}

.pgbe-comparison-table table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 15px;
}

.pgbe-comparison-table caption {
  padding: 14px 16px;
  color: var(--pgbe-navy);
  font-size: 16px;
  font-weight: 800;
  text-align: left;
}

.pgbe-comparison-table th,
.pgbe-comparison-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--pgbe-border);
  border-right: 1px solid var(--pgbe-border);
  text-align: left;
  vertical-align: top;
}

.pgbe-comparison-table th:last-child,
.pgbe-comparison-table td:last-child {
  border-right: 0;
}

.pgbe-comparison-table thead th {
  background: #eaf2ff;
  color: var(--pgbe-navy);
}

.pgbe-comparison-table tbody th {
  background: var(--pgbe-card);
  font-weight: 750;
}

.pgbe-comparison-table__note {
  margin: 10px 0 0 !important;
  color: var(--pgbe-muted) !important;
  font-size: 14px;
}

.pgbe-cta {
  display: grid;
  max-width: 860px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  margin: 44px 0 0;
  padding: 24px;
  border: 1px solid #bfd8ff;
  border-radius: 12px;
  background: linear-gradient(135deg, #edf5ff 0%, #f8fbff 100%);
}

.pgbe-cta__title,
.pgbe-cta__content {
  margin: 0 !important;
}

.pgbe-cta__title {
  color: var(--pgbe-blue-dark) !important;
  font-size: 18px;
  font-weight: 800;
}

.pgbe-cta__content {
  grid-column: 1;
  color: var(--pgbe-muted) !important;
}

.pgbe-cta__link {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 170px;
}

.pgbe-product {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  margin: 28px 0;
  padding: 18px;
  border: 1px solid var(--pgbe-border);
  border-radius: 12px;
  background: var(--pgbe-card);
}

.pgbe-reading-layout__commercial .pgbe-section--products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--pgbe-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(11, 31, 51, 0.07);
}

.pgbe-reading-layout__commercial .pgbe-section--products > .pgbe-section__title {
  margin: 0 0 4px;
  font-size: 20px;
}

.pgbe-reading-layout__commercial .pgbe-section--products > .pgbe-section__title::after {
  width: 32px;
  margin-top: 8px;
}

.pgbe-reading-layout__commercial .pgbe-product,
.pgbe-reading-layout__commercial .pgbe-section--products .pgbe-product {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  height: auto;
  margin: 0;
  padding: 12px;
  background: #f8fafd;
}

.pgbe-reading-layout__commercial .pgbe-product__price {
  font-size: 17px;
}

.pgbe-reading-layout__commercial .pgbe-button {
  min-height: 40px;
  padding-inline: 12px;
  font-size: 13px;
}

.pgbe-section--products .pgbe-product {
  grid-template-columns: 112px minmax(0, 1fr);
  height: 100%;
  margin: 0;
}

.pgbe-product__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.pgbe-product__body p {
  margin: 0 0 7px;
}

.pgbe-product__name {
  font-weight: 750;
  line-height: 1.3;
}

.pgbe-product__name a {
  color: var(--pgbe-navy);
  text-decoration: none;
}

.pgbe-product__sku,
.pgbe-product__availability {
  color: var(--pgbe-muted);
  font-size: 14px;
}

.pgbe-product__availability.is-unavailable {
  color: #a71c2e;
}

.pgbe-product__price {
  font-size: 20px;
  font-weight: 800;
}

.pgbe-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border-radius: 8px;
  background: var(--pgbe-blue);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.pgbe-button:hover {
  background: var(--pgbe-blue-dark);
}

@media (min-width: 1280px) and (min-height: 720px) {
  .pgbe-toc {
    position: sticky;
    top: calc(32px + var(--wp-admin--admin-bar--height, 0px));
    max-height: calc(100vh - 72px - var(--wp-admin--admin-bar--height, 0px));
    overflow: auto;
  }

  .pgbe-reading-layout__commercial-inner {
    position: sticky;
    top: calc(32px + var(--wp-admin--admin-bar--height, 0px));
  }
}

@media (max-width: 1279px) {
  .pgbe-reading-layout {
    grid-template-columns: minmax(0, 860px);
  }

  .pgbe-reading-layout--with-commercial {
    grid-template-columns: minmax(0, 760px) minmax(250px, 280px);
    max-width: 1080px;
    margin-inline: auto;
  }

  .pgbe-reading-layout--with-commercial .pgbe-reading-layout__rail {
    grid-column: 1 / -1;
  }

  .pgbe-toc {
    margin-bottom: 4px;
  }

  .pgbe-toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .pgbe-reading-layout--with-commercial,
  .pgbe-reading-layout--without-toc.pgbe-reading-layout--with-commercial {
    grid-template-columns: minmax(0, 860px);
  }
}

@media (max-width: 800px) {
  .pgbe-article {
    padding-inline: 18px;
  }

  .pgbe-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    padding: 0;
  }

  .pgbe-hero__content {
    padding: 28px 22px;
  }

  .pgbe-hero__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .pgbe-quick-answer {
    width: calc(100% - 24px);
    margin-top: -14px;
  }

  .pgbe-quick-answer {
    padding: 18px;
  }

  .pgbe-section--products {
    grid-template-columns: 1fr;
  }

  .pgbe-reading-layout__commercial .pgbe-section--products {
    margin-top: 10px;
  }

  .pgbe-product,
  .pgbe-section--products .pgbe-product {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .pgbe-cta {
    grid-template-columns: 1fr;
  }

  .pgbe-cta__content,
  .pgbe-cta__link {
    grid-column: 1;
    grid-row: auto;
  }

  .pgbe-cta__link {
    width: 100%;
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .pgbe-breadcrumbs [aria-current="page"] {
    display: none;
  }

  .pgbe-breadcrumbs li:nth-last-child(2)::after {
    content: none;
  }

  .pgbe-hero__title {
    font-size: clamp(30px, 10vw, 40px);
  }

  .pgbe-hero__meta {
    display: grid;
    gap: 5px;
  }

  .pgbe-hero__meta li + li::before {
    content: none;
  }

  .pgbe-quick-answer {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .pgbe-quick-answer__icon {
    width: 36px;
    height: 36px;
  }

  .pgbe-toc ol {
    grid-template-columns: 1fr;
  }

  .pgbe-product,
  .pgbe-section--products .pgbe-product {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .pgbe-article {
    padding-inline: 14px;
  }

  .pgbe-hero {
    border-radius: 14px;
  }

  .pgbe-product,
  .pgbe-section--products .pgbe-product {
    grid-template-columns: 1fr;
  }

  .pgbe-product__image {
    max-width: 160px;
  }
}

@media print {
  .pgbe-toc {
    position: static;
    max-height: none;
    box-shadow: none;
  }

  .pgbe-article {
    max-width: none;
    padding: 0;
  }

  .pgbe-faq__item:not([open]) > :not(summary) {
    display: block;
  }

  .pgbe-table-scroll {
    overflow: visible;
  }

  .pgbe-comparison-table table {
    min-width: 0;
  }
}
