/* ClubQuai app look (brand guidelines v1.1): ivory background, white cards, navy text, red only for the one main action.
   Fonts self-hosted (SIL OFL): Inter Tight for text, Playfair Display 500 for headings. */
@font-face { font-family: "Inter Tight"; src: url("/static/fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/static/fonts/playfair-display-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root { --navy: #0E2340; --red: #C8202A; --ivory: #F7F4EC; --slate: #4A5468; --line: #dcd6c8; --ok: #1d6b3a; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--navy); font: 17px/1.5 "Inter Tight", system-ui, sans-serif; }
header { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; padding: .9rem 1.25rem; background: var(--navy); color: #fff; }
.brand, h1, h2 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; }
.brand { font-size: 1.3rem; }
.club { color: #dfe4ee; }
nav.top { margin-left: auto; display: flex; gap: 1rem; }
nav.top a { color: #fff; text-decoration: none; padding: .5rem 0; min-height: 44px; display: inline-flex; align-items: center; }
nav.top a:hover { text-decoration: underline; }
main { max-width: 60rem; margin: 1.5rem auto; padding: 1.5rem; background: #fff; border-radius: 12px; }
h1 { margin-top: 0; font-size: 1.9rem; }
h2 { font-size: 1.3rem; margin-top: 1.75rem; }
nav.sections { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.5rem 0 1.25rem; border-bottom: 1px solid var(--line); }
nav.sections a { padding: .6rem .9rem; color: var(--navy); text-decoration: none; border-bottom: 3px solid transparent; min-height: 44px; }
nav.sections a[aria-current] { border-bottom-color: var(--navy); font-weight: 600; }
nav.actions, .row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0; }
label { display: block; font-weight: 600; margin: .75rem 0 .25rem; }
input, select { width: 100%; min-height: 44px; padding: .5rem .75rem; font: inherit; color: inherit; border: 1px solid var(--slate); border-radius: 8px; background: #fff; }
input.short { width: 9rem; }
input[type=file] { border-style: dashed; }
.row label { display: inline; margin: 0; }
button, a.button { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; font: inherit; border: 1px solid var(--navy); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; text-decoration: none; }
form:not(.row) > button { display: flex; margin-top: 1rem; }
.row > button, .row > a.button { margin-top: 0; }
.primary, a.button.primary { background: var(--red); border-color: var(--red); color: #fff; }
button.link { border: 0; background: none; text-decoration: underline; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.small { color: var(--slate); font-size: .9rem; }
.big { font-size: 1.4rem; font-weight: 600; }
.step { color: var(--slate); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.mono { font-family: ui-monospace, monospace; word-break: break-all; }
.notice { background: #eef4ee; border-left: 4px solid var(--ok); padding: .6rem .9rem; }
.ok { color: var(--ok); font-weight: 600; }
.alert, ul.alert { background: #fbeceb; border-left: 4px solid var(--red); padding: .6rem .9rem; }
ul.todo { list-style: none; padding: 0; }
ul.todo li { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line); }
ul.cards { list-style: none; padding: 0; display: grid; gap: .75rem; }
ul.cards li, section.card { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; }
ul.cards li span { display: block; color: var(--slate); font-size: .9rem; }
section.card h2 { margin-top: 0; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--ivory); }
details { margin-top: 1.25rem; }
summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
section { margin-top: 1.5rem; }
footer { max-width: 60rem; margin: 0 auto 2rem; padding: 0 1.5rem; display: flex; justify-content: space-between; align-items: center; }
footer a { color: var(--navy); margin-right: .5rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 1; }
@media (max-width: 40rem) { main { margin: 0; border-radius: 0; padding: 1rem; } nav.top { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.tag { display: inline-block; margin-left: .35rem; padding: 0 .4rem; border-radius: 4px; background: #fff4d6; color: #6b4e00; font-size: .8rem; font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; min-height: 44px; }
label.check input { width: auto; min-height: 0; }
td a, ul.todo a:not(.button), nav.row a, section.card p > a, li.small a { display: inline-flex; align-items: center; min-height: 44px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 1rem 0; padding: .5rem 1rem 1rem; }
legend { font-weight: 600; padding: 0 .25rem; }
.times { display: flex; flex-wrap: wrap; gap: .5rem; }
label.time { display: inline-flex; gap: .4rem; align-items: center; min-height: 44px; padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 400; margin: 0; }
label.time input { width: auto; min-height: 0; }
form.inline { display: inline; }
td.row { display: flex; gap: .5rem; flex-wrap: wrap; }
main a:not(.button) { color: var(--navy); }
/* duty hours: the QR poster (build step 7) */
.poster { text-align: center; }
.poster svg { width: min(80vw, 420px); height: auto; display: block; margin: 1rem auto; }
.poster .url { word-break: break-all; font-size: .9rem; }
@media print { body:has(.poster) header, body:has(.poster) nav, body:has(.poster) footer, .noprint { display: none !important; } .poster svg { width: 70%; } }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* printing a page (a waiting list for the AGM, the crane list, the hours per person): only the content, no menus,
   no forms or buttons, tables in full width; the browser adds the date and page numbers */
@media print {
  header, nav, footer, form, details, .actions, a.button, .noprint { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .scroll { overflow: visible !important; }
  table { width: 100%; border-collapse: collapse; page-break-inside: auto; }
  tr { page-break-inside: avoid; }
  th, td { border-bottom: 1px solid #999; padding: 3pt 4pt; }
  a { color: #000; text-decoration: none; }
}

footer .legal { font-size: .85rem; margin-top: .6rem; }

/* a field only robots fill in (online application, A4) */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
