/* GCAIS - Global Council for AI Standards */
/* main.css - Full design system */

:root {
  --color-background: #FFFFFF;
  --color-surface: #F7F8FA;
  --color-border: #D1D5DB;
  --color-navy: #1A2E4A;
  --color-navy-mid: #243B5A;
  --color-charcoal: #374151;
  --color-muted: #6B7280;
  --color-gold: #9A7B2E;
  --color-gold-light: #C9A84C;
  --color-white: #FFFFFF;

  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  --space-section: 80px;
  --max-width: 900px;
  --max-width-wide: 1140px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-charcoal);
  background: var(--color-background);
}

/* Global Nav */
.site-nav {
  background: var(--color-navy);
  color: white;
}

.nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-brand span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  display: block;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-sans);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 16px 24px;
    gap: 12px;
  }
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.8rem;
  }
}

/* Main Content */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

.site-main--wide {
  max-width: var(--max-width-wide);
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,0.85);
  padding: 48px 24px 32px;
  border-top: 2px solid var(--color-gold);
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  line-height: 2;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* Typography */
h1 {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 20px;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-navy-mid);
  margin-bottom: 16px;
  margin-top: 48px;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 12px;
  margin-top: 32px;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-navy);
}

.text-muted {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-muted);
}

.gold-rule {
  border: none;
  border-top: 1px solid var(--color-gold-light);
  margin: 40px 0;
}

/* Hero */
.hero {
  padding: 80px 24px 60px;
  text-align: left;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-charcoal);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.hero-links a {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Standard Card */
.standard-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-navy);
  padding: 24px 28px;
  border-radius: 2px;
}

.standard-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.standard-card p {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 12px;
}

.standard-card a {
  font-size: 0.875rem;
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
}

.standard-card a:hover {
  text-decoration: underline;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .standards-grid {
    grid-template-columns: 1fr;
  }
}

/* Badge Tier Card */
.tier-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 32px;
  border-radius: 2px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.tier-card svg {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.tier-card h3 {
  margin-top: 0;
}

.tier-card ul {
  padding-left: 20px;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.tiers-grid {
  display: grid;
  gap: 20px;
}

/* Disclaimer Box */
.disclaimer-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 24px 32px;
  border-radius: 2px;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 24px;
  font-family: var(--font-sans);
}

.breadcrumb a {
  color: var(--color-navy);
  text-decoration: none;
}

/* Page Header */
.page-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.page-header h1 {
  margin-bottom: 8px;
}

/* Process Steps */
.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: flex-start;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  font-family: var(--font-serif);
}

.step-content h3 {
  margin-top: 0;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Table */
.standards-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.standards-table th {
  background: var(--color-navy);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}

.standards-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}

.standards-table tr:nth-child(even) td {
  background: var(--color-surface);
}

/* Badge Display */
.badge-display {
  text-align: center;
  padding: 40px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2px;
}

.badge-display svg {
  width: 120px;
  height: 120px;
}

.badge-display h3 {
  margin-top: 16px;
  font-size: 1rem;
}

/* Code block */
.embed-code {
  background: #1A2E4A;
  color: #E5E7EB;
  padding: 16px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  overflow-x: auto;
  margin-bottom: 8px;
}

/* Copy button */
.btn-copy {
  background: transparent;
  border: 1px solid var(--color-navy);
  color: var(--color-navy);
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 2px;
}

.btn-copy:hover {
  background: var(--color-navy);
  color: white;
}

/* Directory card */
.directory-card {
  border: 1px solid var(--color-border);
  padding: 24px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.directory-card svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.directory-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.directory-card .meta {
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Utility classes */
.section-spacing {
  margin-top: var(--space-section);
}

.mb-0 {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* Details/Summary FAQ */
details {
  border: 1px solid var(--color-border);
  border-radius: 2px;
  margin-bottom: 8px;
}

details summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--color-gold);
}

details[open] summary::after {
  content: '-';
}

details .details-body {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--color-charcoal);
}

/* Badges grid */
.badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .badges-grid {
    grid-template-columns: 1fr;
  }
}

/* Download section */
.badge-download-item {
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 24px;
  margin-bottom: 24px;
}

.badge-download-item h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

/* Directory grid */
.directory-grid {
  display: grid;
  gap: 16px;
}
