/* ==========================================================================
   Swing Dance Festivals · design C "week planner", Terracotta & sage.
   Hand-written CSS: no Tailwind directives, neither its preflight nor its utilities are used.
   Ported from the approved prototype (tmp/sdf-design/designs/M-pastel-week-pastel-peach), the page mockups
   approved on 2026-10-24 (tmp/sdf-design/mockups) and the final design canvas of 2026-10-31
   (tmp/sdf-design/fresh, built by tmp/sdf-design/colours/tools/final.py): a white page warming to clay white,
   flat tinted bands, a sticky month title and week bar over the list; Momo Trust Display titles over Hedvig Letters Sans text
   (2026-11-02, after Poppins and Google Sans Flex from 2026-11-01).

   No text under 1rem (16px); rem units. Everything works without JavaScript: filters are links, the phone drawer
   and menu open with :target. Fonts are self-hosted (below, preloaded by shared/_fonts).
   ========================================================================== */

/* ---------- Fonts: Momo Trust Display and Hedvig Letters Sans, self-hosted (app/assets/fonts/swing_dance_festival), latin files preloaded (shared/_fonts) ----------
   Momo Trust Display for the titles and Hedvig Letters Sans for the text, the final pair (owner, 2026-11-05), each in its
   one weight, both under the SIL Open Font License. Here, not in an inline <style>: the Content-Security-Policy allows
   styles and fonts from this site only (StrictSecurityHeaders), so no visitor's browser asks Google for anything.
   Propshaft stamps the digests into these url()s. */

@font-face{
  font-family:"Momo Trust Display";

  font-style:normal;

  font-weight:400;

  font-display:swap;

  src:url("/assets/swing_dance_festival/momo-trust-display-normal-400-latin-ext-b635bb30.woff2") format("woff2");

  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF
}

@font-face{
  font-family:"Momo Trust Display";

  font-style:normal;

  font-weight:400;

  font-display:swap;

  src:url("/assets/swing_dance_festival/momo-trust-display-normal-400-latin-f2fda637.woff2") format("woff2");

  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face{
  font-family:"Hedvig Letters Sans";

  font-style:normal;

  font-weight:400;

  font-display:swap;

  src:url("/assets/swing_dance_festival/hedvig-letters-sans-normal-400-latin-ext-19fa404d.woff2") format("woff2");

  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF
}

@font-face{
  font-family:"Hedvig Letters Sans";

  font-style:normal;

  font-weight:400;

  font-display:swap;

  src:url("/assets/swing_dance_festival/hedvig-letters-sans-normal-400-latin-ed6cb9c8.woff2") format("woff2");

  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

:root{
  color-scheme:light;
  /* Terracotta & sage. Terracotta (--green, kept from the prototype's names) marks what the page points out: festival
     days, the countdown, notes, chosen filters. Every button is a warm espresso (--cta), so an action never shares
     its colour with a highlight. Light sage, clay and dusty-blue tints for chips, cards and bands; the clay white
     --butter for panels and the warm --wash for secondary buttons (a festival card's quick look and "See details"),
     which a white page would swallow. */
  --ink:#2A201C;
  --ink-2:#5C4C45;
  --white:#FFFFFF;
  --cream:#FFFCFA;
  --glass:rgb(255 255 255 / .58);
  --page:linear-gradient(160deg,#FFFFFF 0%,#FFF9F5 100%);
  --line:rgb(42 32 28 / .12);
  --line-2:rgb(42 32 28 / .22);
  --butter:#F9F3EE;
  --wash:#F3ECE6;
  --wash-2:#EBE0D8;
  --mint:#E6EDE1;
  --pink:#F8E4D7;
  --lavender:#E4EAF1;
  --mint-2:#CFDCC7;
  --pink-2:#EFC9B4;
  --lavender-2:#C9D5E3;
  --bubble:#EFC9B4;
  --green:#A9472D;
  --green-d:#8B3A24;
  --green-ink:#8B3A24;
  --green-deep:#5E2617;
  --hl:var(--green);
  --cta:#2A201C;
  --cta-d:#4A3A33;
  --on-hl:#FFF6EF;
  --y1:#F8E4D7;
  --y2:#E6EDE1;
  --strong-1:#D27A5A;
  --strong-2:#8AA0C0;
  --strong-3:#93AD87;
  --code-bg:#2A201C;
  --code-p:#FFF6EF;
  --code-k:#C9D5E3;
  --code-s:#CFDCC7;
  --code-n:#EFC9B4;
  --ring:#2A201C;
  --field:#D3C4B8;
  --field-hover:#9C8A7E;
  --field-soft:#E6DBD2;
  /* A fine grain on the tinted cards and pills only, like fired clay; the page stays plain */
  --grain:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  .12 .12 .12 0 -.15'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  /* Momo Trust Display for the titles, Hedvig Letters Sans for all the text. Each has one weight and font-synthesis is off, so a
     rule asking for bold gets the regular: --font-bold stays for the day a text font has a bold. */
  --font:"Hedvig Letters Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-bold:"Hedvig Letters Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-title:"Momo Trust Display",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --font-mono:ui-monospace,"SF Mono","Cascadia Mono","Roboto Mono",Menlo,Consolas,monospace;
  --r-s:.75rem;
  --r-m:1rem;
  --r-l:1.5rem;
  --r-pill:999rem;
  --side:23.5rem;
  --gutter:1.5rem;
  --bar:3.5rem;
  --measure:40rem;
  --max:96rem;
}

/* The page's side margin: 1.5rem from a phone up (owner, 2026-11-01), 2rem from 64em */

@media (min-width:64em){
  :root{
    --gutter:2rem;
    --bar:4.25rem
  }
}

/* ---------- Base ---------- */

*,*::before,*::after{
  box-sizing:border-box
}

[hidden]{
  display:none !important
}

html{
  -webkit-text-size-adjust:100%;
  -moz-text-size-adjust:100%;
       text-size-adjust:100%;
  background:var(--cream);
  scroll-padding-top:calc(var(--bar) + 1rem);
  font-synthesis:none
}

body{
  display:flex;
  flex-direction:column;
  margin:0;
  min-height:100vh;
  background:var(--page);
  color:var(--ink);
  font-family:var(--font);
  font-size:1.0625rem;
  line-height:1.55;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale
}

h1,h2,h3,h4{
  font-family:var(--font-title);
  font-weight:600;
  line-height:1.15;
  letter-spacing:-.02em;
  margin:0 0 .5em;
  overflow-wrap:break-word;
  text-wrap:balance;
  color:var(--ink)
}

/* Every page title the same size, the home hero's (owner, 2026-11-02) */

h1{
  font-size:clamp(2.025rem,1.35rem + 1.44vw,2.8125rem);
  line-height:1.1;
  letter-spacing:-.02em
}

h2{
  font-size:clamp(1.35rem,1.17rem + .81vw,1.8rem)
}

h3{
  font-size:1.06875rem;
  letter-spacing:-.01em
}

h4{
  font-size:1.0125rem;
  letter-spacing:-.01em
}

p,ul,ol,dl{
  margin:0 0 1em
}

a{
  color:var(--ink);
  text-decoration-thickness:.08em;
  text-underline-offset:.2em
}

a:hover{
  color:var(--green-ink)
}

button,input,select,textarea{
  font:inherit;
  color:inherit
}

code,pre{
  font-family:var(--font-mono);
  font-size:1rem
}

img{
  max-width:100%
}

:focus-visible{
  outline:3px solid var(--ring);
  outline-offset:3px
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0
}

.sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}

.ic{
  width:1.25rem;
  height:1.25rem;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round
}

.skip{
  position:absolute;
  left:1rem;
  top:-100%;
  z-index:100;
  padding:.75rem 1.25rem;
  background:var(--ink);
  color:var(--white);
  border-radius:var(--r-pill);
  font-weight:700;
  text-decoration:none
}

.skip:hover{
  color:var(--white)
}

.skip:focus{
  top:.5rem
}

/* The pre-title is the one text under 1rem (owner, 2026-11-02) */

.muted{
  color:var(--ink-2)
}

/* ---------- Header ---------- */

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  background:var(--glass);
  border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(14px) saturate(1.3);
  backdrop-filter:blur(14px) saturate(1.3)
}

.topbar-in{
  position:relative;
  max-width:var(--max);
  margin:0 auto;
  min-height:calc(var(--bar) - 1px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  padding:.25rem var(--gutter)
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:.625rem;
  min-height:2.75rem;
  color:var(--ink);
  text-decoration:none;
  font-family:var(--font-title);
  font-weight:600;
  font-size:1rem;
  letter-spacing:-.02em;
  line-height:1.1
}

.brand:hover{
  color:var(--ink)
}

.brand:hover .brand-t{
  text-decoration:underline;
  text-decoration-thickness:.08em;
  text-underline-offset:.2em
}

.brand-t{
  display:flex;
  flex-direction:column
}

.brand-t>span{
  white-space:nowrap
}

.mark{
  width:2.25rem;
  height:2.25rem;
  flex:none
}

.top-right{
  display:flex;
  align-items:center;
  gap:.375rem
}

.filters-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  min-height:2.75rem;
  padding:.5rem 1.125rem .5rem 1rem;
  border:0;
  border-radius:var(--r-pill);
  background:var(--cta);
  color:var(--white);
  font-weight:700;
  text-decoration:none;
  flex:none
}

.filters-btn:hover{
  background:var(--cta-d);
  color:var(--white)
}

.fcount{
  position:absolute;
  top:-.4375rem;
  right:-.4375rem;
  display:inline-grid;
  place-items:center;
  min-width:1.625rem;
  height:1.625rem;
  padding:0 .375rem;
  border-radius:var(--r-pill);
  background:var(--bubble);
  color:var(--ink);
  font-size:1rem;
  font-weight:600;
  line-height:1;
  border:2px solid var(--cream);
  font-variant-numeric:tabular-nums
}

.menu-btn{
  display:grid;
  place-items:center;
  width:2.75rem;
  height:2.75rem;
  flex:none;
  border-radius:var(--r-pill);
  color:var(--ink)
}

.menu-btn .ic{
  width:1.5rem;
  height:1.5rem;
  stroke-width:1.5
}

.menu-btn:hover{
  background:var(--mint);
  color:var(--ink)
}

.top-link{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  padding:0 .875rem;
  border:0;
  border-radius:var(--r-pill);
  background:transparent;
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer
}

.top-link:hover{
  color:var(--ink);
  background:var(--mint);
  text-decoration:underline
}

.who{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  margin:0;
  padding:0 .375rem 0 0;
  font-weight:700;
  white-space:nowrap
}

.avatar{
  display:inline-grid;
  place-items:center;
  width:2.25rem;
  height:2.25rem;
  flex:none;
  border-radius:50%;
  background:var(--bubble);
  color:var(--ink);
  font-family:var(--font-title);
  font-weight:600;
  font-size:1rem;
  line-height:1
}

.top-sep{
  width:1px;
  height:1.75rem;
  background:var(--line-2);
  flex:none
}

.inline-form{
  display:inline-flex;
  margin:0
}

.sw-track{
  position:relative;
  display:inline-block;
  flex:none;
  width:2.75rem;
  height:1.625rem;
  border-radius:var(--r-pill);
  background:var(--white);
  border:1.5px solid var(--ink)
}

.sw-thumb{
  position:absolute;
  top:.15625rem;
  left:.15625rem;
  width:1.0625rem;
  height:1.0625rem;
  border-radius:50%;
  background:var(--ink)
}

.menu-close{
  display:none
}

/* Under 64em the menu opens from the menu button (#menu, no JavaScript) */

.top-menu{
  display:none
}

.top-menu:target{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.25rem;
  position:absolute;
  top:calc(100% + .25rem);
  right:var(--gutter);
  z-index:45;
  width:min(20rem,calc(100% - 2 * var(--gutter)));
  padding:.75rem;
  background:var(--cream);
  border:1.5px solid var(--ink);
  border-radius:var(--r-l)
}

.top-menu:target .top-sep{
  width:auto;
  height:1px;
  margin:.25rem 0
}

.top-menu:target .who{
  padding:.25rem .875rem
}

.top-menu:target .inline-form,.top-menu:target .inline-form .top-link{
  display:flex;
  width:100%
}

.top-menu:target .menu-close{
  display:inline-flex;
  align-self:flex-end
}

@media (min-width:30em){
  .brand-t{
    display:inline
  }

  .brand{
    font-size:1.0625rem
  }
}

@media (min-width:40em){
  .mark{
    width:2.75rem;
    height:2.75rem
  }
}

@media (max-width:22.49em){
  .topbar-in{
    gap:.375rem
  }

  .top-right{
    gap:.25rem
  }

  .brand{
    gap:.375rem
  }

  .filters-btn{
    padding-inline:.625rem
  }
}

@media (min-width:64em){
  .filters-btn,.menu-btn{
    display:none
  }

  .top-menu,.top-menu:target{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:.5rem;
    position:static;
    width:auto;
    padding:0;
    background:none;
    border:0
  }

  .top-menu:target .top-sep{
    width:1px;
    height:1.75rem;
    margin:0
  }

  .top-menu:target .who{
    padding:0 .375rem 0 0
  }

  .top-menu:target .inline-form,.top-menu:target .inline-form .top-link{
    display:inline-flex;
    width:auto
  }

  .top-menu:target .menu-close{
    display:none
  }

  .brand{
    font-size:1.1875rem;
    gap:.75rem
  }

  .mark{
    width:3rem;
    height:3rem
  }
}

/* ---------- Buttons ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:.5rem;
  min-height:2.75rem;
  padding:.625rem 1.25rem;
  border-radius:var(--r-pill);
  border:1.5px solid transparent;
  font-family:var(--font);
  font-size:1rem;
  font-weight:700;
  letter-spacing:0;
  line-height:1.2;
  text-decoration:none;
  text-align:center;
  cursor:pointer;
  min-width:0;
  overflow-wrap:break-word
}

.btn-primary,.btn-ink{
  background:var(--cta);
  color:var(--white);
  border-color:var(--cta)
}

.btn-primary:hover,.btn-ink:hover{
  background:var(--cta-d);
  border-color:var(--cta-d);
  color:var(--white)
}

.btn-outline{
  background:var(--wash);
  color:var(--ink);
  border-color:transparent
}

.btn-outline:hover{
  background:var(--wash-2);
  color:var(--ink)
}

.btn-quiet{
  background:transparent;
  color:var(--ink);
  border-color:var(--line-2)
}

.btn-quiet:hover{
  border-color:var(--ink);
  color:var(--ink)
}

.btn-lg{
  min-height:3.25rem;
  padding:.75rem 1.5rem
}

.btn-sm{
  min-height:2.75rem;
  padding:.375rem 1rem
}

.linkish{
  border:0;
  padding:0;
  background:none;
  cursor:pointer;
  font-weight:700;
  text-decoration:underline;
  text-decoration-thickness:.08em;
  text-underline-offset:.2em
}

.linkish:hover{
  color:var(--green-ink)
}

/* ---------- Page frames ---------- */

.main{
  display:block;
  min-width:0;
  padding:0 var(--gutter) 2rem
}

/* The content takes the height a short page leaves, so the footer stays at the bottom of the window (owner, 2026-11-04) */

body>main,body>.layout{
  flex:1 0 auto;
  width:100%
}

.page{
  display:block;
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--gutter) 2.5rem
}

