/* =====================================================================
   About Us page — dedicated stylesheet
   Base + nav + footer rules mirror the guest-mode landing (partials.head)
   so the reused partials.nav / partials.footer render identically.
   The About-page content styles follow in their own section below.
   ===================================================================== */

/* ---------- Guest-mode base (reset, tokens, typography, buttons) ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #2563EB;
    --blue-d: #1D4ED8;
    --blue-l: #EFF4FF;
    --blue-m: #C7D8FF;
    --green: #10B981;
    --green-d: #059669;
    --green-l: #E7F8F1;
    --green-m: #A7EBD0;
    --emer: #34D399;
    --amber: #D97706;
    --amber-l: #FEF6E7;
    --amber-m: #F3D9A6;
    --violet: #7C3AED;
    --violet-l: #F3ECFF;
    --teal: #0E8F86;
    --teal-l: #E4F5F2;
    --ink: #0B1220;
    --ink-2: #283242;
    --muted: #5B6675;
    --faint: #93A0B2;
    --bg: #FFFFFF;
    --soft: #F4F7FB;
    --soft-2: #EDF2F8;
    --line: #E3E9F1;
    --card: #FFFFFF;
    --d1: #0A1A33;
    --d2: #0C2A47;
    --d3: #0B3A33;
    --red: #DC2626;
    --sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --disp: 'Space Grotesk', var(--sans);
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --sh-1: 0 1px 2px rgba(11, 18, 32, .05);
    --sh-2: 0 10px 30px -12px rgba(11, 18, 32, .18), 0 2px 6px -3px rgba(11, 18, 32, .08);
    --sh-3: 0 34px 70px -24px rgba(11, 18, 32, .34), 0 10px 26px -12px rgba(11, 18, 32, .14);
    --maxw: 1120px;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--green-l);
    color: var(--green-d);
}

*:focus-visible {
    outline: 2.5px solid var(--blue);
    outline-offset: 3px;
    border-radius: 8px;
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--disp);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--green-d);
    background: var(--green-l);
    border: 1px solid var(--green-m);
    padding: 7px 14px;
    border-radius: 999px;
}

.eyebrow.blue {
    color: var(--blue-d);
    background: var(--blue-l);
    border-color: var(--blue-m);
}

.eyebrow.amber {
    color: var(--amber);
    background: var(--amber-l);
    border-color: var(--amber-m);
}

.eyebrow.dark {
    color: var(--emer);
    background: rgba(52, 211, 153, .12);
    border-color: rgba(52, 211, 153, .3);
}

/* BUTTONS — pill */
.btn {
    font-family: var(--sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s, background .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn.primary {
    background: linear-gradient(180deg, #13C98C, #0E9E6E);
    color: #06231a;
    box-shadow: 0 14px 30px -12px rgba(16, 185, 129, .8);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px -12px rgba(16, 185, 129, .85);
}

.btn.dark {
    background: var(--ink);
    color: #fff;
}

.btn.dark:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-2);
}

.btn.ghost {
    background: var(--card);
    color: var(--ink);
    border-color: var(--line);
    box-shadow: var(--sh-1);
}

.btn.ghost:hover {
    transform: translateY(-2px);
    border-color: var(--blue-m);
    box-shadow: var(--sh-2);
}

.btn.white {
    background: #fff;
    color: var(--d1);
}

.btn.white:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-3);
}

.btn.outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .32);
}

.btn.outline:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

.btn.primary::after,
.btn.white::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .65s;
}

.btn.primary:hover::after,
.btn.white:hover::after {
    transform: translateX(120%);
}

.btn:active {
    transform: translateY(0);
}

