/* ─── Sponsorship: "Wall of Honour" plaque system ──────────────────────────
   Every rule is scoped to #sponsors so it cannot leak into the rest of the
   page. Hierarchy is carried by FRAME MATERIAL and SIZE, not by labels:
   green (strategic) → steel (platinum) → gold foil → brushed (silver) →
   green hairline (societies) → steel (workshop). Rank prominence is strictly
   descending: the two top ranks get honour plaques (mark + tier copy), and
   platinum matches gold's 4px foil frame, inner hairline, and a glossed field
   so it can never read quieter than the gold plaque below it.

   Metal frames use the padding-box/border-box double-background technique:
   a flat field paints the padding box, the gradient paints the border box,
   and `border-color: transparent` lets the gradient show through. This is
   the only way to get a gradient border without a wrapper element.

   Unsold ranks render as OPEN bands (dashed well + price + invitation)
   rather than disappearing, so the ladder always reads complete and the
   page doubles as a sales surface. Filled always outranks open visually:
   open bands drop the foil shine, the field contrast, and 12px of height.

   Arabic is primary. Secondary-language runs are wrapped in <bdi> in the
   markup, which is isolate + auto-direction — that, not `dir="ltr"`, is what
   keeps a trailing period from jumping to the head of the line inside an
   RTL column, and it stays correct when the page switches to English.
   ------------------------------------------------------------------------ */

#sponsors {
    /* gold */
    --gold-a: #f3d98b;
    --gold-b: #f0c75e;
    --gold-c: #d9a31a;
    --gold-d: #a87908;
    --gold-text: #8a6400;
    --gold-field: #fcf6e4;
    /* silver — brushed */
    --sil-a: #edece8;
    --sil-b: #c8c2b4;
    --sil-c: #9c978a;
    --sil-d: #ddd8cc;
    --sil-text: #5c5749;
    --sil-field: #faf9f5;
    /* platinum — steel */
    --plat-a: #dce2e9;
    --plat-b: #aeb9c6;
    --plat-c: #7e8b9c;
    --plat-d: #c3ccd6;
    --plat-text: #4a5666;
    --plat-field: #f8fafc;
    /* strategic / societies — green */
    --grn-a: #bbd3c4;
    --grn-b: #6e9c82;
    --grn-c: #1e5b3e;
    --grn-d: #9abfa9;
    --grn-text: #1e5b3e;
    --grn-field: #f6faf7;

    --hb-ink: #1e3a2e;
    --hb-muted: #6b6456;
    --hb-cream: #fbf6ea;
    --hb-line: #e3dccb;
}

/* ─── tier band ─────────────────────────────────────────────────────────── */
#sponsors .hb-band {
    margin-top: 52px;
}

/* ribbon eyebrow: the tier name is a heading, never a micro-caption */
#sponsors .hb-ribbon {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
}
#sponsors .hb-ribbon .hb-name {
    font-family: "Marcellus", "Noto Kufi Arabic", serif;
    font-weight: 400;
    line-height: 1.1;
    color: var(--hb-ink);
}
#sponsors .hb-ribbon .hb-alt {
    font-size: 12.5px;
    letter-spacing: 0.03em;
    color: var(--hb-muted);
    font-weight: 600;
}
#sponsors .hb-ribbon .hb-rule {
    flex: 1;
    height: 2px;
    border-radius: 2px;
}

/* per-tier ribbon scale — strictly descending by rank */
#sponsors .t-strat .hb-name {
    font-size: 29px;
    color: var(--grn-text);
}
#sponsors .t-plat .hb-name {
    font-size: 27px;
}
#sponsors .t-gold .hb-name {
    font-size: 26px;
    color: var(--gold-text);
}
#sponsors .t-silver .hb-name {
    font-size: 23px;
}
#sponsors .t-soc .hb-name {
    font-size: 22px;
    color: var(--grn-text);
}
#sponsors .t-work .hb-name {
    font-size: 22px;
}
#sponsors .t-strat .hb-rule,
#sponsors .t-soc .hb-rule {
    background: linear-gradient(to left, var(--grn-c), transparent);
}
#sponsors .t-plat .hb-rule,
#sponsors .t-work .hb-rule {
    background: linear-gradient(to left, var(--plat-c), transparent);
}
#sponsors .t-gold .hb-rule {
    background: linear-gradient(to left, var(--gold-c), transparent);
}
#sponsors .t-silver .hb-rule {
    background: linear-gradient(to left, var(--sil-c), transparent);
}
[dir="ltr"] #sponsors .t-strat .hb-rule,
[dir="ltr"] #sponsors .t-soc .hb-rule {
    background: linear-gradient(to right, var(--grn-c), transparent);
}
[dir="ltr"] #sponsors .t-plat .hb-rule,
[dir="ltr"] #sponsors .t-work .hb-rule {
    background: linear-gradient(to right, var(--plat-c), transparent);
}
[dir="ltr"] #sponsors .t-gold .hb-rule {
    background: linear-gradient(to right, var(--gold-c), transparent);
}
[dir="ltr"] #sponsors .t-silver .hb-rule {
    background: linear-gradient(to right, var(--sil-c), transparent);
}