/* A page without filters is one column in the middle, 42rem wide like About and Contact (owner, 2026-11-02). */

.page{
  max-width:calc(42rem + 2 * var(--gutter))
}

/* A page of simple content in the middle (sign in, the account pages, errors) has the same room above and below it, 6rem
   at least, however tall the window (owner, 2026-11-04) */

.page:has(>.panel,>.err-card,>.page-head.on-page){
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:1.5rem;
  padding-block:6rem
}

main:has(>.panel,>.err-card,>.page-head.on-page)+.site-footer{
  margin-top:0
}

/* A sign-in section is a narrow block in the middle of the page (owner, 2026-11-04) */

.narrow{
  width:100%;
  max-width:26rem;
  margin-inline:auto
}

.page:has(>.panel,>.err-card,>.page-head.on-page)>.flashes{
  margin:0
}

.sidebar{
  display:none
}

@media (min-width:64em){
  .layout{
    display:grid;
    grid-template-columns:var(--side) minmax(0,1fr);
    gap:2rem;
    max-width:var(--max);
    margin:0 auto;
    padding:1.5rem var(--gutter) 0;
    align-items:start
  }

  .layout>.main{
    padding:0 0 3rem
  }

  .page{
    padding:1.5rem var(--gutter) 3.5rem
  }
}

/* ---------- Messages ---------- */

.notice{
  display:flex;
  align-items:flex-start;
  gap:.875rem;
  margin:0;
  background:var(--lavender);
  border-radius:var(--r-m);
  padding:1rem 1.25rem
}

.notice>.ic{
  width:1.5rem;
  height:1.5rem;
  margin-top:.0625rem;
  color:var(--ink)
}

.notice p,.notice ul{
  margin:0
}

.notice p+p{
  margin-top:.75rem
}

.notice p{
  overflow-wrap:anywhere
}

.notice ul{
  padding-left:1.25rem
}

.notice h2{
  margin:0 0 .25rem;
  font-size:1.06875rem
}

.notice-mint{
  background:var(--mint)
}

.notice-peach{
  background:var(--pink)
}

.flashes{
  display:grid;
  gap:.75rem;
  margin:1rem 0
}

@media (min-width:64em){
  .layout .flashes{
    margin-top:0
  }
}

/* ---------- Filters sidebar (a drawer under 64em, opened by #filters) ---------- */

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  min-height:2.5rem;
  margin:0 0 .75rem
}

.panel-title{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:0;
  font-family:var(--font-title);
  font-weight:600;
  font-size:1.2375rem;
  letter-spacing:-.02em;
  line-height:1.1
}

.drawer-close{
  display:grid;
  place-items:center;
  width:2.75rem;
  height:2.75rem;
  border:1.5px solid var(--ink);
  border-radius:50%;
  background:var(--white);
  color:var(--ink)
}

.drawer-close:hover{
  background:var(--mint);
  color:var(--ink)
}

.drawer-foot{
  position:sticky;
  bottom:0;
  z-index:2;
  margin:1.5rem calc(-1 * var(--gutter)) 0;
  padding:.75rem var(--gutter);
  background:var(--butter);
  border-top:1px solid var(--line)
}

.drawer-foot .btn{
  width:100%
}

.finder{
  display:grid;
  gap:1.25rem;
  margin:0
}

.finder>*+.sec{
  padding-top:1.25rem;
  border-top:1px solid var(--line)
}

.sec{
  border:0;
  margin:0;
  padding:0;
  min-width:0
}

.sec-label{
  display:flex;
  align-items:center;
  gap:.625rem;
  margin:0 0 1rem;
  padding:0;
  font-family:var(--font);
  font-size:1.0625rem;
  font-weight:500;
  letter-spacing:0;
  line-height:1.2;
  color:var(--ink-2)
}

.sec-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin:0 0 1rem
}

.sec-head .sec-label{
  margin:0
}

.hint{
  margin:0 0 .625rem;
  color:var(--ink-2)
}

.search label{
  display:block
}

.field{
  display:flex;
  align-items:center;
  gap:.5rem;
  min-height:3rem;
  padding:0 1rem 0 .25rem;
  border:1px solid var(--line-2);
  border-radius:var(--r-pill);
  background:var(--white)
}

.field:focus-within{
  outline:3px solid var(--ring);
  outline-offset:3px
}

.field input{
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  font-size:1.0625rem;
  padding:.625rem 0;
  outline:none
}

.field input::-moz-placeholder{
  color:var(--ink-2)
}

.field input::placeholder{
  color:var(--ink-2)
}

.field-go{
  display:grid;
  place-items:center;
  flex:none;
  width:2.375rem;
  height:2.375rem;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--ink);
  cursor:pointer
}

.field-go:hover{
  background:var(--mint)
}

.field-go .ic{
  width:1.125rem;
  height:1.125rem
}

.seg2{
  display:inline-flex;
  gap:.125rem;
  padding:.1875rem;
  border-radius:var(--r-pill);
  background:var(--white)
}

.seg2-btn{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  padding:.25rem .875rem;
  border-radius:var(--r-pill);
  color:var(--ink);
  font-weight:600;
  text-decoration:none
}

a.seg2-btn:hover{
  background:var(--mint);
  color:var(--ink)
}

.seg2-btn[aria-current]{
  background:var(--green);
  color:var(--white)
}

/* Month tiles: links to ?month=, the current month with a dot */

.mgrid{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.375rem
}

.mgrid>li{
  display:flex
}

.mtile{
  position:relative;
  display:flex;
  flex:1;
  align-items:center;
  justify-content:space-between;
  gap:.25rem;
  width:100%;
  height:2.75rem;
  padding:0 .625rem;
  border-radius:var(--r-s);
  background:var(--tile,var(--white));
  color:var(--ink);
  font-size:1rem;
  line-height:1;
  white-space:nowrap;
  text-decoration:none;
  font-variant-numeric:tabular-nums
}

.mtile .mt-m{
  font-weight:700
}

.mtile .n{
  font-weight:500;
  color:var(--ink-2)
}

.y1{
  --tile:var(--y1)
}

.y2{
  --tile:var(--y2)
}

a.mtile:hover{
  color:var(--ink);
  outline:1.5px solid var(--ink);
  outline-offset:-1.5px
}

.mtile[aria-current]{
  background:var(--green);
  color:var(--white)
}

a.mtile[aria-current]:hover{
  color:var(--white)
}

.mtile[aria-current] .n{
  color:var(--white)
}

.mtile.is-off{
  background:transparent;
  outline:1px dashed var(--line-2);
  outline-offset:-1px;
  color:var(--ink-2)
}

.mtile.is-off .mt-m{
  font-weight:600
}

.mtile.now::after{
  content:"";
  position:absolute;
  top:-.25rem;
  right:-.25rem;
  width:.75rem;
  height:.75rem;
  border:2px solid var(--butter);
  border-radius:50%;
  background:var(--green);
  animation:now 2.4s ease-in-out infinite
}

.mtile.now[aria-current]::after{
  background:var(--white)
}

@keyframes now{
  50%{
    transform:scale(1.3);
    opacity:.4
  }
}

.m-key{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.25rem 1.125rem;
  margin:.625rem 0 0;
  color:var(--ink-2);
  line-height:1.3
}

.mk{
  display:inline-flex;
  align-items:center;
  gap:.4375rem
}

.mk::before{
  content:"";
  flex:none;
  width:1rem;
  height:1rem;
  border-radius:.3125rem;
  background:var(--tile);
  outline:1px solid var(--line-2);
  outline-offset:-1px
}

.mk-now::before{
  width:.5rem;
  height:.5rem;
  margin-inline:.25rem;
  border-radius:50%;
  background:var(--green);
  outline:0
}

/* Filter chips: links that add or remove a value, the page's own value included */

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:.375rem;
  margin:0;
  padding:0;
  list-style:none
}

.chip,.sw{
  position:relative;
  display:inline-flex;
  min-width:0;
  color:var(--ink);
  text-decoration:none
}

.chip .face{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:.4375rem;
  min-height:2.75rem;
  padding:.25rem .9375rem .25rem .875rem;
  border:0;
  border-radius:var(--r-pill);
  background:var(--white);
  color:var(--ink);
  font-weight:600;
  line-height:1.2
}

.chip .n,.sw .n{
  color:var(--ink-2);
  font-weight:500;
  font-variant-numeric:tabular-nums
}

.chip .cflag{
  width:1.375rem;
  height:1.375rem;
  margin-left:-.3125rem
}

.chip .tick{
  display:none;
  width:1rem;
  height:1rem;
  stroke-width:2.25
}

a.chip:hover{
  color:var(--ink)
}

a.chip:hover .face{
  outline:1.5px solid var(--ink);
  outline-offset:-1.5px
}

a.chip:focus-visible,a.sw:focus-visible,a.mtile:focus-visible{
  outline:none
}

a.chip:focus-visible .face,a.sw:focus-visible .face{
  outline:3px solid var(--ring);
  outline-offset:3px
}

a.mtile:focus-visible{
  outline:3px solid var(--ring);
  outline-offset:3px
}

.chip[aria-current] .face,.chip input:checked+.face{
  background:var(--green);
  color:var(--white);
  outline-color:var(--green)
}

.chip[aria-current] .n,.chip input:checked+.face .n{
  color:var(--white)
}

.chip[aria-current] .tick,.chip input:checked+.face .tick{
  display:block
}

a.chip[aria-current]:hover .face{
  outline:1.5px solid var(--ink)
}

.chip.is-off .face{
  background:transparent;
  outline:1px solid var(--line-2);
  outline-offset:-1px;
  color:var(--ink-2);
  font-weight:500
}

/* Form chips: a radio or checkbox under its face */

.chip input{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  margin:0;
  opacity:0;
  cursor:pointer
}

.chip:has(input):hover .face{
  outline:1.5px solid var(--ink);
  outline-offset:-1.5px
}

.chip input:focus-visible+.face{
  outline:3px solid var(--ring);
  outline-offset:3px
}

