/* Base theme to unify legacy pages without breaking layout */
:root {
  --primary: #21409a;
  --primary-strong: #1b3380;
  --primary-soft: #2f6fed;
  --accent: #0fbf9f;
  --text: #0f172a;
  --text-muted: #4b5563;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --border: #e5e7eb;
  --radius: 12px;
  --elevation-1: 0 6px 18px rgba(15, 23, 42, 0.07);
  --elevation-2: 0 10px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--surface-2);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: none;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: #fff;
  box-shadow: var(--elevation-1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-strong) 0%, var(--primary) 100%);
  box-shadow: var(--elevation-2);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(33, 64, 154, 0.08);
  color: var(--primary-strong);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem;
  box-shadow: var(--elevation-1);
}

input,
select,
textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33, 64, 154, 0.14);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
}

.section-subtitle {
  margin: 0 0 1rem 0;
  color: var(--text-muted);
  font-weight: 500;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: rgba(33, 64, 154, 0.08);
  color: var(--primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.muted {
  color: var(--text-muted);
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
}

/* Global mobile-friendly overrides */
@import url('/css/mobile.css');
