/* OpenAI Partner Network credential badges (sections/openai-credential-badges.php).
   Three layouts: a large showcase of cards, a brief row list for tight spaces,
   and compact linked badges for a banner. Brand colors only: teal #003737 and
   #0a5c56 with the blue #2563eb from the partner banner. No purple.
   Contrast is computed in tests/test-openai-credentials.php. Images reserve
   their space with width and height, so nothing shifts while they load. */

.ocb { margin: 0; padding: 0; --ocb-ink: #0f172a; --ocb-body: #1e293b; --ocb-soft: #334155; --ocb-teal: #003737; --ocb-teal-2: #0a5c56; --ocb-blue: #2563eb; --ocb-line: #dbe3ee; --ocb-tint: #eef6ff; }
.ocb__title { margin: 0 0 16px; font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-weight: 700; color: var(--ocb-ink); font-size: 1.125rem; }
.ocb__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Showcase: large cards, badge first. */
.ocb-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ocb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ocb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ocb-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 22px 24px; border: 1px solid var(--ocb-line); border-radius: 22px; background: linear-gradient(180deg, #f5f9ff 0%, #ffffff 46%); box-shadow: 0 18px 44px rgba(15, 23, 42, .07); min-width: 0; }
.ocb-card__media { display: grid; place-items: center; width: 190px; height: 190px; max-width: 100%; margin: 0 0 16px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .16) 0%, rgba(37, 99, 235, .05) 55%, rgba(37, 99, 235, 0) 72%); }
.ocb-card__img { display: block; width: 150px; height: 150px; max-width: 100%; border-radius: 50%; filter: drop-shadow(0 10px 18px rgba(37, 99, 235, .25)); }
.ocb-card__chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: #e8f6f3; color: var(--ocb-teal); font-size: .8125rem; font-weight: 700; }
.ocb-card__chip .bi { color: var(--ocb-teal); }
.ocb-card__name { margin: 0 0 8px; font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-weight: 700; font-size: 1.1875rem; line-height: 1.3; color: var(--ocb-ink); }
.ocb-card__desc { margin: 0 0 12px; font-size: .9375rem; line-height: 1.6; color: var(--ocb-body); }
.ocb-card__meta { margin: 0 0 10px; font-size: .875rem; line-height: 1.55; color: var(--ocb-soft); }
.ocb-card__note { margin: 0 0 10px; font-size: .8125rem; line-height: 1.5; color: var(--ocb-soft); }
.ocb-card__verify { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; min-height: 44px; padding: 10px 18px; border: 2px solid var(--ocb-teal); border-radius: 12px; background: #ffffff; color: var(--ocb-teal); font-weight: 700; text-decoration: none; }
.ocb-card__verify .bi { color: var(--ocb-teal); font-size: .9em; }
.ocb-card__verify:hover { background: var(--ocb-teal); color: #ffffff; }
.ocb-card__verify:hover .bi { color: #ffffff; }
.ocb-card__verify:focus-visible, .ocb__verify:focus-visible, .ocb__badge-link:focus-visible { outline: 3px solid var(--ocb-teal-2); outline-offset: 3px; }

/* Brand-safe seal for a credential whose official image is withheld. */
.ocb-seal { --ocb-size: 150px; display: inline-grid; place-items: center; align-content: center; gap: 2px; width: var(--ocb-size); height: var(--ocb-size); border-radius: 50%; background: radial-gradient(circle at 30% 25%, #2563eb 0%, #1d4ed8 45%, #0a5c56 100%); color: #ffffff; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .22), 0 10px 18px rgba(37, 99, 235, .25); }
.ocb-seal .bi { color: #ffffff; font-size: calc(var(--ocb-size) * .34); line-height: 1; }
.ocb-seal__text { font-weight: 700; font-size: calc(var(--ocb-size) * .1); letter-spacing: .06em; text-transform: uppercase; }

/* Brief: a row list for dialogs and narrow panels. */
.ocb__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ocb__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--ocb-line); border-radius: 14px; background: #ffffff; }
.ocb__img { display: block; height: auto; max-width: 100%; border-radius: 50%; }
.ocb__body { min-width: 0; }
.ocb__name { margin: 0 0 2px; font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--ocb-ink); }
.ocb__meta { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--ocb-soft); }
.ocb__verify { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; color: var(--ocb-teal-2); text-decoration: underline; text-underline-offset: 3px; }
.ocb__verify:hover { color: var(--ocb-teal); }

/* Compact: linked badges in a row, for a banner. */
.ocb--compact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ocb--compact li { display: flex; }
.ocb__badge-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 50%; }
.ocb--compact .ocb__img { filter: drop-shadow(0 6px 12px rgba(37, 99, 235, .28)); }
.ocb--compact .ocb-seal { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .25), 0 6px 12px rgba(37, 99, 235, .28); }

@media (prefers-reduced-motion: no-preference) {
  .ocb-card { transition: transform .25s ease, box-shadow .25s ease; animation: ocb-rise .5s ease both; }
  .ocb-card:nth-child(2) { animation-delay: 80ms; }
  .ocb-card:nth-child(3) { animation-delay: 160ms; }
  .ocb-card:nth-child(4) { animation-delay: 240ms; }
  .ocb-card:nth-child(n+5) { animation-delay: 320ms; }
  .ocb-card:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(15, 23, 42, .12); }
  .ocb-card__verify { transition: background-color .2s ease, color .2s ease; }
  .ocb__badge-link { transition: transform .2s ease; }
  .ocb__badge-link:hover { transform: translateY(-2px) scale(1.04); }
  @keyframes ocb-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Homepage authority bar (sections/openai-authority-bar.php).
   One compact row on a deep teal band, between the light client reviews band
   and the white problem section, so the page keeps a light, dark, light rhythm.
   80px vertical padding on every screen size, 1290px content width.
   Computed contrast: white on #003737 13.11 to 1, #d9eeea on #003737 10.84
   to 1, #003737 on white 13.11 to 1, #003737 on #e8f6f3 11.81 to 1, white on
   #0a5c56 7.84 to 1. The badges are plain images with no links. */
.oab { padding: 80px 0; background: #003737; color: #ffffff; }
.oab__wrap { max-width: 1290px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 860px) { .oab__wrap { padding: 0 32px; } }
.oab__bar { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 1100px) {
  .oab__bar { grid-template-columns: auto minmax(0, 1fr); gap: 48px; }
  .oab__bar--plain { grid-template-columns: minmax(0, 1fr); }
}
.oab__badges .ocb--icons { gap: 12px; }
/* Desktop: the badges form a 2 by 2 block at 80px beside the text. */
@media (min-width: 1100px) {
  .oab__badges .ocb--icons { display: grid; grid-template-columns: repeat(2, 80px); gap: 16px; }
  .oab__badges .ocb__img { width: 80px; height: 80px; }
  .oab__badges .ocb--icons .ocb-seal { --ocb-size: 80px; }
}
.oab__title { margin: 0 0 10px; font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-size: clamp(1.375rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: #ffffff; }
.oab__text { margin: 0; max-width: 72ch; font-size: 1.0625rem; line-height: 1.7; color: #d9eeea; }
.oab ul.oab__links { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.oab ul.oab__links > li { margin: 0; padding: 0; }
@media (min-width: 600px) { .oab ul.oab__links { display: flex; flex-wrap: wrap; } }
.oab__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 20px; border: 2px solid #ffffff; border-radius: 12px; background: transparent; color: #ffffff; font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
.oab__link .bi { color: inherit; }
.oab__link:hover { background: #0a5c56; color: #ffffff; }
.oab__link--primary { background: #ffffff; color: #003737; }
@media (min-width: 600px) { .oab__link { width: auto; } }
.oab__link--primary:hover { background: #e8f6f3; color: #003737; }
.oab__link:focus-visible { outline: 3px solid #ffffff; outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .oab__link { transition: background-color .2s ease, color .2s ease; } }

/* Icons layout of the badge partial: badges as plain images, no links. */
.ocb--icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ocb--icons li { display: flex; }
.ocb--icons .ocb__img { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .28)); }
.ocb--icons .ocb-seal__text { display: none; }
.ocb--icons .ocb-seal .bi { font-size: calc(var(--ocb-size) * .46); }

/* The seal keeps its exact size in every layout (the shared image rules set
   height: auto, which would squash a non-image element), and it uses the same
   blue family as the official badges. Small seals show the check mark only.
   The light highlight stays in the top left corner; the white text below the
   center sits on #2563eb or darker (5.17 to 1 or more, computed in the gate). */
.ocb-seal.ocb__img, .ocb-seal.ocb-card__img { width: var(--ocb-size); height: var(--ocb-size); max-width: none; }
.ocb-seal { background: radial-gradient(circle at 35% 28%, #3b82f6 0%, #2563eb 30%, #1d4ed8 70%, #1e40af 100%); box-shadow: inset 0 0 0 calc(var(--ocb-size) * .06) rgba(255, 255, 255, .18), inset 0 0 0 calc(var(--ocb-size) * .17) rgba(255, 255, 255, .08), 0 10px 18px rgba(37, 99, 235, .25); }
.ocb--compact .ocb-seal__text, .ocb--brief .ocb-seal__text { display: none; }
.ocb--compact .ocb-seal .bi, .ocb--brief .ocb-seal .bi { font-size: calc(var(--ocb-size) * .46); }

/* Seal sizes. The partial snaps $ocbSize to one of these, so it never needs an
   inline style attribute. */
.ocb-seal.ocb-size-44 { --ocb-size: 44px; }
.ocb-seal.ocb-size-56 { --ocb-size: 56px; }
.ocb-seal.ocb-size-64 { --ocb-size: 64px; }
.ocb-seal.ocb-size-80 { --ocb-size: 80px; }
.ocb-seal.ocb-size-96 { --ocb-size: 96px; }
.ocb-seal.ocb-size-120 { --ocb-size: 120px; }
.ocb-seal.ocb-size-150 { --ocb-size: 150px; }
.ocb-seal.ocb-size-200 { --ocb-size: 200px; }
