@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #00a6ff;
    --navy: #073a72;
    --ink: #102a43;
    --muted: #627d98;
    --sky: #eaf8ff;
    --paper: #fbfdff;
    --line: #cceeff;
    --lime: #b9f5e6
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f9fdff 0, #eef9ff 55%, #fff 100%);
    color: var(--ink);
    font-family: 'Noto Sans Thai', Tahoma, sans-serif;
    line-height: 1.82
}

a {
    color: inherit
}

.skip-link {
    position: fixed;
    left: 12px;
    top: -80px;
    z-index: 99;
    background: #fff;
    padding: 10px 16px;
    border-radius: 12px
}

.skip-link:focus {
    top: 12px
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 14px 24px
}

.header-inner {
    max-width: 1240px;
    margin: auto;
    min-height: 72px;
    padding: 10px 14px 10px 22px;
    display: flex;
    align-items: center;
    gap: 22px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(0, 166, 255, .18);
    border-radius: 24px;
    box-shadow: 0 14px 45px rgba(13, 90, 140, .1);
    backdrop-filter: blur(16px)
}

.brand img {
    display: block;
    max-width: 140px;
    height: auto
}

.site-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px
}

.site-nav a {
    padding: 10px 11px;
    border-radius: 13px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 700;
    white-space: nowrap
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--sky);
    color: #0078be
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    background: var(--navy);
    color: #fff;
    border-radius: 13px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 700
}

.hero {
    max-width: 1240px;
    min-height: 510px;
    margin: 30px auto 70px;
    padding: 70px 74px;
    display: grid;
    grid-template-columns: 1.35fr .8fr;
    align-items: center;
    gap: 55px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, #edf9ff 65%, #d5f2ff 100%);
    border: 1px solid var(--line);
    border-radius: 46px 46px 170px 46px;
    box-shadow: 0 35px 85px rgba(6, 94, 151, .14)
}

.hero:before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    left: -130px;
    bottom: -130px;
    border: 40px solid rgba(0, 166, 255, .1);
    border-radius: 50%
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #0078bd;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .18em
}

.eyebrow:before {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--blue)
}

h1 {
    margin: 0;
    max-width: 790px;
    font-size: clamp(2.15rem, 4.2vw, 4.65rem);
    line-height: 1.2;
    letter-spacing: -.04em;
    color: #063766
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px
}

.hero-tags span {
    padding: 7px 14px;
    border: 1px solid #b9e8ff;
    border-radius: 99px;
    background: #fff;
    color: #34779d;
    font-size: .82rem;
    font-weight: 700
}

.hero-art {
    aspect-ratio: 1;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50% 34% 54% 38%;
    background: linear-gradient(145deg, #062d5a, #009eea);
    transform: rotate(-5deg);
    box-shadow: 28px 30px 0 rgba(0, 166, 255, .12), inset 0 0 0 2px rgba(255, 255, 255, .16)
}

.hero-art:after {
    content: '';
    position: absolute;
    inset: 14%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .22), transparent 45%)
}

.hero-icon {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: clamp(5rem, 10vw, 9rem);
    line-height: 1;
    font-weight: 800;
    transform: rotate(5deg);
    text-shadow: 0 15px 32px rgba(0, 20, 60, .22)
}

.orbit {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, .28);
    border-radius: 50%
}

.orbit-a {
    width: 120%;
    height: 46%;
    transform: rotate(30deg)
}

.orbit-b {
    width: 80%;
    height: 115%;
    transform: rotate(-28deg)
}

.stat {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    background: #fff;
    color: #006fae;
    font-weight: 800;
    border-radius: 18px;
    box-shadow: 0 18px 32px rgba(0, 50, 90, .2)
}

.stat-a {
    width: 76px;
    height: 76px;
    left: -10px;
    top: 16%;
    font-size: 1.5rem
}

.stat-b {
    right: -16px;
    bottom: 15%;
    padding: 12px 18px;
    color: #063766
}

.reading-layout {
    max-width: 1180px;
    margin: 0 auto 90px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 38px;
    align-items: start
}

.article-card {
    min-width: 0;
    background: #fff;
    padding: 48px clamp(25px, 5vw, 70px);
    border-radius: 36px;
    border: 1px solid #d7effb;
    box-shadow: 0 25px 65px rgba(8, 78, 120, .08)
}

.article-card p {
    margin: 0 0 1.25em;
    color: #304f68;
    font-size: 1.02rem
}

