:root {
  --ink: #071733;
  --navy: #061a44;
  --blue: #165dff;
  --electric: #3d8bff;
  --ice: #eaf3ff;
  --mist: #f5f8fd;
  --line: #d8e3f3;
  --muted: #51647f;
  --white: #fff;
  --danger: #c93648;
  --success: #087b60;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(7, 23, 51, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--white); font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif; line-height: 1.65; }
body::selection { color: var(--white); background: var(--blue); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f5b942; outline-offset: 4px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { 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; }
.skip-link { position: fixed; z-index: 999; top: 12px; left: 12px; padding: 10px 16px; color: white; background: var(--blue); transform: translateY(-180%); border-radius: 8px; }
.skip-link:focus { transform: none; }

.site-header { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 0 clamp(22px, 5vw, 80px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--blue); }
.brand-mark svg { width: 100%; height: 100%; stroke-width: 1.4; }
.brand-mark svg circle:first-child { fill: currentColor; stroke: none; }
.brand strong { display: block; color: var(--navy); font-size: .96rem; font-weight: 800; line-height: 1.1; letter-spacing: -.015em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; color: #30435e; font-size: .91rem; font-weight: 600; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -11px; height: 2px; background: var(--blue); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right: 0; }
.site-nav a.active { color: var(--blue); }
.admin-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); font-size: .85rem; font-weight: 700; text-decoration: none; }
.admin-link svg { width: 18px; }
.admin-link:hover { border-color: var(--blue); color: var(--blue); }
.nav-toggle { display: none; border: 0; background: none; padding: 10px; }
.nav-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px; }

