/* Via One brand customizations */

:root {
  --md-primary-fg-color: #1e3a8a;
  --md-primary-fg-color--light: #3b82f6;
  --md-primary-fg-color--dark: #1e40af;
  --md-accent-fg-color: #2563eb;
}

/* Download PDF button */
.download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  margin: 16px 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.download-pdf:hover {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.download-pdf::before {
  content: "📥";
  font-size: 1.2em;
}

/* Manual cards on the index page */
.manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.manual-card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  padding: 20px;
  background: var(--md-default-bg-color);
  transition: all 0.2s ease;
}

.manual-card:hover {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.manual-card h3 {
  margin-top: 0;
  color: var(--md-primary-fg-color);
}

.manual-card .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 600;
  margin-right: 6px;
}

.badge-internal { background: #dbeafe; color: #1e40af; }
.badge-partner  { background: #d1fae5; color: #065f46; }
.badge-public   { background: #fef3c7; color: #92400e; }
.badge-bilingual { background: #ede9fe; color: #5b21b6; }
.badge-en { background: #f1f5f9; color: #0f172a; font-family: monospace; }
.badge-es { background: #f1f5f9; color: #0f172a; font-family: monospace; }

/* Code blocks more readable */
.md-typeset code {
  font-size: 0.85em;
}

/* Hero section on home page */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  border-radius: 12px;
  margin-bottom: 32px;
}

.hero h1 {
  color: white !important;
  font-size: 2.5em;
  margin: 0;
}

.hero p {
  font-size: 1.1em;
  opacity: 0.9;
  margin-top: 8px;
}

/* Make tables full width */
.md-typeset table:not([class]) {
  display: table;
  width: 100%;
}
