/* MGC Bridge - Club results. Bridge-table theme: navy felt, gold trim, playing-card faces. */

/* Self-hosted so these pages never wait on a third-party stylesheet. */
@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: 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');
}

/* Stops the sticky header from nudging scroll position on short pages. */
html { overflow-anchor: none; }

.rs, .rs-home {
  --navy: #07123a; --navy2: #0f2466; --royal: #1f3f9e;
  --gold: #d9ac3e; --gold2: #f2d27a; --red: #b8324a;
  --ink: #0b1536; --mute: #46557a; --line: #d3ddf2; --sky: #eef2fb;
  --ease: cubic-bezier(.2,.7,.2,1);
  font-family: Inter, Calibri, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
}

/* The tablecloth: pale felt with a faint repeating suit watermark. */
.rs {
  position: relative; margin-bottom: -4rem; overflow-x: clip;
  background:
    radial-gradient(55rem 28rem at 12% -6%, rgba(31,63,158,.16), transparent 62%),
    radial-gradient(48rem 24rem at 92% 8%, rgba(217,172,62,.13), transparent 60%),
    linear-gradient(165deg, #f2f6fd 0, #e9effa 55%, #f5f8fd 100%);
}
.rs::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%230a2150' fill-opacity='.05' font-size='22' font-family='serif'%3E%3Ctext x='12' y='30'%3E%26%232660%3B%3C/text%3E%3Ctext x='72' y='72'%3E%26%232665%3B%3C/text%3E%3Ctext x='128' y='116'%3E%26%232666%3B%3C/text%3E%3Ctext x='40' y='154'%3E%26%232663%3B%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 180px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
}
.rs > * { position: relative; z-index: 1; }
.rs *, .rs-home * { box-sizing: border-box; }
.rs h1, .rs h2 { font-family: Poppins, Inter, Calibri, sans-serif; letter-spacing: -.015em; margin: 0; color: inherit; }
.rs-wrap { width: min(76rem, 100% - 2.5rem); margin-inline: auto; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero: the dealer's table ---------- */
.rs-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(1.7rem, 3.2vw, 2.5rem) 0 clamp(2rem, 3.8vw, 2.9rem);
  background:
    radial-gradient(52rem 26rem at 82% -18%, rgba(82,124,238,.42), transparent 62%),
    radial-gradient(30rem 18rem at 6% 110%, rgba(217,172,62,.18), transparent 65%),
    linear-gradient(135deg, var(--navy), var(--navy2) 68%, var(--royal));
  border-bottom: 1px solid rgba(242,210,122,.22);
}
.rs-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(75% 110% at 85% 0, #000, transparent 75%);
  mask-image: radial-gradient(75% 110% at 85% 0, #000, transparent 75%);
}
.rs-hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold2), transparent);
}
.rs-hero .rs-wrap { z-index: 2; }
.rs-hero .rs-wrap > * { animation: rs-up .7s var(--ease) both; }
.rs-hero .rs-wrap > *:nth-child(2) { animation-delay: .07s; }
.rs-hero .rs-wrap > *:nth-child(3) { animation-delay: .14s; }
.rs-hero .rs-wrap > *:nth-child(4) { animation-delay: .21s; }

