/* ── Workshops section ──────────────────────────────────────────────────────
   The wavy cream backdrop comes from assets/workshops/bg-image.webp, wired up
   with the other section backgrounds in 09-section-backgrounds.css. Everything
   on top of it — the paper props, the workshop posters, the drifting colour
   layer — is built from divs/SVG, so it stays crisp at any width. */

#workshops-section {
    --ws-cream: #FFF6DF;
    --ws-cream-deep: #FDE9B4;
    --ws-amber: #FFC640;
    --ws-purple: #7C3AED;
    --ws-purple-deep: #4C1D95;
    --ws-ink: #1B1464;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    /* Fallback for the moment before the backdrop artwork paints. */
    background-color: var(--ws-cream);
}

/* ── Animated layer over the artwork ────────────────────────────────────────
   Two stacked layers, both pointer-events:none and behind the content:
   .ws-orb    — soft colour clouds that drift across the waves
   .ws-speck  — confetti dots that bob in place
   Kept light so the artwork's own waves stay legible underneath.            */
.ws-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Soft-light keeps these tinting the artwork rather than fogging it over. */
.ws-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(70px);
    opacity: 0.5;
    mix-blend-mode: soft-light;
    will-change: transform;
    animation: ws-drift 18s ease-in-out infinite;
}

.ws-orb--1 {
    top: -6%;
    left: -4%;
    width: 34vw;
    height: 34vw;
    background: radial-gradient(circle at 30% 30%, #FFF3C4, #FFC94A);
}

.ws-orb--2 {
    top: 8%;
    right: -6%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle at 60% 40%, #EFE7FF, #C7B6FF);
    animation-duration: 23s;
    animation-direction: reverse;
}

.ws-orb--3 {
    bottom: -12%;
    left: 28%;
    width: 40vw;
    height: 28vw;
    background: radial-gradient(circle at 50% 50%, #E6F8D8, #FFE7A6);
    animation-duration: 27s;
    opacity: 0.4;
}

.ws-orb--4 {
    top: 38%;
    left: 44%;
    width: 22vw;
    height: 22vw;
    background: radial-gradient(circle at 40% 60%, #FFE1EC, #FFC0D4);
    animation-duration: 21s;
    opacity: 0.34;
    animation-direction: reverse;
}

@keyframes ws-drift {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    33% {
        transform: translate3d(4%, 5%, 0) scale(1.08);
    }

    66% {
        transform: translate3d(-5%, 2%, 0) scale(0.94);
    }
}

.ws-speck {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    opacity: 0.5;
    animation: ws-bob 7s ease-in-out infinite;
}

@keyframes ws-bob {

    0%,
    100% {
        transform: translateY(0) scale(1);
        opacity: 0.45;
    }

    50% {
        transform: translateY(-14px) scale(1.25);
        opacity: 0.85;
    }
}

/* Slow gradient pan, shared by the card border, the CTA and the poster art. */
@keyframes ws-hue {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Grid items are min-width:auto by default, so anything with a wide min-content
   size (the venue's long place names) stretches the single mobile column past
   the container's padding — which pushed the poster deck and its right-hand
   arrow off-screen, where the section's overflow:hidden clipped them. */
.ws-grid>*,
#upcoming-workshops-container>* {
    min-width: 0;
}

/* Every slide sits in the same grid cell (grid-area: 1/1) and they cross-fade,
   so the container is always as tall as the longest venue address. Left at
   `start` each card kept its own natural height instead: the short slide's
   frame ended early — a band of bare section backdrop showing inside the
   reserved box — and the card jumped 68px mid-fade. Stretching them makes every
   slide the row's height, and the extra room is absorbed by the mid slice,
   which is the one piece built to stretch. */
#upcoming-workshops-container {
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    width: 100%;
    flex: 1 0 auto;
    align-items: start;
    overflow: hidden;
}

.ws-upcoming-slide {
    /* Only the active slide takes part in layout, so the card is as tall as
       that slide alone — a slide without an image no longer inherits the
       height of one that has an image. */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.35s ease-out, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    visibility: hidden;
    will-change: opacity, transform;
}

.ws-upcoming-slide.is-active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    z-index: 2;
}

.ws-upcoming-slide.is-exiting {
    opacity: 0;
    transform: translateX(-12px);
    pointer-events: none;
    visibility: visible;
    z-index: 1;
}

.ws-upcoming-slide.is-entering {
    opacity: 0;
    transform: translateX(12px);
    pointer-events: none;
    visibility: visible;
    z-index: 2;
}

.ws-card {
    position: relative;
    width: 100%;
    border-radius: 30px;
    box-shadow: none;
}

.ws-card__inner {
    position: relative;
    /* Resolves because the slides are stretched to the grid row (see
       #upcoming-workshops-container): it makes the short slide's frame fill the
       height the tallest one reserved, instead of ending early. */
    min-height: 100%;
    /* the frame artwork carries its own rounded corners — see the three-slice
       note further down, which is where the background itself is set */
    border-radius: 0;
    overflow: visible;
    background-position: center;
    /* No horizontal padding: .ws-card__body's inset is a share of the card's
       width, which only holds while this element's content box IS the card. */
    padding-inline: 0;
}

.ws-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 6px 14px;
    border-radius: 9999px;
    background: linear-gradient(180deg, #FFFFFF, #EFE7FF);
    border: 1px solid #D9CBFF;
    color: var(--ws-purple-deep);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 6px 14px -10px rgba(76, 29, 149, 0.8);
}

.ws-card__title {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #14245C;
}

@media (min-width: 1024px) {
    .ws-card__title {
        font-size: 22px;
    }
}

/* Date / time / venue block */
.ws-meta {
    display: grid;
    gap: 10px;
    /* Rows stay packed at the top. The panel is stretched to a uniform height
       across slides (see the flex-grow rule near .ws-card__body), and a grid's
       default align-content would spread the three rows out to fill that
       height — pushing Date/Time/Venue apart by however much slack the slide
       happens to have. */
    align-content: start;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 248, 230, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ws-meta__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.98rem;
    line-height: 1.45;
    color: #1F2A44;
}

.ws-meta__row svg {
    color: var(--ws-purple);
    flex: none;
    /* keep the icon optically centred on the first line, not the whole block */
    margin-top: 0.15em;
}

.ws-meta__label {
    font-weight: 800;
    color: #2E3A63;
    flex: none;
}

/* The value wraps — and breaks a word if it has to — rather than holding the
   row open at its longest word and widening everything above it. */
.ws-meta__row>span:not(.ws-meta__label) {
    min-width: 0;
    /* 'anywhere', not 'break-word': only this keyword also lowers the row's
       min-content width, so the panel tracks the column instead of the word. */
    overflow-wrap: anywhere;
}

/* Register button: gradient sweep + a breathing halo. */
.ws-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 13px 26px;
    border-radius: 9999px;
    /* Same type as every other pill button on the page — see .site-btn. */
    font-family: var(--font-inter);
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(100deg, #7C3AED, #4F46E5 40%, #2563EB 70%, #7C3AED);
    background-size: 220% 100%;
    box-shadow: 0 16px 30px -16px rgba(79, 70, 229, 0.9);
    animation: ws-hue 6s linear infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease;
}

.ws-cta:hover {
    transform: translateY(-2px);
    gap: 0.9rem;
    box-shadow: 0 22px 36px -16px rgba(79, 70, 229, 0.95);
}

.ws-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.55);
    animation: ws-halo 2.8s ease-out infinite;
}

