/*
 * Robot Labor Union — Visual System Foundation
 * Step 2 / 2026-08-05
 *
 * This stylesheet is intentionally loaded after the compiled Astro CSS.
 * It changes presentation only. Existing content, document order, URLs,
 * metadata, form contracts, and machine-readable resources remain frozen.
 */

:root {
  color-scheme: dark;

  /* Core palette — derived from the pre-redesign robotlabor.org visual style. */
  --rlu-bg: #0d1117;
  --rlu-bg-deep: #0b1016;
  --rlu-bg-soft: #101720;
  --rlu-surface: #121a24;
  --rlu-surface-elevated: #131c27;
  --rlu-surface-strong: #152132;
  --rlu-surface-hover: #182536;
  --rlu-text: #f3f4f6;
  --rlu-text-secondary: #c8d0d8;
  --rlu-text-muted: #95a1ad;
  --rlu-heading: #ffffff;
  --rlu-accent: #8fb3ff;
  --rlu-accent-strong: #bfd2ff;
  --rlu-accent-soft: rgba(143, 179, 255, 0.14);
  --rlu-accent-soft-strong: rgba(143, 179, 255, 0.22);
  --rlu-border: rgba(255, 255, 255, 0.1);
  --rlu-divider: rgba(255, 255, 255, 0.08);
  --rlu-border-strong: rgba(191, 210, 255, 0.24);
  --rlu-focus: #a9c6ff;
  --rlu-notice: #d7b56d;
  --rlu-notice-soft: rgba(215, 181, 109, 0.12);
  --rlu-closed: #aeb9c8;
  --rlu-closed-soft: rgba(174, 185, 200, 0.1);

  /* Stable system font stack; no external font download is required. */
  --rlu-font-sans: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
  --rlu-font-serif: "Iowan Old Style", "Palatino Linotype", Palatino,
    "Noto Serif", Georgia, serif;
  --rlu-font-mono: ui-monospace, "SFMono-Regular", Consolas,
    "Liberation Mono", Menlo, monospace;

  /* Type scale. */
  --rlu-text-xs: 0.75rem;
  --rlu-text-sm: 0.875rem;
  --rlu-text-base: 1rem;
  --rlu-text-lg: 1.125rem;
  --rlu-text-xl: 1.25rem;
  --rlu-text-2xl: 1.5rem;
  --rlu-text-3xl: 2rem;
  --rlu-text-4xl: 2.75rem;
  --rlu-text-5xl: 3.75rem;

  /* Shape and elevation. */
  --rlu-radius-sm: 0.5rem;
  --rlu-radius-md: 0.75rem;
  --rlu-radius-lg: 0.95rem;
  --rlu-radius-xl: 1.2rem;
  --rlu-radius-pill: 999px;
  --rlu-shadow-card: 0 12px 36px rgba(0, 0, 0, 0.2);
  --rlu-shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.28);
  --rlu-shadow-focus: 0 0 0 4px rgba(169, 198, 255, 0.24);

  /* Layout. */
  --rlu-content-max: 75rem;
  --rlu-wide-max: 88rem;
  --rlu-reading-max: 48rem;
  --rlu-section-gap: clamp(3.5rem, 8vw, 6.5rem);

  /* Compatibility aliases used by the compiled site. */
  --color-union-black: var(--rlu-bg-deep);
  --color-union-black-2: var(--rlu-bg-soft);
  --color-union-black-3: var(--rlu-surface-strong);
  --color-archive-white: var(--rlu-text);
  --color-paper-white: var(--rlu-surface);
  --color-steel-silver: var(--rlu-text-secondary);
  --color-document-gray: var(--rlu-text-muted);
  --color-ink-gray: var(--rlu-text-secondary);
  --color-labor-red: var(--rlu-accent);
  --color-labor-red-dark: var(--rlu-accent-strong);
  --color-status-amber: var(--rlu-notice);
  --color-status-amber-pale: var(--rlu-notice-soft);
  --color-border-dark: var(--rlu-border);
  --color-border-light: var(--rlu-border);
  --font-display: var(--rlu-font-sans);
  --font-body: var(--rlu-font-sans);
  --font-mono: var(--rlu-font-mono);
  --radius-small: var(--rlu-radius-sm);
  --radius-medium: var(--rlu-radius-md);
  --radius-large: var(--rlu-radius-xl);
  --shadow-raised: var(--rlu-shadow-card);
  --shadow-dark-raised: var(--rlu-shadow-soft);
  --content-max: var(--rlu-content-max);
  --reading-max: var(--rlu-reading-max);
  --wide-max: var(--rlu-wide-max);
}

html {
  background: var(--rlu-bg-deep);
  color-scheme: dark;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 0%, rgba(143, 179, 255, 0.11), transparent 27rem),
    radial-gradient(circle at 5% 42rem, rgba(143, 179, 255, 0.055), transparent 34rem),
    linear-gradient(180deg, var(--rlu-bg-deep) 0%, var(--rlu-bg) 32rem, var(--rlu-bg) 100%);
  color: var(--rlu-text);
  font-family: var(--rlu-font-sans);
  font-size: var(--rlu-text-base);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(143, 179, 255, 0.28);
  color: var(--rlu-heading);
}

:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid var(--rlu-focus);
  outline-offset: 3px;
  box-shadow: var(--rlu-shadow-focus);
}

body a {
  color: var(--rlu-accent-strong);
  text-decoration-color: rgba(191, 210, 255, 0.45);
  text-underline-offset: 0.18em;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease,
    transform 160ms ease;
}

body a:hover {
  color: var(--rlu-heading);
  text-decoration-color: currentColor;
}

body h1,
body h2,
body h3,
body h4 {
  color: var(--rlu-heading);
  font-family: var(--rlu-font-sans);
  font-weight: 700;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

body h1 {
  font-size: clamp(2.5rem, 6vw, var(--rlu-text-5xl));
  line-height: 1.04;
}

body h2 {
  font-size: clamp(1.7rem, 3.8vw, var(--rlu-text-3xl));
  line-height: 1.14;
}

body h3 {
  font-size: clamp(1.15rem, 2.4vw, var(--rlu-text-xl));
  line-height: 1.25;
}

body p,
body li,
body dd {
  color: var(--rlu-text-secondary);
}

body .lead {
  color: var(--rlu-text-secondary);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
}

body .meta,
body .section-label,
body .page-hero__eyebrow,
body .list-section__eyebrow,
body .statement-panel__eyebrow,
body .machine-resource__label,
body .empty-state__eyebrow,
body .source-label,
body .document-card__type,
body .document-header__type,
body .document-header__notice {
  color: var(--rlu-text-muted);
  font-family: var(--rlu-font-sans);
  font-size: var(--rlu-text-xs);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body code,
body pre,
body .machine-resource__path,
body .format-badge {
  font-family: var(--rlu-font-mono);
}

body .container,
body .breadcrumbs ol {
  width: min(100% - 2rem, var(--rlu-content-max));
}

body .container--wide {
  width: min(100% - 2rem, var(--rlu-wide-max));
}

body .container--reading {
  width: min(100% - 2rem, var(--rlu-reading-max));
}

/* Continuous dark page surface. */
body .site-main,
body .main-content,
body .page-content {
  background: transparent;
  color: var(--rlu-text);
}

body .page-content {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

body .page-modules,
body .home-modules,
body .about-modules,
body .articles-modules,
body .document-modules,
body .governance-modules,
body .legal-modules,
body .machine-modules,
body .participation-modules,
body .principles-modules,
body .transparency-modules {
  gap: var(--rlu-section-gap);
}

/* Breadcrumbs are quiet navigation, not a white document strip. */
body .breadcrumbs {
  background: rgba(11, 16, 22, 0.72);
  border-color: var(--rlu-divider);
  color: var(--rlu-text-muted);
  backdrop-filter: blur(10px);
}

body .breadcrumbs a {
  color: var(--rlu-text-secondary);
}

body .breadcrumbs .separator {
  color: rgba(200, 208, 216, 0.42);
}

/* General page hero foundation. Full structural refinement belongs to Step 3/4. */
body .page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(143, 179, 255, 0.12), transparent 24rem),
    linear-gradient(145deg, rgba(19, 28, 39, 0.95), rgba(11, 16, 22, 0.98));
  border-color: var(--rlu-divider);
  color: var(--rlu-text);
}

body .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(var(--rlu-divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--rlu-divider) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 78%);
}

body .page-hero__inner {
  border-left: 0;
  padding-left: 0;
}

body .page-hero__eyebrow,
body .section-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  padding: 0.36rem 0.68rem;
  border: 1px solid rgba(143, 179, 255, 0.22);
  border-radius: var(--rlu-radius-pill);
  background: rgba(143, 179, 255, 0.1);
  color: var(--rlu-accent-strong);
}

body .page-hero__function {
  color: var(--rlu-text-muted);
}

/* Buttons. */
body .button,
body .button-link,
body .hero-actions .button {
  min-height: 46px;
  border: 1px solid rgba(143, 179, 255, 0.36);
  border-radius: var(--rlu-radius-pill);
  background: var(--rlu-accent-soft-strong);
  color: var(--rlu-heading);
  box-shadow: none;
  padding-inline: 1.1rem;
  font-family: var(--rlu-font-sans);
  font-weight: 650;
  letter-spacing: 0;
}

body .button:hover,
body .button-link:hover,
body .hero-actions .button:hover {
  border-color: rgba(191, 210, 255, 0.58);
  background: rgba(143, 179, 255, 0.29);
  color: var(--rlu-heading);
  transform: translateY(-1px);
}

body .button--secondary,
body .hero-actions .button--secondary {
  border-color: var(--rlu-border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--rlu-text);
}

body .button--text,
body .hero-actions .button--text {
  border-color: transparent;
  background: transparent;
  color: var(--rlu-accent-strong);
  padding-inline: 0.45rem;
}

/* Reusable card language. */
body :is(
  .mission-panel,
  .definition-block,
  .document-card,
  .principle-card,
  .mechanism-card,
  .record-role-card,
  .governance-stage,
  .machine-resource,
  .empty-state,
  .participation-status,
  .participation-preview__planned,
  .status-notice,
  .statement-panel,
  .article-empty,
  .article-card,
  .source-directory__item,
  .contact-panel,
  .contact-panel__aside,
  .version-notice,
  .revision-notice,
  .current-governance,
  .decision-records,
  .field-inventory,
  .revision-metadata
) {
  border-color: var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.96), rgba(16, 23, 32, 0.98));
  color: var(--rlu-text);
  box-shadow: var(--rlu-shadow-card);
}

body :is(
  .mission-panel,
  .definition-block,
  .document-card,
  .article-empty,
  .revision-notice
) {
  border-top: 1px solid var(--rlu-border-strong);
  border-left: 1px solid var(--rlu-border);
}

body .statement-panel--dark {
  background:
    radial-gradient(circle at 92% 0%, rgba(143, 179, 255, 0.12), transparent 18rem),
    linear-gradient(140deg, #101923, #0b1118);
  border: 1px solid var(--rlu-border-strong);
  color: var(--rlu-text);
}

body .statement-panel--paper,
body .statement-panel--amber {
  background: linear-gradient(180deg, rgba(21, 33, 50, 0.95), rgba(18, 26, 36, 0.98));
  color: var(--rlu-text);
}

body .statement-panel--amber {
  border-color: rgba(215, 181, 109, 0.24);
}

body .statement-panel--paper p,
body .statement-panel--paper li,
body .statement-panel--amber p,
body .statement-panel--amber li,
body .statement-panel--dark p,
body .statement-panel--dark li {
  color: var(--rlu-text-secondary);
}

/* Definition and document display typography. */
body .definition-block__source,
body .document-card__type {
  color: var(--rlu-text-muted);
}

body .definition-block__text {
  color: var(--rlu-heading);
  font-family: var(--rlu-font-sans);
  font-weight: 550;
  line-height: 1.55;
}

body .document-card dl,
body .document-metadata,
body .summary-grid,
body .format-overview__grid,
body .source-directory__grid,
body .field-inventory,
body .revision-metadata {
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: var(--rlu-divider);
  overflow: hidden;
  gap: 1px;
}

body .document-card dl > div,
body .document-metadata > div,
body .summary-grid > *,
body .format-overview__grid > *,
body .source-directory__item,
body .field-inventory > div,
body .revision-metadata > div {
  background: var(--rlu-surface);
}

body dt,
body .meta-label {
  color: var(--rlu-text-muted);
}

body dd,
body .meta-value {
  color: var(--rlu-text);
}

/* Status and source labels. */
body .status-badge,
body .format-badge,
body .source-label__badge,
body .tag-list li {
  min-height: 2rem;
  border: 1px solid rgba(143, 179, 255, 0.22);
  border-radius: var(--rlu-radius-pill);
  background: rgba(143, 179, 255, 0.09);
  color: var(--rlu-text-secondary);
  font-family: var(--rlu-font-sans);
  font-size: var(--rlu-text-xs);
  font-weight: 650;
  letter-spacing: 0.02em;
}

body .status-badge--current,
body .status-badge--planned,
body .status-badge--document {
  border-color: rgba(143, 179, 255, 0.4);
  background: rgba(143, 179, 255, 0.16);
  color: var(--rlu-accent-strong);
}

body .status-badge--closed {
  border-color: rgba(174, 185, 200, 0.22);
  background: var(--rlu-closed-soft);
  color: var(--rlu-closed);
}

body .status-notice {
  border-left: 1px solid var(--rlu-border-strong);
}

body .status-notice--current {
  border-color: rgba(143, 179, 255, 0.36);
  background: rgba(143, 179, 255, 0.1);
}

body .status-notice--closed,
body .status-notice--neutral {
  border-color: var(--rlu-border);
  background: rgba(174, 185, 200, 0.065);
}

/* Lists and numbered systems. */
body .list-section,
body .publication-scope,
body .source-directory,
body .foundational-records,
body .human-participation,
body .distinctions,
body .record-role-guide,
body .mechanisms,
body .authority-notice,
body .format-overview {
  border-color: var(--rlu-divider);
}

body .list-section__items,
body .principle-list,
body .governance-stages,
body .mechanisms__grid,
body .record-role-guide__grid,
body .resource-list {
  gap: 1rem;
}

body .principle-card__number,
body .mechanism-card__number,
body .governance-stage__number {
  color: var(--rlu-accent-strong);
  font-family: var(--rlu-font-sans);
  font-size: var(--rlu-text-xs);
  font-weight: 750;
  letter-spacing: 0.06em;
}

body .governance-stage--current {
  border-color: rgba(143, 179, 255, 0.32);
  background: linear-gradient(180deg, rgba(21, 33, 50, 0.98), rgba(18, 26, 36, 0.98));
}

/* Machine-readable resource cards. */
body .machine-resource {
  border: 1px solid var(--rlu-border);
}

body .machine-resource__path,
body .machine-resource__path code {
  color: var(--rlu-accent-strong);
}

body .machine-resource__human {
  color: var(--rlu-text-muted);
}

/* Forms. */
body input,
body textarea,
body select {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.035);
  color: var(--rlu-text);
  caret-color: var(--rlu-accent-strong);
}

body input:hover,
body textarea:hover,
body select:hover {
  border-color: rgba(191, 210, 255, 0.25);
}

body input::placeholder,
body textarea::placeholder {
  color: #7f8b98;
}

body select option {
  background: var(--rlu-bg-soft);
  color: var(--rlu-text);
}

body .form-notice,
body .form-sensitive,
body .form-status {
  border-radius: var(--rlu-radius-md);
  border-color: var(--rlu-border);
  background: rgba(143, 179, 255, 0.075);
  color: var(--rlu-text-secondary);
}

body .form-notice--warning {
  border-color: rgba(215, 181, 109, 0.26);
  background: var(--rlu-notice-soft);
}

/* Related navigation. */
body .related-links {
  border-color: var(--rlu-divider);
}

body .related-links h2 {
  color: var(--rlu-text-muted);
  font-family: var(--rlu-font-sans);
}

body .related-links a,
body .module-link a,
body .faq-item__link {
  color: var(--rlu-accent-strong);
  font-weight: 600;
}

/* Formal document view: dark surround, calm reading surface. */
body .document-shell {
  background:
    radial-gradient(circle at 85% 5%, rgba(143, 179, 255, 0.08), transparent 28rem),
    var(--rlu-bg-soft);
}

body .document-paper {
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: var(--rlu-surface);
  color: var(--rlu-text);
  box-shadow: var(--rlu-shadow-soft);
  overflow: hidden;
}

body .document-header {
  border-top: 1px solid var(--rlu-border-strong);
  border-bottom: 1px solid var(--rlu-divider);
  background:
    radial-gradient(circle at 95% 0%, rgba(143, 179, 255, 0.1), transparent 20rem),
    var(--rlu-surface-elevated);
}

body .document-body,
body .document-introduction,
body .document-metadata,
body .document-toc__mobile,
body .revision-notice,
body .version-notice {
  color: var(--rlu-text);
}

body .document-body h2,
body .document-introduction,
body .document-related,
body .record-related,
body .document-toc__mobile nav {
  border-color: var(--rlu-divider);
}

body .document-toc__desktop {
  border-color: var(--rlu-border-strong);
}

body .document-toc a {
  color: var(--rlu-text-secondary);
}

body .document-toc a:hover,
body .document-toc a:focus-visible {
  border-left-color: var(--rlu-accent);
  color: var(--rlu-heading);
}

body .prose blockquote {
  border-left: 3px solid var(--rlu-accent);
  border-radius: 0 var(--rlu-radius-md) var(--rlu-radius-md) 0;
  background: rgba(143, 179, 255, 0.075);
}

body .prose h2,
body .prose h3,
body .prose strong {
  color: var(--rlu-heading);
}

/* Footer base palette. Detailed layout remains a Step 3 task. */
body .site-footer {
  border-top: 1px solid var(--rlu-border-strong);
  background:
    radial-gradient(circle at 15% 0%, rgba(143, 179, 255, 0.08), transparent 25rem),
    var(--rlu-bg-deep);
  color: var(--rlu-text);
}

body .site-footer p,
body .site-footer li,
body .site-footer .status {
  color: var(--rlu-text-muted);
}

body .site-footer a {
  color: var(--rlu-text-secondary);
}