.rs-eyebrow { margin: .9rem 0 .45rem; font: 700 .74rem/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--gold2) !important; }
.rs .rs-hero h1 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); line-height: 1.15; font-weight: 700; max-width: 34ch; color: #fff !important; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.rs .rs-hero .rs-lede { margin: .7rem 0 0; max-width: 42rem; line-height: 1.6; color: rgba(255,255,255,.88) !important; }
.rs-grad { color: var(--gold2); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .rs-grad { background: linear-gradient(90deg, #ffe9a6, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.rs-back { display: inline-flex; gap: .4rem; color: rgba(255,255,255,.85) !important; font: 600 .85rem Inter, sans-serif; text-decoration: none; }
.rs-back:hover { color: #fff !important; }

/* Big watermark suits behind the heading. */
.rs-suit { position: absolute; font: 400 7rem/1 Georgia, serif; color: rgba(255,255,255,.055); pointer-events: none; animation: rs-drift 14s ease-in-out infinite; user-select: none; z-index: 1; }
.rs-suit--a { top: -1rem; right: 6%; }
.rs-suit--b { top: 38%; right: 22%; font-size: 5rem; animation-delay: -5s; }
.rs-suit--c { bottom: -2rem; right: 2%; font-size: 6rem; animation-delay: -9s; }
.rs-suit--d { top: 8%; right: 38%; font-size: 4rem; color: rgba(217,172,62,.1); animation-delay: -12s; }

/* Three floating playing cards on the right of the hero. */
.rs-deck { position: absolute; right: 3%; top: 50%; width: 15rem; height: 11rem; transform: translateY(-50%); pointer-events: none; z-index: 1; }
.rs-float {
  position: absolute; width: 5.3rem; height: 7.3rem; border-radius: .7rem;
  background: linear-gradient(160deg, #fff, #eef3ff);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.75), inset 0 0 0 1px rgba(10,33,80,.08);
  display: grid; place-items: center; font: 700 2.6rem/1 Georgia, serif;
  color: var(--navy); animation: rs-float 6s ease-in-out infinite;
}
.rs-float small { position: absolute; top: .4rem; left: .5rem; font: 700 .72rem/1 Inter, sans-serif; }
.rs-float--a { right: 8.6rem; top: .8rem; --rot: -14deg; color: var(--navy); animation-delay: -1s; }
.rs-float--b { right: 4.3rem; top: 2rem; --rot: 4deg; color: var(--red); animation-delay: -3s; }
.rs-float--c { right: 0; top: 1rem; --rot: 16deg; color: #a8781b; animation-delay: -5s; }

/* ---------- Tabs ---------- */
.rs-tabs {
  display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.3rem; padding: .35rem;
  width: max-content; max-width: 100%; border-radius: 99px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}
.rs-tabs a {
  padding: .55rem 1.15rem; border-radius: 99px; font: 600 .9rem/1 Inter, sans-serif;
  color: rgba(255,255,255,.9) !important; text-decoration: none;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.rs-tabs a:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.rs-tabs a.is-on {
  background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #231800 !important;
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.55);
}
.rs-tabs a:focus-visible, .rs-chip:focus-visible, .rs-card a:focus-visible,
.rs-feature:focus-visible, .rs-link:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }

/* ---------- Event toolbar ---------- */
.rs-main { padding: 1.4rem 0 .6rem; }
.rs-bar { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.rs-step { display: flex; flex-wrap: wrap; gap: .5rem; }
.rs-chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem;
  border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--royal) !important;
  font: 600 .84rem/1 Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: all .2s var(--ease);
}
.rs-chip:hover { border-color: var(--royal); background: var(--sky); transform: translateY(-1px); }
.rs-chip--gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); border-color: transparent; color: #231800 !important; }
.rs-chip--gold:hover { background: linear-gradient(135deg, #f7dd8f, var(--gold)); }
.rs-pick select { max-width: 26rem; padding: .55rem 2rem .55rem .9rem; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font: 500 .86rem Inter, sans-serif; color: var(--ink); }

/* ---------- Embedded BridgeWebs table ---------- */
.rs-frame {
  position: relative; overflow: hidden; padding: .45rem; border-radius: 1.1rem;
  background: linear-gradient(135deg, var(--navy), var(--navy2) 72%, var(--royal));
  border: 1px solid rgba(242,210,122,.6);
  box-shadow: 0 28px 50px -30px rgba(7,18,58,.85), inset 0 1px 0 rgba(255,255,255,.14);
}
.rs-frame::before, .rs-frame::after {
  position: absolute; top: .1rem; font: 700 1.9rem/1 Georgia, serif;
  color: rgba(255,255,255,.2); pointer-events: none; z-index: 0;
}
.rs-frame::before { content: "\2660"; left: .75rem; }
.rs-frame::after { content: "\2665"; right: .75rem; color: rgba(242,210,122,.35); }
.rs-frame iframe {
  position: relative; z-index: 1; display: block; width: 100%;
  height: min(84vh, 62rem); min-height: 34rem; border: 0; border-radius: .75rem;
  background: #fff;
}
.rs-frame:fullscreen { border-radius: 0; } .rs-frame:fullscreen iframe { height: 100vh; border-radius: 0; }
.rs-skel { position: absolute; inset: .45rem; z-index: 0; display: grid; align-content: start; gap: .9rem; padding: 1.6rem; }
.rs-skel span {
  height: 1.1rem; border-radius: .5rem;
  background: linear-gradient(90deg, #e9eefa 25%, #f8faff 50%, #e9eefa 75%);
  background-size: 200% 100%; animation: rs-shine 1.4s linear infinite;
}
.rs-skel span:nth-child(1) { width: 40%; } .rs-skel span:nth-child(2) { width: 90%; } .rs-skel span:nth-child(3) { width: 70%; }
.rs-frame.is-loaded .rs-skel { display: none; }
.rs-foot { margin: .8rem 0 0; font-size: .85rem; color: var(--mute); } .rs-foot a { color: var(--royal); font-weight: 600; }

/* ---------- List page ---------- */
.rs-feature {
  position: relative; display: grid; gap: .35rem; margin-bottom: 1.3rem;
  padding: 1.5rem 1.7rem; border-radius: 1.2rem; text-decoration: none; color: #fff !important;
  overflow: hidden; isolation: isolate;
  background: radial-gradient(30rem 16rem at 88% -30%, rgba(242,210,122,.25), transparent 65%),
              linear-gradient(135deg, var(--navy), var(--navy2) 70%, var(--royal));
  border: 1px solid rgba(217,172,62,.6); box-shadow: 0 22px 40px -26px rgba(7,18,58,.8);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.rs-feature::after { content: "\2660"; position: absolute; right: .5rem; bottom: -2.9rem; font: 400 9rem/1 Georgia, serif; color: rgba(255,255,255,.07); z-index: -1; animation: rs-drift 16s ease-in-out infinite; }
.rs-feature::before { content: "\2665"; position: absolute; right: 16%; top: -2.6rem; font: 400 6.5rem/1 Georgia, serif; color: rgba(184,50,74,.16); z-index: -1; animation: rs-drift 19s ease-in-out -6s infinite; }
.rs-feature:hover { transform: translateY(-3px) rotate(-.2deg); box-shadow: 0 28px 46px -26px rgba(7,18,58,.9); }
.rs-feature-badge { width: max-content; padding: .28rem .7rem; border-radius: 99px; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #231800; font: 700 .68rem/1 Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 14px -8px rgba(0,0,0,.8); }
.rs-feature-date { font-size: .9rem; color: rgba(255,255,255,.8); }
.rs-feature-title { font: 700 clamp(1.2rem, 2.6vw, 1.7rem)/1.25 Poppins, sans-serif; }
.rs-feature-cta { margin-top: .5rem; font-weight: 600; color: var(--gold2); }

.rs-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); }
.rs-card {
  position: relative; overflow: hidden; background: linear-gradient(180deg, #fff, #f7f9ff);
  border: 1px solid var(--line); border-radius: 1.1rem;
  box-shadow: 0 14px 30px -26px rgba(7,18,58,.55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.rs-card::before { content: "\2660"; position: absolute; right: .6rem; bottom: -1.5rem; font: 400 5rem/1 Georgia, serif; color: rgba(10,33,80,.055); pointer-events: none; }
.rs-rv:nth-child(3n+2) .rs-card::before { content: "\2665"; color: rgba(184,50,74,.075); }
.rs-rv:nth-child(3n+3) .rs-card::before { content: "\2666"; color: rgba(217,172,62,.1); }
.rs-card:hover { transform: translateY(-4px) rotate(-.25deg); border-color: #b9c8ea; box-shadow: 0 26px 40px -26px rgba(7,18,58,.68); }
.rs-card-main { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; text-decoration: none; color: inherit; }
.rs-date {
  flex: none; display: grid; place-items: center; width: 3.6rem; padding: .5rem 0;
  border-radius: .8rem; background: linear-gradient(160deg, var(--navy2), var(--navy));
  border: 1px solid rgba(242,210,122,.55); color: #fff; text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}
.rs-date b { font: 700 1.4rem/1 Poppins, sans-serif; color: var(--gold2); } .rs-date span { font-size: .65rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.rs-card-body small { display: block; font: 700 .68rem/1 Inter, sans-serif; letter-spacing: .14em; color: var(--royal); margin-bottom: .35rem; }
.rs-card-body b { font: 600 1rem/1.35 Poppins, sans-serif; color: var(--navy); }
.rs-card-tabs { display: flex; flex-wrap: wrap; gap: .3rem; padding: .7rem 1.1rem 1rem; border-top: 1px solid var(--line); }
.rs-card-tabs a { padding: .35rem .75rem; border-radius: 99px; background: var(--sky); color: var(--royal); font: 600 .76rem/1 Inter, sans-serif; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.rs-card-tabs a:hover { background: var(--navy2); color: #fff; transform: translateY(-1px); }
.rs-pager { margin-top: 1.4rem; } .rs-pager nav { display: flex; justify-content: center; }
.rs-empty { max-width: 34rem; margin: .5rem auto 0; text-align: center; padding: 2rem 1.5rem; color: var(--mute); border-radius: 1.2rem; border: 1.5px dashed #d6bd7a; background: linear-gradient(180deg, #fffdf6, #fff); }
.rs-empty span { display: block; font: 400 2.4rem/1 Georgia, serif; color: var(--gold); } .rs-empty h2 { font-size: 1.3rem; color: var(--navy2); margin: .3rem 0; }

/* ---------- Event page: one card per BridgeWebs page ---------- */
.rs-note { margin: .2rem 0 1rem; color: var(--mute); font-size: .95rem; }
.rs-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.rs-link {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.3rem; border-radius: 1.1rem; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #fff, #f7f9ff); border: 1px solid var(--line);
  box-shadow: 0 14px 30px -26px rgba(7,18,58,.55);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.rs-link::before { content: "\2660"; position: absolute; right: .5rem; bottom: -1.3rem; font: 400 4.5rem/1 Georgia, serif; color: rgba(10,33,80,.05); pointer-events: none; }
.rs-links li:nth-child(4n+2) .rs-link::before { content: "\2665"; color: rgba(184,50,74,.07); }
.rs-links li:nth-child(4n+3) .rs-link::before { content: "\2666"; color: rgba(217,172,62,.1); }
.rs-links li:nth-child(4n+4) .rs-link::before { content: "\2663"; color: rgba(10,33,80,.06); }
.rs-link:hover { transform: translateY(-4px) rotate(-.2deg); border-color: #b9c8ea; box-shadow: 0 26px 40px -26px rgba(7,18,58,.68); }
.rs-link-num { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: linear-gradient(150deg, var(--navy2), var(--navy)); border: 1px solid rgba(242,210,122,.5); color: var(--gold2); font: 700 1.05rem/1 Poppins, sans-serif; }
.rs-link-body { flex: 1; min-width: 0; }
.rs-link-body b { display: block; font: 600 1.05rem/1.25 Poppins, sans-serif; color: var(--navy); }
.rs-link-body small { display: block; margin-top: .25rem; color: var(--mute); font-size: .84rem; line-height: 1.4; }
.rs-link-go { flex: none; font-size: 1.3rem; color: var(--royal); transition: transform .3s var(--ease); }
.rs-link:hover .rs-link-go { transform: translate(3px, -3px); }

/* ---------- Motion ---------- */
.rs-pre { opacity: 0; transform: translateY(14px); }
.rs-in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
@keyframes rs-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rs-drift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes rs-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-11px) rotate(calc(var(--rot, 0deg) + 4deg)); }
}
@keyframes rs-shine { to { background-position: -200% 0; } }

@media (min-width: 641px) and (max-width: 1199px) {
  /* Keep the heading clear of the floating cards at medium widths. */
  .rs-hero .rs-wrap h1,
  .rs-hero .rs-wrap .rs-lede { max-width: calc(100% - 18rem); }
}
@media (max-width: 900px) {
  .rs-deck { right: -1rem; opacity: .7; transform: translateY(-50%) scale(.85); }
}
@media (max-width: 640px) {
  .rs-tabs { border-radius: 1rem; width: 100%; }
  .rs-tabs a { flex: 1 1 auto; text-align: center; padding: .6rem .7rem; }
  .rs-bar { flex-direction: column; align-items: stretch; }
  .rs-pick select { max-width: none; width: 100%; }
  .rs-frame iframe { min-height: 30rem; }
  .rs-deck { right: -3rem; opacity: .35; transform: translateY(-50%) scale(.75); }
  .rs-float { width: 4.4rem; height: 6rem; font-size: 2rem; }
}
@media (max-width: 420px) {
  .rs-deck { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rs *, .rs-home * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rs-pre { opacity: 1; transform: none; }
}