.news-hero { min-height: 650px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: var(--navy); color: var(--white); }
.hero-copy { min-width: 0; padding: clamp(72px, 8vw, 128px) clamp(28px, 6vw, 100px); align-self: center; position: relative; z-index: 2; }
.hero-date { margin: 0 0 32px; color: #b9cff5; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.hero-date span { margin: 0 9px; color: var(--electric); }
.hero-copy h1 { max-width: 720px; margin: 0; font-size: clamp(3.1rem, 6.7vw, 6rem); line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero-copy h1 span { display: inline-block; color: #82b6ff; margin-left: .16em; }
.hero-intro { max-width: 620px; margin: 34px 0; color: #cfddf6; font-size: clamp(1rem, 1.4vw, 1.18rem); }
.search-form { max-width: 570px; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; margin-top: 38px; padding: 8px 8px 8px 18px; background: white; border-radius: 12px; box-shadow: 0 22px 44px rgba(0,0,0,.2); }
.search-form svg { width: 21px; color: var(--blue); }
.search-form input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 10px 0; color: var(--ink); background: transparent; }
.search-form input::placeholder { color: #687c99; }
.search-form button, .button { border: 0; border-radius: 9px; padding: 11px 20px; background: var(--blue); color: white; cursor: pointer; font-weight: 700; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.search-form button:hover, .button:hover { background: #0c47ce; transform: translateY(-1px); }
.orbit-stage { min-height: 650px; position: relative; overflow: hidden; background: #061a44 url('../images/orbital-news-hero.png') center/cover no-repeat; }
.orbit-stage::before { content: ""; position: absolute; inset: 0; opacity: .6; background-image: radial-gradient(circle, #dbeaff 1px, transparent 1.5px); background-size: 62px 62px; mask-image: linear-gradient(90deg, transparent, #000); }
.planet { display: none; }
.planet::before, .planet::after, .planet span { content: ""; position: absolute; height: 10%; border-radius: 50%; background: rgba(3,24,65,.3); filter: blur(1px); }
.planet::before { width: 48%; left: 10%; top: 28%; transform: rotate(14deg); }
.planet::after { width: 64%; right: 6%; top: 56%; transform: rotate(-9deg); }
.planet span { width: 35%; left: 22%; bottom: 20%; }
.orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(183,213,255,.42); border-radius: 50%; transform: translate(-50%,-50%) rotate(-18deg); }
.orbit-one { width: 88%; height: 39%; }
.orbit-two { width: 122%; height: 63%; transform: translate(-50%,-50%) rotate(34deg); border-color: rgba(100,161,255,.24); }
.orbit i { position: absolute; width: 10px; height: 10px; background: white; border-radius: 50%; box-shadow: 0 3px 18px #b8d9ff; }
.orbit-one i { top: 18%; right: 10%; animation: pulse 2.4s ease-in-out infinite; }
.orbit-two i { bottom: 11%; left: 17%; }
.signal { position: absolute; padding: 7px 10px; border-top: 1px solid rgba(212,231,255,.7); color: #b9d5ff; font: 700 .61rem/1 Arial, sans-serif; letter-spacing: .14em; }
.signal-a { top: 19%; left: 16%; }
.signal-b { right: 13%; bottom: 17%; }
@keyframes pulse { 50% { box-shadow: 0 3px 30px 10px rgba(141,190,255,.5); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; } }

.ticker { min-height: 52px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 10px clamp(22px, 5vw, 80px); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.ticker > span:first-child { color: var(--blue); font-weight: 800; }
.ticker strong { color: var(--navy); margin-right: 10px; }
.ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 3px 12px rgba(22,93,255,.4); }
.demo-notice { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 22px; color: #344b69; background: #eaf3ff; border-bottom: 1px solid #d5e4f8; font-size: .76rem; }
.demo-notice strong { padding: 3px 8px; border-radius: 999px; color: white; background: var(--blue); font-size: .68rem; }
.content-shell { width: min(1220px, calc(100% - 44px)); margin: 0 auto; padding: 100px 0 130px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4.2vw, 4.25rem); line-height: 1.05; letter-spacing: -.035em; }
.section-heading p { margin: 10px 0 0; color: var(--muted); }
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.category-filter a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; text-decoration: none; }
.category-filter a:hover, .category-filter a.active { color: white; background: var(--blue); border-color: var(--blue); }
.lead-story { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 480px; margin-bottom: 28px; background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.story-art, .story-thumbnail, .article-visual { position: relative; overflow: hidden; background: #0c2c68 url('../images/orbital-news-hero.png') center/cover no-repeat; }
.story-art img, .story-thumbnail img, .article-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.story-art { min-height: 460px; }
.art-0 { background-position: 24% center; }
.art-1 { background-position: 45% center; }
.art-2 { background-position: 65% center; }
.art-3 { background-position: 80% center; }
.art-orbit { position: absolute; width: 68%; aspect-ratio: 2.3; left: 16%; top: 36%; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; transform: rotate(-14deg); }
.art-orbit::after { content: ""; position: absolute; right: 9%; top: 8%; width: 10px; height: 10px; border-radius: 50%; background: white; box-shadow: 0 3px 16px rgba(255,255,255,.7); }
.art-code { position: absolute; left: 24px; bottom: 22px; color: white; font: 700 .62rem/1 Arial, sans-serif; letter-spacing: .18em; }
.lead-content { padding: clamp(36px, 6vw, 72px); align-self: center; }
.story-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: .74rem; }
.story-meta span { color: var(--blue); font-weight: 800; }
.story-meta span::after { content: ""; display: inline-block; width: 18px; height: 1px; margin-left: 12px; vertical-align: middle; background: #a9bad2; }
.story-meta time { color: var(--muted); }
.lead-content h3 { margin: 0; font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.24; letter-spacing: -.025em; }
.lead-content h3 a, .story-row h3 a { text-decoration: none; }
.lead-content h3 a:hover, .story-row h3 a:hover { color: var(--blue); }
.lead-content > p { color: var(--muted); margin: 22px 0 30px; }
.read-link { display: inline-flex; gap: 12px; align-items: center; color: var(--blue); font-weight: 800; text-decoration: none; }
.read-link svg { width: 22px; transition: transform .2s ease; }
.read-link:hover svg { transform: translateX(5px); }
.story-list { border-top: 1px solid var(--line); }
.story-row { display: grid; grid-template-columns: 180px 1fr 54px; align-items: center; gap: clamp(24px, 4vw, 58px); padding: 28px 0; border-bottom: 1px solid var(--line); }
.story-thumbnail { height: 122px; border-radius: 10px; text-decoration: none; }
.story-thumbnail > span { position: absolute; left: 14px; bottom: 10px; color: white; font: 700 .65rem Arial, sans-serif; }
.story-row-content .story-meta { margin-bottom: 8px; }
.story-row h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.35; }
.story-row p { color: var(--muted); margin: 8px 0 0; font-size: .9rem; }
.arrow-link { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); }
.arrow-link svg { width: 20px; }
.arrow-link:hover { color: white; background: var(--blue); border-color: var(--blue); }
.empty-state { text-align: center; padding: 100px 20px; background: var(--mist); border-radius: var(--radius); }
.empty-state h1, .empty-state h2 { margin: 22px 0 5px; font-size: 2rem; }
.empty-state p { color: var(--muted); margin: 0 0 28px; }
.empty-orbit { width: 90px; height: 42px; margin: auto; border: 1px solid var(--electric); border-radius: 50%; transform: rotate(-16deg); position: relative; }
.empty-orbit span { position: absolute; width: 24px; height: 24px; left: 31px; top: 8px; border-radius: 50%; background: var(--blue); }
.page-empty { margin: 100px auto; width: min(800px, calc(100% - 44px)); }

.article-page { width: min(1220px, calc(100% - 44px)); margin: auto; padding: 36px 0 120px; }
.article-topline { display: flex; gap: 12px; color: var(--muted); font-size: .8rem; margin-bottom: 58px; }
.article-topline a { text-decoration: none; }
.article-header { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; max-width: 1080px; margin-bottom: 56px; }
.article-heading h1 { max-width: 900px; margin: 0; font-size: clamp(2.6rem, 6.1vw, 5.7rem); line-height: 1.06; letter-spacing: -.038em; text-wrap: balance; }
.article-heading > p { max-width: 750px; margin: 30px 0 0; color: var(--muted); font-size: 1.15rem; }
.article-coordinate { display: grid; gap: 8px; padding-bottom: 8px; color: #71829b; font: 700 .62rem Arial, sans-serif; letter-spacing: .12em; }
.article-coordinate i { width: 100%; height: 1px; background: var(--line); }
.article-visual { height: min(58vw, 620px); min-height: 360px; border-radius: var(--radius); }
.article-visual > span { position: absolute; left: 28px; bottom: 24px; color: white; font: 700 .65rem Arial, sans-serif; letter-spacing: .18em; }
.visual-rings { position: absolute; width: 56%; height: 38%; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; left: 22%; top: 32%; transform: rotate(-12deg); }
.visual-rings::before, .visual-rings::after { content: ""; position: absolute; inset: -50%; border: 1px solid rgba(146,195,255,.25); border-radius: 50%; }
.visual-rings::after { inset: 25%; background: rgba(136,185,255,.4); border: 0; box-shadow: 18px 20px 40px rgba(0,0,0,.25); }
.article-layout { display: grid; grid-template-columns: 210px minmax(0, 700px); gap: clamp(50px, 9vw, 120px); justify-content: center; padding: 80px 0; }
.share-rail { display: flex; flex-direction: column; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.share-rail span { color: var(--muted); font-size: .7rem; margin-top: 18px; }
.share-rail strong { font-size: .88rem; }
.share-rail a { margin-top: 32px; color: var(--blue); font-size: .82rem; font-weight: 700; }
.article-body { font-size: 1.08rem; line-height: 1.95; }
.article-body p { margin: 0 0 2em; }
.article-body p:first-child::first-letter { float: left; font-size: 4.3rem; font-weight: 800; line-height: .82; margin: 10px 11px 0 0; color: var(--blue); }
.related-news { padding-top: 70px; border-top: 1px solid var(--line); }
.related-news h2 { font-size: 2.6rem; margin: 0 0 26px; }
.related-news > a { display: grid; grid-template-columns: 120px 1fr 28px; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.related-news > a span { color: var(--blue); font-size: .76rem; font-weight: 800; }
.related-news > a strong { font-size: 1.05rem; }
.related-news > a svg { width: 22px; color: var(--blue); }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 80px; padding: 70px clamp(22px, 6vw, 100px); background: #04122f; color: #cad9f3; }
.brand-footer strong { color: white; }
.brand-footer small { color: #9eb6d9; }
.site-footer > div:first-child > p { max-width: 440px; color: #9eb6d9; font-size: .86rem; }
.footer-links { display: grid; gap: 7px; min-width: 130px; }
.footer-links span { color: #6f94c9; font-size: .7rem; margin-bottom: 8px; }
.footer-links a { color: white; font-size: .85rem; text-decoration: none; }
.footer-links a:hover { color: #86b9ff; }
.footer-meta { align-self: end; color: #809bc1; font-size: .72rem; text-align: right; }
.footer-meta p { margin: 4px 0; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #eaf1fa; }
::-webkit-scrollbar-thumb { background: #7594bd; border: 3px solid #eaf1fa; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 74px; }
  .nav-toggle { display: block; justify-self: end; }
  .site-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 20px 24px 26px; flex-direction: column; align-items: flex-start; gap: 18px; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a::after { bottom: -4px; }
  .admin-link { position: absolute; right: 76px; }
  .news-hero { width: 100%; grid-template-columns: minmax(0,1fr); }
  .hero-copy { padding-bottom: 48px; }
  .orbit-stage { min-height: 410px; }
  .lead-story { grid-template-columns: 1fr; }
  .story-art { min-height: 340px; }
  .article-header { grid-template-columns: 1fr; }
  .article-coordinate { display: none; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 640px) {
  main, section, article, .hero-copy, .orbit-stage, .content-shell, .lead-story, .lead-content { min-width: 0; max-width: 100%; }
  .admin-link span { display: none; }
  .admin-link { width: 42px; height: 42px; padding: 0; justify-content: center; border: 0; right: 67px; }
  .brand small { display: none; }
  .news-hero { min-height: auto; }
  .hero-copy { padding: 64px 22px 48px; }
  .hero-copy { width: 100vw; }
  .hero-copy h1 { width: 100%; max-width: 100%; font-size: clamp(2.3rem, 10.8vw, 4.2rem); overflow-wrap: anywhere; word-break: break-word; }
  .hero-copy h1 span { display: block; max-width: 100%; margin-left: 0; }
  .hero-intro { font-size: .95rem; }
  .search-form { width: calc(100vw - 44px); max-width: calc(100vw - 44px); grid-template-columns: 20px minmax(0,1fr); padding-right: 76px; position: relative; }
  .search-form button { position: absolute; right: 8px; top: 8px; bottom: 8px; display: grid; place-items: center; min-width: 58px; padding-inline: 10px; }
  .demo-notice { align-items: flex-start; justify-content: flex-start; }
  .demo-notice span { min-width: 0; overflow-wrap: anywhere; }
  .orbit-stage { min-height: 340px; }
  .signal { display: none; }
  .ticker { grid-template-columns: 1fr auto; gap: 14px; }
  .ticker > div { display: none; }
  .content-shell { padding: 70px 0 90px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .category-filter { width: 100%; max-width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); justify-content: initial; }
  .category-filter a { min-width: 0; max-width: 100%; text-align: center; }
  .lead-content { padding: 32px 24px 38px; }
  .story-art { min-height: 280px; }
  .story-row { grid-template-columns: 110px 1fr; gap: 18px; }
  .story-thumbnail { height: 95px; }
  .story-row p, .arrow-link { display: none; }
  .story-meta { flex-wrap: wrap; gap: 5px; }
  .story-meta span::after { width: 10px; margin-left: 8px; }
  .article-page { padding-top: 24px; }
  .article-topline { margin-bottom: 38px; }
  .article-header { margin-bottom: 38px; }
  .article-heading h1 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .article-heading > p { font-size: 1rem; }
  .article-visual { min-height: 270px; height: 72vw; }
  .article-layout { grid-template-columns: 1fr; gap: 30px; padding: 52px 0; }
  .share-rail { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; }
  .share-rail span { margin-top: 0; }
  .share-rail a { grid-column: 1 / -1; margin-top: 15px; }
  .article-body { font-size: 1rem; }
  .related-news > a { grid-template-columns: 1fr 24px; }
  .related-news > a span { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr; gap: 38px; padding-block: 54px; }
  .footer-meta { grid-column: auto; }
}