/* ---------- Guest-mode NAV ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: .25s;
}

.nav.scrolled {
    border-color: var(--line);
    box-shadow: 0 6px 22px -16px rgba(11, 18, 32, .5);
    background: rgba(255, 255, 255, .93);
}

.nav-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -.03em;
}

.brand .logo {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
}

.brand i {
    font-style: normal;
    color: var(--green-d);
}

.brand .mk {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.brand .mk svg {
    width: 19px;
    height: 19px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    padding: 9px 14px;
    border-radius: 10px;
    transition: .15s;
}

.nav-links a:hover {
    color: var(--ink);
    background: var(--soft);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta .login {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    padding: 9px 8px;
}

.nav-cta .login:hover {
    color: var(--green-d);
}

.nav-cta .btn {
    padding: 11px 22px;
}

.profile-menu {
    position: relative;
}

.profile-trigger {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--sh-1);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.profile-trigger:hover,
.profile-menu.open .profile-trigger {
    border-color: var(--green-m);
    box-shadow: var(--sh-2);
    transform: translateY(-1px);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #13C98C, #2563EB);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 190px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--sh-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}

.profile-menu.open .profile-dropdown,
.profile-menu:focus-within .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    padding: 8px 10px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown a,
.profile-dropdown button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    display: flex;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px;
    text-align: left;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: var(--soft);
}

.profile-dropdown form {
    margin: 0;
}

.burger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    cursor: pointer;
}

.burger span {
    width: 23px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 3px;
}

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

    .nav-cta .login {
        display: none;
    }

    .burger {
        display: flex;
    }
}

.drawer {
    position: fixed;
    inset: 66px 0 0;
    background: var(--bg);
    z-index: 79;
    transform: translateX(100%);
    transition: transform .3s;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
}

.drawer.open {
    transform: none;
}

.drawer a {
    font-size: 17px;
    font-weight: 600;
    color: var(--ink);
    padding: 15px 12px;
    border-radius: 11px;
}

.drawer a:hover {
    background: var(--soft);
}

.drawer .btn {
    margin-top: 14px;
}

.drawer-logout-form {
    margin: 0;
}

.drawer-logout {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-radius: 11px;
}

.drawer-logout:hover {
    background: var(--soft);
}

.skip {
    position: absolute;
    left: 50%;
    top: -64px;
    transform: translateX(-50%);
    background: var(--green-d);
    color: #fff;
    padding: 11px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    font-size: 14px;
    z-index: 300;
    transition: top .2s;
}

.skip:focus {
    top: 0;
}

main:focus {
    outline: none;
}

/* ---------- Guest-mode FINAL CTA + FOOTER ---------- */
.final {
    padding: 0;
}

.final-card {
    background: radial-gradient(700px 360px at 80% 0%, rgba(52, 211, 153, .22), transparent 60%), linear-gradient(135deg, var(--d1), var(--d2) 55%, var(--d3));
    color: #fff;
    padding: clamp(56px, 8vw, 104px) 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-card h2 {
    color: #fff;
    font-size: clamp(32px, 4.8vw, 54px);
}

.final-card h2 .u {
    color: var(--emer);
}

.final-card p {
    color: rgba(255, 255, 255, .8);
    font-size: 18px;
    max-width: 52ch;
    margin: 18px auto 0;
}

.final-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 34px;
    flex-wrap: wrap;
}

.final-note {
    color: var(--emer);
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 22px;
}

.footer {
    background: #080C13;
    color: #8A94A4;
    padding: 66px 0 34px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 40px;
}

.foot-brand .brand {
    color: #fff;
    margin-bottom: 16px;
}

.foot-brand p {
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 34ch;
}

.foot-col h5 {
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 16px;
}

.foot-col a {
    display: block;
    font-size: 14.5px;
    color: #8A94A4;
    margin-bottom: 11px;
}

.foot-col a:hover {
    color: #fff;
}

.foot-bot {
    border-top: 1px solid #1B212B;
    margin-top: 50px;
    padding-top: 26px;
    text-align: center;
    font-size: 13.5px;
    color: #5B6675;
}

