:root {
    --vl-navy: #1e4268;
    --vl-navy-deep: #172f4c;
    --vl-teal: #1597a8;
    --vl-teal-dark: #16697a;
    --vl-teal-bright: #19aebb;
    --vl-ink: #172033;
    --vl-muted: #5f7184;
    --vl-supporting: #607487;
    --vl-page: #f4f7fb;
    --vl-surface: #ffffff;
    --vl-surface-soft: #eef8fb;
    --vl-surface-light: #f8fbff;
    --vl-line: #dce6f0;
    --vl-line-teal: #cce8ef;
    --vl-line-strong: #9fcbd3;
    --vl-success: #138653;
    --vl-shadow-soft: 0 16px 48px rgba(23, 32, 51, 0.08);
    --vl-shadow-glow: 0 0 0 1px rgba(25, 174, 187, 0.18),
        0 8px 24px rgba(21, 151, 168, 0.28),
        0 0 30px rgba(25, 174, 187, 0.18);
    --vl-radius-sm: 10px;
    --vl-radius-md: 18px;
    --vl-radius-lg: 26px;
    --vl-shell: 1240px;
}

html.theme-dark {
    color-scheme: dark;
    --vl-navy: #8fd3df;
    --vl-navy-deep: #081522;
    --vl-teal: #22adba;
    --vl-teal-dark: #72ccd6;
    --vl-teal-bright: #37c4cf;
    --vl-ink: #edf5fb;
    --vl-muted: #b6c7d6;
    --vl-supporting: #91a9bb;
    --vl-page: #09131f;
    --vl-surface: #112337;
    --vl-surface-soft: #173047;
    --vl-surface-light: #142a40;
    --vl-line: #29445c;
    --vl-line-teal: #28596a;
    --vl-line-strong: #4a8e98;
    --vl-success: #5ad69a;
    --vl-shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
    --vl-shadow-glow: 0 0 0 1px rgba(55, 196, 207, 0.2),
        0 8px 26px rgba(34, 173, 186, 0.3),
        0 0 34px rgba(55, 196, 207, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #ffffff 0, var(--vl-page) 360px),
        var(--vl-page);
    color: var(--vl-ink);
    font-family: Inter, sans-serif;
    line-height: 1.7;
}

html.theme-dark body {
    background:
        radial-gradient(circle at 75% 0, rgba(34, 173, 186, 0.1), transparent 30rem),
        linear-gradient(180deg, #0d1d2d 0, var(--vl-page) 400px),
        var(--vl-page);
}

a {
    color: var(--vl-teal-dark);
}

a:hover {
    color: var(--vl-teal);
}

.mg-shell {
    width: min(var(--vl-shell), calc(100vw - 48px));
    margin: 0 auto;
}

.mg-skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--vl-surface);
    color: var(--vl-navy);
    font-weight: 800;
    transform: translateY(-160%);
}

.mg-skip-link:focus {
    transform: translateY(0);
}

.mg-header {
    position: relative;
    z-index: 20;
    background: var(--vl-navy);
    box-shadow: 0 2px 18px rgba(23, 32, 51, 0.18);
}

.mg-header-inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.mg-logo {
    display: inline-flex;
    padding: 5px 12px 5px 6px;
    border-radius: 11px;
    background: var(--vl-surface);
}

.mg-logo img {
    width: 205px;
    height: 48px;
    object-fit: contain;
}

.mg-primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mg-primary-nav a {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease;
}

.mg-primary-nav a:hover,
.mg-primary-nav a:focus-visible {
    color: var(--vl-surface);
}

.mg-primary-nav .mg-primary-cta {
    padding: 10px 17px;
    border-radius: 10px;
    background: var(--vl-teal);
    color: var(--vl-surface);
    box-shadow: 0 8px 18px rgba(21, 151, 168, 0.22);
}

.mg-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.mg-theme-toggle:hover,
.mg-theme-toggle:focus-visible {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.mg-theme-icon {
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 999px;
    box-shadow: -4px 0 0 -2px currentColor;
}

html.theme-dark .mg-theme-icon {
    border-radius: 3px;
    box-shadow: inset 5px -4px 0 -3px #0c1c2b;
    transform: rotate(-18deg);
}

.mg-primary-nav .mg-primary-cta,
.mg-sidebar-button {
    color: #ffffff;
}

.mg-main {
    padding: 28px 0 0;
}

.mg-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(440px, 0.96fr);
    gap: 28px;
    align-items: center;
    min-height: 0;
    padding: 24px 30px;
    overflow: hidden;
    border: 1px solid var(--vl-line);
    border-radius: var(--vl-radius-lg);
    background: var(--vl-surface);
    box-shadow: var(--vl-shadow-soft);
}

.mg-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(
        180deg,
        var(--vl-teal-bright),
        var(--vl-teal),
        var(--vl-navy)
    );
}

.mg-hero-copy {
    position: relative;
    z-index: 1;
}

.mg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: var(--vl-teal-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mg-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--vl-teal);
}

.mg-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--vl-navy);
    font-family: Rajdhani, Inter, sans-serif;
    font-size: clamp(38px, 3.5vw, 50px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 0.96;
}

.mg-hero-intro {
    max-width: 67ch;
    margin: 14px 0 0;
    color: var(--vl-muted);
    font-size: 15px;
    line-height: 1.48;
}

.mg-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 14px 0 0;
    color: var(--vl-supporting);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mg-hero-meta span {
    display: inline-flex;
    align-items: center;
}

.mg-hero-meta span + span::before {
    content: "";
    width: 4px;
    height: 4px;
    margin: 0 12px;
    border-radius: 999px;
    background: var(--vl-teal);
}

.mg-response-visual {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(204, 232, 239, 0.24);
    border-radius: 22px;
    background: var(--vl-navy);
    box-shadow: 0 20px 46px rgba(23, 47, 76, 0.24);
    color: #ffffff;
}

.mg-hero-poster {
    padding: 0;
    overflow: hidden;
}

.mg-hero-poster::before {
    display: none;
}

.mg-hero-poster-link {
    display: block;
    color: inherit;
    line-height: 0;
}

.mg-hero-poster-link:focus-visible {
    outline: 3px solid #20b7c8;
    outline-offset: -4px;
}

.mg-hero-poster img {
    display: block;
    width: 100%;
    height: auto;
}

.mg-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.mg-hero-index {
    position: relative;
    min-width: 0;
    padding: 22px 24px;
    overflow: hidden;
    border: 1px solid rgba(204, 232, 239, 0.24);
    border-radius: 22px;
    background: #1e4268;
    box-shadow: 0 20px 46px rgba(23, 47, 76, 0.22);
    color: #ffffff;
}

.mg-hero-index::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(25, 174, 187, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 174, 187, 0.08) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(145deg, #000 35%, transparent 90%);
}

.mg-hero-index > * {
    position: relative;
    z-index: 1;
}

.mg-hero-index h2 {
    margin: 5px 0 14px;
    font-family: Rajdhani, Inter, sans-serif;
    font-size: 24px;
    line-height: 1.05;
}

.mg-hero-index ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    list-style: none;
}

.mg-hero-index li {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 43px;
    padding: 8px 11px;
    background: rgba(11, 35, 58, 0.72);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.3;
}

.mg-hero-index li span {
    color: var(--vl-teal-bright);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 9px;
}

.mg-hero-figure {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--vl-line);
    border-radius: 22px;
    background: var(--vl-surface-light);
    box-shadow: 0 20px 46px rgba(23, 47, 76, 0.15);
}

.mg-hero-figure img {
    display: block;
    width: 100%;
    height: 286px;
    object-fit: contain;
    background:
        linear-gradient(rgba(21, 151, 168, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 151, 168, 0.04) 1px, transparent 1px),
        var(--vl-surface-light);
    background-size: 30px 30px;
}

.mg-hero-figure figcaption {
    padding: 10px 14px;
    border-top: 1px solid var(--vl-line);
    color: var(--vl-supporting);
    font-size: 11px;
    font-weight: 700;
}

.mg-response-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(25, 174, 187, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(25, 174, 187, 0.075) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, #000 65%, transparent);
}

.mg-graph-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px 0;
}