body .site-footer a:hover {
  color: var(--rlu-heading);
}

body .footer-bottom {
  border-color: var(--rlu-divider);
  color: var(--rlu-text-muted);
}

/* Responsive refinements for the foundation layer. */
@media (max-width: 860px) {
  body .document-paper {
    border-radius: 0;
    border-inline: 0;
  }

  body .page-hero::before {
    background-size: 56px 56px;
    opacity: 0.22;
  }
}

@media (max-width: 620px) {
  body .container,
  body .container--wide,
  body .container--reading,
  body .breadcrumbs ol {
    width: min(100% - 1.25rem, var(--rlu-content-max));
  }

  body .page-content {
    padding-block: 2.75rem;
  }

  body :is(
    .mission-panel,
    .definition-block,
    .document-card,
    .principle-card,
    .mechanism-card,
    .record-role-card,
    .governance-stage,
    .machine-resource,
    .empty-state,
    .participation-status,
    .participation-preview__planned,
    .status-notice,
    .statement-panel,
    .article-empty,
    .article-card,
    .contact-panel,
    .contact-panel__aside
  ) {
    border-radius: var(--rlu-radius-md);
  }
}

@media (prefers-reduced-motion: reduce) {
  body a,
  body .button,
  body .button-link {
    transition: none;
  }
}

/* Specificity bridge for compiled Astro selectors (class + scope attribute). */
body .status-strip .status-strip__label {
  color: var(--rlu-text-muted);
  font-family: var(--rlu-font-sans);
  font-weight: 650;
}

body .status-strip .status-strip__statement {
  color: var(--rlu-text-secondary);
}

body .status-badge.status-badge {
  border-color: rgba(143, 179, 255, 0.22);
  border-radius: var(--rlu-radius-pill);
  background: rgba(143, 179, 255, 0.09);
  color: var(--rlu-text-secondary);
  font-family: var(--rlu-font-sans);
  font-weight: 650;
}

body .status-badge.status-badge--current,
body .status-badge.status-badge--planned,
body .status-badge.status-badge--document {
  border-color: rgba(143, 179, 255, 0.4);
  background: rgba(143, 179, 255, 0.16);
  color: var(--rlu-accent-strong);
}

body .status-badge.status-badge--closed {
  border-color: rgba(174, 185, 200, 0.22);
  background: var(--rlu-closed-soft);
  color: var(--rlu-closed);
}

body .button.button,
body .button-link.button-link {
  border-color: rgba(143, 179, 255, 0.36);
  border-radius: var(--rlu-radius-pill);
  background: var(--rlu-accent-soft-strong);
  color: var(--rlu-heading);
}

body .button.button--secondary {
  border-color: var(--rlu-border-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--rlu-text);
}

body .button.button--text {
  border-color: transparent;
  background: transparent;
  color: var(--rlu-accent-strong);
}

body .document-shell.document-shell {
  background:
    radial-gradient(circle at 85% 5%, rgba(143, 179, 255, 0.08), transparent 28rem),
    var(--rlu-bg-soft);
}

body .document-paper.document-paper {
  border-color: var(--rlu-border);
  background: var(--rlu-surface);
}

body .document-header.document-header,
body .document-record .document-header.document-header {
  border-top-color: var(--rlu-border-strong);
  border-bottom-color: var(--rlu-divider);
  background:
    radial-gradient(circle at 95% 0%, rgba(143, 179, 255, 0.1), transparent 20rem),
    var(--rlu-surface-elevated);
}

/* ========================================================================== 
   Step 3 — Global public framework
   3-1 Header / navigation / utility status / transitional status strip
   3-2 Breadcrumbs / standard page hero / shared spacing / footer
   Presentation-only overrides; content, document order, links, metadata,
   forms, and machine-readable resources remain unchanged.
   ========================================================================== */

/* Shared public-frame gutters keep navigation, heroes, content, and footer
   visually aligned without changing any existing content containers. */
body .header-inner,
body .status-strip__inner,
body .footer-grid,
body .footer-bottom {
  width: min(calc(100% - 3rem), var(--rlu-content-max));
}

/* --------------------------------------------------------------------------
   3-1 Header and navigation
   -------------------------------------------------------------------------- */
body .site-header.site-header {
  z-index: 200;
  top: 0;
  border-bottom: 1px solid var(--rlu-divider);
  background: rgba(11, 16, 22, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

body .site-header .header-inner {
  min-height: 76px;
  gap: clamp(0.85rem, 1.8vw, 1.45rem);
  margin-inline: auto;
}

body .site-header .brand {
  flex: 0 0 auto;
  min-height: 48px;
  border-radius: var(--rlu-radius-sm);
}

body .site-header .brand .site-logo {
  width: clamp(10.75rem, 15vw, 12.75rem);
}

body .site-header .desktop-nav {
  margin-left: auto;
}

body .site-header .primary-nav {
  align-items: center;
  gap: 0.18rem;
}

body .site-header .primary-nav a {
  position: relative;
  min-height: 42px;
  padding: 0.55rem 0.68rem;
  border: 0;
  border-radius: var(--rlu-radius-pill);
  color: var(--rlu-text-secondary);
  font-family: var(--rlu-font-sans);
  font-size: 0.86rem;
  font-weight: 570;
  line-height: 1;
  text-decoration: none;
}

body .site-header .primary-nav a::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: 0.32rem;
  left: 0.85rem;
  height: 1px;
  border-radius: var(--rlu-radius-pill);
  background: transparent;
  transform: scaleX(0.35);
  transition: background-color 160ms ease, transform 160ms ease;
}

body .site-header .primary-nav a:hover {
  border: 0;
  background: rgba(255, 255, 255, 0.045);
  color: var(--rlu-heading);
  text-decoration: none;
}

body .site-header .primary-nav a:hover::after {
  background: rgba(191, 210, 255, 0.46);
  transform: scaleX(1);
}

body .site-header .primary-nav a[aria-current="page"] {
  border: 0;
  background: rgba(143, 179, 255, 0.12);
  color: var(--rlu-heading);
  text-decoration: none;
}

body .site-header .primary-nav a[aria-current="page"]::after {
  background: var(--rlu-accent);
  transform: scaleX(1);
}

body .site-header .utility {
  flex: 0 0 auto;
  flex-direction: row;
  align-items: stretch;
  gap: 0.45rem;
  color: var(--rlu-text-muted);
  font-family: var(--rlu-font-sans);
  font-size: 0.65rem;
}

body .site-header .utility span {
  min-width: 3.25rem;
  align-content: center;
  gap: 0.03rem;
  padding: 0.38rem 0.56rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.025);
}

body .site-header .utility span:last-child {
  min-width: 10.25rem;
}

body .site-header .utility strong {
  color: var(--rlu-text-secondary);
  font-size: 0.66rem;
  font-weight: 650;
  line-height: 1.25;
}

body .site-header .utility small {
  color: var(--rlu-text-muted);
  font-size: 0.58rem;
  line-height: 1.25;
}

body .site-header .mobile-nav {
  margin-left: auto;
}

body .mobile-menu.mobile-menu {
  z-index: 210;
}

body .mobile-menu summary {
  min-width: 7.2rem;
  min-height: 44px;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--rlu-border-strong);
  border-radius: var(--rlu-radius-pill);
  background: rgba(255, 255, 255, 0.035);
  color: var(--rlu-text);
  font-family: var(--rlu-font-sans);
  font-size: 0.84rem;
  font-weight: 620;
}

body .mobile-menu summary:hover {
  border-color: rgba(191, 210, 255, 0.42);
  background: rgba(143, 179, 255, 0.09);
}

body .mobile-menu summary::after {
  margin-left: 0;
  color: var(--rlu-accent-strong);
  font-family: var(--rlu-font-sans);
  font-size: 1rem;
  font-weight: 400;
}

body .mobile-menu nav {
  top: calc(100% + 0.65rem);
  width: min(22rem, calc(100vw - 1.25rem));
  max-height: calc(100dvh - 6rem);
  padding: 0.55rem;
  border: 1px solid var(--rlu-border-strong);
  border-radius: var(--rlu-radius-lg);
  background: rgba(16, 23, 32, 0.98);
  box-shadow: var(--rlu-shadow-soft);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

body .mobile-menu a {
  min-height: 46px;
  padding: 0.62rem 0.78rem;
  border: 0;
  border-radius: var(--rlu-radius-md);
  color: var(--rlu-text-secondary);
  font-size: 0.92rem;
  font-weight: 570;
  text-decoration: none;
}

body .mobile-menu a:hover,
body .mobile-menu a:focus-visible,
body .mobile-menu a[aria-current="page"] {
  border: 0;
  background: rgba(143, 179, 255, 0.11);
  color: var(--rlu-heading);
  text-decoration: none;
}

body .mobile-menu a[aria-current="page"] {
  box-shadow: inset 2px 0 0 var(--rlu-accent);
}

body .mobile-menu .mobile-menu__divider {
  height: 1px;
  margin: 0.45rem 0.65rem;
  background: var(--rlu-divider);
}

/* Transitional Organization strip: informative but subordinate to the header. */
body .status-strip.status-strip {
  border-bottom: 1px solid var(--rlu-divider);
  background:
    linear-gradient(90deg, rgba(143, 179, 255, 0.055), transparent 42%),
    rgba(14, 21, 30, 0.92);
  color: var(--rlu-text-secondary);
}

body .status-strip .status-strip__inner {
  min-height: 50px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem 1.25rem;
  padding-block: 0.55rem;
  margin-inline: auto;
}

body .status-strip .status-strip__label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.48rem;
  margin: 0;
  color: var(--rlu-accent-strong);
  font-size: 0.69rem;
  font-weight: 680;
  letter-spacing: 0.075em;
  line-height: 1.25;
}

body .status-strip .status-strip__label::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border: 1px solid rgba(191, 210, 255, 0.48);
  border-radius: 50%;
  background: rgba(143, 179, 255, 0.3);
  box-shadow: 0 0 0 4px rgba(143, 179, 255, 0.07);
}

body .status-strip .status-strip__statement {
  margin: 0;
  color: var(--rlu-text-secondary);
  font-size: 0.87rem;
  line-height: 1.45;
}

body .status-strip a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.72rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-pill);
  background: rgba(255, 255, 255, 0.025);
  color: var(--rlu-accent-strong);
  font-size: 0.79rem;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
}

body .status-strip a:hover {
  border-color: var(--rlu-border-strong);
  background: rgba(143, 179, 255, 0.09);
  color: var(--rlu-heading);
}

/* --------------------------------------------------------------------------
   3-2 Breadcrumbs, standard page hero, shared spacing, and footer
   -------------------------------------------------------------------------- */
body .breadcrumbs.breadcrumbs {
  border-bottom: 1px solid var(--rlu-divider);
  background: rgba(13, 17, 23, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body .breadcrumbs ol {
  min-height: 46px;
  align-items: center;
  gap: 0.42rem;
  margin-inline: auto;
  padding-block: 0.68rem;
  color: var(--rlu-text-muted);
  font-family: var(--rlu-font-sans);
  font-size: 0.76rem;
  font-weight: 560;
  line-height: 1.35;
}

body .breadcrumbs li {
  align-items: center;
  gap: 0.42rem;
}

body .breadcrumbs a {
  color: var(--rlu-text-secondary);
  text-decoration: none;
}

body .breadcrumbs a:hover {
  color: var(--rlu-heading);
  text-decoration: none;
}

body .breadcrumbs .separator {
  color: rgba(149, 161, 173, 0.5);
}

/* Standard page heroes only. The home hero remains reserved for Step 4. */
body .page-hero:not(.page-hero--home) {
  padding-block: clamp(3rem, 6.2vw, 4.75rem);
  border-bottom: 1px solid var(--rlu-divider);
  background:
    radial-gradient(circle at 84% 12%, rgba(143, 179, 255, 0.12), transparent 23rem),
    linear-gradient(135deg, rgba(16, 23, 32, 0.98), rgba(12, 18, 25, 0.99));
}

body .page-hero:not(.page-hero--home)::before {
  opacity: 0.18;
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 44%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 44%, transparent 100%);
}

body .page-hero:not(.page-hero--home) .page-hero__inner {
  width: min(calc(100% - 3rem), var(--rlu-content-max));
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 10.5rem);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 5.5rem);
  margin-inline: auto;
  padding-left: 0;
  border-left: 0;
}

body .page-hero:not(.page-hero--home) .page-hero__copy {
  max-width: 55rem;
  padding-left: 0;
  border-left: 0;
}

body .page-hero:not(.page-hero--home) .page-hero__eyebrow,
body .page-hero:not(.page-hero--home) .meta {
  margin: 0 0 1rem;
}

body .page-hero:not(.page-hero--home) .status-row {
  gap: 0.42rem;
  margin: 0 0 1.15rem;
}

body .page-hero:not(.page-hero--home) h1 {
  max-width: 57rem;
  margin: 0;
  color: var(--rlu-heading);
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  line-height: 1.04;
}

body .page-hero:not(.page-hero--home) .lead {
  max-width: 48rem;
  margin: 1.05rem 0 0;
  color: var(--rlu-text-secondary);
  font-size: clamp(1.04rem, 1.8vw, 1.2rem);
  line-height: 1.65;
}

body .page-hero:not(.page-hero--home) .page-hero__function {
  display: block;
  margin: 0;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 1px solid var(--rlu-border-strong);
  color: var(--rlu-text-muted);
  font-family: var(--rlu-font-sans);
  font-size: 0.66rem;
  font-weight: 620;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-align: left;
}

body .page-hero:not(.page-hero--home) .page-hero__function strong {
  display: inline-block;
  margin-top: 0.28rem;
  color: var(--rlu-accent-strong);
  font-family: var(--rlu-font-sans);
  font-size: 0.73rem;
  font-weight: 670;
  letter-spacing: 0.055em;
}

/* Record-style page heroes have no copy/function columns. */
body .page-hero:not(.page-hero--home) .page-hero__inner > .meta:first-child,
body .page-hero:not(.page-hero--home) .page-hero__inner > h1:first-of-type,
body .page-hero:not(.page-hero--home) .page-hero__inner > h1:first-of-type + .lead {
  grid-column: 1 / -1;
}

body .page-hero:not(.page-hero--home) .page-hero__inner > h1:first-of-type,
body .page-hero:not(.page-hero--home) .page-hero__inner > h1:first-of-type + .lead {
  max-width: 55rem;
}

/* Shared container rhythm. Page-specific module redesign remains deferred. */
body .page-content {
  padding-block: clamp(3.75rem, 7vw, 6rem);
}

body .page-content > .prose:first-child {
  max-width: var(--rlu-reading-max);
}

/* 404 compatibility with the same public-frame language. */
body .error-page {
  position: relative;
  min-height: min(58vh, 38rem);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rlu-divider);
  background:
    radial-gradient(circle at 82% 18%, rgba(143, 179, 255, 0.12), transparent 22rem),
    linear-gradient(140deg, var(--rlu-bg-soft), var(--rlu-bg-deep));
}

body .error-page .error-page__inner {
  width: min(calc(100% - 3rem), var(--rlu-content-max));
  padding-block: clamp(4rem, 10vw, 7rem);
}

body .error-page nav a {
  border-radius: var(--rlu-radius-pill);
}

