/* ==============================================================
   GATechX — postStyle.css
   Standalone Post Page Stylesheet
   ============================================================== */


/* ==============================================================
   1. TOKENS
   ============================================================== */

:root {
    --void: #000000;
    --deep: #04070c;
    --panel: #080d15;
    --panel-light: #0c1420;

    --blue: #2e9bff;
    --blue-hot: #7fd0ff;
    --blue-deep: #0b4fa8;

    --white: #ffffff;
    --mist: #c4d2e2;
    --dim: #7a8ca3;

    --edge: rgba(46, 155, 255, 0.22);
    --edge-light: rgba(255, 255, 255, 0.07);

    --f-display: "Orbitron", system-ui, sans-serif;
    --f-body: "Rajdhani", system-ui, sans-serif;
    --f-mono: "Space Mono", ui-monospace, monospace;
    --f-arabic: "Tajawal", system-ui, sans-serif;

    --s-small: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
    --s-body: clamp(1.05rem, 1rem + 0.2vw, 1.18rem);
    --s-lead: clamp(1.25rem, 1.1rem + 0.5vw, 1.55rem);
    --s-heading: clamp(1.7rem, 1.4rem + 1.2vw, 2.6rem);
    --s-title: clamp(2.5rem, 1.8rem + 3.7vw, 5.8rem);

    --shell: 1200px;
    --article-width: 800px;

    --pad: clamp(1.1rem, 4vw, 2.5rem);
    --header-h: 76px;
}


/* ==============================================================
   2. RESET + BASE
   ============================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1.5rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--mist);
    background: var(--void);

    font-family: var(--f-body);
    font-size: var(--s-body);
    line-height: 1.65;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-locked {
    overflow: hidden;
}

html[dir="rtl"] body {
    font-family: var(--f-arabic);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;

    color: var(--white);

    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6 {
    font-family: var(--f-arabic);
    letter-spacing: 0;
}

p {
    text-wrap: pretty;
}

.shell {
    width: min(
        100% - (var(--pad) * 2),
        var(--shell)
    );

    margin-inline: auto;
}

.sr {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip: rect(0 0 0 0);
    clip-path: inset(50%);

    white-space: nowrap;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--blue-hot);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: -200px;
    left: 1rem;
    z-index: 500;

    padding: 0.7rem 1.2rem;

    color: #001428;
    background: var(--blue);

    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}


/* ==============================================================
   3. SPACE BACKGROUND
   ============================================================== */

.space {
    position: fixed;
    inset: 0;
    z-index: -3;

    width: 100%;
    height: 100%;

    pointer-events: none;
}

.nebula {
    position: fixed;
    inset: 0;
    z-index: -2;

    pointer-events: none;

    background:
        radial-gradient(
            60vw 50vh at 12% 18%,
            rgba(11, 79, 168, 0.2),
            transparent 65%
        ),
        radial-gradient(
            50vw 45vh at 88% 62%,
            rgba(46, 155, 255, 0.13),
            transparent 65%
        ),
        radial-gradient(
            70vw 60vh at 50% 110%,
            rgba(11, 79, 168, 0.16),
            transparent 70%
        );
}

body::before {
    content: "";

    position: fixed;
    inset: 0;
    z-index: -1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.08),
            rgba(0, 0, 0, 0.28)
        );
}


/* ==============================================================
   4. HEADER
   ============================================================== */

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;

    background: rgba(4, 7, 12, 0.55);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.header.is-stuck {
    background: rgba(4, 7, 12, 0.9);

    box-shadow:
        0 1px 0 rgba(46, 155, 255, 0.25),
        0 18px 40px -30px #000;
}

.header__inner {
    min-height: var(--header-h);

    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header__beam {
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(46, 155, 255, 0.75),
            transparent
        );
}

