/* Self-hosted header/footer fonts - no third-party @import on the critical path. */
@font-face { font-family:'Inter'; font-style:normal; font-weight:400 700; font-display:swap; src:url('../fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/poppins-latin-500.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/poppins-latin-600.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/poppins-latin-700.woff2') format('woff2'); }
@font-face { font-family:'Poppins'; font-style:normal; font-weight:800; font-display:swap; src:url('../fonts/poppins-latin-800.woff2') format('woff2'); }
/* MGC Bridge site chrome: header + footer. Plain CSS (no Tailwind rebuild needed). Prefix: sx- */
:root {
  --sx-navy: #0a2150; --sx-deep: #06142f; --sx-blue: #1b4bb8; --sx-sky: #eef3fc; --sx-line: #d9e2f3;
  --sx-ink: #14213d; --sx-muted: #566586; --sx-yellow: #f5b301; --sx-yellow-soft: #ffd96a;
  --sx-head: "Poppins", Calibri, "Segoe UI", system-ui, sans-serif;
  --sx-body: "Inter", Calibri, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
[x-cloak] { display: none !important; }
.sx-wrap { width: min(1240px, 100%); margin-inline: auto; padding-inline: 1rem; }
.sx-header, .sx-footer { font-family: var(--sx-body); }
.sx-header *, .sx-header *::before, .sx-header *::after,
.sx-footer *, .sx-footer *::before, .sx-footer *::after { box-sizing: border-box; }
.sx-header a:focus-visible, .sx-header button:focus-visible, .sx-footer a:focus-visible { outline: 3px solid var(--sx-yellow); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
.sx-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.sx-header[data-state="scrolled"] { border-color: var(--sx-line); box-shadow: 0 8px 24px rgba(10,33,80,.10); }

.sx-util { background: var(--sx-deep); color: rgba(255,255,255,.85); font-size: .82rem; max-height: 3rem; overflow: hidden; transition: max-height .25s, opacity .25s; }
.sx-header[data-state="scrolled"] .sx-util { max-height: 0; opacity: 0; }
.sx-util-inner { display: none; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.4rem; }
@media (min-width: 900px) { .sx-util-inner { display: flex; } }
.sx-util a { color: inherit; text-decoration: none; }
.sx-util a:hover { color: var(--sx-yellow); }
.sx-util-left { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.sx-util-left strong { color: var(--sx-yellow); font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.sx-util-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sx-util-right { display: flex; align-items: center; gap: 1.2rem; }

.sx-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.3rem; }
.sx-brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; text-decoration: none; color: var(--sx-navy); }
.sx-brand img { width: 3rem; height: 3rem; object-fit: contain; }
.sx-brand-text { display: none; flex-direction: column; line-height: 1.15; }
@media (min-width: 480px) { .sx-brand-text { display: flex; } }
.sx-brand-text strong { font-family: var(--sx-head); font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }
.sx-brand-text small { color: var(--sx-muted); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* Desktop navigation */
.sx-nav { display: none; flex: 1; justify-content: center; }
@media (min-width: 1100px) { .sx-nav { display: flex; } }
.sx-menu { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.sx-item { position: relative; }
.sx-link {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .5rem .8rem; border: 0; background: none;
  color: var(--sx-navy); font: 600 .95rem var(--sx-body); text-decoration: none; cursor: pointer; border-radius: 8px; position: relative; transition: color .2s, background .2s;
}
.sx-link:hover { background: var(--sx-sky); }
.sx-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 4px; height: 3px; border-radius: 3px; background: var(--sx-yellow); transform: scaleX(0); transition: transform .25s; }
.sx-link.is-active::after, .sx-item:hover > .sx-link::after, .sx-item:focus-within > .sx-link::after { transform: scaleX(1); }
.sx-link svg { width: .8rem; height: .8rem; transition: transform .2s; }
.sx-item:hover > .sx-link svg, .sx-item:focus-within > .sx-link svg { transform: rotate(180deg); }

.sx-panel {
  position: absolute; top: calc(100% + 6px); left: 50%; z-index: 60; width: 17rem; padding: .5rem; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--sx-line); border-radius: 14px; box-shadow: 0 18px 40px rgba(10,33,80,.18);
  visibility: hidden; opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.sx-panel--wide { width: 34rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0 .25rem; }
.sx-panel::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.sx-item:hover > .sx-panel, .sx-item:focus-within > .sx-panel { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.sx-panel a { display: block; padding: .6rem .8rem; border-radius: 10px; text-decoration: none; color: var(--sx-navy); transition: background .15s; }
.sx-panel a:hover, .sx-panel a:focus-visible { background: var(--sx-sky); }
.sx-panel a b { display: block; font-size: .95rem; font-weight: 600; }
.sx-panel a small { display: block; margin-top: .1rem; color: var(--sx-muted); font-size: .8rem; line-height: 1.35; }
.sx-panel a.is-current b { color: var(--sx-blue); }

/* Right-hand actions */
.sx-actions { display: flex; align-items: center; gap: .5rem; }
.sx-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--sx-line); border-radius: 10px; background: #fff; color: var(--sx-navy); cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s; }
.sx-icon-btn:hover { background: var(--sx-sky); border-color: var(--sx-blue); }
.sx-icon-btn svg { width: 1.25rem; height: 1.25rem; }
.sx-search { display: none; }
@media (min-width: 640px) { .sx-search { display: inline-grid; } }
.sx-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .5rem 1.25rem; border-radius: 10px; background: var(--sx-yellow); color: var(--sx-navy); font: 700 .95rem var(--sx-body); text-decoration: none; transition: background .2s, box-shadow .2s; white-space: nowrap; }
.sx-cta:hover { background: var(--sx-yellow-soft); box-shadow: 0 6px 16px rgba(245,179,1,.4); }
.sx-toggle { display: inline-grid; }
@media (min-width: 1100px) { .sx-toggle { display: none; } }

/* Mobile drawer */
.sx-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(6,20,47,.55); }
.sx-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(24rem, 92vw); display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 40px rgba(6,20,47,.3); overscroll-behavior: contain; }
@media (min-width: 1100px) { .sx-drawer, .sx-backdrop { display: none !important; } }
.sx-tr { transition: transform .25s ease, opacity .25s ease; }
.sx-from { transform: translateX(100%); opacity: .6; }
.sx-to { transform: none; opacity: 1; }
.sx-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1rem; background: var(--sx-navy); }
.sx-drawer-top .sx-brand { color: #fff; }
.sx-drawer-top .sx-brand-text { display: flex; }
.sx-drawer-top .sx-brand-text small { color: var(--sx-yellow); }
.sx-drawer-top .sx-icon-btn { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.sx-drawer-body { flex: 1; overflow-y: auto; padding: .75rem; -webkit-overflow-scrolling: touch; }
.sx-m-list { margin: 0; padding: 0; list-style: none; }
.sx-m-link, .sx-m-acc { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: .6rem .85rem; border: 0; border-radius: 10px; background: none; color: var(--sx-navy); font: 700 1rem var(--sx-body); text-align: left; text-decoration: none; cursor: pointer; }
.sx-m-link:hover, .sx-m-acc:hover { background: var(--sx-sky); }
.sx-m-link.is-active { background: #fff4cc; }
.sx-m-acc svg { width: 1rem; height: 1rem; transition: transform .2s; }
.sx-m-acc[aria-expanded="true"] svg { transform: rotate(180deg); }
.sx-m-sub { margin: .1rem 0 .4rem .85rem; padding: 0 0 0 .6rem; list-style: none; border-left: 3px solid var(--sx-yellow); }
.sx-m-sub a { display: block; min-height: 44px; padding: .6rem .8rem; border-radius: 8px; color: var(--sx-ink); font-weight: 500; text-decoration: none; }
.sx-m-sub a:hover { background: var(--sx-sky); }
.sx-drawer-foot { padding: .9rem; border-top: 1px solid var(--sx-line); background: var(--sx-sky); display: grid; gap: .6rem; padding-bottom: calc(.9rem + env(safe-area-inset-bottom, 0px)); }
.sx-drawer-foot .sx-cta { width: 100%; min-height: 50px; }
.sx-drawer-foot-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.sx-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .4rem .8rem; border: 1px solid var(--sx-line); border-radius: 10px; background: #fff; color: var(--sx-navy); font-weight: 700; text-decoration: none; }
.sx-ghost:hover { background: var(--sx-sky); }
.sx-m-contact { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .88rem; color: var(--sx-muted); }
.sx-m-contact a { color: var(--sx-navy); font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */
.sx-footer { margin-top: 4rem; color: rgba(255,255,255,.78); background: var(--sx-deep); }
.sx-foot-cta { background: linear-gradient(135deg, var(--sx-navy), #123a8f); border-bottom: 4px solid var(--sx-yellow); }
.sx-foot-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: clamp(1.6rem, 4vw, 2.4rem); }
.sx-foot-cta h2 { margin: 0; color: #fff; font-family: var(--sx-head); font-size: clamp(1.3rem, 3.2vw, 1.9rem); font-weight: 700; line-height: 1.2; }
.sx-foot-cta p { margin: .3rem 0 0; color: rgba(255,255,255,.8); }
.sx-foot-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.sx-foot-cta .sx-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.sx-foot-cta .sx-ghost:hover { background: rgba(255,255,255,.12); }

.sx-foot-grid { display: grid; gap: 2.2rem; grid-template-columns: minmax(0,1fr); padding-block: clamp(2.2rem, 5vw, 3.4rem); }
@media (min-width: 640px)  { .sx-foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .sx-foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; } }
.sx-footer h3 { margin: 0 0 1rem; color: #fff; font-family: var(--sx-head); font-size: .9rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.sx-footer h3::after { content: ""; display: block; width: 28px; height: 3px; margin-top: .5rem; border-radius: 3px; background: var(--sx-yellow); }
.sx-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }
.sx-footer a { color: inherit; text-decoration: none; transition: color .2s; }
.sx-footer a:hover { color: var(--sx-yellow); }
/* Footer CTA must keep navy text on yellow: 8.4:1 (was 1.6:1) */
.sx-footer .sx-cta { color: var(--sx-navy); }
.sx-footer .sx-cta:hover { color: var(--sx-navy); }
.sx-foot-links a { display: inline-block; padding: .3rem 0; font-size: .95rem; }
.sx-foot-logo { width: 4.5rem; height: 4.5rem; padding: .4rem; border-radius: 14px; background: rgba(255,255,255,.95); object-fit: contain; }
.sx-footer address { margin-top: 1rem; font-style: normal; font-size: .93rem; line-height: 1.6; }
.sx-footer address strong { display: block; color: #fff; }
.sx-foot-about { max-width: 34ch; margin: 1rem 0 0; font-size: .93rem; line-height: 1.65; }
.sx-foot-contact { display: grid; gap: .35rem; margin-top: 1rem; font-size: .95rem; }
.sx-foot-contact a { text-decoration: underline; text-underline-offset: 3px; }
.sx-social { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.sx-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.sx-social a:hover { border-color: var(--sx-yellow); background: rgba(245,179,1,.1); }
.sx-affil-label { display: block; color: rgba(255,255,255,.5); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.sx-affil a { color: #fff; font-weight: 600; }
.sx-foot-sub { margin-top: 1.6rem; }
.sx-foot-bottom { display: flex; flex-direction: column; gap: .8rem; padding-block: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
@media (min-width: 700px) { .sx-foot-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.sx-foot-bottom p { margin: 0; }
.sx-foot-legal { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

@media (prefers-reduced-motion: reduce) {
  .sx-header *, .sx-footer * { transition: none !important; }
}
@media print { .sx-header, .sx-footer { display: none !important; } }

/* =====================================================================
   v2 refinements: no sideways scroll, compact mobile footer, logo motion
   ===================================================================== */
.sx-header, .sx-footer { max-width: 100vw; }
.sx-footer { overflow-x: clip; }
.sx-footer a, .sx-footer p, .sx-footer address, .sx-footer li { overflow-wrap: anywhere; }
.sx-foot-grid > * { min-width: 0; }

/* Footer grid: minmax(0, ...) stops long emails from stretching a column and causing sideways scroll */
@media (min-width: 700px)  { .sx-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sx-foot-ident { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .sx-foot-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); } .sx-foot-ident { grid-column: auto; } }

/* Collapsible footer columns (phones). On 700px+ the buttons are disabled and everything is open. */
.sx-col-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: default; }
.sx-col-btn:disabled { opacity: 1; color: inherit; }
.sx-col-chev { display: none; width: 1.1rem; height: 1.1rem; transition: transform .2s; }
@media (max-width: 699px) {
  .sx-foot-grid { gap: 0; padding-block: 1.6rem 1rem; }
  .sx-foot-ident { padding-bottom: 1.6rem; }
  .sx-col { border-top: 1px solid rgba(255,255,255,.12); }
  .sx-col h3 { margin: 0; }
  .sx-col h3::after { display: none; }
  .sx-col-btn { min-height: 52px; cursor: pointer; }
  .sx-col-chev { display: block; }
  .sx-col-btn[aria-expanded="true"] .sx-col-chev { transform: rotate(180deg); }
  .sx-col .sx-foot-links, .sx-col .sx-foot-sub { padding-bottom: 1rem; }
  .sx-foot-sub h3 { margin: 1rem 0 .8rem; }
  .sx-foot-sub h3::after { display: block; }
  .sx-foot-cta-actions { width: 100%; }
  .sx-foot-cta-actions > * { flex: 1 1 10rem; }
}

/* Back to top */
.sx-top { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 45; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sx-yellow); color: var(--sx-navy); box-shadow: 0 10px 24px rgba(6,20,47,.35); cursor: pointer; transition: background .2s, transform .2s; }
.sx-top:hover { background: var(--sx-yellow-soft); transform: translateY(-3px); }
.sx-top svg { width: 1.5rem; height: 1.5rem; }
.sx-pop-from { opacity: 0; transform: scale(.6) translateY(10px); }
.sx-pop-to { opacity: 1; transform: none; }

/* Logo motion: header crest pops in, glows softly, tilts on hover */
@keyframes sx-pop  { from { opacity: 0; transform: scale(.7) rotate(-10deg); } to { opacity: 1; transform: none; } }
@keyframes sx-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(245,179,1,0)); } 50% { filter: drop-shadow(0 0 9px rgba(245,179,1,.8)); } }
.sx-logo { transform-origin: center; animation: sx-pop .7s cubic-bezier(.2,.9,.3,1.2) backwards, sx-glow 5s ease-in-out 1.6s infinite; transition: transform .35s cubic-bezier(.2,.9,.3,1.2); }
.sx-brand:hover .sx-logo, .sx-brand:focus-visible .sx-logo { transform: rotate(-6deg) scale(1.1); }

/* Footer logo: white chip with a slowly rotating gold ring */
@keyframes sx-spin { to { transform: rotate(360deg); } }
.sx-logo-ring { position: relative; display: inline-block; width: 5.2rem; height: 5.2rem; padding: 3px; overflow: hidden; border-radius: 22px; isolation: isolate; }
.sx-logo-ring::before { content: ""; position: absolute; inset: -60%; z-index: -1; background: conic-gradient(from 0deg, var(--sx-yellow), transparent 28%, var(--sx-yellow-soft) 52%, transparent 78%, var(--sx-yellow)); animation: sx-spin 6s linear infinite; }
.sx-logo-ring img { display: block; width: 100%; height: 100%; padding: .4rem; border-radius: 19px; background: #fff; object-fit: contain; transition: transform .35s; }
.sx-logo-ring:hover img { transform: scale(1.06) rotate(-3deg); }

/* Between 1100px and 1279px the wordmark text hides so the menu never feels cramped */
@media (min-width: 1100px) and (max-width: 1279px) { .sx-header .sx-bar-inner .sx-brand-text { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .sx-logo, .sx-logo-ring::before { animation: none !important; }
  .sx-top, .sx-logo, .sx-logo-ring img { transition: none !important; }
}


/* ===== site-header.css ===== */
/* Site header refinements. Loaded AFTER site-chrome.css; only the desktop menu (1100px and up),
   the layering of the header, and the small mobile drawer animation are adjusted. */

/* The header and its dropdowns always sit above page content, hero sections and cards. */
.sx-header{z-index:90}

@keyframes sx-drop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@keyframes sx-shine{0%,62%{left:-70%}100%{left:140%}}

/* ---------- Mobile drawer: gentle accordion ---------- */
.sx-m-sub{animation:sx-drop .3s ease both}
.sx-m-acc svg{transition:transform .25s ease}
.sx-m-acc[aria-expanded="true"] svg{transform:rotate(180deg)}

/* ---------- Desktop menu ---------- */
@media (min-width:1100px){

  .sx-header[data-state="scrolled"]{box-shadow:0 10px 30px rgba(11,31,69,.13)}

  .sx-header .sx-menu{position:relative;display:flex;align-items:center;gap:.1rem}
  .sx-header .sx-item{position:relative}

  /* Top level links */
  .sx-header .sx-menu .sx-link{
    position:relative;display:inline-flex;align-items:center;gap:.3rem;padding:.7rem .95rem;border-radius:10px;
    background:transparent;color:#12224d;font-weight:700;font-size:.95rem;line-height:1.2;white-space:nowrap;text-decoration:none;
    transition:color .2s ease;
  }
  .sx-header .sx-menu .sx-link:hover,
  .sx-header .sx-item:focus-within>.sx-link,
  .sx-header .sx-item:hover>.sx-link{background:transparent;color:#0b1f45}
  .sx-header .sx-menu .sx-link.is-active{background:transparent;color:#0b1f45}
  .sx-header .sx-menu .sx-link svg{width:16px;height:16px;flex:none;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
  .sx-header .sx-item:hover>.sx-link svg,
  .sx-header .sx-item:focus-within>.sx-link svg{transform:rotate(180deg)}

  /* Underline: slides between items when JavaScript is on, simple grow-in otherwise */
  .sx-header .sx-menu .sx-link::after{
    content:"";position:absolute;left:.95rem;right:.95rem;bottom:.3rem;height:3px;border-radius:3px;
    background:linear-gradient(90deg,#f2b91d,#ffd866);transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.2,.7,.2,1);
  }
  .sx-header .sx-menu .sx-link:hover::after,
  .sx-header .sx-item:focus-within>.sx-link::after,
  .sx-header .sx-menu .sx-link.is-active::after{transform:scaleX(1)}
  .sx-header .sx-menu.has-glide .sx-link::after{display:none}

  .sx-glide{
    position:absolute;left:0;bottom:.3rem;height:3px;width:0;border-radius:3px;opacity:0;pointer-events:none;
    background:linear-gradient(90deg,#f2b91d,#ffd866);box-shadow:0 0 10px rgba(242,185,29,.55);
    transition:transform .38s cubic-bezier(.2,.8,.2,1),width .38s cubic-bezier(.2,.8,.2,1),opacity .2s ease;
  }

  /* Dropdown panel. A small close delay and an invisible bridge stop it flickering. */
  .sx-header .sx-item>.sx-panel{
    display:grid!important;position:absolute!important;top:calc(100% + 12px)!important;left:0;right:auto;z-index:100;
    width:max-content;min-width:19rem;max-width:min(92vw,26rem);margin:0;padding:.6rem;gap:.15rem;list-style:none;
    background:#fff;border:1px solid #e6dfc9;border-top:4px solid #f2b91d;border-radius:16px;
    box-shadow:0 26px 50px rgba(11,31,69,.18),0 4px 10px rgba(11,31,69,.06);
    opacity:0!important;visibility:hidden!important;pointer-events:none;transform:translateY(10px) scale(.985);transform-origin:top left;
    transition:opacity .2s ease .14s,transform .26s cubic-bezier(.2,.7,.2,1) .14s,visibility 0s linear .4s;
  }
  .sx-header .sx-item>.sx-panel::before{content:"";position:absolute;left:0;right:0;top:-18px;height:18px}
  .sx-header .sx-item>.sx-panel.sx-panel--wide{grid-template-columns:repeat(2,minmax(0,1fr));width:min(720px,92vw);max-width:none}
  .sx-header .sx-item:hover>.sx-panel,
  .sx-header .sx-item:focus-within>.sx-panel{
    opacity:1!important;visibility:visible!important;pointer-events:auto;transform:none;transition-delay:0s;
  }

  /* Items fade up one after another */
  .sx-header .sx-panel>li{opacity:0;transform:translateY(8px);transition:opacity .25s ease,transform .3s cubic-bezier(.2,.7,.2,1)}
  .sx-header .sx-item:hover>.sx-panel>li,
  .sx-header .sx-item:focus-within>.sx-panel>li{opacity:1;transform:none;transition-delay:calc(var(--i,0) * 28ms + 60ms)}
  .sx-header .sx-panel>li:nth-child(1){--i:0}.sx-header .sx-panel>li:nth-child(2){--i:1}.sx-header .sx-panel>li:nth-child(3){--i:2}
  .sx-header .sx-panel>li:nth-child(4){--i:3}.sx-header .sx-panel>li:nth-child(5){--i:4}.sx-header .sx-panel>li:nth-child(6){--i:5}
  .sx-header .sx-panel>li:nth-child(7){--i:6}.sx-header .sx-panel>li:nth-child(8){--i:7}.sx-header .sx-panel>li:nth-child(9){--i:8}

  .sx-header .sx-panel>li>a{
    position:relative;display:grid;grid-template-columns:2.4rem minmax(0,1fr);column-gap:.85rem;align-items:center;padding:.6rem .8rem;
    border-radius:12px;color:#12224d;text-decoration:none;transition:background-color .2s ease,transform .25s cubic-bezier(.2,.7,.2,1);
  }
  .sx-header .sx-panel>li>a::before{
    content:"\2660\FE0E";grid-row:1 / span 2;display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:50%;
    background:#f6f1de;border:1px solid #eadfb8;color:#12224d;font-size:1.05rem;line-height:1;
    transition:transform .3s cubic-bezier(.2,.7,.2,1),background-color .2s,color .2s,border-color .2s;
  }
  .sx-header .sx-panel>li:nth-child(4n+2)>a::before{content:"\2665\FE0E";color:#b3261e}
  .sx-header .sx-panel>li:nth-child(4n+3)>a::before{content:"\2666\FE0E";color:#b3261e}
  .sx-header .sx-panel>li:nth-child(4n)>a::before{content:"\2663\FE0E"}
  .sx-header .sx-panel>li>a:hover,
  .sx-header .sx-panel>li>a:focus-visible{background:#faf6e6;transform:translateX(4px)}
  .sx-header .sx-panel>li>a:hover::before,
  .sx-header .sx-panel>li>a:focus-visible::before{transform:rotate(-12deg) scale(1.08);background:#12224d;border-color:#12224d;color:#f2b91d}
  .sx-header .sx-panel>li>a.is-current{background:#fff6d6}
  .sx-header .sx-panel>li>a b{display:block;font-weight:800;font-size:.95rem;line-height:1.25}
  .sx-header .sx-panel>li>a small{display:block;margin-top:.05rem;color:#5a6580;font-size:.8rem;line-height:1.35;font-weight:500}

  /* Register button: lift and a slow shine */
  .sx-header .sx-actions .sx-cta{position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
  .sx-header .sx-actions .sx-cta:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(11,31,69,.2)}
  .sx-header .sx-actions .sx-cta::after{
    content:"";position:absolute;top:0;bottom:0;left:-70%;width:40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.6),transparent);
    transform:skewX(-20deg);animation:sx-shine 6s ease-in-out 2s infinite;pointer-events:none;
  }
}

/* Medium desktop widths: tighter spacing so nothing collides with the logo or the Register button */
@media (min-width:1100px) and (max-width:1279px){
  .sx-header .sx-menu .sx-link{padding:.65rem .6rem;font-size:.9rem}
  .sx-header .sx-menu .sx-link::after{left:.6rem;right:.6rem}
  .sx-header .sx-item:nth-child(n+4)>.sx-panel{left:auto;right:0;transform-origin:top right}
}

@media (prefers-reduced-motion:reduce){
  .sx-header *,.sx-header *::before,.sx-header *::after{transition:none!important;animation:none!important}
  .sx-header .sx-panel>li{opacity:1;transform:none}
}


/* ===== home-pro.css ===== */
/* MGC Bridge: home page (hx-*). Self-contained; does not depend on home.css. */

.hx {
  /* Default palette = Monday (Royal Sapphire & Gold). Each day below overrides these variables. */
  --navy: #07123a; --navy2: #0f2466; --royal: #1f3f9e;
  --gold: #d9ac3e; --gold2: #f2d27a; --gold-deep: #a97f1c; --gold-soft: #f9f0d5; --gold-ink: #6b4f0e;
  --ink: #0b1536; --mute: #46557a; --line: #dde4f3; --edge: #bcc9e6; --sky: #eef2fb; --paper: #f6f8fd;
  --h1: #0a1d5c; --h2: #153182; --h3: #2147b0;
  --acc: 217,172,62; --acc2: 70,110,230; --shade: 6,14,48;
  --red: #c8283c;
  --font-head: Poppins, Inter, system-ui, sans-serif; --hw: 700; --hs: 1; --track: -.01em; --track-h: -.02em;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  margin-bottom: -4rem; /* cancels the layout's pb-16 so the themed background reaches the footer */
  overflow-x: clip;
}
.hx[data-theme="sunday"] {
  --navy: #2e050f; --navy2: #5c0a1c; --royal: #a31230;
  --gold: #e6bd5e; --gold2: #f6dc98; --gold-deep: #b08a2e; --gold-soft: #faefd5; --gold-ink: #6e4f12;
  --ink: #2a0a12; --mute: #6b4f56; --line: #f0d9dc; --edge: #deb6bc; --sky: #fbeff0; --paper: #fff8f8;
  --h1: #4a0816; --h2: #7d0f26; --h3: #b01a3a;
  --acc: 230,189,94; --acc2: 240,80,100; --shade: 36,4,10;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1; --track: -.005em; --track-h: -.015em;
}
.hx[data-theme="tuesday"] {
  --navy: #04231c; --navy2: #0a4033; --royal: #0c6a50;
  --gold: #d4af37; --gold2: #efd57e; --gold-deep: #9e7f1c; --gold-soft: #f8f0d3; --gold-ink: #6b5412;
  --ink: #082a21; --mute: #466158; --line: #d6e8df; --edge: #b0d0c2; --sky: #eaf4ef; --paper: #f5faf7;
  --h1: #052f25; --h2: #0a5340; --h3: #0f6f56;
  --acc: 212,175,55; --acc2: 40,170,125; --shade: 2,22,17;
  --font-head: Fraunces, Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1; --track: -.005em; --track-h: -.02em;
}
.hx[data-theme="wednesday"] {
  --navy: #2b0814; --navy2: #4d0f27; --royal: #8a1c47;
  --gold: #e0b86a; --gold2: #f4dba0; --gold-deep: #a67c2e; --gold-soft: #f9eed6; --gold-ink: #6e4f16;
  --ink: #2a0d18; --mute: #6b4f5a; --line: #ecd9df; --edge: #d8b8c3; --sky: #f8eef1; --paper: #fcf7f9;
  --h1: #3e0b20; --h2: #66132f; --h3: #8f1d46;
  --acc: 224,184,106; --acc2: 210,70,120; --shade: 28,5,14;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1.14; --track: 0; --track-h: -.01em;
}
.hx[data-theme="thursday"] {
  --navy: #170a38; --navy2: #2b1363; --royal: #5e35c5;
  --gold: #e0b84f; --gold2: #f4da8a; --gold-deep: #a98124; --gold-soft: #f8efd4; --gold-ink: #6b4f10;
  --ink: #170c36; --mute: #55507a; --line: #e1dbf3; --edge: #c7bce6; --sky: #f1edfb; --paper: #f9f7fe;
  --h1: #24104f; --h2: #3a1d8c; --h3: #5a32c0;
  --acc: 224,184,79; --acc2: 140,100,245; --shade: 14,6,36;
  --font-head: Sora, Inter, system-ui, sans-serif; --hw: 700; --hs: 0.94; --track: -.02em; --track-h: -.035em;
}
.hx[data-theme="friday"] {
  --navy: #04262f; --navy2: #09424f; --royal: #0c6b80;
  --gold: #e3b95a; --gold2: #f5dc92; --gold-deep: #ad8628; --gold-soft: #f9efd6; --gold-ink: #6b5012;
  --ink: #062a33; --mute: #456068; --line: #d3e7ea; --edge: #aacfd6; --sky: #e9f5f7; --paper: #f5fafb;
  --h1: #053847; --h2: #0a5a6e; --h3: #0f7a92;
  --acc: 227,185,90; --acc2: 40,190,210; --shade: 2,26,34;
  --font-head: 'Space Grotesk', Inter, system-ui, sans-serif; --hw: 700; --hs: 1; --track: -.02em; --track-h: -.035em;
}
.hx[data-theme="saturday"] {
  --navy: #08080d; --navy2: #16161f; --royal: #7a5e12;
  --gold: #d9b23c; --gold2: #f3d98a; --gold-deep: #a37e1b; --gold-soft: #faf2d4; --gold-ink: #6b5412;
  --ink: #15141a; --mute: #5a574c; --line: #e6e2d6; --edge: #cfc8b2; --sky: #f4f2ec; --paper: #faf9f6;
  --h1: #0d0d14; --h2: #181826; --h3: #262640;
  --acc: 217,178,60; --acc2: 90,100,190; --shade: 4,4,10;
  --font-head: 'DM Serif Display', Georgia, 'Times New Roman', serif; --hw: 400; --hs: 1.04; --track: 0; --track-h: -.01em;
}

.hx[data-theme="silver"] {
  --navy: #0a1022; --navy2: #172036; --royal: #3d4f7a;
  --gold: #c9d2e0; --gold2: #e8edf5; --gold-deep: #8e9ab0; --gold-soft: #eef1f7; --gold-ink: #3d4a63;
  --ink: #0d1426; --mute: #4f5b73; --line: #dfe3ec; --edge: #c3cad9; --sky: #eff2f8; --paper: #f7f8fb;
  --h1: #0c1530; --h2: #19264a; --h3: #2a3b6b;
  --acc: 201,210,224; --acc2: 90,120,200; --shade: 6,10,24;
  --font-head: Poppins, Inter, system-ui, sans-serif; --hw: 700; --hs: 1; --track: -.01em; --track-h: -.02em;
}
.hx[data-theme="rose"] {
  --navy: #2a0f1c; --navy2: #4a1b32; --royal: #9a3a62;
  --gold: #e8a994; --gold2: #f6cfc0; --gold-deep: #b87560; --gold-soft: #fbeae3; --gold-ink: #7a3b2a;
  --ink: #2a1019; --mute: #6b5059; --line: #f0dce1; --edge: #dcbac6; --sky: #fbf0f3; --paper: #fff9fa;
  --h1: #451a30; --h2: #6f2a4a; --h3: #9a3f67;
  --acc: 232,169,148; --acc2: 215,90,140; --shade: 38,10,22;
  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1; --track: -.005em; --track-h: -.015em;
}
.hx[data-theme="bronze"] {
  --navy: #1c120c; --navy2: #3a2418; --royal: #8a5a2b;
  --gold: #cd9a5b; --gold2: #e9c996; --gold-deep: #9a6a32; --gold-soft: #f6e9d6; --gold-ink: #6a4219;
  --ink: #20150d; --mute: #65574b; --line: #eadfd2; --edge: #d3c0aa; --sky: #f7f0e7; --paper: #fcf9f5;
  --h1: #2d1b11; --h2: #50301c; --h3: #774a28;
  --acc: 205,154,91; --acc2: 190,120,60; --shade: 22,12,6;
  --font-head: Fraunces, Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1; --track: -.005em; --track-h: -.02em;
}
.hx[data-theme="indigo"] {
  --navy: #0b0f3a; --navy2: #1a2275; --royal: #3446d6;
  --gold: #5fd4c8; --gold2: #a3ece4; --gold-deep: #2fa79b; --gold-soft: #dff6f3; --gold-ink: #14645c;
  --ink: #0d1140; --mute: #4b5282; --line: #dde0f5; --edge: #bcc2ea; --sky: #eef0fc; --paper: #f7f8fe;
  --h1: #121a66; --h2: #1f2b9a; --h3: #3447d4;
  --acc: 95,212,200; --acc2: 90,110,255; --shade: 8,10,48;
  --font-head: 'Space Grotesk', Inter, system-ui, sans-serif; --hw: 700; --hs: 1; --track: -.02em; --track-h: -.035em;
}
.hx[data-theme="olive"] {
  --navy: #1a1f0c; --navy2: #333d17; --royal: #5f6e1f;
  --gold: #cfae4a; --gold2: #ecd88f; --gold-deep: #9a7e26; --gold-soft: #f6efd3; --gold-ink: #6b5412;
  --ink: #1e230f; --mute: #596046; --line: #e3e6d3; --edge: #c8cfae; --sky: #f3f5e8; --paper: #fafbf4;
  --h1: #28300f; --h2: #46531b; --h3: #66782a;
  --acc: 207,174,74; --acc2: 140,170,50; --shade: 14,18,5;
  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --hw: 700; --hs: 1.14; --track: 0; --track-h: -.01em;
}

.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx h1, .hx h2, .hx h3 { font-family: var(--font-head); font-weight: var(--hw); margin: 0; letter-spacing: var(--track); }
.hx p { margin: 0; }
.hx a { text-decoration: none; }
.hx-wrap { width: min(100% - 2rem, 1200px); margin-inline: auto; }

/* Focus */
.hx a:focus-visible, .hx button:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: .5rem; }
.hx-hero a:focus-visible, .hx-final a:focus-visible { outline-color: var(--gold2); }

/* Suit pips */
.hx-pip { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.12em; }
[data-suit="heart"] > .hx-pip, [data-suit="diamond"] > .hx-pip { color: var(--red); }

/* ================= HERO ================= */
.hx-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  padding: clamp(1.8rem, 5vw, 4rem) 0 clamp(5.5rem, 10vw, 7.5rem);
  background:
    radial-gradient(55rem 28rem at 88% -8%, rgba(var(--acc),.20), transparent 62%),
    radial-gradient(48rem 30rem at -5% 108%, rgba(var(--acc2),.38), transparent 60%),
    linear-gradient(135deg, var(--h1) 0%, var(--h2) 52%, var(--h3) 100%);
}
.hx-hero-media { position: absolute; inset: 0; z-index: -3; }
.hx-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; display: block; }

/* No upload: soft vignette plus a quiet pattern of the four suits */
.hx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(var(--shade),0) 40%, rgba(var(--shade),.4) 100%);
}
.hx-hero:not(.has-photo)::after {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg fill='white' fill-opacity='.055'%3E%3Cpath transform='translate(16 14) scale(1.3)' d='M12 1.5C9 6 3.5 9.2 3.5 13.6a4.1 4.1 0 006.7 3.1c-.1 1.9-.8 3.7-2.4 5.8h8.4c-1.6-2.1-2.3-3.9-2.4-5.8a4.1 4.1 0 006.7-3.1C20.5 9.2 15 6 12 1.5z'/%3E%3Cpath transform='translate(104 28) scale(1.3)' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3Cpath transform='translate(34 98) scale(1.3)' d='M12 1.5l7.5 10.5L12 22.5 4.5 12z'/%3E%3Cg transform='translate(108 100) scale(1.3)'%3E%3Ccircle cx='12' cy='6.8' r='4.3'/%3E%3Ccircle cx='6.8' cy='14' r='4.3'/%3E%3Ccircle cx='17.2' cy='14' r='4.3'/%3E%3Cpath d='M12 11c0 4.2-.9 7.6-3.3 11.2h6.6C12.9 18.6 12 15.2 12 11z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 170px 170px;
  -webkit-mask-image: linear-gradient(95deg, #000 0%, rgba(0,0,0,.55) 100%); mask-image: linear-gradient(95deg, #000 0%, rgba(0,0,0,.55) 100%);
}
/* With an uploaded photo: darker on the left so the title stays readable */
.hx-hero.has-photo::before {
  background: linear-gradient(95deg, rgba(var(--shade),.92) 0%, rgba(var(--shade),.78) 38%, rgba(var(--shade),.35) 72%, rgba(var(--shade),.25) 100%);
}
.hx-hero-suits { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-hero-suits svg {
  position: absolute; left: var(--x, 50%); top: var(--y, 50%); width: var(--s, 3rem); height: var(--s, 3rem);
  color: var(--c, #fff); opacity: var(--o, .08);
  transform: rotate(var(--r, 0deg));
  animation: hx-float var(--d, 14s) ease-in-out infinite; animation-delay: var(--dl, 0s);
}
.hx-hero-suits svg:nth-child(1) { --x: 3%;  --y: 62%; --s: 5.5rem; --o: .08; --r: -12deg; --d: 15s; }
.hx-hero-suits svg:nth-child(2) { --x: 44%; --y: 8%;  --s: 3rem;   --o: .10; --r: 10deg;  --d: 12s; --dl: -3s; --c: var(--gold2); }
.hx-hero-suits svg:nth-child(3) { --x: 90%; --y: 6%;  --s: 4.5rem; --o: .08; --r: 14deg;  --d: 17s; --dl: -6s; }
.hx-hero-suits svg:nth-child(4) { --x: 84%; --y: 70%; --s: 7rem;   --o: .07; --r: -8deg;  --d: 19s; --dl: -2s; }
.hx-hero-suits svg:nth-child(5) { --x: 27%; --y: 78%; --s: 2.6rem; --o: .12; --r: 8deg;   --d: 13s; --dl: -8s; --c: var(--gold2); }
.hx-hero-suits svg:nth-child(6) { --x: 62%; --y: 84%; --s: 3.4rem; --o: .08; --r: -16deg; --d: 16s; --dl: -5s; }
.hx-hero-suits svg:nth-child(7) { --x: 70%; --y: 30%; --s: 2.2rem; --o: .10; --r: 20deg;  --d: 11s; --dl: -1s; --c: var(--gold2); }
.hx-hero-suits svg:nth-child(8) { --x: 12%; --y: 10%; --s: 2.4rem; --o: .08; --r: -6deg;  --d: 14s; --dl: -9s; }
@keyframes hx-float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 8deg)); }
}

.hx-hero-grid { display: grid; gap: 1.8rem; align-items: center; }
@media (min-width: 900px) { .hx-hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 2.5rem; } }

.hx-hero-copy > * { animation: hx-up .7s cubic-bezier(.2,.8,.2,1) both; }
.hx-hero-copy > :nth-child(2) { animation-delay: .08s; }
.hx-hero-copy > :nth-child(3) { animation-delay: .16s; }
.hx-hero-copy > :nth-child(4) { animation-delay: .24s; }
.hx-hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes hx-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hx-pill {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem;
  border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  font-size: .85rem; font-weight: 600; color: var(--gold2); margin-bottom: 1rem;
}
.hx .hx-hero h1 { color: #fff; font-size: calc(clamp(2rem, 5.2vw, 3.8rem) * var(--hs)); line-height: 1.1; font-weight: var(--hw); letter-spacing: var(--track-h); text-wrap: balance; text-shadow: 0 2px 24px rgba(5,12,32,.35); }
.hx .hx-hero h1 span { color: var(--gold); }
.hx-lede { margin-top: 1rem; max-width: 36rem; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; color: rgba(255,255,255,.86); }

.hx-facts { list-style: none; padding: 0; margin: 1.3rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hx-facts li {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .9rem; border-radius: .7rem;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2); font-weight: 600; font-size: .92rem;
}
.hx-facts svg { color: var(--gold); flex: none; }

.hx-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hx-cta--center { justify-content: center; }

/* Buttons */
.hx-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .7rem 1.35rem;
  border-radius: .7rem; border: 1.5px solid transparent; font: 600 .95rem/1.1 Inter, system-ui, sans-serif;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn:active { transform: translateY(0) scale(.98); }
.hx-btn--sm { min-height: 2.5rem; padding: .55rem 1.05rem; font-size: .88rem; }
.hx-btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 20px -10px rgba(var(--acc),.9); }
.hx-btn--gold:hover { background: var(--gold2); }
.hx-btn--line { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); }
.hx-btn--line:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.hx-btn--navy { background: var(--navy); color: #fff; }
.hx-btn--navy:hover { background: var(--royal); }
.hx-btn--ghost { background: transparent; color: var(--navy); border-color: var(--edge); }
.hx-btn--ghost:hover { border-color: var(--royal); background: #fff; }

/* Countdown */
.hx-count {
  padding: clamp(1rem, 2.5vw, 1.5rem); border-radius: 1.25rem; color: #fff;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px -30px rgba(0,0,0,.7);
  animation: hx-up .8s .3s cubic-bezier(.2,.8,.2,1) both;
}
.hx-count-title { font-weight: 700; font-size: .95rem; letter-spacing: .02em; margin-bottom: .9rem; color: #fff; }
.hx-count-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.hx-count-grid[hidden] { display: none; }
.hx-count-box { background: #fff; color: var(--navy); border-radius: .8rem; padding: .7rem .2rem .55rem; text-align: center; min-width: 0; }
.hx-count-box b { display: block; font: var(--hw) clamp(1.4rem, 4.4vw, 2.2rem)/1 var(--font-head); font-variant-numeric: tabular-nums; }
.hx-count-box span { display: block; margin-top: .3rem; font-size: clamp(.62rem, 1.7vw, .75rem); font-weight: 600; color: var(--mute); }
.hx-count-note { margin-top: .9rem; font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.85); }
.hx-count-msg { font: var(--hw) 1.15rem/1.4 var(--font-head); margin: .2rem 0 .3rem; }


/* Slow colour aurora behind the hero (transform only, so it stays smooth on phones) */
.hx-aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.hx-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hx-aurora i:nth-child(1) { width: 34rem; height: 34rem; right: -9rem; top: -11rem; background: rgba(var(--acc), .30); animation: hx-drift1 22s ease-in-out infinite alternate; }
.hx-aurora i:nth-child(2) { width: 38rem; height: 38rem; left: -13rem; bottom: -17rem; background: rgba(var(--acc2), .40); animation: hx-drift2 26s ease-in-out infinite alternate; }
.hx-hero.has-photo .hx-aurora { opacity: .35; }
@keyframes hx-drift1 { to { transform: translate3d(-6rem, 5rem, 0) scale(1.15); } }
@keyframes hx-drift2 { to { transform: translate3d(7rem, -4rem, 0) scale(1.1); } }

/* The year glows like gold leaf */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hx .hx-hero h1 span {
    background: linear-gradient(100deg, var(--gold) 0%, var(--gold2) 45%, var(--gold) 90%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: hx-leaf 7s linear infinite;
  }
}
@keyframes hx-leaf { to { background-position: -220% 0; } }

/* Smooth hand-over when the theme changes (e.g. at midnight while the page is open) */
.hx, .hx-hero, .hx-sec--sky { transition: background-color .8s ease; }

/* ================= QUICK LINKS: a hand of four cards ================= */
.hx-quick-wrap { position: relative; z-index: 5; margin-top: calc(-1 * clamp(2.7rem, 5vw, 3.5rem)); }
.hx-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.hx-q {
  position: relative; display: flex; align-items: center; gap: .75rem; min-width: 0;
  padding: .85rem 1.6rem .85rem .9rem; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: .95rem; overflow: hidden;
  box-shadow: 0 16px 32px -20px rgba(var(--shade),.6);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: hx-deal .65s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.5s + var(--i, 0) * .1s);
}
@keyframes hx-deal { from { opacity: 0; transform: translateY(22px) rotate(-3deg); } to { opacity: 1; transform: none; } }
.hx-q::after { /* shine sweep on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(var(--acc),.22), transparent);
  transform: skewX(-18deg); transition: left .6s ease; pointer-events: none;
}
.hx-q:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 22px 36px -20px rgba(var(--shade),.65); }
.hx-q:hover::after { left: 130%; }
.hx-q:active { transform: translateY(-1px) scale(.98); }
.hx-q > .hx-pip { position: absolute; top: .5rem; right: .55rem; width: .9rem; height: .9rem; color: var(--ink); opacity: .55; transition: transform .35s ease, opacity .25s; }
.hx-q:hover > .hx-pip { transform: rotate(18deg) scale(1.25); opacity: 1; }
.hx-q-ico {
  display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--navy); color: var(--gold); transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .25s;
}
.hx-q:hover .hx-q-ico { transform: scale(1.12) rotate(-8deg); background: var(--royal); }
.hx-q-txt { display: flex; flex-direction: column; min-width: 0; }
.hx-q-txt b { font-size: .98rem; font-weight: 700; line-height: 1.2; }
.hx-q-txt small { margin-top: .15rem; font-size: .78rem; line-height: 1.3; color: var(--mute); }

@media (max-width: 999px) { .hx-q-txt small { display: none; } }
@media (max-width: 700px) {
  .hx-quick { gap: .45rem; }
  .hx-q { flex-direction: column; justify-content: center; text-align: center; gap: .35rem; padding: .7rem .2rem .6rem; border-radius: .8rem; }
  .hx-q > .hx-pip { top: .3rem; right: .3rem; width: .7rem; height: .7rem; }
  .hx-q-ico { width: 2.15rem; height: 2.15rem; }
  .hx-q-ico svg { width: 17px; height: 17px; }
  .hx-q-txt b { font-size: .72rem; line-height: 1.15; text-wrap: balance; }
}
@media (max-width: 360px) { .hx-q-txt b { font-size: .66rem; } .hx-q-ico { width: 1.9rem; height: 1.9rem; } }

/* ================= SECTIONS ================= */
.hx-sec { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.hx-sec--sky { background: var(--sky); }
.hx-sec--tight { padding-top: 0; }
.hx-sec--sky + .hx-sec--tight { padding-top: clamp(2.6rem, 6vw, 4.5rem); }
.hx-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .8rem 1.5rem; margin-bottom: 1.6rem; }
.hx-kicker { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .4rem; font-size: .88rem; font-weight: 600; color: var(--royal); }
.hx-kicker .hx-pip { color: var(--gold); width: 1rem; height: 1rem; }
.hx .hx-h2 { font-size: calc(clamp(1.45rem, 3.4vw, 2.3rem) * var(--hs)); line-height: 1.15; font-weight: var(--hw); color: var(--navy); text-wrap: balance; }
.hx-p { margin-top: 1rem; max-width: 38rem; line-height: 1.75; color: var(--mute); font-size: 1.02rem; }
.hx-link { font-weight: 600; color: var(--royal); border-bottom: 2px solid var(--gold); padding-bottom: 1px; transition: color .2s; }
.hx-link:hover { color: var(--navy); }
.hx-empty { padding: 1.4rem; border: 1.5px dashed var(--edge); border-radius: 1rem; color: var(--mute); background: #fff; }

.hx-grid { display: grid; gap: 1.1rem; }
.hx-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); }
.hx-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }

/* Scroll reveal: only items below the fold are hidden, and only by the script, so nothing can stay invisible */
.hx-rv.hx-pre { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.hx-rv.hx-pre.in { opacity: 1; transform: none; }

/* Events */
.hx-ev {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 1rem;
  box-shadow: 0 14px 30px -26px rgba(var(--shade),.6); transition: box-shadow .25s ease, transform .25s ease;
}
.hx-ev:hover { box-shadow: 0 22px 36px -24px rgba(var(--shade),.6); }
.hx-ev .hx-ev-bg { position: absolute; right: -.7rem; bottom: -.9rem; width: 6.5rem; height: 6.5rem; color: var(--navy); opacity: .05; pointer-events: none; }
.hx-ev[data-suit="heart"] .hx-ev-bg, .hx-ev[data-suit="diamond"] .hx-ev-bg { color: var(--red); opacity: .07; }
.hx-ev-date { align-self: flex-start; padding: .25rem .65rem; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); font-size: .78rem; font-weight: 700; }
.hx .hx-ev h3 { font-size: 1.15rem; line-height: 1.3; color: var(--navy); }
.hx-ev p { font-size: .93rem; line-height: 1.6; color: var(--mute); }
.hx-ev-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .7rem; position: relative; }

/* About */
.hx-about { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hx-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; } }
.hx-photo { position: relative; margin: 0; border-radius: 1.2rem; overflow: hidden; box-shadow: 0 30px 50px -34px rgba(var(--shade),.8); background: var(--navy2); }
.hx-photo img { display: block; width: 100%; height: auto; }
.hx-photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .15rem; padding: 2.5rem 1.1rem .9rem;
  color: #fff; background: linear-gradient(to top, rgba(var(--shade),.85), transparent);
}
.hx-photo figcaption b { font-size: .98rem; }
.hx-photo figcaption span { font-size: .82rem; color: rgba(255,255,255,.85); }

.hx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.4rem; }
@media (max-width: 800px) { .hx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
.hx-stat { position: relative; padding: 1.1rem 1.1rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.hx-stat > .hx-pip { position: absolute; top: .7rem; right: .7rem; width: 1.1rem; height: 1.1rem; color: var(--navy); opacity: .5; }
.hx-stat b { display: block; font: var(--hw) clamp(1.6rem, 4vw, 2.3rem)/1.1 var(--font-head); color: var(--navy); font-variant-numeric: tabular-nums; }
.hx-stat span { display: block; margin-top: .35rem; font-size: .86rem; font-weight: 500; color: var(--mute); }

/* News + results */
.hx-two { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .hx-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.hx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hx-row {
  display: flex; gap: .95rem; align-items: flex-start; padding: .95rem 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 1rem; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.hx-row:hover { border-color: var(--gold); transform: translateX(4px); box-shadow: 0 14px 28px -22px rgba(var(--shade),.6); }
.hx-row-date { flex: none; display: grid; place-items: center; width: 3.2rem; padding: .45rem 0; border-radius: .7rem; background: var(--navy); color: #fff; text-align: center; line-height: 1.1; }
.hx-row-date b { font: var(--hw) 1.2rem/1 var(--font-head); }
.hx-row-date span { font-size: .7rem; font-weight: 600; color: var(--gold2); }
.hx-row-date--gold { align-self: center; height: 3.2rem; background: var(--gold-soft); color: var(--red); font-size: 1.4rem; }
.hx-row-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.hx-row-body small { font-size: .78rem; font-weight: 600; color: var(--royal); }
.hx-row-body b { font-size: 1rem; line-height: 1.35; color: var(--navy); }
.hx-row-body p { font-size: .9rem; line-height: 1.55; color: var(--mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Gallery */
.hx-gal { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 1rem; overflow: hidden; background: var(--navy2); }
.hx-gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hx-gal:hover img { transform: scale(1.06); }
.hx-gal span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .8rem; color: #fff; font-weight: 600; font-size: .92rem;
  background: linear-gradient(to top, rgba(var(--shade),.88), transparent);
}

/* Visit */
.hx-visit { position: relative; border-radius: 1.3rem; overflow: hidden; background: var(--navy); box-shadow: 0 30px 50px -36px rgba(var(--shade),.8); }
.hx-visit-img img { display: block; width: 100%; height: auto; }
.hx-visit-card { padding: 1.4rem 1.3rem 1.5rem; background: #fff; }
.hx-visit-card address { margin-top: .8rem; font-style: normal; line-height: 1.7; color: var(--mute); }
.hx-visit-card address strong { display: block; color: var(--navy); }
@media (min-width: 900px) {
  .hx-visit-card { position: absolute; left: 1.5rem; bottom: 1.5rem; max-width: 23rem; border-radius: 1rem; box-shadow: 0 24px 40px -24px rgba(0,0,0,.6); }
}

/* Final call to action */
.hx-final {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; color: #fff;
  padding: clamp(2.2rem, 6vw, 3.8rem) 1.4rem; border-radius: 1.4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
}
.hx-final h2 { font-size: clamp(1.5rem, 3.8vw, 2.4rem); }
.hx-final p { max-width: 34rem; margin: .8rem auto 0; line-height: 1.7; color: rgba(255,255,255,.86); }
.hx-final-suits { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-final-suits svg { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); color: var(--gold2); opacity: .14; transform: rotate(var(--r)); }

/* Large screens: let the hero breathe */
@media (min-width: 1500px) { .hx-wrap { width: min(100% - 4rem, 1280px); } }

/* Small phones */
@media (max-width: 480px) {
  .hx-cta .hx-btn:not(.hx-btn--sm) { flex: 1 1 auto; }
  .hx-facts li { font-size: .84rem; padding: .5rem .75rem; }
  .hx-row:hover { transform: none; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
  .hx-rv.hx-pre { opacity: 1; transform: none; }
}


/* ================= Royal finish: metallic gold, jewel depth, fine gold rules ================= */
.hx-hero { box-shadow: inset 0 -3px 0 rgba(var(--acc), .6); }
.hx-pill { background: rgba(var(--shade), .35); border-color: rgba(var(--acc), .55); color: var(--gold2); }
.hx-facts li { border-color: rgba(var(--acc), .32); background: rgba(var(--shade), .28); }

.hx .hx-btn--gold,
.hx .hx-btn--gold:hover {
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  border-color: rgba(255,255,255,.28); color: var(--navy);
  box-shadow: 0 12px 24px -12px rgba(var(--acc), .95), inset 0 1px 0 rgba(255,255,255,.5);
}
.hx .hx-btn--gold:hover { filter: brightness(1.07) saturate(1.05); }
.hx .hx-btn--line { border-color: rgba(var(--acc), .6); }
.hx .hx-btn--line:hover { border-color: var(--gold2); background: rgba(var(--acc), .16); }
.hx .hx-btn--navy { background: linear-gradient(145deg, var(--navy2), var(--navy)); box-shadow: inset 0 0 0 1px rgba(var(--acc), .45); }

/* Countdown: jewelled glass with a gold thread across the top */
.hx-count { position: relative; border-color: rgba(var(--acc), .45); background: rgba(var(--shade), .38); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.22); }
.hx-count::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold2), transparent); }
.hx-count-title { color: var(--gold2); }
.hx-count-box { background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); border-bottom: 3px solid var(--gold); }

/* Quick cards: gold-ringed medallions */
.hx-q { box-shadow: 0 18px 36px -22px rgba(var(--shade), .7); }
.hx-q-ico { background: linear-gradient(145deg, var(--navy2), var(--navy)); box-shadow: 0 0 0 2px rgba(var(--acc), .6), 0 6px 14px -6px rgba(var(--shade), .8); }
.hx-q:hover { box-shadow: 0 24px 40px -22px rgba(var(--shade), .75), 0 0 0 1px rgba(var(--acc), .5); }

/* Headings get a short gold rule; cards get a gold crown line */
.hx .hx-h2::after { content: ""; display: block; width: 3.2rem; height: 3px; margin-top: .75rem; border-radius: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold2)); }
.hx-sec--sky { background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%); }
.hx-ev, .hx-stat, .hx-row { box-shadow: 0 18px 38px -28px rgba(var(--shade), .55); }
.hx-ev { border-top-color: var(--gold); }
.hx-stat { border-top: 3px solid var(--gold); }
.hx-row-date { background: linear-gradient(160deg, var(--navy2), var(--navy)); box-shadow: inset 0 0 0 1px rgba(var(--acc), .4); }
.hx-visit { box-shadow: 0 34px 60px -38px rgba(var(--shade), .85), 0 0 0 1px rgba(var(--acc), .35); }
.hx-photo { box-shadow: 0 34px 56px -36px rgba(var(--shade), .85), 0 0 0 1px rgba(var(--acc), .3); }
.hx-link { border-bottom-color: var(--gold); }


/* ================= Colour picker (floating button + panel) ================= */
.hx-fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--gold); color: var(--gold2);
  background: linear-gradient(145deg, var(--navy2), var(--navy));
  box-shadow: 0 14px 28px -10px rgba(var(--shade), .8), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .3s cubic-bezier(.3,1.5,.5,1), box-shadow .25s ease;
}
.hx-fab:hover { transform: rotate(14deg) scale(1.08); }
.hx-fab:active { transform: scale(.94); }
.hx-fab svg { width: 1.45rem; height: 1.45rem; }
.hx-fab::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: hx-ring 2.2s ease-out 1.6s 3; pointer-events: none; }
@keyframes hx-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.hx-fab[aria-expanded="true"] { transform: rotate(90deg); }

.hx-pal {
  position: fixed; right: 1rem; bottom: calc(4.7rem + env(safe-area-inset-bottom, 0px)); z-index: 56;
  width: min(calc(100vw - 2rem), 21.5rem); max-height: calc(100dvh - 7rem); overflow: auto;
  padding: 1rem 1rem 1.05rem; border-radius: 1.2rem; color: var(--ink);
  background: rgba(255,255,255,.97); border: 1px solid var(--edge); border-top: 3px solid var(--gold);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 34px 70px -28px rgba(var(--shade), .8);
  transform-origin: bottom right; opacity: 0; transform: translateY(12px) scale(.94); visibility: hidden;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,.9,.3,1), visibility 0s linear .3s;
}
.hx-pal.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.hx-pal-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .75rem; }
.hx-pal-head b { font: var(--hw) 1.02rem/1.2 var(--font-head); color: var(--navy); }
.hx-pal-x { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--sky); color: var(--navy); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.hx-pal-x:hover { background: var(--gold-soft); }

.hx-auto {
  display: flex; align-items: center; gap: .7rem; width: 100%; padding: .6rem .8rem; margin-bottom: .85rem; text-align: left; cursor: pointer;
  border: 1.5px solid var(--edge); border-radius: .85rem; background: var(--paper); color: var(--ink); font: 600 .86rem/1.25 Inter, system-ui, sans-serif;
  transition: border-color .2s, background .2s;
}
.hx-auto small { display: block; font-weight: 500; font-size: .75rem; color: var(--mute); }
.hx-auto svg { flex: none; width: 1.5rem; height: 1.5rem; color: var(--gold-deep); }
.hx-auto:hover { border-color: var(--gold); }
.hx-auto[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }

.hx-sw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem .4rem; }
.hx-sw { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: .25rem 0 .1rem; border: 0; background: none; cursor: pointer; color: var(--mute); font: 600 .68rem/1.1 Inter, system-ui, sans-serif; }
.hx-pal.open .hx-sw { animation: hx-pop .45s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--n, 0) * 28ms + 60ms); }
@keyframes hx-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.hx-sw-dot { position: relative; width: 2.7rem; height: 2.7rem; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,.55); transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .2s; }
.hx-sw:hover .hx-sw-dot { transform: scale(1.12) rotate(-8deg); }
.hx-sw[aria-pressed="true"] { color: var(--navy); }
.hx-sw[aria-pressed="true"] .hx-sw-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--gold-deep), 0 8px 16px -6px rgba(0,0,0,.5); }
.hx-sw[aria-pressed="true"] .hx-sw-dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .5rem; height: .9rem; margin: -.55rem 0 0 -.25rem;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
}
.hx-pal-note { margin-top: .85rem; font-size: .75rem; line-height: 1.45; color: var(--mute); }
.hx-fab:focus-visible, .hx-pal button:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }

/* Full-screen colour wipe played when a theme is picked (appended to <body>, so it uses plain colours) */
.hx-wipe { position: fixed; inset: 0; z-index: 70; pointer-events: none; }

@media (max-width: 480px) {
  .hx-fab { width: 2.8rem; height: 2.8rem; right: .8rem; }
  .hx-pal { right: .8rem; bottom: calc(4.3rem + env(safe-area-inset-bottom, 0px)); }
  .hx-sw-dot { width: 2.45rem; height: 2.45rem; }
}
@media print { .hx-fab, .hx-pal, .hx-wipe { display: none !important; } }


/* ================= Sponsors on the home page ================= */
.hx-spt { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.hx-spt li { display: flex; }
.hx-spt-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .65rem; width: 100%; padding: 1rem 1rem .95rem; text-align: center; color: var(--ink); overflow: hidden;
  border: 2px solid transparent; border-radius: 1.1rem;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--gold2), var(--gold-deep), var(--gold2)) border-box;
  box-shadow: 0 22px 40px -30px rgba(var(--shade), .8);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease;
}
a.hx-spt-card:hover { transform: translateY(-6px); box-shadow: 0 30px 46px -28px rgba(var(--shade), .85); }
.hx-spt-card::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(var(--acc), .28), transparent); transform: skewX(-18deg); transition: left .75s ease; }
a.hx-spt-card:hover::after { left: 135%; }
.hx-spt-tag { font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); }
.hx-spt-logo { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border-radius: .8rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.hx-spt-logo img { position: absolute; inset: .6rem; width: calc(100% - 1.2rem); height: calc(100% - 1.2rem); max-width: none; object-fit: contain; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.hx-spt-logo .hx-mono { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
a.hx-spt-card:hover .hx-spt-logo img { transform: scale(1.07); }
.hx-spt-name { font: var(--hw) .98rem/1.3 var(--font-head); color: var(--navy); }
.hx-mono { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; font: var(--hw) 1.15rem/1 var(--font-head); color: var(--gold2); background: linear-gradient(145deg, var(--navy2), var(--navy)); box-shadow: 0 0 0 2px rgba(var(--acc), .55); }
.hx-mono--sm { width: 2.8rem; height: 2.8rem; font-size: .95rem; }

/* Scrolling strip of associate sponsors and partners */
.hx-mq { position: relative; overflow: hidden; margin-top: .4rem; padding: .7rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.hx-mq-track { display: flex; width: max-content; margin: 0; padding: 0; list-style: none; animation: hx-mq 42s linear infinite; }
.hx-mq:hover .hx-mq-track, .hx-mq:focus-within .hx-mq-track { animation-play-state: paused; }
@keyframes hx-mq { to { transform: translateX(calc(-100% / var(--rep, 2))); } }
.hx-mq-track li { flex: none; margin-right: 1rem; }
.hx-mq-item { position: relative; display: block; overflow: hidden; width: 11.5rem; height: 5.4rem; background: #fff; border: 1px solid var(--line); border-radius: .95rem; box-shadow: 0 14px 28px -24px rgba(var(--shade), .7); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
a.hx-mq-item:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 20px 30px -22px rgba(var(--shade), .8); }
.hx-mq-item img { position: absolute; inset: .5rem; width: calc(100% - 1rem); height: calc(100% - 1rem); max-width: none; object-fit: contain; }
.hx-mq-item .hx-mono { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@media (max-width: 560px) { .hx-mq-item { width: 9.2rem; height: 4.6rem; } }
@media (prefers-reduced-motion: reduce) {
  .hx-mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hx-mq-track { animation: none !important; }
}


/* ================= Banner mode: an uploaded hero picture is shown whole, with the countdown in a bar underneath ================= */
.hx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hx-hero.has-photo { padding: 0 0 clamp(3.9rem, 7vw, 5rem); background: linear-gradient(135deg, var(--h1) 0%, var(--h2) 55%, var(--h3) 100%); }
.hx-hero.has-photo::before, .hx-hero.has-photo::after { display: none; }
.hx-hero.has-photo .hx-hero-media { position: relative; inset: auto; z-index: auto; }
.hx-hero.has-photo .hx-hero-media img { width: 100%; height: auto; max-height: min(80vh, 38rem); object-fit: cover; object-position: center; display: block; }
.hx-hero.has-photo .hx-hero-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(var(--shade), .5)); }
.hx-hero.has-photo .hx-wrap { padding-top: clamp(1rem, 2.4vw, 1.6rem); }
.hx-hero.has-photo .hx-hero-grid { display: block; }

.hx-hero.has-photo .hx-count {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem 2rem; padding: 0; margin: 0;
  background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; animation: none;
}
.hx-hero.has-photo .hx-count::before { display: none; }
.hx-hero.has-photo .hx-count-title { margin: 0; font-size: 1rem; }
.hx-hero.has-photo .hx-count-grid { width: min(100%, 23rem); }
.hx-hero.has-photo .hx-count-note { margin: 0; font-size: .92rem; max-width: 20rem; }
.hx-hero.has-photo .hx-count-msg { margin: 0; }

@media (max-width: 700px) {
  .hx-hero.has-photo .hx-hero-media img { max-height: none; }
  .hx-hero.has-photo .hx-count { flex-direction: column; align-items: stretch; text-align: center; gap: .7rem; }
  .hx-hero.has-photo .hx-count-grid { width: 100%; }
  .hx-hero.has-photo .hx-count-note { max-width: none; }
}

/* ---------- Menu polish: current page contrast + no scroll jump ---------- */
/* The Birthday Greetings item must stay dark on its gold highlight, never blue-on-blue. */
.sx-header .sx-panel > li > a.is-current,
.sx-header .sx-panel > li > a.is-current b,
.sx-header .sx-panel > li > a.is-current small { color: #0a2150 !important; }
.sx-header .sx-panel > li > a.is-current {
  background: #fff3c4 !important;
  border: 1px solid rgba(245, 179, 1, .6);
}
.sx-header .sx-panel > li > a.is-current::before {
  background: #0a2150 !important;
  color: #ffd96a !important;
  border-color: #0a2150 !important;
}
.sx-m-sub a.is-current {
  background: #fff3c4 !important;
  color: #0a2150 !important;
  font-weight: 700;
}

/* Keep the header height steady while the pointer is on it, so the menu
   does not flicker or jump when the page is scrolled underneath it. */
@media (hover: hover) {
  .sx-header[data-state="scrolled"]:not(:hover):not(:focus-within) .sx-util { max-height: 0; opacity: 0; }
  .sx-header[data-state="scrolled"]:hover .sx-util,
  .sx-header[data-state="scrolled"]:focus-within .sx-util { max-height: 3rem; opacity: 1; }
}
@media (hover: none) {
  .sx-header[data-state="scrolled"] .sx-util { max-height: 3rem; opacity: 1; }
}

/* Widen the invisible hover bridge and drop the item slide so panels open
   cleanly instead of appearing to jump under the cursor. */
.sx-header .sx-item > .sx-panel { top: calc(100% + 8px) !important; }
.sx-header .sx-item > .sx-panel::before { top: -24px; height: 24px; }
.sx-header .sx-panel > li { opacity: 0; transform: none; }
.sx-header .sx-item:hover > .sx-panel > li,
.sx-header .sx-item:focus-within > .sx-panel > li { opacity: 1; transform: none; }
.sx-header .sx-panel > li > a { transform: none !important; }
.sx-header .sx-panel > li > a:hover,
.sx-header .sx-panel > li > a:focus-visible { transform: none !important; }
