:root {
    --blue: #00a6ff;
    --deep: #075779;
    --navy: #073044;
    --ink: #173a4a;
    --muted: #647f8d;
    --line: #d7ecf5;
    --mint: #47d7c1;
    --sun: #ffc858;
    --paper: #fff
}

* {
    box-sizing: border-box
}

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

body {
    margin: 0;
    background: #f5fbfe;
    color: var(--ink);
    font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
    line-height: 1.78
}

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

.skip:focus {
    top: 16px
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(245, 251, 254, .88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 166, 255, .14)
}

.nav-wrap {
    max-width: 1200px;
    height: 76px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.logo {
    display: flex
}

.logo img {
    height: auto
}

.header nav a {
    display: inline-block;
    text-decoration: none;
    color: var(--deep);
    font-weight: 900;
    padding: 9px 20px;
    border: 2px solid transparent;
    border-radius: 14px
}

.header nav a:hover,
.header nav a.active {
    border-color: #aee3fb;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 126, 190, .08)
}

main {
    overflow: clip
}

.hero {
    max-width: 1200px;
    margin: 40px auto 64px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    align-items: center;
    gap: 44px;
    position: relative
}

.hero:before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    left: -240px;
    top: -120px;
    border: 70px solid rgba(0, 166, 255, .09);
    border-radius: 50%
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #087eaf;
    font-size: .9rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase
}

.eyebrow span {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    font-size: 1.2rem;
    box-shadow: 0 8px 18px rgba(0, 166, 255, .25)
}

.visual-title {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.12;
    color: var(--navy);
    margin: 20px 0 18px;
    letter-spacing: -.035em
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.05rem
}

.hero-media {
    position: relative
}

.hero-media:before,
.hero-media:after {
    content: "";
    position: absolute;
    border-radius: 28px;
    transform: rotate(5deg)
}

.hero-media:before {
    inset: 18px -16px -12px 25px;
    background: var(--mint);
    opacity: .32
}

.hero-media:after {
    width: 90px;
    height: 90px;
    right: -30px;
    top: -25px;
    background: var(--sun);
    opacity: .7
}

.hero-media img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: 0 28px 70px rgba(12, 88, 123, .16);
    display: block
}

.reading-layout {
    max-width: 1200px;
    margin: 0 auto 76px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 32px;
    align-items: start
}

.content-card {
    min-width: 0;
    background: #fff;
    border-radius: 30px;
    padding: 18px 44px 48px;
    box-shadow: 0 18px 65px rgba(25, 91, 119, .08);
    border: 1px solid rgba(0, 166, 255, .12)
}

.article-content h1 {
    display: none
}

.article-content h2 {
    font-size: clamp(1.42rem, 2.6vw, 2.1rem);
    line-height: 1.35;
    color: #075779;
    margin: 3rem 0 1rem;
    position: relative;
    padding-bottom: 13px
}

.article-content h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--blue), var(--mint))
}

.article-content h2.source-title {
    font-size: 1.03rem;
    display: inline-block;
    color: #1380ac;
    background: #e9f8ff;
    border-radius: 999px;
    padding: 8px 14px;
    margin: 16px 0 0
}

.article-content h2.source-title:after {
    display: none
}

.article-content h3 {
    font-size: 1.2rem;
    color: #087eaf;
    margin: 2rem 0 .7rem
}

.article-content a {
    color: #0079b8;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px
}

.article-content strong {
    color: #104e69
}

.article-content ul,
.article-content ol {
    padding-left: 1.4rem
}

.article-content li {
    margin: .4rem 0
}

.article-content li::marker {
    color: var(--blue)
}

.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.5rem 0
}

.article-content th,
.article-content td {
    min-width: 210px;
    padding: 15px;
    border: 1px solid var(--line);
    vertical-align: top
}

.article-content th {
    background: #e9f8ff
}

.rail {
    position: sticky;
    top: 104px;
    align-self: start;
    height: max-content;
    background: #fff;
    border-radius: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(25, 91, 119, .08);
    max-height: calc(100vh - 125px);
    overflow: auto
}

.rail-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--navy);
    font-size: 1.16rem;
    font-weight: 900;
    padding: 5px 4px 14px;
    border-bottom: 1px solid var(--line)
}

.rail-title button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 9px;
    color: #067bae;
    background: #e5f7ff;
    font-size: 1.2rem;
    cursor: pointer
}

.rail nav {
    display: grid;
    margin: 10px 0
}

.rail nav a {
    color: #526f7c;
    text-decoration: none;
    line-height: 1.4;
    font-size: .9rem;
    padding: 9px 10px;
    border-radius: 10px
}

.rail nav a.sub {
    padding-left: 24px;
    font-size: .83rem;
    color: #78909b
}

.rail nav a:hover,
.rail nav a.current {
    background: #e9f8ff;
    color: #007cb9
}

.rail nav.closed {
    display: none
}

.back-top {
    display: block;
    text-align: center;
    color: #087daa;
    text-decoration: none;
    background: #f1faff;
    padding: 9px;
    border-radius: 11px;
    font-size: .88rem
}

footer {
    background: var(--navy);
    color: #d5f1ff;
    padding: 48px 24px 18px
}

.footer-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 60px
}

.footer-grid>div img {
    display: block
}

.footer-grid p {
    color: #9cc6d8
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d5f1ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    padding: 10px
}

.footer-links a span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: rgba(0, 166, 255, .28);
    border-radius: 8px
}

.footer-links a:hover,
.footer-links a.active {
    color: #62d4ff;
    background: rgba(255, 255, 255, .04)
}

.copyright {
    max-width: 1200px;
    margin: 35px auto 0;
    padding-top: 17px;
    border-top: 1px solid rgba(255, 255, 255, .13);
    text-align: center;
    color: #8db7c9;
    font-size: .88rem
}

@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
        margin-top: 30px
    }

    .hero-copy {
        max-width: 700px
    }

    .hero-media {
        max-width: 740px
    }

    .reading-layout {
        grid-template-columns: 1fr
    }

    .rail {
        position: relative;
        top: 0;
        grid-row: 1;
        max-height: none
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .visual-title {
        font-size: clamp(2rem, 8.5vw, 4rem)
    }
}

@media(max-width:600px) {
    .nav-wrap {
        height: 68px;
        padding: 0 18px
    }

    .logo img {
        width: 138px
    }

    .hero {
        margin: 24px auto 42px;
        padding: 0 16px;
        gap: 25px
    }

    .hero-media img {
        border-radius: 23px
    }

    .reading-layout {
        padding: 0 14px;
        margin-bottom: 48px
    }

    .content-card {
        border-radius: 23px;
        padding: 10px 20px 35px
    }

    .footer-links {
        grid-template-columns: 1fr
    }

    .footer-grid {
        gap: 24px
    }

    .article-content h2 {
        margin-top: 2.5rem
    }
}