/* Jaipur Padel Club — public site
   Palette and type carried over from the Club OS app so the two feel like one product. */

:root{
  /* Pink on beige, which is a harder pair than it sounds: the old rose #D46A6A only reaches
     2.8:1 on this background, so it could never have carried text. --pink is chosen to clear
     4.5:1 on BOTH the page and the deeper band, which means it is safe at any size - headings,
     body, a 12px label - with no separate "large text only" exception to remember.
     Every ratio below was measured, not eyeballed. */
  --paper:#F2E6D8;        /* the page                                    */
  --band:#EADBC9;         /* alternating sections, one step deeper       */
  --line:#DCC8B4;         /* hairlines and card edges                    */
  --footer:#E3D2BF;       /* a third step down, so the footer is never the same colour as
                             the sand band a page tends to end on. muted 4.61, ink 11.29 */
  --pink:#A8395A;         /* 5.03 on paper, 4.55 on band, white on it 6.18 */
  --pink-dark:#8E2F49;    /* hover                                       */
  --ink:#2B1A14;          /* body text, 13.55 on paper                   */
  --ink-soft:#4A3329;
  --muted:#6B574B;        /* 5.53 on paper, 5.01 on band                 */

  /* The old names, kept pointing at the new ones. Several hundred rules and inline styles
     across seventeen pages still say --navy and --terracotta; renaming them all in one go is
     how you miss three and ship a page with a navy heading on beige. These go as the pages
     are reworked - nothing new should use them. */
  --terracotta:var(--pink); --terracotta-dark:var(--pink-dark);
  --navy:var(--ink); --navy-soft:var(--ink-soft);
  --white:var(--paper); --sand:var(--band); --sand-line:var(--line);

  --green:#2E6B47; --red:#A8362B; --amber:#8E5E14;
  --radius:14px;
  /* Flat. A drop shadow on beige reads as a smudge rather than a lift, and the whole point
     of the beige is that edges are drawn with a line or not at all. */
  --shadow:none;
  --shadow-lg:none;
  --wrap:1160px;

  /* The hero photograph: an empty padel court - glass, mesh, net - with the surface graded
     from blue to terracotta, which is what Padel Fort actually plays on. Free stock from
     Pexels (photo 32474981), cropped below the canopy because white type cannot live on a
     white roof, then darkened: white clears 12.5:1 on the band the headline sits in, before
     the scrim is even applied. The grade moves only saturated blue, so the trees outside and
     the unsaturated roof are untouched. Swap in a real photo of the club by replacing the
     file - nothing else needs to change.
     The leading slash matters: a relative url() in a custom property resolves against this
     stylesheet, which lives in assets/, so "assets/hero.jpg" would look one level too deep. */
  --hero-shot:url("/assets/hero.jpg");
  --hero-court:0;
}

*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Helvetica,Arial,sans-serif;
  background:var(--white);color:var(--navy);font-size:16px;line-height:1.55;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:var(--terracotta);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select,textarea{font:inherit;color:inherit}
h1,h2,h3,h4{margin:0 0 .5rem;line-height:1.15;letter-spacing:-.02em;font-weight:800;color:var(--pink)}
h1{font-size:clamp(2rem,6vw,3.4rem)}
h2{font-size:clamp(1.5rem,4vw,2.3rem)}
h3{font-size:1.15rem}
p{margin:0 0 1rem}
.hide{display:none !important}
.muted{color:var(--muted)}
.small{font-size:.85rem}
.xs{font-size:.74rem}
.mono{font-variant-numeric:tabular-nums}
.center{text-align:center}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 1.1rem}

/* eyebrow label above section headings */
.eyebrow{
  font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.14em;
  color:var(--terracotta);margin-bottom:.5rem;
}