.opts .chip .face{
  min-height:2.75rem;
  padding:.25rem 1.0625rem .25rem 1rem;
  background:var(--cream);
  outline:1px solid var(--line-2);
  outline-offset:-1.5px
}

.compose .opts .chip input:not(:checked)+.face{
  background:var(--white)
}

.switches{
  display:grid;
  gap:.375rem;
  list-style:none;
  margin:0;
  padding:0
}

.sw{
  display:flex
}

.sw .face{
  display:flex;
  align-items:center;
  gap:.5rem;
  width:100%;
  min-height:3rem;
  padding:.25rem .5rem .25rem 1.125rem;
  border-radius:var(--r-pill);
  background:var(--white)
}

.sw .nm{
  font-weight:600
}

.sw .sw-track{
  margin-left:auto
}

a.sw:hover{
  color:var(--ink)
}

a.sw:hover .sw-track{
  background:var(--mint)
}

.sw[aria-current] .sw-track{
  background:var(--green);
  border-color:var(--green)
}

.sw[aria-current] .sw-thumb{
  left:auto;
  right:.15625rem;
  background:var(--white)
}

.sw.is-off .face{
  color:var(--ink-2);
  background:transparent;
  outline:1px solid var(--line-2);
  outline-offset:-1px
}

.sw.is-off .sw-track{
  border-color:rgb(18 18 18 / .4)
}

.sw.is-off .sw-thumb{
  background:rgb(18 18 18 / .4)
}

.more-c{
  margin-top:.5rem
}

.more-c summary{
  display:inline-flex;
  align-items:center;
  gap:.375rem;
  min-height:2.75rem;
  padding:0 .25rem;
  margin-left:-.25rem;
  border-radius:var(--r-s);
  color:var(--ink);
  font-weight:600;
  cursor:pointer;
  list-style:none;
  text-decoration:underline;
  text-decoration-thickness:.08em;
  text-underline-offset:.2em
}

.more-c summary::-webkit-details-marker{
  display:none
}

.more-c summary .ic{
  width:1.125rem;
  height:1.125rem
}

.more-c[open] summary .ic{
  transform:rotate(180deg)
}

.more-c summary:hover{
  color:var(--green-ink)
}

.more-c .chips{
  margin-top:.5rem
}

@media (max-width:63.99em){
  .sidebar:target{
    display:block;
    position:fixed;
    inset:0;
    z-index:60;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:0 var(--gutter);
    background:var(--butter)
  }

  .sidebar:target .panel-head{
    position:sticky;
    top:0;
    z-index:2;
    min-height:var(--bar);
    margin:0 calc(-1 * var(--gutter)) 1.25rem;
    padding:.375rem var(--gutter);
    background:var(--butter);
    border-bottom:1px solid var(--line)
  }

  .sidebar:target .panel-title{
    font-size:1.35rem
  }
}

@media (min-width:64em){
  .sidebar{
    display:block;
    position:sticky;
    top:calc(var(--bar) + 1.25rem);
    max-height:calc(100dvh - var(--bar) - 2.5rem);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:rgb(18 18 18 / .3) transparent;
    padding:1.125rem 1.375rem 1.375rem;
    background:var(--butter);
    border-radius:var(--r-l)
  }

  .drawer-close,.drawer-foot{
    display:none
  }

  .finder{
    gap:.625rem
  }

  .finder>*+.sec{
    padding-top:1rem
  }

  .sec-label{
    margin-bottom:.75rem
  }

  .sec-head{
    margin-bottom:.75rem
  }

  .hint{
    margin-bottom:.375rem
  }

  .sidebar .chip .face{
    min-height:2.125rem;
    padding-block:0
  }

  .chips{
    gap:.3125rem
  }

  .sw .face{
    min-height:2.5rem
  }

  .mtile{
    height:2.25rem;
    padding:0 .5rem 0 .625rem
  }

  .mgrid{
    gap:.3125rem
  }

  .seg2-btn{
    min-height:2.125rem
  }

  .panel-head{
    min-height:2.25rem;
    margin-bottom:.625rem
  }

  .field{
    min-height:2.875rem
  }

  .more-c summary{
    min-height:2.25rem
  }
}

/* ---------- Heroes ---------- */

.p-home{
  --hero:var(--mint)
}

.p-festival{
  --hero:var(--pink)
}

.p-style{
  --hero:var(--lavender)
}

.p-mint{
  --hero:var(--mint)
}

.p-peach{
  --hero:var(--pink)
}

.p-butter{
  --hero:var(--butter)
}

.p-yellow{
  --hero:var(--lavender)
}

.lede{
  margin:0;
  font-size:1rem;
  color:var(--ink);
  max-width:var(--measure);
  text-wrap:pretty
}

.stats{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:1.25rem 0 0;
  padding:0;
  line-height:1.3
}

.stats>div{
  display:inline-flex;
  flex-direction:row-reverse;
  align-items:baseline;
  gap:.375rem;
  min-width:0;
  padding:.375rem .875rem;
  border:0;
  border-radius:var(--r-pill);
  background:var(--white)
}

.stats>div:nth-child(1){
  background:var(--butter)
}

.stats>div:nth-child(2){
  background:var(--pink-2)
}

.stats dt{
  font-weight:500;
  color:var(--ink)
}

.stats dd{
  margin:0;
  color:var(--ink);
  font-family:var(--font-title);
  font-weight:600;
  font-variant-numeric:tabular-nums;
  white-space:nowrap
}

.stats .st-upd{
  flex-direction:row
}

.stats .st-upd dd{
  font-family:var(--font);
  font-weight:700
}

.list-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.5rem 1rem;
  min-height:2.5rem;
  margin:0 calc(-1 * var(--gutter));
  padding:.125rem var(--gutter) .25rem;
  background:var(--hero)
}

.month-nav{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem
}

.crumbs ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  font-size:1rem;
  color:var(--ink)
}

.crumbs li{
  display:inline-flex;
  align-items:center;
  min-width:0
}

.crumbs li+li::before{
  flex:none;
  content:"";
  width:.4rem;
  height:.4rem;
  margin:0 .625rem 0 .375rem;
  border-right:1.5px solid var(--ink-2);
  border-top:1.5px solid var(--ink-2);
  transform:rotate(45deg)
}

.crumbs a{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  font-weight:600
}

.crumbs [aria-current]{
  text-decoration:none;
  color:var(--ink-2);
  font-weight:500;
  display:inline-flex;
  align-items:center;
  min-height:2.75rem
}

/* On a phone, where the trail wraps, its lines sit closer (owner, 2026-11-02): 2rem rows, still a comfortable tap
   target. */

@media (max-width:39.99em){
  .crumbs ol{
    line-height:1.3
  }

  .crumbs a,.crumbs [aria-current]{
    min-height:2rem
  }
}

/* A long trail on one line: Home, the "…" button, this page clipped if it must be; the full path in a popover, built like
   the quick look (owner, 2026-11-02). A browser without popovers keeps the whole trail, wrapped. */

.crumbs li.crumb-more{
  display:none
}

.crumb-btn{
  display:grid;
  place-items:center;
  width:2rem;
  height:2rem;
  padding:0;
  border:0;
  border-radius:50%;
  background:var(--wash);
  color:var(--ink);
  cursor:pointer
}

.crumb-btn:hover{
  background:var(--wash-2)
}

.crumb-btn .ic{
  width:1.25rem;
  height:1.25rem;
  stroke-width:3
}

.crumbs-pop{
  width:26rem
}

.crumbs-pop ol{
  display:grid;
  gap:.25rem;
  justify-items:start
}

.crumbs-pop li+li::before{
  display:none
}

.crumbs-pop [aria-current]{
  font-weight:400
}

@supports selector(:popover-open){
  .fold-all>ol{
    flex-wrap:nowrap
  }

  .fold-all>ol>.crumb-mid{
    display:none
  }

  .fold-all>ol>.crumb-more{
    display:inline-flex;
    flex:none
  }

  .fold-all>ol>li:last-child{
    flex:0 1 auto
  }

  .fold-all>ol>li:last-child>[aria-current]{
    display:block;
    min-height:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }

  @media (max-width:39.99em){
    .fold-phone>ol{
      flex-wrap:nowrap
    }

    .fold-phone>ol>.crumb-mid{
      display:none
    }

    .fold-phone>ol>.crumb-more{
      display:inline-flex;
      flex:none
    }

    .fold-phone>ol>li:last-child{
      flex:0 1 auto
    }

    .fold-phone>ol>li:last-child>[aria-current]{
      display:block;
      min-height:0;
      overflow:hidden;
      text-overflow:ellipsis;
      white-space:nowrap
    }
  }
}

/* The month jump row: phones and tablets only */

.mstrip{
  margin:0 calc(-1 * var(--gutter));
  padding:0 0 .75rem;
  background:var(--hero)
}

.mstrip ul{
  list-style:none;
  margin:0;
  padding:.25rem var(--gutter);
  display:flex;
  gap:.375rem;
  overflow-x:auto;
  scroll-padding-inline:var(--gutter);
  scrollbar-width:none
}

.mstrip li{
  flex:none
}

.mstrip a{
  position:relative;
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  padding:.25rem 1rem;
  border-radius:var(--r-pill);
  background:var(--white);
  border:1px solid var(--line);
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}

.mstrip a:hover{
  border-color:var(--ink);
  color:var(--ink)
}

.mstrip a:focus-visible{
  outline-offset:-3px
}

.empty{
  margin:1.5rem 0;
  padding:1.5rem;
  border-radius:var(--r-l);
  background:var(--white);
  border:1px solid var(--line);
  max-width:var(--measure)
}

.empty p{
  margin:0 0 .75rem
}

.empty p:first-child{
  font-weight:700;
  font-size:1.1875rem;
  letter-spacing:-.01em
}

.empty p:last-child{
  margin:0
}

@media (max-width:39.99em){
  .stats{
    gap:.375rem;
    margin-top:1rem
  }

  .stats>div{
    padding:.25rem .6875rem
  }
}

@media (min-width:64em){
  .stats{
    margin-top:1.5rem;
    gap:.625rem
  }

  .stats>div{
    padding:.4375rem 1rem
  }

  .list-bar{
    margin:0 0 1rem;
    padding:0;
    background:transparent
  }

  .mstrip{
    display:none
  }
}

.page-head{
  margin:0 calc(-1 * var(--gutter)) 1.5rem;
  padding:.25rem var(--gutter) 1.75rem;
  background:var(--hero)
}

.page-head h1{
  margin:.5rem 0 .75rem;
  max-width:22ch
}

.page-head .lede{
  max-width:40rem
}

/* Edit my festivals' head sits directly on the page, like the account pages (owner, 2026-11-02) */

.page-head.on-page{
  margin:0;
  padding:0;
  border-radius:0;
  background:none
}

@media (min-width:64em){
  .page-head{
    margin:0 0 2rem;
    padding:1.25rem 2.5rem 2.25rem;
    border-radius:var(--r-l)
  }

  .page-head .lede{
    font-size:1.0625rem
  }
}

/* ---------- Home hero ---------- */

/* The title, then two columns from 64em: the summary, the search and the festival count (55%), and the busiest
   countries as pills sized to their names, "And N more" at the end of their row (45%). Centred on a phone, where the
   countries show their flags only (the names stay for assistive technology) and the search button goes under the
   field. */

.hp{
  padding:1.5rem 0 2.25rem;
  border-bottom:1px solid var(--line)
}

.hp h1{
  max-width:none;
  margin:0
}

.hp h1 em{
  font-style:normal;
  white-space:nowrap;
  color:var(--hl)
}

@media (max-width:22.49em){
  .hp h1 em{
    white-space:normal
  }
}

.hp-cols{
  display:grid;
  gap:1.75rem 3rem;
  align-items:start;
  margin-top:1.5rem
}

.hp-cols>*{
  min-width:0
}

.hp-main{
  container-type:inline-size
}

.hp-lede{
  max-width:36rem;
  margin:0;
  font-size:1.125rem;
  line-height:1.55;
  color:var(--ink-2);
  text-wrap:pretty
}

.hp-form{
  display:flex;
  flex-wrap:wrap;
  gap:.625rem;
  max-width:36rem;
  margin:1.25rem 0 0
}

.hp-field{
  display:flex;
  flex:1 1 auto;
  align-items:center;
  gap:.75rem;
  min-width:0;
  min-height:3.125rem;
  padding:0 1.125rem;
  border:1px solid var(--line-2);
  border-radius:var(--r-pill);
  background:var(--white);
  color:var(--ink-2)
}

.hp-field:focus-within{
  outline:3px solid var(--ring);
  outline-offset:2px
}

.hp-field input{
  flex:1;
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  background:none;
  font-size:1.125rem;
  color:var(--ink);
  outline:0
}