.mg-graph-kicker {
    display: block;
    color: var(--vl-teal-bright);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mg-graph-title {
    display: block;
    margin-top: 3px;
    font-family: Rajdhani, Inter, sans-serif;
    font-size: 20px;
    line-height: 1.1;
}

.mg-graph-eta {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid rgba(204, 232, 239, 0.24);
    border-radius: 10px;
    background: rgba(238, 248, 251, 0.08);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.mg-graph-eta .math-var {
    color: inherit;
}

.mg-response-svg {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 265px;
    min-height: 0;
}

.mg-response-svg text {
    font-family: Inter, sans-serif;
}

.mg-graph-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
    stroke-dasharray: 760;
    stroke-dashoffset: 760;
}

.mg-response-visual.is-ready .mg-graph-line {
    animation: mg-draw-line 900ms ease-out forwards;
}

.mg-graph-point {
    cursor: default;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 160ms ease, filter 160ms ease;
}

.mg-graph-point:hover,
.mg-graph-point:focus {
    filter: drop-shadow(0 0 8px rgba(25, 174, 187, 0.9));
    outline: none;
    transform: scale(1.3);
}

.mg-graph-legend {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 18px 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.mg-graph-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.mg-graph-legend i {
    width: 19px;
    height: 3px;
    border-radius: 999px;
}

.mg-graph-legend .stress i {
    background: var(--vl-teal-bright);
}

.mg-graph-legend .deflection i {
    background: var(--vl-surface);
}

.mg-graph-note {
    margin-left: auto;
    text-align: right;
}

.mg-graph-note-mobile {
    position: relative;
    z-index: 1;
    margin: -8px 18px 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 9px;
    line-height: 1.5;
    text-align: left;
}

.mg-laminate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mg-laminate-svg {
    height: 265px;
}

.mg-laminate-svg text {
    font-family: Inter, sans-serif;
}

.mg-laminate-line {
    stroke: var(--vl-teal-bright);
    stroke-width: 2;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 720;
    stroke-dashoffset: 720;
    animation: mg-draw-line 950ms ease-out forwards;
}

.mg-laminate-line--two {
    animation-delay: 90ms;
}

.mg-laminate-line--three {
    animation-delay: 180ms;
}

.mg-laminate-interlayer {
    fill: rgba(85, 216, 223, 0.58);
}

.mg-laminate-load,
.mg-laminate-shear-arrow,
.mg-laminate-transfer line {
    fill: none;
    stroke: var(--vl-teal-bright);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    vector-effect: non-scaling-stroke;
}

.mg-laminate-shear-arrow {
    stroke-dasharray: 6 6;
    animation: mg-laminate-shear 1.2s linear infinite;
}

.mg-laminate-shear-arrow--reverse {
    stroke: rgba(255, 255, 255, 0.9);
}

.mg-laminate-section-label,
.mg-laminate-label,
.mg-laminate-transfer text {
    fill: rgba(255, 255, 255, 0.62);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.mg-laminate-label {
    font-size: 8px;
    letter-spacing: 0.06em;
}

.mg-laminate-label--teal {
    fill: var(--vl-teal-bright);
}

.mg-laminate-omega {
    fill: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-style: italic;
    text-anchor: middle;
}

.mg-laminate-transfer line {
    stroke-width: 2;
}

.mg-laminate-transfer text {
    text-anchor: middle;
}

.mg-laminate-stress-outline {
    fill: rgba(255, 255, 255, 0.035);
    stroke: rgba(255, 255, 255, 0.9);
}

.mg-laminate-dimension,
.mg-laminate-dimension-tick {
    stroke: rgba(255, 255, 255, 0.46);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.mg-laminate-symbol {
    fill: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-style: italic;
    text-anchor: middle;
}

.mg-laminate-symbol tspan {
    font-style: normal;
}

.mg-combination-badge {
    font-family: "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.04em;
}

.mg-combination-svg {
    height: 250px;
}

.mg-chalk-note {
    opacity: 0;
    animation: mg-chalk-in 560ms ease-out forwards;
}

.mg-chalk-note--sls {
    animation-delay: 150ms;
}

.mg-chalk-frame {
    fill: rgba(8, 31, 52, 0.48);
    stroke: rgba(255, 255, 255, 0.23);
    stroke-width: 1.2;
    stroke-dasharray: 2 3;
    vector-effect: non-scaling-stroke;
}

.mg-chalk-limit-state {
    fill: var(--vl-teal-bright);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.mg-chalk-formula {
    fill: rgba(255, 255, 255, 0.94);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.18));
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: 18px;
    font-weight: 600;
}

.mg-chalk-action {
    fill: #55d8df;
}

.mg-chalk-factor {
    fill: rgba(255, 255, 255, 0.94);
}

.mg-chalk-sub {
    font-size: 10px;
}

.mg-chalk-underline {
    fill: none;
    stroke: var(--vl-teal-bright);
    stroke-linecap: round;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 360;
    stroke-dashoffset: 360;
    animation: mg-draw-line 820ms 300ms ease-out forwards;
}

.mg-chalk-annotation {
    fill: rgba(255, 255, 255, 0.54);
    font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive;
    font-size: 8.5px;
    letter-spacing: 0.025em;
}

.mg-combination-factor i {
    background: rgba(255, 255, 255, 0.9);
}

.mg-combination-legend .stress i {
    background: #55d8df;
}

.mg-route-badge,
.mg-balustrade-badge {
    font-family: "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.03em;
}

.mg-route-svg,
.mg-balustrade-svg {
    height: 270px;
}

.mg-deflection-svg {
    height: 255px;
}

.mg-tech-section-label {
    fill: rgba(255, 255, 255, 0.58);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.mg-route-document path,
.mg-route-document line {
    fill: rgba(85, 216, 223, 0.035);
    stroke: var(--vl-teal-bright);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}

.mg-route-document line {
    stroke: rgba(255, 255, 255, 0.5);
}

.mg-route-document .mg-route-fold {
    fill: none;
}

.mg-route-document text {
    fill: #ffffff;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 10px;
    font-weight: 800;
}

.mg-route-connectors path {
    fill: none;
    stroke: var(--vl-teal-bright);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 380;
    stroke-dashoffset: 380;
    animation: mg-draw-line 850ms ease-out forwards;
}

#route-arrow path,
#deflection-load-arrow path,
#deflection-dimension-arrow path,
#balustrade-action-arrow path,
#balustrade-dimension-arrow path {
    fill: var(--vl-teal-bright);
}

.mg-route-node rect,
.mg-route-output rect {
    fill: rgba(8, 31, 52, 0.5);
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.mg-route-node text,
.mg-route-output text {
    fill: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-anchor: middle;
}

.mg-route-node rect,
.mg-route-output--primary rect {
    stroke: var(--vl-teal-bright);
}

.mg-route-output .mg-route-output-note {
    fill: rgba(255, 255, 255, 0.5);
    font-size: 6.5px;
    letter-spacing: 0.08em;
}

.mg-deflection-badge {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
}

.mg-deflection-badge sub {
    font-size: 8px;
}

.mg-deflection-loads line,
.mg-deflection-reference,
.mg-deflection-profile,
.mg-deflection-support path,
.mg-deflection-dimension line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.mg-deflection-loads line {
    stroke: var(--vl-teal-bright);
    stroke-width: 1.7;
}

.mg-deflection-reference {
    stroke: rgba(255, 255, 255, 0.56);
    stroke-dasharray: 6 7;
    stroke-width: 1.5;
}

.mg-deflection-profile {
    stroke: var(--vl-teal-bright);
    stroke-width: 3;
    stroke-dasharray: 780;
    stroke-dashoffset: 780;
    animation: mg-draw-line 950ms ease-out forwards;
}

.mg-deflection-support path {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2;
}

.mg-deflection-dimension line {
    stroke: var(--vl-teal-bright);
    stroke-width: 1.2;
}

.mg-deflection-dimension rect,
.mg-balustrade-height rect {
    fill: rgba(8, 31, 52, 0.86);
    stroke: rgba(85, 216, 223, 0.54);
}

.mg-deflection-dimension text,
.mg-balustrade-height text {
    fill: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-style: italic;
    text-anchor: middle;
}

.mg-deflection-label {
    fill: rgba(255, 255, 255, 0.56);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.mg-deflection-label--active {
    fill: var(--vl-teal-bright);
}

.mg-balustrade-pane rect {
    fill: rgba(85, 216, 223, 0.07);
    stroke: var(--vl-teal-bright);
    stroke-width: 1.8;
    vector-effect: non-scaling-stroke;
}

.mg-balustrade-pane line {
    stroke: rgba(255, 255, 255, 0.36);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.mg-balustrade-clamp {
    fill: rgba(221, 226, 229, 0.18);
    stroke: rgba(255, 255, 255, 0.8);
    stroke-linejoin: round;
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}

.mg-balustrade-clamp-label {
    fill: rgba(255, 255, 255, 0.56);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-anchor: middle;
}

.mg-balustrade-line-action line,
.mg-balustrade-area-action path,
.mg-balustrade-point-action line,
.mg-balustrade-leader,
.mg-balustrade-height line {
    fill: none;
    stroke: var(--vl-teal-bright);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.mg-balustrade-area-action path {
    stroke: rgba(85, 216, 223, 0.54);
    stroke-width: 1;
}

.mg-balustrade-point-action circle {
    fill: #ffffff;
    stroke: var(--vl-teal-bright);
    stroke-width: 2;
}

.mg-balustrade-line-action text,
.mg-balustrade-area-action text,
.mg-balustrade-point-action text {
    fill: #ffffff;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 9px;
    font-weight: 700;
}

.mg-balustrade-height text {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 9px;
    font-style: normal;
}

.mg-tech-legend {
    flex-wrap: wrap;
    row-gap: 7px;
}

.mg-concept-badge,
.mg-mass-badge {
    font-family: "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.04em;
}

.mg-mass-badge i {
    font-family: Georgia, "Times New Roman", serif;
}

.mg-concept-stage {
    position: relative;
    z-index: 1;
    min-height: 228px;
    margin: 4px 18px 9px;
}

.mg-national-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr);
    align-items: center;
    gap: 4px;
}

.mg-flow-node {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    justify-content: center;
    padding: 15px 13px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    background: rgba(8, 31, 52, 0.44);
    opacity: 0;
    transform: translateY(7px);
    animation: mg-concept-rise 560ms ease-out forwards;
}

.mg-flow-node:nth-of-type(2) {
    animation-delay: 110ms;
}

.mg-flow-node:nth-of-type(3) {
    animation-delay: 220ms;
}

.mg-flow-node:nth-of-type(4) {
    animation-delay: 330ms;
}

.mg-flow-node--accent,
.mg-flow-node--output {
    border-color: rgba(85, 216, 223, 0.72);
    box-shadow: inset 0 0 24px rgba(25, 174, 187, 0.06);
}

.mg-flow-node--output {
    background: rgba(25, 174, 187, 0.14);
}

.mg-flow-node--project {
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.mg-flow-node.mg-flow-node--project small {
    color: rgba(255, 255, 255, 0.88);
}

.mg-flow-node small,
.mg-flow-node span {
    display: block;
}

.mg-flow-node small {
    margin-bottom: 7px;
    color: var(--vl-teal-bright);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mg-flow-node strong {
    color: #ffffff;
    font-size: 12px;
    line-height: 1.25;
}

.mg-flow-node span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    line-height: 1.4;
}

.mg-flow-arrow {
    position: relative;
    display: block;
    height: 1px;
    background: var(--vl-teal-bright);
    opacity: 0;
    animation: mg-concept-line 420ms 280ms ease-out forwards;
}

.mg-flow-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1px;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--vl-teal-bright);
    border-right: 1px solid var(--vl-teal-bright);
    transform: translateY(-50%) rotate(45deg);
}

.mg-flow-arrow--project {
    background: rgba(255, 255, 255, 0.86);
}

.mg-flow-arrow--project::after {
    border-color: rgba(255, 255, 255, 0.86);
}

.mg-annex-c-svg {
    display: block;
    width: 100%;
    min-height: 214px;
}

.mg-annex-c-system {
    fill: rgba(8, 35, 59, 0.48);
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1;
}

.mg-annex-c-cavity-field {
    opacity: 0.92;
}

.mg-annex-c-loads line {
    stroke: var(--vl-teal-bright);
    stroke-width: 1.8;
    animation: mg-annex-c-action 1.8s ease-in-out infinite;
}

.mg-annex-c-loads line:nth-child(2) {
    animation-delay: 130ms;
}

.mg-annex-c-loads line:nth-child(3) {
    animation-delay: 260ms;
}

.mg-annex-c-loads line:nth-child(4) {
    animation-delay: 390ms;
}

.mg-annex-c-pane {
    fill: none;
    stroke: var(--vl-teal-bright);
    stroke-linecap: round;
    stroke-width: 10;
    transform-box: fill-box;
    transform-origin: center;
}

.mg-annex-c-pane--one {
    animation: mg-annex-c-pane-one 3s ease-in-out infinite;
}

.mg-annex-c-pane--two {
    stroke: rgba(166, 238, 241, 0.88);
    animation: mg-annex-c-pane-two 3s 240ms ease-in-out infinite;
}

.mg-annex-c-pane--three {
    stroke: rgba(255, 255, 255, 0.84);
    animation: mg-annex-c-pane-three 3s 480ms ease-in-out infinite;
}

.mg-annex-c-pressure {
    transform-box: fill-box;
    transform-origin: center;
    animation: mg-annex-c-pressure 3s ease-in-out infinite;
}

.mg-annex-c-pressure--two {
    animation-delay: 330ms;
}

.mg-annex-c-output {
    fill: none;
    stroke: rgba(255, 255, 255, 0.86);
    stroke-width: 1.8;
    animation: mg-annex-c-output 1.8s 620ms ease-in-out infinite;
}

.mg-annex-c-labels text {
    fill: rgba(255, 255, 255, 0.66);
    font-size: 7px;
    font-weight: 800;
    text-anchor: middle;
}

.mg-annex-c-labels .mg-annex-c-cavity-name {
    fill: #ffffff;
    font-size: 9px;
}

.mg-annex-c-labels .mg-annex-c-cavity-delta {
    fill: var(--vl-teal-bright);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 12px;
    font-style: italic;
}

.mg-dgu-stage {
    display: grid;
    grid-template-columns: 78px 34px minmax(130px, 1fr) 34px 78px;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 3px;
}

.mg-dgu-action,
.mg-dgu-response {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    min-height: 132px;
}

.mg-dgu-action span,
.mg-dgu-response span {
    color: var(--vl-teal-bright);
    font-size: 25px;
    font-weight: 300;
    line-height: 0.7;
}

.mg-dgu-action span {
    animation: mg-dgu-action-pulse 1.65s ease-in-out infinite;
}

.mg-dgu-action span:nth-child(2) {
    animation-delay: 130ms;
}

.mg-dgu-action span:nth-child(3) {
    animation-delay: 260ms;
}

.mg-dgu-response span {
    color: rgba(255, 255, 255, 0.86);
    animation: mg-dgu-response-pulse 1.65s 600ms ease-in-out infinite;
}

.mg-dgu-action small,
.mg-dgu-response small {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 8px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
}

.mg-dgu-pane {
    position: relative;
    width: 18px;
    height: 158px;
    justify-self: center;
    border: 2px solid var(--vl-teal-bright);
    border-radius: 50% / 4%;
    background: linear-gradient(90deg, rgba(85, 216, 223, 0.2), rgba(255, 255, 255, 0.04));
    box-shadow: 0 0 18px rgba(25, 174, 187, 0.14);
    transform-origin: center;
}

.mg-dgu-pane--outer {
    animation: mg-dgu-outer-pane 2.8s ease-in-out infinite;
}

.mg-dgu-pane--inner {
    border-color: rgba(255, 255, 255, 0.82);
    animation: mg-dgu-inner-pane 2.8s 420ms ease-in-out infinite;
}

.mg-dgu-pane span {
    position: absolute;
    left: 50%;
    bottom: -27px;
    width: 74px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 8px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.mg-dgu-cavity {
    position: relative;
    display: grid;
    min-height: 132px;
    align-content: center;
    justify-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    background:
        radial-gradient(circle, rgba(85, 216, 223, 0.2) 1px, transparent 1.6px);
    background-size: 20px 20px;
}

.mg-dgu-cavity strong,
.mg-dgu-cavity span {
    position: relative;
    z-index: 2;
    padding: 2px 7px;
    background: rgba(23, 66, 104, 0.86);
}

.mg-dgu-cavity strong {
    color: #ffffff;
    font-size: 12px;
}

.mg-dgu-cavity span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 8px;
}

.mg-dgu-cavity .mg-dgu-cavity-delta {
    display: inline-flex;
    align-items: baseline;
    color: var(--vl-teal-bright);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-style: italic;
    line-height: 1;
}

.mg-dgu-cavity-delta sub {
    margin-left: 1px;
    font-size: 0.58em;
    line-height: 1;
}

.mg-dgu-pressure-pulse {
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: -12%;
    width: 36%;
    background: linear-gradient(90deg, transparent, rgba(85, 216, 223, 0.34), transparent);
    filter: blur(2px);
    animation: mg-dgu-pressure 2.8s ease-in-out infinite;
}

.mg-limit-state-stage {
    display: grid;
    grid-template-columns: 116px 58px minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(86px, 1fr));
    align-items: stretch;
    gap: 10px 14px;
    padding: 12px 18px 4px;
}

.mg-limit-pane {
    position: relative;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: center;
    width: 64px;
    height: 138px;
    border: 2px solid var(--vl-teal-bright);
    border-radius: 5px;
    background:
        linear-gradient(rgba(85, 216, 223, 0.1), rgba(255, 255, 255, 0.03)),
        repeating-linear-gradient(0deg, transparent 0 27px, rgba(255, 255, 255, 0.1) 28px);
    box-shadow: inset 0 0 26px rgba(25, 174, 187, 0.12);
}

.mg-limit-pane > span {
    position: absolute;
    bottom: -28px;
    left: 50%;
    width: 118px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 8px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.mg-limit-loads {
    position: absolute;
    top: 18px;
    left: -44px;
    display: grid;
    gap: 24px;
}

.mg-limit-loads i {
    position: relative;
    display: block;
    width: 37px;
    height: 1px;
    background: var(--vl-teal-bright);
    animation: mg-limit-action 1.7s ease-in-out infinite;
}

.mg-limit-loads i::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--vl-teal-bright);
    border-right: 1px solid var(--vl-teal-bright);
    transform: rotate(45deg);
}

.mg-limit-loads i:nth-child(2) {
    animation-delay: 120ms;
}

.mg-limit-loads i:nth-child(3) {
    animation-delay: 240ms;
}

.mg-limit-split {
    position: relative;
    grid-row: 1 / 3;
}

.mg-limit-split::before,
.mg-limit-split::after,
.mg-limit-split i {
    content: "";
    position: absolute;
    display: block;
}

.mg-limit-split i {
    top: 50%;
    left: 0;
    width: 25px;
    height: 1px;
    background: var(--vl-teal-bright);
}

.mg-limit-split::before {
    top: 25%;
    bottom: 25%;
    left: 25px;
    width: 1px;
    background: linear-gradient(var(--vl-teal-bright), rgba(255, 255, 255, 0.84));
}

.mg-limit-split::after {
    top: 25%;
    left: 25px;
    width: 33px;
    height: 50%;
    border-top: 1px solid var(--vl-teal-bright);
    border-bottom: 1px solid rgba(255, 255, 255, 0.84);
}

.mg-limit-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 11px;
    background: rgba(8, 31, 52, 0.46);
    opacity: 0;
    animation: mg-concept-rise 560ms 210ms ease-out forwards;
}

.mg-limit-card--uls {
    border-left: 3px solid var(--vl-teal-bright);
}

.mg-limit-card--sls {
    border-left: 3px solid rgba(255, 255, 255, 0.88);
    animation-delay: 360ms;
}

.mg-limit-card small {
    grid-column: 1 / 3;
    color: var(--vl-teal-bright);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mg-limit-card--sls small {
    color: rgba(255, 255, 255, 0.68);
}

.mg-limit-card strong {
    margin-top: 4px;
    color: #ffffff;
    font-size: 12px;
}

.mg-limit-card span {
    grid-column: 1;
    color: rgba(255, 255, 255, 0.58);
    font-size: 8px;
}

.mg-limit-card b {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
    padding-left: 12px;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-style: italic;
    font-weight: 600;
}

.mg-limit-card b sub {
    font-size: 9px;
    font-style: normal;
}

.mg-support-hero-badge {
    font-family: "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.08em;
}

.mg-support-hero-stage {
    display: grid;
    min-height: 250px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    padding: 18px;
}

.mg-support-hero-card {
    display: grid;
    min-width: 0;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 15px 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(8, 31, 52, 0.44);
}

.mg-support-hero-card small {
    color: var(--vl-teal-bright);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mg-support-hero-card > strong {
    color: rgba(255, 255, 255, 0.72);
    font-size: 8px;
    text-align: center;
    text-transform: uppercase;
}

.mg-support-pane {
    position: relative;
    width: min(100%, 112px);
    height: 128px;
    border-radius: 3px;
    background:
        linear-gradient(145deg, rgba(85, 216, 223, 0.2), rgba(255, 255, 255, 0.035)),
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.08) 32px),
        repeating-linear-gradient(90deg, transparent 0 36px, rgba(255, 255, 255, 0.07) 37px);
    box-shadow: inset 0 0 25px rgba(25, 174, 187, 0.1);
}

.mg-support-edge {
    position: absolute;
    display: block;
    background: rgba(255, 255, 255, 0.78);
}

.mg-support-edge--top,
.mg-support-edge--bottom {
    right: 0;
    left: 0;
    height: 2px;
}

.mg-support-edge--top {
    top: 0;
}

.mg-support-edge--bottom {
    bottom: 0;
}

.mg-support-edge--right,
.mg-support-edge--left {
    top: 0;
    bottom: 0;
    width: 2px;
}

.mg-support-edge--right {
    right: 0;
}

.mg-support-edge--left {
    left: 0;
}

.mg-support-hero-card--four .mg-support-edge,
.mg-support-hero-card--two .mg-support-edge--left,
.mg-support-hero-card--two .mg-support-edge--right,
.mg-support-hero-card--one .mg-support-edge--bottom {
    z-index: 2;
    background: var(--vl-teal-bright);
    box-shadow: 0 0 8px rgba(85, 216, 223, 0.72);
}

.mg-support-load {
    position: absolute;
    top: 32px;
    right: -23px;
    display: grid;
    gap: 16px;
}

.mg-support-load b {
    position: relative;
    display: block;
    width: 31px;
    height: 1px;
    background: var(--vl-teal-bright);
    animation: mg-support-action 1.8s ease-in-out infinite;
}

.mg-support-load b::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 1px solid var(--vl-teal-bright);
    border-left: 1px solid var(--vl-teal-bright);
    transform: rotate(45deg);
}

