/* Earth Force Build — institutional brand tokens
   Source: EF logo system (#0F2F44 / #103045 navy, Poppins, Build timber accent) */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --ef-navy: #0f2f44;
  --ef-navy-deep: #0a1f2e;
  --ef-navy-mid: #103045;
  --ef-ink: #121a22;
  --ef-paper: #f7f5f1;
  --ef-paper-elevated: #ffffff;
  --ef-muted: #5c6b76;
  --ef-muted-soft: #8a96a0;
  --ef-rule: #d6d2cb;
  --ef-rule-strong: #b8b2a8;
  --ef-accent: #8b6b4a; /* Build timber — one accent only */
  --ef-accent-soft: rgba(139, 107, 74, 0.12);
  --ef-danger-soft: #f3ece6;
  --ef-focus: #0f2f44;

  --font-sans: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", ui-monospace, monospace;

  --text-xs: 0.6875rem;   /* 11 */
  --text-sm: 0.75rem;     /* 12 */
  --text-base: 0.8125rem; /* 13 */
  --text-md: 0.875rem;    /* 14 */
  --text-lg: 1rem;        /* 16 */
  --text-xl: 1.25rem;     /* 20 */
  --text-2xl: 1.625rem;   /* 26 */

  --lh-tight: 1.25;
  --lh-body: 1.45;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius: 2px;
  --shadow-none: none;
  --max-width: 1280px;

  --header-h: 64px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--ef-ink);
  background: var(--ef-paper);
}

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ef-navy);
  margin: 0;
}

a {
  color: var(--ef-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ef-accent);
}

button,
select,
input {
  font-family: inherit;
  font-size: var(--text-sm);
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

/* Tables — dense, calm */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

table.data th {
  text-align: left;
  font-weight: 500;
  color: var(--ef-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ef-rule-strong);
  padding: 8px 10px;
  white-space: nowrap;
}

table.data td {
  border-bottom: 1px solid var(--ef-rule);
  padding: 8px 10px;
  vertical-align: top;
}

table.data tr:hover td {
  background: rgba(15, 47, 68, 0.03);
}

table.data td.num,
table.data th.num {
  text-align: right;
}

/* Form controls */
.ctrl {
  appearance: none;
  background: var(--ef-paper-elevated);
  border: 1px solid var(--ef-rule-strong);
  border-radius: var(--radius);
  color: var(--ef-ink);
  padding: 6px 28px 6px 10px;
  min-height: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230F2F44' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.ctrl:focus {
  outline: 2px solid var(--ef-navy);
  outline-offset: 1px;
}

input.ctrl {
  background-image: none;
  padding-right: 10px;
  cursor: text;
}

.btn {
  appearance: none;
  border: 1px solid var(--ef-navy);
  background: var(--ef-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-height: 32px;
}

.btn:hover {
  background: var(--ef-navy-deep);
}

.btn.secondary {
  background: transparent;
  color: var(--ef-navy);
}

.btn.secondary:hover {
  background: var(--ef-accent-soft);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ef-muted);
  font-weight: 500;
}

.rule {
  border: 0;
  border-top: 1px solid var(--ef-rule);
  margin: 0;
}