.hp-field input::-moz-placeholder{
  color:var(--ink-2)
}

.hp-field input::placeholder{
  color:var(--ink-2)
}

.hp-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  min-height:3.125rem;
  padding:0 1.5rem;
  border:0;
  border-radius:var(--r-pill);
  background:var(--cta);
  color:var(--white);
  font-size:1rem;
  cursor:pointer
}

.hp-btn:hover{
  background:var(--cta-d)
}

.hp-under{
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  margin-top:1rem
}

.hp-count{
  display:inline-flex;
  flex:none;
  align-items:center;
  gap:.625rem;
  margin:0;
  padding-left:.25rem;
  line-height:1.4;
  color:var(--ink-2)
}

.dot{
  width:.5rem;
  height:.5rem;
  flex:none;
  border-radius:50%;
  background:var(--hl);
  box-shadow:0 0 0 .25rem color-mix(in oklab,var(--hl) 20%,transparent)
}

.hp-h{
  margin:0 0 .625rem;
  font-family:var(--font-mono);
  font-size:1rem;
  font-weight:400;
  letter-spacing:0;
  color:var(--ink-2)
}

.hp-grid{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  margin:0;
  padding:0;
  list-style:none
}

.hp-grid li{
  position:relative;
  display:flex;
  align-items:center;
  gap:.5rem;
  min-width:0;
  padding:.5rem .875rem .5rem .625rem;
  border-radius:var(--r-pill);
  background:var(--grain) var(--mint);
  white-space:nowrap
}

.hp-grid li:nth-child(3n+2){
  background-color:var(--pink)
}

.hp-grid li:nth-child(3n){
  background-color:var(--lavender)
}

.hp-grid .cflag{
  width:1.5rem;
  height:1.5rem
}

.hp-grid a{
  font-family:var(--font-title);
  font-size:1.0625rem;
  font-weight:600;
  line-height:1.2;
  color:var(--ink);
  text-decoration:none
}

.hp-grid a::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit
}

.hp-grid li:hover a{
  text-decoration:underline
}

.hp-n{
  color:var(--ink-2)
}

.hp-grid li.hp-more{
  padding:.5rem .25rem;
  background:none;
  color:var(--ink-2)
}

.hp-more a{
  font-family:var(--font);
  font-weight:400;
  text-decoration:underline
}

.hp~.list-bar{
  margin-top:1.5rem;
  background:none
}

.hp~.mstrip{
  background:none
}

@media (min-width:40em){
  .hp-form{
    flex-wrap:nowrap
  }
}

/* The other list pages open with the same hero under their breadcrumb (owner, 2026-11-02). A long place name may wrap,
   and the count line ("2 upcoming festivals · Updated 24 October 2026") wraps under its dot. */

.hp-hub .crumbs{
  margin:-.75rem 0 .5rem
}

.hp-hub h1 em{
  white-space:normal
}

.hp-hub .hp-count{
  flex:0 1 auto;
  align-items:flex-start
}

.hp-hub .hp-count .dot{
  margin-top:.5rem
}

.hp-upd{
  white-space:nowrap
}

/* With no "Showing all …" line under it (owner, 2026-11-02), the home's rule keeps 2rem of air above the first month on
   a computer, as much as a phone has. */

@media (min-width:64em){
  .hp{
    margin-bottom:2rem
  }

  .hp-cols{
    grid-template-columns:minmax(0,11fr) minmax(0,9fr)
  }
}

@media (max-width:39.99em){
  .hp{
    text-align:center
  }

  .hp-hub .crumbs ol{
    justify-content:center
  }

  .hp-sep{
    display:none
  }

  .hp-upd{
    display:block
  }

  .hp-field{
    flex-basis:100%
  }

  .hp-btn{
    flex:1 1 100%
  }

  .hp-under,.hp-grid{
    justify-content:center
  }

  .hp-grid li{
    padding:.5rem;
    border-radius:.875rem
  }

  .hp-grid .cflag{
    width:2rem;
    height:2rem
  }

  .hp-nm{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap
  }

  .hp-n{
    display:none
  }
}

/* ---------- Week planner list ---------- */

.fests,.month,.related{
  container-type:inline-size
}

.month,.related{
  --band:var(--pink);
  --band-2:var(--pink-2);
  --strong:var(--strong-1);
  --cell:1rem;
  --col:10.5rem
}

.band-yellow{
  --band:var(--lavender);
  --band-2:var(--lavender-2);
  --strong:var(--strong-2)
}

.band-mint{
  --band:var(--mint);
  --band-2:var(--mint-2);
  --strong:var(--strong-3)
}

.month{
  --mt:3.5rem;
  padding:1.5rem 0 .5rem
}

.month-title{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:.25rem 1rem;
  margin:0;
  padding:.75rem 0;
  min-height:var(--mt);
  align-content:center;
  font-size:clamp(1.35rem,1.17rem + .81vw,1.8rem);
  font-weight:600;
  letter-spacing:-.025em
}

/* The month title and the week bar stay pinned under the header while their festivals scroll by */

.month>.month-title{
  position:sticky;
  top:var(--bar);
  z-index:5;
  background:var(--cream)
}

.month>.month-title+*{
  margin-top:.25rem
}

.count{
  display:inline-block;
  font-family:var(--font);
  font-size:1rem;
  font-weight:600;
  letter-spacing:0;
  color:var(--ink-2);
  white-space:nowrap;
  line-height:1.25;
  font-variant-numeric:tabular-nums
}

.cards{
  list-style:none;
  margin:0;
  padding:0;
  display:block
}

.grp{
  list-style:none
}

.grp+.grp{
  margin-top:1rem
}

.grp-h{
  position:sticky;
  top:calc(var(--bar) + var(--mt));
  z-index:4;
  margin:0 0 .25rem;
  display:grid;
  grid-template-columns:var(--col) minmax(0,1fr);
  align-items:center;
  gap:.25rem .75rem;
  padding:.5rem .5rem .5rem 1rem;
  border-radius:var(--r-m);
  background:var(--band)
}

.related .grp-h,.series-up .grp-h{
  position:static
}

.grp-t{
  font-size:1rem;
  font-weight:700;
  line-height:1.3
}

.wk-cal{
  display:flex;
  margin-left:-.1875rem
}

.wk-c{
  width:var(--cell);
  padding:.125rem 0;
  border-radius:var(--r-pill);
  text-align:center;
  font-size:1rem;
  font-weight:600;
  line-height:1.3;
  color:var(--ink)
}

.wk-c.we{
  background:var(--band-2)
}

.grp-cards{
  list-style:none;
  margin:0;
  padding:0
}

.card{
  --fest:var(--hl);
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:.625rem;
  min-width:0;
  padding:1rem;
  border:0;
  border-radius:var(--r-m);
  background:none
}

.card:hover{
  background:var(--band)
}

.card:focus-within{
  outline:3px solid var(--ring);
  outline-offset:-3px
}

.card-title a:focus-visible{
  outline:none
}

.grp-cards>.card+.card::before{
  content:"";
  position:absolute;
  top:0;
  left:1rem;
  right:1rem;
  height:1px;
  background:var(--line-2)
}

.grp-cards>.card:hover::before,.grp-cards>.card:hover+.card::before{
  opacity:0
}

.wk-when{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem 1rem
}

.wk-strip{
  display:flex;
  align-items:center;
  flex:none;
  margin-left:-.1875rem
}

.wk-d{
  display:grid;
  place-items:center;
  width:var(--cell);
  height:1rem
}

.wk-d::before{
  content:"";
  width:.375rem;
  height:.375rem;
  border-radius:50%;
  background:var(--line-2)
}

.wk-d.we::before{
  background:var(--band-2)
}

.wk-d.on{
  background:linear-gradient(var(--fest),var(--fest)) center/100% .125rem no-repeat
}

.wk-d.on.first{
  background-size:50% .125rem;
  background-position:right center
}

.wk-d.on.last{
  background-size:50% .125rem;
  background-position:left center
}

.wk-d.on.first.last{
  background:none
}

.wk-d.on::before{
  width:.625rem;
  height:.625rem;
  background:var(--fest)
}

.wk-more{
  width:.3125rem;
  height:.5rem;
  margin-left:.125rem;
  background:var(--fest);
  clip-path:polygon(0 0,100% 50%,0 100%)
}

.wk-date{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.3125rem;
  font-size:1rem;
  line-height:1.3;
  font-variant-numeric:tabular-nums
}

.wk-dd{
  font-weight:700;
  white-space:nowrap
}

.wk-mo{
  font-weight:500;
  color:var(--ink-2);
  white-space:nowrap
}

/* Three lines, .5rem apart (owner, 2026-11-02): the title, the place, then the type, details and styles, .75rem
   apart, whose wrapped rows keep the same gap. */

.wk-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:.5rem
}

.card-title{
  margin:0;
  font-size:1.125rem;
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.015em;
  overflow-wrap:anywhere;
  text-wrap:pretty
}

.card-title a{
  color:var(--ink);
  text-decoration:none
}

.card-title .yr{
  color:var(--ink-2);
  font-weight:500;
  font-variant-numeric:tabular-nums
}

.card-title a::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  border-radius:inherit
}

.card:hover .card-title a{
  text-decoration:underline;
  text-decoration-thickness:.08em
}

.place{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:0;
  color:var(--ink-2);
  font-size:1rem;
  font-weight:400;
  line-height:1.35;
  overflow-wrap:anywhere
}

.cflag{
  display:inline-block;
  width:1.25rem;
  height:1.25rem;
  flex:none;
  border-radius:50%;
  vertical-align:-.25em
}

.where .cflag{
  margin-right:.5rem
}

.card-aside{
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem .75rem;
  color:var(--ink-2);
  font-size:1rem;
  font-weight:400;
  line-height:1.35
}

.card-aside .type{
  display:inline-flex;
  align-items:center;
  gap:.5rem
}

/* Every icon on a festival's details line is a round badge the size of its country's flag, so they all line up (owner,
   2026-11-01), with the Key information icons. The deeper clay disc and a 1rem glyph make it look as big as the flag,
   which a paler disc did not (owner, 2026-11-02). */

.mi{
  display:grid;
  place-items:center;
  flex:none;
  width:1.25rem;
  height:1.25rem;
  border-radius:50%;
  background:var(--pink-2);
  color:var(--green-d)
}

.card-aside .mi .ic{
  width:1rem;
  height:1rem;
  color:var(--green-d);
  stroke-width:2
}

.card-aside .status-tag{
  display:inline-flex;
  align-items:center;
  min-height:1.75rem;
  padding:.125rem .75rem;
  border-radius:var(--r-pill);
  background:var(--pink-2);
  color:var(--ink);
  font-weight:700
}

.edition{
  color:var(--ink-2);
  font-weight:500
}

.flag{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  color:var(--ink-2)
}

.card-aside .styles{
  display:inline-flex;
  align-items:flex-start;
  gap:.5rem
}

.card-aside .styles .mi{
  margin-top:.05rem
}

.stickers{
  list-style:none;
  margin:0;
  padding:0;
  color:var(--ink-2);
  font-size:1rem;
  line-height:1.35
}

/* The styles as plain text, "Lindy Hop, Balboa, Blues", not badges (owner, 2026-11-02). */

.stickers li{
  display:inline
}

.stickers li:not(:last-child)::after{
  content:", "
}

.card-acts{
  display:flex;
  align-items:center;
  justify-self:start;
  gap:.5rem
}

/* The card's buttons are black (owner, 2026-11-01) */

.go{
  display:inline-flex;
  align-items:center;
  gap:.375rem;
  min-height:2.5rem;
  padding:0 1rem;
  border-radius:var(--r-pill);
  background:var(--wash);
  color:var(--ink);
  font-size:1rem;
  line-height:1;
  white-space:nowrap
}

.go .ic{
  width:1rem;
  height:1rem
}

.card:hover .go{
  background:var(--cta);
  color:var(--white)
}

.card.is-past{
  --fest:rgb(42 32 28 / .35)
}

/* Narrow cards (phones): the buttons centred under the details (owner, 2026-11-02), "See details" down to its arrow
   (owner, 2026-11-01 and 11-02) */

/* ... and the year always on its own line (owner, 2026-11-02) */

@container (max-width:33.99rem){
  .card-title .yr{
    display:block
  }

  .card>.card-acts{
    justify-self:center;
    margin-top:-.25rem
  }

  .card .go{
    width:2.5rem;
    padding:0;
    justify-content:center
  }

  .card .go-t{
    display:none
  }

  .card .go .ic{
    width:1.25rem;
    height:1.25rem
  }
}

