/* GIB — the whole stylesheet.
 *
 * One file, published at /assets/site.css and linked by every page. Custom
 * properties carry the brand so a colour is changed in one place; the
 * palette is GIB's existing navy (#1F3066) and cyan (#07D6F6).
 *
 * No @import and no external stylesheet except Google Fonts: the platform
 * serves pages with `style-src 'self' 'unsafe-inline'
 * https://fonts.googleapis.com`, so anything else is blocked with no error
 * in the page — a blank-looking site and nothing in the console to explain
 * it. Fonts come from fonts.gstatic.com, which is the matching font-src. */

:root {
  --navy: #1f3066;
  --navy-deep: #011c3a;
  --cyan: #07d6f6;
  --ink: #1a2230;
  --muted: #5b6779;
  --line: #dfe4ec;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 10px;
  --wrap: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

/* The site commits to one look. There is no dark palette here rather than a
 * half-built one: a brand site that inverts on a visitor's setting has to be
 * designed twice, and the second design does not exist yet. */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--navy-deep); }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* The skip link is off-screen until focused — the first thing a keyboard
 * visitor reaches, and invisible to everyone else. */
.skip {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 10;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ── header ─────────────────────────────────────────────────────────── */

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.brand {
  font-weight: 700; font-size: 1.35rem; letter-spacing: .02em;
  color: var(--navy); text-decoration: none;
}
.primary { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-right: auto; }
.primary a {
  text-decoration: none; color: var(--muted); font-weight: 500;
  padding: .25rem 0; border-bottom: 2px solid transparent;
}
.primary a:hover { color: var(--navy); }
.primary a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--cyan); }
.signin {
  text-decoration: none; font-weight: 600; color: var(--navy);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .45rem .9rem;
}
.signin:hover { border-color: var(--navy); }

/* ── main ───────────────────────────────────────────────────────────── */

main { max-width: var(--wrap); margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.hero { margin-bottom: 2rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose blockquote {
  margin: 1.5rem 0; padding: .25rem 0 .25rem 1.25rem;
  border-left: 3px solid var(--cyan); color: var(--muted);
}
.prose pre {
  background: var(--bg-soft); padding: 1rem; border-radius: var(--radius);
  overflow-x: auto;
}

.placeholder {
  background: var(--bg-soft); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 1rem 1.25rem; color: var(--muted);
}
.rt-unknown { display: contents; }

/* ── forms ──────────────────────────────────────────────────────────── */

.card {
  max-width: 560px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: inherit; padding: .6rem .7rem;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
}
.field input:focus, .field textarea:focus { border-color: var(--navy); }
.field.check { display: flex; align-items: center; gap: .5rem; }
.field.check input { width: auto; }
.field.check label { margin: 0; font-weight: 400; }
/* A radio group is a QUESTION with answers, so it is a fieldset with a
 * legend — which is what a screen reader needs to read the two together.
 * .field styles a label as a block; inside here they sit beside their input. */
fieldset.field { border: 0; padding: 0; margin-bottom: 1rem; }
fieldset.field legend {
  font-weight: 600; font-size: .95rem; margin-bottom: .3rem; padding: 0;
}
.radio { display: inline-flex; align-items: center; gap: .4rem; margin-right: 1rem; }
.field .radio { font-weight: 400; margin-bottom: 0; }
.field .radio input { width: auto; }

/* Says which fields are alternatives, which the labels alone cannot. */
.hint { color: var(--muted); font-size: .9rem; margin: -.5rem 0 1rem; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }

/* The honeypot. Not display:none — some bots skip what is not rendered, and
 * some browsers skip it on autofill. Off-canvas is invisible and still real. */
.trap {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  border-radius: var(--radius); padding: .6rem 1.2rem; text-decoration: none;
}
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-soft); color: var(--navy); }

.status { min-height: 1.4em; margin: .75rem 0 0; font-size: .95rem; }
.status[data-tone="error"] { color: #b3261e; }
.status[data-tone="ok"] { color: #16653b; }

.notice {
  background: var(--bg-soft); border-left: 3px solid var(--cyan);
  padding: .9rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted); max-width: 560px;
}
.account { color: var(--muted); margin: 0 0 1.25rem; font-size: .95rem; }
.small { font-size: .9rem; margin-top: 1.25rem; }

/* ── footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: 2.5rem 1.25rem;
}
.cols {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.col ul { list-style: none; margin: 0; padding: 0; }
.col li { margin-bottom: .4rem; }
.col a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.col a:hover { color: var(--navy); text-decoration: underline; }
.legal, .copy {
  max-width: var(--wrap); margin: 2rem auto 0; color: var(--muted);
  font-size: .85rem;
}
.copy { margin-top: .25rem; }
