/* ASPSI CAPI Portal — self-contained stylesheet (no CDN, no external fonts).
   Verde-anchored palette, coherent with the UHC F2 "Verde Manual" identity. */

:root {
  --verde: #046a38;
  --verde-dark: #034d29;
  --verde-pale: #eaf3ec;
  --paper: #f7f9f4;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #d8e2da;
  --card: #ffffff;
  --accent: #b45309;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .brand { font-family: Georgia, "Times New Roman", serif; }

a { color: var(--verde); }
a:hover { color: var(--verde-dark); }

/* ---- header / nav ---- */
header {
  background: var(--verde);
  color: #fff;
  border-bottom: 4px solid var(--verde-dark);
}
.nav {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap;
}
.brand { font-size: 1.25rem; color: #fff; text-decoration: none; letter-spacing: 0.02em; }
.brand small { font-family: inherit; opacity: 0.85; font-size: 0.72em; margin-left: 10px; letter-spacing: 0; }
.nav a.link { color: #dcefe2; text-decoration: none; font-size: 0.95rem; }
.nav a.link:hover { color: #ffffff; text-decoration: underline; }

/* ---- hero ---- */
.hero { background: linear-gradient(180deg, var(--verde-pale), var(--paper)); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 64px 24px 56px; }
.hero h1 { font-size: 2.3rem; color: var(--verde-dark); line-height: 1.2; max-width: 720px; }
.hero p.lead { margin-top: 16px; font-size: 1.1rem; color: var(--ink-soft); max-width: 640px; }
.hero .crumb { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--verde); margin-bottom: 12px; }

/* ---- main / sections ---- */
main { max-width: 1080px; margin: 0 auto; padding: 48px 24px 72px; }
section + section { margin-top: 56px; }
section > h2 { font-size: 1.5rem; color: var(--verde-dark); margin-bottom: 6px; }
section > p.sub { color: var(--ink-soft); margin-bottom: 24px; max-width: 640px; }

/* ---- card grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { font-size: 1.08rem; color: var(--ink); }
.card p { font-size: 0.93rem; color: var(--ink-soft); flex-grow: 1; }
.card .go { font-size: 0.93rem; font-weight: 600; text-decoration: none; }
.card .go::after { content: " →"; }
.card.future { border-style: dashed; background: transparent; }
.card.future h3, .card.future p { color: var(--ink-soft); }

/* project card accent */
.card.project { border-left: 5px solid var(--verde); }

/* ---- badges / meta ---- */
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 2px 10px; border-radius: 999px; width: fit-content;
}
.badge.live { background: var(--verde-pale); color: var(--verde-dark); border: 1px solid var(--verde); }
.badge.soon { background: #fef3c7; color: var(--accent); border: 1px solid var(--accent); }

/* ---- instrument table ---- */
table.plain { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table.plain th, table.plain td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
table.plain th { background: var(--verde-pale); color: var(--verde-dark); font-weight: 600; }
table.plain tr:last-child td { border-bottom: none; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); background: #eef2ec; }
.foot { max-width: 1080px; margin: 0 auto; padding: 22px 24px; font-size: 0.85rem; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot a { color: var(--verde-dark); }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-inner { padding: 44px 20px 40px; }
}