@container (min-width:34rem){
  .grp-h{
    gap:1.25rem;
    padding:.5rem 1rem
  }

  .card{
    grid-template-columns:var(--col) minmax(0,1fr);
    gap:1.25rem;
    align-items:center;
    padding:1.125rem 1rem
  }

  .card>*{
    align-self:center
  }

  .card>.card-acts{
    grid-column:2
  }

  .wk-when{
    display:block
  }

  .wk-date{
    margin-top:.5rem
  }
}

@container (min-width:40rem){
  .card{
    grid-template-columns:var(--col) minmax(0,1fr) auto
  }

  .card>.card-acts{
    grid-column:auto
  }
}

@container (min-width:48rem){
  .grp-h{
    gap:1.75rem;
    padding:.5rem 1.5rem
  }

  .card{
    gap:1.75rem;
    padding:1.25rem 1.5rem
  }

  .grp-cards>.card+.card::before{
    left:1.5rem;
    right:1.5rem
  }

  .card-title{
    font-size:1.2375rem
  }
}

/* Phones keep the week's day letters and each festival's seven day dots, its days lit, as on a computer (owner,
   2026-11-02): the dots sit above the dates, under the week bar's letters. */

@media (max-width:39.99em){
  .grp-h{
    display:flex;
    align-items:center;
    gap:.75rem;
    padding:.625rem .75rem .625rem 1rem
  }

  .grp-t{
    white-space:nowrap
  }

  .wk-date{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:baseline;
    gap:0 .5rem;
    margin-top:0
  }
}

@media (min-width:64em){
  .month{
    --mt:4rem;
    margin:0 0 2.5rem;
    padding:0
  }
}

/* ---------- Edition page ---------- */

/* The final design (2026-10-31, Key information 2026-11-01): the title, the summary and the actions on the page
   itself, then Key information as one list on a sage card, one fact a line: a round terracotta icon, a grey key and a
   bold value, all at 1rem. A rail beside them from 80em, set off by a rule. */

.fest-head{
  padding:.25rem 0 1rem
}

.fest-head .crumbs{
  margin:0 0 2rem
}

.fest-head .crumbs a{
  font-weight:400;
  color:var(--ink-2);
  text-decoration:none
}

.fest-head .crumbs a:hover{
  color:var(--ink);
  text-decoration:underline
}

.fest-head h1{
  max-width:14em;
  margin:1.25rem 0 0;
  line-height:1.02
}

/* On a phone a hero breathes: 4rem between its breadcrumb and its title (owner, 2026-11-04) */

@media (max-width:39.99em){
  .page-head .crumbs,.hp-hub .crumbs,.fest-head .crumbs{
    margin-bottom:4rem
  }

  .page-head h1,.hp-hub h1,.fest-head h1{
    margin-top:0
  }
}

.fest-sum{
  max-width:34rem;
  margin:1.25rem 0 0;
  font-size:1rem;
  line-height:1.55;
  color:var(--ink-2);
  text-wrap:pretty
}

.fest-acts{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:.75rem;
  margin-top:2rem
}

.fest-acts .btn{
  flex-wrap:nowrap;
  white-space:nowrap
}

/* "Add to calendar": a menu that opens without JavaScript */

.cal-menu{
  position:relative
}

.cal-menu>summary{
  list-style:none
}

.cal-menu>summary::-webkit-details-marker{
  display:none
}

.cal-menu[open]>summary{
  background:var(--wash-2)
}

.cal-menu[open] .chev{
  transform:rotate(180deg)
}

.cal-pop{
  position:absolute;
  z-index:20;
  top:calc(100% + .5rem);
  left:0;
  width:19rem;
  max-width:calc(100vw - 2 * var(--gutter));
  padding:.5rem;
  border:1px solid var(--line);
  border-radius:var(--r-m);
  background:var(--white);
  box-shadow:0 24px 48px -20px rgb(42 32 28 / .35)
}

.cal-item{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-height:2.75rem;
  padding:.5rem .875rem;
  border-radius:.625rem;
  color:var(--ink);
  text-decoration:none
}

.cal-item:hover{
  background:var(--mint);
  color:var(--ink)
}

.cal-pop p{
  margin:.25rem .875rem .5rem;
  color:var(--ink-2)
}

.brand-logo{
  width:1.25rem;
  height:1.25rem;
  flex:none
}

.fest-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0 2.5rem;
  align-items:start
}

.facts{
  min-width:0;
  padding-top:2.5rem
}

.facts .notice{
  margin-top:1.5rem
}

.facts .notice p,.fest-community p{
  max-width:var(--measure);
  text-wrap:pretty
}

.facts .prose{
  margin-top:1.5rem
}

.kinfo{
  padding:1.5rem;
  border-radius:var(--r-l);
  background:#EEF3EB
}

.kinfo>h2{
  margin:0 0 1.125rem .25rem;
  font-size:1.125rem;
  letter-spacing:-.01em
}

.k-list{
  margin:0;
  padding:0 1.25rem;
  border-radius:1.25rem;
  background:var(--white)
}

.k-row{
  display:grid;
  grid-template-columns:10.5rem minmax(0,1fr);
  align-items:center;
  gap:1rem;
  min-height:4rem;
  margin:0;
  padding:.625rem 0;
  border-top:1px solid var(--line)
}

.k-row:first-child{
  border-top:0
}

.k-row dt{
  display:flex;
  align-items:center;
  gap:.875rem;
  margin:0;
  line-height:1.4;
  color:var(--ink-2)
}

.k-ic{
  display:grid;
  place-items:center;
  flex:none;
  width:2.5rem;
  height:2.5rem;
  border-radius:50%;
  background:var(--pink);
  color:var(--green-d)
}

.k-ic .ic{
  width:1.375rem;
  height:1.375rem;
  stroke-width:1.7
}

.k-row dd,.ql-row dd{
  min-width:0;
  margin:0;
  font-family:var(--font-bold);
  font-size:1rem;
  font-weight:600;
  line-height:1.4;
  color:var(--ink);
  overflow-wrap:anywhere
}

.k-row dd time,.ql-row dd time{
  white-space:nowrap
}

.k-row dd a,.ql-row dd a{
  color:var(--ink)
}

.k-names{
  display:inline;
  margin:0;
  padding:0;
  list-style:none
}

.k-names li{
  display:inline
}

.k-names li:not(:last-child)::after{
  content:", "
}

.k-pills{
  display:flex;
  flex-wrap:wrap;
  gap:.375rem;
  margin:0;
  padding:0;
  list-style:none
}

.k-pills li{
  display:inline-flex;
  align-items:center;
  min-height:2rem;
  padding:0 .875rem;
  border-radius:var(--r-pill);
  background:var(--wash)
}

.k-city{
  display:inline-flex;
  align-items:center;
  gap:.5rem
}

.k-sub{
  display:block;
  font-family:var(--font);
  font-weight:400;
  color:var(--ink-2)
}

.tba{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:var(--font);
  font-weight:400;
  color:var(--ink-2)
}

.k-ring{
  flex:none;
  width:.75rem;
  height:.75rem;
  border:2px solid var(--ink-2);
  border-radius:50%
}

.k-map{
  display:flex;
  align-items:center;
  gap:.375rem;
  min-height:2.75rem;
  font-family:var(--font);
  font-weight:400
}

.k-map .ic{
  width:1.125rem;
  height:1.125rem
}

.k-note{
  display:flex;
  align-items:flex-start;
  gap:.625rem;
  margin:1rem .25rem 0;
  color:var(--ink-2);
  text-wrap:pretty
}

.k-note .ic{
  margin-top:.0625rem
}

/* On a phone each value sits under its key, beside a smaller 2rem icon (owner, 2026-11-02). */

@media (max-width:39.99em){
  .kinfo{
    padding:1.25rem 1rem
  }

  .k-list{
    padding:0 1rem
  }

  .k-row{
    grid-template-columns:minmax(0,1fr);
    gap:0
  }

  .k-row dd{
    margin-top:-.25rem;
    padding-left:2.875rem
  }

  .k-row .k-ic{
    width:2rem;
    height:2rem
  }

  .k-row .k-ic .ic{
    width:1.125rem;
    height:1.125rem
  }
}

/* Section titles in the warm brown of the filter labels and footer headings, lighter than the text (owner, 2026-11-01);
   the page's name and the festivals' names stay espresso */

.p-festival .main h2:not(.sr-only),.p-festival .main h2>a{
  color:var(--ink-2)
}

.fest-rail{
  display:grid;
  align-content:start;
  min-width:0;
  padding-top:2.5rem
}

.rail-card{
  padding:1.25rem 0;
  border-top:1px solid var(--line)
}

.rail-card:first-child{
  padding-top:.25rem;
  border-top:0
}

.rail-card h2{
  margin:0 0 .5rem;
  font-family:var(--font);
  font-size:1rem;
  font-weight:400;
  letter-spacing:0
}

.rail-card h2 a{
  color:var(--ink)
}

.rail-card p{
  margin:0
}

.rail-card .cal-foot{
  margin-top:.625rem
}

.rail-card .series-link{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  font-weight:700
}

.btn-row{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem
}

.btn-row .btn{
  width:100%;
  padding-inline:.75rem
}

.mini-cal{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
  text-align:center;
  font-variant-numeric:tabular-nums
}

.mini-cal th{
  padding:.25rem 0;
  font-weight:600;
  color:var(--ink-2)
}

.mini-cal td{
  padding:.125rem
}

.mini-cal td span{
  display:grid;
  place-items:center;
  height:2.125rem;
  border-radius:var(--r-pill)
}

.mini-cal td.on span{
  background:var(--hl);
  color:var(--white);
  font-weight:700
}

.rail-links{
  list-style:none;
  margin:0;
  padding:0;
  display:grid
}

.rail-links li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  border-top:1px solid var(--line)
}

.rail-links li:first-child{
  border-top:0
}

.rail-links a{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  min-height:2.75rem;
  font-weight:700
}

.rail-links .n{
  color:var(--ink-2);
  font-variant-numeric:tabular-nums
}

.prose{
  max-width:var(--measure);
  font-size:1.0625rem;
  line-height:1.65;
  text-wrap:pretty
}

.prose h2{
  font-size:clamp(1.35rem,1.17rem + .72vw,1.6875rem);
  margin:1.75em 0 .5em
}

.prose h2:first-child{
  margin-top:0
}

.prose .lede-l{
  font-size:1.1875rem;
  line-height:1.55
}

.related{
  margin:2.5rem 0 0
}

.related h2{
  font-size:clamp(1.35rem,1.17rem + .81vw,1.8rem)
}

.related .cards{
  margin-bottom:1.25rem
}

.related>p{
  margin:0 0 .5rem;
  font-weight:500
}

.related>p a{
  font-weight:700
}

.related>.rel-more{
  display:flex;
  justify-content:center;
  margin:1.5rem 0 0
}

.related>.rel-more a{
  font-weight:400
}

.meta-line{
  display:flex;
  flex-wrap:wrap;
  gap:.25rem 1.5rem;
  align-items:center;
  color:var(--ink-2);
  margin:1.5rem 0 0;
  padding:1rem 0 0;
  border-top:1px solid var(--line)
}

.meta-line a,.meta-line .linkish{
  display:inline-flex;
  align-items:center;
  gap:.4375rem;
  min-height:2.75rem;
  font-weight:700;
  color:var(--ink)
}

.meta-line a:hover,.meta-line .linkish:hover{
  color:var(--green-ink)
}

.fest-rail .meta-line{
  flex-direction:column;
  align-items:flex-start;
  gap:0;
  margin:0;
  padding:1rem 0 0;
  border-top:1px solid var(--line)
}

.fest-community{
  min-width:0;
  padding-top:2.5rem
}

.fest-community>*+*{
  margin-top:2rem
}

.fest-community .c-sec>h2{
  font-size:1.125rem
}

.login-prompt .btn-outline{
  background:var(--white)
}

.login-prompt .btn-outline:hover{
  background:var(--wash)
}

@media (min-width:80em){
  .fest-grid{
    grid-template-columns:minmax(0,1fr) 19rem;
    grid-template-rows:auto 1fr
  }

  .fest-grid>.facts{
    grid-column:1;
    grid-row:1
  }

  .fest-grid>.fest-rail{
    grid-column:2;
    grid-row:1 / span 2;
    align-self:stretch;
    padding-left:2.5rem;
    border-left:1px solid var(--line-2)
  }

  .fest-grid>.fest-community{
    grid-column:1;
    grid-row:2
  }
}

/* ---------- Quick look ---------- */

/* An eye button left of "See details" opens, on click, a popup in the middle of the screen over the dimmed page, with
   the festival's main facts built like Key information: Teachers, Type, Competitions, Dates, City and its website, then
   "See details". A native popover: no JavaScript, it closes with the cross, Escape or a click outside (owner,
   2026-11-01). Flat, a thin outline, no shadow. */

