@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

:root {
  --c50:  #EEF2F6;
  --c100: #C9D5E3;
  --c200: #A8BECE;
  --c400: #859CBA;
  --c600: #617A97;
  --c800: #3F5875;
  --c900: #1E3552;
  --sand:       #BAAC85;
  --terracotta: #BA9685;
  --lime:       #BAC085;
  --bg:   #F5F6F8;
  --line: #D8DDE4;
  --muted:#7A8A96;
  --text: #2D3B47;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

.page-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; line-height: 1.15; color: var(--c900); }
h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: 20px; }
em { font-style: italic; color: var(--c600); }
a  { color: var(--c600); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  padding: 11px 28px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s, color 0.18s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary  { background: var(--c400); color: var(--c900); }
.btn-primary:hover  { background: var(--c600); color: #fff; }

.btn-dark     { background: var(--c900); color: var(--c100); }
.btn-dark:hover     { background: var(--c800); }

.btn-ghost    { background: transparent; color: var(--c800); border: 1.5px solid var(--c200); }
.btn-ghost:hover    { background: var(--c50); }

.btn-lg { padding: 14px 40px; font-size: 15px; }

/* ─── Cards ─── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 32px;
}

/* ─── Progress ─── */
.prog-wrap {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c400), var(--c600));
  border-radius: 2px;
  transition: width 0.35s ease;
}

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}
.badge-met  { background: #fde8e4; color: #7a2a18; }
.badge-not  { background: #edf4ed; color: #2e5c2e; }
.badge-warn { background: #fff7e0; color: #7a5800; }

/* ─── Tables ─── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  padding: 8px 12px;
  background: var(--c900);
  color: var(--c100);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:nth-child(even) td { background: var(--c50); }

/* ─── Notices ─── */
.notice {
  padding: 14px 20px;
  border-radius: 5px;
  font-size: 13.5px;
  line-height: 1.6;
  border-left: 3px solid transparent;
}
.notice-info { background: var(--c50);  border-color: var(--c400); color: var(--c800); }
.notice-warn { background: #fffbf0;     border-color: var(--sand); color: #5c4a18; }
.notice-err  { background: #fff5f4;     border-color: var(--terracotta); color: #6c2a20; }

/* ─── Divider ─── */
.divider { height: 1px; background: var(--line); margin: 32px 0; }