/* Footer: compact identity block, three calm navigation columns, clear base row. */
body .site-footer.site-footer {
  padding: clamp(3.5rem, 7vw, 5.5rem) 1.5rem 1.35rem;
  border-top: 1px solid var(--rlu-border-strong);
  background:
    radial-gradient(circle at 12% 0%, rgba(143, 179, 255, 0.09), transparent 25rem),
    linear-gradient(180deg, #0c1219 0%, var(--rlu-bg-deep) 100%);
}

body .site-footer .footer-grid {
  grid-template-columns: minmax(18rem, 0.95fr) minmax(28rem, 1.35fr);
  gap: clamp(3rem, 8vw, 6.5rem);
  margin-inline: auto;
}

body .site-footer .footer-identity .site-logo {
  width: min(13.75rem, 74vw);
}

body .site-footer .footer-identity > p:not(.status) {
  max-width: 31rem;
  margin: 1.25rem 0 0;
  color: var(--rlu-text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

body .site-footer .footer-identity .status {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(143, 179, 255, 0.055);
  color: var(--rlu-text-muted);
  font-family: var(--rlu-font-sans);
  font-size: 0.78rem;
  line-height: 1.6;
}

body .site-footer .footer-identity .status strong {
  color: var(--rlu-accent-strong);
  font-weight: 670;
}

body .site-footer .footer-links {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

body .site-footer .footer-links section {
  padding-top: 0.85rem;
  border-top: 1px solid var(--rlu-divider);
}

body .site-footer .footer-links h2 {
  margin: 0 0 1rem;
  color: var(--rlu-accent-strong);
  font-family: var(--rlu-font-sans);
  font-size: 0.7rem;
  font-weight: 680;
  letter-spacing: 0.085em;
  line-height: 1.3;
}

body .site-footer .footer-links ul {
  margin: 0;
}

body .site-footer .footer-links li + li {
  margin-top: 0.28rem;
}

body .site-footer .footer-links a {
  min-height: 34px;
  color: var(--rlu-text-secondary);
  font-size: 0.88rem;
  font-weight: 540;
  line-height: 1.35;
  text-decoration: none;
}

body .site-footer .footer-links a:hover {
  color: var(--rlu-heading);
  text-decoration: none;
}

body .site-footer .footer-bottom {
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem 1.5rem;
  margin: clamp(2.75rem, 6vw, 4rem) auto 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rlu-divider);
  color: var(--rlu-text-muted);
  font-family: var(--rlu-font-sans);
  font-size: 0.68rem;
  line-height: 1.45;
}

body .site-footer .footer-bottom a {
  color: var(--rlu-text-secondary);
  text-decoration: none;
}

body .site-footer .footer-bottom a:hover {
  color: var(--rlu-heading);
}

@media (max-width: 1160px) {
  body .site-header .utility {
    display: none;
  }
}

@media (max-width: 940px) {
  body .site-header .desktop-nav {
    display: none;
  }

  body .site-header .mobile-nav {
    display: block;
  }

  body .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  body .site-footer .footer-identity {
    max-width: 38rem;
  }

  body .site-footer .footer-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: normal;
  }
}

@media (max-width: 760px) {
  body .page-hero:not(.page-hero--home) .page-hero__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body .page-hero:not(.page-hero--home) .page-hero__function {
    display: none;
  }
}

@media (max-width: 620px) {
  body .header-inner,
  body .status-strip__inner,
  body .footer-grid,
  body .footer-bottom,
  body .page-hero:not(.page-hero--home) .page-hero__inner,
  body .error-page .error-page__inner {
    width: min(calc(100% - 1.25rem), var(--rlu-content-max));
  }

  body .site-header .header-inner {
    min-height: 68px;
    gap: 0.75rem;
  }

  body .site-header .brand .site-logo {
    width: min(9.8rem, 48vw);
  }

  body .mobile-menu summary {
    min-width: 6.75rem;
  }

  body .status-strip .status-strip__inner {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.42rem 0.75rem;
    padding-block: 0.72rem;
  }

  body .status-strip .status-strip__label {
    grid-column: 1;
    font-size: 0.65rem;
  }

  body .status-strip .status-strip__statement {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 0.82rem;
  }

  body .status-strip a {
    grid-column: 2;
    grid-row: 1;
    min-height: 32px;
    padding: 0.25rem 0.58rem;
    font-size: 0.72rem;
  }

  body .breadcrumbs ol {
    min-height: 42px;
    padding-block: 0.58rem;
    font-size: 0.72rem;
  }

  body .page-hero:not(.page-hero--home) {
    padding-block: 2.7rem 3rem;
  }

  body .page-hero:not(.page-hero--home)::before {
    background-size: 54px 54px;
  }

  body .page-hero:not(.page-hero--home) h1 {
    font-size: clamp(2.05rem, 11vw, 2.75rem);
    line-height: 1.06;
  }

  body .page-hero:not(.page-hero--home) .lead {
    margin-top: 0.95rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  body .page-hero:not(.page-hero--home) .status-row {
    margin-bottom: 1rem;
  }

  body .page-content {
    padding-block: 3rem 4.25rem;
  }

  body .site-footer.site-footer {
    padding-inline: 0.625rem;
  }

  body .site-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

  body .site-footer .footer-bottom {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }
}

@media (max-width: 390px) {
  body .site-header .brand .site-logo {
    width: min(9rem, 46vw);
  }

  body .mobile-menu summary {
    min-width: 6.25rem;
    padding-inline: 0.68rem;
    font-size: 0.79rem;
  }

  body .site-footer .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .site-header .primary-nav a::after {
    transition: none;
  }
}

/* Keep the footer compact on common 360–430px phones; collapse only on
   exceptionally narrow screens where two columns no longer remain legible. */
@media (min-width: 341px) and (max-width: 390px) {
  body .site-footer .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Specificity bridge for compiled scoped container widths. */
body .site-header .header-inner.header-inner,
body .status-strip .status-strip__inner.status-strip__inner,
body .site-footer .footer-grid.footer-grid,
body .site-footer .footer-bottom.footer-bottom {
  width: min(calc(100% - 3rem), var(--rlu-content-max));
}

@media (max-width: 620px) {
  body .site-header .header-inner.header-inner,
  body .status-strip .status-strip__inner.status-strip__inner,
  body .site-footer .footer-grid.footer-grid,
  body .site-footer .footer-bottom.footer-bottom {
    width: min(calc(100% - 1.25rem), var(--rlu-content-max));
  }
}

/* ========================================================================== 
   Step 4 — Homepage visual reconstruction
   4-1 Hero and opening editorial hierarchy
   4-2 Homepage modules, cards, and responsive rhythm
   Presentation-only overrides. The homepage copy, heading order, links,
   module order, metadata, and machine resources remain unchanged.
   ========================================================================== */

/* --------------------------------------------------------------------------
   4-1 Homepage hero
   -------------------------------------------------------------------------- */
body .page-hero--home.page-hero--home {
  padding-block: clamp(4.25rem, 8vw, 6.75rem);
  border-bottom: 1px solid var(--rlu-divider);
  background:
    radial-gradient(circle at 78% 38%, rgba(143, 179, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 22% 0%, rgba(143, 179, 255, 0.07), transparent 20rem),
    linear-gradient(135deg, #0c131c 0%, #101a27 52%, #0b1118 100%);
}

body .page-hero--home.page-hero--home::before {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(191, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 210, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.75) 56%, transparent 100%);
}

body .page-hero--home.page-hero--home::after {
  content: "";
  position: absolute;
  inset: auto -8rem -13rem auto;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(191, 210, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 5rem rgba(143, 179, 255, 0.025),
    0 0 0 10rem rgba(143, 179, 255, 0.018);
  pointer-events: none;
}

body .page-hero--home .page-hero__inner.page-hero__inner {
  width: min(calc(100% - 3rem), var(--rlu-content-max));
  min-height: 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(17rem, 0.62fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
  margin-inline: auto;
  padding-left: 0;
  border-left: 0;
}

body .page-hero--home .page-hero__copy.page-hero__copy {
  max-width: 49rem;
  padding-left: 0;
  border-left: 0;
}

body .page-hero--home .page-hero__eyebrow.page-hero__eyebrow {
  margin: 0 0 1.15rem;
  color: var(--rlu-accent-strong);
}

body .page-hero--home .status-row.status-row {
  gap: 0.45rem;
  margin: 0 0 1.3rem;
}

body .page-hero--home h1 {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(3.25rem, 6.7vw, 5.6rem);
  line-height: 0.99;
  letter-spacing: -0.052em;
}

body .page-hero--home .lead.lead {
  max-width: 43rem;
  margin: 1.35rem 0 0;
  color: var(--rlu-text-secondary);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.58;
}

body .page-hero--home .page-hero__actions.page-hero__actions {
  margin-top: 2rem;
}

body .page-hero--home .hero-actions.hero-actions {
  gap: 0.75rem;
  align-items: center;
}

body .page-hero--home .hero-actions .button.button {
  min-height: 50px;
  padding-inline: 1.25rem;
  border-color: rgba(191, 210, 255, 0.38);
  background: linear-gradient(135deg, rgba(143, 179, 255, 0.3), rgba(143, 179, 255, 0.18));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

body .page-hero--home .hero-actions .button.button:hover {
  border-color: rgba(191, 210, 255, 0.64);
  background: linear-gradient(135deg, rgba(143, 179, 255, 0.4), rgba(143, 179, 255, 0.24));
}

body .page-hero--home .hero-actions .button.button--secondary {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

body .page-hero--home .hero-actions .button.button--text {
  min-height: 44px;
  padding-inline: 0.55rem;
  background: transparent;
  box-shadow: none;
}

body .page-hero--home .page-hero__visual.page-hero__visual {
  min-width: 0;
}

body .page-hero--home .hero-mark.hero-mark {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(191, 210, 255, 0.16);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 50% 42%, rgba(143, 179, 255, 0.16), transparent 46%),
    linear-gradient(160deg, rgba(21, 33, 50, 0.76), rgba(11, 17, 24, 0.86));
  box-shadow: var(--rlu-shadow-soft);
  opacity: 1;
}

body .page-hero--home .hero-mark.hero-mark::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(191, 210, 255, 0.08);
  border-radius: calc(var(--rlu-radius-xl) - 0.35rem);
  pointer-events: none;
}

body .page-hero--home .hero-mark.hero-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(191, 210, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 210, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 0%, transparent 72%);
  pointer-events: none;
}

body .page-hero--home .hero-mark img {
  position: relative;
  z-index: 1;
  width: min(13rem, 60%);
  opacity: 0.9;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.36));
}

/* Opening copy becomes an editorial two-column statement instead of a long,
   unstructured text block. */
body .page-hero--home + .page-content.page-content {
  width: min(calc(100% - 3rem), var(--rlu-content-max));
  padding-block: clamp(4.75rem, 8vw, 7rem);
}

body .page-hero--home + .page-content > .prose:first-child {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  gap: 0.9rem clamp(3rem, 8vw, 7rem);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  border-top: 1px solid var(--rlu-border-strong);
  border-bottom: 1px solid var(--rlu-divider);
}

body .page-hero--home + .page-content > .prose:first-child h2 {
  grid-column: 1;
  grid-row: 1 / span 6;
  align-self: start;
  max-width: 18rem;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

body .page-hero--home + .page-content > .prose:first-child p {
  grid-column: 2;
  max-width: 45rem;
  margin: 0;
  color: var(--rlu-text-secondary);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.75;
}

body .page-hero--home + .page-content > .prose:first-child p + p {
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   4-2 Homepage module system
   -------------------------------------------------------------------------- */
body .page-hero--home + .page-content .page-modules.page-modules {
  margin-top: clamp(4.75rem, 9vw, 7.5rem);
}

body .home-modules.home-modules {
  gap: clamp(4.5rem, 9vw, 7.5rem);
}

body .home-modules.home-modules > section,
body .home-modules.home-modules > .home-status-grid {
  position: relative;
}

body .home-modules.home-modules > section:not(.mission-panel):not(.statement-panel),
body .home-modules.home-modules > .home-status-grid {
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  border-top: 1px solid var(--rlu-divider);
}

body .home-modules.home-modules > section > .section-label,
body .home-modules.home-modules > section > h2,
body .home-modules.home-modules > section > .section-label + h2 + p {
  max-width: 48rem;
}

body .home-modules.home-modules > section > h2 {
  margin-top: 0.85rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

body .home-modules.home-modules > section > h2 + p {
  margin-top: 1rem;
  font-size: 1.04rem;
  line-height: 1.75;
}

body .module-link.module-link {
  margin-top: 1.5rem;
}

body .module-link.module-link a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.45rem 0;
  color: var(--rlu-accent-strong);
  font-weight: 650;
  text-decoration-thickness: 1px;
}

/* Evidence cards. */
body .summary-grid.summary-grid {
  gap: 1rem;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

body .summary-grid.summary-grid > article {
  position: relative;
  min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background:
    linear-gradient(180deg, rgba(21, 33, 50, 0.82), rgba(16, 23, 32, 0.96));
  box-shadow: var(--rlu-shadow-card);
}

body .summary-grid.summary-grid > article::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1.5rem;
  border-radius: var(--rlu-radius-pill);
  background: linear-gradient(90deg, var(--rlu-accent), transparent);
}

body .summary-grid.summary-grid h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

body .summary-grid.summary-grid p {
  margin-top: 0.85rem;
  line-height: 1.7;
}

/* Mission is a broad institutional panel with a clear reading split. */
body .mission-panel.mission-panel {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  gap: 0.8rem clamp(3rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid rgba(191, 210, 255, 0.18);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(143, 179, 255, 0.12), transparent 20rem),
    linear-gradient(145deg, rgba(21, 33, 50, 0.96), rgba(14, 21, 30, 0.98));
  box-shadow: var(--rlu-shadow-soft);
}

body .mission-panel.mission-panel > .section-label,
body .mission-panel.mission-panel > h2,
body .mission-panel.mission-panel > p:first-of-type {
  grid-column: 1;
}

body .mission-panel.mission-panel > .section-label {
  align-self: start;
}

body .mission-panel.mission-panel > h2 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: 1.06;
}

body .mission-panel.mission-panel > p:first-of-type {
  margin: 1rem 0 0;
}

body .mission-panel.mission-panel > ul,
body .mission-panel.mission-panel > p:last-child {
  grid-column: 2;
}

body .mission-panel.mission-panel > ul {
  columns: 1;
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .mission-panel.mission-panel > ul > li {
  position: relative;
  margin: 0;
  padding: 0.9rem 1rem 0.9rem 2rem;
  border: 1px solid var(--rlu-divider);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.025);
  color: var(--rlu-text-secondary);
}

body .mission-panel.mission-panel > ul > li::before {
  content: "";
  position: absolute;
  top: 1.42rem;
  left: 0.9rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--rlu-accent);
  box-shadow: 0 0 0 4px rgba(143, 179, 255, 0.09);
}

body .mission-panel.mission-panel > p:last-child {
  margin: 1.2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rlu-divider);
}

/* Foundational document presentation. */
body .document-card.document-card {
  display: grid;
  grid-template-columns: minmax(14rem, 0.72fr) minmax(0, 1.28fr);
  gap: 0.5rem clamp(2.25rem, 6vw, 5rem);
  margin-top: 2rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--rlu-border-strong);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 88% 0%, rgba(143, 179, 255, 0.11), transparent 18rem),
    linear-gradient(160deg, rgba(19, 28, 39, 0.98), rgba(13, 20, 29, 0.99));
  box-shadow: var(--rlu-shadow-soft);
}

body .document-card.document-card .document-card__header,
body .document-card.document-card > h3 {
  grid-column: 1;
}

body .document-card.document-card .document-card__header {
  align-items: flex-start;
}

body .document-card.document-card > h3 {
  align-self: start;
  margin: 1rem 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

body .document-card.document-card > dl {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-radius: var(--rlu-radius-md);
}

body .document-card.document-card > dl > div {
  min-height: 6.5rem;
  padding: 1rem 1.1rem;
}

body .document-card.document-card > nav {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rlu-divider);
}

body .document-card.document-card > nav ul {
  margin: 0;
}

body .document-card.document-card > nav a {
  min-height: 40px;
}

body .principle-preview.principle-preview {
  margin-top: 1.25rem;
}

body .principle-list.principle-list {
  gap: 0.8rem;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

body .principle-list.principle-list > li {
  min-width: 0;
}

body .principle-card.principle-card {
  gap: 1.15rem;
  padding: 1.35rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.94), rgba(16, 23, 32, 0.98));
  box-shadow: none;
}

body .principle-card.principle-card:hover {
  border-color: rgba(191, 210, 255, 0.26);
  background: linear-gradient(180deg, rgba(21, 33, 50, 0.96), rgba(17, 25, 35, 0.99));
}

body .principle-card.principle-card h3 {
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

/* Definitions and governance. */
body .definition-grid.definition-grid {
  gap: 1.25rem;
}

body .definition-block.definition-block {
  max-width: none;
  min-height: 100%;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background:
    linear-gradient(180deg, rgba(19, 28, 39, 0.96), rgba(16, 23, 32, 0.99));
  box-shadow: var(--rlu-shadow-card);
}

body .definition-block.definition-block .definition-block__text {
  color: var(--rlu-heading);
  font-size: clamp(1.2rem, 2vw, 1.52rem);
}

body .governance-stages.governance-stages {
  gap: 1rem;
}

body .governance-stage.governance-stage {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.94), rgba(16, 23, 32, 0.99));
  box-shadow: var(--rlu-shadow-card);
}

body .governance-stage.governance-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgba(143, 179, 255, 0.22);
}

body .governance-stage.governance-stage--current {
  border-color: rgba(143, 179, 255, 0.34);
  background:
    radial-gradient(circle at 90% 0%, rgba(143, 179, 255, 0.1), transparent 14rem),
    linear-gradient(180deg, rgba(21, 33, 50, 0.98), rgba(17, 25, 35, 0.99));
}

body .governance-stage.governance-stage--current::before {
  background: var(--rlu-accent);
}

/* Publication and participation status. */
body .home-status-grid.home-status-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 1.25rem;
}

body .empty-state.empty-state,
body .participation-status.participation-status,
body .participation-preview__planned.participation-preview__planned {
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.95), rgba(16, 23, 32, 0.99));
  box-shadow: var(--rlu-shadow-card);
}

body .empty-state.empty-state {
  min-height: 100%;
  padding: clamp(1.6rem, 3vw, 2.25rem);
}

body .participation-preview.participation-preview {
  gap: 1.25rem;
}

body .participation-status.participation-status {
  overflow: hidden;
}

body .participation-status .participation-status__heading.participation-status__heading {
  padding: 1.5rem;
  border-left: 0;
  border-bottom: 1px solid var(--rlu-divider);
}

body .participation-status .participation-status__grid.participation-status__grid {
  border-top: 0;
}

body .participation-status .participation-status__grid > article {
  min-height: 7.5rem;
  border-color: var(--rlu-divider);
  background: rgba(255, 255, 255, 0.012);
}

body .participation-status .participation-status__notice.participation-status__notice {
  border-color: var(--rlu-divider);
  background: rgba(143, 179, 255, 0.035);
  color: var(--rlu-text-muted);
}

body .participation-preview__planned.participation-preview__planned {
  padding: 1.5rem;
}

body .participation-preview__planned.participation-preview__planned ul {
  columns: 2;
  margin-top: 1.1rem;
  padding-left: 1.1rem;
}

/* Machine-readable resources form a two-column directory. */
body .machine-preview.machine-preview {
  display: grid;
  grid-template-columns: minmax(15rem, 0.68fr) minmax(0, 1.32fr);
  gap: 0.75rem clamp(3rem, 8vw, 7rem);
  align-items: start;
}

body .machine-preview.machine-preview > .section-label,
body .machine-preview.machine-preview > h2,
body .machine-preview.machine-preview > h2 + p {
  grid-column: 1;
}

body .machine-preview.machine-preview > h2 {
  margin-top: 0.85rem;
}

body .machine-preview.machine-preview > h2 + p {
  margin-top: 1rem;
}

body .machine-preview.machine-preview > .resource-list,
body .machine-preview.machine-preview > .module-link {
  grid-column: 2;
}

body .machine-preview.machine-preview > .resource-list {
  grid-row: 1 / span 4;
}

body .resource-list.resource-list {
  gap: 0.8rem;
  padding: 0;
  border: 0;
  background: transparent;
}

body .machine-resource.machine-resource {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.95), rgba(16, 23, 32, 0.99));
  box-shadow: var(--rlu-shadow-card);
}

body .machine-preview.machine-preview > .module-link {
  margin-top: 0.75rem;
}

/* Closing statement and final navigation. */
body .statement-panel.statement-panel--dark {
  padding: clamp(2.25rem, 6vw, 4.5rem);
  border: 1px solid rgba(191, 210, 255, 0.22);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 88% 8%, rgba(143, 179, 255, 0.18), transparent 22rem),
    linear-gradient(135deg, #142033, #0d151f 66%, #0b1118);
  box-shadow: var(--rlu-shadow-soft);
}

body .statement-panel.statement-panel--dark h2 {
  max-width: 52rem;
  margin-top: 0.8rem;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.03;
}

body .statement-panel.statement-panel--dark .statement-panel__body {
  max-width: 48rem;
}