/* ---------- header ---------- */
header.site{
  position:sticky;top:0;z-index:80;background:rgba(242,230,216,.93);
  backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--sand-line);
}
.nav{display:flex;align-items:center;gap:.75rem;max-width:var(--wrap);margin:0 auto;padding:.45rem 1.1rem}
/* The club logo, which is already a lockup - arch, racquet and name - so nothing is set in
   type beside it. Height drives it; the width follows the 2.5:1 artwork. */
.brand{display:block;flex:none;line-height:0}
.brand:hover{text-decoration:none}
.brand img{height:46px;width:auto;display:block}
/* The paper version only exists for dark ground: a photographic hero, or the footer. */
.brand .logo-paper{display:none}
.brand.ondark .logo-ink{display:none}
.brand.ondark .logo-paper{display:block}
.navspace{flex:1}
.navlinks{display:flex;align-items:center;gap:.1rem}
.navlinks a{
  color:var(--navy);font-size:.7rem;font-weight:600;letter-spacing:.13em;text-transform:uppercase;
  padding:.5rem .62rem;border-radius:0;
}
.navlinks a:hover{background:var(--sand);text-decoration:none}
.navlinks a.on{background:transparent;color:var(--terracotta)}
/* nothing in the bar should be able to wrap: a nav on two lines reads as a sitemap */
.navlinks a,.admenu>button{white-space:nowrap}

/* The admin menu. Three running tools behind one word, so two admins do not cost every
   member a second row of navigation. */
.admenu{position:relative;display:inline-flex}
.admenu>button{
  font:inherit;font-size:.86rem;font-weight:600;color:var(--navy);background:none;border:0;
  padding:.45rem .7rem;border-radius:999px;cursor:pointer;
}
.admenu>button::after{content:"";margin-left:.35rem;border:4px solid transparent;
  border-top-color:currentColor;display:inline-block;vertical-align:middle;
  transform:translateY(2px)}
