:root {
    --ew-bg: #111111;
    --ew-bg-elevated: #1a1a1a;
    --ew-bg-card: #1e1e1e;
    --ew-bg-card-hover: #242424;
    --ew-text: #f9f9f9;
    --ew-text-secondary: #b8b8b8;
    --ew-text-muted: #777777;
    --ew-accent: #77a5d5;
    --ew-accent-light: #69a6d9;
    --ew-accent-border: rgba(119, 165, 213, 0.25);
    --ew-border: #2a2a2a;
    --ew-border-light: #333333;
    --ew-success: #4a9e6a;
    --ew-danger: #d47070;
    --ew-font: "Montserrat", sans-serif;
    --ew-max-width: 800px;
    --ew-transition: 0.25s ease;
}

@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url("../fonts/montserrat-latin-var.woff2") format("woff2");
}

@font-face {
    font-family: "Montserrat";
    font-style: italic;
    font-weight: 300 500;
    font-display: swap;
    src: url("../fonts/montserrat-latin-italic-var.woff2") format("woff2");
}

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

html {
    scroll-behavior: smooth;
}

body.ew-site {
    margin: 0;
    min-height: 100vh;
    background: var(--ew-bg);
    color: var(--ew-text);
    font-family: var(--ew-font);
    font-size: 16.5px;
    font-weight: 300;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

body.ew-site::selection {
    background: var(--ew-accent);
    color: var(--ew-bg);
}

.ew-site a {
    color: inherit;
    text-decoration: none;
    transition: color var(--ew-transition), border-color var(--ew-transition), background var(--ew-transition);
}

.ew-site a:hover {
    color: inherit;
}

.ew-container,
.ew-page-shell .container {
    max-width: var(--ew-max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.ew-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color 0.3s ease;
}

.ew-header.is-scrolled,
body[data-ew-nav-open="true"] .ew-header {
    border-bottom-color: var(--ew-border);
}

body[data-ew-nav-open="true"] {
    overflow: hidden;
}

.ew-header__inner {
    max-width: var(--ew-max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ew-header__brand {
    display: inline-flex;
    align-items: center;
}

.ew-header__brand img {
    display: block;
    width: auto;
    height: 24px;
    opacity: 0.82;
    transition: opacity var(--ew-transition);
}

.ew-header__brand:hover img {
    opacity: 1;
}

.ew-nav {
    display: flex;
    align-items: center;
}

.ew-nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ew-nav__link,
.ew-mobile-nav__link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--ew-text-muted);
    text-transform: lowercase;
}

.ew-nav__link.is-active,
.ew-mobile-nav__link.is-active,
.ew-nav__link:hover,
.ew-mobile-nav__link:hover {
    color: var(--ew-text);
}

.ew-nav-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: var(--ew-text);
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.ew-nav-toggle__label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ew-nav-toggle__icon,
.ew-nav-toggle__icon::before,
.ew-nav-toggle__icon::after {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
    transition: transform var(--ew-transition), opacity var(--ew-transition);
    content: "";
}

.ew-nav-toggle__icon {
    position: relative;
}

.ew-nav-toggle__icon::before {
    position: absolute;
    top: -6px;
    left: 0;
}

.ew-nav-toggle__icon::after {
    position: absolute;
    top: 6px;
    left: 0;
}

body[data-ew-nav-open="true"] .ew-nav-toggle__icon {
    background: transparent;
}

body[data-ew-nav-open="true"] .ew-nav-toggle__icon::before {
    transform: translateY(6px) rotate(45deg);
}

body[data-ew-nav-open="true"] .ew-nav-toggle__icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

.ew-mobile-nav {
    border-bottom: 1px solid var(--ew-border);
    background: rgba(17, 17, 17, 0.98);
}

.ew-mobile-nav__inner {
    max-width: var(--ew-max-width);
    margin: 0 auto;
    padding: 0 32px;
}

.ew-mobile-nav__list {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 18px 0 24px;
}

.ew-mobile-nav__link {
    display: block;
    padding: 8px 0;
}

.ew-page-shell section {
    padding: 80px 0;
}

.ew-page-shell .divider,
.ew-page-shell hr.divider {
    border: 0;
    border-top: 1px solid var(--ew-border);
    margin: 0;
}

.ew-page-shell .section-label,
.ew-page-shell .hero-label {
    margin-bottom: 20px;
    color: var(--ew-accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.ew-page-shell .hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding: 120px 0 32px;
}

.ew-page-shell .hero h1 {
    max-width: 620px;
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.25;
}

.ew-page-shell .hero-sub,
.ew-page-shell .page-hero .lead {
    max-width: 540px;
    color: var(--ew-text-secondary);
    font-size: 16px;
    line-height: 1.8;
}

.ew-page-shell .section-intro {
    max-width: 540px;
    color: var(--ew-text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.ew-page-shell .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.ew-page-shell .page-hero {
    padding: 120px 0 56px;
}

.ew-page-shell .page-hero h1 {
    max-width: 620px;
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 300;
    line-height: 1.25;
}

.ew-page-shell section h2 {
    margin: 0 0 12px;
    color: var(--ew-text);
    font-size: 22px;
    font-weight: 300;
    line-height: 1.25;
}

.ew-page-shell .layers {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ew-page-shell .layer {
    padding: 28px 32px;
    border-left: 3px solid var(--ew-border-light);
    background: var(--ew-bg-card);
    transition: background var(--ew-transition), border-color var(--ew-transition);
}

.ew-page-shell .layer:hover,
.ew-page-shell .layer.active {
    border-left-color: var(--ew-accent);
    background: var(--ew-bg-card-hover);
}

.ew-page-shell .layer-num {
    margin-bottom: 8px;
    color: var(--ew-accent);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ew-page-shell .layer h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 400;
    color: var(--ew-text);
}

.ew-page-shell .layer p {
    margin: 0;
    color: var(--ew-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.ew-page-shell .diagnostic-card h3 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 400;
    color: var(--ew-text);
}

.ew-page-shell .about-section h3 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 400;
    color: var(--ew-text);
}

.ew-page-shell .pattern-cell p {
    margin: 0;
    color: var(--ew-text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.ew-page-shell .about-section p {
    max-width: 640px;
    margin: 0 0 16px;
    color: var(--ew-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.ew-page-shell .who-text p {
    max-width: 600px;
    margin: 0 0 20px;
    color: var(--ew-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.ew-page-shell .diagnostic-card > p {
    max-width: 520px;
    margin: 0 0 32px;
    color: var(--ew-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.ew-page-shell .ew-legal-section {
    padding-top: 56px;
}

.ew-page-shell .ew-legal-prose {
    max-width: 640px;
}

.ew-page-shell .ew-legal-prose > :first-child {
    margin-top: 0;
}

.ew-page-shell .ew-legal-prose h2 {
    margin: 36px 0 12px;
    color: var(--ew-text-muted);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.5;
}

.ew-page-shell .ew-legal-prose h3 {
    margin: 28px 0 10px;
    color: var(--ew-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
}

.ew-page-shell .ew-legal-prose p,
.ew-page-shell .ew-legal-prose li {
    margin: 0 0 16px;
    color: var(--ew-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.ew-page-shell .ew-legal-prose ul,
.ew-page-shell .ew-legal-prose ol {
    margin: 0 0 20px 20px;
    padding: 0;
}

.ew-page-shell .ew-legal-prose li {
    margin-bottom: 8px;
}

.ew-page-shell .ew-legal-prose strong {
    color: var(--ew-text);
    font-weight: 500;
}

.ew-page-shell .ew-legal-prose a {
    color: var(--ew-accent-light);
}

.ew-page-shell .ew-legal-prose a:hover {
    color: var(--ew-text);
}

.ew-page-shell .img-block,
.ew-page-shell .diag-img,
.ew-page-shell .diagram-thumb {
    overflow: hidden;
    border: 1px solid var(--ew-border-light);
    border-radius: 6px;
}

.ew-page-shell .img-block img,
.ew-page-shell .diag-img img,
.ew-page-shell .diagram-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.ew-page-shell .diagram-thumb,
.ew-page-shell .diagram-thumb *,
.ew-page-shell .img-block[onclick],
.ew-page-shell .img-block[onclick] * {
    cursor: zoom-in;
}

.ew-page-shell .patterns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px;
    overflow: hidden;
    border: 1px solid var(--ew-border);
    border-radius: 4px;
    background: var(--ew-border);
}

.ew-page-shell .pattern-cell {
    padding: 24px 24px 20px;
    background: var(--ew-bg);
    transition: background var(--ew-transition);
}

.ew-page-shell .pattern-cell:hover {
    background: var(--ew-bg-card);
}

.ew-page-shell .pattern-cell .p-tag {
    margin-bottom: 8px;
    color: var(--ew-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.ew-page-shell .pattern-cell h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 500;
}

.ew-page-shell .diag-section-bg {
    border-top: 1px solid var(--ew-border);
    border-bottom: 1px solid var(--ew-border);
    background: var(--ew-bg-elevated);
}

.ew-page-shell .diagnostic-card {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    padding: 36px;
    border: 1px solid var(--ew-border-light);
    border-radius: 6px;
    background: var(--ew-bg-card);
}

.ew-page-shell .ew-diagnostic-card--report {
    padding: 48px 44px 40px;
    background:
        linear-gradient(180deg, rgba(119, 165, 213, 0.04), rgba(119, 165, 213, 0) 120px),
        var(--ew-bg-card);
}

.ew-page-shell .ew-report-eyebrow {
    margin: 0 0 10px;
    color: var(--ew-accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.ew-page-shell .ew-report-title {
    max-width: 14ch;
    margin: 0 0 22px;
    color: var(--ew-text);
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.ew-page-shell .ew-report-body {
    color: var(--ew-text-secondary);
    font-size: 17px;
    font-weight: 320;
    line-height: 1.85;
}

.ew-page-shell .ew-report-body > :first-child {
    margin-top: 0;
}

.ew-page-shell .ew-report-body > :last-child {
    margin-bottom: 0;
}

.ew-page-shell .ew-report-body > * + * {
    margin-top: 18px;
}

.ew-page-shell .ew-report-body h2 {
    margin: 42px 0 12px;
    color: var(--ew-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.5;
}

.ew-page-shell .ew-report-body p {
    margin: 0;
}

.ew-page-shell .ew-report-body ul,
.ew-page-shell .ew-report-body ol {
    margin: 0;
    padding-left: 22px;
}

.ew-page-shell .ew-report-body li {
    margin: 0 0 10px;
    color: var(--ew-text-secondary);
}

.ew-page-shell .ew-report-body li::marker {
    color: rgba(119, 165, 213, 0.75);
}

.ew-page-shell .ew-report-body strong {
    color: var(--ew-text);
    font-weight: 520;
}

.ew-page-shell .ew-system-map {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.ew-page-shell .ew-system-map li {
    margin: 0;
    padding: 14px 16px 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.ew-page-shell .ew-system-map strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ew-text);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ew-page-shell .ew-knife-sentence {
    margin: 30px 0 10px;
    padding: 22px 24px;
    border-left: 3px solid rgba(119, 165, 213, 0.75);
    background: rgba(119, 165, 213, 0.06);
    color: var(--ew-text);
    font-size: clamp(24px, 3vw, 31px);
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.ew-page-shell .ew-evidence-list {
    display: grid;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.ew-page-shell .ew-evidence-list li {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.ew-page-shell .ew-evidence-tag {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ew-page-shell .ew-evidence-tag--evidenced {
    background: rgba(119, 165, 213, 0.16);
    color: #a8caeb;
}

.ew-page-shell .ew-evidence-tag--inferred {
    background: rgba(255, 255, 255, 0.1);
    color: #d0d0d0;
}

.ew-page-shell .ew-evidence-tag--unknown {
    background: rgba(212, 112, 112, 0.15);
    color: #e4a3a3;
}

.ew-page-shell .ew-move-block {
    margin-bottom: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(119, 165, 213, 0.12);
    border-radius: 10px;
    background: rgba(119, 165, 213, 0.04);
}

.ew-page-shell .ew-move-text {
    color: var(--ew-text);
    font-size: 15.5px;
    line-height: 1.7;
}

.ew-page-shell .ew-first-deliverable,
.ew-page-shell .ew-disconfirmer,
.ew-page-shell .ew-prediction-block,
.ew-page-shell .ew-trust-footer {
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
}

.ew-page-shell .ew-first-deliverable h2 {
    margin-top: 0;
}

.ew-page-shell .ew-deliverable-content {
    margin: 14px 0 0;
    padding: 18px;
    overflow-x: auto;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.26);
    color: #eef3f7;
    font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
}

.ew-page-shell .ew-disconfirmer strong,
.ew-page-shell .ew-prediction-block strong,
.ew-page-shell .ew-trust-footer strong {
    color: var(--ew-text);
}

.ew-page-shell .ew-trust-footer p + p {
    margin-top: 10px;
}

.ew-page-shell .ew-report-cta {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ew-page-shell .ew-report-cta h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 400;
    color: var(--ew-text);
}

.ew-page-shell .ew-report-cta p {
    max-width: 620px;
    margin: 0 0 18px;
    color: var(--ew-text-secondary);
}

.ew-page-shell .diagnostic-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--ew-accent), transparent);
    content: "";
}

.ew-page-shell .diag-meta-row,
.ew-page-shell .report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.ew-page-shell .who-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

.ew-page-shell .diag-meta,
.ew-page-shell .form-note,
.ew-page-shell .footer-left,
.ew-page-shell .footer-right a {
    color: var(--ew-text-muted);
    font-size: 13px;
}

.ew-page-shell .signup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.ew-page-shell .signup-form input {
    width: 100%;
    border: 1px solid var(--ew-border-light);
    border-radius: 4px;
    background: var(--ew-bg);
    color: var(--ew-text);
    font: 400 14px/1.4 var(--ew-font);
    outline: none;
    padding: 14px 18px;
    transition: border-color var(--ew-transition), box-shadow var(--ew-transition);
}

.ew-page-shell .signup-form input:focus {
    border-color: var(--ew-accent);
    box-shadow: 0 0 0 3px rgba(119, 165, 213, 0.1);
}

.ew-page-shell .signup-form input::placeholder {
    color: var(--ew-text-muted);
}

.ew-page-shell .signup-form .ew-button,
.ew-page-shell .signup-form .btn {
    width: 100%;
    justify-content: center;
}

.ew-page-shell .form-success,
.ew-page-shell .form-error {
    display: none;
    margin-top: 12px;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 14px 18px;
    font-size: 14px;
}

.ew-page-shell .form-success {
    border-color: rgba(74, 158, 106, 0.3);
    background: rgba(74, 158, 106, 0.1);
    color: var(--ew-success);
}

.ew-page-shell .form-error {
    border-color: rgba(200, 80, 80, 0.25);
    background: rgba(200, 80, 80, 0.1);
    color: var(--ew-danger);
}

.ew-page-shell .form-success.show,
.ew-page-shell .form-error.show {
    display: block;
}

.ew-page-shell .earth-link {
    display: inline-block;
    margin-top: 18px;
    color: var(--ew-accent);
    font-size: 15px;
}

.ew-page-shell .earth-link:hover {
    color: var(--ew-accent);
    text-decoration: underline;
}

.ew-page-shell .layer .layer-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--ew-accent-light);
    font-size: 13px;
}

.ew-page-shell .layer .layer-link:hover {
    color: var(--ew-text);
}

.ew-page-shell .who-links a {
    color: var(--ew-accent-light);
    font-size: 14px;
    padding-bottom: 2px;
    border-bottom: 1px solid var(--ew-accent-border);
}

.ew-page-shell .who-links a:hover {
    color: var(--ew-text);
    border-bottom-color: var(--ew-text-muted);
}

.ew-page-shell .diagram-layout {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 36px;
    align-items: start;
}

.ew-page-shell .diagram-thumb {
    position: sticky;
    top: 100px;
    cursor: zoom-in;
    transition: border-color var(--ew-transition);
}

.ew-page-shell .diagram-thumb:hover {
    border-color: var(--ew-accent);
}

.ew-page-shell .diagram-thumb-label {
    padding: 8px 8px 10px;
    color: var(--ew-text-muted);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-align: center;
}

.ew-page-shell .lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.93);
    cursor: zoom-out;
}

.ew-page-shell .lb-overlay.open {
    display: flex;
}

.ew-page-shell .lb-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.ew-page-shell .lb-close {
    position: absolute;
    top: 20px;
    right: 28px;
    border: 0;
    background: none;
    color: var(--ew-text-muted);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.ew-button,
.ew-page-shell .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    padding: 14px 32px;
    font: 500 14px/1 var(--ew-font);
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform var(--ew-transition), box-shadow var(--ew-transition), color var(--ew-transition), background var(--ew-transition), border-color var(--ew-transition);
}

.ew-button--primary,
.ew-page-shell .btn-primary {
    background: var(--ew-accent);
    color: var(--ew-bg);
}

.ew-button--primary:hover,
.ew-page-shell .btn-primary:hover {
    color: var(--ew-bg);
    background: var(--ew-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(119, 165, 213, 0.25);
}

.ew-button--ghost,
.ew-page-shell .btn-ghost {
    padding: 13px 32px;
    border: 1px solid var(--ew-border-light);
    background: transparent;
    color: var(--ew-text-secondary);
}

.ew-button--ghost:hover,
.ew-page-shell .btn-ghost:hover {
    border-color: var(--ew-text-muted);
    color: var(--ew-text);
}

.ew-button--full {
    width: 100%;
}

.ew-link-button {
    border: 0;
    background: none;
    color: var(--ew-text-muted);
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
}

.ew-footer {
    padding: 28px 0;
    border-top: 1px solid var(--ew-border);
}

.ew-footer__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.ew-footer__left {
    color: var(--ew-text-muted);
    font-size: 13px;
    white-space: nowrap;
}

.ew-footer__center {
    min-width: 0;
    color: var(--ew-text-muted);
    font-size: 12px;
    opacity: 0.7;
    text-align: center;
    white-space: nowrap;
}

.ew-footer__right {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-self: end;
}

.ew-footer__right a {
    color: var(--ew-text-muted);
    font-size: 13px;
}

.ew-footer__right a:hover {
    color: var(--ew-text-secondary);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ew-page-shell .who-list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.ew-page-shell .who-list li {
    max-width: 600px;
    margin-bottom: 6px;
    color: var(--ew-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.ew-fallback {
    padding: 120px 0 56px;
}

.ew-fallback__title {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 300;
}

.ew-fallback__content {
    max-width: 680px;
    color: var(--ew-text-secondary);
}

@media (max-width: 900px) {
    .ew-container { padding: 0 20px; }

    .ew-header__inner,
    .ew-mobile-nav__inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ew-page-shell .container {
        padding: 0 20px;
    }

    .ew-page-shell .diagram-layout {
        grid-template-columns: 1fr;
    }

    .ew-page-shell .diagram-thumb {
        position: static;
        max-width: 340px;
        margin: 0 auto 32px;
    }
}

@media (max-width: 720px) {
    .ew-nav {
        display: none;
    }

    .ew-nav-toggle {
        display: inline-flex;
    }

    .ew-mobile-nav {
        position: fixed;
        top: 73px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        overflow-y: auto;
        border-top: 1px solid var(--ew-border);
        border-bottom: 0;
        background: rgba(17, 17, 17, 0.985);
    }

    .ew-page-shell section {
        padding: 60px 0;
    }

    .ew-page-shell .page-hero {
        padding: 108px 0 48px;
    }

    .ew-page-shell .hero {
        min-height: 100svh;
        padding: 108px 0 24px;
    }

    .ew-page-shell .diagnostic-card,
    .ew-page-shell .layer {
        padding: 28px 24px;
    }

    .ew-footer__inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ew-footer__center {
        white-space: normal;
        text-align: left;
    }

    .ew-footer__right {
        justify-self: auto;
    }
}

@media (max-width: 520px) {
    .ew-header__inner {
        gap: 16px;
    }

    .ew-page-shell .patterns-grid {
        grid-template-columns: 1fr;
    }

    .ew-page-shell .hero-sub,
    .ew-page-shell .page-hero .lead,
    .ew-page-shell .section-intro {
        font-size: 16px;
    }
}