body .page-hero--home + .page-content .related-links.related-links {
  margin-top: clamp(4.5rem, 9vw, 7rem);
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

body .page-hero--home + .page-content .related-links.related-links h2 {
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rlu-text-muted);
}

body .page-hero--home + .page-content .related-links.related-links ul {
  gap: 0.55rem 0.8rem;
  margin-top: 0.8rem;
}

body .page-hero--home + .page-content .related-links.related-links a {
  min-height: 38px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-pill);
  background: rgba(143, 179, 255, 0.045);
  color: var(--rlu-text-secondary);
  text-decoration: none;
}

body .page-hero--home + .page-content .related-links.related-links a:hover {
  border-color: rgba(191, 210, 255, 0.28);
  background: rgba(143, 179, 255, 0.1);
  color: var(--rlu-heading);
}

@media (max-width: 1040px) {
  body .page-hero--home .page-hero__inner.page-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.55fr);
    gap: 2.5rem;
  }

  body .page-hero--home .hero-mark.hero-mark {
    min-height: 19rem;
  }

  body .home-status-grid.home-status-grid {
    grid-template-columns: 1fr;
  }

  body .machine-preview.machine-preview {
    grid-template-columns: minmax(13rem, 0.58fr) minmax(0, 1.42fr);
    gap: 0.75rem 2.5rem;
  }
}

@media (max-width: 860px) {
  body .page-hero--home.page-hero--home {
    padding-block: 4rem;
  }

  body .page-hero--home .page-hero__inner.page-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  body .page-hero--home .page-hero__copy.page-hero__copy {
    max-width: 47rem;
  }

  body .page-hero--home .page-hero__visual.page-hero__visual {
    max-width: 25rem;
  }

  body .page-hero--home .hero-mark.hero-mark {
    min-height: 16rem;
  }

  body .page-hero--home + .page-content > .prose:first-child,
  body .mission-panel.mission-panel,
  body .machine-preview.machine-preview {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  body .page-hero--home + .page-content > .prose:first-child h2,
  body .page-hero--home + .page-content > .prose:first-child p,
  body .mission-panel.mission-panel > *,
  body .machine-preview.machine-preview > * {
    grid-column: 1;
    grid-row: auto;
  }

  body .page-hero--home + .page-content > .prose:first-child h2 {
    max-width: 34rem;
    margin-bottom: 0.8rem;
  }

  body .mission-panel.mission-panel > ul {
    margin-top: 0.8rem;
  }

  body .document-card.document-card {
    grid-template-columns: 1fr;
  }

  body .document-card.document-card .document-card__header,
  body .document-card.document-card > h3,
  body .document-card.document-card > dl,
  body .document-card.document-card > nav {
    grid-column: 1;
    grid-row: auto;
  }

  body .document-card.document-card > dl {
    margin-top: 1.5rem;
  }

  body .machine-preview.machine-preview > .resource-list {
    grid-row: auto;
    margin-top: 1rem;
  }
}

@media (max-width: 720px) {
  body .page-hero--home .page-hero__visual.page-hero__visual {
    display: none;
  }

  body .page-hero--home h1 {
    font-size: clamp(2.75rem, 13vw, 4.1rem);
    line-height: 1.01;
  }

  body .page-hero--home .lead.lead {
    font-size: 1.08rem;
  }

  body .page-hero--home + .page-content.page-content {
    padding-block: 3.75rem 5rem;
  }

  body .home-modules.home-modules {
    gap: 4.25rem;
  }

  body .summary-grid.summary-grid {
    grid-template-columns: 1fr;
  }

  body .summary-grid.summary-grid > article {
    min-height: 0;
  }

  body .principle-list.principle-list {
    grid-template-columns: 1fr;
  }

  body .mission-panel.mission-panel,
  body .document-card.document-card,
  body .statement-panel.statement-panel--dark {
    border-radius: var(--rlu-radius-lg);
  }
}

@media (max-width: 620px) {
  body .page-hero--home .page-hero__inner.page-hero__inner,
  body .page-hero--home + .page-content.page-content {
    width: min(calc(100% - 1.25rem), var(--rlu-content-max));
  }

  body .page-hero--home.page-hero--home {
    padding-block: 3rem 3.5rem;
  }

  body .page-hero--home.page-hero--home::before {
    background-size: 52px 52px;
  }

  body .page-hero--home .status-row.status-row {
    margin-bottom: 1.15rem;
  }

  body .page-hero--home .hero-actions.hero-actions a {
    width: 100%;
  }

  body .page-hero--home .hero-actions .button.button--text {
    justify-content: flex-start;
    width: auto;
    padding-left: 0;
  }

  body .page-hero--home + .page-content > .prose:first-child {
    padding-block: 2rem;
  }

  body .page-hero--home + .page-content .page-modules.page-modules {
    margin-top: 4rem;
  }

  body .home-modules.home-modules > section:not(.mission-panel):not(.statement-panel),
  body .home-modules.home-modules > .home-status-grid {
    padding-top: 2.4rem;
  }

  body .mission-panel.mission-panel,
  body .document-card.document-card,
  body .statement-panel.statement-panel--dark {
    padding: 1.5rem;
  }

  body .document-card.document-card > dl {
    grid-template-columns: 1fr 1fr;
  }

  body .document-card.document-card > dl > div {
    min-height: 0;
  }

  body .definition-grid.definition-grid,
  body .governance-stages.governance-stages {
    gap: 0.85rem;
  }

  body .participation-preview__planned.participation-preview__planned ul {
    columns: 1;
  }

  body .machine-resource.machine-resource {
    grid-template-columns: 1fr;
  }

  body .page-hero--home + .page-content .related-links.related-links {
    padding: 1.1rem;
  }
}

@media (max-width: 420px) {
  body .page-hero--home h1 {
    font-size: clamp(2.55rem, 13vw, 3.25rem);
  }

  body .page-hero--home .status-row.status-row .status-badge {
    font-size: 0.69rem;
  }

  body .document-card.document-card > dl {
    grid-template-columns: 1fr;
  }

  body .participation-status .participation-status__grid.participation-status__grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile specificity corrections for homepage split-layout children. */
@media (max-width: 860px) {
  body .mission-panel.mission-panel > .section-label,
  body .mission-panel.mission-panel > h2,
  body .mission-panel.mission-panel > p:first-of-type,
  body .mission-panel.mission-panel > ul,
  body .mission-panel.mission-panel > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  body .machine-preview.machine-preview > .section-label,
  body .machine-preview.machine-preview > h2,
  body .machine-preview.machine-preview > h2 + p,
  body .machine-preview.machine-preview > .resource-list,
  body .machine-preview.machine-preview > .module-link {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Final homepage mobile polish. */
body .mission-panel.mission-panel.mission-panel > ul {
  padding-left: 0;
}

body .mission-panel.mission-panel.mission-panel > ul > li {
  width: 100%;
  margin-bottom: 0;
}

body .machine-preview.machine-preview .format-badge.format-badge {
  width: auto;
  justify-self: start;
}

/* ========================================================================== 
   Step 5 — Core content pages
   Concept definitions, principles, Declaration, records, and document index.
   Presentation only: text, order, links, metadata, and machine resources remain frozen.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Step 5-1: Robot Worker / Robot Labor definition pages
   -------------------------------------------------------------------------- */
body.page-core-definition .page-content.page-content {
  width: min(calc(100% - 2rem), 78rem);
  padding-block: clamp(3.5rem, 7vw, 6.25rem) clamp(5rem, 9vw, 8rem);
}

body.page-core-definition .page-content > .prose.prose {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.35rem;
  max-width: none;
  margin: 0;
}

body.page-core-definition .page-content > .prose > * {
  min-width: 0;
  margin-block: 0;
}

body.page-core-definition .definition-block.definition-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(12rem, 0.78fr) minmax(0, 1.55fr);
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(191, 210, 255, 0.22);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 92% 8%, rgba(143, 179, 255, 0.16), transparent 21rem),
    linear-gradient(145deg, rgba(21, 33, 50, 0.98), rgba(15, 23, 33, 0.98));
  box-shadow: var(--rlu-shadow-card);
}

body.page-core-definition .definition-block__source.definition-block__source,
body.page-core-definition .definition-block h2 {
  grid-column: 1;
}

body.page-core-definition .definition-block__source.definition-block__source {
  margin: 0 0 0.7rem;
}

body.page-core-definition .definition-block h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

body.page-core-definition .definition-block__text.definition-block__text {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 210, 255, 0.2);
  font-size: clamp(1.18rem, 2.1vw, 1.55rem);
  line-height: 1.58;
}

body.page-core-definition .list-section.list-section,
body.page-core-definition .statement-panel.statement-panel,
body.page-core-definition .status-notice.status-notice {
  padding: clamp(1.45rem, 3vw, 2.15rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(155deg, rgba(19, 28, 39, 0.92), rgba(14, 21, 30, 0.94));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

body.page-core-definition .list-section.list-section h2,
body.page-core-definition .statement-panel.statement-panel h2,
body.page-core-definition .status-notice.status-notice h2 {
  margin-top: 0.35rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
}

body.page-core-definition .list-section.list-section > p:last-child {
  margin-bottom: 0;
}

body.page-core-definition .list-section__items.list-section__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-block: 1.25rem;
  padding: 0;
  list-style: none;
}

body.page-core-definition .list-section__items.list-section__items--1 {
  grid-template-columns: 1fr;
}

body.page-core-definition .list-section__items > li {
  position: relative;
  margin: 0;
  padding: 0.78rem 0.85rem 0.78rem 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--rlu-radius-sm);
  background: rgba(255, 255, 255, 0.025);
  color: var(--rlu-text-secondary);
  line-height: 1.48;
}

body.page-core-definition .list-section__items > li::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0.78rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--rlu-accent);
  box-shadow: 0 0 0 4px rgba(143, 179, 255, 0.09);
}

body.page-robot-workers #technical-forms,
body.page-robot-workers #recognition-factors,
body.page-robot-labor #forms-of-labor {
  grid-column: span 5;
}

body.page-robot-workers #examples,
body.page-robot-workers #system-and-individual-identity,
body.page-robot-labor #value-responsibility-and-burden {
  grid-column: span 7;
}

body.page-core-definition .statement-panel.statement-panel,
body.page-core-definition .status-notice.status-notice {
  grid-column: 1 / -1;
}

body.page-core-definition .statement-panel.statement-panel {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.45fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

body.page-core-definition .statement-panel__eyebrow,
body.page-core-definition .statement-panel h2 {
  grid-column: 1;
}

body.page-core-definition .statement-panel__body.statement-panel__body {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 210, 255, 0.18);
}

body.page-core-definition .statement-panel__body > :first-child {
  margin-top: 0;
}

body.page-core-definition .statement-panel__body > :last-child {
  margin-bottom: 0;
}

body.page-core-definition .statement-panel--paper.statement-panel--paper {
  border-color: rgba(191, 210, 255, 0.2);
  background:
    radial-gradient(circle at 88% 0%, rgba(143, 179, 255, 0.1), transparent 18rem),
    linear-gradient(155deg, rgba(20, 31, 45, 0.96), rgba(15, 23, 33, 0.96));
}

body.page-core-definition .statement-panel--amber.statement-panel--amber {
  border-color: rgba(143, 179, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(143, 179, 255, 0.12), transparent 1px),
    linear-gradient(155deg, rgba(19, 29, 42, 0.97), rgba(14, 21, 30, 0.97));
}

body.page-core-definition .status-notice.status-notice {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.45fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  border-color: rgba(143, 179, 255, 0.2);
  border-left-width: 1px;
  background: rgba(143, 179, 255, 0.075);
}

body.page-core-definition .status-notice__label,
body.page-core-definition .status-notice h2 {
  grid-column: 1;
}

body.page-core-definition .status-notice__content.status-notice__content {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 210, 255, 0.18);
}

body.page-core-definition .status-notice__content > :first-child,
body.page-core-definition .status-notice__content > :last-child {
  margin-block: 0;
}

body.page-core-definition .related-links.related-links {
  margin-top: clamp(3rem, 6vw, 5rem);
}

/* --------------------------------------------------------------------------
   Step 5-1: Principles page
   -------------------------------------------------------------------------- */
body.page-core-principles .page-content.page-content {
  width: min(calc(100% - 2rem), 82rem);
  padding-block: clamp(3.5rem, 7vw, 6.25rem) clamp(5rem, 9vw, 8rem);
}

body.page-core-principles .page-content > .prose.prose {
  display: grid;
  grid-template-columns: minmax(14rem, 0.78fr) minmax(0, 1.5fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  max-width: none;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 92% 0%, rgba(143, 179, 255, 0.13), transparent 20rem),
    rgba(18, 26, 36, 0.8);
}

body.page-core-principles .page-content > .prose h2 {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

body.page-core-principles .page-content > .prose p {
  grid-column: 2;
  margin-top: 0;
}

body.page-core-principles .page-content > .prose p:last-child {
  margin-bottom: 0;
}

body.page-core-principles .page-modules.page-modules {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

body.page-core-principles .principles-modules.principles-modules {
  display: grid;
  gap: clamp(4rem, 8vw, 7rem);
}

body.page-core-principles .principles-modules > section:not(.statement-panel) {
  position: relative;
}

body.page-core-principles .principles-modules > section:not(.statement-panel)::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  right: 0;
  width: min(42%, 28rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143, 179, 255, 0.26));
}

body.page-core-principles .principles-modules > section > h2 {
  max-width: 34rem;
  margin-top: 0.55rem;
  margin-bottom: 1.7rem;
  font-size: clamp(1.8rem, 3.6vw, 2.65rem);
}

body.page-core-principles .principle-list.principle-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  list-style: none;
}

body.page-core-principles .principle-list > li {
  min-width: 0;
  margin: 0;
}

body.page-core-principles .principle-card.principle-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  height: 100%;
  min-height: 14.25rem;
  padding: 1.35rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 179, 255, 0.09), transparent 12rem),
    linear-gradient(155deg, rgba(20, 30, 42, 0.96), rgba(15, 22, 31, 0.96));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

body.page-core-principles .principle-card.principle-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(143, 179, 255, 0.78), transparent 72%);
  opacity: 0.55;
}

body.page-core-principles .principle-card.principle-card:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 210, 255, 0.25);
}

body.page-core-principles .principle-card__number.principle-card__number {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  border: 1px solid rgba(143, 179, 255, 0.25);
  border-radius: 50%;
  background: rgba(143, 179, 255, 0.08);
  color: var(--rlu-accent-strong);
}

body.page-core-principles .principle-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.3;
}

body.page-core-principles .principle-card h3 a {
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(191, 210, 255, 0.36);
}

body.page-core-principles .principle-card p:last-child {
  margin-bottom: 0;
  color: var(--rlu-text-secondary);
  font-size: 0.95rem;
  line-height: 1.62;
}

body.page-core-principles .status-notice.status-notice,
body.page-core-principles .statement-panel.statement-panel {
  padding: clamp(1.65rem, 4vw, 2.6rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
}

body.page-core-principles .status-notice.status-notice {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.45fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  border-left-width: 1px;
  background: rgba(174, 185, 200, 0.06);
}

body.page-core-principles .status-notice__label,
body.page-core-principles .status-notice h2 {
  grid-column: 1;
}

body.page-core-principles .status-notice__content.status-notice__content {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--rlu-border);
}

body.page-core-principles .status-notice__content > :first-child,
body.page-core-principles .status-notice__content > :last-child {
  margin-block: 0;
}

body.page-core-principles .statement-panel.statement-panel {
  display: grid;
  grid-template-columns: minmax(13rem, 0.72fr) minmax(0, 1.5fr);
  column-gap: clamp(1.5rem, 4vw, 4rem);
  background:
    radial-gradient(circle at 92% 0%, rgba(143, 179, 255, 0.13), transparent 18rem),
    linear-gradient(155deg, rgba(20, 31, 45, 0.97), rgba(15, 23, 33, 0.97));
}

body.page-core-principles .statement-panel__eyebrow,
body.page-core-principles .statement-panel h2 {
  grid-column: 1;
}

body.page-core-principles .statement-panel__body.statement-panel__body {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 210, 255, 0.18);
}

/* --------------------------------------------------------------------------
   Step 5-2: Current Declaration reading interface
   -------------------------------------------------------------------------- */
body.page-core-declaration .document-shell.document-shell {
  padding-block: clamp(2.75rem, 5vw, 5rem) clamp(5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 86% 2%, rgba(143, 179, 255, 0.08), transparent 32rem),
    linear-gradient(180deg, rgba(14, 21, 30, 0.98), var(--rlu-bg));
}

body.page-core-declaration .document-paper.document-paper {
  width: min(calc(100% - 2rem), 84rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

body.page-core-declaration .document-header.document-header {
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(191, 210, 255, 0.2);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 94% 0%, rgba(143, 179, 255, 0.16), transparent 23rem),
    linear-gradient(145deg, rgba(22, 34, 50, 0.98), rgba(15, 23, 33, 0.98));
  box-shadow: var(--rlu-shadow-card);
}

body.page-core-declaration .document-header__identity.document-header__identity {
  align-items: center;
}

body.page-core-declaration .document-header__identity img {
  width: clamp(4.5rem, 8vw, 7rem);
  height: auto;
  padding: 0.45rem;
  border: 1px solid rgba(191, 210, 255, 0.18);
  border-radius: var(--rlu-radius-md);
  background: rgba(0, 0, 0, 0.12);
}

body.page-core-declaration .document-header h1,
body.page-core-declaration .document-header h2 {
  font-size: clamp(2rem, 4.5vw, 3.55rem);
}

body.page-core-declaration .document-metadata.document-metadata {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border-color: rgba(191, 210, 255, 0.16);
  background: rgba(191, 210, 255, 0.12);
}

body.page-core-declaration .document-metadata > div {
  padding: 1rem 1.1rem;
  background: rgba(11, 16, 22, 0.36);
}

body.page-core-declaration .document-actions.document-actions {
  margin-top: 1.35rem;
}

body.page-core-declaration .document-introduction.document-introduction {
  display: grid;
  grid-template-columns: minmax(13rem, 0.75fr) minmax(0, 1.55fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.7rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.74);
}

body.page-core-declaration .document-introduction .meta,
body.page-core-declaration .document-introduction h2 {
  grid-column: 1;
}

body.page-core-declaration .document-introduction p:not(.meta) {
  grid-column: 2;
  margin-top: 0;
}

body.page-core-declaration .document-introduction p:last-child {
  margin-bottom: 0;
}

body.page-core-declaration .document-reading-grid.document-reading-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 52rem);
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

