:root {
  --navy: #0A2F4E;
  --navy-light: #1a4a6e;
  --teal: #2A9D8F;
  --teal-light: #5fbcae;
  --gold: #D4A843;
  --gold-light: #e8c876;
  --bg: #FAF8F3;
  --card: #FFFFFF;
  --border: rgba(10,47,78,0.08);
  --text: #2C3E4A;
  --text-dim: #6a7f8c;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* LOGIN */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 48px 40px; width: 100%; max-width: 400px; text-align: center; box-shadow: 0 10px 40px rgba(10,47,78,0.08); }
.login-logo { color: var(--gold); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 8px; font-family: 'Lato', sans-serif; }
.login-title { font-size: 28px; color: var(--navy); font-weight: 500; margin-bottom: 8px; }
.login-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 32px; }
.login-input { width: 100%; padding: 13px 16px; background: #F4F1E9; border: 1px solid var(--border); border-radius: 8px; color: var(--navy); font-size: 15px; outline: none; margin-bottom: 12px; font-family: inherit; }
.login-input:focus { border-color: var(--teal); }
.login-btn { width: 100%; padding: 13px; background: linear-gradient(135deg, var(--teal), var(--navy-light)); color: #fff; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; font-weight: 600; margin-top: 8px; }
.login-btn:disabled { opacity: 0.6; }
.login-err { color: #c0504d; font-size: 13px; margin-top: 12px; min-height: 18px; }

/* SHELL */
.shell { max-width: 960px; margin: 0 auto; padding: 0 20px 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.brand { display: flex; flex-direction: column; }
.brand-eyebrow { color: var(--gold); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; }
.brand-name { font-size: 20px; color: var(--navy); font-weight: 600; }
.topnav { display: flex; gap: 6px; align-items: center; }
.nav-link { padding: 8px 16px; border-radius: 20px; background: transparent; border: none; color: var(--text-dim); font-size: 14px; cursor: pointer; font-family: inherit; }
.nav-link.active { background: rgba(42,157,143,0.12); color: var(--teal); font-weight: 600; }
.nav-signout { color: var(--text-dim); font-size: 13px; background: none; border: none; cursor: pointer; text-decoration: underline; }

/* WELCOME */
.welcome-block { margin-bottom: 32px; }
.welcome-title { font-size: 34px; color: var(--navy); font-weight: 500; margin-bottom: 6px; }
.welcome-sub { font-size: 15px; color: var(--text-dim); }

/* CARDS GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: 0 2px 12px rgba(10,47,78,0.04); }
.card-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.card-value { font-size: 26px; color: var(--navy); font-weight: 600; font-family: 'Cormorant Garamond', serif; }
.card-value.small { font-size: 16px; font-weight: 500; line-height: 1.4; }
.card-desc { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* SECTIONS */
.section-title { font-size: 22px; color: var(--navy); font-weight: 500; margin-bottom: 4px; }
.section-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.section { margin-bottom: 40px; }

/* PLACEHOLDER CARDS (features coming in later phases) */
.placeholder-card { background: linear-gradient(135deg, rgba(212,168,67,0.06), rgba(42,157,143,0.04)); border: 1px dashed rgba(212,168,67,0.3); border-radius: 14px; padding: 22px; text-align: center; }
.placeholder-icon { font-size: 22px; margin-bottom: 8px; }
.placeholder-title { font-size: 15px; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.placeholder-text { font-size: 12px; color: var(--text-dim); }

/* PROTOCOL CARDS */
.protocol-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 20px; box-shadow: 0 2px 16px rgba(10,47,78,0.05); }
.protocol-name { font-size: 26px; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.protocol-assigned { font-size: 12px; color: var(--text-dim); margin-bottom: 20px; }
.protocol-field { margin-bottom: 16px; }
.protocol-field-label { font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin-bottom: 4px; }
.protocol-field-value { font-size: 14px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }
.protocol-scripture { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-style: italic; color: var(--navy); border-left: 3px solid var(--gold); padding-left: 14px; margin: 8px 0; }
.protocol-actions { display: flex; gap: 10px; margin-top: 16px; }
.protocol-btn { padding: 9px 18px; border-radius: 8px; font-size: 13px; border: 1px solid var(--border); background: #F4F1E9; color: var(--text-dim); cursor: not-allowed; }
.protocol-btn[disabled]::after { content: ' (coming soon)'; font-size: 11px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.empty-state-title { font-size: 20px; color: var(--navy); margin-bottom: 8px; font-family: 'Cormorant Garamond', serif; }

@media (max-width: 640px) {
  .welcome-title { font-size: 26px; }
  .topbar { flex-wrap: wrap; gap: 12px; }
  .topnav { order: 3; width: 100%; justify-content: center; }
}