/* ─── plaque (base) ─────────────────────────────────────────────────────── */
#sponsors .hb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
#sponsors .hb-plaque {
    position: relative;
    border: 3px solid transparent;
    border-radius: 14px;
    background:
        linear-gradient(var(--hb-cream), var(--hb-cream)) padding-box,
        linear-gradient(135deg, var(--hb-line), #cfc7b4) border-box;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
/* inner hairline: reads as the bevel of a physical plaque */
#sponsors .hb-plaque::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    pointer-events: none;
}
#sponsors .hb-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
/* Default mark size for the upper ranks (strategic/platinum/gold) when a band
   holds more than one supporter and so cannot use the feature layout. Sits
   above silver (78px) and societies (70px), below the feature mark (150px). */
#sponsors .hb-media img {
    display: block;
    width: auto;
    height: 100px;
    max-width: 220px;
    object-fit: contain;
}
#sponsors .hb-mark {
    font-family: "Marcellus", "Noto Kufi Arabic", serif;
    color: var(--hb-ink);
    line-height: 1.05;
}
#sponsors .hb-cap .hb-p {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--hb-ink);
    line-height: 1.25;
}
#sponsors .hb-cap .hb-s {
    font-size: 12px;
    color: var(--hb-muted);
    margin-top: 2px;
}
#sponsors .hb-cap .hb-note {
    font-size: 11.5px;
    color: var(--gold-text);
    margin-top: 4px;
    font-weight: 600;
}

/* crest chip */
#sponsors .hb-crest {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 3px 10px;
    border-radius: 20px;
    background: #1e3a2e;
    color: #fff;
    display: inline-block;
}

/* ─── GOLD: foil frame + feature plaque ─────────────────────────────────── */
#sponsors .t-gold .hb-plaque {
    background:
        linear-gradient(var(--gold-field), var(--gold-field)) padding-box,
        linear-gradient(
                135deg,
                var(--gold-a) 0%,
                var(--gold-b) 30%,
                var(--gold-c) 62%,
                var(--gold-d) 82%,
                var(--gold-a) 100%
            )
            border-box;
    border-width: 4px;
}
#sponsors .t-gold .hb-plaque::before {
    border-color: rgba(240, 199, 94, 0.55);
}
/* ─── HONOUR PLAQUE (top ranks) ─────────────────────────────────────────── */
/* A top-rank supporter never gets a bare logo tile: the mark is paired with
   tier copy on one wide plaque. Accent colour comes from --hb-accent, which
   each tier sets, so the same copy block reads green / steel / gold. */
