/* MDO back end styles - version 1.0.0 - 22 Nov 2026. Club colours from assets/brand/colours.md.
   The club fonts are copied into /fonts at publish time (infra/Publish-MdoWeb.ps1) from assets/brand. */
@font-face { font-family: "DCFC"; src: url("/fonts/BBG_DCFC_Standard.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "DCFC Display"; src: url("/fonts/BBG_DCFC_McFarland_Standard.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/fonts/Roboto-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --green: #85B09A; --navy: #003057; --gold: #FFBF3F; --burgundy: #651D32; --pink: #E31C79; --sky: #69B3E7;
  --ink: #1d2733; --muted: #5d6b7a; --line: #d9e0e7; --bg: #f5f7f9; --card: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Roboto", system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; }
h1, h2, h3 { font-family: "DCFC", "Roboto", sans-serif; color: var(--navy); letter-spacing: 0.02em; }
h1 { font-size: 28px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 26px 0 10px; }
h3 { font-size: 16px; margin: 18px 0 8px; }
a { color: var(--navy); }

.topbar { display: flex; align-items: center; gap: 18px; background: var(--navy); color: #fff; padding: 10px 20px; flex-wrap: wrap; }
.crest { height: 38px; }
.brand { font-family: "DCFC Display", "DCFC", sans-serif; font-size: 22px; letter-spacing: 0.04em; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; padding: 7px 11px; border-radius: 4px; }
.nav a:hover { background: rgba(255,255,255,0.12); }
.nav a.active { background: var(--gold); color: var(--navy); }
.who { margin-left: auto; font-size: 13px; opacity: 0.9; }

.main { max-width: 1200px; margin: 0 auto; padding: 24px 20px 60px; }
.page .muted, .muted { color: var(--muted); }
.signin { max-width: 520px; margin: 60px auto; text-align: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin: 16px 0; }
.card h2 { margin-top: 0; }
.card > .field { margin-top: 12px; }

.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.table th { text-align: left; background: #eef2f6; color: var(--navy); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ok { color: #2d7a52; font-weight: 700; }
.bad { color: var(--pink); font-weight: 700; }
.warn { background: #fff4d9; border-left: 4px solid var(--gold); padding: 8px 12px; }

.form { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.form.inline, .inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; gap: 10px; display: flex; max-width: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.form.grid { max-width: none; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; }
.label { font-size: 13px; color: var(--muted); }
.hint { font-size: 12px; color: var(--muted); }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid #b9c4cf; border-radius: 4px; background: #fff; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; }
input.pin { width: 120px; }
textarea { width: 100%; }

.button { display: inline-block; background: var(--navy); color: #fff; border: 0; border-radius: 4px; padding: 8px 14px; font: inherit; cursor: pointer; text-decoration: none; }
.button:hover { background: #0b4677; }
.button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.button:disabled { opacity: 0.55; cursor: wait; }
.link { background: none; border: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.link.light { color: #fff; }
.link.danger { color: var(--burgundy); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

.objective { display: grid; grid-template-columns: 26px 2fr 2fr 110px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.objective .num { color: var(--muted); text-align: right; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.2); max-width: 90vw; }
.toast-error { background: var(--burgundy); }

@media (max-width: 760px) {
  .objective { grid-template-columns: 22px 1fr; }
  .who { margin-left: 0; }
}
