/* Gamelade Article Header Pro · only applies to singular posts with the plugin enabled. */
body.gahp-enabled {
  --gahp-accent: #0869d7;
  --gahp-ink: #191f2b;
  --gahp-muted: #64748b;
  --gahp-soft-border: #e4eaf2;
  --gahp-bg-soft: #f5f8fc;
  --gahp-navy: #162033;
}

/* Existing breadcrumbs: preserve theme's hierarchy and real links. */
body.gahp-enabled .gahp-crumbs {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  gap: 5px 9px;
  padding: 7px 12px;
  margin: 0 0 19px !important;
  border: 1px solid #e5ecf6;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #f5f9ff);
  box-shadow: 0 3px 12px rgba(19, 42, 75, .035);
  color: #8a98a9;
  font-size: 12px !important;
  line-height: 1.5 !important;
  font-weight: 650;
  letter-spacing: .015em;
}
body.gahp-enabled .gahp-crumbs a {
  color: #52647e !important;
  text-decoration: none !important;
  font-size: inherit !important;
  font-weight: 650;
  transition: color .18s ease;
}
body.gahp-enabled .gahp-crumbs a:hover,
body.gahp-enabled .gahp-crumbs a:focus-visible { color: var(--gahp-accent) !important; }
body.gahp-enabled .gahp-crumbs :is(a:last-of-type, span[aria-current="page"]) { color: var(--gahp-accent) !important; }

