/* APU Theme Styles — Design Tokens */
:root {
  --color-apu-navy: 19 40 66;
  --color-apu-accent: 252 188 85;
  --color-brand-surface: 255 250 240;
  --color-brand-text-muted: 100 116 139;
}

/* Navigation is styled by Astro build CSS (_astro/NavigationAPU.*.css) */

/* CMS content areas */
.apu-cms-content {
  padding: 2rem 1rem;
  max-width: 860px;
  margin: 120px auto 60px;
}

.apu-cms-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: rgb(var(--color-apu-navy));
}

.apu-cms-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgb(var(--color-apu-navy));
}

.apu-cms-content p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #334155;
  text-align: justify;
}

.apu-cms-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.apu-cms-content figure {
  margin: 1.5rem 0;
}

.apu-cms-content figcaption {
  font-size: .85rem;
  color: #64748b;
  text-align: center;
  margin-top: .5rem;
}

.apu-cms-content blockquote {
  border-left: 3px solid rgb(var(--color-apu-accent));
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #475569;
  font-style: italic;
}

.apu-cms-content a {
  color: rgb(var(--color-apu-navy));
  text-decoration: underline;
  text-decoration-color: rgb(var(--color-apu-accent) / .4);
  text-underline-offset: 2px;
  transition: text-decoration-color .2s;
}

.apu-cms-content a:hover {
  text-decoration-color: rgb(var(--color-apu-accent));
}

.apu-cms-content ul,
.apu-cms-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  list-style: revert;
}

.apu-cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .95rem;
}

.apu-cms-content th,
.apu-cms-content td {
  padding: .75rem 1rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.apu-cms-content th {
  background: rgb(var(--color-apu-navy) / .04);
  font-weight: 600;
  color: rgb(var(--color-apu-navy));
}

.apu-cms-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}

.apu-cms-content code {
  font-family: 'Space Mono', monospace;
  font-size: .9em;
}

.apu-cms-content :not(pre) > code {
  background: #f1f5f9;
  padding: .15em .4em;
  border-radius: 4px;
  color: rgb(var(--color-apu-navy));
}

.apu-cms-content .ql-align-justify {
  text-align: justify;
}

/* Tailwind v4 removed the default container centering (v3 had margin auto).
   CMS controllers output <div class="container"> — re-center it. */
.container {
  margin-inline: auto;
}

/* Neutralize quill.snow.pub.css global "a { text-decoration: underline; color: #06c }"
   outside CMS content — that vendor rule is unlayered and would beat Tailwind v4
   preflight + utilities. Nav links get colors from cid-scoped component styles;
   footer links revert to their layered Tailwind utility values. */
#apu-nav a {
  color: revert-layer;
  text-decoration: none;
}
footer a {
  color: revert-layer;
  text-decoration: revert-layer;
}
