/* Nzyme brand — colors from NzymePresentation2026.potx (dk2 / accent2), font Geologica.
   Geologica is loaded from Google Fonts in base.html. */
:root {
  --ink:#0e1a2b;
  --muted:#6b7785;
  --line:#dfe4ea;
  --brand:#17406D;           /* Nzyme deep navy (theme dk2) */
  --brand-dark:#0f2d4d;
  --accent:#009DD9;          /* Nzyme bright blue (theme accent2) */
  --bg:#f6f8fb;
  --warn:#c0392b;
  --warn-bg:#fdecea;
  --note:#d68910;
  --note-bg:#fff7e6;
}
* { box-sizing: border-box; }
body {
  margin:0;
  font-family: 'Geologica', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.005em; }
h2 { margin-top: 0; }

header { background:#fff; border-bottom:1px solid var(--line); padding:0.85rem 1.5rem; }
header h1 { font-size:1.05rem; margin:0 0 0.45rem; font-weight: 600; }
header h1 a { color:var(--brand); text-decoration:none; }
nav a { margin-right:1rem; color:var(--ink); text-decoration:none; font-size:0.92rem; }
nav a:hover { color:var(--brand); text-decoration:underline; }

/* Content is left-aligned (not centred) so the page title and tables start
   roughly under the "Sub-Funds" nav item, instead of leaving a wide empty
   gutter on the left. max-width is raised so wider tables (Sub-Fund A
   roster with five amount columns) still fit without horizontal scroll. */
main { max-width:1400px; margin:1.5rem 0; padding:0 1.5rem 0 6rem; }
footer { max-width:1400px; margin:2rem 0; padding:0 1.5rem 0 6rem; color:var(--muted); font-size:0.85rem; }

a { color: var(--brand); }
a:hover { color: var(--accent); }
.muted { color: var(--muted); }
.warn { color: var(--warn); }

table {
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  margin:0.5rem 0 1.5rem;
}
th, td {
  text-align:left;
  padding:0.6rem 0.75rem;
  border-bottom:1px solid var(--line);
  font-size:0.92rem;
  vertical-align: top;
}
thead th { background:#eef3f9; color: var(--brand); font-weight:500; }
tfoot th { background:#eef3f9; }

.cards { display:flex; gap:1rem; flex-wrap:wrap; margin:1rem 0 1.5rem; }
.card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:1rem 1.2rem; min-width:150px; }
.card .num { font-size:1.5rem; font-weight:500; color:var(--brand); }
.card .lbl { color:var(--muted); font-size:0.85rem; }

/* Forms */
.form {
  display:flex; flex-direction:column; gap:0.7rem;
  max-width:560px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:8px;
  padding:1.2rem;
  margin-top: 0.75rem;
}
.form label { display:flex; flex-direction:column; gap:0.25rem; font-size:0.86rem; color:var(--muted); }
.form input, .form select, .form textarea {
  padding:0.5rem;
  border:1px solid var(--line);
  border-radius:6px;
  font-size:0.95rem;
  color:var(--ink);
  font-family: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,157,217,0.18);
}
.form .hint { font-size:0.78rem; color:var(--muted); font-weight:300; }

/* Radio / checkbox rows: place the control beside its label, not stacked above it. */
.form label:has(> input[type="radio"]),
.form label:has(> input[type="checkbox"]) {
  flex-direction:row;
  align-items:center;
  gap:0.5rem;
  font-weight:400;
}
.form input[type="radio"],
.form input[type="checkbox"] {
  width:auto;
  margin:0;
  flex:0 0 auto;
}

/* Buttons */
button, .btn {
  display:inline-block;
  background:var(--brand);
  color:#fff;
  border:none;
  padding:0.55rem 1rem;
  border-radius:6px;
  font-size:0.92rem;
  font-family: inherit;
  font-weight: 500;
  cursor:pointer;
  text-decoration:none;
}
button:hover, .btn:hover { background:var(--brand-dark); color:#fff; }
.button-secondary {
  display:inline-block;
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  padding:0.55rem 1rem;
  border-radius:6px;
  font-size:0.92rem;
  font-family: inherit;
  font-weight: 400;
  text-decoration:none;
  margin-right:0.5rem;
  cursor: pointer;
}
.button-secondary:hover { background:#eef3f9; color: var(--brand); }

.inline-form { display:inline-flex; gap:0.3rem; align-items:center; }
.inline-form input, .inline-form button { padding:0.25rem 0.55rem; font-size:0.82rem; }

.link-button {
  background:none;
  color:var(--brand);
  padding:0;
  border:none;
  cursor:pointer;
  font-size:inherit;
  font-family: inherit;
  font-weight: normal;
  text-decoration:underline;
}
.link-button:hover { background:none; color:var(--accent); }

/* Reveal-a-form details/summary pattern */
details.reveal { margin: 1rem 0 1.5rem; }
details.reveal > summary {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
details.reveal > summary::-webkit-details-marker { display: none; }
details.reveal > summary:hover { background: var(--brand-dark); }
details.reveal[open] > summary { background: var(--brand-dark); }
details.reveal > summary::before { content: "+ "; }
details.reveal[open] > summary::before { content: "− "; }

/* Banners */
.banner-warn {
  border-left: 4px solid var(--warn);
  background: var(--warn-bg);
  padding: 0.75em 1em;
  margin-bottom: 1em;
  border-radius: 4px;
}
.banner-note {
  border-left: 4px solid var(--note);
  background: var(--note-bg);
  padding: 0.75em 1em;
  margin-bottom: 1em;
  border-radius: 4px;
}
.banner-ok {
  border-left: 4px solid #1e8449;
  background: #eafaf1;
  padding: 0.75em 1em;
  margin-bottom: 1em;
  border-radius: 4px;
}

/* Signed-in identity in the header */
.session-bar { font-size: 0.82rem; color: var(--muted); margin-top: 0.35rem; }
.session-bar a { color: var(--brand); text-decoration: none; }
.session-bar a:hover { color: var(--accent); text-decoration: underline; }
.session-bar .sep { color: var(--line); margin: 0 0.4rem; }

/* Standalone authentication pages (sign in, reset, etc.) */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.75rem 1.9rem;
  width: 100%;
  max-width: 380px;
}
.auth-card h1 { font-size: 1.15rem; color: var(--brand); margin: 0 0 0.25rem; }
.auth-card .lead { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.2rem; }
.auth-card .form { max-width: none; border: none; padding: 0; margin: 0; }
.auth-card button { width: 100%; margin-top: 0.4rem; }
.auth-card .links { margin-top: 1.1rem; font-size: 0.85rem; }
.auth-card .links a { color: var(--brand); }