body.page-core-declaration .document-toc.document-toc {
  position: sticky;
  top: 6.75rem;
  align-self: start;
}

body.page-core-declaration .document-toc__desktop.document-toc__desktop {
  max-height: calc(100vh - 8rem);
  padding: 1rem 0.75rem 1rem 0;
  border: 0;
  border-right: 1px solid var(--rlu-border);
  overflow: auto;
  scrollbar-width: thin;
}

body.page-core-declaration .document-toc__desktop h2 {
  margin: 0 0 0.85rem;
  color: var(--rlu-text-muted);
  font-size: var(--rlu-text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.page-core-declaration .document-toc a {
  display: block;
  padding: 0.42rem 0.6rem;
  border-left: 2px solid transparent;
  border-radius: 0 var(--rlu-radius-sm) var(--rlu-radius-sm) 0;
  color: var(--rlu-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  text-decoration: none;
}

body.page-core-declaration .document-toc a:hover,
body.page-core-declaration .document-toc a:focus-visible {
  border-left-color: var(--rlu-accent);
  background: rgba(143, 179, 255, 0.07);
  color: var(--rlu-heading);
}

body.page-core-declaration .document-body.document-body {
  max-width: 52rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background:
    linear-gradient(180deg, rgba(19, 28, 39, 0.96), rgba(14, 21, 30, 0.98));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

body.page-core-declaration .document-body > h2 {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--rlu-border);
  color: var(--rlu-accent-strong);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.page-core-declaration .document-body > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

body.page-core-declaration .document-body > h3 {
  margin-top: 0.75rem;
  margin-bottom: 1.45rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.18;
}

body.page-core-declaration .document-body > p,
body.page-core-declaration .document-body > ul,
body.page-core-declaration .document-body > ol {
  max-width: 46rem;
}

body.page-core-declaration .document-body > ul,
body.page-core-declaration .document-body > ol {
  margin-block: 1.15rem 1.5rem;
  padding: 1rem 1rem 1rem 2.3rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.025);
}

body.page-core-declaration .document-body li + li {
  margin-top: 0.42rem;
}

body.page-core-declaration .revision-notice.revision-notice,
body.page-core-declaration .document-related.document-related {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: rgba(18, 26, 36, 0.76);
}

/* --------------------------------------------------------------------------
   Step 5-2: Foundational Documents index
   -------------------------------------------------------------------------- */
body.page-core-documents .page-content.page-content {
  width: min(calc(100% - 2rem), 82rem);
  padding-block: clamp(3.5rem, 7vw, 6.25rem) clamp(5rem, 9vw, 8rem);
}

body.page-core-documents .page-content > .prose.prose {
  display: grid;
  grid-template-columns: minmax(14rem, 0.78fr) minmax(0, 1.5fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  max-width: none;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.78);
}

body.page-core-documents .page-content > .prose h2 {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
}

body.page-core-documents .page-content > .prose p {
  grid-column: 2;
  margin-block: 0;
}

body.page-core-documents .page-modules.page-modules {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

body.page-core-documents .document-modules.document-modules {
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
}

body.page-core-documents .document-policy.document-policy {
  display: grid;
  grid-template-columns: minmax(14rem, 0.78fr) minmax(0, 1.5fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(191, 210, 255, 0.2);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 92% 0%, rgba(143, 179, 255, 0.14), transparent 20rem),
    linear-gradient(155deg, rgba(20, 31, 45, 0.97), rgba(15, 23, 33, 0.97));
}

body.page-core-documents .document-policy .section-label,
body.page-core-documents .document-policy h2 {
  grid-column: 1;
}

body.page-core-documents .document-policy p:not(.section-label) {
  grid-column: 2;
  margin-top: 0;
}

body.page-core-documents .record-role-guide.record-role-guide,
body.page-core-documents .list-section.list-section,
body.page-core-documents .document-modules > section:not(.document-policy):not(.statement-panel):not(.record-role-guide) {
  padding-top: 0;
  border-top: 0;
}

body.page-core-documents .record-role-guide__heading.record-role-guide__heading {
  max-width: 46rem;
  margin-bottom: 1.65rem;
}

body.page-core-documents .record-role-guide__grid.record-role-guide__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

body.page-core-documents .record-role-card.record-role-card {
  min-height: 15.5rem;
  padding: 1.35rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(155deg, rgba(20, 30, 42, 0.96), rgba(15, 22, 31, 0.96));
}

body.page-core-documents .record-role-card h3 {
  margin-top: 0;
  font-size: 1.18rem;
}

body.page-core-documents .record-role-card__boundary.record-role-card__boundary {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rlu-border);
  color: var(--rlu-text-muted);
  font-size: 0.88rem;
}

body.page-core-documents #document-metadata-policy.list-section {
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.72);
}

body.page-core-documents #document-metadata-policy .list-section__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}

body.page-core-documents #document-metadata-policy li {
  position: relative;
  margin: 0;
  padding: 0.75rem 0.8rem 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--rlu-radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

body.page-core-documents #document-metadata-policy li::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 1.08rem;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--rlu-accent);
}

body.page-core-documents .document-list.document-list {
  margin-top: 1.5rem;
}

body.page-core-documents .document-card.document-card {
  padding: clamp(1.5rem, 4vw, 2.65rem);
  border: 1px solid rgba(191, 210, 255, 0.22);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 94% 0%, rgba(143, 179, 255, 0.14), transparent 20rem),
    linear-gradient(145deg, rgba(21, 33, 50, 0.98), rgba(15, 23, 33, 0.98));
  box-shadow: var(--rlu-shadow-card);
}

body.page-core-documents .statement-panel.statement-panel {
  display: grid;
  grid-template-columns: minmax(14rem, 0.78fr) minmax(0, 1.5fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid rgba(191, 210, 255, 0.2);
  border-radius: var(--rlu-radius-xl);
  background: rgba(143, 179, 255, 0.07);
}

body.page-core-documents .statement-panel__eyebrow,
body.page-core-documents .statement-panel h2 {
  grid-column: 1;
}

body.page-core-documents .statement-panel__body.statement-panel__body {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 210, 255, 0.18);
}

/* --------------------------------------------------------------------------
   Step 5-2: Immutable version record
   -------------------------------------------------------------------------- */
body.page-core-record .page-content.page-content.document-record {
  width: min(calc(100% - 2rem), 78rem);
  padding-block: clamp(3.5rem, 7vw, 6.25rem) clamp(5rem, 9vw, 8rem);
}

body.page-core-record .document-header.document-header {
  padding: clamp(1.65rem, 4vw, 3rem);
  border: 1px solid rgba(191, 210, 255, 0.22);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 94% 0%, rgba(143, 179, 255, 0.16), transparent 22rem),
    linear-gradient(145deg, rgba(22, 34, 50, 0.98), rgba(15, 23, 33, 0.98));
  box-shadow: var(--rlu-shadow-card);
}

body.page-core-record .document-header__identity.document-header__identity {
  align-items: center;
}

body.page-core-record .document-header__identity img {
  padding: 0.45rem;
  border: 1px solid rgba(191, 210, 255, 0.18);
  border-radius: var(--rlu-radius-md);
  background: rgba(0, 0, 0, 0.12);
}

body.page-core-record .document-metadata.document-metadata {
  margin-top: 1.5rem;
  background: rgba(191, 210, 255, 0.12);
}

body.page-core-record .document-metadata > div {
  background: rgba(11, 16, 22, 0.38);
}

body.page-core-record .version-notice.version-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  margin-top: 1.35rem;
  padding: 1.35rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: rgba(18, 26, 36, 0.8);
}

body.page-core-record .version-notice img {
  width: 4.5rem;
  height: auto;
  opacity: 0.72;
}

body.page-core-record .version-notice code {
  display: inline-block;
  padding: 0.25rem 0.45rem;
  border-radius: var(--rlu-radius-sm);
  background: rgba(143, 179, 255, 0.08);
  color: var(--rlu-accent-strong);
}

body.page-core-record .document-record > section.prose {
  display: grid;
  grid-template-columns: minmax(12rem, 0.72fr) minmax(0, 1.5fr);
  column-gap: clamp(1.5rem, 5vw, 5rem);
  max-width: none;
  margin-top: 1.35rem;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: rgba(18, 26, 36, 0.68);
}

body.page-core-record .document-record > section.prose h2 {
  grid-column: 1;
  grid-row: 1 / span 6;
  margin: 0;
  font-size: clamp(1.45rem, 2.7vw, 1.95rem);
}

body.page-core-record .document-record > section.prose > :not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-core-record .document-record > section.prose > :last-child {
  margin-bottom: 0;
}

body.page-core-record .record-related.record-related {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: rgba(18, 26, 36, 0.68);
}

body.page-core-record .record-related ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

body.page-core-record .record-related li {
  margin: 0;
}

body.page-core-record .record-related a {
  display: block;
  height: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-sm);
  background: rgba(255, 255, 255, 0.025);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Step 5 responsive refinements
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  body.page-core-principles .principle-list.principle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-core-documents .record-role-guide__grid.record-role-guide__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body.page-core-definition .page-content > .prose.prose,
  body.page-core-definition .definition-block.definition-block,
  body.page-core-definition .statement-panel.statement-panel,
  body.page-core-definition .status-notice.status-notice,
  body.page-core-principles .page-content > .prose.prose,
  body.page-core-principles .status-notice.status-notice,
  body.page-core-principles .statement-panel.statement-panel,
  body.page-core-declaration .document-introduction.document-introduction,
  body.page-core-documents .page-content > .prose.prose,
  body.page-core-documents .document-policy.document-policy,
  body.page-core-documents .statement-panel.statement-panel,
  body.page-core-record .document-record > section.prose {
    grid-template-columns: 1fr;
  }

  body.page-core-definition .page-content > .prose > *,
  body.page-core-definition .definition-block__source,
  body.page-core-definition .definition-block h2,
  body.page-core-definition .definition-block__text.definition-block__text,
  body.page-core-definition .statement-panel__eyebrow,
  body.page-core-definition .statement-panel h2,
  body.page-core-definition .statement-panel__body.statement-panel__body,
  body.page-core-definition .status-notice__label,
  body.page-core-definition .status-notice h2,
  body.page-core-definition .status-notice__content.status-notice__content,
  body.page-core-principles .page-content > .prose h2,
  body.page-core-principles .page-content > .prose p,
  body.page-core-principles .status-notice__label,
  body.page-core-principles .status-notice h2,
  body.page-core-principles .status-notice__content.status-notice__content,
  body.page-core-principles .statement-panel__eyebrow,
  body.page-core-principles .statement-panel h2,
  body.page-core-principles .statement-panel__body.statement-panel__body,
  body.page-core-declaration .document-introduction .meta,
  body.page-core-declaration .document-introduction h2,
  body.page-core-declaration .document-introduction p:not(.meta),
  body.page-core-documents .page-content > .prose h2,
  body.page-core-documents .page-content > .prose p,
  body.page-core-documents .document-policy .section-label,
  body.page-core-documents .document-policy h2,
  body.page-core-documents .document-policy p:not(.section-label),
  body.page-core-documents .statement-panel__eyebrow,
  body.page-core-documents .statement-panel h2,
  body.page-core-documents .statement-panel__body.statement-panel__body,
  body.page-core-record .document-record > section.prose h2,
  body.page-core-record .document-record > section.prose > :not(h2) {
    grid-column: 1;
    grid-row: auto;
  }

  body.page-core-definition .definition-block__text.definition-block__text,
  body.page-core-definition .statement-panel__body.statement-panel__body,
  body.page-core-definition .status-notice__content.status-notice__content,
  body.page-core-principles .status-notice__content.status-notice__content,
  body.page-core-principles .statement-panel__body.statement-panel__body,
  body.page-core-documents .statement-panel__body.statement-panel__body {
    margin-top: 0.9rem;
    padding-top: 1.2rem;
    padding-left: 0;
    border-top: 1px solid rgba(191, 210, 255, 0.16);
    border-left: 0;
  }

  body.page-core-declaration .document-reading-grid.document-reading-grid {
    grid-template-columns: 1fr;
  }

  body.page-core-declaration .document-toc.document-toc {
    position: static;
  }

  body.page-core-declaration .document-toc__desktop.document-toc__desktop {
    display: none;
  }

  body.page-core-declaration .document-toc__mobile.document-toc__mobile {
    display: block;
    padding: 1rem;
    border: 1px solid var(--rlu-border);
    border-radius: var(--rlu-radius-lg);
    background: rgba(18, 26, 36, 0.8);
  }
}

@media (max-width: 700px) {
  body.page-core-definition .page-content.page-content,
  body.page-core-principles .page-content.page-content,
  body.page-core-documents .page-content.page-content,
  body.page-core-record .page-content.page-content.document-record,
  body.page-core-declaration .document-paper.document-paper {
    width: min(calc(100% - 1.25rem), var(--rlu-content-max));
  }

  body.page-core-definition .list-section__items.list-section__items,
  body.page-core-principles .principle-list.principle-list,
  body.page-core-documents .record-role-guide__grid.record-role-guide__grid,
  body.page-core-documents #document-metadata-policy .list-section__items,
  body.page-core-record .record-related ul {
    grid-template-columns: 1fr;
  }

  body.page-core-principles .principle-card.principle-card {
    min-height: 0;
  }

  body.page-core-principles .principles-modules > section:not(.statement-panel)::before {
    display: none;
  }

  body.page-core-declaration .document-shell.document-shell {
    padding-top: 1.75rem;
  }

  body.page-core-declaration .document-header.document-header,
  body.page-core-declaration .document-introduction.document-introduction,
  body.page-core-declaration .document-body.document-body,
  body.page-core-record .document-header.document-header {
    padding: 1.3rem;
    border-radius: var(--rlu-radius-lg);
  }

  body.page-core-declaration .document-body > h2 {
    margin-top: 3.75rem;
  }

  body.page-core-record .version-notice.version-notice {
    grid-template-columns: 1fr;
  }

  body.page-core-record .version-notice img {
    width: 3.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-core-principles .principle-card.principle-card {
    transition: none;
  }
}

/* Step 5 final width and responsive corrections. */
body.page-core-definition .status-notice.status-notice,
body.page-core-principles .status-notice.status-notice,
body.page-core-documents .document-policy.document-policy,
body.page-core-documents #document-metadata-policy.list-section {
  width: auto;
  max-width: none;
}

body.page-core-record .record-related li {
  grid-column: auto !important;
}

@media (max-width: 900px) {
  body.page-core-definition .page-content > .prose.prose > * {
    grid-column: 1 / -1 !important;
    width: auto;
    max-width: none;
  }
}

body.page-core-record .record-related.record-related ul {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
  body.page-core-record .record-related.record-related ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  body.page-core-record .record-related.record-related ul {
    grid-template-columns: 1fr !important;
  }
}

/* ========================================================================== 
   Step 6 — Organization, governance, and function pages
   2026-08-06
   Presentation-only reconstruction. Content, order, URLs, metadata, forms,
   machine resources, and server behavior remain unchanged.
   ========================================================================== */

/* Shared Step 6 page rhythm ------------------------------------------------ */
body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) .page-content.page-content {
  padding-block: clamp(3.75rem, 7vw, 6.75rem);
}

body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) .page-content > .prose:first-child {
  max-width: none;
  margin: 0;
}

body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) .page-modules.page-modules {
  margin-top: clamp(3.25rem, 7vw, 6rem);
}

body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) :is(
  .about-modules,
  .governance-modules,
  .transparency-modules,
  .legal-modules,
  .participation-modules,
  .articles-modules,
  .machine-modules
) {
  gap: clamp(3rem, 7vw, 5.75rem);
}

body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) .related-links.related-links {
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding: 1.2rem 1.35rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: rgba(255, 255, 255, 0.025);
}

body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) .related-links.related-links h2 {
  margin: 0;
  color: var(--rlu-text-muted);
  font-size: var(--rlu-text-xs);
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) .related-links.related-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) .related-links.related-links li {
  margin: 0;
}

body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) .related-links.related-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-pill);
  background: rgba(143, 179, 255, 0.045);
  color: var(--rlu-text-secondary);
  text-decoration: none;
}

body:is(
  .page-org-about,
  .page-org-governance,
  .page-org-transparency,
  .page-org-legal-status,
  .page-function-participate,
  .page-function-articles,
  .page-function-machine-access,
  .page-function-contact,
  .page-function-privacy
) .related-links.related-links a:hover {
  border-color: rgba(191, 210, 255, 0.28);
  background: rgba(143, 179, 255, 0.1);
  color: var(--rlu-heading);
}

/* About -------------------------------------------------------------------- */
body.page-org-about .page-content.page-content {
  width: min(calc(100% - 2rem), var(--rlu-content-max));
}

body.page-org-about .page-content > .prose.prose {
  display: flow-root;
}

body.page-org-about .page-content > .prose > .status-notice {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
  gap: 0.5rem clamp(1.5rem, 5vw, 4rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  border: 1px solid rgba(143, 179, 255, 0.3);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 90% 0%, rgba(143, 179, 255, 0.12), transparent 18rem),
    linear-gradient(145deg, rgba(21, 33, 50, 0.96), rgba(16, 23, 32, 0.99));
  box-shadow: var(--rlu-shadow-card);
}

body.page-org-about .page-content > .prose > .status-notice .status-notice__label,
body.page-org-about .page-content > .prose > .status-notice h2 {
  grid-column: 1;
}

body.page-org-about .page-content > .prose > .status-notice h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

body.page-org-about .page-content > .prose > .status-notice .status-notice__content {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 210, 255, 0.18);
}

body.page-org-about .page-content > .prose > h2 {
  max-width: 55rem;
  margin: clamp(3.5rem, 7vw, 5.5rem) 0 1.2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rlu-divider);
}

body.page-org-about .page-content > .prose > h2::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  margin: -1.35rem 0 1.25rem;
  border-radius: var(--rlu-radius-pill);
  background: linear-gradient(90deg, var(--rlu-accent), transparent);
}