.mg-support-load b:nth-child(2) {
    animation-delay: 140ms;
}

.mg-support-load b:nth-child(3) {
    animation-delay: 280ms;
}

@keyframes mg-support-action {
    0%,
    100% {
        opacity: 0.45;
        transform: translateX(5px);
    }
    50% {
        opacity: 1;
        transform: translateX(-2px);
    }
}

.mg-frequency-badge {
    font-family: "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.02em;
}

.mg-frequency-badge i {
    font-family: Georgia, "Times New Roman", serif;
}

.mg-frequency-badge sub {
    font-size: 0.62em;
}

.mg-frequency-stage {
    min-height: 250px;
    padding: 4px 16px 0;
}

.mg-frequency-svg {
    display: block;
    width: 100%;
    height: 250px;
    overflow: visible;
}

.mg-frequency-supports path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-linecap: round;
    stroke-width: 5;
}

.mg-frequency-pane {
    fill: url("#frequency-pane-fill");
    stroke: rgba(255, 255, 255, 0.46);
    stroke-width: 1;
}

.mg-frequency-grid {
    fill: none;
    stroke: rgba(255, 255, 255, 0.09);
    stroke-width: 1;
}

.mg-frequency-reference {
    fill: none;
    stroke: rgba(255, 255, 255, 0.72);
    stroke-dasharray: 6 5;
    stroke-width: 1.5;
}

