/* ===== THE LIBERTY MODEL — DESIGN SYSTEM ===== */
:root {
  --navy: #0b1f3a;
  --navy-deep: #071527;
  --gold: #b08d47;
  --gold-light: #d4b878;
  --ink: #1a1a1a;
  --text: #4a4a4a;
  --surface: #f7f6f3;
  --white: #ffffff;
  --border: #e5e2da;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1120px;
}

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

body {
  font-family: "Georgia", "Iowan Old Style", Cambria, serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sans { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }

a { text-decoration: none; color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 640px; }
.kicker { font-family: -apple-system, BlinkMacSystemFont, sans-serif; text-transform: uppercase; letter-spacing: 0.14em;
          font-size: 0.75rem; font-weight: 700; color: var(--gold); }

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.alt { background: var(--surface); }
section.dark { background: var(--navy); color: rgba(255,255,255,0.85); }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }

/* Nav */
.nav { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(255,255,255,0.92);
       backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; height: 76px;
             max-width: var(--container); margin: 0 auto; padding: 0 32px; font-family: -apple-system, sans-serif; }
.brand { font-family: Georgia, serif; font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.brand .scale { color: var(--gold); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--navy); }
.nav-links a:hover { color: var(--gold); }

/* Buttons */
.btn { display: inline-block; padding: 15px 32px; border-radius: 4px; font-family: -apple-system, sans-serif;
       font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; transition: all .2s; cursor: pointer; border: none; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.card-lg { padding: 40px; border-radius: var(--radius-lg); }

/* Citation pill */
.citation { display: inline-block; font-family: -apple-system, sans-serif; font-size: 0.72rem; font-weight: 700;
            letter-spacing: 0.03em; background: var(--navy); color: var(--gold-light); padding: 4px 10px;
            border-radius: 3px; }

/* Tier badges */
.tier { font-family: -apple-system, sans-serif; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
        padding: 5px 12px; border-radius: 99px; text-transform: uppercase; }
.tier-flagged { background: #fbeaea; color: #a13030; }
.tier-review  { background: #fdf3e3; color: #9a6a12; }
.tier-clear   { background: #eaf5ee; color: #1f7a45; }

/* Footer */
footer { background: var(--navy-deep); color: rgba(255,255,255,0.55); padding: 48px 0; font-family: -apple-system, sans-serif; font-size: 0.85rem; }
footer strong { color: rgba(255,255,255,0.85); }
footer .disclaimer { margin-top: 12px; max-width: 720px; line-height: 1.6; }

/* Table (Dashboard) */
table { width: 100%; border-collapse: collapse; font-family: -apple-system, sans-serif; font-size: 0.9rem; }
th { text-align: left; padding: 12px 14px; background: var(--navy); color: #fff; font-size: 0.75rem;
     text-transform: uppercase; letter-spacing: 0.05em; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:hover td { background: #fbfaf7; }

.stat { text-align: center; }
.stat .num { font-family: Georgia, serif; font-size: 2.6rem; font-weight: 700; color: var(--navy); }
.stat .lbl { font-family: -apple-system, sans-serif; font-size: 0.85rem; color: var(--text); margin-top: 4px; }

@media (max-width: 780px) {
  .nav-links { display: none; }
  section { padding: 64px 0; }
}