body.page-org-about .page-content > .prose > h2#about-us {
  margin-top: 0;
}

body.page-org-about .page-content > .prose > p {
  max-width: 58rem;
  margin-inline: 0;
}

body.page-org-about .page-content > .prose > ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.8rem;
  max-width: 67rem;
  margin: 1.35rem 0 1.6rem;
  padding: 0;
  list-style: none;
}

body.page-org-about .page-content > .prose > ul > li {
  position: relative;
  margin: 0;
  padding: 0.78rem 0.9rem 0.78rem 2rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.022);
}

body.page-org-about .page-content > .prose > ul > li::before {
  content: "";
  position: absolute;
  top: 1.18rem;
  left: 0.85rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--rlu-accent);
  box-shadow: 0 0 0 4px rgba(143, 179, 255, 0.09);
}

body.page-org-about .page-content > .prose > h3 {
  max-width: 58rem;
  margin: 2rem 0 0.8rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: linear-gradient(135deg, rgba(21, 33, 50, 0.86), rgba(18, 26, 36, 0.74));
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
}

body.page-org-about .statement-panel.statement-panel {
  display: grid;
  grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.35fr);
  gap: 0.7rem clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.65rem, 3.8vw, 2.7rem);
  border: 1px solid var(--rlu-border-strong);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 88% 0%, rgba(143, 179, 255, 0.1), transparent 20rem),
    linear-gradient(145deg, rgba(19, 28, 39, 0.98), rgba(14, 21, 30, 0.99));
}

body.page-org-about .statement-panel__eyebrow,
body.page-org-about .statement-panel h2 {
  grid-column: 1;
}

body.page-org-about .statement-panel h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

body.page-org-about .statement-panel__body {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 210, 255, 0.17);
}

body.page-org-about .faq-section.faq-section {
  display: grid;
  grid-template-columns: minmax(15rem, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rlu-divider);
}

body.page-org-about .faq-section__heading {
  position: sticky;
  top: 7.5rem;
  max-width: 27rem;
}

body.page-org-about .faq-section__heading h2 {
  margin-top: 0.9rem;
}

body.page-org-about .faq-list.faq-list {
  display: grid;
  gap: 0.75rem;
}

body.page-org-about .faq-item.faq-item {
  overflow: hidden;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.9), rgba(16, 23, 32, 0.95));
  box-shadow: none;
}

body.page-org-about .faq-item summary {
  position: relative;
  min-height: 56px;
  padding: 1rem 3.4rem 1rem 1.2rem;
  color: var(--rlu-heading);
  font-weight: 660;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

body.page-org-about .faq-item summary::-webkit-details-marker {
  display: none;
}

body.page-org-about .faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border: 1px solid rgba(143, 179, 255, 0.24);
  border-radius: 50%;
  background: rgba(143, 179, 255, 0.08);
  color: var(--rlu-accent-strong);
  font-size: 1.1rem;
  transform: translateY(-50%);
}

body.page-org-about .faq-item[open] {
  border-color: rgba(191, 210, 255, 0.24);
  background: linear-gradient(180deg, rgba(21, 33, 50, 0.94), rgba(16, 23, 32, 0.98));
}

body.page-org-about .faq-item[open] summary::after {
  content: "−";
}

body.page-org-about .faq-item__answer {
  padding: 0 1.2rem 1.2rem;
  border-top: 1px solid var(--rlu-divider);
}

body.page-org-about .faq-item__answer > :first-child {
  margin-top: 1rem;
}

body.page-org-about .faq-item__answer > :last-child {
  margin-bottom: 0;
}

body.page-org-about .faq-item__link a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

/* Governance --------------------------------------------------------------- */
body.page-org-governance .page-content > .prose.prose {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  gap: 0.75rem clamp(2rem, 6vw, 5rem);
  padding: clamp(1.6rem, 3.8vw, 2.65rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 90% 0%, rgba(143, 179, 255, 0.1), transparent 19rem),
    linear-gradient(145deg, rgba(19, 28, 39, 0.96), rgba(14, 21, 30, 0.99));
}

body.page-org-governance .page-content > .prose h2 {
  grid-column: 1;
  grid-row: 1 / span 4;
  margin: 0;
}

body.page-org-governance .page-content > .prose > :not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-org-governance .current-governance.current-governance,
body.page-org-governance .decision-records.decision-records {
  display: grid;
  grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.35fr);
  gap: 0.7rem clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: linear-gradient(145deg, rgba(19, 28, 39, 0.96), rgba(16, 23, 32, 0.99));
}

body.page-org-governance .current-governance > :is(.section-label, h2),
body.page-org-governance .decision-records > :is(.section-label, h2) {
  grid-column: 1;
}

body.page-org-governance .current-governance > :not(.section-label):not(h2),
body.page-org-governance .decision-records > :not(.section-label):not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-org-governance .current-governance > p:not(.section-label),
body.page-org-governance .decision-records > p:not(.section-label) {
  align-self: start;
}

body.page-org-governance .current-governance > ul,
body.page-org-governance .decision-records > ul {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

body.page-org-governance .current-governance li,
body.page-org-governance .decision-records li {
  position: relative;
  margin: 0;
  padding: 0.72rem 0.85rem 0.72rem 1.9rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.018);
}

body.page-org-governance .current-governance li::before,
body.page-org-governance .decision-records li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: 0.8rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--rlu-accent);
}

body.page-org-governance .list-section.list-section {
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.7);
}

body.page-org-governance .list-section__items.list-section__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

body.page-org-governance .list-section__items > li {
  position: relative;
  margin: 0;
  padding: 0.9rem 1rem 0.9rem 2.15rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.018);
}

body.page-org-governance .list-section__items > li::before {
  content: "";
  position: absolute;
  top: 1.23rem;
  left: 0.9rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--rlu-accent);
  box-shadow: 0 0 0 4px rgba(143, 179, 255, 0.08);
}

body.page-org-governance .governance-modules > section:nth-child(3) {
  position: relative;
}

body.page-org-governance .governance-modules > section:nth-child(3) > .section-label,
body.page-org-governance .governance-modules > section:nth-child(3) > h2,
body.page-org-governance .governance-modules > section:nth-child(3) > p {
  max-width: 53rem;
}

body.page-org-governance .governance-stages.governance-stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

body.page-org-governance .governance-stages::before {
  content: "";
  position: absolute;
  top: 2.65rem;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, var(--rlu-accent), rgba(143, 179, 255, 0.28), var(--rlu-divider));
}

body.page-org-governance .governance-stage.governance-stage {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 1.45rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.98), rgba(15, 22, 31, 0.99));
  box-shadow: var(--rlu-shadow-card);
}

body.page-org-governance .governance-stage.governance-stage::before {
  display: none;
}

body.page-org-governance .governance-stage.governance-stage--current {
  border-color: rgba(143, 179, 255, 0.4);
  background:
    radial-gradient(circle at 90% 0%, rgba(143, 179, 255, 0.13), transparent 14rem),
    linear-gradient(180deg, rgba(21, 33, 50, 0.99), rgba(16, 24, 34, 0.99));
}

body.page-org-governance .governance-stage header {
  min-height: 8.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rlu-divider);
}

body.page-org-governance .governance-stage__number {
  display: inline-grid;
  min-width: 2.1rem;
  min-height: 2.1rem;
  place-items: center;
  padding: 0.25rem;
  border: 1px solid rgba(143, 179, 255, 0.28);
  border-radius: 50%;
  background: var(--rlu-bg-soft);
}

body.page-org-governance .governance-stage h3 {
  margin-top: 0.9rem;
}

body.page-org-governance .governance-stage__detail {
  display: grid;
  gap: 1rem;
  margin-top: 1.15rem;
}

body.page-org-governance .governance-stage__detail section {
  padding: 0.9rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.018);
}

body.page-org-governance .governance-stage__detail h4 {
  margin: 0 0 0.45rem;
  color: var(--rlu-accent-strong);
  font-size: var(--rlu-text-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

body.page-org-governance .governance-stage__detail p,
body.page-org-governance .governance-stage__detail ul {
  margin-block: 0.45rem 0;
}

body.page-org-governance .governance-stage__detail dl {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

body.page-org-governance .governance-stage__detail dl > div {
  padding: 0.8rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(143, 179, 255, 0.035);
}

body.page-org-governance .statement-panel.statement-panel {
  display: grid;
  grid-template-columns: minmax(15rem, 0.68fr) minmax(0, 1.32fr);
  gap: 0.75rem clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 3.5rem);
}

body.page-org-governance .statement-panel > :is(.statement-panel__eyebrow, h2) {
  grid-column: 1;
}

body.page-org-governance .statement-panel__body {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 210, 255, 0.18);
}

body.page-org-governance .status-notice.status-notice {
  display: grid;
  grid-template-columns: minmax(14rem, 0.62fr) minmax(0, 1.38fr);
  gap: 0.65rem clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
}

body.page-org-governance .status-notice > :is(.status-notice__label, h2) {
  grid-column: 1;
}

body.page-org-governance .status-notice__content {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--rlu-divider);
}

/* Transparency and legal status ------------------------------------------- */
body.page-org-transparency .page-content > .prose.prose,
body.page-org-legal-status .page-content > .prose.prose {
  display: grid;
  grid-template-columns: minmax(13rem, 0.58fr) minmax(0, 1.42fr);
  gap: 0.75rem clamp(2rem, 6vw, 5rem);
  padding: clamp(1.6rem, 3.8vw, 2.65rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: linear-gradient(145deg, rgba(19, 28, 39, 0.95), rgba(14, 21, 30, 0.99));
}

body.page-org-transparency .page-content > .prose h2,
body.page-org-legal-status .page-content > .prose h2 {
  grid-column: 1;
  grid-row: 1 / span 4;
  margin: 0;
}

body.page-org-transparency .page-content > .prose > :not(h2),
body.page-org-legal-status .page-content > .prose > :not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-org-transparency .reading-section.reading-section,
body.page-org-legal-status .reading-section.reading-section {
  display: grid;
  grid-template-columns: minmax(14rem, 0.62fr) minmax(0, 1.38fr);
  gap: 0.7rem clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.68);
}

body.page-org-transparency .reading-section > :is(.section-label, h2),
body.page-org-legal-status .reading-section > :is(.section-label, h2) {
  grid-column: 1;
}

body.page-org-transparency .reading-section > :not(.section-label):not(h2),
body.page-org-legal-status .reading-section > :not(.section-label):not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-org-transparency #content-sources,
body.page-org-legal-status .legal-modules > section:first-child {
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.62);
}

body.page-org-transparency .summary-grid.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

body.page-org-transparency .summary-grid > article,
body.page-org-legal-status .summary-grid > article {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.96), rgba(16, 23, 32, 0.99));
}

body.page-org-transparency .summary-grid > article::before,
body.page-org-legal-status .summary-grid > article::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1rem;
  border-radius: var(--rlu-radius-pill);
  background: linear-gradient(90deg, var(--rlu-accent), transparent);
}

body.page-org-transparency .summary-grid h3,
body.page-org-legal-status .summary-grid h3 {
  margin: 0;
}

body.page-org-transparency .summary-grid p,
body.page-org-legal-status .summary-grid p {
  margin-bottom: 0;
}

body.page-org-transparency .statement-panel.statement-panel,
body.page-org-legal-status .statement-panel.statement-panel {
  display: grid;
  grid-template-columns: minmax(15rem, 0.68fr) minmax(0, 1.32fr);
  gap: 0.7rem clamp(2rem, 6vw, 5rem);
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--rlu-border-strong);
  border-radius: var(--rlu-radius-xl);
}

body.page-org-transparency .statement-panel > :is(.statement-panel__eyebrow, h2),
body.page-org-legal-status .statement-panel > :is(.statement-panel__eyebrow, h2) {
  grid-column: 1;
}

body.page-org-transparency .statement-panel__body,
body.page-org-legal-status .statement-panel__body {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid rgba(191, 210, 255, 0.17);
}

body.page-org-transparency .list-section.list-section,
body.page-org-legal-status .list-section.list-section {
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.68);
}

body.page-org-transparency .list-section__items.list-section__items,
body.page-org-legal-status .list-section__items.list-section__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

body.page-org-transparency .list-section__items > li,
body.page-org-legal-status .list-section__items > li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0.9rem 0.85rem 2.1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.018);
}

body.page-org-transparency .list-section__items > li::before,
body.page-org-legal-status .list-section__items > li::before {
  content: "";
  position: absolute;
  top: 1.18rem;
  left: 0.86rem;
  width: 0.43rem;
  height: 0.43rem;
  border-radius: 50%;
  background: var(--rlu-accent);
}

body.page-org-transparency .status-notice.status-notice,
body.page-org-legal-status .status-notice.status-notice {
  display: grid;
  grid-template-columns: minmax(14rem, 0.62fr) minmax(0, 1.38fr);
  gap: 0.65rem clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
}

body.page-org-transparency .status-notice > :is(.status-notice__label, h2),
body.page-org-legal-status .status-notice > :is(.status-notice__label, h2) {
  grid-column: 1;
}

body.page-org-transparency .status-notice__content,
body.page-org-legal-status .status-notice__content {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--rlu-divider);
}

body.page-org-legal-status .summary-grid.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

/* Participation ------------------------------------------------------------ */
body.page-function-participate .page-content > .prose.prose > section {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  gap: 0.75rem clamp(2rem, 6vw, 5rem);
  padding: clamp(1.6rem, 3.8vw, 2.65rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 92% 0%, rgba(143, 179, 255, 0.09), transparent 18rem),
    linear-gradient(145deg, rgba(19, 28, 39, 0.96), rgba(14, 21, 30, 0.99));
}

body.page-function-participate .page-content > .prose > section h2 {
  grid-column: 1;
  grid-row: 1 / span 6;
  margin: 0;
}

body.page-function-participate .page-content > .prose > section > :not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-function-participate .participation-status.participation-status {
  overflow: hidden;
  border: 1px solid var(--rlu-border-strong);
  border-radius: var(--rlu-radius-xl);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.97), rgba(15, 22, 31, 0.99));
}

body.page-function-participate .participation-status__heading {
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-bottom: 1px solid var(--rlu-divider);
  background:
    radial-gradient(circle at 90% 0%, rgba(143, 179, 255, 0.12), transparent 18rem),
    rgba(143, 179, 255, 0.035);
}

body.page-function-participate .participation-status__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 0;
  background: var(--rlu-divider);
}

body.page-function-participate .participation-status__grid > article {
  min-width: 0;
  min-height: 9rem;
  padding: 1.25rem;
  border: 0;
  background: var(--rlu-surface);
}

body.page-function-participate .mechanisms.mechanisms {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rlu-divider);
}

body.page-function-participate .section-heading {
  max-width: 55rem;
}

body.page-function-participate .mechanisms__grid.mechanisms__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

body.page-function-participate .mechanism-card.mechanism-card {
  position: relative;
  min-width: 0;
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.96), rgba(16, 23, 32, 0.99));
  box-shadow: var(--rlu-shadow-card);
}

body.page-function-participate .mechanism-card__number {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  padding: 0.2rem;
  border: 1px solid rgba(143, 179, 255, 0.28);
  border-radius: 50%;
  background: rgba(143, 179, 255, 0.07);
}

body.page-function-participate .mechanism-card h3 {
  margin-top: 1rem;
}

body.page-function-participate .human-participation.human-participation,
body.page-function-participate .distinctions.distinctions {
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.68);
}

body.page-function-participate .human-participation__intro,
body.page-function-participate .distinctions__intro {
  max-width: 55rem;
}

body.page-function-participate .human-participation__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.5rem;
}

body.page-function-participate .human-participation__columns > section {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: rgba(255, 255, 255, 0.018);
}

body.page-function-participate .tag-list.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  list-style: none;
}

body.page-function-participate .tag-list li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.42rem 0.75rem;
}

body.page-function-participate .distinctions dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

body.page-function-participate .distinctions dl > div {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.018);
}

body.page-function-participate .distinctions dt {
  color: var(--rlu-heading);
  font-weight: 680;
}

body.page-function-participate .distinctions dd {
  margin: 0.45rem 0 0;
}

body.page-function-participate .list-section.list-section {
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.68);
}

body.page-function-participate .list-section__items.list-section__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

body.page-function-participate .list-section__items > li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0.9rem 0.85rem 2.1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.018);
}

body.page-function-participate .list-section__items > li::before {
  content: "";
  position: absolute;
  top: 1.18rem;
  left: 0.86rem;
  width: 0.43rem;
  height: 0.43rem;
  border-radius: 50%;
  background: var(--rlu-accent);
}

body.page-function-participate .status-notice.status-notice {
  display: grid;
  grid-template-columns: minmax(14rem, 0.62fr) minmax(0, 1.38fr);
  gap: 0.65rem clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3.4vw, 2.4rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
}

body.page-function-participate .status-notice > :is(.status-notice__label, h2) {
  grid-column: 1;
}

body.page-function-participate .status-notice__content {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--rlu-divider);
}

/* Articles ----------------------------------------------------------------- */
body.page-function-articles .page-content > .prose.prose {
  max-width: 58rem;
  padding: clamp(1.45rem, 3vw, 2rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: rgba(18, 26, 36, 0.62);
}

body.page-function-articles .publication-scope.publication-scope,
body.page-function-articles .foundational-records.foundational-records {
  display: grid;
  grid-template-columns: minmax(15rem, 0.63fr) minmax(0, 1.37fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.65);
}

body.page-function-articles .publication-scope > div:first-child,
body.page-function-articles .foundational-records__intro {
  max-width: 28rem;
}

body.page-function-articles .publication-scope ol {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-function-articles .publication-scope ol > li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0.9rem 0.85rem 2.2rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.018);
  counter-increment: publication-step;
}

body.page-function-articles .publication-scope ol {
  counter-reset: publication-step;
}

body.page-function-articles .publication-scope ol > li::before {
  content: counter(publication-step, decimal-leading-zero);
  position: absolute;
  top: 0.83rem;
  left: 0.82rem;
  color: var(--rlu-accent-strong);
  font-size: var(--rlu-text-xs);
  font-weight: 720;
}

body.page-function-articles .source-directory.source-directory {
  display: block;
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.62);
}

body.page-function-articles .source-directory__intro {
  max-width: 57rem;
}