.mg-frequency-mode {
    fill: none;
    filter: url("#frequency-glow");
    stroke: var(--vl-teal-bright);
    stroke-linecap: round;
    stroke-width: 3;
    transform-origin: 216px 125px;
    animation: mg-frequency-oscillation 3.2s ease-in-out infinite;
}

.mg-frequency-mode--return {
    opacity: 0.28;
    animation-delay: -1.6s;
}

.mg-frequency-node {
    fill: #ffffff;
    filter: url("#frequency-glow");
    animation: mg-frequency-node 3.2s ease-in-out infinite;
}

.mg-frequency-pane-label {
    fill: rgba(255, 255, 255, 0.62);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-anchor: middle;
}

.mg-frequency-readout rect,
.mg-frequency-threshold rect {
    fill: rgba(8, 31, 52, 0.5);
    stroke: rgba(255, 255, 255, 0.24);
}

.mg-frequency-readout rect {
    stroke: var(--vl-teal-bright);
}

.mg-frequency-readout-kicker {
    fill: rgba(255, 255, 255, 0.64);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.mg-frequency-readout-value {
    fill: var(--vl-teal-bright);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 600;
}

.mg-frequency-threshold-value {
    fill: #ffffff;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 19px;
    font-weight: 800;
}

@keyframes mg-frequency-oscillation {
    0%,
    100% {
        opacity: 0.72;
        transform: scaleY(0.76);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.08);
    }
}

@keyframes mg-frequency-node {
    0%,
    100% {
        opacity: 0.7;
        transform: translateY(7px);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@media (max-width: 620px) {
    .mg-support-hero-stage {
        min-height: 250px;
        grid-template-columns: repeat(3, 92px);
        justify-content: center;
        gap: 7px;
        padding: 16px 8px;
    }

    .mg-support-hero-card {
        gap: 9px;
        padding: 12px 6px 10px;
    }

    .mg-support-pane {
        width: 66px;
        height: 105px;
    }

    .mg-support-load {
        right: -14px;
    }

    .mg-support-load b {
        width: 19px;
    }

    .mg-support-hero-card > strong {
        font-size: 7px;
        line-height: 1.25;
    }
}

.mg-mass-stage {
    display: flex;
    min-height: 230px;
    align-items: stretch;
    padding: 9px 18px 0;
}

.mg-mass-formula {
    position: absolute;
    top: 14px;
    left: 18px;
    z-index: 3;
    display: grid;
    gap: 1px;
    padding: 8px 11px;
    border-left: 2px solid var(--vl-teal-bright);
    background: rgba(8, 31, 52, 0.54);
}

.mg-mass-formula small {
    color: var(--vl-teal-bright);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mg-mass-formula strong {
    color: #ffffff;
    font-size: 11px;
}

.mg-scale {
    position: relative;
    width: min(100%, 410px);
    height: 172px;
    margin: 42px auto 0;
}

.mg-scale-beam {
    position: absolute;
    top: 45px;
    left: 50%;
    width: 310px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.78), var(--vl-teal-bright));
    transform: translateX(-50%) rotate(2.6deg);
    transform-origin: center;
    animation: mg-scale-settle 4.2s ease-in-out infinite;
}

.mg-scale-pivot {
    position: absolute;
    top: 42px;
    left: 50%;
    width: 0;
    height: 0;
    border-right: 28px solid transparent;
    border-bottom: 82px solid rgba(255, 255, 255, 0.18);
    border-left: 28px solid transparent;
    transform: translateX(-50%);
}

.mg-scale-pivot::after {
    content: "";
    position: absolute;
    top: 80px;
    left: -46px;
    width: 92px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
}

.mg-scale-pan {
    position: absolute;
    top: 2px;
    display: grid;
    width: 112px;
    min-height: 102px;
    align-content: end;
    justify-items: center;
    transform-origin: top center;
    animation: mg-scale-pan-settle 4.2s ease-in-out infinite;
}

.mg-scale-pan::before,
.mg-scale-pan::after {
    content: "";
    position: absolute;
    top: 4px;
    width: 1px;
    height: 64px;
    background: rgba(255, 255, 255, 0.62);
}

.mg-scale-pan::before {
    left: 18px;
    transform: rotate(17deg);
    transform-origin: top;
}

.mg-scale-pan::after {
    right: 18px;
    transform: rotate(-17deg);
    transform-origin: top;
}

.mg-scale-pan--glass {
    left: -46px;
}

.mg-scale-pan--blocks {
    right: -46px;
}

.mg-scale-pan > strong {
    position: absolute;
    top: 108px;
    width: 120px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 8px;
    text-align: center;
    text-transform: uppercase;
}

.mg-scale-pan > span {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 42px;
    align-items: end;
    justify-content: center;
    gap: 3px;
    margin-bottom: 2px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.75);
}

.mg-glass-stack {
    width: 94px;
}

.mg-glass-stack i {
    display: block;
    width: 56px;
    height: 34px;
    margin-left: -39px;
    border: 1px solid var(--vl-teal-bright);
    background: rgba(85, 216, 223, 0.16);
    box-shadow: inset 0 0 14px rgba(85, 216, 223, 0.12);
    transform: skewY(-6deg);
}

.mg-glass-stack i + i {
    margin-left: -47px;
}

.mg-mass-blocks {
    width: 94px;
}

.mg-mass-blocks i {
    display: grid;
    width: 27px;
    height: 26px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 3px 3px 1px 1px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 7px;
    font-style: normal;
    font-weight: 800;
}

.mg-mass-blocks i:nth-child(2) {
    height: 34px;
}

.mg-mass-blocks i:nth-child(3) {
    height: 41px;
}

.mg-example-badge {
    font-family: "IBM Plex Mono", Consolas, monospace;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.mg-example-stage {
    min-height: 230px;
    padding: 10px 18px 2px;
}

.mg-snow-stage {
    display: grid;
    grid-template-columns: 112px minmax(230px, 1fr) 96px;
    align-items: center;
    gap: 10px;
}

.mg-snow-action,
.mg-self-weight,
.mg-wind-case,
.mg-laminated-output {
    position: relative;
    z-index: 3;
    display: grid;
    align-content: center;
    padding: 13px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 11px;
    background: rgba(8, 31, 52, 0.46);
}

.mg-snow-action {
    border-left: 3px solid var(--vl-teal-bright);
}

.mg-snow-action small,
.mg-self-weight small,
.mg-wind-case small,
.mg-laminated-build > small,
.mg-laminated-output small {
    color: var(--vl-teal-bright);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.mg-snow-action strong,
.mg-wind-case strong,
.mg-laminated-output strong {
    margin-top: 5px;
    color: #ffffff;
    font-size: 12px;
}

.mg-snow-action span,
.mg-wind-case span,
.mg-laminated-output span {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 8px;
    line-height: 1.35;
}

.mg-snow-scene {
    position: relative;
    min-height: 196px;
}

.mg-snow-arrows {
    position: absolute;
    top: 3px;
    left: 50%;
    z-index: 4;
    display: flex;
    width: min(88%, 280px);
    justify-content: space-around;
    transform: translateX(-50%);
}

.mg-snow-arrows i {
    position: relative;
    display: block;
    width: 1px;
    height: 43px;
    background: var(--vl-teal-bright);
    opacity: 0.78;
    animation: mg-snow-action 1.8s ease-in-out infinite;
}

.mg-snow-arrows i::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: -3px;
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--vl-teal-bright);
    border-bottom: 1px solid var(--vl-teal-bright);
    transform: rotate(45deg);
}