.ql{
  position:relative;
  z-index:2
}

.ql-btn{
  display:grid;
  place-items:center;
  width:2.5rem;
  height:2.5rem;
  padding:0;
  border:0;
  border-radius:50%;
  background:var(--wash);
  color:var(--ink);
  cursor:pointer
}

.ql-btn:hover{
  background:var(--cta);
  color:var(--white)
}

.ql-btn .ic{
  width:1.25rem;
  height:1.25rem
}

.ql-pop{
  position:fixed;
  inset:0;
  width:33rem;
  max-width:calc(100vw - 2rem);
  height:-moz-fit-content;
  height:fit-content;
  max-height:calc(100dvh - 2rem);
  margin:auto;
  padding:1.25rem 1.5rem 1.5rem;
  overflow:auto;
  border:1px solid var(--line-2);
  border-radius:var(--r-l);
  background:var(--white);
  color:var(--ink);
  font-size:1rem;
  line-height:1.5;
  text-align:left;
  cursor:auto;
  display:none
}

.ql-pop:popover-open{
  display:block
}

/* A browser without popovers hides the button (and the panels stay hidden: it drops the rule above) */

@supports not selector(:popover-open){
  .ql{
    display:none
  }
}

.ql-pop::backdrop{
  background:rgb(42 32 28 / .35)
}

.ql-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  margin:0 0 .75rem
}

.ql-t{
  margin:.375rem 0 0;
  font-family:var(--font-title);
  font-size:1.125rem;
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.01em
}

.ql-x{
  display:grid;
  place-items:center;
  flex:none;
  width:2.5rem;
  height:2.5rem;
  margin:0 -.5rem 0 0;
  padding:0;
  border:0;
  border-radius:50%;
  background:var(--wash);
  color:var(--ink);
  cursor:pointer
}

.ql-x:hover{
  background:var(--wash-2)
}

/* The facts with room above and below, and lines only between them (owner, 2026-11-02) */

.ql-dl{
  margin:1rem 0 1.5rem;
  padding:0
}

.ql-row{
  display:grid;
  grid-template-columns:10rem minmax(0,1fr);
  align-items:center;
  gap:.75rem;
  min-height:3.25rem;
  margin:0;
  padding:.5rem 0;
  border-top:1px solid var(--line)
}

.ql-row:first-child{
  border-top:0
}

.ql-row .d-short{
  display:none
}

.ql-row dt{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin:0;
  color:var(--ink-2)
}

.ql-row .k-ic{
  width:2.25rem;
  height:2.25rem
}

.ql-row .k-ic .ic{
  width:1.25rem;
  height:1.25rem
}

.ql-yes{
  display:flex;
  align-items:center;
  gap:.5rem
}

.ql-yes .ic{
  color:var(--green-d)
}

.ql-url{
  display:inline-flex;
  align-items:center;
  gap:.375rem;
  max-width:100%
}

.ql-url .ic{
  width:1rem;
  height:1rem
}

.ql-go{
  display:flex;
  width:-moz-fit-content;
  width:fit-content;
  margin:0 auto;
  font-weight:400
}

@media (max-width:39.99em){
  .ql-pop{
    padding:1rem 1.25rem 1.25rem
  }

  .ql-row{
    grid-template-columns:minmax(0,1fr);
    gap:0
  }

  .ql-row dd{
    margin-top:-.375rem;
    padding-left:3rem
  }

  .ql-row .d-long{
    display:none
  }

  .ql-row .d-short{
    display:inline
  }
}

/* ---------- Home background ---------- */

/* The white page warming to clay white, with the style board's fine grain over it in warm brown rather than black, so
   it stays as light and warm as the other pages (owner, 2026-11-01). The grain is a mask on a layer behind the page:
   the filters panel, the cards' tints and the footer keep their own flat colour. */

.p-home{
  position:relative;
  isolation:isolate
}

.p-home::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:#7A4E3C;
  -webkit-mask:var(--grain) repeat;
  mask:var(--grain) repeat
}

/* ---------- Notes ---------- */

/* Hand-drawn arrows with a short note in terracotta, pointing at what to do: the search, the calendar menu. Set
   straight, beside what they point at, on wide screens only. */

.note{
  display:flex;
  align-items:flex-start;
  gap:.375rem;
  margin:0;
  font-size:1rem;
  line-height:1.3;
  color:var(--hl)
}

.note .arrow{
  flex:none;
  width:3rem;
  height:auto;
  fill:none;
  stroke:currentColor;
  stroke-width:2.25;
  stroke-linecap:round;
  stroke-linejoin:round;
  overflow:visible
}

.note-search span{
  padding-top:1.375rem
}

.note-cal{
  align-self:center;
  align-items:center;
  margin-left:.25rem
}

@container (max-width:30.99rem){
  .note-search{
    display:none
  }
}

@media (max-width:63.99em){
  .note{
    display:none
  }
}

/* ---------- Reviews and comments ---------- */

.c-sec{
  padding-top:2rem;
  border-top:1px solid var(--line)
}

.c-sec>h2{
  margin:0 0 1rem
}

.avg{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem 1.25rem;
  margin:0 0 1.25rem;
  padding:1.125rem 1.5rem;
  border-radius:var(--r-l);
  background:var(--mint)
}

.avg .big{
  font-family:var(--font-title);
  font-weight:600;
  font-size:3rem;
  line-height:1;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums
}

.avg .of{
  font-family:var(--font-title);
  font-weight:700;
  font-size:1.25rem
}

.avg .from{
  font-weight:500;
  color:var(--ink)
}

.stars{
  display:inline-flex;
  gap:.125rem;
  color:var(--ink)
}

.stars svg{
  width:1.125rem;
  height:1.125rem;
  flex:none;
  stroke-width:1.5;
  stroke-linejoin:round
}

.stars .on{
  fill:currentColor;
  stroke:currentColor
}

.stars .off{
  fill:none;
  stroke:currentColor;
  opacity:.45
}

.reviews,.comments{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:1rem
}

.review,.comment{
  padding:1.25rem 1.375rem 1.375rem;
  border-radius:var(--r-m);
  background:var(--white);
  border:1px solid var(--line)
}

.review h3{
  margin:0 0 .5rem;
  font-size:1.125rem;
  font-weight:600;
  letter-spacing:-.015em
}

.r-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.25rem 1rem;
  margin:0 0 .75rem;
  color:var(--ink-2);
  font-weight:500
}

.r-meta .nm{
  color:var(--ink);
  font-weight:700
}

.r-rating{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-weight:700;
  color:var(--ink)
}

.r-body{
  text-wrap:pretty
}

.r-body p{
  margin:0 0 .75em
}

.r-body p:last-child{
  margin:0
}

.r-foot{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem 1rem;
  margin-top:.875rem
}

.r-disclose{
  margin:.75rem 0 0;
  color:var(--ink-2)
}

.own{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.5rem;
  margin-top:1rem;
  padding-top:1rem;
  border-top:1px solid var(--line)
}

.own-tag{
  display:inline-flex;
  align-items:center;
  min-height:2rem;
  padding:.1875rem .75rem;
  border-radius:var(--r-pill);
  background:var(--bubble);
  font-weight:700;
  margin-right:auto
}

.own-edit{
  flex-basis:100%;
  order:2
}

.own-edit summary{
  display:inline-flex;
  list-style:none;
  cursor:pointer
}

.own-edit summary::-webkit-details-marker{
  display:none
}

.own-edit[open] summary{
  margin-bottom:1rem
}

.comment .nm{
  display:flex;
  align-items:center;
  gap:.625rem;
  margin:0 0 .375rem;
  font-weight:700
}

.comment p:last-child{
  margin-bottom:0
}

.pager{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 1.5rem;
  margin-top:.75rem
}

.pager a{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  font-weight:700
}

.compose{
  margin-top:1.5rem;
  padding:1.5rem 1.25rem;
  border-radius:var(--r-l);
  background:var(--butter)
}

.compose>h3{
  margin:0 0 .375rem;
  font-family:var(--font-title);
  font-size:1.2375rem;
  font-weight:600;
  letter-spacing:-.02em
}

.compose>p{
  margin:0 0 1.25rem;
  color:var(--ink)
}

@media (min-width:64em){
  .compose{
    padding:1.75rem 1.75rem 2rem
  }
}

.empty-line{
  margin:0 0 1rem;
  color:var(--ink-2);
  font-weight:500
}

.login-prompt{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.75rem 1.25rem;
  margin-top:1.5rem;
  padding:1.125rem 1.5rem;
  border-radius:var(--r-l);
  background:var(--butter)
}

.login-prompt p{
  margin:0;
  font-weight:600
}

.login-prompt .btns{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem
}

.withdraw{
  margin-top:2rem
}

/* ---------- Forms ---------- */

/* The honeypots (invisible_captcha, config/initializers/invisible_captcha.rb): the gem hides each one's <div
   class="website_1730000000"> with an inline <style>, which the Content-Security-Policy blocks, so this does. */

div[class^="website_"],div[class^="url_"],div[class^="subject_"]{
  display:none !important
}

.form{
  display:grid;
  gap:1.25rem;
  margin:0
}

.field-g{
  display:grid;
  gap:.5rem;
  min-width:0;
  align-content:start
}

.label,.field-g>label{
  display:block;
  margin:0;
  font-weight:700;
  font-size:1.0625rem;
  line-height:1.3;
  color:var(--ink)
}

.label .opt,.fset>legend .opt{
  font-weight:500;
  color:var(--ink-2)
}

.field-g abbr[title]{
  text-decoration:none;
  color:var(--ink-2)
}

/* Fields edged in a light beige that sits with the palette (owner, 2026-11-01); the edge darkens under the pointer and
   turns espresso with a soft terracotta halo when the field has the focus */

.input{
  display:block;
  width:100%;
  min-height:3rem;
  margin:0;
  padding:.625rem 1rem;
  border:1.5px solid var(--field);
  border-radius:.75rem;
  background:var(--white);
  color:var(--ink);
  font-size:1.0625rem;
  line-height:1.4
}

.input::-moz-placeholder{
  color:var(--ink-2)
}

.input::placeholder{
  color:var(--ink-2)
}

.input:hover{
  border-color:var(--field-hover)
}

.input:focus,.input:focus-visible{
  border-color:var(--ink);
  outline:3px solid rgb(169 71 45 / .28);
  outline-offset:0
}

.input-short{
  max-width:16rem
}

textarea.input{
  min-height:8.5rem;
  resize:vertical
}

.select-wrap{
  position:relative;
  display:block
}

select.input{
  -moz-appearance:none;
       appearance:none;
  -webkit-appearance:none;
  padding-right:3rem;
  cursor:pointer
}

.select-wrap .ic{
  position:absolute;
  right:1rem;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none
}

.fhint{
  margin:0;
  color:var(--ink-2);
  font-size:1rem;
  line-height:1.45
}

.field-g .error{
  margin:0;
  color:#9B2C1F;
  font-weight:700
}

.fset{
  border:0;
  margin:0;
  padding:0;
  min-width:0
}

.fset>legend{
  float:left;
  width:100%;
  padding:0;
  margin:0 0 .625rem;
  font-weight:700;
  font-size:1.0625rem;
  line-height:1.3;
  color:var(--ink)
}

.fset>legend+*{
  clear:both
}

.fset>.fhint{
  margin-top:.625rem
}

.frow{
  display:grid;
  gap:1.25rem 1rem;
  grid-template-columns:repeat(auto-fit,minmax(min(14rem,100%),1fr))
}

.fcard{
  padding:1.5rem 1.25rem;
  border-radius:var(--r-l);
  background:var(--white);
  border:1px solid var(--line)
}

.fcard>*+*{
  margin-top:1.25rem
}

.fcard>h2{
  display:flex;
  align-items:center;
  gap:.75rem;
  margin:0;
  font-size:1.2375rem;
  letter-spacing:-.02em
}

/* Under a section's title, two lines on what it is for and its rules (owner, 2026-11-02) */

.fcard>h2+.fsub{
  margin-top:.5rem
}

.fsub{
  margin:0;
  color:var(--ink-2);
  font-size:1rem;
  line-height:1.5
}

.step{
  display:inline-grid;
  place-items:center;
  width:2.25rem;
  height:2.25rem;
  flex:none;
  border-radius:50%;
  background:var(--pink-2);
  color:var(--ink);
  font-family:var(--font);
  font-size:1rem;
  font-weight:600;
  letter-spacing:0
}

@media (min-width:64em){
  .fcard{
    padding:2rem 2rem 2.25rem
  }
}

.factions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.75rem 1.25rem
}

.factions p{
  margin:0
}

