/* BleuBlancRose: the logo is the brand (white heavy italic capitals on the Progress Pride flag).
   The flag appears once, big, on the home page; everything else is black on white so it can breathe. */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }

:root {
  /* flag colours, taken from the logo */
  --red: #ee3427; --orange: #f47f2a; --yellow: #fff200; --green: #5bb947; --blue: #0055a5; --violet: #9e248f;
  --brown: #613915; --sky: #7bc0e9; --pink: #f49ac2;
  --bg: #ffffff; --text: #000000; --muted: #4d4d4d; --line: #dadada; --soft: #f3f3f3;
  --link: #000000;
  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 48px);
  --wide: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #000000; --text: #ffffff; --muted: #b5b5b5; --line: #333333; --soft: #161616; --link: #ffffff; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Archivo", system-ui, sans-serif; font-stretch: 100%; font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 3px; text-decoration-color: var(--pink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--bg); padding: .4rem .7rem; z-index: 10; }

/* Display type speaks like the logo: heavy italic capitals. Body stays upright and calm. */
h1, h2 { font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: 0; margin: 1.6em 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); margin-top: .5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 800; margin: 1.5em 0 .4em; }
p, ul, ol, dl { margin: 0 0 1em; }

/* Header and footer */
.top, main, .bottom { max-width: var(--wide); margin: 0 auto; padding-inline: var(--gutter); }
.top { display: flex; align-items: center; justify-content: space-between; gap: .6rem 2rem; flex-wrap: wrap; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); }
.brand .logo { display: block; width: 48px; height: 48px; }
.brand span { font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .01em; }
.top nav { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1.1rem; font-weight: 600; }
.top nav a { color: var(--text); text-decoration: none; padding-block: .2rem; border-bottom: 3px solid transparent; }
.top nav a:hover { border-bottom-color: var(--pink); }
.langs { display: inline-flex; gap: .6rem; margin-left: .6rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.langs a { font-weight: 500; color: var(--muted); }
.langs a[aria-current] { color: var(--text); font-weight: 800; border-bottom-color: var(--text); }

main { padding-bottom: 4rem; }
main > h1:first-child { margin-top: 1.2rem; }
main > p, main > ul, main > ol, main > dl, main > h2, main > h3, main > blockquote, .prose { max-width: var(--measure); }

.bottom { border-top: 1px solid var(--line); padding-block: 2rem 3rem; display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.5rem; align-items: center; color: var(--muted); font-size: .95rem; }
.bottom .brand { margin: 0; grid-row: span 2; }
.bottom .logo { width: 64px; height: 64px; display: block; }
.bottom p { margin: 0; }
.bottom nav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.bottom nav a { color: var(--muted); }

/* Buttons */
.btn { display: inline-block; font-weight: 800; text-decoration: none; padding: .75rem 1.3rem; background: var(--text); color: var(--bg); border: 2px solid var(--text); }
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
.btn-line { background: transparent; color: var(--text); }
.btn-line:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-white { background: #fff; color: #000; border-color: #fff; }
.btn-line-white { background: transparent; color: #fff; border-color: #fff; }
.btn-white:hover, .btn-line-white:hover { background: var(--pink); border-color: var(--pink); color: #000; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Home: logo as it is (never enlarged beyond its own artwork), the line in the logo's voice, real people on the right */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .6rem clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-top: clamp(1rem, 3vw, 2.5rem); }
.logo-big { display: block; width: clamp(120px, 14vw, 176px); height: auto; margin-bottom: 1.4rem; }
.tagline { font-size: clamp(2.1rem, 3.9vw, 3.3rem); line-height: .95; margin: 0 0 1rem; max-width: 17ch; hyphens: manual; }
.hero .sub { color: var(--muted); max-width: 40ch; margin: 0 0 1.5rem; font-size: 1.1rem; }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, clamp(110px, 12vw, 170px)); gap: 6px; }
.mosaic li { position: relative; overflow: hidden; background: var(--soft); }
.mosaic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic .m2 img { object-position: 50% 30%; }
.mosaic-more { grid-column: 2; margin: .6rem 0 0; font-weight: 600; }
.mosaic span { position: absolute; left: 0; bottom: 0; padding: .2rem .5rem; background: #000; color: #fff; font-size: .78rem; font-weight: 600; }
.mosaic .m0 { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic .m1 { grid-column: 3; grid-row: 1; }
.mosaic .m2 { grid-column: 3; grid-row: 2 / 4; }
.mosaic .m3 { grid-column: 1; grid-row: 3; }
.mosaic .m4 { grid-column: 2; grid-row: 3; }

/* Dates (home + agenda) */
.dates { list-style: none; padding: 0; margin: 0 0 1.2rem; max-width: 880px; }
.dates li { border-top: 1px solid var(--line); }
.dates li:last-child { border-bottom: 1px solid var(--line); }
.dates a { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.2rem; align-items: center; padding: .9rem 0; text-decoration: none; color: var(--text); }
.dates a:hover strong { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--pink); text-underline-offset: .15em; }
.day { display: flex; align-items: baseline; gap: .7rem; line-height: 1; white-space: nowrap; }
.day b { font-style: italic; font-weight: 900; font-size: 2.5rem; min-width: 1.4ch; text-align: right; }
.day span { font-weight: 600; color: var(--muted); font-size: .9rem; }
.what { display: flex; flex-direction: column; gap: .15rem; }
.what strong { font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.what > span { color: var(--muted); font-size: .95rem; }
.next { padding-top: 3.2rem; }
.next h2, .about h2, .join h2, .csd h2, .insta h2 { margin-top: 0; }
.soon { color: var(--muted); }
.badge { display: inline-block; margin-left: .5rem; font-size: .75rem; font-weight: 700; padding: .05rem .5rem; background: var(--pink); color: #000; vertical-align: .15em; }

/* Home: CSD 2025, about, Instagram, join */
.csd { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); padding-top: 4.5rem; align-items: start; }
.csd-text p { max-width: 40ch; }
.csd-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.csd-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.about { padding-top: 4.5rem; }
.insta { padding-top: 4.5rem; }
.insta-grid { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.insta-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.join { margin-top: 4.5rem; margin-inline: calc(50% - 50vw); background: #000; color: #fff; padding: clamp(2.2rem, 6vw, 4.5rem) max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter))); }
.join p { max-width: 54ch; font-size: 1.12rem; }
.join h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.home main { padding-bottom: 0; }
.home .bottom { border-top: 0; }

/* Event page */
.event-head { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; padding: 1rem 0 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); max-width: var(--measure); }
.event-head .day b { font-size: 3.4rem; }
.event-head dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; margin: .3rem 0 0; }
.event-head dt { color: var(--muted); }
.event-head dd { margin: 0; font-weight: 600; }
.meta { color: var(--muted); }
.notice { padding: .7rem 1rem; background: var(--soft); border-left: 4px solid var(--pink); max-width: var(--measure); }

@media (max-width: 820px) {
  .csd { grid-template-columns: 1fr; }
  .langs { margin-left: 0; padding-left: 0; border-left: 0; }
  .bottom { grid-template-columns: 1fr; }
  .bottom .brand { grid-row: auto; }
}
@media (max-width: 480px) {
  .dates a { grid-template-columns: 5.4rem 1fr; gap: .8rem; }
  .day { flex-direction: column; gap: .2rem; align-items: flex-start; }
  .day b { text-align: left; }
  .brand span { display: none; }
}

/* Photos */
.crumb { margin: 0 0 .25rem; color: var(--muted); }
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.album { position: relative; display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); color: #fff; text-decoration: none; }
.album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.album span { position: absolute; inset: auto 0 0 0; padding: 2.5rem .9rem .8rem; background: linear-gradient(transparent, #000c); display: flex; flex-direction: column; font-weight: 700; }
.album small { font-weight: 400; opacity: .9; }
.grid { list-style: none; margin: 1rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.grid::after { content: ""; flex-grow: 1e4; }
.grid li { flex: calc(var(--r) * 200) calc(var(--r) * 200px); min-width: 0; margin: 0; }
.grid a { display: block; border-radius: 4px; overflow: hidden; background: var(--soft); }
.grid img { display: block; width: 100%; height: auto; }
.lb { position: fixed; inset: 0; z-index: 50; background: #000000f2; display: none; align-items: center; justify-content: center; flex-direction: column; }
.lb[open] { display: flex; }
.lb img { max-width: 96vw; max-height: 84vh; object-fit: contain; }
.lb p { color: #eef; margin: .6rem 1rem 0; max-width: 90ch; text-align: center; font-size: .95rem; min-height: 1.4em; }
.lb button { position: absolute; background: #fff2; color: #fff; border: 0; border-radius: 50%; width: 46px; height: 46px; font-size: 26px; line-height: 1; cursor: pointer; }
.lb button:hover, .lb button:focus-visible { background: #fff5; }
.lb .x { top: 14px; right: 14px; } .lb .p { left: 14px; top: 50%; } .lb .n { right: 14px; top: 50%; }
.lb .c { position: absolute; top: 20px; left: 20px; color: #ddd; font-size: .9rem; }
@media (max-width: 600px) { .lb .p, .lb .n { top: auto; bottom: 14px; } }

.form { display: block; width: 100%; max-width: 560px; height: 840px; border: 0; margin: 1rem 0; }

/* Members area and admin */
.login label { display: inline-block; margin-right: .5rem; }
.login input, .login select, main select { font: inherit; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); }
.login input { min-width: 16rem; }
.login input[name=code] { min-width: 9rem; letter-spacing: .25em; font-size: 1.2rem; }
main button { font: inherit; font-weight: 800; padding: .55rem 1.1rem; border: 2px solid var(--text); background: var(--text); color: var(--bg); cursor: pointer; }
main button:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.tablewrap { overflow-x: auto; }
table.data, table.admin { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.data th, table.data td, table.admin th, table.admin td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.admin th, table.data th { color: var(--muted); font-weight: 600; }
.chk { display: inline-block; margin-right: 1rem; }
.chk input { min-width: 0; }
.doc { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.login.inline { display: inline-block; margin-right: .5rem; }
.wide main { max-width: 1400px; }

/* Three ways to take part */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.ways h3 { font-size: 1.3rem; margin-top: 0; }
.ways p { font-size: 1rem; }

/* Mobile menu without JavaScript */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-btn, .langs-m { display: none; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .mosaic-more { grid-column: auto; }
  .mosaic { grid-template-rows: repeat(3, 26vw); }
  .mosaic li:not(.m0) span { display: none; }
  .ways { grid-template-columns: 1fr; gap: .5rem; }
  .top { flex-wrap: nowrap; }
  .top .brand { margin-right: auto; }
  .menu-btn { display: inline-block; font-weight: 800; padding: .45rem .9rem; border: 2px solid var(--text); cursor: pointer; }
  .langs-m { display: inline-flex; margin: 0; padding: 0; border: 0; }
  .menu .langs { display: none; }
  .top { position: relative; }
  .top nav.menu { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; flex-direction: column; gap: 0; }
  .top nav.menu a { padding: .55rem 0; border-bottom: 1px solid var(--line); }
  .menu-toggle:checked ~ nav.menu { display: flex; }
  .menu-toggle:focus-visible + .menu-btn { outline: 3px solid var(--blue); outline-offset: 2px; }
}

/* Activities page */
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 52ch; }
.formats-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 1rem; }
.formats-nav a { text-decoration: none; font-weight: 700; padding: .4rem .8rem; border: 2px solid var(--text); color: var(--text); }
.formats-nav a:hover { background: var(--text); color: var(--bg); }
.format { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: 3.5rem 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: 1rem; }
.format h2 { margin-top: 0; }
.format-text p { max-width: 46ch; }
.format .count { font-weight: 700; margin-bottom: .2rem; }
.format h3 { font-size: .95rem; color: var(--muted); font-weight: 600; margin: 1.2rem 0 .3rem; }
.recent { list-style: none; padding: 0; margin: 0; }
.recent li { border-top: 1px solid var(--line); }
.recent a { display: block; padding: .45rem 0; text-decoration: none; color: var(--text); }
.recent a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }
.recent .d { display: inline-block; min-width: 8.5em; color: var(--muted); font-size: .92rem; }
.format-photos { display: grid; gap: 6px; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(90px, 9vw, 150px); }
.format-photos figure { position: relative; margin: 0; overflow: hidden; background: var(--soft); grid-column: span 3; grid-row: span 2; }
.format-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.format-photos figcaption { position: absolute; left: 0; bottom: 0; max-width: 100%; padding: .2rem .5rem; background: #000; color: #fff; font-size: .75rem; font-weight: 600; }
.format-photos.n2 figure { grid-column: span 3; grid-row: span 3; }
.format-photos.n3 .p0 { grid-column: span 4; grid-row: span 3; }
.format-photos.n3 .p1, .format-photos.n3 .p2 { grid-column: span 2; grid-row: span 3; }
.format-photos.n3 .p1 { grid-row: 1 / span 2; } .format-photos.n3 .p2 { grid-row: 3 / span 1; grid-column: 5 / span 2; }
.format-photos.n3 .p1 { grid-column: 5 / span 2; }
.format-photos.n4 .p0 { grid-column: span 4; grid-row: span 2; }
.format-photos.n4 .p1 { grid-column: span 2; grid-row: span 2; }
.format-photos.n4 .p2 { grid-column: span 2; grid-row: span 2; }
.format-photos.n4 .p3 { grid-column: span 4; grid-row: span 2; }
.actions.after { margin-top: 2rem; }
@media (max-width: 820px) {
  .format { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .format-photos { grid-auto-rows: 22vw; }
  .format-photos figcaption { display: none; }
}

/* Admin: people, dashboard, fees */
.subnav { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-weight: 700; }
.subnav a { color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.subnav a[aria-current] { border-bottom-color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.filters input[type=search] { min-width: 0; width: 12rem; }
.strip { display: inline-flex; gap: 2px; vertical-align: middle; }
.strip i { width: 12px; height: 12px; border: 1.5px solid var(--text); display: inline-block; }
.strip i.p { background: var(--text); }
.strip i.u { background: repeating-linear-gradient(45deg, var(--text) 0 2px, transparent 2px 4px); }
.strip i.o { border-style: dashed; }
.st { font-size: .8rem; font-weight: 700; padding: .05rem .45rem; white-space: nowrap; }
.st-current { background: var(--green); color: #000; }
.st-remind { background: var(--yellow); color: #000; }
.st-late { background: var(--orange); color: #000; }
.st-former { background: var(--soft); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 1rem 0; }
.kpi { display: flex; flex-direction: column; padding: .9rem 1rem; border: 2px solid var(--text); text-decoration: none; color: var(--text); }
.kpi b { font-style: italic; font-weight: 900; font-size: 2.4rem; line-height: 1; }
.kpi span { font-size: .9rem; margin-top: .3rem; }
.kpi.st-current, .kpi.st-remind, .kpi.st-late { border-color: transparent; }
table.years td:nth-child(3) { width: 45%; }
.bar { display: block; height: 12px; background: var(--text); min-width: 1px; }
.person h2 { font-size: 1.3rem; margin: 1.6rem 0 .5rem; }
.person input { min-width: 12rem; }
.person textarea { font: inherit; width: 100%; max-width: 46rem; padding: .5rem; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); }
.fees { display: flex; flex-wrap: wrap; gap: .4rem; }
.fee input { min-width: 0 !important; width: 5.5rem; }
.myfees { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.myfees li { padding: .35rem .7rem; border: 2px solid var(--text); font-size: .95rem; }
.myfees li.p { background: var(--text); color: var(--bg); }
.myfees li b { font-style: italic; font-weight: 900; margin-right: .3rem; }
.login input[type=checkbox], .person input[type=checkbox] { min-width: 0; }

/* Accounts */
.sub2 { font-weight: 600; font-size: .95rem; margin-top: -.4rem; }
.yearnav { display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; align-items: start; }
.money td.num, .money th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money .neg { color: var(--red); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .money .neg { color: #ff8a80; } }
.money tr.total td { font-weight: 800; border-top: 2px solid var(--text); }
.pivot td:first-child { white-space: nowrap; }
.bar.negbar { background: var(--red); }
.kpis .kpi b { font-size: clamp(1.2rem, 1.9vw, 1.7rem); white-space: nowrap; }
.inline-form { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; margin: 0; }
.inline-form select, .inline-form input { font: inherit; font-size: .9rem; padding: .3rem .4rem; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); max-width: 16rem; }
.inline-form button { padding: .3rem .7rem; font-size: .9rem; }
.ops td.what { max-width: 26rem; font-size: .9rem; }
@media (max-width: 820px) { .cols { grid-template-columns: 1fr; } }

/* Pages laid out as sections (Contact, Join) */
.lede { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; max-width: 40ch; margin: 0 0 2rem; }
.lede p { margin: 0; }
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 3rem; }
.sections section { border-top: 3px solid var(--text); padding: 1rem 0 2rem; }
.sections h2 { font-size: 1.35rem; margin: 0 0 .8rem; }
.sections p, .sections ul { max-width: 46ch; }
.sections ul { padding-left: 1.1rem; }
.sections li { margin-bottom: .3rem; }
.nl-frame { width: 100%; max-width: 760px; height: 80vh; min-height: 600px; border: 1px solid var(--line); background: #fff; display: block; }

/* Fee grid (spreadsheet view) */
.gridwrap { overflow: auto; max-height: 75vh; border: 1px solid var(--line); }
.feegrid { border-collapse: separate; border-spacing: 0; font-size: .85rem; }
.feegrid th, .feegrid td { padding: 0; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; background: var(--bg); }
.feegrid thead tr:first-child th { position: sticky; top: 0; z-index: 2; font-weight: 700; }
.feegrid thead tr.sum th { font-weight: 500; color: var(--muted); font-size: .75rem; padding: .25rem .2rem; line-height: 1.2; }
.feegrid .who { position: sticky; left: 0; z-index: 1; text-align: left; padding: .25rem .4rem; width: 7.5rem; min-width: 7.5rem; max-width: 7.5rem; line-height: 1.15; }
.feegrid td.who a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .8rem; overflow-wrap: anywhere; }
.feegrid thead tr:first-child .who { z-index: 3; }
.feegrid thead tr.sum .who { z-index: 1; }
/* status as a colour bar on the name; the status column only shows with full names */
.feegrid td.who { border-left: 5px solid transparent; }
.feegrid td.b-current { border-left-color: var(--green); }
.feegrid td.b-remind { border-left-color: var(--yellow); }
.feegrid td.b-late { border-left-color: var(--orange); }
.feegrid td.b-former { border-left-color: var(--line); }
.feegrid .stc { display: none; }
.feegrid.full .stc { display: table-cell; }
.feegrid.full .who { width: auto; max-width: none; white-space: nowrap; }
.feegrid.full td.who a { display: inline; }
.feegrid td .st { margin: 0 .3rem; }
.feegrid button.sort { all: unset; cursor: pointer; display: block; padding: .4rem .3rem; font-weight: 700; }
.feegrid th.who { display: table-cell; }
.feegrid th.who button.sort { display: inline-block; }
.feegrid [aria-sort=ascending] button.sort::after { content: " ▲"; font-size: .65em; }
.feegrid [aria-sort=descending] button.sort::after { content: " ▼"; font-size: .65em; }
.feegrid button.names { all: unset; cursor: pointer; float: right; padding: .4rem .3rem; font-weight: 700; color: var(--muted); }
.feegrid button.names[aria-pressed=true] { color: var(--text); }
.feegrid button:focus-visible { outline: 2px solid var(--blue); }
.feegrid input.c { width: 3.2rem; border: 0; padding: .35rem .15rem; font: inherit; font-size: .8rem; text-align: center; background: transparent; color: var(--text); }
.feegrid input.c.p { background: var(--green); color: #000; }
.feegrid input.c.u { background: repeating-linear-gradient(45deg, var(--green) 0 4px, #fff0 4px 8px); color: #000; }
.feegrid input.c.o { background: var(--soft); }
.feegrid input.c.changed { outline: 2px solid var(--blue); outline-offset: -2px; }
.feegrid input.c:focus { outline: 2px solid var(--text); outline-offset: -2px; }
.legend span { white-space: nowrap; border-left: 5px solid transparent; padding-left: .3rem; margin-right: .5rem; }
.legend .b-current { border-color: var(--green); } .legend .b-remind { border-color: var(--yellow); } .legend .b-late { border-color: var(--orange); } .legend .b-former { border-color: var(--line); }
.filters label { max-width: 100%; } .filters select { max-width: 100%; }
.grid-actions { display: flex; gap: 1rem; align-items: center; }
/* save bar: only visible (and sticky) once a cell has changed; always shown without JS */
.savebar { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin: 0; padding: .6rem 0; background: var(--bg); border-top: 1px solid var(--line); }
.grid-form.js .savebar .meta { display: inline; }
.savebar .meta { display: none; }
.grid-form.js:not(.dirty) .savebar { display: none; }
.copy textarea { width: 100%; max-width: 60rem; font: inherit; font-size: .9rem; padding: .5rem; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); }
.remlist { columns: 2 22rem; padding-left: 1.1rem; }

/* suggested events (admin) */
.sugg-day { font-size: 1.05rem; margin: 1.6rem 0 .4rem; text-transform: none; font-style: normal; }
.sugg { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.sugg li { display: grid; grid-template-columns: 3.2rem 1fr auto; gap: .6rem; align-items: start; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sugg li.s-keep { border-left: 5px solid var(--green); padding-left: .4rem; }
.sugg li.s-drop { opacity: .55; }
.sugg-time { font-variant-numeric: tabular-nums; font-weight: 700; }
.sugg-what small { color: var(--muted); }
.sugg-act { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.sugg-act form { margin: 0; }
.sugg-act button { padding: .25rem .6rem; font-size: .8rem; }
.sugg-act button.drop, .sugg-act button.new { background: transparent; color: var(--text); }
@media (max-width: 560px) { .sugg li { grid-template-columns: 2.8rem 1fr; } .sugg-act { grid-column: 2; justify-content: flex-start; } }
.sources { list-style: none; padding: 0; }
.sources li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.sources small { color: var(--muted); overflow-wrap: anywhere; }
.refresh { margin: .8rem 0 0; }
.sugg-note { display: block; margin-top: .2rem; font-style: italic; }

/* person record: addresses */
.aliases { list-style: none; padding: 0; margin: .3rem 0 1rem; }
.aliases li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.aliases li > span { flex: 1 1 12rem; overflow-wrap: anywhere; }
.aliases .inline-form { margin: 0; }
.aliases button { padding: .25rem .6rem; font-size: .8rem; }

/* admin change log */
.journal { list-style: none; padding: 0; margin: 1rem 0; }
.journal li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.journal time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.journal small { color: var(--muted); }
.journal .jdetail { overflow-wrap: anywhere; }
.jcat { font-size: .75rem; font-weight: 700; padding: .05rem .4rem; background: var(--soft); }
.jsrc { font-size: .75rem; color: var(--muted); }
.jc-people { background: var(--sky); color: #000; } .jc-dues { background: var(--green); color: #000; } .jc-accounts { background: var(--yellow); color: #000; }
.jc-security { background: var(--red); color: #fff; } .jc-agenda { background: var(--pink); color: #000; } .jc-design { background: var(--violet); color: #fff; }
.jc-translation { background: var(--orange); color: #000; } .jc-content { background: var(--blue); color: #fff; }
@media (max-width: 560px) { .journal li { grid-template-columns: 4.6rem 1fr; gap: .5rem; } }
.btn-small { padding: .25rem .6rem; font-size: .8rem; }
.sugg-act .btn { padding: .25rem .6rem; font-size: .8rem; }
.sugg li.s-draft { border-left: 5px solid var(--blue); padding-left: .4rem; }
.sugg li.s-added { border-left: 5px solid var(--violet); padding-left: .4rem; }
textarea.mdfile { width: 100%; font: .85rem/1.4 ui-monospace, monospace; padding: .6rem; border: 1px solid var(--line); background: var(--soft); color: var(--text); }
.draft textarea { width: 100%; max-width: 40rem; font: inherit; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 6px; }

/* admin calendar */
.calrows { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.calrows li { display: grid; grid-template-columns: 3.6rem 3.2rem 1fr auto; gap: .5rem; align-items: start; padding: .5rem 0 .5rem .5rem; border-bottom: 1px solid var(--line); border-left: 5px solid transparent; }
.calrows .cal-d b { font-size: 1.1rem; } .calrows .cal-d { font-size: .8rem; } .calrows .cal-t { font-variant-numeric: tabular-nums; font-size: .9rem; }
.calrows small { color: var(--muted); }
.cal-b { font-size: .72rem; font-weight: 700; padding: .05rem .4rem; white-space: nowrap; }
.cb-bbr { border-left-color: var(--pink) !important; } .cb-bbr .cal-b { background: var(--pink); color: #000; }
.cb-unpub .cal-b { background: var(--soft); } .cb-unpub { border-left-color: var(--line) !important; }
.cb-kept { border-left-color: var(--green) !important; } .cb-kept .cal-b { background: var(--green); color: #000; }
.cb-draft { border-left-color: var(--blue) !important; } .cb-draft .cal-b { background: var(--blue); color: #fff; }
.cb-new .cal-b { border: 1px dashed var(--muted); } .cb-new { opacity: .75; }
@media (max-width: 560px) { .calrows li { grid-template-columns: 3rem 1fr; } .calrows .cal-t { grid-column: 1; font-size: .8rem; } .calrows .cal-w { grid-column: 2; grid-row: 1 / span 2; } .calrows .cal-b { grid-column: 2; justify-self: start; } }