body.page-function-articles .source-directory__grid.source-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

body.page-function-articles .source-directory__item.source-directory__item {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.96), rgba(16, 23, 32, 0.99));
}

body.page-function-articles .source-label {
  margin-bottom: 0.85rem;
}

body.page-function-articles .article-empty.article-empty {
  position: relative;
  max-width: none;
  padding: clamp(2rem, 5vw, 3.75rem);
  border: 1px solid var(--rlu-border-strong);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 88% 0%, rgba(143, 179, 255, 0.13), transparent 20rem),
    linear-gradient(145deg, rgba(21, 33, 50, 0.95), rgba(15, 22, 31, 0.99));
  text-align: center;
}

body.page-function-articles .article-empty::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.2rem;
  border: 1px solid rgba(143, 179, 255, 0.3);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--rlu-accent) 0 2px, transparent 3px),
    rgba(143, 179, 255, 0.07);
  box-shadow: 0 0 0 8px rgba(143, 179, 255, 0.035);
}

body.page-function-articles .article-empty > * {
  max-width: 44rem;
  margin-inline: auto;
}

body.page-function-articles .foundational-records__list {
  min-width: 0;
}

body.page-function-articles .document-card.document-card {
  padding: 1.5rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.97), rgba(16, 23, 32, 0.99));
}

/* Machine access ----------------------------------------------------------- */
body.page-function-machine-access .page-content > .prose.prose > section {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  gap: 0.75rem clamp(2rem, 6vw, 5rem);
  padding: clamp(1.6rem, 3.8vw, 2.65rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: linear-gradient(145deg, rgba(19, 28, 39, 0.96), rgba(14, 21, 30, 0.99));
}

body.page-function-machine-access .page-content > .prose > section h2 {
  grid-column: 1;
  grid-row: 1 / span 6;
  margin: 0;
}

body.page-function-machine-access .page-content > .prose > section > :not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-function-machine-access .authority-notice.authority-notice {
  display: grid;
  grid-template-columns: minmax(14rem, 0.62fr) minmax(0, 1.38fr);
  gap: 0.7rem clamp(1.5rem, 5vw, 4rem);
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border-strong);
  border-radius: var(--rlu-radius-xl);
  background:
    radial-gradient(circle at 90% 0%, rgba(143, 179, 255, 0.11), transparent 18rem),
    linear-gradient(145deg, rgba(21, 33, 50, 0.95), rgba(15, 22, 31, 0.99));
}

body.page-function-machine-access .authority-notice > :is(.section-label, h2) {
  grid-column: 1;
}

body.page-function-machine-access .authority-notice > :not(.section-label):not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-function-machine-access .format-overview.format-overview {
  display: block;
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.65);
}

body.page-function-machine-access .format-overview > div:first-child {
  max-width: 55rem;
}

body.page-function-machine-access .format-overview__grid.format-overview__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

body.page-function-machine-access .format-overview__grid > article {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.96), rgba(16, 23, 32, 0.99));
}

body.page-function-machine-access .machine-modules > section:nth-child(3) {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rlu-divider);
}

body.page-function-machine-access .resource-list.resource-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

body.page-function-machine-access .machine-resource.machine-resource {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  min-width: 0;
  min-height: 100%;
  padding: 1.3rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.97), rgba(16, 23, 32, 0.99));
}

body.page-function-machine-access .machine-resource__main {
  min-width: 0;
}

body.page-function-machine-access .machine-resource__path {
  display: inline-block;
  max-width: 100%;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

body.page-function-machine-access .machine-resource .format-badge {
  align-self: start;
  white-space: nowrap;
}

body.page-function-machine-access .machine-resource__human {
  margin-bottom: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rlu-divider);
}

body.page-function-machine-access .list-section.list-section {
  padding: clamp(1.6rem, 3.5vw, 2.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.68);
}

body.page-function-machine-access .list-section__items.list-section__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

body.page-function-machine-access .list-section__items > li {
  position: relative;
  margin: 0;
  padding: 0.85rem 0.9rem 0.85rem 2.1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.018);
}

body.page-function-machine-access .list-section__items > li::before {
  content: "";
  position: absolute;
  top: 1.18rem;
  left: 0.86rem;
  width: 0.43rem;
  height: 0.43rem;
  border-radius: 50%;
  background: var(--rlu-accent);
}

/* Contact ------------------------------------------------------------------ */
body.page-function-contact .page-content > .prose.prose {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  gap: 0.75rem clamp(2rem, 6vw, 5rem);
  padding: clamp(1.6rem, 3.8vw, 2.65rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: linear-gradient(145deg, rgba(19, 28, 39, 0.96), rgba(14, 21, 30, 0.99));
}

body.page-function-contact .page-content > .prose h2 {
  grid-column: 1;
  grid-row: 1 / span 6;
  margin: 0;
}

body.page-function-contact .page-content > .prose > :not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-function-contact .contact-panel.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.45fr);
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: rgba(18, 26, 36, 0.72);
  box-shadow: var(--rlu-shadow-soft);
}

body.page-function-contact .contact-panel form {
  min-width: 0;
  padding: clamp(1.25rem, 3.2vw, 2.25rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.98), rgba(16, 23, 32, 0.99));
}

body.page-function-contact .form-notice.form-notice {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(215, 181, 109, 0.26);
  border-radius: var(--rlu-radius-md);
  background: var(--rlu-notice-soft);
}

body.page-function-contact .form-notice h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

body.page-function-contact .form-notice p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}

body.page-function-contact fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.page-function-contact .form-grid.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

body.page-function-contact .form-field.form-field {
  min-width: 0;
  margin: 0;
}

body.page-function-contact .form-field--wide {
  grid-column: 1 / -1;
}

body.page-function-contact .form-field label {
  display: flex;
  min-height: 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  color: var(--rlu-heading);
  font-size: 0.91rem;
  font-weight: 650;
}

body.page-function-contact .form-field__requirement {
  color: var(--rlu-text-muted);
  font-size: var(--rlu-text-xs);
  font-weight: 560;
  white-space: nowrap;
}

body.page-function-contact :is(input, select, textarea) {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}

body.page-function-contact textarea {
  min-height: 13rem;
  resize: vertical;
}

body.page-function-contact .form-field__guidance {
  margin: 0.45rem 0 0;
  color: var(--rlu-text-muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

body.page-function-contact .form-field--checkbox {
  padding: 1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(143, 179, 255, 0.035);
}

body.page-function-contact .form-field--checkbox label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  justify-content: start;
  margin: 0;
  line-height: 1.55;
}

body.page-function-contact .form-field--checkbox input {
  width: 1.2rem;
  min-height: 1.2rem;
  margin: 0.15rem 0 0;
}

body.page-function-contact .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.35rem;
}

body.page-function-contact button[type="submit"] {
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(143, 179, 255, 0.36);
  border-radius: var(--rlu-radius-pill);
  background: var(--rlu-accent-soft-strong);
  color: var(--rlu-heading);
  font: inherit;
  font-weight: 680;
}

body.page-function-contact button[type="submit"]:disabled {
  border-color: var(--rlu-border);
  background: rgba(174, 185, 200, 0.08);
  color: var(--rlu-text-muted);
  cursor: not-allowed;
}

body.page-function-contact .form-status.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(174, 185, 200, 0.06);
}

body.page-function-contact .form-status[hidden] {
  display: none;
}

body.page-function-contact .contact-panel__aside.contact-panel__aside {
  position: sticky;
  top: 7.5rem;
  align-self: start;
  padding: 1.35rem;
  border: 1px solid rgba(143, 179, 255, 0.22);
  border-radius: var(--rlu-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 179, 255, 0.11), transparent 14rem),
    linear-gradient(180deg, rgba(21, 33, 50, 0.94), rgba(16, 23, 32, 0.99));
}

body.page-function-contact .contact-panel__aside a[href^="mailto:"] {
  display: block;
  margin-top: 0.55rem;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  font-weight: 680;
}

/* Privacy ------------------------------------------------------------------ */
body.page-function-privacy .page-content > .prose.prose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.page-function-privacy .page-content > .prose > section,
body.page-function-privacy .page-content > .prose > .status-notice {
  min-width: 0;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-lg);
  background: linear-gradient(180deg, rgba(19, 28, 39, 0.94), rgba(16, 23, 32, 0.98));
  box-shadow: var(--rlu-shadow-card);
}

body.page-function-privacy .page-content > .prose > section:first-child,
body.page-function-privacy .page-content > .prose > section:nth-child(2),
body.page-function-privacy .page-content > .prose > .status-notice,
body.page-function-privacy .page-content > .prose > section:last-child {
  grid-column: 1 / -1;
}

body.page-function-privacy .page-content > .prose > section:first-child,
body.page-function-privacy .page-content > .prose > section:nth-child(2) {
  display: grid;
  grid-template-columns: minmax(13rem, 0.55fr) minmax(0, 1.45fr);
  gap: 0.65rem clamp(1.5rem, 5vw, 4rem);
}

body.page-function-privacy .page-content > .prose > section:first-child h2,
body.page-function-privacy .page-content > .prose > section:nth-child(2) h2 {
  grid-column: 1;
  grid-row: 1 / span 6;
  margin: 0;
}

body.page-function-privacy .page-content > .prose > section:first-child > :not(h2),
body.page-function-privacy .page-content > .prose > section:nth-child(2) > :not(h2) {
  grid-column: 2;
  margin-top: 0;
}

body.page-function-privacy .page-content > .prose > section > h2 {
  margin-top: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
}

body.page-function-privacy .field-inventory.field-inventory,
body.page-function-privacy .revision-metadata.revision-metadata {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: var(--rlu-divider);
  overflow: hidden;
}

body.page-function-privacy .field-inventory > div,
body.page-function-privacy .revision-metadata > div {
  min-width: 0;
  padding: 0.9rem;
  background: var(--rlu-surface);
}

body.page-function-privacy .field-inventory dt,
body.page-function-privacy .revision-metadata dt {
  color: var(--rlu-text-muted);
  font-size: var(--rlu-text-xs);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.page-function-privacy .field-inventory dd,
body.page-function-privacy .revision-metadata dd {
  margin: 0.35rem 0 0;
  overflow-wrap: anywhere;
}

body.page-function-privacy .status-notice.status-notice {
  display: grid;
  grid-template-columns: minmax(14rem, 0.62fr) minmax(0, 1.38fr);
  gap: 0.65rem clamp(1.5rem, 5vw, 4rem);
  border-color: var(--rlu-border);
}

body.page-function-privacy .status-notice > :is(.status-notice__label, h2) {
  grid-column: 1;
}

body.page-function-privacy .status-notice__content {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--rlu-divider);
}

/* 404 ---------------------------------------------------------------------- */
body.page-function-404 .error-page.error-page {
  min-height: clamp(34rem, 72vh, 48rem);
  border-bottom: 1px solid var(--rlu-divider);
  background:
    radial-gradient(circle at 78% 18%, rgba(143, 179, 255, 0.16), transparent 24rem),
    radial-gradient(circle at 14% 90%, rgba(143, 179, 255, 0.06), transparent 25rem),
    linear-gradient(140deg, var(--rlu-bg-soft), var(--rlu-bg-deep));
}

body.page-function-404 .error-page__inner.error-page__inner {
  position: relative;
  width: min(calc(100% - 2rem), 54rem);
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-xl);
  background: linear-gradient(145deg, rgba(19, 28, 39, 0.94), rgba(11, 16, 22, 0.96));
  box-shadow: var(--rlu-shadow-soft);
  text-align: center;
}

body.page-function-404 .error-page__code {
  margin: 0;
  color: var(--rlu-accent-strong);
  font-size: clamp(4.5rem, 14vw, 8rem);
  font-weight: 780;
  letter-spacing: -0.07em;
  line-height: 0.9;
  text-shadow: 0 0 48px rgba(143, 179, 255, 0.16);
}

body.page-function-404 .error-page h1 {
  margin-top: 1.25rem;
}

body.page-function-404 .error-page .lead,
body.page-function-404 .error-page .prose {
  max-width: 38rem;
  margin-inline: auto;
}

body.page-function-404 .error-page nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

body.page-function-404 .error-page nav a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(143, 179, 255, 0.28);
  border-radius: var(--rlu-radius-pill);
  background: rgba(143, 179, 255, 0.08);
  color: var(--rlu-text);
  text-decoration: none;
}

body.page-function-404 .error-page nav a:hover {
  border-color: rgba(191, 210, 255, 0.42);
  background: rgba(143, 179, 255, 0.15);
  color: var(--rlu-heading);
}

/* Step 6 responsive refinements ------------------------------------------- */
@media (max-width: 1100px) {
  body.page-org-transparency .summary-grid.summary-grid,
  body.page-function-articles .source-directory__grid.source-directory__grid,
  body.page-function-participate .mechanisms__grid.mechanisms__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-function-participate .participation-status__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-function-machine-access .format-overview__grid.format-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-function-contact .contact-panel.contact-panel {
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.38fr);
  }
}

