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

html { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface);
  margin: 0;
  line-height: 1.7;
  min-height: 100%;
}

/* Drupal's off-canvas wrapper — make it a flex column so the footer always
   sits at the bottom even when page content is short. */
.dialog-off-canvas-main-canvas {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Drupal admin toolbar offsets min-height so the footer stays fully visible */
body.toolbar-fixed .dialog-off-canvas-main-canvas {
  min-height: calc(100vh - 39px);   /* compact horizontal toolbar */
}
body.toolbar-horizontal.toolbar-tray-open .dialog-off-canvas-main-canvas {
  min-height: calc(100vh - 79px);   /* expanded horizontal toolbar + tray */
}
body.toolbar-vertical .dialog-off-canvas-main-canvas {
  min-height: 100vh;                /* vertical toolbar doesn't add height */
}

/* main grows to fill remaining space between navbar and footer */
.dialog-off-canvas-main-canvas > main,
.dialog-off-canvas-main-canvas .section:not(.site-footer) {
  flex: 1 0 auto;
}

.site-footer { flex-shrink: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--surface-alt); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--wcm-orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}

h1, h2, h3, h4 {
  font-family: var(--font-brand);
  color: var(--text-primary);
  line-height: 1.2;
}

h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}
