/* The XML Toolkit — Modern Stylesheet */
:root {
  --primary:        #1e3a5f;
  --primary-hover:  #2a5080;
  --accent:         #4a7c3f;
  --accent-hover:   #3a6030;
  --bg:             #f0f2f5;
  --card-bg:        #ffffff;
  --banner-bg:      #d5e085;
  --text:           #333344;
  --text-muted:     #5a6070;
  --border:         #d0d8e0;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:      0 4px 12px rgba(0,0,0,0.12);
  --radius:         6px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

/* ── PAGE WRAPPER ─────────────────────────────────────────── */
#page {
  max-width: 980px;
  margin: 0 auto;
  background: var(--card-bg);
  box-shadow: var(--shadow-md);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── BANNER ───────────────────────────────────────────────── */
#banner {
  background: var(--banner-bg);
  padding: 18px 32px 14px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 3px solid var(--primary);
}

#banner .brand-logo img { height: 52px; width: auto; display: block; }

#banner .brand-title { flex: 1; }
#banner .brand-title h1 {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
#banner .brand-title h1 a { color: inherit; text-decoration: none; }
#banner .brand-title h1 a:hover { text-decoration: underline; }

#banner .banner-graphics { display: flex; gap: 4px; align-items: center; }
#banner .banner-graphics img { height: 52px; width: auto; }

/* ── NAV ──────────────────────────────────────────────────── */
nav#site-nav { background: var(--primary); }

nav#site-nav ul { list-style: none; display: flex; flex-wrap: wrap; }

nav#site-nav ul li a {
  display: block;
  padding: 11px 15px;
  color: #b8c8d8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
nav#site-nav ul li a:hover,
nav#site-nav ul li.active a {
  background: var(--accent);
  color: #fff;
}

/* ── MAIN CONTENT ─────────────────────────────────────────── */
main { flex: 1; padding: 32px 36px; }

.page-header {
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.page-header h1 {
  font-size: 1.7rem;
  color: var(--primary);
  font-weight: 700;
}

.intro-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.intro-text a { color: var(--accent); }
.intro-text strong { color: var(--text); }

/* ── SECTION CARDS (homepage) ─────────────────────────────── */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.section-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--shadow-sm);
}
.section-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.section-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
.section-card h2 a { color: inherit; text-decoration: none; }
.section-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.section-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── RESOURCE LIST (tools / tips / guides) ────────────────── */
.resource-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }

.resource-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.resource-card:hover { box-shadow: var(--shadow-md); }
.resource-card h2 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.resource-card h2 a { color: var(--primary); text-decoration: none; }
.resource-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.resource-card p { font-size: 0.875rem; color: var(--text-muted); margin: 0; line-height: 1.65; }
.resource-card p a { color: var(--accent); font-size: 0.85em; }
.resource-card p a:hover { text-decoration: underline; }

/* ── APPROACH CARDS (gettingstarted / environment sub-sections) */
.approach-list { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }

.approach-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.approach-card:hover { box-shadow: var(--shadow-md); }
.approach-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.approach-card h2 a { color: inherit; text-decoration: none; }
.approach-card h2 a:hover { color: var(--accent); text-decoration: underline; }
.approach-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 12px 0; line-height: 1.7; }
.approach-card .download-link {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.approach-card .download-link:hover { background: var(--accent-hover); color: #fff; }

/* ── DOWNLOAD BOX ─────────────────────────────────────────── */
.download-box {
  background: #eef3f8;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 24px;
}
.download-box h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 10px;
}
.download-box a {
  display: block;
  padding: 5px 0;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
}
.download-box a:hover { text-decoration: underline; }
.download-box a::before { content: '\2193\00a0'; font-weight: 700; }

/* ── DIAGRAM IMAGES ───────────────────────────────────────── */
.diagram-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span::before { content: ' \203A '; }

/* ── CALLOUT ──────────────────────────────────────────────── */
.callout {
  background: #eef3f8;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.callout a { color: var(--accent); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--primary);
  color: #8899aa;
  text-align: center;
  padding: 16px 32px;
  font-size: 0.8rem;
  line-height: 1.8;
}
footer a { color: #aabbc8; text-decoration: none; }
footer a:hover { text-decoration: underline; color: #ccdde8; }
.award-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 4px 12px;
  margin-bottom: 6px;
  font-size: 0.75rem;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 680px) {
  #banner { flex-wrap: wrap; padding: 14px 20px; gap: 12px; }
  #banner .banner-graphics { display: none; }
  #banner .brand-title h1 { font-size: 1.25rem; letter-spacing: 2px; }
  nav#site-nav ul li a { padding: 9px 10px; font-size: 0.75rem; }
  main { padding: 22px 18px; }
  .section-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 1.35rem; }
}

@media print {
  #banner .banner-graphics { display: none; }
  nav#site-nav { display: none; }
  footer { background: none; color: #333; }
  .section-card, .resource-card, .approach-card { box-shadow: none; border: 1px solid #ccc; }
}