.admenu>button:hover{background:var(--sand)}
.admenu.on>button{background:var(--terracotta);color:#fff}
.admenu-pop{
  position:absolute;top:calc(100% + .4rem);right:0;z-index:60;display:none;
  min-width:11rem;padding:.35rem;background:var(--white);border:1px solid var(--sand-line);
  border-radius:12px;box-shadow:0 10px 30px rgba(31,42,68,.14);
}
.admenu-pop.open{display:block}
.admenu-pop a{display:block;padding:.5rem .7rem;border-radius:8px;font-size:.86rem;
  font-weight:600;color:var(--navy)}
.admenu-pop a:hover{background:var(--sand);text-decoration:none}
.admenu-pop a.on{background:var(--terracotta);color:#fff}
.burger{
  display:none;border:1px solid var(--sand-line);background:var(--white);border-radius:10px;
  width:44px;height:44px;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:4px;
}
.burger span{display:block;width:18px;height:2px;background:var(--navy);border-radius:2px}

/* mobile drawer */
.drawer{
  position:fixed;inset:0 0 0 auto;width:min(320px,84vw);background:var(--white);z-index:90;
  transform:translateX(100%);transition:transform .28s ease;padding:1rem;
  box-shadow:-8px 0 40px rgba(31,42,68,.18);display:flex;flex-direction:column;gap:.2rem;
}
.drawer.open{transform:translateX(0)}
.drawer a{
  color:var(--navy);font-weight:600;padding:.85rem .7rem;border-radius:10px;font-size:1rem;
  min-height:44px;display:flex;align-items:center;
}
.drawer a:hover{background:var(--sand);text-decoration:none}
.drawer a.on{background:var(--terracotta);color:#fff}
.drawer .closex{align-self:flex-end;border:0;background:transparent;font-size:1.6rem;cursor:pointer;
  width:44px;height:44px;color:var(--muted);line-height:1}
.scrim{position:fixed;inset:0;background:rgba(31,42,68,.42);z-index:85;opacity:0;pointer-events:none;transition:opacity .28s}
.scrim.open{opacity:1;pointer-events:auto}

/* ---------- buttons ---------- */
.btn{
  border:1px solid var(--sand-line);background:var(--white);border-radius:11px;
  padding:.7rem 1.15rem;font-size:.9rem;font-weight:700;cursor:pointer;min-height:46px;
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  transition:transform .12s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease;
  color:var(--navy);
}
.btn:hover{border-color:var(--navy-soft);text-decoration:none}
.btn:active{transform:translateY(1px)}
.btn.p{background:var(--pink);border-color:var(--pink);color:var(--paper)}
.btn.p:hover{background:var(--pink-dark);border-color:var(--pink-dark)}
.btn.n{background:var(--navy);border-color:var(--navy);color:#fff}
.btn.n:hover{background:var(--navy-soft);border-color:var(--navy-soft)}
.btn.ghost{background:transparent;border-color:rgba(255,255,255,.55);color:#fff}
.btn.ghost:hover{background:rgba(255,255,255,.14);border-color:#fff}
.btn.sm{min-height:36px;padding:.35rem .7rem;font-size:.8rem;border-radius:9px}
.btn.wide{width:100%}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}

/* ---------- hero ----------
   Two heroes in one, and which you get depends on whether there is a photograph.

   By default: paper, pink, no picture. A hero built for a photo and then left without one is
   a large empty rectangle, which looks broken rather than minimal - so the no-photo state is
   designed as its own thing rather than treated as a placeholder.

   With a photograph: put the file at assets/hero.jpg and add the class in index.html -

     <section class="hero photo">   and   classList.add("photo")

   That switches the type to white, drops the picture in behind it, and turns the header
   transparent so it sits over the image. Landscape, wide, and dark enough through the middle
   for white type to survive on it. */
.hero{position:relative;overflow:hidden;isolation:isolate;background:var(--paper);
  border-bottom:1px solid var(--line)}
.hero .inner{position:relative;max-width:var(--wrap);margin:0 auto;
  padding:4.5rem 1.1rem 4rem;text-align:left;max-width:min(100%,62rem)}
.hero h1{color:var(--pink);font-weight:600;letter-spacing:-.015em;line-height:1.06;
  font-size:clamp(2.2rem,6.6vw,4rem);margin-bottom:1.2rem;text-wrap:balance;max-width:16ch}
.hero .lede{font-size:clamp(1rem,2.1vw,1.15rem);color:var(--ink);max-width:40ch;
  margin:0 0 2.1rem}
.hero .cta{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.herobtn{display:inline-block;background:var(--pink);color:var(--paper);
  font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  padding:1rem 1.9rem;border-radius:999px;transition:background .18s ease}
.herobtn:hover{background:var(--pink-dark);text-decoration:none;color:var(--paper)}
.herobtn.line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.herobtn.line:hover{background:transparent;color:var(--pink);box-shadow:inset 0 0 0 1px var(--pink)}
/* The drawn court only belongs on the photographic version, where it reads as markings in
   the dark. On paper it is just a grid. */
.hero .shot,.hero .court{display:none}

html.photo .hero{min-height:min(88vh,800px);display:grid;place-items:center;
  background:#1A120E;border-bottom:0}
html.photo .hero .inner{text-align:center;max-width:720px;padding:8rem 1.2rem 5rem}
html.photo .hero .shot{display:block;position:absolute;inset:0;z-index:-2;
  background-size:cover;background-position:50% 42%;
  background-image:var(--hero-shot,linear-gradient(168deg,#4A2A1E 0%,#2A1C15 52%,#140E0B 100%))}
/* Darkened top and bottom, lighter through the middle: the nav stays readable over it and so
   does the headline, without flattening the whole picture to grey. */
html.photo .hero .shot::after{content:"";position:absolute;inset:0;background:
  linear-gradient(to bottom,rgba(18,12,9,.70) 0%,rgba(18,12,9,.24) 34%,
                            rgba(18,12,9,.34) 66%,rgba(18,12,9,.52) 100%)}
html.photo .hero .court{display:block;position:absolute;inset:0;z-index:-1;
  opacity:var(--hero-court,.13);
  background-image:
    linear-gradient(to right,rgba(255,255,255,.5) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(255,255,255,.5) 1px,transparent 1px);
  background-size:128px 128px;
  -webkit-mask-image:radial-gradient(ellipse at 50% 48%,#000 10%,transparent 68%);
  mask-image:radial-gradient(ellipse at 50% 48%,#000 10%,transparent 68%)}
html.photo .hero h1{color:#fff;max-width:none}
html.photo .hero .lede{display:none}
html.photo .hero .cta{justify-content:center}
html.photo .hero .herobtn.line{color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.45)}
html.photo .hero .herobtn.line:hover{color:#fff;box-shadow:inset 0 0 0 1px #fff}

/* ---------- a header that sits on the photograph ----------
   Only when there is actually a photograph to sit on. Without one the ordinary paper header
   is correct and the hero simply starts below it. */
html.photo header.site{position:absolute;left:0;right:0;top:auto;background:transparent;
  border-bottom-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
html.photo header.site .navlinks a{color:#fff}
html.photo header.site .brand .logo-ink{display:none}
html.photo header.site .brand .logo-paper{display:block}
html.photo header.site .navlinks a.on{color:#fff;background:transparent;
  text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
html.photo header.site .burger span{background:#fff}
html.photo header.site.solid{position:fixed;top:0;background:rgba(242,230,216,.94);
  backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom-color:var(--line)}
html.photo header.site.solid .navlinks a{color:var(--ink)}
html.photo header.site.solid .brand .logo-ink{display:block}
html.photo header.site.solid .brand .logo-paper{display:none}
html.photo header.site.solid .navlinks a.on{color:var(--pink)}
html.photo header.site.solid .burger span{background:var(--ink)}

/* ---------- sections ---------- */
section.band{padding:4.5rem 0}
section.band.sand{background:var(--sand)}
section.band.navy{background:var(--navy);color:#fff}
section.band.navy h2{color:#fff}
section.band.navy .muted{color:rgba(255,255,255,.62)}
.sechead{max-width:660px;margin:0 0 2.4rem}
.sechead.mid{margin-left:auto;margin-right:auto;text-align:center}

.grid{display:grid;gap:1.2rem}
.g2{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}
.g3{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.g4{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr))}

.card{
  background:var(--white);border:1px solid var(--sand-line);border-radius:var(--radius);
  padding:1.5rem;box-shadow:var(--shadow);
}
.card.flat{box-shadow:none}
.card.sandc{background:var(--sand);border-color:transparent;box-shadow:none}
.card h3{margin-bottom:.4rem}
.card .num{font-size:2.1rem;font-weight:800;letter-spacing:-.03em;color:var(--terracotta);line-height:1}

/* numbered feature cards */
.feat{position:relative;padding-top:2.6rem}
.feat .idx{
  position:absolute;top:1.3rem;left:1.5rem;font-size:.7rem;font-weight:800;letter-spacing:.14em;
  color:var(--terracotta);text-transform:uppercase;
}

/* ---------- tables ---------- */
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--radius);border:1px solid var(--sand-line)}
table{width:100%;border-collapse:collapse;font-size:.9rem;background:var(--white)}
th{
  text-align:left;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);
  font-weight:800;padding:.8rem .85rem;background:var(--sand);border-bottom:1px solid var(--sand-line);
  white-space:nowrap;
}
td{padding:.8rem .85rem;border-bottom:1px solid var(--sand-line)}
tr:last-child td{border-bottom:0}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums}
tbody tr:hover{background:#fdfbfa}
tr.rank1 td{background:rgba(212,106,106,.07)}
tr.me td{background:rgba(46,125,79,.08)}
.rankpill{
  display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;
  background:var(--sand);font-weight:800;font-size:.78rem;
}
tr.rank1 .rankpill{background:var(--terracotta);color:#fff}

/* ---------- misc bits ---------- */
.badge{
  display:inline-flex;align-items:center;gap:.3rem;padding:.2rem .55rem;border-radius:999px;
  font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;
  background:var(--sand);color:var(--muted);
}
.badge.open{background:rgba(46,125,79,.13);color:var(--green)}
.badge.full{background:rgba(192,57,43,.12);color:var(--red)}
.badge.soon{background:rgba(184,121,31,.14);color:var(--amber)}
.badge.done{background:var(--sand);color:var(--muted)}
/* a tournament reads as an occasion rather than a status, so it takes the club navy */
.badge.tour{background:var(--navy);color:#fff;vertical-align:middle}

/* ---------- the game list ----------
   A row per session rather than a grid of cards. A club runs a handful of nights a week and
   they want reading top to bottom in date order; a three-column grid makes you scan in two
   directions to answer "what is on next". The date rail on the left is the point of the whole
   thing - it is what the eye lands on, and it is why this is a row and not a card.

   Separate from .gamecard on purpose: open.html and the home page still use that, and they
   will move over once this has been run on a real Wednesday. */
.glist{display:flex;flex-direction:column;gap:.9rem}
.grow{display:grid;grid-template-columns:4.6rem 1fr;background:var(--paper);
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.gdate{display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:1.1rem .4rem;border-right:1px solid var(--line);text-align:center;line-height:1}
.gdate b{font-size:1.9rem;font-weight:700;color:var(--ink);letter-spacing:-.025em}
.gdate span{font-size:.58rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  color:var(--muted);margin-top:.34rem}
.gdate span.mon{color:var(--pink)}
.gmain{padding:1rem 1.1rem}
.gtop{display:flex;justify-content:space-between;align-items:flex-start;gap:.6rem;flex-wrap:wrap}
.gtags{display:flex;gap:.35rem;flex-wrap:wrap}
/* Outlined, not filled. Three filled badges in a row all shout at the same volume; an outline
   says "this is a label" and lets the one coloured thing on the row mean something. */
.gtag{font-size:.59rem;font-weight:700;letter-spacing:.11em;text-transform:uppercase;
  padding:.3rem .5rem;border:1px solid var(--line);border-radius:3px;color:var(--muted)}
.gtag.fmt{color:var(--ink);border-color:var(--ink)}
.gtag.cat{color:var(--pink);border-color:var(--pink)}
.gstate{font-size:.62rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--muted);white-space:nowrap;padding-top:.35rem}
.gstate.low{color:var(--pink)}
.gstate.in{color:var(--green)}
.grow h3{font-size:1.15rem;color:var(--ink);font-weight:700;letter-spacing:-.012em;
  margin:.6rem 0 .25rem}
.gmeta{font-size:.84rem;color:var(--muted)}
.gfoot{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;
  gap:1rem;padding:.7rem 1.1rem;border-top:1px solid var(--line);background:var(--band)}
.gcap{font-size:.8rem;color:var(--muted);min-width:0;flex:1}
.gcap b{color:var(--ink);font-weight:700}
/* 2px, not a chunky meter: the number already says it, the bar is only there to be glanced at. */
.gbar{height:2px;background:var(--line);border-radius:99px;margin-top:.45rem;max-width:11rem}
.gbar i{display:block;height:100%;background:var(--pink);border-radius:99px}
.gfoot .btn{flex:none}

.chips{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1.4rem}
.chip{font-size:.68rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  padding:.55rem .95rem;border-radius:999px;border:1px solid var(--line);
  background:transparent;color:var(--muted);cursor:pointer;font-family:inherit}
.chip:hover{border-color:var(--pink);color:var(--pink)}
.chip.on{background:var(--pink);border-color:var(--pink);color:var(--paper)}

@media(max-width:560px){
  .grow{grid-template-columns:3.5rem 1fr}
  .gdate{padding:.9rem .3rem}
  .gdate b{font-size:1.5rem}
  .gmain{padding:.85rem .9rem}
  .gfoot{flex-direction:column;align-items:stretch;gap:.65rem}
  .gfoot .btn{width:100%}
  .gbar{max-width:none}
}

.gamecard{display:flex;flex-direction:column;gap:.75rem}
.gamecard .when{font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--terracotta)}
/* A thin fill bar for anything that fills up over time — how settled a rating is, to start
   with. Same shape as the spots bar below, but not tied to a game card. The track is sand,
   so do not put one on a sand band; it disappears. */
/* The verified tick, and the text that only a screen reader gets. The tick is sized in em so
   it tracks whatever it sits beside - a heading, a table row, a 12px label. */
.tick{width:1em;height:1em;display:inline-block;vertical-align:-.13em;color:var(--pink);flex:none}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);
  white-space:nowrap}

.meter{height:6px;background:var(--sand);border-radius:99px;overflow:hidden}
.meter i{display:block;height:100%;background:var(--terracotta);border-radius:99px;transition:width .6s ease}
.gamecard .spots{height:6px;background:var(--sand);border-radius:99px;overflow:hidden}
.gamecard .spots i{display:block;height:100%;background:var(--terracotta);border-radius:99px}

.empty{
  padding:3rem 1.5rem;text-align:center;color:var(--muted);background:var(--sand);
  border-radius:var(--radius);
}

/* ---------- format filter ---------- */
/* Scrolls sideways on a phone rather than wrapping to three ragged lines. */
.fbar{
  display:flex;gap:.45rem;overflow-x:auto;-webkit-overflow-scrolling:touch;
  padding-bottom:.5rem;margin-bottom:1rem;scrollbar-width:none;
}
.fbar::-webkit-scrollbar{display:none}
.fbar button{
  flex:0 0 auto;min-height:38px;padding:.4rem .9rem;border-radius:999px;cursor:pointer;
  border:1px solid var(--sand-line);background:var(--white);color:var(--muted);
  font:inherit;font-size:.82rem;font-weight:700;white-space:nowrap;
}
.fbar button:hover{border-color:var(--navy-soft);color:var(--navy)}
.fbar button[aria-selected="true"]{
  background:var(--navy);border-color:var(--navy);color:#fff;
}

/* forms */
label.f{display:block;margin-bottom:1rem}
label.f > span{
  display:block;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;
  color:var(--muted);margin-bottom:.35rem;
}
input,select,textarea{
  width:100%;padding:.75rem .85rem;border:1px solid var(--sand-line);border-radius:10px;
  background:var(--white);min-height:46px;font:inherit;font-size:1rem;color:var(--navy);
}

/* Safari draws a native select at its own intrinsic height and ignores the padding and
   min-height above, so a dropdown sat about half the height of the inputs beside it. The
   only way to make it match is to turn the native control off entirely — which also means
   drawing the arrow, since turning it off removes that too. */
select{
  -webkit-appearance:none;appearance:none;
  padding-right:2.2rem;
  background-image:url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%233A4763' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right .85rem center;
  background-size:12px 8px;
}
/* Date and time inputs carry a native picker indicator with its own intrinsic size, which
   left them a couple of pixels taller than everything else on the same row. Pinning the
   height of the single-line controls makes a row of mixed field types line up exactly;
   textarea is excluded because it has to be able to grow. */
input:not([type="checkbox"]):not([type="radio"]),select{height:46px}
input[type="date"],input[type="time"]{text-align:left}
input:focus,select:focus,textarea:focus{
  outline:0;border-color:var(--terracotta);box-shadow:0 0 0 3px rgba(212,106,106,.15);
}
.formcard{max-width:440px;margin:0 auto}
.note{padding:.8rem 1rem;border-radius:10px;font-size:.86rem;margin-bottom:1rem}
.note.err{background:rgba(192,57,43,.09);color:var(--red)}
.note.ok{background:rgba(46,125,79,.1);color:var(--green)}
.note.info{background:var(--sand);color:var(--navy-soft)}
/* A link inside a note keeps the note's own colour and takes an underline instead: the
   site's link colour is picked to sit on sand, and on the red of an error it comes out
   as a slightly different pink that nobody reads as something to tap. */
.note a:not(.btn){color:inherit;text-decoration:underline;text-underline-offset:2px;font-weight:600}

/* Blocks that only make sense to somebody who has not joined yet. The class goes on <html>
   before the page paints, so a member never sees "Not a member yet?" flash past. */
html.signedin [data-guest-only]{display:none !important}

/* toast */
#toast{
  position:fixed;left:50%;bottom:1.6rem;transform:translate(-50%,140%);z-index:120;
  background:var(--navy);color:#fff;padding:.8rem 1.2rem;border-radius:11px;font-size:.88rem;
  font-weight:600;box-shadow:var(--shadow-lg);transition:transform .3s ease;max-width:90vw;
}
#toast.show{transform:translate(-50%,0)}

/* footer */
/* The deeper beige rather than a dark band: against a beige page the old navy block was the
   only hard edge left on the site and read as a rectangle borrowed from somewhere else. One
   centred row of tracked caps, which is the same voice as the nav. */
/* Pink ground, paper type. Measured: paper on pink is 5.03, and it falls under 4.5 as soon
   as the text is faded past about 92% - so the links are full strength and only the
   copyright line is dimmed, rather than the usual wash of translucent whites. */
footer.site{background:var(--pink);color:var(--paper);border-top:0;
  padding:2.8rem 0 2.2rem;text-align:center;font-size:.86rem}
footer.site a{color:var(--paper)}
footer.site a:hover{color:#fff;text-decoration:none}
footer.site .flogo{display:block;height:46px;width:auto;margin:0 auto 1.6rem}
footer.site .frow{display:flex;gap:.7rem 1.6rem;justify-content:center;flex-wrap:wrap;
  font-size:.64rem;letter-spacing:.16em;text-transform:uppercase;font-weight:600}
footer.site .base{margin-top:1.7rem;font-size:.62rem;letter-spacing:.13em;text-transform:uppercase;
  opacity:.92}
@media(max-width:560px){
  footer.site .frow{gap:.6rem 1.1rem;letter-spacing:.12em}
  footer.site .flogo{height:38px}
}

/* reveal on scroll */
.rv{opacity:0;transform:translateY(18px);transition:opacity .6s ease,transform .6s ease}
.rv.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .rv{opacity:1;transform:none;transition:none}
  html{scroll-behavior:auto}
}

/* ---------- phone ---------- */
@media(max-width:820px){
  .navlinks{display:none}
  .burger{display:flex}
  .brand .mark{width:26px;height:26px}
  .brand img{height:36px}
  section.band{padding:3rem 0}
  .card{padding:1.2rem}
  /* the shorthand above also resets the top padding .feat reserves for its absolutely
     positioned label, which drops FORMAT 01 straight on top of the heading */
  .card.feat{padding-top:2.6rem}
  .hero .inner{padding:3.2rem 1.1rem 3rem}
  html.photo .hero .inner{padding:7rem 1.1rem 4rem}
  .hero .inner{padding:4rem 1.1rem 3.5rem}
}

/* ---------- app shell ----------
   On a phone this stops being a website with a menu and becomes an app with a tab bar:
   five destinations, always there, all of them inside thumb reach. The drawer stays for
   the things that do not deserve a tab — the club's story, how ranking works, logging out.

   The insets matter on a real handset: installed to the home screen there is no browser
   chrome to keep the bar clear of the home indicator, so it has to do that itself. */

.tabbar{display:none}

@media(max-width:820px){
  .tabbar{
    display:flex;position:fixed;left:0;right:0;bottom:0;z-index:95;
    background:rgba(255,255,255,.94);
    backdrop-filter:saturate(180%) blur(14px);-webkit-backdrop-filter:saturate(180%) blur(14px);
    border-top:1px solid var(--sand-line);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .tabbar a{
    flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
    gap:.18rem;padding:.5rem .2rem .45rem;min-height:52px;
    color:var(--muted);font-size:.66rem;font-weight:600;letter-spacing:.02em;
    text-decoration:none;-webkit-tap-highlight-color:transparent;
  }
  .tabbar a svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;
    stroke-linecap:round;stroke-linejoin:round}
  .tabbar a.on{color:var(--terracotta)}
  .tabbar a:active{background:var(--sand)}

  /* nothing should end up hidden behind the bar — footers and last cards especially */
  body{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
  header.site{padding-top:env(safe-area-inset-top)}
  .drawer{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
  /* the toast sits above the bar rather than under it */
  #toast{bottom:calc(68px + env(safe-area-inset-bottom))}
}

/* Installed to the home screen there is no browser UI at all, so the header carries the
   whole top inset and the page needs a little more breathing room under it. */
@media(display-mode:standalone){
  header.site{padding-top:env(safe-area-inset-top)}
}

/* Post-a-match form. Six fields that only mean something together, so they are grouped -
   where and when, then who it suits - rather than presented as one undifferentiated run of
   boxes with a label above each. */
.fgroup{margin:1.1rem 0 0;padding:1rem;border:1px solid var(--sand-line);border-radius:14px;
  background:var(--white)}
.fgroup .grid{gap:.5rem 1rem}
.fgroup .f{margin-bottom:.5rem}
.flabel{font-size:.68rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  color:var(--terracotta);margin-bottom:.6rem}
.f.sw{display:flex;align-items:center;gap:.55rem;margin:.3rem 0 0}
.f.sw input{width:auto;margin:0}
.f.sw span{margin:0;font-size:.88rem;font-weight:600;letter-spacing:normal;
  text-transform:none;color:var(--navy)}
/* what the match will read as, so the 7pm that should have been 7am is caught here */
.fprev{margin:1.1rem 0 .9rem;padding:.8rem 1rem;border-radius:12px;background:var(--sand);
  font-size:.88rem;line-height:1.45}

/* A list of tournaments already played, under whichever one a page is showing. It lives
   here rather than in a page's own <style> because two pages draw it from one function in
   site.js - the weekly page and the Cup page - and the first version of it borrowed
   tournament.html's .teamrow, which meant the Cup page rendered the name, the date and
   the link run together on one line with no styling at all. */
.pastrow{display:flex;align-items:baseline;gap:.8rem;padding:.7rem 0;
  border-bottom:1px solid var(--sand-line);text-decoration:none;color:inherit}
.pastrow:last-child{border-bottom:0}
.pastrow .who{flex:1;min-width:0}
.pastrow .who b{display:block;font-size:.95rem;color:var(--navy)}
.pastrow .when{display:block;font-size:.78rem;color:var(--muted);margin-top:.1rem}
.pastrow .go{font-size:.78rem;font-weight:700;color:var(--pink);white-space:nowrap}
.pastrow:hover .who b{color:var(--pink)}

/* The four facts on Padel 101. They used to be .num - one big numeral each - which worked
   while every fact was a number. Half of them are now short phrases ("walls in play"), and
   a phrase at 2.1rem wraps to three lines and stops being a glance. One size for all four
   keeps the row reading as four equal facts rather than two numbers and two sentences. */
.card .fact{font-size:.95rem;font-weight:800;letter-spacing:.04em;line-height:1.2;
  text-transform:uppercase;color:var(--terracotta);white-space:nowrap}
/* the longest of them is "underarm serve", which fits on one line at four across on a
   laptop and has to be allowed to wrap once the row drops to two */
@media (max-width:560px){.card .fact{white-space:normal}}