@media(max-width:900px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:520px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }
}

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--sh-2);
    color: var(--ink);
    font-size: 20px;
    display: grid;
    place-items: center;
    z-index: 85;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .25s;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    border-color: var(--green-m);
    color: var(--green-d);
    transform: translateY(-3px);
}

.mcta {
    display: none;
}

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

    .mcta {
        display: flex;
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 90;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(180deg, #13C98C, #0E9E6E);
        color: #06231a;
        font-weight: 800;
        font-size: 16px;
        padding: 15px;
        border-radius: 999px;
        box-shadow: 0 14px 30px -10px rgba(16, 185, 129, .85);
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    }

    body {
        padding-bottom: 82px;
    }
}

@media(max-width:640px) {
    .wrap {
        padding: 0 18px;
    }

    .nav-in {
        padding: 0 18px;
    }
}

/* =====================================================================
   Blog — shared tokens + banner/card/tag system (used by listing & detail)
   ===================================================================== */
:root {
    --read: 'Source Serif 4', Georgia, serif;
    --measure: 720px;
}

/* banner */
.banner {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    overflow: hidden;
}

.banner .b-ico {
    position: absolute;
    right: -14px;
    top: -14px;
    width: 140px;
    height: 140px;
    opacity: .16;
    color: #fff;
}

.banner .b-mono {
    position: absolute;
    left: 20px;
    top: 18px;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 14px;
    color: rgba(255, 255, 255, .92);
}

