/* The field guide look, ported from the React site: Outfit, square corners, black borders, a fluro bar on each card. */
@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('../fonts/outfit-latin-400-normal.woff') format('woff'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url('../fonts/outfit-latin-700-normal.woff') format('woff'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url('../fonts/outfit-latin-800-normal.woff') format('woff'); }
@font-face { font-family: 'Outfit'; font-weight: 900; font-display: swap; src: url('../fonts/outfit-latin-900-normal.woff') format('woff'); }
:root {
  --font: 'Outfit', system-ui, sans-serif;
  --text: #1a1a1a; --muted: #6b6b6b; --border: #e3e3e3; --surface: #f6f6f6; --ink: #0b0b0b;
  --pink: #FF10F0; --cyan: #00E5FF; --lime: #B6FF00; --blaze: #FF5F00; --aqua: #00FFD5; --violet: #9D4EFF; --yellow: #FFE600;
  --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font); color: var(--text); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.header { border-bottom: 1px solid var(--border); }
.header-in { max-width: var(--max); margin: 0 auto; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-weight: 900; text-decoration: none; }
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.main { max-width: var(--max); margin: 0 auto; padding: 32px 16px 64px; display: grid; gap: 16px; }
h1 { font-size: clamp(32px, 6vw, 56px); font-weight: 900; line-height: 1.05; }
h2 { font-size: 24px; font-weight: 800; }
.kicker span { display: inline-block; background: var(--c, var(--pink)); color: var(--ink); font-weight: 800; padding: 2px 8px; }
.card { border: 2px solid var(--ink); border-top: 10px solid var(--c, var(--pink)); padding: 16px; background: #fff; display: grid; gap: 8px; }
.btn { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; padding: 10px 18px; border: 2px solid var(--ink); text-decoration: none; }
.btn-line { background: #fff; color: var(--ink); }
.muted { color: var(--muted); }
@media (max-width: 600px) { .header-in { flex-direction: column; align-items: flex-start; } }

/* Forms, states and agreements */
label { display: grid; gap: 4px; font-weight: 700; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--ink); }
input, select, textarea { font-family: var(--font); font-size: 16px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 5px; width: 100%; font-weight: 400; background: #fff; }
input[type=checkbox] { width: 22px; padding: 0; }
textarea.wide { width: 100%; }
.copy { font-family: ui-monospace, monospace; font-size: 13px; }
.btn { cursor: pointer; font-family: var(--font); font-size: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.flash { padding: 10px 14px; border: 2px solid var(--ink); font-weight: 700; }
.flash-ok { background: var(--lime); }
.flash-bad { background: var(--blaze); }
.state { display: inline-block; font-weight: 800; padding: 2px 10px; border: 2px solid var(--ink); background: var(--surface); }
.state-signed, .state-approved { background: var(--lime); }
.state-sent, .state-insurer_review { background: var(--cyan); }
.state-changes_asked { background: var(--yellow); }
.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--border); }
.history { padding-left: 20px; display: grid; gap: 8px; }
.agreement-body h1 { font-size: 28px; }
.agreement-body h2 { font-size: 20px; margin-top: 12px; }
.agreement-body p, .agreement-body ul { margin-top: 6px; }
.agreement-body blockquote { border-left: 6px solid var(--yellow); padding-left: 12px; }
@media print { .header, .no-print, .flash { display: none; } .card { border-top-width: 2px; } }

/* Profiles */
ins { background: var(--lime); text-decoration: none; padding: 0 2px; }
del { background: #ffd9d0; }
.diff { white-space: pre-wrap; line-height: 1.7; }
.flags, .results { list-style: none; display: grid; gap: 10px; }
.flags li, .results li { border-left: 6px solid var(--border); padding-left: 12px; }
.flag-bad { border-left-color: var(--blaze) !important; }
.flag-warn { border-left-color: var(--yellow) !important; }
form.inline { display: inline-block; margin-top: 4px; }
.btn-small { font-size: 14px; padding: 4px 10px; }

/* Projects */
.flag-ok { border-left-color: var(--lime) !important; }
select { width: 100%; }
.card .actions label { flex: 1 1 220px; }

/* The hidden attribute must win over the label and card styles */
[hidden] { display: none !important; }
.table td.over { color: #b00020; font-weight: 800; }
