/* Pejuang brand: one blue plus derived neutrals. #00678A is the SVG value —
   swap it for the party's own Pantone 7706 C hex when the brand file arrives. */
:root {
  --brand-50:  #F2F7F9;
  --brand-100: #DBEAEF;
  --brand-200: #B2D1DC;
  --brand-400: #408DA7;
  --brand:     #00678A;  /* white on this = 6.35:1, AA */
  --brand-700: #004861;  /* white on this = 10:1, AAA */
  --brand-900: #002734;
  --ink:       #12242B;
  --muted:     #55707A;
  --error:     #B3261E;  /* on white = 6.8:1, AA */
  --radius: 8px;
  --pad: clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--brand-50);
}
a { color: var(--brand-700); }
h1, h2 { line-height: 1.15; letter-spacing: -0.01em; }

/* Header — the horizontal lockup the official artwork doesn't provide:
   shield mark plus the wordmark set as type. */
.masthead {
  background: var(--brand);
  color: #fff;
  border-bottom: 4px solid var(--brand-700);
}
.masthead-inner {
  max-width: 60rem; margin: 0 auto; padding: 0.75rem var(--pad);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.brand svg { height: 40px; width: auto; }        /* shield >= 32px or the three dots merge */
.brand b { font-size: 1.25rem; letter-spacing: 0.14em; font-weight: 800; }
.masthead nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.masthead nav a { color: #fff; text-decoration: none; border-bottom: 2px solid transparent; }
.masthead nav a:hover { border-bottom-color: #fff; }
.masthead form { margin: 0; }

main { max-width: 60rem; margin: 0 auto; padding: var(--pad); }

.card {
  background: #fff; border: 1px solid var(--brand-100);
  border-radius: var(--radius); padding: 1.25rem;
}
.card + .card { margin-top: 0.75rem; }
.card h2 { margin: 0 0 0.25rem; font-size: 1.15rem; }
.card a { text-decoration: none; }
.meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Event banner: fixed 3:1 so a mixed bag of uploads still lines up down the page. */
.banner {
  display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover;
  border-radius: var(--radius); margin: 0 0 0.75rem; background: var(--brand-100);
}

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

/* Left rule echoes the shield edge */
.panel { background: #fff; border-left: 6px solid var(--brand); border-radius: var(--radius);
         padding: 1.25rem; box-shadow: 0 1px 2px rgb(0 39 52 / 0.08); }

button, .btn {
  background: var(--brand); color: #fff; border: 0; border-radius: var(--radius);
  padding: 0.6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer;
}
button:hover:not(:disabled) { background: var(--brand-700); }
button:disabled { background: var(--brand-200); color: var(--brand-700); cursor: not-allowed; }
.masthead button { background: transparent; border: 1px solid rgb(255 255 255 / 0.6); padding: 0.3rem 0.7rem; font-weight: 500; }
.masthead button:hover { background: var(--brand-700); }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; }

.badge { display: inline-block; background: var(--brand-100); color: var(--brand-700);
         border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.85rem; font-weight: 600; }
.notice { background: var(--brand-100); border-left: 6px solid var(--brand); padding: 0.75rem 1rem;
          border-radius: var(--radius); }

form p { margin: 0 0 0.9rem; }
label { display: block; font-weight: 600; }
input, select, textarea {
  font: inherit; padding: 0.5rem; width: 100%; max-width: 22rem;
  border: 1px solid var(--brand-200); border-radius: var(--radius); background: #fff;
}
textarea { max-width: none; resize: vertical; }
.helptext { display: block; font-size: 0.85rem; color: var(--muted); }
ul.errorlist { font-size: 0.85rem; color: var(--error); list-style: none; padding: 0; margin: 0.25rem 0 0; }
input:user-invalid { border-color: var(--error); }

/* Membership form: two columns where there is room, one where there isn't. Long
   answers (address, the declaration) span the full width. */
fieldset { border: 0; border-top: 1px solid var(--brand-100); margin: 1.5rem 0 0; padding: 1rem 0 0; }
legend { font-weight: 700; color: var(--brand-700); padding: 0; }
.grid { display: grid; gap: 0 1.5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.field.wide { grid-column: 1 / -1; }
.akuan label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
input[type="checkbox"] { width: auto; margin-top: 0.35rem; flex: none; }

footer { background: var(--brand-900); color: var(--brand-200); margin-top: 3rem; }
footer div { max-width: 60rem; margin: 0 auto; padding: 2rem var(--pad); display: flex;
             align-items: center; gap: 1rem; flex-wrap: wrap; }
footer svg { height: 96px; width: auto; color: #fff; }