.mg-snow-arrows i:nth-child(2) {
    animation-delay: 100ms;
}

.mg-snow-arrows i:nth-child(3) {
    animation-delay: 200ms;
}

.mg-snow-arrows i:nth-child(4) {
    animation-delay: 300ms;
}

.mg-snow-arrows i:nth-child(5) {
    animation-delay: 400ms;
}

.mg-snow-arrows i:nth-child(6) {
    animation-delay: 500ms;
}

.mg-horizontal-pane {
    position: absolute;
    top: 75px;
    left: 50%;
    width: min(82%, 260px);
    height: 92px;
    transform: translateX(-50%) skewX(-12deg);
}

.mg-horizontal-pane i {
    position: absolute;
    inset: 0;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        linear-gradient(135deg, rgba(85, 216, 223, 0.2), rgba(255, 255, 255, 0.04)),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.08) 40px);
}

.mg-horizontal-pane__top {
    z-index: 3;
    transform: translateY(-8px);
}

.mg-horizontal-pane__interlayer {
    z-index: 2;
    border-color: rgba(85, 216, 223, 0.88) !important;
    background: rgba(85, 216, 223, 0.16) !important;
}

.mg-horizontal-pane__bottom {
    z-index: 1;
    transform: translateY(8px);
}

.mg-horizontal-pane span {
    position: absolute;
    bottom: -31px;
    left: 50%;
    z-index: 4;
    width: 230px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 8px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    transform: translateX(-50%) skewX(12deg);
}

.mg-horizontal-supports {
    position: absolute;
    top: 68px;
    left: 50%;
    z-index: 5;
    width: min(88%, 280px);
    height: 108px;
    transform: translateX(-50%) skewX(-12deg);
}

.mg-horizontal-supports i {
    position: absolute;
    width: 14px;
    height: 14px;
    border-style: solid;
    border-color: var(--vl-teal-bright);
}

.mg-horizontal-supports i:nth-child(1) {
    top: 0;
    left: 0;
    border-width: 2px 0 0 2px;
}

.mg-horizontal-supports i:nth-child(2) {
    top: 0;
    right: 0;
    border-width: 2px 2px 0 0;
}

.mg-horizontal-supports i:nth-child(3) {
    bottom: 0;
    left: 0;
    border-width: 0 0 2px 2px;
}

.mg-horizontal-supports i:nth-child(4) {
    right: 0;
    bottom: 0;
    border-width: 0 2px 2px 0;
}

.mg-snow-response {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: min(70%, 220px);
    height: 18px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 0 0 50% 50%;
    opacity: 0.68;
    transform: translateX(-50%);
    animation: mg-snow-deflection 2.8s ease-in-out infinite;
}

.mg-self-weight {
    min-height: 88px;
    justify-items: center;
    border-left: 3px solid rgba(255, 255, 255, 0.72);
    text-align: center;
}

.mg-self-weight i {
    position: relative;
    display: block;
    width: 1px;
    height: 36px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.82);
}

.mg-self-weight i::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: -4px;
    width: 7px;
    height: 7px;
    border-right: 1px solid rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.82);
    transform: rotate(45deg);
}

.mg-self-weight small {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.35;
}

.mg-wind-stage {
    display: grid;
    grid-template-columns: 102px 70px minmax(132px, 1fr) 102px;
    align-items: center;
    gap: 10px;
}

.mg-wind-case {
    min-height: 102px;
}

.mg-wind-case--pressure {
    border-left: 3px solid var(--vl-teal-bright);
    animation: mg-wind-case-pressure 4.4s ease-in-out infinite;
}

.mg-wind-case--suction {
    border-left: 3px solid rgba(255, 255, 255, 0.82);
    animation: mg-wind-case-suction 4.4s ease-in-out infinite;
}

.mg-wind-case--suction small {
    color: rgba(255, 255, 255, 0.72);
}

.mg-wind-vectors {
    position: relative;
    width: 100%;
    height: 162px;
}

.mg-wind-vectors__pressure,
.mg-wind-vectors__suction {
    position: absolute;
    inset: 20px 0;
    display: grid;
    align-content: space-around;
}

.mg-wind-vectors__pressure {
    animation: mg-wind-pressure 4.4s ease-in-out infinite;
}

.mg-wind-vectors__suction {
    animation: mg-wind-suction 4.4s ease-in-out infinite;
}

.mg-wind-vectors i {
    position: relative;
    display: block;
    width: 100%;
    height: 1px;
}

.mg-wind-vectors__pressure i {
    background: var(--vl-teal-bright);
}

.mg-wind-vectors__pressure i::after,
.mg-wind-vectors__suction i::before {
    content: "";
    position: absolute;
    top: -3px;
    width: 6px;
    height: 6px;
    transform: rotate(45deg);
}

.mg-wind-vectors__pressure i::after {
    right: -1px;
    border-top: 1px solid var(--vl-teal-bright);
    border-right: 1px solid var(--vl-teal-bright);
}

.mg-wind-vectors__suction i {
    background: rgba(255, 255, 255, 0.82);
}

.mg-wind-vectors__suction i::before {
    left: -1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.82);
    border-left: 1px solid rgba(255, 255, 255, 0.82);
}

.mg-wind-frame {
    position: relative;
    display: grid;
    min-height: 196px;
    place-items: center;
}

.mg-wind-pane {
    position: relative;
    width: 86px;
    height: 154px;
    border: 5px solid rgba(208, 213, 215, 0.86);
    border-radius: 4px;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.14),
        0 0 18px rgba(25, 174, 187, 0.14);
}

.mg-wind-pane::before {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid var(--vl-teal-bright);
    background:
        linear-gradient(135deg, rgba(85, 216, 223, 0.22), rgba(255, 255, 255, 0.03)),
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(255, 255, 255, 0.08) 32px);
}

.mg-wind-pane i {
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 50%;
    z-index: 2;
    width: 12px;
    border-right: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: mg-wind-pane-response 4.4s ease-in-out infinite;
}

.mg-wind-frame > span,
.mg-wind-frame > small {
    position: absolute;
    left: 50%;
    width: 190px;
    text-align: center;
    transform: translateX(-50%);
}

.mg-wind-frame > span {
    bottom: 5px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.mg-wind-frame > small {
    bottom: -10px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 7px;
}

.mg-laminated-example-stage {
    display: grid;
    grid-template-columns: 54px minmax(140px, 1fr) 64px minmax(130px, 1fr);
    align-items: center;
    gap: 9px;
}

.mg-laminated-action {
    display: grid;
    align-content: center;
    gap: 31px;
    min-height: 154px;
}

.mg-laminated-action i {
    position: relative;
    display: block;
    width: 48px;
    height: 1px;
    background: var(--vl-teal-bright);
    animation: mg-laminated-action 1.8s ease-in-out infinite;
}

.mg-laminated-action i::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--vl-teal-bright);
    border-right: 1px solid var(--vl-teal-bright);
    transform: rotate(45deg);
}

.mg-laminated-action i:nth-child(2) {
    animation-delay: 160ms;
}

.mg-laminated-action i:nth-child(3) {
    animation-delay: 320ms;
}

.mg-laminated-action small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 8px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.mg-laminated-build {
    display: grid;
    justify-items: center;
}

.mg-laminated-layers {
    position: relative;
    width: 112px;
    height: 144px;
    margin: 5px 0 7px;
}

.mg-laminated-layers > i {
    position: absolute;
    top: 0;
    display: block;
    width: 72px;
    height: 136px;
    transform: skewY(-4deg);
}

.mg-laminated-ply {
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: linear-gradient(90deg, rgba(85, 216, 223, 0.18), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 0 20px rgba(85, 216, 223, 0.08);
}

.mg-laminated-ply--front {
    left: 0;
}

.mg-laminated-ply--back {
    right: 0;
}

.mg-laminated-interlayer {
    left: 20px;
    z-index: 2;
    border: 2px solid var(--vl-teal-bright);
    background: rgba(85, 216, 223, 0.16);
}

.mg-laminated-interlayer span {
    position: absolute;
    left: 12px;
    width: 44px;
    height: 1px;
    background: var(--vl-teal-bright);
    animation: mg-laminated-shear 1.8s ease-in-out infinite;
}

.mg-laminated-interlayer span:nth-child(1) {
    top: 31px;
}

.mg-laminated-interlayer span:nth-child(2) {
    top: 66px;
    animation-delay: 140ms;
}

.mg-laminated-interlayer span:nth-child(3) {
    top: 101px;
    animation-delay: 280ms;
}

.mg-laminated-build > strong {
    color: #ffffff;
    font-size: 11px;
}

.mg-laminated-build > span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 8px;
    text-align: center;
}

.mg-laminated-transfer {
    position: relative;
    display: grid;
    justify-items: center;
}

.mg-laminated-transfer i {
    position: relative;
    display: block;
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--vl-teal-bright), rgba(255, 255, 255, 0.82));
}

.mg-laminated-transfer i::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -1px;
    width: 7px;
    height: 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.82);
    border-right: 1px solid rgba(255, 255, 255, 0.82);
    transform: rotate(45deg);
}

