/* India Reborn — shared shell stylesheet
   Mirrors design-system.css tokens; small additions for prototype-only chrome. */

:root {
  --paper:         #f5f0e8;
  --paper-rail:    #ede5d9;
  --paper-callout: #f0e6d6;
  --paper-card:    #fbf8f1;
  --ink:           #1a1410;
  --ink-soft:      #3d2f24;
  --ink-muted:     #8a7560;
  --ink-faint:     #b5a594;
  --accent:        #d4541e;
  --accent-deep:   #b8431a;
  --accent-soft:   #f9d9c5;
  --line:          rgba(26,20,16,0.10);
  --line-soft:     rgba(26,20,16,0.05);
  --added-bg:      rgba(19,136,8,0.10);
  --added-fg:      #138808;
  --removed-bg:    rgba(207,34,46,0.08);
  --removed-fg:    #b8341a;
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'JetBrains Mono', Menlo, Consolas, monospace;
  --radius: 2px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; color: inherit; background: none; border: none; }

/* ── nav ────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-l { display: flex; align-items: center; gap: 18px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand em { color: var(--accent); font-style: normal; font-weight: 700; }
.brand-sub {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-muted);
  border-left: 1px solid var(--line); padding-left: 14px;
}
.nav-links { display: flex; gap: 22px; }
.nav-link {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--ink-muted); transition: color .15s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--accent); }
.nav-r { display: flex; align-items: center; gap: 12px; }
.btn-quiet {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.10em; color: var(--ink-muted); padding: 6px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.btn-quiet:hover { color: var(--ink); border-color: var(--ink-soft); }
.btn-primary {
  background: var(--accent); color: #fff; font-family: var(--sans);
  font-weight: 500; font-size: 13px; padding: 9px 16px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  font-family: var(--sans); font-size: 13px; padding: 9px 14px;
  color: var(--ink-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }
.user-pill {
  display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; color: var(--ink-soft);
}
.avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, #c89b6a, #8b5e3c);
  color: var(--paper); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 11px;
}
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }

/* ── footer ─────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 96px; padding: 40px 28px 56px;
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-muted);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.foot strong { color: var(--ink-soft); font-weight: 500; }
.foot a:hover { color: var(--accent); }

/* ── eyebrow / labels ───────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--accent);
}
.label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-muted);
}

/* ── page container ─────────────────────────────────────────────── */
.page { max-width: 1240px; margin: 0 auto; padding: 56px 28px 0; }
.page-narrow { max-width: 760px; margin: 0 auto; padding: 56px 28px 0; }
.page-h {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 4vw, 48px); line-height: 1.1;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.page-sub {
  font-family: var(--serif); font-style: italic; font-size: 19px;
  line-height: 1.5; color: var(--ink-soft); max-width: 60ch; margin-bottom: 36px;
}

/* ── card ───────────────────────────────────────────────────────── */
.card {
  background: var(--paper-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card-row {
  display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.card-row > * { background: var(--paper-card); padding: 22px; }

/* ── status ─────────────────────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono);
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  padding: 3px 8px; border-radius: var(--radius);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-open    { color: #138808; background: rgba(19,136,8,0.10); }
.status-adopted { color: #5b3eaa; background: rgba(130,80,223,0.10); }
.status-rejected{ color: #b8341a; background: rgba(207,34,46,0.10); }
.status-pending { color: #c08818; background: rgba(212,160,23,0.12); }

/* ── slide-over ─────────────────────────────────────────────────── */
.slideover-scrim {
  position: fixed; inset: 0; background: rgba(26,20,16,0.30);
  opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 90;
}
.slideover-scrim.open { opacity: 1; pointer-events: auto; }
.slideover {
  position: fixed; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100%;
  background: var(--paper); border-left: 1px solid var(--line);
  box-shadow: -16px 0 48px rgba(26,20,16,0.10);
  transform: translateX(100%); transition: transform .25s ease-out; z-index: 95;
  display: flex; flex-direction: column;
}
.slideover.open { transform: translateX(0); }
.slideover-h {
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.slideover-body { padding: 20px; overflow-y: auto; flex: 1; }

/* ── mode pills (top centre, faint by default) ──────────────────── */
.mode-pills {
  position: fixed; top: 78px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px;
  background: rgba(245,240,232,0.72); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px;
  transition: opacity .25s, box-shadow .25s; z-index: 50;
}
/* container is fully opaque — let individual pills carry the muted look */
.mode-pill {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.14em; padding: 6px 14px; border-radius: 999px;
  color: var(--ink-muted); opacity: 0.65; transition: opacity .15s, background .15s, color .15s;
  cursor: pointer;
}
.mode-pills:hover .mode-pill { opacity: 1; }
.mode-pill:hover { color: var(--ink); opacity: 1; }
/* active pill: warm accent fill instead of harsh ink — keeps text readable */
.mode-pill.active {
  background: var(--accent); color: #fff; opacity: 1;
  box-shadow: 0 1px 2px rgba(192,86,33,0.25);
}
.mode-pill.active kbd { border-color: rgba(255,255,255,0.55); opacity: 0.75; }
.mode-pill kbd {
  font-family: var(--mono); font-size: 9px; padding: 1px 4px;
  border: 1px solid currentColor; border-radius: 2px; opacity: 0.55;
  margin-left: 6px; vertical-align: 1px;
}

/* ── responsive ─────────────────────────────────────────────────── */
@media (max-width: 780px) {
  .nav { padding: 12px 18px; gap: 12px; flex-wrap: wrap; }
  .nav-links { gap: 14px; flex-wrap: wrap; }
  .brand-sub { display: none; }
  .page, .page-narrow { padding: 36px 18px 0; }
  .slideover { width: 100%; }
  .mode-pills { top: auto; bottom: 18px; }
}