#sponsors .hb-feature {
    width: 100%;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    text-align: start;
    padding: 34px 36px;
    justify-content: space-between;
    overflow: hidden;
}
/* two supporters in one rank: half-width plaques, one notch smaller */
#sponsors .hb-duo {
    width: auto;
    flex: 1 1 44%;
    gap: 22px;
    padding: 26px 26px;
}
#sponsors .hb-feature .hb-media {
    width: auto;
    flex: 0 0 auto;
}
#sponsors .hb-feature .hb-media img {
    height: 150px;
    max-width: 340px;
}
#sponsors .hb-duo .hb-media img {
    height: 104px;
    max-width: 200px;
}
#sponsors .hb-honour {
    flex: 1;
    min-width: 0;
}
#sponsors .hb-honour .hb-lede {
    font-family: "Marcellus", "Noto Kufi Arabic", serif;
    font-size: 24px;
    color: var(--hb-accent);
    margin: 10px 0 6px;
    line-height: 1.2;
}
#sponsors .hb-duo .hb-honour .hb-lede {
    font-size: 19px;
}
#sponsors .hb-honour .hb-who {
    font-size: 20px;
    font-weight: 700;
    color: var(--hb-ink);
    margin: 0;
}
#sponsors .hb-duo .hb-honour .hb-who {
    font-size: 17px;
}
#sponsors .hb-honour .hb-who .hb-alt {
    font-weight: 600;
    color: var(--hb-muted);
    font-size: 14px;
}
#sponsors .hb-honour .hb-note {
    font-size: 13.5px;
    color: var(--hb-accent);
    margin-top: 8px;
    font-weight: 600;
}
#sponsors .hb-honour .hb-credit {
    font-size: 13px;
    color: var(--hb-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--hb-accent-soft);
}
#sponsors .t-gold {
    --hb-accent: var(--gold-text);
    --hb-accent-soft: rgba(217, 163, 26, 0.28);
}
#sponsors .t-gold .hb-crest {
    background: linear-gradient(135deg, var(--gold-c), var(--gold-d));
}

/* ─── PLATINUM (steel) ──────────────────────────────────────────────────── */
/* Platinum outranks gold, so it gets the same 5-stop foil treatment plus the
   inner hairline — without them a two-supporter platinum band read flatter
   than the single gold plaque below it. */
#sponsors .t-plat {
    --hb-accent: var(--plat-text);
    --hb-accent-soft: rgba(126, 139, 156, 0.35);
}
/* Rank hierarchy is carried by the foil, not the footprint: platinum takes a
   tighter plaque than strategic above it and gold below it, so two platinum
   supporters do not occupy more wall than a single higher rank. */
#sponsors .t-plat .hb-duo {
    gap: 18px;
    padding: 18px 20px;
}
#sponsors .t-plat .hb-duo .hb-media img {
    height: 74px;
    max-width: 160px;
}
#sponsors .t-plat .hb-duo .hb-honour .hb-lede {
    font-size: 16px;
    margin: 6px 0 4px;
}
#sponsors .t-plat .hb-duo .hb-honour .hb-who {
    font-size: 15px;
}
#sponsors .t-plat .hb-duo .hb-honour .hb-who .hb-alt {
    font-size: 12.5px;
}
#sponsors .t-plat .hb-duo .hb-honour .hb-credit {
    font-size: 11.5px;
    margin-top: 7px;
    padding-top: 7px;
}
#sponsors .t-plat .hb-plaque {
    background:
        linear-gradient(158deg, #ffffff 0%, #e9eff6 52%, var(--plat-field) 100%)
            padding-box,
        linear-gradient(
                135deg,
                var(--plat-a) 0%,
                var(--plat-d) 28%,
                var(--plat-c) 60%,
                var(--plat-b) 80%,
                var(--plat-a) 100%
            )
            border-box;
    border-width: 4px;
    box-shadow: 0 10px 26px rgba(74, 86, 102, 0.16);
    flex: 1 1 300px;
}
#sponsors .t-plat .hb-plaque::before {
    border-color: rgba(255, 255, 255, 0.85);
}
#sponsors .t-plat .hb-crest {
    background: linear-gradient(135deg, var(--plat-text), var(--plat-c));
}
/* ─── SILVER (brushed) ──────────────────────────────────────────────────── */
#sponsors .t-silver .hb-plaque {
    background:
        linear-gradient(var(--sil-field), var(--sil-field)) padding-box,
        linear-gradient(
                135deg,
                var(--sil-a),
                var(--sil-b) 50%,
                var(--sil-c) 80%,
                var(--sil-d)
            )
            border-box;
    flex: 1 1 220px;
}
#sponsors .t-silver .hb-media img {
    height: 78px;
    max-width: 170px;
}
/* ─── SOCIETIES (green) ─────────────────────────────────────────────────── */
#sponsors .t-soc .hb-plaque {
    background:
        linear-gradient(var(--grn-field), var(--grn-field)) padding-box,
        linear-gradient(
                135deg,
                var(--grn-a),
                var(--grn-b) 55%,
                var(--grn-c) 82%,
                var(--grn-d)
            )
            border-box;
    flex: 1 1 240px;
}
#sponsors .t-soc .hb-media img {
    height: 70px;
    max-width: 180px;
}
#sponsors .t-soc .hb-crest {
    background: var(--grn-c);
}
/* ─── STRATEGIC (green) ─────────────────────────────────────────────────── */
/* Top of the ladder: widest border, deepest shadow, glossed field. Every
   figure here must exceed the platinum block below it. */
