body{background:#080f19;color:#f5f1e9}
header,main,footer{width:min(1240px,92%)}
header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem 1rem;padding:.65rem 0 .7rem;border-color:#354551}
header .brand{grid-area:1/1;display:block;max-width:470px}
.mast-logo{width:100%;height:auto;display:block}
header .langs{grid-area:1/2}
header nav{grid-area:2/1/3/3;gap:1.4rem;border-top:1px solid #273847;padding-top:.4rem}
header nav a{background:none;min-height:38px;padding:0;font-size:.95rem;color:#dbe4e8}
header nav a::before{width:21px;height:21px}
.hero{position:relative;isolation:isolate;min-height:360px;padding:clamp(2rem,5vw,4rem);border:1px solid #344350;border-radius:6px;margin:1.3rem 0 2.25rem;background:linear-gradient(90deg,#09121def 4%,#0b182bb0 51%,#0a112036),url("orbit.webp") center 65%/cover;grid-template-columns:1.15fr .85fr;gap:1.4rem}
.hero h1,.world .hero h1{font:700 clamp(2.45rem,5vw,4.5rem)/1.02 "Segoe UI",system-ui,sans-serif;letter-spacing:-.04em;max-width:16ch}
.hero figure{margin:auto;width:min(100%,330px);background:none}
.hero figure img{filter:drop-shadow(0 16px 18px #0009)}
.hero figcaption{font-size:.68rem;letter-spacing:.09em;text-align:center}
.hero .lead{font-size:clamp(1rem,1.5vw,1.15rem);max-width:48ch}
.hero .links{margin-top:1.4rem;gap:1rem}
h2{font-size:clamp(1.6rem,3.3vw,2.55rem)}
.grid{gap:1rem}.grid article{border-top-width:1px;padding:1.2rem}.grid h3{margin:0 0 .75rem}
.credits{display:grid;grid-template-columns:auto 1fr;column-gap:1.5rem;align-items:center}.credits img{grid-row:span 2}.credits h2,.credits p{margin:0}
.content{width:min(1000px,92%)}.content .hero{display:block;min-height:auto}
.content time{display:block;margin-bottom:.35rem}.content article h2,.content article h3{margin:.25rem 0}
footer{gap:1rem;background:none;line-height:1.7}
@media(max-width:720px){header nav{order:initial;gap:.9rem;width:auto}header nav a{padding:0;min-height:40px}header .brand{max-width:280px}.mast-logo{min-width:130px}.hero{grid-template-columns:1fr;padding:1.4rem;margin-top:1rem}.hero figure{max-width:220px}.hero .links{gap:.7rem}.credits img{width:70px;height:70px}.content .grid{grid-template-columns:1fr}.hero h1{max-width:100%}}
@media (max-width:480px) {
  header nav {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.25rem}
  header nav a {display:flex;flex-direction:column;justify-content:flex-start;text-align:center;gap:.3rem;padding:.4rem .1rem;font-size:.83rem;line-height:1.2;min-height:52px;overflow-wrap:anywhere}
  header nav a::before {flex:none}
}
:where(a,button,input,select,summary):focus-visible {
  outline:3px solid #ffda98;
  outline-offset:3px;
}
.langs a[aria-current="page"] {
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:.3em;
}
@media (forced-colors:active) {
  :where(a,button,input,select,summary):focus-visible {outline-color:Highlight}
}
/* The masthead and the orbital scene follow the viewport. Article text keeps its reading measure. */
:root { --page-gutter:clamp(1rem,5vw,7rem); }
body {min-height:100vh;min-height:100svh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 85% 8%,#142b3e 0,transparent 52rem),#080f19}
body > header,body > main,body > footer {width:100%;max-width:none;margin-inline:0}
body > main {flex:1}
body > header {padding:clamp(.9rem,2vw,1.8rem) var(--page-gutter) 0;border:0;background:linear-gradient(110deg,#08131e,#102231 70%,#071019)}
header .brand {width:min(100%,730px);max-width:none}
header .mast-logo {background:transparent}
header nav {align-items:stretch;gap:clamp(.4rem,1vw,1.2rem);padding:.6rem 0 .8rem;border:0}
header nav a {justify-content:center;min-height:54px;padding:.55rem clamp(.9rem,1.7vw,2rem);font-size:clamp(1rem,1.35vw,1.22rem);gap:.6rem;border:1px solid #425662;border-radius:4px;background:linear-gradient(160deg,#203848,#101e2b);box-shadow:inset 0 1px #ffffff12}
header nav a:hover,header nav a:focus-visible {border-color:#d5b47b;background:#233d4c}
header nav a::before {width:28px;height:28px}
body > main > .hero {min-height:clamp(440px,63vh,780px);border:0;border-block:1px solid #394652;border-radius:0;margin:0;padding:clamp(2rem,5vw,6rem) var(--page-gutter);background:linear-gradient(90deg,#07121ced 0%,#0b152db0 38%,#0b152d24 75%),url("orbit.webp") center 68%/cover}
body > main > .hero figure {width:min(100%,clamp(300px,34vw,640px))}
body > main > section,body > main > .world-film,body > main.content,body > footer {padding-inline:var(--page-gutter)}
body > main.content > section {padding-inline:0}
body > main.content {background:linear-gradient(120deg,#09131ce8,#0a1726dd),url("orbit.webp") center top/100% auto no-repeat}
.chronology {max-width:82rem;margin-top:2rem}
.chronology article {padding:1.5rem clamp(1rem,3vw,3rem);border-left:2px solid #ab9166;background:linear-gradient(100deg,#172c38b3,transparent)}
body > footer {margin-top:auto;padding-block:1.3rem}
@media(max-width:720px) {
  header .brand {max-width:100%}
  header nav {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
  header nav a {padding:.55rem .2rem;flex-direction:column;font-size:.94rem;gap:.35rem;min-height:64px;line-height:1.18;text-align:center}
  body > main > .hero {min-height:auto}
  body > main > .hero figure {width:min(76%,310px)}
  header .langs{gap:.42rem}
}

/* Keep the entire sprite inside the preview even for square station art. */
body .hero .atlas-preview .atlas-preview__image {position:relative;display:block}
body .hero .atlas-preview .atlas-preview__image img {position:absolute;inset:0;width:100%;height:100%;padding:.25rem;object-fit:contain}

/* The atlas opens on an imperial seal, above the three catalogue sections. */
.star-index .atlas-cover {position:relative;isolation:isolate;overflow:hidden;border-block:1px solid #405362;padding:clamp(2rem,5vw,5rem) clamp(1.2rem,4vw,4rem);background:linear-gradient(90deg,#07121bf5 18%,#0d1c2cd9 58%,#15223580),url("orbit.webp") center 70%/cover}
.star-index .atlas-cover::after {content:"";position:absolute;z-index:-1;inset:7% 2% 7% auto;width:33%;background:url("../dynasty-star-atlas/faction-solaris-empire.webp") center/contain no-repeat;filter:drop-shadow(0 10px 18px #0009)}
.star-index .atlas-cover h1,.star-index .atlas-cover .lead {max-width:64%}
.star-index .atlas-cover h1 {font-size:clamp(2.4rem,6vw,5.8rem);line-height:1.02}
.star-index .atlas-cover .lead {line-height:1.55}
.star-index .atlas-pairs article {border-top:2px solid #8aabae}
.star-index #stations .atlas-pairs article {border-top-color:#af926d}
.star-index #factions .atlas-pairs article {border-top-color:#9f93b7}
.star-index .atlas-links a {text-decoration-thickness:1px;text-underline-offset:.32em}
@media(max-width:620px){
 .star-index .atlas-cover {padding:1.3rem 1rem}
 .star-index .atlas-cover::after {position:static;display:block;width:100%;height:8rem;margin:1rem auto 0}
 .star-index .atlas-cover h1,.star-index .atlas-cover .lead {max-width:100%}
}

/* Give square station art enough height to read at both ends of the layout. */
body .hero .atlas-preview .atlas-preview__image {
 height:clamp(13rem,min(25vw,32vh),23rem);
}
body .hero .atlas-preview .atlas-preview__image img {padding:.65rem}
@media (max-width:900px) and (min-width:721px) {
 body > main > .hero {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.2rem;padding-inline:3vw}
}
@media (max-width:720px) {
 body > main > .hero {grid-template-columns:minmax(0,1fr)}
 body .hero .atlas-preview {width:100%;min-width:0}
 body .hero .atlas-preview .atlas-preview__image {height:clamp(12rem,55vw,20rem)}
}
@media (max-width:360px) {
 .hero .atlas-preview__bar {flex-wrap:wrap;row-gap:.4rem}
 .hero .atlas-preview__dots {gap:.2rem;flex-wrap:wrap}
 header nav a {overflow-wrap:anywhere}
}

/* Chronology dates share a vertical rail on desktop and stack on narrow screens. */
.chronology {margin-inline-start:.4rem}
.chronology article {position:relative;display:grid;grid-template-columns:minmax(9rem,12rem) minmax(0,1fr);column-gap:clamp(1rem,3vw,3rem);border-inline-start:1px solid #887758;border-block-end:1px solid #33424b}
.chronology article::before {content:"";position:absolute;left:-.32rem;top:2rem;width:.57rem;height:.57rem;border-radius:50%;background:#e7c28a;box-shadow:0 0 0 3px #11222d}
.chronology article time {grid-column:1;grid-row:1 / span 2;color:#e7c28a;font-weight:600;line-height:1.45;padding-top:.25rem}
.chronology article h2,.chronology article p {grid-column:2;margin:0}
.chronology article h2 {font-size:clamp(1.35rem,2.5vw,2rem)}
.chronology article p {margin-top:.65rem;max-width:68ch}
@media(max-width:720px){
 .chronology article {display:block;padding:1.25rem 1rem}
 .chronology article time {margin-bottom:.5rem}
 .chronology article::before {top:1.85rem}
}

/* Studio identity and team profiles */
.content:has(>img[src$="ozkullar-mark.webp"]) {
 display:grid;grid-template-columns:auto minmax(0,1fr);align-content:start;align-items:center;column-gap:clamp(1rem,3vw,3.5rem)
}
.content>img[src$="ozkullar-mark.webp"] {grid-row:1 / span 2;width:clamp(6rem,11vw,11rem);height:auto}
.content:has(>img[src$="ozkullar-mark.webp"])>h1 {font-size:clamp(2.25rem,5vw,5rem);margin:0;overflow-wrap:anywhere}
.content:has(>img[src$="ozkullar-mark.webp"])>.lead {grid-column:2;margin:.65rem 0 0}
.content:has(>img[src$="ozkullar-mark.webp"])>section {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:2rem}
.content:has(>img[src$="ozkullar-mark.webp"])>section>h2,.content:has(>img[src$="ozkullar-mark.webp"])>section>p {grid-column:1/-1;margin:0}
.content:has(>img[src$="ozkullar-mark.webp"]) article {padding:clamp(1rem,2.4vw,2rem);border:1px solid #40525f;border-top:2px solid #79a5b1;background:linear-gradient(125deg,#152b36,#101b28)}
.content:has(>img[src$="ozkullar-mark.webp"]) article+article {border-top-color:#d6ba8c}
@media(max-width:680px){
 .content:has(>img[src$="ozkullar-mark.webp"]),.content:has(>img[src$="ozkullar-mark.webp"])>section {grid-template-columns:minmax(0,1fr)}
 .content>img[src$="ozkullar-mark.webp"] {grid-row:auto;margin-bottom:1rem}
 .content:has(>img[src$="ozkullar-mark.webp"])>.lead {grid-column:1}
}

.star-index .atlas-pairs article {transition:border-color .2s ease,box-shadow .2s ease}
.star-index .atlas-pairs article:focus-within {border-color:#e4c38d;box-shadow:inset 0 0 0 1px #e4c38d44}
@media(hover:hover) and (pointer:fine){
 .star-index .atlas-pairs article:hover {border-color:#9ebec8;box-shadow:0 12px 30px #0004}
 .star-index .atlas-pairs img {transition:transform .35s ease}
 .star-index .atlas-pairs article:hover img {transform:scale(1.025)}
}
@media(prefers-reduced-motion:reduce){
 .star-index .atlas-pairs article,.star-index .atlas-pairs img {transition:none}
 .star-index .atlas-pairs article:hover img {transform:none}
}

@media(pointer:coarse),(max-width:720px){
 body .atlas-preview__button,body .atlas-preview__dot {min-width:44px;min-height:44px}
 body .atlas-preview__dots {flex-wrap:wrap;gap:.3rem}
 body .atlas-preview__bar {flex-wrap:wrap;gap:.6rem}
 .star-index .atlas-tabs a,.star-index .atlas-links a {min-height:44px;display:inline-flex;align-items:center}
}

/* Public secondary pages fill the viewport before applying reading gutters. */
body > main.content {width:100%;max-width:none;min-width:0}
body > main.content > .star-index {width:100%;max-width:88rem;margin-inline:auto}
@media(min-width:1100px){
 .star-index #sectors .atlas-pairs,.star-index #stations .atlas-pairs {grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:360px){
 body .hero .atlas-preview .atlas-preview__copy {min-height:13rem}
}

@media(min-width:1100px) and (max-width:1499px){
 .star-index #sectors .atlas-pairs {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1500px){
 .star-index #sectors .atlas-pairs {grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Open orbital composition, with game art carrying the first screen. */
body > header {background:linear-gradient(110deg,#050e16,#0b1b28 70%,#071019);padding-bottom:.3rem}
body > header nav a {background:transparent;box-shadow:none;border-color:transparent;border-radius:0;color:#bfcdd2;padding-inline:1rem}
body > header nav a:hover,body > header nav a:focus-visible {background:#20374670;border-color:#4d6874;color:#fff1ce}
body > header nav a[aria-current="page"] {background:#18303b70;border-color:#7d744e;box-shadow:inset 0 -2px #d5b675;color:#f5dab0}
body > main > .hero {grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(2rem,6vw,7rem);padding-block:clamp(2.5rem,5vw,6rem);background:linear-gradient(90deg,#06101af0,#081623a0 45%,#08162310),url("orbit.webp") center 65%/cover}
body .hero h1 {font-size:clamp(3.2rem,6.1vw,7rem);line-height:.98;letter-spacing:-.055em}
body .hero .lead {font-size:clamp(1.05rem,1.4vw,1.3rem);line-height:1.7;color:#c5d4dc}
body .hero .atlas-preview {border:0;border-radius:0;background:transparent;box-shadow:none;padding:0;overflow:visible}
body .hero .atlas-preview::before {display:none}
body .hero .atlas-preview__image {height:clamp(18rem,30vw,30rem);background:radial-gradient(ellipse,#5375883d,transparent 65%)}
body .hero .atlas-preview__image img {padding:1rem;filter:drop-shadow(0 24px 28px #0009)}
body .hero .atlas-preview__bar {padding-bottom:.7rem;border-bottom:1px solid #6c859340}
body .hero .atlas-preview__copy {border-top:1px solid #6c859340;padding-top:1rem}
body .hero .atlas-preview__copy h2 {font-size:clamp(1.5rem,2.5vw,2.4rem);font-weight:600}
body .hero .atlas-preview__copy>p:not(.atlas-preview__type) {color:#afc3cd;line-height:1.6}
body .hero .atlas-preview__button {background:#0a1b2780;border-color:#4a6471}
body .hero .atlas-preview__dot {background:transparent;border:0}
body .hero .atlas-preview__dots {gap:.2rem}
body > main > #world {padding-block:clamp(3rem,6vw,6rem);border:0;background:linear-gradient(#07121e,#0d1d29)}
body > main > #world>h2 {font-size:clamp(2rem,4vw,3.8rem);max-width:20ch;margin-bottom:2rem}
#world .grid {gap:clamp(1.5rem,4vw,4rem)}
#world .grid article {padding:0 0 1.6rem;background:none;border:0;border-bottom:1px solid #53687580}
#world .grid article::before {content:"";display:block;height:8rem;margin-bottom:1.5rem;background:center/contain no-repeat}
#world .grid article:nth-child(1)::before {background-image:url("../dynasty-star-atlas/sector-12-residential.webp")}
#world .grid article:nth-child(2)::before {background-image:url("../dynasty-star-atlas/station-long-stop.webp")}
#world .grid article:nth-child(3)::before {background-image:url("../dynasty-star-atlas/faction-solaris-empire.webp")}
#world .grid h3 {font-size:clamp(1.3rem,1.8vw,1.8rem);font-weight:600;color:#e9dcc3}
#world .grid p {font-size:1.05rem;line-height:1.75;color:#b6c9d2}
body > main > .credits {padding-block:3rem;border-color:#52687550;background:#08131f}
@media(max-width:900px){
 body > main > .hero {grid-template-columns:minmax(0,1fr);gap:2rem}
 body .hero .atlas-preview {max-width:42rem;width:100%;margin-inline:auto}
 body .hero .atlas-preview__image {height:clamp(15rem,60vw,26rem)}
}
@media(max-width:720px){
 body > header nav a {min-height:64px;font-size:.94rem;padding:.5rem .25rem}
 body .hero h1 {font-size:clamp(2.8rem,12vw,4.5rem)}
 body .hero .atlas-preview__copy h2 {font-size:1.65rem}
 #world .grid article {display:block}
 #world .grid article::before {height:7rem;background-position:left center}
 body > main > .credits {column-gap:1rem}
}

/* Atlas entries share the open illustration treatment of the landing page. */
.star-index .atlas-pairs {gap:clamp(1.25rem,2.8vw,3rem)}
.star-index .atlas-pairs article {padding:1.5rem 0 1.8rem;background:transparent;border:0;border-bottom:1px solid #50677670;transition:border-color .2s ease}
.star-index #stations .atlas-pairs article,.star-index #factions .atlas-pairs article {border-top:0}
.star-index .atlas-pairs img {height:clamp(12rem,18vw,18rem);margin-bottom:1.5rem;filter:drop-shadow(0 16px 20px #0007)}
.star-index .atlas-pairs h3 {font-size:clamp(1.2rem,1.5vw,1.55rem);color:#f0e3ce;line-height:1.2}
.star-index .atlas-pairs p {font-size:1rem;line-height:1.75;color:#b5c9d3}
.star-index .atlas-pairs article:hover,.star-index .atlas-pairs article:focus-within {background:transparent;box-shadow:none;border-color:#cfb27a}
.star-index .atlas-links {gap:.4rem 1rem;padding-top:.75rem}
.star-index .atlas-links a {font-size:.94rem;color:#e3c99c}
.star-index>section {padding-block:clamp(2rem,4vw,4rem)}
.star-index>section>h2 {font-size:clamp(2rem,3vw,3rem);margin-bottom:1rem}
@media(max-width:720px){
 .star-index .atlas-pairs article {padding-top:1rem}
 .star-index .atlas-pairs img {height:15rem}
}

/* Sector 34 preview uses the project's patrol ships as foreground and distant detail. */
body .hero .atlas-preview__image[href*="#sector-34-slums"] {isolation:isolate}
body .hero .atlas-preview__image[href*="#sector-34-slums"]::before,
body .hero .atlas-preview__image[href*="#sector-34-slums"]::after {content:"";position:absolute;pointer-events:none;background:center/contain no-repeat;filter:drop-shadow(0 12px 12px #0009);z-index:1}
body .hero .atlas-preview__image[href*="#sector-34-slums"]::before {width:25%;height:43%;left:5%;bottom:6%;background-image:url("../dynasty-star-atlas/patrol-scarecrow.webp");transform:rotate(24deg)}
body .hero .atlas-preview__image[href*="#sector-34-slums"]::after {width:14%;height:25%;right:9%;top:12%;background-image:url("../dynasty-star-atlas/patrol-biter.webp");transform:rotate(-28deg)}
@media(prefers-reduced-motion:no-preference){
 body .hero .atlas-preview__image[href*="#sector-34-slums"]::before {animation:patrol-near 14s ease-in-out infinite alternate}
 body .hero .atlas-preview__image[href*="#sector-34-slums"]::after {animation:patrol-far 18s ease-in-out infinite alternate}
}
@keyframes patrol-near {to{transform:translate(8px,-6px) rotate(24deg)}}
@keyframes patrol-far {to{transform:translate(-6px,5px) rotate(-28deg)}}

.latest-chronicle {display:grid;grid-template-columns:minmax(12rem,.65fr) minmax(0,1.35fr);gap:clamp(1.5rem,5vw,5rem);padding-block:clamp(2.5rem,5vw,5rem);background:linear-gradient(110deg,#132632,#07121e);border-block:1px solid #60758350}
.latest-chronicle>h2 {font-size:clamp(1.6rem,2.7vw,2.7rem);color:#d6c09b;max-width:14ch}
.latest-chronicle time {color:#a8bdc8;font-size:.9rem}
.latest-chronicle h3 {font-size:clamp(1.6rem,2.8vw,2.6rem);line-height:1.15;margin:.6rem 0 1rem}
.latest-chronicle h3 a {text-decoration:none}
.latest-chronicle h3 a:hover {color:#f0cf99}
.latest-chronicle p {font-size:1.05rem;line-height:1.75;color:#bdcdd5}
@media(max-width:720px){.latest-chronicle{grid-template-columns:minmax(0,1fr);gap:1rem}.latest-chronicle>h2{max-width:none;margin:0}}

body > main.content:has(>img[src$="ozkullar-mark.webp"]) {
 padding-block:clamp(3rem,7vw,7rem);
 background:radial-gradient(ellipse at 12% 20%,#38607735,transparent 40%),linear-gradient(110deg,#07131aee,#0c1a2ad0),url("orbit.webp") center top/cover;
 column-gap:clamp(2rem,5vw,6rem)
}
.content>img[src$="ozkullar-mark.webp"] {width:clamp(8rem,16vw,16rem);filter:drop-shadow(0 20px 30px #0008)}
body > main.content:has(>img[src$="ozkullar-mark.webp"])>h1 {font-size:clamp(2.8rem,6vw,6.5rem);line-height:1}
body > main.content:has(>img[src$="ozkullar-mark.webp"])>.lead {font-size:clamp(1.1rem,1.5vw,1.4rem);line-height:1.65;color:#bdd1da}
body > main.content:has(>img[src$="ozkullar-mark.webp"])>section {margin-top:clamp(3rem,6vw,6rem);gap:1.5rem clamp(2rem,5vw,6rem);border-top:1px solid #5e78865c;padding-top:2rem}
body > main.content:has(>img[src$="ozkullar-mark.webp"])>section>p {font-size:1.15rem;line-height:1.8;max-width:70ch;margin-bottom:1rem}
body > main.content:has(>img[src$="ozkullar-mark.webp"]) article {padding:1.5rem 0;border:0;border-top:2px solid #7ca3b0;background:transparent}
body > main.content:has(>img[src$="ozkullar-mark.webp"]) article+article {border-top-color:#d4b576}
body > main.content:has(>img[src$="ozkullar-mark.webp"]) article h3 {font-size:clamp(1.8rem,3vw,3rem);color:#f1e5d0}
body > main.content:has(>img[src$="ozkullar-mark.webp"]) article p {font-size:1.1rem;line-height:1.8;color:#b5cbd4}
@media(max-width:680px){
 .content>img[src$="ozkullar-mark.webp"] {width:8rem}
 body > main.content:has(>img[src$="ozkullar-mark.webp"])>section {margin-top:2rem}
}

body .hero .atlas-preview:has([data-atlas-toggle][aria-pressed="true"]) .atlas-preview__image::before,
body .hero .atlas-preview:has([data-atlas-toggle][aria-pressed="true"]) .atlas-preview__image::after {animation-play-state:paused}

@media(max-width:720px){
 body .hero .atlas-preview__dots {display:flex;justify-content:center;flex-wrap:wrap;max-width:244px;margin-inline:auto;gap:4px}
 body .hero .atlas-preview__dot {width:44px;min-width:44px;height:44px;flex:0 0 44px}
}

@media(min-width:1000px){
 body > main > .latest-chronicle {grid-template-columns:minmax(14rem,.75fr) minmax(0,1.25fr);column-gap:clamp(2rem,4vw,4.5rem)}
 .latest-chronicle>h2 {font-size:clamp(2rem,3vw,3rem);line-height:1.12;margin:0;max-width:12ch}
 .latest-chronicle>article {border-left:1px solid #6b899b70;padding-left:clamp(1.5rem,3vw,3rem)}
}

#world .grid article:nth-child(2)::before {background-image:url("../dynasty-star-atlas/profession-transport.webp")}

#world .grid article:nth-child(1)::before {background-image:url("../dynasty-star-atlas/feature-residential.webp")}
#world .grid article:nth-child(3)::before {background-image:url("../dynasty-star-atlas/feature-solaris.webp")}

@media(min-width:1100px){
 .star-index #stations .atlas-pairs:has(>article:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
 .star-index #factions .atlas-pairs:has(>article:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Compact language labels retain a usable touch area without squeezing the logo. */
@media(max-width:480px){
 body > header .brand {grid-area:1/1/2/3;width:100%}
 body > header .langs {grid-area:2/1/3/3;justify-self:end}
 body > header nav {grid-area:3/1/4/3;padding-top:0}
}
@media(max-width:720px){body > header nav:has(.atlas-nav){grid-template-columns:repeat(3,minmax(0,1fr))}}
main.content .panel .tabs {display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1.5rem}
main.content .panel .tab {min-height:48px;padding:.7rem 1.3rem;border:1px solid #567080;border-radius:3px;background:linear-gradient(150deg,#1d3443,#0c1d29);color:#c8d7de;font:600 1rem/1.25 "Segoe UI",system-ui,sans-serif;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease}
main.content .panel .tab:hover {border-color:#d4b576;color:#fff0d2;background:#233d4c}
main.content .panel .tab.active {border-color:#e0bd7c;background:linear-gradient(145deg,#ead09a,#b28a49);color:#10212d;box-shadow:inset 0 1px #fff4ce80}
@media(prefers-reduced-motion:reduce){main.content .panel .tab{transition:none}}
@media(max-width:720px){
 body > header {column-gap:.5rem}
 header .langs {display:flex;gap:0;align-items:center}
 header .langs a {display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:44px;padding-inline:6px;box-sizing:border-box}
 body > footer a {display:inline-flex;align-items:center;min-height:44px}
}

@media(max-width:720px){
 body .hero .atlas-preview__dots {max-width:270px;gap:2px}
 body .hero .atlas-preview__dot {width:32px;min-width:32px;height:44px;flex:0 0 32px}
}

.star-index .atlas-tabs a {display:inline-flex;align-items:center;justify-content:space-between;gap:.7rem;min-height:44px;text-decoration:none}
.star-index .atlas-count {display:inline-flex;align-items:center;justify-content:center;min-width:1.5rem;height:1.5rem;border-radius:50%;background:#d6b67d20;color:#f2d49d;font-size:.8rem;font-variant-numeric:tabular-nums}
.star-index .atlas-tabs a:hover,.star-index .atlas-tabs a:focus-visible {background:#203748;border-color:#d6b67d}
@media(max-width:360px){body > header nav a{padding-inline:0;font-size:.9rem}}

body > main > .getting-started {padding-block:clamp(2.5rem,5vw,5rem);background:radial-gradient(ellipse at left top,#a47f4220,transparent 60%),#0b1a27;border-block:1px solid #536c7c50}
.getting-started__intro {display:grid;grid-template-columns:1fr 1fr;gap:clamp(1rem,4vw,4rem);align-items:start}
.getting-started__intro h2 {font-size:clamp(2rem,3.5vw,3.6rem);margin:0;color:#f1e5d0}
.getting-started__intro p {margin:0;color:#c2d2da;font-size:1.1rem;line-height:1.7;max-width:48ch}
.start-steps {position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1.5rem,4vw,4rem);list-style:none;padding:0;margin:2.5rem 0 0}
.start-steps::before {content:"";position:absolute;top:1.6rem;left:1.6rem;right:1.6rem;height:1px;background:linear-gradient(90deg,#c2a16d,#647e8a70)}
.start-steps li {position:relative;min-width:0}
.start-step-number {position:relative;display:flex;align-items:center;justify-content:center;width:3.2rem;height:3.2rem;border:1px solid #c5a36e;border-radius:50%;background:#0b1a27;color:#efd09b;font:600 1rem/1 ui-monospace,monospace;letter-spacing:.06em}
.start-steps h3 {font-size:clamp(1.2rem,1.7vw,1.55rem);line-height:1.3;margin:1.25rem 0 .75rem;color:#f0dfc4}
.start-steps p {line-height:1.75;margin:0;color:#b9cdd7}
@media(max-width:720px){
 .getting-started__intro,.start-steps {grid-template-columns:minmax(0,1fr)}
 .start-steps {margin-top:2rem;gap:1.75rem}
 .start-steps::before {display:none}
 .start-steps li+li {border-top:1px solid #5a738350;padding-top:1.75rem}
}