.article-card h2 {
    margin: 2.7em 0 .8em;
    padding-left: 19px;
    border-left: 5px solid var(--blue);
    color: #073a72;
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    line-height: 1.35
}

.article-card h2:first-child {
    margin-top: 0
}

.article-card h3 {
    margin: 2em 0 .65em;
    color: #0677b8;
    font-size: 1.3rem;
    line-height: 1.45
}

.article-card h3:before {
    content: '+';
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 9px;
    border-radius: 9px;
    background: var(--sky);
    color: var(--blue);
    font-weight: 800
}

.article-card a {
    color: #007bbf;
    font-weight: 700
}
/*
.article-card p:nth-of-type(7n+2) {
    padding: 19px 22px;
    background: linear-gradient(90deg, #f0fbff, #fff);
    border-radius: 0 18px 18px 0;
    border-left: 3px solid #87dbff
}*/

.table-scroll {
    overflow: auto;
    margin: 25px 0;
    border-radius: 20px;
    border: 1px solid var(--line)
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e3f3fb;
    vertical-align: top
}

th {
    background: #eaf8ff;
    color: #075080
}

.toc-card {
    position: sticky;
    top: 112px;
    padding: 28px 24px;
    border-radius: 28px;
    background: #063766;
    color: #fff;
    box-shadow: 0 24px 45px rgba(1, 48, 90, .24);
    max-height: calc(100vh - 135px);
    overflow: auto
}

.toc-kicker {
    font-size: .68rem;
    letter-spacing: .18em;
    color: #72d2ff;
    margin-bottom: 7px
}

.toc-card strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 17px
}

.toc-card nav {
    display: grid;
    gap: 2px
}

.toc-card a {
    padding: 8px 10px;
    border-radius: 11px;
    text-decoration: none;
    color: #cdeeff;
    font-size: .86rem;
    line-height: 1.45
}

.toc-card a:hover,
.toc-card a.current {
    background: rgba(255, 255, 255, .11);
    color: #fff
}

.toc-card .toc-level-3 {
    padding-left: 24px;
    font-size: .8rem;
    color: #9fd8f4
}

.to-top {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer
}

.site-footer {
    padding: 55px max(24px, calc((100% - 1180px)/2));
    background: #041f3d;
    color: #c6e8f7
}

.footer-mark {
    display: flex;
    align-items: center;
    gap: 16px
}

.footer-mark img {
    filter: brightness(0) invert(1)
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 30px 0
}

.site-footer nav a {
    color: #c6e8f7;
    text-decoration: none;
    font-weight: 600
}

.copyright {
    padding-top: 23px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .85rem;
    color: #8fc6df
}

@media(max-width:1040px) {
    .site-nav {
        display: none;
        position: absolute;
        left: 24px;
        right: 24px;
        top: 92px;
        padding: 15px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        box-shadow: 0 18px 40px rgba(7, 58, 114, .15);
        flex-direction: column;
        align-items: stretch
    }

    .site-nav.open {
        display: flex
    }

    .menu-toggle {
        display: block
    }

    .hero {
        margin: 20px 24px 60px;
        padding: 55px;
        grid-template-columns: 1fr .58fr
    }

    .reading-layout {
        margin-left: 24px;
        margin-right: 24px;
        grid-template-columns: minmax(0, 1fr) 270px
    }
}

@media(max-width:760px) {
    .site-header {
        padding: 9px 12px
    }

    .header-inner {
        border-radius: 18px;
        padding: 8px 10px 8px 15px
    }

    .brand img {
        max-width: 115px
    }

    .site-nav {
        left: 12px;
        right: 12px
    }

    .hero {
        margin: 12px 12px 42px;
        padding: 42px 25px 55px;
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 30px 30px 90px 30px
    }

    .hero-art {
        width: min(72vw, 310px);
        margin: auto
    }

    .reading-layout {
        display: flex;
        flex-direction: column;
        margin: 0 12px 55px
    }

    .article-card {
        padding: 35px 22px;
        border-radius: 27px;
        order: 2
    }

    .toc-card {
        position: relative;
        top: auto;
        width: 100%;
        max-height: none;
        order: 1
    }

    .toc-card nav {
        max-height: 290px;
        overflow: auto
    }

    .site-footer {
        padding: 45px 24px
    }

    .site-footer nav {
        display: grid;
        grid-template-columns: 1fr 1fr
    }
   .footer-mark{
    display: block;
   }
}