#sponsors .t-strat {
    --hb-accent: var(--grn-text);
    --hb-accent-soft: rgba(30, 91, 62, 0.28);
}
#sponsors .t-strat .hb-plaque {
    background:
        linear-gradient(158deg, #ffffff 0%, #e8f1ea 52%, var(--grn-field) 100%)
            padding-box,
        linear-gradient(
                135deg,
                var(--grn-a) 0%,
                var(--grn-d) 28%,
                var(--grn-c) 60%,
                var(--grn-b) 80%,
                var(--grn-a) 100%
            )
            border-box;
    border-width: 5px;
    box-shadow: 0 12px 30px rgba(30, 91, 62, 0.18);
}
#sponsors .t-strat .hb-plaque::before {
    border-color: rgba(255, 255, 255, 0.85);
}

/* ─── WORDMARK ROW: supporters with no logo file ────────────────────────── */
#sponsors .hb-wordmark {
    flex: 0 1 460px;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    text-align: start;
    padding: 22px 30px;
    background:
        linear-gradient(var(--plat-field), var(--plat-field)) padding-box,
        linear-gradient(
                135deg,
                var(--plat-a),
                var(--plat-b) 50%,
                var(--plat-c) 80%,
                var(--plat-d)
            )
            border-box;
}
#sponsors .hb-wmark {
    flex: 0 0 auto;
    padding-inline-end: 22px;
    border-inline-end: 1px solid var(--plat-d);
}
#sponsors .hb-wmark .hb-mark {
    font-size: 26px;
}
#sponsors .hb-wmark .hb-s {
    font-size: 12px;
    color: var(--hb-muted);
    margin-top: 2px;
}
#sponsors .hb-wnote {
    font-size: 13px;
    color: var(--plat-text);
    line-height: 1.5;
    max-width: 24ch;
}
#sponsors .hb-wnote .hb-alt {
    display: block;
    color: var(--hb-muted);
    font-size: 11.5px;
    margin-top: 2px;
}

/* ─── OPEN / RESERVED bands: ranks still for sale ───────────────────────── */
#sponsors .hb-open {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    text-align: start;
    padding: 22px 36px;
    justify-content: flex-start;
}
#sponsors .hb-open::before {
    display: none; /* no foil shine: filled must outrank available */
}
#sponsors .hb-well {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
#sponsors .t-strat .hb-well {
    width: 190px;
    height: 110px;
    border: 1.5px dashed var(--grn-b);
    color: var(--grn-text);
}
#sponsors .t-plat .hb-well {
    width: 170px;
    height: 96px;
    border: 1.5px dashed var(--plat-c);
    color: var(--plat-text);
}
#sponsors .t-gold .hb-well {
    width: 190px;
    height: 110px;
    border: 1.5px dashed var(--gold-c);
    color: var(--gold-text);
}
#sponsors .t-silver .hb-well {
    width: 160px;
    height: 92px;
    border: 1.5px dashed var(--sil-c);
    color: var(--sil-text);
}
#sponsors .hb-open .hb-body {
    flex: 1;
    min-width: 0;
}
#sponsors .hb-open .hb-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--hb-ink);
    margin: 0 0 4px;
    line-height: 1.1;
}
#sponsors .hb-open .hb-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--hb-muted);
    margin-inline-start: 5px;
}
#sponsors .hb-open .hb-invite {
    font-size: 13.5px;
    color: var(--hb-ink);
    margin: 0;
    max-width: 52ch;
    line-height: 1.5;
}
#sponsors .hb-open .hb-invite .hb-alt {
    display: block;
    color: var(--hb-muted);
    font-size: 12px;
    margin-top: 2px;
}
#sponsors .hb-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 3px 11px;
    border-radius: 20px;
    color: #fff;
    display: inline-block;
    margin-bottom: 8px;
}
#sponsors .t-strat .hb-tag {
    background: var(--grn-c);
}
#sponsors .t-plat .hb-tag {
    background: var(--plat-c);
}
#sponsors .t-gold .hb-tag {
    background: linear-gradient(135deg, var(--gold-c), var(--gold-d));
}
#sponsors .t-silver .hb-tag {
    background: var(--sil-c);
}