.brand {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.brand img {
    width: clamp(140px, 18vw, 200px);
    height: auto;
}

.nav {
    display: none;
    gap: clamp(0.9rem, 1.7vw, 1.6rem);

    margin-left: auto;
}

html[dir="rtl"] .nav {
    margin-right: auto;
    margin-left: 0;
}

.nav a {
    position: relative;

    padding: 0.35rem 0;

    color: var(--mist);

    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;

    text-decoration: none;
    white-space: nowrap;
}

.nav a::after {
    content: "";

    position: absolute;
    right: 100%;
    bottom: 0;
    left: 0;

    height: 1px;

    background: var(--blue);

    box-shadow: 0 0 8px var(--blue);

    transition: right 0.3s ease;
}

html[dir="rtl"] .nav a::after {
    right: 0;
    left: 100%;

    transition: left 0.3s ease;
}

.nav a:hover,
.nav a.is-active {
    color: var(--white);
}

.nav a:hover::after,
.nav a.is-active::after {
    right: 0;
}

html[dir="rtl"] .nav a:hover::after,
html[dir="rtl"] .nav a.is-active::after {
    left: 0;
}

.header__end {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 0.8rem;
}

html[dir="rtl"] .header__end {
    margin-right: auto;
    margin-left: 0;
}

.lang {
    padding: 0.3rem 0.8rem;

    border: 1px solid var(--edge);
    border-radius: 3px;

    color: var(--mist);

    font-size: 0.95rem;
    text-decoration: none;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.lang:hover {
    color: var(--white);
    border-color: var(--blue);

    box-shadow:
        0 0 16px -4px var(--blue);
}

.burger {
    width: 42px;
    padding: 9px 7px;

    display: grid;
    gap: 5px;

    border: 1px solid var(--edge);
    border-radius: 3px;

    background: transparent;

    cursor: pointer;
}

.burger span:not(.sr) {
    display: block;

    height: 2px;

    background: var(--mist);
}

.nav.is-open {
    position: fixed;
    inset:
        var(--header-h)
        0
        auto
        0;

    max-height:
        calc(
            100vh -
            var(--header-h)
        );

    padding:
        0.5rem
        var(--pad)
        1.5rem;

    display: grid;

    overflow-y: auto;

    border-bottom:
        1px solid var(--edge);

    background:
        rgba(4, 7, 12, 0.97);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav.is-open a {
    padding: 0.95rem 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.07);

    font-size: 1.05rem;
}

@media (min-width: 1080px) {
    .nav {
        display: flex;
    }

    .header__end {
        margin-left: 0;
    }

    html[dir="rtl"] .header__end {
        margin-right: 0;
    }

    .burger {
        display: none;
    }
}


/* ==============================================================
   5. SHARED ELEMENTS
   ============================================================== */

.eyebrow {
    margin: 0 0 1rem;

    color: var(--blue);

    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.tag {
    display: inline-block;

    margin: 0 0 0.8rem;
    padding: 0.25rem 0.7rem;

    color: #001428;
    background: var(--blue);

    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.btn {
    display: inline-block;

    padding: 0.85rem 1.7rem;

    border: 1px solid transparent;

    font-family: var(--f-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

html[dir="rtl"] .btn {
    font-family: var(--f-arabic);
}

.btn--primary {
    color: var(--white);

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-deep)
        );

    box-shadow:
        0 0 28px -8px var(--blue);
}

.btn--primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 0 40px -6px var(--blue);
}

.btn--ghost {
    color: var(--white);

    border-color: var(--edge);

    background:
        rgba(46, 155, 255, 0.06);
}

.btn--ghost:hover {
    border-color: var(--blue);

    transform: translateY(-2px);

    box-shadow:
        0 0 30px -10px var(--blue);
}


/* ==============================================================
   6. PAGE STATE
   ============================================================== */

.article-state {
    width: min(
        100% - (var(--pad) * 2),
        var(--shell)
    );

    min-height: 82vh;
    margin-inline: auto;

    padding-block:
        calc(var(--header-h) + 4rem)
        6rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.article-loader {
    width: 52px;
    height: 52px;

    border:
        2px solid
        var(--edge);

    border-top-color:
        var(--blue);

    border-radius: 50%;

    box-shadow:
        0 0 30px -8px var(--blue);

    animation:
        article-spin
        0.8s
        linear
        infinite;
}

.article-state--loading p {
    margin-top: 1.3rem;

    color: var(--dim);

    font-family: var(--f-mono);
    font-size: var(--s-small);
    letter-spacing: 0.08em;
}

@keyframes article-spin {
    to {
        transform: rotate(360deg);
    }
}

.article-error-code {
    display: block;

    color:
        rgba(46, 155, 255, 0.18);

    font-family: var(--f-display);
    font-size:
        clamp(
            7rem,
            20vw,
            13rem
        );

    font-weight: 900;
    line-height: 0.8;
}

.article-state--error h1 {
    margin:
        -1.5rem
        0
        1rem;

    font-size: var(--s-heading);
}

.article-state--error > p:not(.eyebrow) {
    max-width: 34rem;
    margin:
        0
        0
        2rem;

    color: var(--dim);
}


/* ==============================================================
   7. ARTICLE PAGE
   ============================================================== */

.article-page {
    position: relative;

    padding-top:
        var(--header-h);
}

.article-hero {
    position: relative;

    padding-block:
        clamp(4rem, 9vw, 7rem)
        clamp(3rem, 7vw, 5rem);

    overflow: hidden;
}

.article-hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        radial-gradient(
            55vw
            45vh
            at
            50%
            28%,
            rgba(46, 155, 255, 0.12),
            transparent 72%
        );
}

.article-hero::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(46, 155, 255, 0.22),
            transparent
        );
}

.article-hero__inner {
    max-width: 940px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.article-category {
    margin-bottom: 1.4rem;
}

.article-hero h1 {
    max-width: 17ch;

    color: var(--white);

    font-size: var(--s-title);
    font-weight: 900;
    line-height: 1.04;

    text-wrap: balance;

    text-shadow:
        0 0 70px
        rgba(46, 155, 255, 0.12);
}

.article-excerpt {
    max-width: 760px;

    margin:
        1.7rem
        auto
        0;

    color: var(--mist);

    font-size: var(--s-lead);
    line-height: 1.55;
}

.article-meta {
    margin-top: 2rem;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    color: var(--dim);

    font-family: var(--f-mono);
    font-size: var(--s-small);
    letter-spacing: 0.035em;
}

.article-meta strong {
    color: var(--mist);
}

.article-meta__separator {
    width: 4px;
    height: 4px;

    border-radius: 50%;

    background: var(--blue);

    box-shadow:
        0 0 8px
        var(--blue);
}


/* ==============================================================
   8. COVER IMAGE
   ============================================================== */

.article-cover {
    position: relative;

    margin-top:
        clamp(
            2.5rem,
            6vw,
            4.5rem
        );

    padding: 0;

    overflow: hidden;

    border: 1px solid var(--edge);

    background: var(--panel);

    box-shadow:
        0 32px 90px -45px var(--blue),
        0 28px 80px rgba(0, 0, 0, 0.7);
}

.article-cover::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 70%,
            rgba(0, 0, 0, 0.28)
        );
}