.mg-laminated-transfer span {
    margin-top: 9px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 7px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.mg-laminated-output {
    min-height: 132px;
    border-left: 3px solid rgba(255, 255, 255, 0.82);
    animation: mg-concept-rise 560ms 320ms ease-out both;
}

.mg-laminated-output strong {
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 11px;
}

.mg-laminated-output strong i {
    font-family: Georgia, "Times New Roman", serif;
}

.mg-laminated-output strong sub {
    font-size: 7px;
}

@keyframes mg-concept-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mg-concept-line {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes mg-snow-action {
    0%,
    100% {
        opacity: 0.35;
        transform: translateY(-5px);
    }
    50% {
        opacity: 1;
        transform: translateY(4px);
    }
}

@keyframes mg-snow-deflection {
    0%,
    100% {
        transform: translateX(-50%) scaleY(0.72);
    }
    50% {
        transform: translateX(-50%) scaleY(1.06);
    }
}

@keyframes mg-wind-pressure {
    0%,
    42% {
        opacity: 1;
        transform: translateX(0);
    }
    50%,
    92% {
        opacity: 0.08;
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes mg-wind-suction {
    0%,
    42% {
        opacity: 0.08;
        transform: translateX(5px);
    }
    50%,
    92% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0.08;
        transform: translateX(5px);
    }
}

@keyframes mg-wind-case-pressure {
    0%,
    42%,
    100% {
        border-color: var(--vl-teal-bright);
        opacity: 1;
    }
    50%,
    92% {
        border-color: rgba(255, 255, 255, 0.2);
        opacity: 0.48;
    }
}

@keyframes mg-wind-case-suction {
    0%,
    42%,
    100% {
        border-color: rgba(255, 255, 255, 0.2);
        opacity: 0.48;
    }
    50%,
    92% {
        border-color: rgba(255, 255, 255, 0.82);
        opacity: 1;
    }
}

@keyframes mg-wind-pane-response {
    0%,
    42%,
    100% {
        transform: translateX(-60%) scaleX(1);
    }
    50%,
    92% {
        transform: translateX(-40%) scaleX(-1);
    }
}

@keyframes mg-laminated-action {
    0%,
    100% {
        opacity: 0.38;
        transform: translateX(-5px);
    }
    50% {
        opacity: 1;
        transform: translateX(3px);
    }
}

@keyframes mg-laminated-shear {
    0%,
    100% {
        opacity: 0.35;
        transform: translateX(-7px);
    }
    50% {
        opacity: 1;
        transform: translateX(7px);
    }
}

@keyframes mg-dgu-action-pulse {
    0%,
    100% {
        opacity: 0.4;
        transform: translateX(-4px);
    }
    50% {
        opacity: 1;
        transform: translateX(3px);
    }
}

@keyframes mg-annex-c-action {
    0%,
    100% {
        opacity: 0.34;
        transform: translateX(-5px);
    }
    50% {
        opacity: 1;
        transform: translateX(4px);
    }
}

@keyframes mg-annex-c-output {
    0%,
    100% {
        opacity: 0.32;
        transform: translateX(-2px);
    }
    50% {
        opacity: 0.9;
        transform: translateX(4px);
    }
}

@keyframes mg-annex-c-pressure {
    0%,
    100% {
        opacity: 0.28;
        transform: scaleX(0.74);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.08);
    }
}

@keyframes mg-annex-c-pane-one {
    0%,
    100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.22) translateX(2px);
    }
}

@keyframes mg-annex-c-pane-two {
    0%,
    100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.13) translateX(1px);
    }
}

@keyframes mg-annex-c-pane-three {
    0%,
    100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.07);
    }
}

@keyframes mg-dgu-response-pulse {
    0%,
    100% {
        opacity: 0.35;
        transform: translateX(-2px);
    }
    50% {
        opacity: 0.9;
        transform: translateX(4px);
    }
}

@keyframes mg-dgu-pressure {
    0%,
    100% {
        opacity: 0.2;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(285%);
    }
}

@keyframes mg-dgu-outer-pane {
    0%,
    100% {
        transform: skewY(0deg);
    }
    50% {
        transform: skewY(2deg) scaleX(1.16);
    }
}

@keyframes mg-dgu-inner-pane {
    0%,
    100% {
        transform: skewY(0deg);
    }
    50% {
        transform: skewY(1deg) scaleX(1.08);
    }
}

@keyframes mg-limit-action {
    0%,
    100% {
        opacity: 0.35;
        transform: translateX(-3px);
    }
    50% {
        opacity: 1;
        transform: translateX(3px);
    }
}

@keyframes mg-scale-settle {
    0%,
    100% {
        transform: translateX(-50%) rotate(2.6deg);
    }
    45%,
    58% {
        transform: translateX(-50%) rotate(0.4deg);
    }
}

@keyframes mg-scale-pan-settle {
    0%,
    100% {
        transform: rotate(-2.6deg);
    }
    45%,
    58% {
        transform: rotate(-0.4deg);
    }
}

@keyframes mg-chalk-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mg-laminate-shear {
    to {
        stroke-dashoffset: -24;
    }
}

@keyframes mg-draw-line {
    to {
        stroke-dashoffset: 0;
    }
}

.mg-chapter-nav {
    position: sticky;
    z-index: 15;
    top: 10px;
    margin: 18px 0 28px;
}

.mg-chapter-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border: 1px solid var(--vl-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(23, 32, 51, 0.09);
    scrollbar-width: none;
    backdrop-filter: blur(14px);
}

html.theme-dark .mg-chapter-scroll {
    background: rgba(17, 35, 55, 0.94);
}

.mg-chapter-scroll::-webkit-scrollbar {
    display: none;
}

.mg-chapter-track {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(max-content, 1fr);
    min-width: max-content;
    padding: 6px;
}

.mg-tab-glow {
    position: absolute;
    z-index: 0;
    top: 6px;
    left: 0;
    width: 0;
    height: calc(100% - 12px);
    border: 1px solid rgba(204, 232, 239, 0.42);
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        var(--vl-teal-bright),
        var(--vl-teal)
    );
    box-shadow: var(--vl-shadow-glow);
    opacity: 0;
    transform: translateX(0);
    transition:
        transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        width 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 120ms ease;
}

.mg-chapter-track.is-ready .mg-tab-glow {
    opacity: 1;
}

.mg-chapter-tab {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 11px;
    color: var(--vl-muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: color 130ms ease, text-shadow 130ms ease;
}

.mg-chapter-tab span {
    color: var(--vl-teal);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 10px;
    transition: color 130ms ease;
}

.mg-chapter-tab[aria-selected="true"] {
    color: var(--vl-navy);
}

.mg-chapter-tab[aria-selected="true"] span {
    color: var(--vl-teal);
}

.mg-chapter-tab.is-previewed {
    color: var(--vl-surface);
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.42);
}

.mg-chapter-tab.is-previewed span {
    color: var(--vl-surface);
}

.mg-chapter-tab:focus-visible {
    outline: 3px solid var(--vl-line-strong);
    outline-offset: -3px;
}

.mg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 30px;
    align-items: start;
}

.mg-article {
    min-width: 0;
    padding: 34px 42px;
    border: 1px solid var(--vl-line);
    border-radius: var(--vl-radius-md);
    background: var(--vl-surface);
    box-shadow: 0 10px 34px rgba(23, 32, 51, 0.055);
}

.mg-panel {
    min-height: 0;
}

.mg-panel[hidden] {
    display: none;
}

.mg-chapter-heading {
    display: grid;
    grid-template-columns: auto minmax(50px, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.mg-chapter-heading span {
    color: var(--vl-teal);
    font-family: "IBM Plex Mono", Consolas, monospace;
    font-size: 11px;
    font-weight: 800;
}

.mg-chapter-heading::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, var(--vl-line-teal), transparent);
}

.mg-panel > h2 {
    margin: 0 0 20px;
    color: var(--vl-navy);
    font-family: Rajdhani, Inter, sans-serif;
    font-size: clamp(32px, 2.7vw, 42px);
    line-height: 1;
}

.mg-topic {
    display: grid;
    grid-template-columns: minmax(170px, 0.32fr) minmax(0, 1fr);
    gap: 26px;
    padding: 20px 0;
    border-top: 1px solid var(--vl-line);
}

.mg-topic:first-of-type {
    border-top: 0;
}

.mg-topic h3 {
    margin: 0;
    color: var(--vl-ink);
    font-size: 17px;
    line-height: 1.35;
}

.mg-topic p {
    max-width: 70ch;
    margin: 0;
    color: var(--vl-muted);
    font-size: 14px;
    line-height: 1.62;
}

.mg-topic a,
.mg-worked-note a {
    font-weight: 750;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.math-var {
    display: inline-block;
    color: var(--vl-navy);
    font-family: Cambria, "Times New Roman", serif;
    font-weight: 600;
}

.mg-scope-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 4px 0 18px;
    overflow: hidden;
    border: 1px solid var(--vl-line-teal);
    border-radius: 14px;
    background: var(--vl-surface-soft);
}

.mg-scope-strip div {
    padding: 12px 14px;
}

.mg-scope-strip div + div {
    border-left: 1px solid var(--vl-line-teal);
}

