/* The team's certifications as X2Y medallions (src/certs.mjs): the Adobe pages' section and strip, the About badges. */
.cert-medal { position: relative; display: inline-block; line-height: 0; border-radius: 50%; }
.cert-medal svg { display: block; width: 100%; height: auto; overflow: visible; }
.cert-size-full { width: 132px; }
.cert-size-strip { width: 64px; }
.cert-size-pip { width: 30px; }
.cert-rosette { fill: var(--acc-600); }
.cert-disc { fill: var(--card); }
.cert-ring { fill: none; stroke: var(--acc-500); stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: 0; }
.cert-glyph { fill: none; stroke: var(--acc-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cert-rim { font-family: inherit; font-size: 7.6px; font-weight: 750; letter-spacing: 1.5px; fill: var(--ink-soft); }
.cert-ribbon-l { fill: var(--acc-800); }
.cert-ribbon-r { fill: var(--acc-700); }
.cert-other .cert-rosette { fill: var(--ink-soft); }
.cert-other .cert-ring { stroke: var(--ink-faint); }
.cert-other .cert-glyph { stroke: var(--ink); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .cert-glyph { stroke: var(--acc-300); }
  html:not([data-theme="light"]) .cert-rosette { fill: var(--acc-500); }
  html:not([data-theme="light"]) .cert-other .cert-glyph { stroke: var(--ink); }
}
html[data-theme="dark"] .cert-glyph { stroke: var(--acc-300); }
html[data-theme="dark"] .cert-rosette { fill: var(--acc-500); }
/* The sheen: one sweep of light across the face when the medal comes into view. */
.cert-medal::after { content: ''; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 130% 0; opacity: 0; }

/* On scroll (certs.js adds .cert-wait, then .cert-in): the medal turns in, its inner ring draws, the light crosses. */
.cert-wait { opacity: 0; transform: scale(.86) rotate(-14deg); }
.cert-wait .cert-ring { stroke-dashoffset: 100; }
.cert-in { animation: cert-turn .7s cubic-bezier(.2, .8, .2, 1.15) both; animation-delay: var(--cert-delay, 0s); }
.cert-in .cert-ring { animation: cert-draw 1s ease-out both; animation-delay: calc(var(--cert-delay, 0s) + .25s); }
.cert-in::after { animation: cert-sheen 1.1s ease-in-out both; animation-delay: calc(var(--cert-delay, 0s) + .55s); }
.cert-glint.cert-in { animation: none; }
@keyframes cert-turn { from { opacity: 0; transform: scale(.86) rotate(-14deg); } to { opacity: 1; transform: none; } }
@keyframes cert-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes cert-sheen { 0% { opacity: 1; background-position: 130% 0; } 100% { opacity: 1; background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) {
  .cert-wait { opacity: 1; transform: none; }
  .cert-wait .cert-ring { stroke-dashoffset: 0; }
  .cert-in, .cert-in .cert-ring, .cert-in::after { animation: none; }
}


/* The full section (the development page). */
.pg-certs-full .cert-count { margin: 6px 0 0; font-size: 16px; font-weight: 700; color: var(--accent-text); }
.cert-grid { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 22px; }
.cert-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cert-card .cert-medal { margin-bottom: 14px; }
.cert-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 750; line-height: 1.3; }
.cert-card .cert-card-tier { margin: 0 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); max-width: none; }
.cert-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 940px; margin-left: auto; margin-right: auto; }
.cert-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; margin-left: auto; margin-right: auto; }
.cert-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 30ch; }
@media (max-width: 900px) { .cert-grid:not(.cert-grid-3) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Three on a phone: one under another, the medal beside its words. */
@media (max-width: 640px) {
  .cert-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .cert-grid-3 .cert-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; align-items: start; text-align: left; }
  .cert-grid-3 .cert-card .cert-medal { grid-row: 1 / span 3; width: 92px; margin: 0; }
  .cert-grid-3 .cert-card h3, .cert-grid-3 .cert-card p { max-width: none; }
}
@media (max-width: 480px) { .cert-grid { gap: 30px 14px; } .cert-size-full { width: 112px; } .cert-card h3 { font-size: 15.5px; } .cert-card p { font-size: 14px; } }

/* The strip (the other Adobe pages): a slim band under the hero. */
.pg-certs-strip { padding: 26px 0; }
.cert-strip { display: flex; align-items: center; gap: 18px 34px; }
.cert-strip-medals { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex: none; }
.cert-strip-medals li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; text-align: center; }
.cert-strip-name { font-size: 12px; font-weight: 650; line-height: 1.25; color: var(--ink-soft); }
.cert-strip-tier { display: block; margin-top: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.cert-strip-text { margin: 0; font-size: 15.5px; color: var(--ink-soft); max-width: 46ch; }
.cert-strip-text a { white-space: nowrap; font-weight: 650; }
@media (max-width: 820px) {
  .cert-strip { flex-direction: column; align-items: flex-start; }
  .cert-strip-medals { width: 100%; justify-content: space-between; gap: 6px; }
  .cert-strip-medals li { width: auto; flex: 1 1 0; }
  .cert-strip .cert-size-strip { width: 56px; }
}

/* The About badges: small medals after the role, each with a tooltip on hover, focus and tap. */
.about-certs { margin: 6px 0 0; display: flex; gap: 4px; justify-content: center; }
.about-person:has(.cert-pip-wrap.is-open), .about-person:has(.cert-pip-wrap:hover), .about-person:has(.cert-pip:focus-visible) { position: relative; z-index: 5; }
.cert-pip-wrap { position: relative; display: inline-flex; }
.cert-pip { appearance: none; border: 0; background: none; padding: 3px; margin: 0; border-radius: 50%; cursor: pointer; line-height: 0; transition: transform .15s ease; }
.cert-pip:hover { transform: translateY(-1px) scale(1.08); }
.cert-pip:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.cert-tip { position: absolute; z-index: 30; left: 50%; top: calc(100% + 8px); transform: translate(calc(-50% + var(--tip-shift, 0px)), -4px); width: max-content; max-width: min(240px, 80vw);
  padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; line-height: 1.35; text-align: center;
  box-shadow: 0 6px 20px rgb(15 23 42 / .18); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
/* Below the badges, so the name and role above stay in view (second brain for Oleg, 2026-11-28). */
.cert-tip::after { content: ''; position: absolute; bottom: 100%; left: calc(50% - var(--tip-shift, 0px)); margin-left: -6px; border: 6px solid transparent; border-bottom-color: var(--ink); }
.cert-pip-wrap:hover .cert-tip, .cert-pip:focus-visible + .cert-tip, .cert-pip-wrap.is-open .cert-tip { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--tip-shift, 0px)), 0); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .cert-pip, .cert-tip { transition: none; } }