.article-cover::after {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 2;

    border:
        1px solid
        rgba(255, 255, 255, 0.04);

    pointer-events: none;
}

.article-cover img {
    width: 100%;
    max-height: 690px;

    object-fit: cover;
}


/* ==============================================================
   9. ARTICLE LAYOUT
   ============================================================== */

.article-section {
    position: relative;

    padding-block:
        clamp(3.5rem, 8vw, 6rem)
        clamp(5rem, 10vw, 8rem);
}

.article-layout {
    max-width: 1040px;

    display: grid;
    grid-template-columns:
        105px
        minmax(
            0,
            var(--article-width)
        );

    justify-content: center;

    gap:
        clamp(
            2rem,
            5vw,
            4rem
        );
}

.article-side__sticky {
    position: sticky;
    top:
        calc(
            var(--header-h) +
            2.4rem
        );
}

.article-side__label {
    margin:
        0
        0
        0.8rem;

    color: var(--dim);

    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.article-share {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.article-share a,
.article-share button {
    width: 42px;
    height: 42px;

    padding: 0;

    display: grid;
    place-items: center;

    border: 1px solid var(--edge);
    border-radius: 3px;

    color: var(--mist);

    background:
        rgba(8, 13, 21, 0.76);

    font-family: var(--f-mono);
    font-weight: 700;
    text-decoration: none;

    cursor: pointer;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.article-share a:hover,
.article-share button:hover {
    color: var(--white);

    border-color: var(--blue);

    background:
        rgba(46, 155, 255, 0.12);

    box-shadow:
        0 0 22px -8px var(--blue);

    transform:
        translateY(-2px);
}

.article-focus {
    margin-top: 1.7rem;
    padding-top: 1.2rem;

    border-top:
        1px solid var(--edge);
}

.article-focus span {
    display: block;

    color: var(--dim);

    font-family: var(--f-mono);
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.article-focus strong {
    display: block;

    margin-top: 0.5rem;

    color: var(--mist);

    font-size: 0.95rem;
    line-height: 1.4;
}

.article-main {
    min-width: 0;
}


/* ==============================================================
   10. ARTICLE CONTENT
   ============================================================== */

.article-content {
    color: var(--mist);

    font-size:
        clamp(
            1.08rem,
            1rem + 0.25vw,
            1.24rem
        );

    line-height: 1.85;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content p {
    margin:
        0
        0
        1.65rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    scroll-margin-top:
        calc(
            var(--header-h) +
            2rem
        );
}

.article-content h2 {
    margin:
        clamp(3.7rem, 8vw, 5.7rem)
        0
        1.4rem;

    padding-bottom: 0.9rem;

    border-bottom:
        1px solid var(--edge);

    font-size:
        clamp(
            1.9rem,
            1.5rem + 1.5vw,
            3rem
        );
}

.article-content h3 {
    margin:
        3.1rem
        0
        1rem;

    font-size:
        clamp(
            1.5rem,
            1.3rem + 0.8vw,
            2.1rem
        );
}

.article-content h4 {
    margin:
        2.5rem
        0
        0.8rem;

    font-size: 1.35rem;
}

.article-content strong,
.article-content b {
    color: var(--white);
}

.article-content em,
.article-content i {
    color: #dce7f4;
}

.article-content a {
    color: var(--blue-hot);

    text-decoration-color:
        rgba(127, 208, 255, 0.5);

    text-underline-offset: 0.2em;

    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

.article-content a:hover {
    color: var(--white);

    text-decoration-color:
        var(--white);
}

.article-content ul,
.article-content ol {
    margin:
        1.5rem
        0
        2rem;

    padding-inline-start:
        1.8rem;
}

.article-content li {
    margin-bottom: 0.6rem;

    padding-inline-start:
        0.25rem;
}

.article-content li::marker {
    color: var(--blue);
}

.article-content blockquote {
    position: relative;

    margin:
        2.7rem
        0;

    padding:
        1.5rem
        1.7rem;

    border-inline-start:
        3px solid
        var(--blue);

    color: var(--white);

    background:
        linear-gradient(
            90deg,
            rgba(46, 155, 255, 0.12),
            rgba(8, 13, 21, 0.55)
        );

    box-shadow:
        inset 0 0 40px
        rgba(46, 155, 255, 0.025);

    font-size: var(--s-lead);
}

html[dir="rtl"] .article-content blockquote {
    background:
        linear-gradient(
            -90deg,
            rgba(46, 155, 255, 0.12),
            rgba(8, 13, 21, 0.55)
        );
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content pre {
    width: 100%;

    margin:
        2.5rem
        0;

    padding: 1.4rem;

    overflow-x: auto;

    border:
        1px solid
        var(--edge);

    color: #dcecff;

    background:
        rgba(0, 0, 0, 0.72);

    font-family: var(--f-mono);
    font-size: 0.86rem;
    line-height: 1.7;

    tab-size: 4;
}

.article-content code {
    padding:
        0.15rem
        0.4rem;

    border:
        1px solid
        rgba(46, 155, 255, 0.16);

    color: var(--blue-hot);

    background:
        rgba(46, 155, 255, 0.07);

    font-family: var(--f-mono);
    font-size: 0.84em;
}

.article-content pre code {
    padding: 0;

    border: 0;

    color: inherit;
    background: transparent;
}

.article-content img {
    width: auto;
    max-width: 100%;
    height: auto;

    margin:
        2.7rem
        auto;

    border:
        1px solid
        var(--edge);

    box-shadow:
        0 26px 70px
        rgba(0, 0, 0, 0.55);
}

.article-content figure {
    margin:
        2.8rem
        0;
}

.article-content figure img {
    margin:
        0
        auto;
}

.article-content figcaption {
    margin-top: 0.8rem;

    color: var(--dim);

    font-family: var(--f-mono);
    font-size: 0.72rem;
    text-align: center;
}

.article-content table {
    width: 100%;

    margin:
        2.6rem
        0;

    border-collapse: collapse;

    background:
        rgba(8, 13, 21, 0.72);
}

.article-content th,
.article-content td {
    padding:
        0.9rem
        1rem;

    border:
        1px solid
        var(--edge);

    text-align: start;
    vertical-align: top;
}

.article-content th {
    color: var(--white);

    background:
        rgba(46, 155, 255, 0.11);

    font-family: var(--f-display);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
}

html[dir="rtl"] .article-content th {
    font-family: var(--f-arabic);
}

.article-content tr:nth-child(even) td {
    background:
        rgba(255, 255, 255, 0.015);
}

.article-content hr {
    margin:
        3.8rem
        0;

    border: 0;

    border-top:
        1px solid
        var(--edge);
}

.article-content iframe,
.article-content video {
    width: 100%;
    max-width: 100%;
    min-height: 420px;

    margin:
        2.7rem
        0;

    border:
        1px solid
        var(--edge);

    background: #000;
}

.article-content .callout {
    position: relative;

    margin:
        2.5rem
        0;

    padding: 1.5rem;

    border:
        1px solid
        var(--blue);

    background:
        linear-gradient(
            145deg,
            rgba(46, 155, 255, 0.12),
            rgba(8, 13, 21, 0.82)
        );

    box-shadow:
        0 18px 55px -40px
        var(--blue);
}


/* ==============================================================
   11. TAGS
   ============================================================== */

.article-tags {
    margin-top: 4rem;
    padding-top: 1.6rem;

    border-top:
        1px solid var(--edge);
}

.article-tags__title {
    margin:
        0
        0
        0.9rem;

    color: var(--dim);

    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.article-tags__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.article-tags__list a {
    padding:
        0.4rem
        0.75rem;

    border:
        1px solid
        var(--edge);

    color: var(--mist);

    background:
        rgba(46, 155, 255, 0.05);

    font-family: var(--f-mono);
    font-size: 0.72rem;
    text-decoration: none;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.article-tags__list a:hover {
    color: var(--white);

    border-color: var(--blue);

    background:
        rgba(46, 155, 255, 0.12);

    box-shadow:
        0 0 22px -10px
        var(--blue);
}


/* ==============================================================
   12. AUTHOR
   ============================================================== */

.article-author {
    margin-top: 3.6rem;

    padding:
        clamp(
            1.4rem,
            4vw,
            2rem
        );

    display: grid;
    grid-template-columns:
        auto
        1fr;

    align-items: center;
    gap: 1.4rem;

    border:
        1px solid
        var(--edge);

    background:
        linear-gradient(
            145deg,
            rgba(46, 155, 255, 0.09),
            rgba(8, 13, 21, 0.8)
        );

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.article-author:hover {
    border-color:
        rgba(46, 155, 255, 0.42);

    box-shadow:
        0 25px 70px -55px
        var(--blue);
}

.article-author__logo img {
    width: 74px;
    height: 74px;

    border:
        1px solid
        var(--edge);

    border-radius: 50%;

    object-fit: cover;

    box-shadow:
        0 0 35px -12px
        var(--blue);
}

.article-author .eyebrow {
    margin-bottom: 0.35rem;
}

.article-author h2 {
    margin-bottom: 0.5rem;

    font-size: 1.35rem;
}

.article-author p:last-child {
    margin: 0;

    color: var(--dim);

    font-size: 0.98rem;
}

.article-back {
    margin-top: 2.6rem;
}


/* ==============================================================
   13. FOOTER
   ============================================================== */

.footer {
    padding-top:
        clamp(
            2.5rem,
            6vw,
            4rem
        );

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);

    background:
        rgba(0, 0, 0, 0.5);
}

.footer__inner {
    display: grid;
    gap: 2rem;
}

.footer__logos {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__mark {
    width: 64px;
    height: auto;
}

.footer__wordmark {
    width: 170px;
    height: auto;
}

.footer__brand p {
    max-width: 32ch;

    margin:
        0.9rem
        0
        0;

    color: var(--dim);

    font-size: 0.95rem;
}

.footer__col {
    display: grid;
    align-content: start;
    gap: 0.55rem;
}

.footer__col h3 {
    margin-bottom: 0.35rem;

    color: var(--dim);

    font-family: var(--f-mono);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer__col a {
    color: var(--mist);

    font-size: 0.97rem;
    text-decoration: none;

    transition: color 0.25s ease;
}

.footer__col a:hover {
    color: var(--blue);
}

.footer__base {
    margin-top:
        clamp(
            2rem,
            5vw,
            3rem
        );

    padding-block: 1.25rem;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;

    gap:
        0.75rem
        2rem;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.07);

    color: var(--dim);

    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.footer__base p {
    margin: 0;
}

@media (min-width: 780px) {
    .footer__inner {
        grid-template-columns:
            2fr
            1fr
            1fr
            1fr;
    }
}


/* ==============================================================
   14. TOAST
   ============================================================== */

.article-toast {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 300;

    padding:
        0.7rem
        1rem;

    border:
        1px solid
        var(--blue);

    color: var(--white);

    background:
        rgba(4, 7, 12, 0.95);

    font-family: var(--f-mono);
    font-size: 0.74rem;

    box-shadow:
        0 0 30px -10px
        var(--blue);

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(15px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

html[dir="rtl"] .article-toast {
    right: auto;
    left: 1.4rem;
}

.article-toast.is-visible {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0);
}


/* ==============================================================
   15. RESPONSIVE
   ============================================================== */

@media (max-width: 1079px) {
    .article-layout {
        grid-template-columns:
            90px
            minmax(0, var(--article-width));
    }
}

@media (max-width: 900px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-side {
        order: 2;
    }

    .article-side__sticky {
        position: static;

        padding-top: 1.5rem;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;

        border-top:
            1px solid
            var(--edge);
    }

    .article-side__label {
        display: none;
    }

    .article-share {
        flex-direction: row;
    }

    .article-focus {
        margin: 0;

        padding:
            0
            0
            0
            1.3rem;

        border-top: 0;

        border-left:
            1px solid
            var(--edge);
    }

    html[dir="rtl"] .article-focus {
        padding:
            0
            1.3rem
            0
            0;

        border-right:
            1px solid
            var(--edge);

        border-left: 0;
    }
}

@media (max-width: 600px) {
    :root {
        --header-h: 68px;
    }

    .article-hero {
        padding-top: 3.2rem;
    }

    .article-hero h1 {
        max-width: 100%;
    }

    .article-meta {
        gap:
            0.55rem
            0.8rem;
    }

    .article-meta__separator {
        display: none;
    }

    .article-content {
        font-size: 1.06rem;
        line-height: 1.78;
    }

    .article-content h2 {
        margin-top: 3.5rem;
    }

    .article-content table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }

    .article-content iframe,
    .article-content video {
        min-height: 230px;
    }

    .article-author {
        grid-template-columns:
            55px
            1fr;

        align-items: start;
    }

    .article-author__logo img {
        width: 55px;
        height: 55px;
    }

    .footer__inner {
        gap: 2.5rem;
    }

    .footer__base {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==============================================================
   16. REDUCED MOTION
   ============================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.001ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.001ms !important;
    }
}