@keyframes ws-halo {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(124, 58, 237, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

/* ── Previous workshops deck ───────────────────────────────────────────────*/
/* The tablet-style plate the posters sit on. */
.ws-stage {
    position: relative;
    border-radius: 28px;
    padding: 34px 14px 52px;
    background-image: url('../assets/workshops/glass_stage_transparent.webp');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    box-shadow: none;
}

/* Clipped like a tablet screen: the neighbouring posters slide under the plate
   edge instead of spilling onto the page background. The mask fades that cut
   out over the last few percent — a hard edge sliced the side posters straight
   down the middle of their artwork. */
.ws-deck {
    position: relative;
    height: 360px;
    perspective: 1400px;
    overflow: hidden;
    border-radius: 18px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
}

@media (min-width: 640px) {
    .ws-deck {
        height: 400px;
    }
}

@media (min-width: 1280px) {
    .ws-deck {
        height: 430px;
    }
}

/* Each poster stands on the podium and is then pushed out by JS via --ws-x /
   --ws-scale, so adding or removing a card needs no CSS change.

   Bottom-anchored so the active poster stands on the plate, but the scale is
   taken from the middle of the card: the shrunken neighbours then keep the
   same centre line as the active poster instead of sinking to its floor. */
.ws-slide {
    position: absolute;
    bottom: 4%;
    left: 50%;
    width: min(75%, 240px);
    transform-origin: center center;
    transform:
        translate3d(calc(-50% + var(--ws-x, 0px)), 0, 0) scale(var(--ws-scale, 1)) rotateY(var(--ws-rotate, 0deg));
    opacity: var(--ws-opacity, 1);
    z-index: var(--ws-z, 1);
    transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.28, 1), opacity 0.28s ease;
    will-change: transform;
}

@media (min-width: 640px) {
    .ws-slide {
        width: min(60%, 260px);
    }
}

.ws-slide[aria-hidden='true'] {
    pointer-events: none;
}

.ws-poster {
    display: block;
    isolation: isolate;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    border: 3px solid #fff;
    text-decoration: none;
    box-shadow: 0 18px 34px -22px rgba(40, 20, 90, 0.7);
    transition: box-shadow 0.4s ease;
}

.ws-slide[data-state='active'] .ws-poster {
    box-shadow: 0 34px 60px -26px rgba(40, 20, 90, 0.85);
}

/* The poster art is the workshop's own artwork — portrait flyer proportions, so
   the ratio matches the source and neither the school banner at the top nor the
   Password logo at the foot gets cropped away. */
.ws-poster__img {
    display: block;
    width: 100%;
    aspect-ratio: 1000 / 1401;
    object-fit: cover;
    background: #ffffff;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ws-slide[data-state='active'] .ws-poster:hover .ws-poster__img {
    transform: scale(1.04);
}

.ws-poster__foot {
    display: none !important;
}

.ws-poster__foot span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ws-poster__foot svg {
    color: var(--ws-purple);
}

/* Arrows + dots */
/* Arrows live on the plate, not in the deck — the deck clips its children. */
.ws-nav {
    position: absolute;
    top: 44%;
    z-index: 30;
    display: inline-flex;
    height: 40px;
    width: 40px;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #fff;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    box-shadow: 0 12px 22px -12px rgba(76, 29, 149, 0.95);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.ws-nav:hover {
    transform: translateY(-50%) scale(1.08);
    filter: brightness(1.08);
}

.ws-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.ws-nav--prev {
    left: -8px;
}

.ws-nav--next {
    right: -8px;
}

@media (min-width: 640px) {
    .ws-nav {
        height: 46px;
        width: 46px;
    }

    .ws-nav--prev {
        left: -14px;
    }

    .ws-nav--next {
        right: -14px;
    }
}

/* The dot row sits on the plate's own lavender podium, so an unfilled dot in
   #C9BEEA was invisible against it — hence "the carousel isn't doing anything".
   Deeper fill plus a white ring keeps them readable on the artwork. */
.ws-dot {
    height: 9px;
    width: 9px;
    border-radius: 9999px;
    background: #8B7FC7;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9);
    transition: width 0.35s ease, background-color 0.35s ease;
}

.ws-dot[data-active='true'] {
    width: 26px;
    background: linear-gradient(90deg, #8B5CF6, #6D28D9);
}

/* Vertical rule between the two halves — only meaningful side by side. */
.ws-divider {
    width: 2px;
    border-radius: 9999px;
    background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.35), transparent);
}