.banner .b-cat {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.g-blue { background: linear-gradient(135deg, #2563EB, #1D4ED8 70%); }
.g-green { background: linear-gradient(135deg, #13C98C, #059669 72%); }
.g-violet { background: linear-gradient(135deg, #8B5CF6, #6D28D9 72%); }
.g-amber { background: linear-gradient(135deg, #F59E0B, #B45309 72%); }
.g-teal { background: linear-gradient(135deg, #22C1B6, #0E8F86 72%); }
.g-ink { background: linear-gradient(135deg, #1E293B, #0B1220 72%); }

.tag {
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 5px 11px;
    border-radius: 999px;
}

.tag.blue { color: var(--blue-d); background: var(--blue-l); }
.tag.green { color: var(--green-d); background: var(--green-l); }
.tag.violet { color: var(--violet); background: var(--violet-l); }
.tag.amber { color: var(--amber); background: var(--amber-l); }
.tag.teal { color: #0E8F86; background: var(--teal-l); }
.tag.ink { color: var(--ink); background: var(--soft-2); }

.avatar {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--green-d));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-family: var(--disp);
}

/* card (used in "related" + fallbacks) */
.acard {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-1);
    transition: transform .2s, box-shadow .2s;
}

.acard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.acard .banner { height: 168px; align-items: flex-start; }

.acard-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.acard-body h3 { font-size: 19px; line-height: 1.24; margin-bottom: 9px; }
.acard-body p { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; flex: 1; }

.ameta {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--faint);
    font-weight: 600;
    margin-top: auto;
}

.ameta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.ameta .avatar { width: 26px; height: 26px; font-size: 11px; }

/* =====================================================================
   Blog — LISTING page
   ===================================================================== */
.hero {
    background: linear-gradient(180deg, var(--soft), #fff);
    border-bottom: 1px solid var(--line);
    padding: 54px 0 34px;
}

.hero-in { text-align: center; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); margin: 14px 0 12px; }
.hero p { font-size: 17.5px; color: var(--muted); max-width: 56ch; margin: 0 auto 24px; }

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 8px 8px 8px 20px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--sh-2);
}

.search svg { width: 20px; height: 20px; color: var(--faint); flex-shrink: 0; }

.search input {
    border: none;
    outline: none;
    flex: 1;
    font-family: var(--sans);
    font-size: 16px;
    color: var(--ink);
    background: transparent;
    min-width: 0;
}

.catbar {
    position: sticky;
    top: 66px;
    z-index: 60;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.catbar-in {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 15px 28px;
    max-width: 960px;
    margin: 0 auto;
    scrollbar-width: none;
}

.catbar-in::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2);
    background: var(--soft);
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 9px 17px;
    cursor: pointer;
    transition: .15s;
    white-space: nowrap;
    font-family: var(--sans);
}

.chip:hover { border-color: var(--blue-m); color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.list { max-width: 940px; margin: 0 auto; padding: 44px 28px 62px; }

.col-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.col-head h2 { font-size: 24px; }
.col-head span { font-size: 13.5px; color: var(--faint); font-weight: 600; }

.prow {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 28px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--sh-1);
    margin-bottom: 20px;
    transition: transform .18s, box-shadow .18s;
}

.prow:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.prow:hover h3 { color: var(--green-d); }
.pthumb { height: 196px; border-radius: 14px; overflow: hidden; }
.pthumb .banner { height: 196px; align-items: flex-start; }

.pov { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.pov .tag { align-self: flex-start; margin-bottom: 12px; }
.pov h3 { font-size: 22px; line-height: 1.2; margin: 0 0 10px; }
.pov p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0 0 15px; }
.pov .ameta { margin-top: 0; }

.readlink {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green-d);
    font-weight: 700;
    font-size: 14px;
}

.prow.big { grid-template-columns: 1fr 1fr; padding: 22px; }
.prow.big .pthumb, .prow.big .pthumb .banner { height: 280px; }
.prow.big .pov h3 { font-size: clamp(24px, 3vw, 32px); }
.prow.big .pov p { font-size: 16.5px; }

.empty { text-align: center; padding: 56px 0; color: var(--muted); }
.empty a { color: var(--green-d); font-weight: 700; }

.news {
    max-width: 940px;
    margin: 0 auto 40px;
    background: radial-gradient(120% 140% at 100% 0, #0C2A47, #0A1A33 60%);
    border-radius: var(--r-xl);
    padding: 44px;
    text-align: center;
    color: #cfe0f4;
}

.news h2 { color: #fff; font-size: clamp(23px, 3vw, 32px); margin-bottom: 10px; }
.news p { color: #9db4d0; max-width: 52ch; margin: 0 auto 22px; }

.news-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.news-form input {
    flex: 1;
    min-width: 220px;
    border: 1.5px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border-radius: 999px;
    padding: 13px 18px;
    font-family: var(--sans);
    font-size: 15px;
    outline: none;
}

.news-form input::placeholder { color: #7f93b0; }
.news .note { font-size: 12.5px; color: #6f83a0; margin-top: 12px; }

/* =====================================================================
   Blog — ARTICLE (detail) page
   ===================================================================== */
.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #13C98C, #0E9E6E);
    z-index: 90;
    transition: width .1s;
}

.crumb { padding: 26px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.crumb a { color: var(--green-d); }
.crumb .sep { color: var(--faint); margin: 0 8px; }

.post-head { max-width: var(--measure); margin: 0 auto; text-align: center; padding: 22px 0 6px; }
.post-head h1 { font-size: clamp(30px, 4.6vw, 48px); margin: 16px 0 14px; line-height: 1.06; }
.post-head .dek { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 auto; }

.byline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0 6px;
}

.byrow { display: flex; align-items: center; gap: 11px; }
.byrow .avatar { width: 44px; height: 44px; font-size: 14px; }
.byrow .n { font-weight: 700; color: var(--ink); font-size: 15px; line-height: 1.2; text-align: left; }
.byrow .m { font-size: 13px; color: var(--faint); font-weight: 600; text-align: left; }

.share { display: flex; gap: 8px; }

.share button {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink-2);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: .15s;
}

.share button:hover { border-color: var(--blue-m); color: var(--blue-d); transform: translateY(-2px); }
.share svg { width: 17px; height: 17px; }

.art-hero { max-width: 980px; margin: 26px auto 0; height: 360px; border-radius: 22px; box-shadow: var(--sh-3); }
.art-hero .b-mono { font-size: 16px; }

.post-layout {
    max-width: 1040px;
    margin: 0 auto;
    padding: 38px 28px 10px;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 54px;
    align-items: start;
}

.toc { position: sticky; top: 96px; }

.toc h5 {
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--faint);
    margin: 0 0 12px;
}

.toc a {
    display: block;
    font-size: 13.5px;
    color: var(--muted);
    font-weight: 600;
    padding: 6px 0 6px 12px;
    border-left: 2px solid var(--line);
    transition: .15s;
}

.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--green-d); border-color: var(--green); }

.prose {
    max-width: var(--measure);
    font-family: var(--read);
    font-size: 19.5px;
    line-height: 1.76;
    color: #2b333f;
}

.prose>p:first-of-type { font-size: 21px; }

.prose>p:first-of-type::first-letter {
    float: left;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 60px;
    line-height: .8;
    padding: 6px 12px 0 0;
    color: var(--green-d);
}

.prose h2 {
    font-family: var(--disp);
    font-size: 27px;
    font-weight: 600;
    color: var(--ink);
    margin: 40px 0 12px;
    letter-spacing: -.02em;
    scroll-margin-top: 96px;
}

.prose h3 { font-family: var(--disp); font-size: 20px; font-weight: 600; color: var(--ink); margin: 28px 0 8px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 0 0 10px; }
.prose strong { color: var(--ink); }
.prose em { font-style: italic; }

.prose blockquote {
    margin: 30px 0;
    padding: 16px 24px;
    background: var(--green-l);
    border-left: 4px solid var(--green);
    border-radius: 0 12px 12px 0;
    color: var(--ink-2);
    font-size: 18px;
}

.prose .tip {
    font-family: var(--sans);
    background: var(--blue-l);
    border: 1px solid var(--blue-m);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 26px 0;
    font-size: 15.5px;
}

.prose .tip b { color: var(--blue-d); }

.tags { max-width: var(--measure); margin: 6px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }

.chiptag {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-2);
    background: var(--soft-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
}

.author-box {
    max-width: var(--measure);
    margin: 34px auto 0;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
}

.author-box .avatar { width: 58px; height: 58px; font-size: 18px; flex-shrink: 0; }
.author-box h4 { font-family: var(--disp); font-size: 18px; margin: 0 0 4px; }
.author-box .role { font-family: var(--sans); font-size: 13px; color: var(--green-d); font-weight: 700; margin-bottom: 8px; }
.author-box p { font-family: var(--sans); font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.cta {
    max-width: var(--measure);
    margin: 34px auto 0;
    text-align: center;
    background: radial-gradient(120% 150% at 100% 0, #0C2A47, #0A1A33 62%);
    color: #cfe0f4;
    border-radius: 22px;
    padding: 40px 28px;
}

.cta h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.cta p { color: #9db4d0; margin: 0 auto 18px; max-width: 44ch; }

.related { max-width: 1040px; margin: 56px auto 0; padding: 0 28px; }
.related h3 { font-size: 24px; text-align: center; margin-bottom: 24px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.notfound { max-width: 600px; margin: 80px auto; text-align: center; }

/* =====================================================================
   Blog — responsive
   ===================================================================== */
@media(max-width:940px) {
    .post-layout { grid-template-columns: 1fr; gap: 0; }
    .toc { display: none; }
    .art-hero { height: 240px; }
    .rel-grid { grid-template-columns: 1fr; }
}

@media(max-width:720px) {
    .prow, .prow.big { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
    .pthumb, .pthumb .banner, .prow.big .pthumb, .prow.big .pthumb .banner { height: 180px; }
}

@media(max-width:600px) {
    .art-hero { height: 190px; border-radius: 16px; }
    .author-box { flex-direction: column; }
}

/* active nav item (blog pages) */
.nav-links a.active { color: var(--green-d); background: var(--green-l); }