.mg-scope-strip dt {
    color: var(--vl-teal-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mg-scope-strip dd {
    margin: 4px 0 0;
    color: var(--vl-ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.mg-worked-intro {
    max-width: 75ch;
    margin: -10px 0 30px;
    color: var(--vl-muted);
}

.mg-worked-inputs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.mg-worked-inputs > div {
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid var(--vl-line);
    border-radius: 12px;
    background: var(--vl-surface-light);
}

.mg-worked-inputs dt,
.mg-result-data dt {
    color: var(--vl-supporting);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mg-worked-inputs dd,
.mg-result-data dd {
    margin: 4px 0 0;
    color: var(--vl-ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.mg-worked-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mg-result-card {
    overflow: hidden;
    border: 1px solid var(--vl-line);
    border-radius: 14px;
    background: var(--vl-surface);
}

.mg-result-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--vl-line);
    background: var(--vl-surface-soft);
    color: var(--vl-navy);
    font-size: 12px;
    font-weight: 800;
}

.mg-result-card header strong {
    color: var(--vl-success);
    font-size: 11px;
}

.mg-result-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 18px 16px;
}

.mg-worked-note {
    margin: 18px 0 0;
    padding: 16px 18px;
    border-left: 3px solid var(--vl-teal);
    background: var(--vl-surface-soft);
    color: var(--vl-muted);
    font-size: 13px;
}

.mg-support-link {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin-top: 22px;
    padding: 12px;
    border: 1px solid var(--vl-line-teal);
    border-radius: 14px;
    background: var(--vl-surface-soft);
    color: var(--vl-ink);
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.mg-support-link:hover,
.mg-support-link:focus-visible {
    border-color: var(--vl-line-strong);
    color: var(--vl-ink);
    box-shadow: 0 12px 30px rgba(21, 151, 168, 0.12);
    transform: translateY(-1px);
}

.mg-support-link img {
    display: block;
    width: 128px;
    height: 82px;
    border: 1px solid var(--vl-line);
    border-radius: 9px;
    background: #ffffff;
    object-fit: contain;
}

.mg-support-link span {
    display: grid;
    min-width: 0;
}

.mg-support-link small {
    color: var(--vl-teal-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mg-support-link strong {
    margin-top: 3px;
    font-size: 15px;
}

.mg-support-link em {
    margin-top: 3px;
    color: var(--vl-muted);
    font-size: 12px;
    font-style: normal;
}

.mg-support-link > b {
    padding: 9px 11px;
    border-radius: 9px;
    background: var(--vl-teal);
    color: #ffffff;
    font-size: 10px;
    white-space: nowrap;
}

.mg-gallery-intro {
    max-width: 74ch;
    margin: -8px 0 18px;
    color: var(--vl-muted);
    font-size: 14px;
}

.mg-swipe-hint {
    display: none;
}

.mg-figure-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mg-figure-grid[data-example-count="1"] {
    grid-template-columns: minmax(0, 680px);
}

.mg-figure-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--vl-line);
    border-radius: 14px;
    background: var(--vl-surface-light);
}

.mg-figure-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
}

.mg-figure-link img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: contain;
    background: #ffffff;
}

.mg-figure-link span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(23, 47, 76, 0.92);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.mg-figure-card figcaption {
    padding: 11px 13px;
    border-top: 1px solid var(--vl-line);
    color: var(--vl-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.seo-lightbox {
    width: min(1120px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--vl-line);
    border-radius: 18px;
    background: var(--vl-surface);
    color: var(--vl-ink);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.seo-lightbox::backdrop {
    background: rgba(5, 17, 29, 0.82);
    backdrop-filter: blur(5px);
}

.seo-lightbox-inner {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    max-height: calc(100vh - 32px);
}

.seo-lightbox-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(23, 47, 76, 0.9);
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
}

.seo-lightbox-stage {
    display: grid;
    min-height: 260px;
    max-height: calc(100vh - 120px);
    padding: 18px;
    place-items: center;
    overflow: auto;
    background: #eef4f8;
}

.seo-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
}

.seo-lightbox-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 16px;
    border-top: 1px solid var(--vl-line);
}

.seo-lightbox-caption {
    margin: 0;
    color: var(--vl-muted);
    font-size: 12px;
}

.seo-lightbox-original {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
}

.mg-faq-list {
    border-top: 1px solid var(--vl-line);
}

.mg-faq-item {
    border-bottom: 1px solid var(--vl-line);
}

.mg-faq-item summary {
    position: relative;
    padding: 19px 46px 19px 0;
    color: var(--vl-ink);
    cursor: pointer;
    font-size: 15px;
    font-weight: 750;
    list-style: none;
}

.mg-faq-item summary::-webkit-details-marker {
    display: none;
}

.mg-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 15px;
    right: 2px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 999px;
    background: var(--vl-surface-soft);
    color: var(--vl-teal-dark);
    font-size: 20px;
    transition: transform 160ms ease;
}

.mg-faq-item[open] summary::after {
    transform: rotate(45deg);
}

.mg-faq-answer {
    max-width: 74ch;
    padding: 0 48px 20px 0;
    color: var(--vl-muted);
    font-size: 14px;
}

.mg-faq-answer p {
    margin: 0;
}

.mg-review-note {
    margin: 24px 0 0;
    padding-top: 15px;
    border-top: 1px solid var(--vl-line);
    color: var(--vl-supporting);
    font-size: 12px;
}

.mg-review-note a {
    font-weight: 800;
}

.mg-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    min-width: 0;
    gap: 14px;
}

.mg-sidebar-block {
    min-width: 0;
    max-width: 100%;
    padding: 18px;
    border: 1px solid var(--vl-line);
    border-radius: 16px;
    background: var(--vl-surface);
}

.mg-sidebar-kicker {
    display: block;
    margin-bottom: 6px;
    color: var(--vl-teal-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mg-sidebar h2 {
    margin: 0;
    color: var(--vl-navy);
    font-family: Rajdhani, Inter, sans-serif;
    font-size: 24px;
    line-height: 1.1;
}

.mg-sidebar p {
    margin: 11px 0 0;
    color: var(--vl-muted);
    font-size: 13px;
}

.mg-sidebar-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 17px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--vl-teal);
    color: var(--vl-surface);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background 150ms ease, transform 150ms ease;
}

.mg-sidebar-button:hover,
.mg-sidebar-button:focus-visible {
    background: var(--vl-teal-dark);
    color: var(--vl-surface);
    transform: translateY(-1px);
}

.mg-related {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.mg-related li + li {
    border-top: 1px solid var(--vl-line);
}

.mg-related a {
    display: block;
    padding: 9px 0;
    color: var(--vl-ink);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.mg-related small {
    display: block;
    margin-bottom: 3px;
    color: var(--vl-supporting);
    font-size: 9px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mg-related a:hover {
    color: var(--vl-teal-dark);
}

.mg-related-band {
    margin-top: 22px;
    padding: 22px 26px;
    border: 1px solid var(--vl-line);
    border-radius: 16px;
    background: var(--vl-surface);
    box-shadow: 0 10px 34px rgba(23, 32, 51, 0.055);
}

.mg-related-band-heading {
    margin-bottom: 14px;
}

.mg-related-band-heading .mg-sidebar-kicker {
    margin-bottom: 5px;
}

.mg-related-band-heading h2 {
    margin: 0;
    color: var(--vl-navy);
    font-family: Rajdhani, Inter, sans-serif;
    font-size: 26px;
    line-height: 1.1;
}

.mg-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 0;
}

.mg-related-grid li,
.mg-related-grid li + li {
    min-width: 0;
    padding: 0 12px;
    border: 1px solid var(--vl-line);
    border-radius: 10px;
}

.mg-related-grid a {
    height: 100%;
    padding: 10px 0;
}

.mg-footer {
    margin-top: 48px;
    padding: 30px 24px 38px;
    border-top: 1px solid var(--vl-line);
    color: var(--vl-supporting);
    text-align: center;
    font-size: 11px;
    line-height: 1.65;
}

.mg-footer strong {
    color: var(--vl-ink);
}

.mg-footer a,
.mg-footer button {
    color: var(--vl-teal-dark);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mg-footer button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

html.theme-dark .mg-header {
    background: #0d2741;
}

html.theme-dark .mg-logo {
    background: #ffffff;
}

html.theme-dark .mg-response-visual,
html.theme-dark .mg-hero-index {
    background: #163b60;
}

html.theme-dark .mg-chapter-tab[aria-selected="true"] {
    color: var(--vl-ink);
}

html.theme-dark .mg-chapter-tab[aria-selected="true"] span {
    color: var(--vl-teal-bright);
}

html.theme-dark .math-var {
    color: #b7e5ea;
}

html.theme-dark .mg-support-link img,
html.theme-dark .mg-figure-link img {
    background: #eef4f8;
}

html.theme-dark .seo-lightbox-stage {
    background: #081522;
}

html.theme-dark .support-diagram {
    --support-ink: #edf5fb;
    --support-muted: #b6c7d6;
    --support-navy: #8fd3df;
    border-color: var(--vl-line);
    background: var(--vl-surface-light);
    color: var(--vl-ink);
}

html.theme-dark .support-diagram-heading,
html.theme-dark .support-diagram-link {
    border-color: var(--vl-line);
    background: var(--vl-surface-soft);
}

html.theme-dark .support-diagram-heading h2,
html.theme-dark .support-diagram-controls h3,
html.theme-dark .support-diagram-stage-shell h3,
html.theme-dark .support-model-button strong,
html.theme-dark .support-model-data dd,
html.theme-dark .support-diagram-link strong {
    color: var(--vl-ink);
}

html.theme-dark .support-diagram-heading p,
html.theme-dark .support-diagram-controls > p,
html.theme-dark .support-model-button small,
html.theme-dark .support-model-data dt,
html.theme-dark .support-diagram-note,
html.theme-dark .support-diagram-link em,
html.theme-dark .support-diagram-stage-shell > header p {
    color: var(--vl-muted);
}

html.theme-dark .support-diagram-heading > strong,
html.theme-dark .support-model-button[aria-pressed="true"] {
    border-color: var(--vl-line-strong);
    background: #173b50;
    color: var(--vl-teal-bright);
}

html.theme-dark .support-diagram-controls,
html.theme-dark .support-model-button,
html.theme-dark .support-model-data div,
html.theme-dark .support-diagram-actions button,
html.theme-dark .support-diagram-stage-shell,
html.theme-dark .support-diagram-stage-shell > header,
html.theme-dark .support-diagram-status {
    border-color: var(--vl-line);
    background: var(--vl-surface);
    color: var(--vl-ink);
}

html.theme-dark .support-diagram-stage {
    background:
        linear-gradient(rgba(55, 196, 207, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 196, 207, 0.07) 1px, transparent 1px),
        #0d1d2d;
    background-size: 28px 28px;
}

@media (max-width: 1040px) {
    .mg-hero {
        grid-template-columns: 1fr;
    }

    .mg-response-visual {
        max-width: 680px;
    }

    .mg-hero-figure,
    .mg-hero-index {
        width: min(100%, 680px);
    }

    .mg-layout {
        grid-template-columns: 1fr;
    }

    .mg-sidebar {
        position: static;
        grid-template-columns: 1fr;
    }

    .mg-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .mg-shell {
        width: min(100% - 24px, var(--vl-shell));
    }

    .mg-header-inner {
        min-height: 66px;
        padding: 8px 0;
    }

    .mg-primary-nav {
        gap: 14px;
    }

    .mg-primary-nav a {
        font-size: 11px;
    }

    .mg-theme-toggle {
        padding: 8px;
    }

    .mg-theme-toggle [data-theme-label] {
        display: none;
    }

    .mg-primary-nav .mg-primary-cta {
        margin-left: auto;
        padding: 8px 12px;
    }

    .mg-main {
        padding-top: 14px;
    }

    .mg-hero {
        gap: 28px;
        min-height: 0;
        padding: 30px 22px 22px;
        border-radius: 18px;
    }

    .mg-hero h1 {
        font-size: clamp(38px, 12vw, 50px);
    }

    .mg-hero-intro {
        font-size: 14px;
    }

    .mg-hero-meta {
        display: grid;
        gap: 5px;
    }

    .mg-hero-meta span + span::before {
        display: none;
    }

    .mg-response-visual {
        border-radius: 16px;
    }

    .mg-concept-stage {
        min-height: 218px;
        margin-right: 12px;
        margin-left: 12px;
    }

    .mg-national-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px 4px 8px;
    }

    .mg-flow-node {
        min-height: 96px;
        padding: 12px;
    }

    .mg-flow-arrow {
        display: none;
    }

    .mg-dgu-stage {
        grid-template-columns: 52px 25px minmax(90px, 1fr) 25px 52px;
        gap: 4px;
        padding-right: 3px;
        padding-left: 3px;
    }

    .mg-dgu-pane {
        width: 15px;
        height: 144px;
    }

    .mg-dgu-action span,
    .mg-dgu-response span {
        font-size: 20px;
    }

    .mg-dgu-cavity strong {
        font-size: 10px;
    }

    .mg-dgu-cavity span {
        font-size: 7px;
        text-align: center;
    }

    .mg-limit-state-stage {
        grid-template-columns: 86px 35px minmax(0, 1fr);
        gap: 9px 7px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .mg-limit-pane {
        width: 49px;
        height: 126px;
    }

    .mg-limit-loads {
        left: -31px;
    }

    .mg-limit-loads i {
        width: 27px;
    }

    .mg-limit-card {
        display: block;
        padding: 10px 11px;
    }

    .mg-limit-card small,
    .mg-limit-card strong,
    .mg-limit-card span,
    .mg-limit-card b {
        display: block;
    }

    .mg-limit-card span {
        margin-top: 2px;
    }

    .mg-limit-card b {
        margin-top: 5px;
        padding-left: 0;
        font-size: 14px;
    }

    .mg-mass-formula {
        top: 10px;
        left: 7px;
    }

    .mg-example-stage {
        min-height: 218px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .mg-snow-stage {
        grid-template-columns: 72px minmax(170px, 1fr) 62px;
        gap: 3px;
    }

    .mg-snow-action,
    .mg-self-weight,
    .mg-wind-case,
    .mg-laminated-output {
        padding: 9px 7px;
    }

    .mg-snow-action strong,
    .mg-wind-case strong,
    .mg-laminated-output strong {
        font-size: 9px;
    }

    .mg-snow-action span,
    .mg-wind-case span,
    .mg-laminated-output span {
        font-size: 7px;
    }

    .mg-snow-scene {
        min-height: 182px;
    }

    .mg-horizontal-pane {
        width: 78%;
    }

    .mg-horizontal-supports {
        width: 84%;
    }

    .mg-self-weight {
        min-height: 82px;
    }

    .mg-wind-stage {
        grid-template-columns: 64px 38px minmax(86px, 1fr) 64px;
        gap: 4px;
    }

    .mg-wind-case {
        min-height: 92px;
    }

    .mg-wind-pane {
        width: 66px;
        height: 130px;
    }

    .mg-wind-frame > span {
        width: 120px;
        font-size: 7px;
    }

    .mg-wind-frame > small {
        width: 150px;
        font-size: 6px;
    }

    .mg-laminated-example-stage {
        grid-template-columns: 38px minmax(90px, 1fr) 36px minmax(88px, 1fr);
        gap: 5px;
    }

    .mg-laminated-action i {
        width: 34px;
    }

    .mg-laminated-layers {
        width: 90px;
        height: 130px;
    }

    .mg-laminated-layers > i {
        width: 60px;
        height: 122px;
    }

    .mg-laminated-transfer i {
        width: 31px;
    }

    .mg-laminated-transfer span {
        font-size: 6px;
    }

    .mg-laminated-output {
        min-height: 120px;
    }

    .mg-scale {
        transform: scale(0.88);
    }

    .mg-hero-index,
    .mg-hero-figure {
        border-radius: 16px;
    }

    .mg-hero-index {
        padding: 18px;
    }

    .mg-hero-index ol {
        grid-template-columns: 1fr;
    }

    .mg-hero-figure img {
        height: 230px;
    }

    .mg-response-svg {
        min-height: 235px;
    }

    .mg-laminate-svg {
        height: 235px;
    }

    .mg-combination-svg {
        height: 230px;
    }

    .mg-route-svg,
    .mg-balustrade-svg {
        height: 240px;
    }

    .mg-deflection-svg {
        height: 225px;
    }

    .mg-laminate-section-label,
    .mg-laminate-label {
        font-size: 8px;
    }

    .mg-laminate-legend {
        flex-wrap: wrap;
        row-gap: 7px;
    }

    .mg-graph-legend .mg-graph-note {
        display: none;
    }

    .mg-graph-note-mobile {
        margin-right: 16px;
        margin-left: 16px;
    }

    .mg-chapter-nav {
        top: 6px;
        margin: 12px 0 18px;
    }

    .mg-chapter-tab {
        min-height: 44px;
        padding: 0 16px;
        font-size: 12px;
    }

    .mg-article {
        padding: 32px 22px;
        border-radius: 14px;
    }

    .mg-panel {
        min-height: 0;
    }

    .mg-topic {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 22px 0;
    }

    .mg-topic p {
        font-size: 14px;
    }

    .mg-scope-strip,
    .mg-worked-inputs,
    .mg-worked-results,
    .mg-result-data,
    .mg-sidebar {
        grid-template-columns: 1fr;
    }

    .mg-scope-strip div + div {
        border-top: 1px solid var(--vl-line-teal);
        border-left: 0;
    }

    .mg-support-link {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 12px;
    }

    .mg-support-link img {
        width: 84px;
        height: 68px;
    }

    .mg-support-link > b {
        display: none;
    }

    .mg-swipe-hint {
        display: block;
        margin: -8px 0 10px;
        color: var(--vl-supporting);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .mg-figure-grid,
    .mg-figure-grid[data-example-count="1"] {
        display: flex;
        width: 100%;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .mg-figure-card {
        flex: 0 0 min(84vw, 430px);
        scroll-snap-align: start;
    }

    .mg-figure-link img {
        height: 260px;
    }

    .seo-lightbox-details {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .mg-related-band {
        padding: 20px 18px;
    }

    .mg-related-band-heading {
        display: block;
    }

    .mg-related-band-heading .mg-sidebar-kicker {
        margin-bottom: 5px;
    }

    .mg-related-grid {
        display: flex;
        width: 100%;
        min-width: 0;
        gap: 10px;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .mg-related-grid li,
    .mg-related-grid li + li {
        flex: 0 0 min(72vw, 250px);
        scroll-snap-align: start;
        border: 1px solid var(--vl-line);
        border-radius: 10px;
        padding: 0 13px;
    }
}

@media (max-width: 420px) {
    .mg-logo img {
        width: 170px;
        height: 42px;
    }

    .mg-primary-nav a:not(.mg-primary-cta) {
        display: none;
    }

    .mg-primary-nav .mg-primary-cta {
        margin-left: auto;
    }

    .mg-graph-header {
        padding: 17px 16px 0;
    }

    .mg-graph-legend {
        gap: 12px;
        padding: 0 16px 17px;
    }

    .mg-mass-stage {
        min-height: 216px;
    }

    .mg-scale {
        width: 330px;
        margin-left: 50%;
        transform: translateX(-50%) scale(0.82);
        transform-origin: center top;
    }

    .mg-article {
        padding: 28px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .mg-tab-glow,
    .mg-chapter-tab,
    .mg-graph-point,
    .mg-sidebar-button,
    .mg-faq-item summary::after {
        transition: none;
    }

    .mg-response-visual.is-ready .mg-graph-line {
        animation: none;
        stroke-dashoffset: 0;
    }

    .mg-laminate-line {
        animation: none;
        stroke-dashoffset: 0;
    }

    .mg-laminate-shear-arrow {
        animation: none;
    }

    .mg-chalk-note,
    .mg-chalk-underline,
    .mg-route-connectors path,
    .mg-deflection-profile,
    .mg-flow-node,
    .mg-flow-arrow,
    .mg-dgu-action span,
    .mg-dgu-response span,
    .mg-annex-c-loads line,
    .mg-annex-c-output,
    .mg-annex-c-pressure,
    .mg-annex-c-pane,
    .mg-dgu-pressure-pulse,
    .mg-dgu-pane,
    .mg-limit-loads i,
    .mg-limit-card,
    .mg-scale-beam,
    .mg-scale-pan,
    .mg-snow-arrows i,
    .mg-snow-response,
    .mg-wind-case,
    .mg-wind-vectors__pressure,
    .mg-wind-vectors__suction,
    .mg-wind-pane i,
    .mg-laminated-action i,
    .mg-laminated-interlayer span,
    .mg-laminated-output {
        animation: none;
        opacity: 1;
        stroke-dashoffset: 0;
        transform: none;
    }

    .mg-scale-beam {
        transform: translateX(-50%) rotate(0.4deg);
    }

    .mg-snow-response {
        transform: translateX(-50%);
    }

    .mg-wind-case--suction,
    .mg-wind-vectors__suction {
        opacity: 0.62;
    }

    .mg-wind-pane i {
        transform: translateX(-50%);
    }
}