/* Headline stays exactly one H1; classification badge is its separate sibling. */
body.gahp-enabled .gahp-headline-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 14px;
  position: relative;
  max-width: 100%;
  margin: 0 0 21px;
  line-height: 1.2;
  isolation: isolate;
}
body.gahp-enabled .gahp-headline-row:before {
  content: "";
  position: absolute;
  left: 0;
  top: -13px;
  width: 39px;
  height: 3px;
  background: linear-gradient(90deg, var(--gahp-accent), #8bcfff);
  border-radius: 99px;
}
body.gahp-enabled h1.gahp-post-title {
  display: block !important;
  flex: 1 1 720px;
  min-width: min(100%, 320px);
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--gahp-ink) !important;
  font-size: clamp(31px, 4.1vw, 64px) !important;
  font-family: inherit;
  font-weight: 850 !important;
  letter-spacing: -.047em !important;
  line-height: 1.13 !important;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
body.gahp-enabled .gahp-category-pill {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  align-self: flex-end;
  flex: 0 0 auto;
  min-height: 36px;
  max-width: 100%;
  margin: 0 0 .18em !important;
  padding: 8px 14px 8px 11px !important;
  gap: 8px;
  border: 1px solid #dbe6f3;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(13, 25, 44, .06);
  color: var(--gahp-navy) !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  letter-spacing: .09em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.gahp-enabled .gahp-category-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 25, 44, .1);
}
body.gahp-enabled .gahp-category-pill:before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: var(--gahp-accent);
  box-shadow: 0 0 0 4px rgba(8, 105, 215, .12);
}
body.gahp-enabled .gahp-category-pill:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,0));
}
body.gahp-enabled .gahp-category-pill--news {
  border-color: #dce8f9;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: #0d3f7d !important;
}
body.gahp-enabled .gahp-category-pill--news:before {
  background: var(--gahp-accent);
  box-shadow: 0 0 0 4px rgba(8, 105, 215, .12);
}
body.gahp-enabled .gahp-category-pill--sponsored {
  border-color: #f0ddc3;
  background: linear-gradient(180deg, #fffdfa 0%, #fff5e7 100%);
  color: #8a5510 !important;
}
body.gahp-enabled .gahp-category-pill--sponsored:before {
  background: #c8821b;
  box-shadow: 0 0 0 4px rgba(200,130,27,.14);
}
body.gahp-enabled .gahp-pill-dot { display: none !important; }

/* Avoid duplicated legacy Content Labels in the article header. Archive labels unaffected. */
body.gahp-has-header .gcl-content-label--single,
body.gahp-has-header .gcl-content-label--breadcrumb,
body.gahp-has-header .gcl-content-label--meta,
body.gahp-has-header .gcl-content-label--fallback { display: none !important; }

/* Restructured author/date/comment row, CSS-only responsive. */
body.gahp-enabled .gahp-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 0;
  min-height: 74px;
  width: 100%;
  margin: 0 0 30px;
  padding: 12px 0 20px;
  border-bottom: 1px solid var(--gahp-soft-border);
  background: none;
  color: var(--gahp-ink);
}
body.gahp-enabled .gahp-author-block,
body.gahp-enabled .gahp-meta-element {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none !important;
  color: inherit;
  font-size: 13px;
}
body.gahp-enabled .gahp-author-block { padding-right: 20px; }
body.gahp-enabled .gahp-meta-element {
  padding: 0 20px;
  border-left: 1px solid #e5eaf2;
  color: #53657e;
}
body.gahp-enabled .gahp-meta-bar svg { flex: 0 0 auto; color: #728399; }
body.gahp-enabled .gahp-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d9e7fa, 0 2px 9px rgba(0, 55, 120, .11);
  background: linear-gradient(140deg, #188fea, #085fc0);
  color: #fff;
  overflow: hidden;
}
body.gahp-enabled .gahp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
body.gahp-enabled .gahp-avatar svg { color: white; }
body.gahp-enabled .gahp-author-copy, body.gahp-enabled .gahp-meta-copy { display: flex; flex-direction: column; gap: 3px; }
body.gahp-enabled .gahp-overline {
  font-family: inherit !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  color: #8895a8;
  text-transform: uppercase;
  letter-spacing: .11em;
}
body.gahp-enabled .gahp-author-name {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  color: #1b2433;
  transition: color .18s ease;
}
body.gahp-enabled .gahp-author-block:hover .gahp-author-name { color: var(--gahp-accent); }
body.gahp-enabled .gahp-meta-detail {
  color: #263349;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
body.gahp-enabled .gahp-comments-link:hover .gahp-meta-detail,
body.gahp-enabled .gahp-comments-link:focus-visible .gahp-meta-detail { color: var(--gahp-accent); }
body.gahp-enabled .gahp-reading-time {
  color: #7b8da4;
  font-size: 12px;
  font-weight: 750;
}
body.gahp-enabled .gahp-original-meta { display: none !important; }

body.gahp-enabled .gahp-category-pill:focus-visible,
body.gahp-enabled .gahp-meta-bar a:focus-visible,
body.gahp-enabled .gahp-crumbs a:focus-visible {
  outline: 2px solid var(--gahp-accent);
  outline-offset: 4px;
}
@media (max-width: 900px) {
  body.gahp-enabled .gahp-headline-row { gap: 10px 12px; }
  body.gahp-enabled .gahp-category-pill {
    min-height: 34px;
    padding: 7px 12px 7px 10px !important;
    font-size: 10px !important;
  }
}
@media (max-width: 760px) {
  body.gahp-enabled h1.gahp-post-title { font-size: clamp(29px, 7vw, 44px) !important; letter-spacing: -.04em !important; }
  body.gahp-enabled .gahp-headline-row { margin-bottom: 16px; }
  body.gahp-enabled .gahp-category-pill {
    align-self: flex-start;
    margin: 0 !important;
    min-height: 32px;
    padding: 7px 11px 7px 10px !important;
    font-size: 10px !important;
  }
  body.gahp-enabled .gahp-meta-bar { padding: 9px 0 16px; margin-bottom: 23px; gap: 12px 0; }
  body.gahp-enabled .gahp-author-block { padding-right: 14px; }
  body.gahp-enabled .gahp-meta-element { padding: 0 13px; }
  body.gahp-enabled .gahp-reading-time { border-left: 0; padding-left: 0; }
}
@media (max-width: 510px) {
  body.gahp-enabled .gahp-meta-bar { gap: 13px 0; align-items: start; }
  body.gahp-enabled .gahp-author-block { width: 100%; }
  body.gahp-enabled .gahp-meta-date { border-left: 0; padding-left: 0; }
  body.gahp-enabled .gahp-comments-link { padding-right: 0; }
  body.gahp-enabled .gahp-reading-time { min-height: 25px; width: 100%; }
  body.gahp-enabled .gahp-crumbs { font-size: 11px !important; margin-bottom: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.gahp-enabled .gahp-category-pill,
  body.gahp-enabled .gahp-author-name,
  body.gahp-enabled .gahp-crumbs a { transition: none !important; }
}

/* Server-side disclosure for visitors who disable JavaScript. */
body.gahp-enabled .gahp-noscript-sponsored {
  padding: 12px 18px;
  background: #fff4e0;
  color: #865114;
  border-bottom: 1px solid #eed6a4;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 750;
  text-align: center;
}