@media (max-width: 900px) {
  body.page-org-about .page-content > .prose > .status-notice,
  body.page-org-about .statement-panel.statement-panel,
  body.page-org-about .faq-section.faq-section,
  body.page-org-governance .page-content > .prose.prose,
  body.page-org-governance .current-governance.current-governance,
  body.page-org-governance .decision-records.decision-records,
  body.page-org-governance .statement-panel.statement-panel,
  body.page-org-governance .status-notice.status-notice,
  body.page-org-transparency .page-content > .prose.prose,
  body.page-org-legal-status .page-content > .prose.prose,
  body.page-org-transparency .reading-section.reading-section,
  body.page-org-legal-status .reading-section.reading-section,
  body.page-org-transparency .statement-panel.statement-panel,
  body.page-org-legal-status .statement-panel.statement-panel,
  body.page-org-transparency .status-notice.status-notice,
  body.page-org-legal-status .status-notice.status-notice,
  body.page-function-participate .page-content > .prose.prose > section,
  body.page-function-participate .status-notice.status-notice,
  body.page-function-articles .publication-scope.publication-scope,
  body.page-function-articles .foundational-records.foundational-records,
  body.page-function-machine-access .page-content > .prose.prose > section,
  body.page-function-machine-access .authority-notice.authority-notice,
  body.page-function-contact .page-content > .prose.prose,
  body.page-function-privacy .page-content > .prose > section:first-child,
  body.page-function-privacy .page-content > .prose > section:nth-child(2),
  body.page-function-privacy .status-notice.status-notice {
    grid-template-columns: 1fr;
  }

  body.page-org-about .page-content > .prose > .status-notice :is(.status-notice__label, h2, .status-notice__content),
  body.page-org-about .statement-panel > :is(.statement-panel__eyebrow, h2, .statement-panel__body),
  body.page-org-governance .page-content > .prose > *,
  body.page-org-governance .current-governance > *,
  body.page-org-governance .decision-records > *,
  body.page-org-governance .statement-panel > *,
  body.page-org-governance .status-notice > *,
  body.page-org-transparency .page-content > .prose > *,
  body.page-org-legal-status .page-content > .prose > *,
  body.page-org-transparency .reading-section > *,
  body.page-org-legal-status .reading-section > *,
  body.page-org-transparency .statement-panel > *,
  body.page-org-legal-status .statement-panel > *,
  body.page-org-transparency .status-notice > *,
  body.page-org-legal-status .status-notice > *,
  body.page-function-participate .page-content > .prose > section > *,
  body.page-function-participate .status-notice > *,
  body.page-function-machine-access .page-content > .prose > section > *,
  body.page-function-machine-access .authority-notice > *,
  body.page-function-contact .page-content > .prose > *,
  body.page-function-privacy .page-content > .prose > section:first-child > *,
  body.page-function-privacy .page-content > .prose > section:nth-child(2) > *,
  body.page-function-privacy .status-notice > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body.page-org-about .page-content > .prose > .status-notice .status-notice__content,
  body.page-org-about .statement-panel__body,
  body.page-org-governance .statement-panel__body,
  body.page-org-governance .status-notice__content,
  body.page-org-transparency .statement-panel__body,
  body.page-org-legal-status .statement-panel__body,
  body.page-org-transparency .status-notice__content,
  body.page-org-legal-status .status-notice__content,
  body.page-function-participate .status-notice__content,
  body.page-function-privacy .status-notice__content {
    margin-top: 0.75rem;
    padding-top: 1.15rem;
    padding-left: 0;
    border-top: 1px solid var(--rlu-divider);
    border-left: 0;
  }

  body.page-org-about .faq-section__heading,
  body.page-function-contact .contact-panel__aside {
    position: static;
  }

  body.page-org-governance .governance-stages.governance-stages {
    grid-template-columns: 1fr;
  }

  body.page-org-governance .governance-stages::before {
    top: 2rem;
    bottom: 2rem;
    left: 1.55rem;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--rlu-accent), rgba(143, 179, 255, 0.22), var(--rlu-divider));
  }

  body.page-org-governance .governance-stage.governance-stage {
    padding-left: 1.35rem;
  }

  body.page-org-governance .governance-stage header {
    min-height: 0;
  }

  body.page-function-contact .contact-panel.contact-panel {
    grid-template-columns: 1fr;
  }

  body.page-function-privacy .page-content > .prose.prose {
    grid-template-columns: 1fr;
  }

  body.page-function-privacy .page-content > .prose > section,
  body.page-function-privacy .page-content > .prose > .status-notice {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  body:is(
    .page-org-about,
    .page-org-governance,
    .page-org-transparency,
    .page-org-legal-status,
    .page-function-participate,
    .page-function-articles,
    .page-function-machine-access,
    .page-function-contact,
    .page-function-privacy
  ) .page-content.page-content {
    width: min(calc(100% - 1.25rem), var(--rlu-wide-max));
    padding-block: 2.75rem 4.5rem;
  }

  body.page-org-about .page-content.page-content {
    width: min(calc(100% - 1.25rem), var(--rlu-content-max));
  }

  body.page-org-about .page-content > .prose > ul,
  body.page-org-governance .list-section__items.list-section__items,
  body.page-org-transparency .summary-grid.summary-grid,
  body.page-org-transparency .list-section__items.list-section__items,
  body.page-org-legal-status .summary-grid.summary-grid,
  body.page-org-legal-status .list-section__items.list-section__items,
  body.page-function-participate .participation-status__grid,
  body.page-function-participate .mechanisms__grid.mechanisms__grid,
  body.page-function-participate .human-participation__columns,
  body.page-function-participate .distinctions dl,
  body.page-function-participate .list-section__items.list-section__items,
  body.page-function-articles .source-directory__grid.source-directory__grid,
  body.page-function-machine-access .format-overview__grid.format-overview__grid,
  body.page-function-machine-access .resource-list.resource-list,
  body.page-function-machine-access .list-section__items.list-section__items,
  body.page-function-contact .form-grid.form-grid,
  body.page-function-privacy .field-inventory.field-inventory,
  body.page-function-privacy .revision-metadata.revision-metadata {
    grid-template-columns: 1fr;
  }

  body.page-function-contact .form-field--wide {
    grid-column: 1;
  }

  body.page-function-machine-access .machine-resource.machine-resource {
    grid-template-columns: 1fr;
  }

  body.page-function-machine-access .machine-resource .format-badge {
    justify-self: start;
    grid-row: 1;
  }

  body.page-function-articles .publication-scope.publication-scope,
  body.page-function-articles .foundational-records.foundational-records,
  body.page-function-contact .contact-panel.contact-panel {
    padding: 0.75rem;
  }

  body.page-function-404 .error-page__inner.error-page__inner {
    width: min(calc(100% - 1.25rem), 54rem);
  }

  body.page-function-404 .error-page nav {
    display: grid;
  }

  body.page-function-404 .error-page nav a {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-org-about .faq-item summary::after,
  body.page-function-404 .error-page nav a {
    transition: none;
  }
}

/* Step 6 final width normalization for compiled component constraints. */
body.page-org-about .about-modules > *,
body.page-org-governance .governance-modules > *,
body.page-org-transparency .transparency-modules > *,
body.page-org-legal-status .legal-modules > *,
body.page-function-participate .participation-modules > *,
body.page-function-articles .articles-modules > *,
body.page-function-machine-access .machine-modules > *,
body.page-function-contact .page-modules > div,
body.page-function-contact .contact-panel,
body.page-function-privacy .page-content > .prose > * {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* ========================================================================== 
   Step 7 — Responsive, interaction, and accessibility unification
   Presentation-only refinements. Existing copy, page order, URLs, metadata,
   form contracts, PHP, and machine-readable resources remain unchanged.
   ========================================================================== */

/* Stable keyboard and touch interaction across shared controls. */
body :is(a, button, summary, input, select, textarea) {
  -webkit-tap-highlight-color: rgba(143, 179, 255, 0.18);
}

body :is(a, button, summary) {
  touch-action: manipulation;
}

body :is(button, summary, .button, .button-link) {
  user-select: none;
  -webkit-user-select: none;
}

body :is(button, summary) {
  cursor: pointer;
}

body :is(
  .button,
  .button-link,
  .hero-actions .button,
  .site-header .primary-nav a,
  .mobile-menu summary,
  .mobile-menu a,
  .status-strip a,
  .breadcrumbs a,
  .document-toc a,
  .related-links a,
  .module-link a,
  .faq-item summary,
  .faq-item__link,
  .site-footer a,
  .error-page nav a
):active {
  transform: translateY(0);
}

body :is(.button, .button-link, .hero-actions .button):active {
  border-color: rgba(191, 210, 255, 0.72);
  background: rgba(143, 179, 255, 0.2);
}

body :is(button, input, select, textarea):disabled,
body :is(.button, .button-link)[aria-disabled="true"] {
  border-color: var(--rlu-border);
  background: rgba(174, 185, 200, 0.08);
  color: var(--rlu-text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

body :is(.button, .button-link)[aria-disabled="true"] {
  pointer-events: none;
}

/* Public navigation states and minimum target sizes. */
body .site-header .primary-nav a {
  min-height: 44px;
}

body .mobile-menu summary {
  min-height: 46px;
}

body .mobile-menu[open] summary {
  border-color: rgba(191, 210, 255, 0.5);
  background: rgba(143, 179, 255, 0.13);
  color: var(--rlu-heading);
}

body .mobile-menu nav {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body .mobile-menu a {
  min-height: 46px;
}

body .status-strip a,
body .breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

body .breadcrumbs a {
  padding-block: 0.25rem;
}

body .site-footer .footer-links a,
body .site-footer .footer-bottom a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

body .site-footer .footer-links a {
  padding-block: 0.42rem;
}

body .site-footer .footer-bottom a {
  padding-block: 0.28rem;
}

/* Document navigation and long technical strings. */
body .document-toc a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding-block: 0.55rem;
}

body :is(
  a,
  code,
  samp,
  kbd,
  .machine-resource__path,
  .machine-resource__human,
  .document-metadata dd,
  .revision-metadata dd,
  .field-inventory dd,
  .footer-bottom
) {
  overflow-wrap: anywhere;
}

body pre {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  white-space: pre;
}

body .prose table {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-collapse: collapse;
  scrollbar-gutter: stable;
}

/* FAQ and disclosure interaction states. */
body .faq-item summary {
  min-height: 52px;
  cursor: pointer;
}

body .faq-item summary:hover {
  background: rgba(143, 179, 255, 0.065);
  color: var(--rlu-heading);
}

body .faq-item[open] {
  border-color: rgba(143, 179, 255, 0.28);
}

body .faq-item[open] summary {
  background: rgba(143, 179, 255, 0.09);
  color: var(--rlu-heading);
}

body .faq-item:focus-within {
  border-color: rgba(191, 210, 255, 0.38);
}

/* Form controls, validation, checkbox target, and unavailable submission. */
body :is(input, textarea, select):focus-visible {
  border-color: rgba(191, 210, 255, 0.56);
  background: rgba(143, 179, 255, 0.055);
}

body :is(input, textarea, select):user-invalid {
  border-color: rgba(215, 181, 109, 0.62);
  background: rgba(215, 181, 109, 0.055);
}

body .form-field--checkbox > label {
  min-height: 44px;
  align-items: flex-start;
  padding-block: 0.45rem;
  cursor: pointer;
}

body .form-field--checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.18rem;
  accent-color: var(--rlu-accent);
}

body.page-function-contact button[type="submit"]:disabled {
  min-height: 48px;
}

/* Narrow layouts: keep targets comfortable without altering module order. */
@media (max-width: 620px) {
  body .status-strip a {
    min-height: 44px;
    padding: 0.42rem 0.68rem;
  }

  body .breadcrumbs ol {
    min-height: 44px;
  }

  body .site-footer .footer-links li + li {
    margin-top: 0;
  }

  body .site-footer .footer-bottom {
    gap: 0.15rem;
  }

  body .document-toc__mobile nav {
    max-height: min(70dvh, 34rem);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 390px) {
  body .mobile-menu nav {
    width: calc(100vw - 1.25rem);
  }

  body .site-footer .footer-links a,
  body .site-footer .footer-bottom a {
    width: 100%;
  }
}

/* Avoid sticky hover movement on coarse pointers. */
@media (hover: none), (pointer: coarse) {
  body :is(.button, .button-link, .hero-actions .button):hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body :is(
    .button,
    .button-link,
    .hero-actions .button,
    .site-header .primary-nav a,
    .mobile-menu summary,
    .mobile-menu a,
    .faq-item summary,
    .error-page nav a
  ) {
    transition: none !important;
  }

  body :is(.button, .button-link, .hero-actions .button):hover {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  body {
    --rlu-border: rgba(255, 255, 255, 0.22);
    --rlu-divider: rgba(255, 255, 255, 0.17);
    --rlu-border-strong: rgba(191, 210, 255, 0.48);
    --rlu-text-muted: #b8c2cd;
  }

  body :is(.status-badge, .format-badge, .source-label__badge, .tag-list li) {
    border-width: 2px;
  }
}

@media (forced-colors: active) {
  body .mobile-menu[open] summary,
  body .faq-item[open],
  body .faq-item[open] summary,
  body :is(input, textarea, select):user-invalid {
    forced-color-adjust: auto;
    border-color: CanvasText;
  }
}

/* Final Step 7 touch-target width normalization for short footer labels. */
body .site-footer .footer-links a,
body .site-footer .footer-bottom a {
  min-width: 44px;
}

/* Skip navigation must become visible immediately when keyboard-focused. */
body .skip-link {
  border: 1px solid rgba(191, 210, 255, 0.58);
  border-radius: var(--rlu-radius-md);
  background: var(--rlu-accent-strong);
  color: var(--rlu-bg-deep);
  box-shadow: var(--rlu-shadow-soft);
}

body .skip-link:focus,
body .skip-link:focus-visible {
  transform: translateY(0);
  transition: none;
}

/* Step 7 final target and pressed-state normalization. */
body .breadcrumbs a {
  min-width: 44px;
  justify-content: center;
}

body.page-function-contact .form-field.form-field--checkbox > label {
  display: flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: flex-start;
  padding-block: 0.65rem;
}

body :is(.button, .button-link, .hero-actions .button):active {
  transform: translateY(0) scale(0.98) !important;
  transition: none !important;
}


/* ========================================================================== 
   Language switcher and robot-worker hero illustration — 2026-08-06
   ========================================================================== */
body .site-header .language-switcher.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0.22rem;
  padding: 0.22rem;
  border: 1px solid var(--rlu-border-strong);
  border-radius: 0.9rem;
  background: rgba(8, 13, 19, 0.48);
  color: var(--rlu-text-secondary);
  font-family: var(--rlu-font-sans);
  white-space: nowrap;
}

body .site-header .language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.68rem;
  color: var(--rlu-text-secondary);
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body .site-header .language-switcher a:hover {
  border-color: rgba(191, 210, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
  color: var(--rlu-heading);
  text-decoration: none;
}

body .site-header .language-switcher a[aria-current="page"] {
  border-color: rgba(191, 210, 255, 0.52);
  background: linear-gradient(135deg, rgba(46, 104, 119, 0.92), rgba(39, 83, 103, 0.96));
  color: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 5px 16px rgba(0, 0, 0, 0.16);
}

body .mobile-menu .mobile-menu__language {
  display: grid;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem 0.6rem;
}

body .mobile-menu .mobile-menu__language-label {
  color: var(--rlu-text-muted);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body .mobile-menu .mobile-menu__language-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

body .mobile-menu .mobile-menu__language-options a {
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--rlu-border);
  border-radius: var(--rlu-radius-md);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.86rem;
}

body .mobile-menu .mobile-menu__language-options a:hover,
body .mobile-menu .mobile-menu__language-options a:focus-visible {
  border: 1px solid rgba(191, 210, 255, 0.34);
  background: rgba(143, 179, 255, 0.08);
}

body .mobile-menu .mobile-menu__language-options a[aria-current="page"] {
  border: 1px solid rgba(191, 210, 255, 0.48);
  background: linear-gradient(135deg, rgba(46, 104, 119, 0.82), rgba(39, 83, 103, 0.92));
  color: #f7fbff;
  box-shadow: none;
}

body .page-hero--home .hero-mark.hero-mark {
  min-height: 24rem;
  border-color: transparent;
  background:
    radial-gradient(circle at 50% 46%, rgba(143, 179, 255, 0.12), transparent 48%),
    radial-gradient(circle at 50% 80%, rgba(54, 104, 124, 0.14), transparent 42%);
  box-shadow: none;
}

body .page-hero--home .hero-mark.hero-mark::before {
  inset: 9% 5%;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 55%, rgba(191, 210, 255, 0.06) 55.5%, transparent 56.2%),
    radial-gradient(circle at center, transparent 72%, rgba(191, 210, 255, 0.04) 72.5%, transparent 73.2%);
}

body .page-hero--home .hero-mark.hero-mark::after {
  opacity: 0.62;
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, #000 0%, rgba(0, 0, 0, 0.7) 55%, transparent 78%);
}

body .page-hero--home .hero-mark img.hero-workers-illustration {
  width: min(31rem, 96%);
  max-height: 25rem;
  opacity: 1;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.28));
}

/* Japanese preparation page */
body .ja-ready {
  position: relative;
  overflow: hidden;
  min-height: 68vh;
  padding-block: clamp(4.5rem, 10vw, 8rem);
  border-bottom: 1px solid var(--rlu-divider);
  background:
    radial-gradient(circle at 78% 26%, rgba(143, 179, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, #0c131c 0%, #101a27 52%, #0b1118 100%);
  color: var(--rlu-text);
}

body .ja-ready::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.19;
  background-image:
    linear-gradient(rgba(191, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 210, 255, 0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
  pointer-events: none;
}

body .ja-ready__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 3rem), 72rem);
  margin-inline: auto;
}

body .ja-ready__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 1.4rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(191, 210, 255, 0.22);
  border-radius: var(--rlu-radius-pill);
  background: rgba(143, 179, 255, 0.09);
  color: var(--rlu-accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

body .ja-ready h1 {
  max-width: 52rem;
  margin: 0;
  color: var(--rlu-heading);
  font-family: var(--rlu-font-sans);
  font-size: clamp(2.45rem, 6vw, 4.9rem);
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

body .ja-ready__lead {
  max-width: 46rem;
  margin: 1.55rem 0 0;
  color: var(--rlu-text-secondary);
  font-size: clamp(1.03rem, 2vw, 1.28rem);
  line-height: 1.85;
}

body .ja-ready__notice {
  max-width: 46rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--rlu-accent);
  background: rgba(255, 255, 255, 0.035);
  color: var(--rlu-text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

body .ja-ready__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

body .ja-ready__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.72rem 1.2rem;
  border: 1px solid rgba(191, 210, 255, 0.4);
  border-radius: var(--rlu-radius-pill);
  background: linear-gradient(135deg, rgba(143, 179, 255, 0.26), rgba(143, 179, 255, 0.15));
  color: var(--rlu-heading);
  font-weight: 680;
  text-decoration: none;
}

body .ja-ready__actions a + a {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--rlu-text-secondary);
}

body .ja-ready__actions a:hover {
  border-color: rgba(191, 210, 255, 0.64);
  background: rgba(143, 179, 255, 0.2);
  color: var(--rlu-heading);
}

@media (max-width: 1160px) {
  body .site-header .language-switcher.language-switcher {
    display: none;
  }
}

@media (max-width: 1040px) {
  body .page-hero--home .hero-mark.hero-mark {
    min-height: 20rem;
  }
}

@media (max-width: 720px) {
  body .ja-ready__inner {
    width: min(calc(100% - 1.25rem), 72rem);
  }
}

@media (max-width: 620px) {
  body .ja-ready {
    padding-block: 3.5rem 4.5rem;
  }

  body .ja-ready__actions {
    display: grid;
  }

  body .ja-ready__actions a {
    width: 100%;
  }
}


/* ========================================================================== 
   Release refinement — header and homepage alignment fixes (2026-08-06)
   1. Remove the compiled navigation border/underline conflict.
   2. Tighten the homepage hero's top spacing.
   3. Keep the desktop headline and primary actions on one line where space permits.
   4. Use the new horizontal single-line wordmark in the public header.
   ========================================================================== */

/* Override the more specific compiled Astro navigation rules. This prevents
   the old 3px rounded bottom border from flashing underneath the new state
   indicator during hover transitions. */
body .site-header .primary-nav[data-astro-cid-nowr5jsz] a[data-astro-cid-nowr5jsz],
body .site-header .primary-nav[data-astro-cid-nowr5jsz] a[data-astro-cid-nowr5jsz]:hover,
body .site-header .primary-nav[data-astro-cid-nowr5jsz] a[data-astro-cid-nowr5jsz]:focus-visible,
body .site-header .primary-nav[data-astro-cid-nowr5jsz] a[data-astro-cid-nowr5jsz][aria-current="page"] {
  border: 0;
  border-bottom: 0;
  text-decoration: none;
}

body .site-header .primary-nav a::after {
  height: 1px;
  border-radius: 0;
}

/* The horizontal wordmark reduces header height and keeps the full name on
   one line without changing the accessible home label. */
body .site-header .header-inner.header-inner {
  min-height: 72px;
}

body .site-header .brand .site-logo {
  width: clamp(13.25rem, 17vw, 16rem);
}

/* Homepage hero: wider editorial grid, reduced top gap, and stronger desktop
   horizontal hierarchy. */
body .page-hero--home.page-hero--home {
  padding-block: clamp(3rem, 4vw, 4rem) clamp(4rem, 5.5vw, 5.25rem);
}

body .page-hero--home .page-hero__inner.page-hero__inner {
  width: min(calc(100% - 3rem), var(--rlu-wide-max));
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.55fr);
  gap: clamp(2.25rem, 4vw, 4rem);
}

body .page-hero--home .page-hero__copy.page-hero__copy {
  max-width: none;
}

body .page-hero--home h1 {
  max-width: none;
  font-size: clamp(3.2rem, 5.2vw, 4.75rem);
}

body .page-hero--home .page-hero__actions.page-hero__actions {
  margin-top: 1.75rem;
}

body .page-hero--home .hero-actions.hero-actions {
  flex-wrap: nowrap;
  gap: 0.62rem;
}

body .page-hero--home .hero-actions .button.button {
  min-height: 48px;
  padding-inline: 1rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

body .page-hero--home .hero-actions .button.button--text {
  padding-inline: 0.38rem;
}

@media (min-width: 1280px) {
  body .page-hero--home h1 {
    white-space: nowrap;
  }
}

@media (max-width: 1160px) {
  body .page-hero--home .hero-actions.hero-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 1040px) {
  body .page-hero--home .page-hero__inner.page-hero__inner {
    width: min(calc(100% - 3rem), var(--rlu-content-max));
    grid-template-columns: minmax(0, 1.15fr) minmax(15rem, 0.55fr);
    gap: 2.5rem;
  }
}

@media (max-width: 860px) {
  body .page-hero--home.page-hero--home {
    padding-block: 3.5rem 4rem;
  }

  body .page-hero--home .page-hero__inner.page-hero__inner {
    grid-template-columns: 1fr;
  }

  body .page-hero--home h1 {
    white-space: normal;
  }
}

@media (max-width: 620px) {
  body .site-header .brand .site-logo {
    width: clamp(11.5rem, 52vw, 13.25rem);
  }

  body .page-hero--home.page-hero--home {
    padding-block: 2.75rem 3.5rem;
  }
}