/* The form pages (owner, 2026-11-02): the notes above the form, in a row from 40em; the steps (Sign in) on one line */

.form-layout{
  display:grid;
  gap:1.5rem
}

.aside{
  display:grid;
  gap:1rem
}

@media (min-width:40em){
  .aside{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }

  .aside>.aside-card,.aside>.dev-tool{
    grid-column:1 / -1
  }

  /* The steps' titles on one line, each number centred above its title, joined by the trail (owner, 2026-11-02, 11-04) */

  .aside .tl-mini{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(0,1fr);
    gap:1.5rem
  }

  .aside .tl-mini>li{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:.75rem;
    padding:0;
    text-align:center
  }

  .aside .tl-mini>li::before{
    top:calc(1.125rem - 1.5px);
    bottom:auto;
    left:calc(50% + 1.625rem);
    right:calc(-50% + .125rem);
    border:0;
    border-top:3px dotted var(--trail)
  }

  .aside .tl-mini>li.done::before{
    border-top-style:solid;
    border-color:var(--green)
  }
}

/* The form's button in the middle, with nothing announced under it: the steps above say what comes next (owner, 2026-11-02) */

.form-layout .factions{
  justify-content:center
}

.aside-card{
  padding:1.5rem 1.5rem 1.75rem;
  border-radius:var(--r-l);
  background:var(--butter)
}

.aside-card h2{
  margin:0 0 1rem;
  font-size:1.2375rem
}

.aside-card p:last-child{
  margin-bottom:0
}

.change-note{
  display:flex;
  align-items:flex-start;
  gap:.875rem;
  padding:1rem 1.25rem;
  border-radius:var(--r-m);
  background:var(--mint)
}

.change-note .ic{
  width:1.5rem;
  height:1.5rem;
  margin-top:.0625rem
}

.change-note p{
  margin:0
}

/* ---------- Account panels ---------- */

/* The account pages (sign in, the code, Edit my festivals, My submissions) sit directly on the page, with no box
   around them (owner, 2026-11-02) */

.panel{
  padding:0;
  border:0;
  border-radius:0;
  background:none
}

.panel>*{
  margin-bottom:0
}

.panel>*+*{
  margin-top:1.25rem
}

.panel-links{
  display:grid;
  gap:.125rem
}

.panel-links p{
  margin:0
}

.panel-links a{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  font-weight:700
}

/* Proposal forms (owner, 2026-10-25): sections sit on the page, a dashed border around each; fields and pills white.
   The border is thin and in the fields' own light brown (owner, 2026-11-02). */

.form .fcard{
  background:transparent;
  border:1px dashed var(--field-soft)
}

.form .fcard .input{
  background:var(--white)
}

.form .chip input:not(:checked)+.face{
  background:var(--white)
}

.req{
  color:#A4262C;
  font-weight:600
}

/* "How it works": a small timeline, the current step dark, the next ones muted */

/* The trail between the steps: terracotta dots, solid once a step is done (owner, 2026-11-02) */

.tl-mini{
  --trail:color-mix(in oklab,var(--hl) 55%,transparent);
  list-style:none;
  margin:0;
  padding:0
}

.tl-mini>li{
  position:relative;
  display:flex;
  gap:.875rem;
  align-items:center;
  padding:0 0 1.5rem;
  color:var(--ink-2)
}

.tl-mini>li:last-child{
  padding-bottom:0
}

.tl-mini>li::before{
  content:"";
  position:absolute;
  left:calc(1.125rem - 1.5px);
  top:2.75rem;
  bottom:.5rem;
  border-left:3px dotted var(--trail)
}

.tl-mini>li:last-child::before{
  display:none
}

.tl-mini .tl-dot{
  flex:none;
  display:grid;
  place-items:center;
  width:2.25rem;
  height:2.25rem;
  border-radius:50%;
  border:2px solid var(--line-2);
  background:var(--white);
  font-weight:600
}

.tl-mini strong{
  display:block
}

.tl-mini [aria-current]{
  color:var(--ink)
}

.tl-mini [aria-current] .tl-dot{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--white)
}

.tl-mini [aria-current] strong{
  font-size:1.125rem
}

/* A step already done shows a green tick; on Sign in with a proposal waiting, the steps sit above the panel
   (owner, 2026-11-02) */

.tl-mini .done .tl-dot{
  background:var(--green);
  border-color:var(--green);
  color:var(--white)
}

.tl-mini .done .tl-dot .ic{
  width:1.125rem;
  height:1.125rem
}

.tl-mini>li.done::before{
  border-style:solid;
  border-color:var(--green)
}

/* ... and, like the panel, directly on the page (owner, 2026-11-02) */

.aside-steps .aside-card{
  padding:0;
  border-radius:0;
  background:none
}

/* "Your festival is submitted": one centred vertical timeline, the current step framed */

.tl-wrap{
  max-width:44rem;
  margin:0 auto
}

.tl-head{
  text-align:center;
  margin:0 0 2.5rem
}

.tl-head h1{
  margin:.5rem 0 .75rem
}

.tl-head .lede{
  margin:0 auto
}

.timeline{
  list-style:none;
  margin:0;
  padding:0
}

.timeline>li{
  position:relative;
  padding:0 0 2.5rem 4.25rem
}

.timeline>li:last-child{
  padding-bottom:0
}

.timeline>li::before{
  content:"";
  position:absolute;
  left:1.4375rem;
  top:3rem;
  bottom:.25rem;
  border-left:3px solid rgb(18 18 18 / .16)
}

.timeline>li:last-child::before{
  display:none
}

.timeline>li.done::before{
  border-left-color:var(--green)
}

.timeline .tl-dot{
  position:absolute;
  left:0;
  top:0;
  display:grid;
  place-items:center;
  width:3rem;
  height:3rem;
  border-radius:50%;
  border:3px solid var(--line-2);
  background:var(--white);
  font-family:var(--font-title);
  font-weight:600;
  font-size:1.25rem
}

.timeline .tl-dot .ic{
  width:1.5rem;
  height:1.5rem;
  stroke-width:2.75
}

.timeline .done .tl-dot{
  background:var(--green);
  border-color:var(--green);
  color:var(--white)
}

.timeline [aria-current] .tl-dot{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--white)
}

.tl-step{
  margin:0;
  font-weight:700;
  color:var(--ink-2)
}

.timeline h2{
  margin:.125rem 0 .75rem;
  font-family:var(--font-title);
  font-weight:600;
  font-size:1.35rem;
  letter-spacing:-.02em;
  line-height:1.15
}

.timeline p{
  margin:0
}

.tl-body{
  display:grid;
  gap:.875rem
}

.later{
  color:var(--ink-2)
}

.now-card{
  display:grid;
  gap:1.25rem;
  padding:1.75rem 1.5rem 2rem;
  border-radius:var(--r-l);
  background:var(--white);
  border:2px solid var(--ink)
}

.pick{
  display:grid;
  gap:.75rem;
  grid-template-columns:repeat(auto-fit,minmax(min(15rem,100%),1fr));
  align-items:center;
  padding-top:.625rem
}

.pick .btn{
  width:100%
}

.pick-main{
  position:relative
}

.pick-main .btn-google{
  border:2px solid var(--green)
}

.easiest{
  position:absolute;
  z-index:1;
  top:-1.0625rem;
  right:1rem;
  display:inline-flex;
  align-items:center;
  gap:.3125rem;
  padding:.125rem .75rem .125rem .5625rem;
  border-radius:var(--r-pill);
  background:var(--strong-3);
  color:var(--green-deep);
  font-weight:600;
  font-size:1rem;
  line-height:1.5;
  transform:rotate(-2deg)
}

.easiest .ic{
  width:1rem;
  height:1rem;
  fill:currentColor
}

.fest-mini{
  display:grid;
  gap:.25rem;
  justify-items:start;
  padding:1rem 1.25rem;
  border-radius:var(--r-m);
  background:var(--white);
  border:1px solid var(--line)
}

.fest-mini .t{
  font-family:var(--font-title);
  font-weight:600;
  font-size:1.06875rem
}

details.change summary{
  cursor:pointer;
  font-weight:700;
  min-height:2.75rem;
  display:flex;
  align-items:center
}

.pick .btn{
  flex-wrap:nowrap;
  white-space:nowrap;
  padding-inline:1rem
}

@media (max-width:40em){
  .timeline>li{
    padding-left:3.25rem
  }

  .timeline>li::before{
    left:1.1875rem;
    top:2.5rem
  }

  .timeline .tl-dot{
    width:2.5rem;
    height:2.5rem;
    font-size:1.125rem
  }

  .now-card{
    padding:1.5rem 1rem 1.75rem
  }
}

/* "Edit my festivals" */

.mine{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:.75rem;
  container-type:inline-size
}

.mine .sub-row h2{
  margin:0 0 .125rem;
  font-family:var(--font-title);
  font-weight:600;
  font-size:1.06875rem
}

.mine .sub-row p{
  margin:0;
  color:var(--ink-2);
  font-weight:500
}

.row-acts{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
  align-items:center
}

.why{
  margin:.25rem 0 0
}

.signed{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 1rem;
  align-items:center;
  margin:.75rem 0 0
}

@container (min-width:44rem){
  .mine .sub-row{
    grid-template-columns:minmax(0,1fr) auto auto
  }
}

/* Signing in without a password: Google's own button (white, the coloured G), "or", the 6-digit code field */

.btn-google{
  background:var(--white);
  color:#1F1F1F;
  border:1px solid #747775;
  gap:.75rem
}

.btn-google:hover{
  background:#F2F2F2;
  color:#1F1F1F
}

.btn-google .g{
  width:1.25rem;
  height:1.25rem
}

.google-form{
  margin-bottom:0
}

/* In a one-panel page (sign in, the code, Edit my festivals), the buttons in the middle and Google's full width
   (owner, 2026-11-02) */

.narrow .btn-google{
  display:flex;
  width:100%
}

.narrow .factions{
  justify-content:center
}

.or{
  display:flex;
  align-items:center;
  gap:1rem;
  color:var(--ink-2);
  font-weight:700
}

.or::before,.or::after{
  content:"";
  flex:1;
  border-top:1px solid var(--line-2)
}

.otp{
  font-family:var(--font-mono);
  font-size:2rem;
  font-weight:700;
  letter-spacing:.45em;
  text-align:center;
  max-width:17rem;
  padding-inline:1rem .4rem
}

.otp[aria-invalid="true"],.otp-box[aria-invalid="true"]{
  border-color:#A4262C
}

/* The code's six boxes (code_boxes.js), which replace .otp when JavaScript runs */

.otp-boxes{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:.5rem
}

.otp-box{
  min-height:3.75rem;
  padding:0;
  font-family:var(--font-title);
  font-size:1.5rem;
  font-weight:600;
  line-height:1;
  text-align:center;
  font-variant-numeric:tabular-nums
}

.linkish{
  background:none;
  border:0;
  padding:0;
  font:inherit;
  font-weight:700;
  text-decoration:underline;
  cursor:pointer;
  min-height:2.75rem;
  color:var(--ink)
}

.panel.wide{
  max-width:none
}

.big-ic{
  display:grid;
  place-items:center;
  width:4rem;
  height:4rem;
  border-radius:50%;
  background:var(--green);
  color:var(--white)
}

.big-ic .ic{
  width:2rem;
  height:2rem;
  stroke-width:2
}

.back{
  display:inline-flex;
  align-items:center;
  gap:.375rem;
  min-height:2.75rem;
  font-weight:700
}

.status{
  display:inline-flex;
  align-items:center;
  gap:.4375rem;
  min-height:2.25rem;
  padding:.25rem .875rem .25rem .625rem;
  border-radius:var(--r-pill);
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
  color:var(--ink)
}

.status .ic{
  width:1.125rem;
  height:1.125rem;
  stroke-width:2
}

.st-wait{
  background:var(--lavender-2)
}

.st-ok{
  background:var(--strong-3);
  color:var(--green-deep)
}

.st-no{
  background:var(--pink-2)
}

.sub-wrap,.kv-wrap{
  container-type:inline-size
}

.sub-list{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:.625rem
}

.sub-row{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:.5rem 1.25rem;
  align-items:center;
  padding:1rem 1.25rem;
  border-radius:var(--r-m);
  background:var(--white);
  border:1px solid var(--line)
}

.sub-row h2{
  margin:0 0 .125rem;
  font-size:1.06875rem
}

.sub-row p{
  margin:0;
  color:var(--ink-2);
  font-weight:500
}

@container (min-width:30rem){
  .sub-row{
    grid-template-columns:minmax(0,1fr) auto
  }
}

.kv{
  display:grid;
  margin:0;
  border-radius:var(--r-m);
  background:var(--white);
  border:1px solid var(--line);
  overflow:hidden
}

