.cert-show {
    color: var(--ink);
    --cert-radius: 1.3rem;
}
.cert-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}
.cert-head h2 { margin: 0; max-width: 19ch; }
.cert-head .text-link { flex: none; }
.cert-brands { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.cert-show [data-brand="Sage"] {
    --cert-color: #275942;
    --cert-deep: #12372e;
    --cert-tint: #e3efdb;
    --cert-detail: #8caa7d;
}
.cert-show [data-brand="Microsoft"] {
    --cert-color: #23578d;
    --cert-deep: #153550;
    --cert-tint: #deebf7;
    --cert-detail: #83a6ca;
}
.cert-show [data-brand="Oracle"] {
    --cert-color: #964832;
    --cert-deep: #52291f;
    --cert-tint: #f4e4da;
    --cert-detail: #c59179;
}
.cert-show .cert-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .45rem 1rem;
    border: 1px solid var(--line);
    border-radius: 2rem;
    background: white;
    color: var(--ink);
    font: 650 .94rem/1.25 var(--sans);
    text-decoration: none;
}
.cert-brand i { width: .6rem; height: .6rem; background: var(--cert-color); border-radius: 50%; }
.cert-brand:hover, .cert-brand[aria-current="true"] { border-color: var(--cert-color); background: var(--cert-tint); }
.cert-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr));
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cert-slide {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--cert-radius);
    background: var(--cert-deep);
    color: white;
    scroll-margin-top: 6rem;
}
.cert-copy {
    flex: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: .7rem;
    padding: 1.5rem;
    background: linear-gradient(115deg,var(--cert-deep),var(--cert-color));
}
.cert-family { color: var(--cert-tint); font: 650 .86rem/1.3 var(--sans); letter-spacing: .025em; }
.cert-copy h3, .cert-copy p { margin: 0; }
.cert-copy h3 {
    color: white;
    font: 500 clamp(1.7rem,3vw,2.65rem)/1.09 var(--serif);
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}
.cert-details { max-width: 44ch; color: white; font-size: .99rem; line-height: 1.55; }
.cert-art {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    height: 11rem;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 55%, #fff 0%,var(--cert-tint) 76%);
}
.cert-art::before, .cert-art::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 58%;
    aspect-ratio: 1;
    border: 1px solid var(--cert-detail);
    border-radius: 50%;
    opacity: .5;
}
.cert-art::after { width: 76%; opacity: .3; }
.cert-art img { display: block; width: 62%; height: 83%; max-height: 9rem; object-fit: contain; filter: drop-shadow(0 .75rem .6rem rgb(12 33 34 / 12%)); }
.cert-show.is-ready .cert-stage {
    display: grid;
    position: relative;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: var(--cert-radius);
}
.cert-stage::-webkit-scrollbar { display: none; }
.cert-show.is-ready .cert-slide {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: clamp(18rem,25vw,23rem);
    border-radius: 0;
    scroll-snap-align: start;
}
.cert-show.is-ready .cert-copy { padding: clamp(1.6rem,4vw,4rem); gap: .8rem; }
.cert-show.is-ready .cert-copy h3 { font-size: clamp(2.4rem,4.9vw,5.1rem); }
.cert-show.is-ready .cert-family { font-size: 1rem; }
.cert-show.is-ready .cert-art { height: auto; }
.cert-show.is-ready .cert-art img { max-height: clamp(12rem,20vw,17rem); }
.cert-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .85rem; }
.cert-controls[hidden] { display: none; }
.cert-count { color: var(--body); font-size: .88rem; font-variant-numeric: tabular-nums; }
.cert-stepper { display: inline-flex; gap: .4rem; }
.cert-stepper button {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: white;
    cursor: pointer;
    font: 500 1.28rem/1 var(--sans);
}
.cert-stepper button:hover { background: var(--ink); color: white; }
.cert-stage:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (max-width: 700px) {
    .cert-head { flex-wrap: wrap; }
    .cert-show.is-ready .cert-slide { grid-template-columns: 1fr; grid-template-rows: auto auto; }
    .cert-show.is-ready .cert-art { order: -1; height: 10rem; }
    .cert-show.is-ready .cert-art img { max-height: 8.6rem; }
    .cert-show.is-ready .cert-copy h3 { font-size: clamp(2.1rem,9vw,3rem); }
    .cert-show.is-ready .cert-copy { justify-content: flex-start; gap: .45rem; padding: 1.4rem; }
}
@media (max-width: 390px) {
    .cert-brands { gap: .35rem; }
    .cert-show .cert-brand { padding-inline: .67rem; }
}