/* ─── packages: same metal ladder, gold as hero ─────────────────────────── */
#sponsors .pk-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    align-items: stretch;
}
#sponsors .pk {
    border: 3px solid transparent;
    border-radius: 14px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--hb-line), #cfc7b4) border-box;
}
#sponsors .pk .pk-tier {
    font-family: "Marcellus", "Noto Kufi Arabic", serif;
    font-size: 19px;
    color: var(--hb-ink);
    line-height: 1.15;
    margin: 0;
}
#sponsors .pk .pk-tier .hb-alt {
    display: block;
    font-size: 11.5px;
    color: var(--hb-muted);
    font-weight: 600;
    font-family: "IBM Plex Sans", "Noto Kufi Arabic", sans-serif;
    margin-top: 2px;
}
#sponsors .pk .pk-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--hb-ink);
    margin: 14px 0 2px;
    direction: ltr;
    text-align: start;
}
#sponsors .pk .pk-unit {
    font-size: 12px;
    font-weight: 600;
    color: var(--hb-muted);
    display: block;
}
#sponsors .pk .pk-perks {
    margin: 16px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    list-style: none;
}
#sponsors .pk .pk-perks li {
    font-size: 12.5px;
    color: var(--hb-ink);
    line-height: 1.45;
    padding-inline-start: 16px;
    position: relative;
}
#sponsors .pk .pk-perks li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: currentColor;
    opacity: 0.5;
}
#sponsors .pk-strategic {
    background:
        linear-gradient(var(--grn-field), var(--grn-field)) padding-box,
        linear-gradient(
                135deg,
                var(--grn-a),
                var(--grn-b) 55%,
                var(--grn-c) 82%,
                var(--grn-d)
            )
            border-box;
}
#sponsors .pk-strategic .pk-perks li {
    color: var(--grn-text);
}
#sponsors .pk-plat {
    background:
        linear-gradient(var(--plat-field), var(--plat-field)) padding-box,
        linear-gradient(
                135deg,
                var(--plat-a),
                var(--plat-b) 50%,
                var(--plat-c) 80%,
                var(--plat-d)
            )
            border-box;
}
#sponsors .pk-gold {
    background:
        linear-gradient(var(--gold-field), var(--gold-field)) padding-box,
        linear-gradient(
                135deg,
                var(--gold-a),
                var(--gold-b) 30%,
                var(--gold-c) 62%,
                var(--gold-d) 82%,
                var(--gold-a)
            )
            border-box;
    border-width: 4px;
}
#sponsors .pk-gold .pk-tier,
#sponsors .pk-gold .pk-price {
    color: var(--gold-text);
}
#sponsors .pk-hero-tag {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-c), var(--gold-d));
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 10px;
}
#sponsors .pk-silver {
    background:
        linear-gradient(var(--sil-field), var(--sil-field)) padding-box,
        linear-gradient(
                135deg,
                var(--sil-a),
                var(--sil-b) 50%,
                var(--sil-c) 80%,
                var(--sil-d)
            )
            border-box;
}

@media (max-width: 1000px) {
    #sponsors .pk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 760px) {
    #sponsors .hb-band {
        margin-top: 40px;
    }
    #sponsors .hb-feature {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 26px 22px;
    }
    #sponsors .hb-duo {
        flex: 1 1 100%;
    }
    #sponsors .hb-feature .hb-media {
        width: 100%;
    }
    #sponsors .hb-feature .hb-media img {
        height: 110px;
        max-width: 100%;
    }
    #sponsors .hb-open {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 22px;
    }
    #sponsors .hb-well {
        width: 100% !important;
    }
    #sponsors .hb-grid .hb-plaque {
        flex: 1 1 100%;
    }
    #sponsors .pk-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    #sponsors .hb-ribbon {
        flex-wrap: wrap;
        gap: 8px;
    }
    #sponsors .hb-ribbon .hb-rule {
        flex-basis: 100%;
        order: 3;
    }
}
@media (max-width: 760px) and (min-width: 440px) {
    #sponsors .t-silver .hb-plaque,
    #sponsors .t-soc .hb-plaque {
        flex: 1 1 45%;
    }
}