.kv>div{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:.125rem 1.5rem;
  padding:.875rem 1.25rem
}

.kv>div+div{
  border-top:1px solid var(--line)
}

.kv dt{
  font-weight:600;
  color:var(--ink-2)
}

.kv dd{
  margin:0;
  font-weight:600;
  overflow-wrap:anywhere;
  white-space:pre-line
}

@container (min-width:30rem){
  .kv>div{
    grid-template-columns:minmax(0,12rem) minmax(0,1fr)
  }
}

.prose .kv-wrap{
  margin:0 0 1.5em
}

.code{
  margin:0;
  padding:1.125rem 1.25rem;
  border-radius:var(--r-m);
  background:var(--code-bg);
  color:var(--code-p);
  font-family:var(--font-mono);
  font-size:1rem;
  line-height:1.6;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}

.raw{
  border-radius:var(--r-m);
  background:var(--white);
  border:1px solid var(--line)
}

.raw summary{
  display:flex;
  align-items:center;
  gap:.75rem;
  min-height:3.25rem;
  padding:.5rem 1.25rem;
  font-weight:700;
  cursor:pointer;
  list-style:none
}

.raw summary::-webkit-details-marker{
  display:none
}

.raw summary .ic:last-child{
  margin-left:auto
}

.raw[open] summary .ic:last-child{
  transform:rotate(180deg)
}

.raw .code{
  border-radius:0 0 var(--r-m) var(--r-m)
}

/* ---------- Errors ---------- */

/* The error pages sit directly on the page, with no background (owner, 2026-11-02) */

.err-card{
  --band-2:var(--pink-2);
  display:grid;
  gap:1rem;
  align-content:start;
  width:100%;
  max-width:40rem;
  margin:0 auto
}

.err-card>*{
  margin:0
}

.err-card.band-yellow{
  --band-2:var(--lavender-2)
}

.err-card.band-mint{
  --band-2:var(--mint-2)
}

.err-code{
  font-family:var(--font-title);
  font-weight:600;
  font-size:4.5rem;
  line-height:1;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums
}

.err-week{
  display:flex;
  gap:3px
}

.err-week span{
  width:1.75rem;
  height:1.75rem;
  border-radius:.4375rem;
  background:var(--line)
}

.err-week span.we{
  background:var(--band-2)
}

.err-links{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem
}

/* ---------- Calendar and countries ---------- */

.cal-tiles{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:1rem;
  grid-template-columns:repeat(auto-fill,minmax(min(16rem,100%),1fr))
}

.ctile-m{
  --fest:var(--hl);
  position:relative;
  display:flex;
  flex-direction:column;
  gap:.875rem;
  min-height:12rem;
  padding:1.25rem 1.375rem 1.375rem;
  border-radius:var(--r-l);
  background:var(--tile);
  border:1px solid transparent
}

.t1{
  --tile:var(--y1);
  --strong:var(--strong-1)
}

.t2{
  --tile:var(--y2);
  --strong:var(--strong-3)
}

.ctile-m:hover{
  border-color:rgb(18 18 18 / .45)
}

.ctile-m:focus-within{
  outline:3px solid var(--ring);
  outline-offset:3px
}

.ctile-m h2{
  margin:0;
  font-size:1.35rem;
  letter-spacing:-.02em
}

.ctile-m h2 a{
  color:var(--ink);
  text-decoration:none
}

.ctile-m h2 a:focus-visible{
  outline:none
}

.ctile-m h2 a::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit
}

.ctile-m:hover h2 a{
  text-decoration:underline
}

.ctile-num{
  display:flex;
  align-items:baseline;
  gap:.5rem;
  margin:auto 0 0
}

.ctile-num .num{
  font-family:var(--font-title);
  font-weight:600;
  font-size:3rem;
  line-height:1;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums
}

.ctile-num .num-l{
  font-weight:600
}

.bar{
  display:block;
  width:100%;
  height:.75rem;
  border-radius:var(--r-pill);
  background:rgb(255 255 255 / .85);
  overflow:hidden
}

.bar>rect{
  fill:var(--fest)
}

.ctile-m.zero{
  background:transparent;
  border:1px dashed var(--line-2)
}

/* The month's "See the festivals": an underlined link, not a button (owner, 2026-11-02). */

.ctile-m .go{
  display:block;
  align-self:flex-start;
  min-height:0;
  padding:0;
  border-radius:0;
  background:none;
  color:var(--ink);
  font-weight:600;
  line-height:1.5;
  text-decoration:underline;
  text-decoration-thickness:.08em;
  text-underline-offset:.2em
}

.ctile-m:hover .go{
  color:var(--green-ink)
}

.now-tag{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:.4375rem;
  min-height:2rem;
  padding:.1875rem .75rem;
  border-radius:var(--r-pill);
  background:var(--white);
  font-weight:700
}

.now-tag::before{
  content:"";
  width:.5rem;
  height:.5rem;
  border-radius:50%;
  background:var(--green)
}

.regions{
  display:grid;
  gap:2.5rem
}

.region{
  --band:var(--pink);
  --band-2:var(--pink-2)
}

.region.band-yellow{
  --band:var(--lavender);
  --band-2:var(--lavender-2)
}

.region.band-mint{
  --band:var(--mint);
  --band-2:var(--mint-2)
}

.region-h{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:.25rem 1rem;
  margin:0 0 1rem
}

.region-h h2{
  margin:0
}

.region-h h2 a{
  text-decoration:none
}

.region-h h2 a:hover{
  text-decoration:underline
}

.region-h .count{
  margin:0
}

.ctiles{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:.5rem;
  grid-template-columns:repeat(auto-fill,minmax(min(15.5rem,100%),1fr))
}

/* Country tiles: flat tints, no border (owner, 2026-11-01); the pointer outlines the one under it */

.ctile{
  position:relative;
  display:flex;
  align-items:center;
  gap:.75rem;
  min-height:3.5rem;
  padding:.5rem 1.125rem .5rem .875rem;
  border-radius:var(--r-m);
  background:var(--band)
}

.ctile:hover{
  outline:1.5px solid var(--ink);
  outline-offset:-1.5px
}

.ctile:focus-within{
  outline:3px solid var(--ring);
  outline-offset:3px
}

.ctile .cflag{
  width:1.75rem;
  height:1.75rem
}

.ctile a{
  font-weight:700;
  color:var(--ink);
  text-decoration:none
}

.ctile a:focus-visible{
  outline:none
}

.ctile a::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit
}

.ctile:hover a{
  text-decoration:underline
}

.ctile .n{
  margin-left:auto;
  color:var(--ink-2);
  font-weight:500;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}

/* ---------- Series ---------- */

.past{
  list-style:none;
  margin:0;
  padding:0;
  border-radius:var(--r-m);
  background:var(--white);
  border:1px solid var(--line);
  overflow:hidden
}

.past li{
  position:relative;
  display:grid;
  grid-template-columns:5rem minmax(0,1fr);
  gap:.25rem 1.25rem;
  align-items:center;
  padding:1rem 1.25rem
}

.past li+li{
  border-top:1px solid var(--line)
}

.past li:hover{
  background:var(--cream)
}

.past li:focus-within{
  outline:3px solid var(--ring);
  outline-offset:-3px
}

.yr-big{
  font-family:var(--font-title);
  font-weight:600;
  font-size:2rem;
  line-height:1;
  letter-spacing:-.03em;
  color:var(--ink-2);
  font-variant-numeric:tabular-nums
}

.past h3{
  margin:0 0 .125rem;
  font-family:var(--font-title);
  font-weight:600;
  font-size:1.06875rem
}

.past h3 a{
  text-decoration:none
}

.past h3 a:focus-visible{
  outline:none
}

.past h3 a::after{
  content:"";
  position:absolute;
  inset:0
}

.past li:hover h3 a{
  text-decoration:underline
}

.past p{
  margin:0;
  color:var(--ink-2);
  font-weight:500
}

.sec-gap{
  margin-top:2.5rem
}

.sec-gap>h2{
  margin-bottom:1rem
}

/* ---------- Static pages ---------- */

/* Legal notice and privacy: "On this page" above the text, in the page's 42rem column (owner, 2026-11-02) */

.legal{
  display:grid;
  gap:1.5rem;
  align-items:start
}

.toc{
  padding:1.25rem 1.375rem 1.5rem;
  border-radius:var(--r-l);
  background:var(--butter)
}

.toc h2{
  margin:0 0 .5rem;
  font-family:var(--font);
  font-size:1rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink-2)
}

.toc ol{
  list-style:none;
  margin:0;
  padding:0
}

.toc a{
  display:flex;
  align-items:center;
  min-height:2.75rem;
  font-weight:600
}

.toc p{
  margin:.75rem 0 0
}

.contact-grid{
  display:grid;
  gap:1rem;
  max-width:44rem
}

/* About and Contact: one column in the middle of the page, 42rem wide like Tailwind's max-w-2xl (owner, 2026-11-01),
   now every page without filters (.page) */

.col-2xl{
  max-width:42rem;
  margin-inline:auto
}

.col-2xl .page-head{
  margin-inline:0
}

.col-2xl .prose,.col-2xl .contact-grid{
  max-width:none
}

/* ---------- Footer ---------- */

.site-footer{
  margin-top:2.5rem;
  background:var(--mint)
}

.foot-in{
  max-width:var(--max);
  margin:0 auto;
  padding:2.5rem var(--gutter) 1.5rem
}

.fstrip{
  margin:0 0 2rem;
  padding:1rem 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}

.fstrip ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:0 1.5rem
}

.fstrip a{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  font-size:1.125rem;
  font-weight:700;
  letter-spacing:-.01em;
  text-decoration:none
}

.fstrip a:hover{
  text-decoration:underline
}

.foot-grid{
  display:grid;
  gap:1.75rem;
  grid-template-columns:repeat(2,minmax(0,1fr));
  padding-bottom:1.5rem
}

.f-about{
  grid-column:1/-1
}

.foot-h{
  font-family:var(--font);
  font-size:1rem;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--ink-2);
  margin:0 0 .25rem
}

.foot-grid ul{
  list-style:none;
  margin:0;
  padding:0
}

.foot-grid li a{
  display:inline-flex;
  align-items:center;
  min-height:2.75rem;
  color:var(--ink);
  font-size:1.0625rem;
  font-weight:600;
  text-decoration:none
}

.foot-grid li a:hover{
  text-decoration:underline
}

.foot-note{
  color:var(--ink);
  max-width:30rem
}

.f-about .brand{
  margin-bottom:.75rem
}

.fine{
  border-top:1px solid var(--line);
  padding-top:1.25rem;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem 2rem;
  justify-content:space-between;
  color:var(--ink-2)
}

.fine p{
  margin:0
}

.fine a{
  font-weight:600;
  color:var(--ink)
}

@media (min-width:64em){
  .foot-grid{
    grid-template-columns:2fr 1fr 1fr
  }

  .f-about{
    grid-column:auto
  }

  .foot-grid li a{
    min-height:2.375rem
  }
}

/* ---------- One padding for boxes ---------- */

/* On a computer every box with content inside has 1.5rem of padding all round (owner, 2026-11-02): the filters, page
   heads, notes, form sections, the steps, contents, quick look, reviews, the sign-in prompt, submissions and the
   calendar's months. Buttons, pills, chips and tiles keep their own. */

@media (min-width:64em){
  .sidebar,.page-head,.notice,.change-note,.fcard,.aside-card,.toc,.ql-pop,.avg,.review,.comment,.compose,.login-prompt,.sub-row,.code,.ctile-m{
    padding:1.5rem
  }

  .k-list{
    padding-inline:1.5rem
  }
}

/* ---------- Preferences ---------- */

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    transition:none !important;
    animation:none !important;
    scroll-behavior:auto !important
  }
}

@media (forced-colors:active){
  .card,.chip .face,.sw-track,.mtile,.sidebar,.month,.page-head,.notice,.panel,.fcard,.kinfo,.k-list,.hp-grid li,.go,.ql-pop{
    border:1px solid
  }

  .chip[aria-current] .face,.chip input:checked+.face,.mtile[aria-current],.seg2-btn[aria-current]{
    outline:3px solid Highlight;
    outline-offset:-3px
  }

  .sw[aria-current] .sw-thumb{
    background:Highlight
  }

  .wk-d.on::before,.wk-more{
    forced-color-adjust:none;
    background:CanvasText
  }

  .bar>rect{
    forced-color-adjust:none;
    fill:CanvasText
  }
}

@media print{
  .topbar,.sidebar,.site-footer,.mstrip,.skip{
    display:none
  }

  .page-head,.fest-head{
    background:none
  }
}