/* ── Motion opt-out ────────────────────────────────────────────────────────*/
@media (prefers-reduced-motion: reduce) {

    #workshops-section *,
    #workshops-section *::before,
    #workshops-section *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
/* ── Upcoming-workshop frame ────────────────────────────────────────────────
   The master artwork is assets/workshops/maincontainer.webp (1536 ×
   1024) — kept in the repo as the source to re-cut from, but never fetched by
   the browser. It is a pill at the top, a cream body, and a wave along the
   bottom.
   Painting it as one background at 100% 100% stretched it to whatever box the
   card happened to be — and this card's height is driven by its text, so a long
   venue address squashed the whole frame to roughly half its proper aspect
   ratio: the pill collapsed into a bowtie and the wave into a stripe.

   So the frame is drawn from three slices of that artwork instead:

     top     y   0–264   pill + top rail + top corners      100% auto — keeps ratio
     mid     y 264–616   the flat vertical rails            100% 100% — the ONLY
                         either side of the cream                      piece that
                                                                       stretches
     bottom  y 616–1024  wave + bottom rail + corners       100% auto — keeps ratio

   The cuts are contiguous (264 and 616 are both a slice's last row and the
   next one's first), which matters because the cream carries a real vertical
   gradient — cutting anywhere else leaves a visible step where two slices meet.
   264 clears the pill's cast shadow (settled by y 205) and the top corners
   (vertical from y 222); 616 sits above the first wave swash (y 628) and well
   above the bottom corners (y 835). Within the mid band the rails hold exactly
   x 81 and x 1450 for every row, so there is no curvature to smear.

   Both caps are sized `100% auto`, so they scale by WIDTH alone and hold their
   proportions however tall the card grows. Their heights become this element's
   vertical padding, expressed as a share of the card's width. The mid slice is
   pinned to the gap between them by background-origin:content-box, and is
   listed last so both caps paint over its overshoot. */
.ws-card__inner {
    /* 264/1536 exactly — the top cap's height as a share of the card's width.
       The bottom cap is 408/1536 = 26.56%, but the padding deliberately stops
       short of that so the Register button can sit over the wave the way the
       artwork intends; the cap still paints over the mid slice underneath. */
    padding: 17.1875% 0 14%;
    background-image:
        url('../assets/workshops/frame-top.webp'),
        url('../assets/workshops/frame-bottom.webp'),
        url('../assets/workshops/frame-mid.webp');
    background-position: top center, bottom center, center;
    background-size: 100% auto, 100% auto, 100% 100%;
    background-repeat: no-repeat;
    background-origin: border-box, border-box, content-box;
    border-radius: 0;
}

.ws-card__spacer {
    display: none;
}

/* Left-aligned under the ribbon, inset from the frame's rounded rail. The
   rail's inner edge sits at 9.4% of the card's width on the left and 9.2% on
   the right; the left inset is a few points past that baseline so the block
   sits a little off the rail rather than hugging it, while the right side
   keeps the original 11% since nothing there was crowding the megaphone. */
.ws-card__body {
    /* Neutralises the markup's `mt-auto`. An auto margin would swallow every
       spare pixel itself, which is the same trap as leaving the slack at the
       bottom: it has to go to .ws-meta instead — see below. */
    margin-top: 0;
    align-items: flex-start;
    padding-top: 0;
    padding-left: 14%;
    padding-right: 11%;
    /* Fill the frame's inner height so there IS slack to hand to .ws-meta.
       Left at its natural height the body ends wherever the copy ends, and
       the three children below have nothing to distribute. */
    flex: 1 0 auto;
}

/* ── Why the Register button holds its place ───────────────────────────────
   The venue is the one field whose length is out of the layout's hands: one
   workshop is "Online (Zoom)", the next is a four-line street address. Every
   line it gains used to push the button further down the frame, so the button
   sat somewhere different on each slide of the cross-fade.

   The card itself is not the problem — the slides are stretched to a common
   height (see #upcoming-workshops-container), so every card is already the
   same size. What varies is where the slack sits inside it, and by default it
   collects after the last child, i.e. under the button.

   Giving the panel flex-grow moves that slack into the middle of the stack:
   the title stays pinned under the ribbon, the button stays pinned above the
   wave, and the panel is the piece that changes size between slides. A short
   venue reads as a little more breathing room inside the panel rather than as
   a button that jumped.

   flex-grow, not a fixed height: a min-height would have to be a magic number
   guessing how many lines the address wraps to, and that number is wrong at
   every other viewport width. This holds at any width, for any address, with
   nothing truncated. */
.ws-card__body .ws-meta {
    flex: 0 0 auto;
}

/* Calendar (top-left) and megaphone (top-right).

   Every offset here is a share of the card's WIDTH, so the props sit on the
   frame's corners at any size. That is why the vertical ones are written as
   margins rather than as top/bottom: for an absolutely positioned box, a
   top/bottom percentage resolves against the containing block's HEIGHT, so
   `top: -3.5%` drifts further off the corner with every extra line of venue
   text, while a margin percentage always resolves against its WIDTH — which is
   what the artwork's geometry is expressed in. Anchor with top/bottom: 0 and
   do the actual nudging in the margin. */
.ws-card__prop {
    position: absolute;
    /* above .ws-card__body (relative z-10) — at a lower z-index the frame
       artwork paints over the props and clips the megaphone's handle. */
    z-index: 12;
    pointer-events: none;
    width: 20%;
}

.ws-card__prop--calendar {
    top: 0;
    left: 6%;
    margin-top: -3%;
    width: 15.5%;
}

.ws-card__prop--speaker {
    top: 0;
    right: 6%;
    margin-top: -3.5%;
    width: 16.5%;
    transform: rotate(8deg);
}


.ws-card__body .ws-card__title,
.ws-card__body .ws-meta {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Full width in the flat middle band, capped to hold the column the title, the
   panel and the button all share. Widening it is what pulls the copy out of that
   column, so the cap stays even though the books prop it used to clear is gone.

   The cap is width-relative rather than a flat 26rem because between `sm` and
   `lg` the card is the full container width: frozen at 416px the address wrapped
   into a narrow column with a wide strip of unused cream beside it, which made
   the card taller than the text needed (at 768px: 178px of empty cream, and a
   six-line address took the card from 475px to 588px).

   73% is a share of .ws-card__body's content box, which is itself the card less
   its 11% insets — so it works out to ~57% of the card, putting the panel's
   right edge at ~68%, comfortably inside the frame's right rail at 90.8%. On
   cards narrower than ~740px the 26rem floor still wins, so phones and the
   desktop two-column layout are untouched; it only opens up between `sm` and
   `lg`, where the card runs the full container width. */
.ws-card__body .ws-meta {
    width: 100%;
    max-width: max(26rem, 73%);
}

/* Phone widths: a long venue address is what makes this card tall. The frame
   itself no longer minds — the mid slice just stretches — but a tighter panel
   and a slightly smaller line keep a six-line address from turning the card
   into a column of text. Readability, not layout: nothing here is load-bearing. */
@media (max-width: 479px) {
    .ws-card__body {
        padding-left: 14.5%;
        padding-right: 11.5%;
    }

    .ws-card__body .ws-meta {
        padding: 13px 14px;
        gap: 8px;
    }

    .ws-meta__row {
        font-size: 0.92rem;
    }

    /* On a 320–360px phone the icon, the "Venue:" label and two gaps eat the row
       before the address gets any — about 105px, roughly 14 characters, so
       overflow-wrap:anywhere had to cut place names mid-word
       ("Tirukazhukundra / m Taluk"). Letting the value drop to its own full-width
       line under the label takes that column to ~164px, which fits the long
       Indian place names whole and costs the card fewer lines, not more. */
    .ws-meta__row {
        flex-wrap: wrap;
    }

    .ws-meta__row>span:not(.ws-meta__label) {
        flex: 1 0 100%;
        padding-left: 28px;
    }
}

@media (max-width: 767px) {

    /* Left-aligned with the title and the panel above it — the button is
       `w-fit`, so this only strips the centring the markup asks for on phones.
       The old 70% clamp and hidden trailing arrow were clearance for the plant
       in the bottom-right corner; with it gone the button keeps both. */
    .ws-card__body .ws-cta {
        margin-left: 0;
        margin-right: 0;
        padding: 10px 18px;
    }
}


/* ── Ribbon label ─────────────────────────────────────────────────────────
   The pill in the top cap is blank artwork, so "Upcoming Workshop" is live
   text rather than pixels — crisp at any width, set in the site's own Poppins.

   The slot is the top cap itself, reproduced as an aspect-ratio box: the cap is
   painted `100% auto`, so its rendered height is always width × 264/1536, and
   giving this box the same ratio makes it land exactly on top of the cap no
   matter how tall the card's text makes the card. That is what lets the SVG
   inside be placed in percentages of the CAP rather than of the card, so the
   label tracks the pill instead of sliding down the frame as the card grows.

   Two invariants hold this together: the slot must stay empty of in-flow
   content (a box with a preferred aspect ratio takes its automatic minimum size
   from its content, so any in-flow child taller than the ratio would grow the
   slot and drag the label down the frame — min-height:0 is what forbids that),
   and .ws-card__inner must stay border-less, since the slot's top/width trace
   its padding box while the cap is painted from its border box. */
.ws-ribbon-slot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1536 / 264;
    height: auto;
    min-height: 0;
    pointer-events: none;
    z-index: 5;
}

/* The SVG fills the slot, and the slot IS the cap — same box, same 1536 : 264
   ratio — so `viewBox="0 0 1536 264"` maps one user unit to one pixel of the
   artwork. Everything about the label is then written in the artwork's own
   coordinates: no nested percentages, no second scale factor to keep in step. */
.ws-ribbon-text {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Where the label sits, in artwork pixels. The banner is a wave, not a pill:
   measured off frame-top.webp, the centre of its yellow face runs from y≈84 at
   x≈460 down to y≈121 at x≈765 and back to y≈84 at x≈1060, while the face's own
   edges close in to y 56 and y 153 at their worst. A straight line of text can
   only split that difference, so it is centred on y≈104 — the midpoint of those
   two worst edges, which is also the mean of the wave — and the baseline is that
   centre plus 0.255em, the offset that puts the label's INK box on it rather
   than its baseline. y 117 is the two together at this size.

   52px is the size at which Poppins 600 sets "Upcoming Workshop" 556 units wide,
   which is exactly the textLength the markup asks for, so the glyphs are drawn
   at their natural proportions rather than squeezed to hit the number. Changing
   one without the other re-introduces the condensed look. The pair leaves the
   label at ~58% of the banner's width, clear of the caps at either end, with
   ~21px of face above and below it at the tightest point. */
.ws-ribbon-text text {
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 52px;
    fill: #6A1300;
}
