/* Publication masthead and editorial spreads */
.mast{position:sticky;top:0;z-index:40;color:#f6f3e9;background:#101c21;border-bottom:1px solid #467476;box-shadow:0 6px 25px #050e1229;font:600 .92rem/1.3 system-ui,sans-serif}
.mast-inner{max-width:1390px;margin:auto;display:flex;align-items:center;gap:clamp(12px,3vw,44px);padding:12px clamp(12px,4vw,52px);min-height:62px}
.mast a,.mast summary{color:inherit;text-decoration:none;cursor:pointer}
.mast-brand{display:inline-flex;align-items:center;gap:.35em;margin-right:auto;font-size:clamp(.94rem,2vw,1.28rem);letter-spacing:-.045em;white-space:nowrap}
.mast-brand img{margin-right:.24em}.mast-brand strong{color:#9ae7d9}
.mast-shortcuts{display:flex;gap:26px}.mast [aria-current=page],.mast a:hover,.mast summary:hover{color:#9ae7d9}
.mast-directory{position:relative;overflow:visible;background:transparent;border:0;border-radius:0;margin:0}.mast-directory summary{padding:.7em .3em;display:flex;align-items:center;gap:.55em}.mast-directory summary::before{content:none}.mast-directory summary::after{content:"⌄";color:#a1d8cc}.mast-directory[open] summary::after{transform:rotate(180deg)}
.mast-directory>div{position:absolute;top:calc(100% + 9px);left:0;display:grid;grid-template-columns:repeat(2,minmax(118px,1fr));width:max-content;padding:12px;background:#132529;border:1px solid #477678;border-radius:10px;box-shadow:0 15px 35px #0008}
.mast-directory a{padding:10px}.mast-directory a:hover{background:#21383c;border-radius:5px}
.mast-search{padding:.6em .9em;border:1px solid #527172;border-radius:24px}.mast-search span{font-size:1.1rem}
.mast :focus-visible,.planner :focus-visible,.cover-story a:focus-visible{outline:3px solid #9ce6d2;outline-offset:3px}
.cover-story{position:relative;display:grid;grid-template-columns:1.3fr .7fr;align-items:end;gap:30px;min-height:clamp(450px,68vw,720px);isolation:isolate;overflow:hidden;background:#182b32;color:#fff4df;padding:clamp(30px,5.2vw,90px)}
.cover-story>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3}
.cover-story:before,.directory-cover figure:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(0deg,#081318ed,transparent 72%);z-index:-2}
.cover-story:after{content:"";position:absolute;inset:-28%;pointer-events:none;z-index:-1;background:linear-gradient(116deg,transparent 36%,#ffab7921 48%,transparent 58%)}
.cover-title p,.record-kind,.directory-cover figcaption{font:650 .73rem/1.4 system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.cover-story h1{font:500 clamp(4rem,9vw,9rem)/.84 Georgia,serif;letter-spacing:-.065em;margin:.16em 0 0;color:inherit}
.cover-story h1 em{color:#ffe3b6;font-weight:400}.cover-caption{max-width:350px;margin-left:auto;font-size:clamp(1rem,1.8vw,1.3rem);color:#fcfaf6}
.cover-caption a{display:flex;justify-content:space-between;color:#aeffeb;font-weight:700;border-top:1px solid #91a9a3;padding-top:.7em}
.directory-cover{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.95fr);align-items:stretch;border:1px solid #365052;border-radius:16px;overflow:hidden;background:#14282c;margin:1.4rem 0 2.5rem}
.directory-cover>div{align-self:center;padding:clamp(24px,4vw,58px)}
.directory-cover h1{font:500 clamp(2.7rem,5vw,5.7rem)/.97 Georgia,serif;letter-spacing:-.05em;color:#fff0d6;margin:0}
.directory-cover p{color:#c4d4cd;max-width:43ch;margin:.9em 0 0}
.directory-cover figure{position:relative;isolation:isolate;min-height:220px;margin:0}.directory-cover img{position:absolute;width:100%;height:100%;object-fit:cover;z-index:-3}
.directory-cover figcaption{position:absolute;bottom:12px;right:16px;color:white;font-size:.65rem}
.card.record-tile{padding:clamp(17px,2vw,30px);background:linear-gradient(145deg,#192b30,#131c22);border:1px solid #314b4e;border-radius:13px;display:flex;flex-direction:column;align-items:flex-start;gap:.6rem}
.record-kind{color:#95d4ca}.record-tile .t{color:#fff2db;font:500 1.5rem/1.1 Georgia,serif}.record-tile .d{color:#bccac8}.record-tile .more{margin-top:auto!important}
.archive-note{border-left:3px solid #acd7cb;padding:.8em 1.1em;background:#18292b;color:#d1dfd9}
.archive-links{display:grid;gap:1px;border-block:1px solid #37535a}.archive-links a{display:flex;justify-content:space-between;gap:12px;padding:14px;background:#16262a;color:#e1eee7}.archive-links span{color:#97daca}
.planner-cover{background:linear-gradient(90deg,#0b1824f2 5%,#0d1b25bb 47%,#06101b30),url(/images/editorial/streaming-studio.webp) center 52%/cover}
.setup-options .gear-row{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:.5rem;padding:13px;background:#16262b;border:1px solid #344c50;border-radius:10px}.gear-row label{display:flex;gap:8px;align-items:center}.gear-row select{width:100%;min-width:0;color:#e4ede7;background:#101e23;border:1px solid #546767;border-radius:5px;padding:9px;font:inherit;font-size:.86rem}
.planner [hidden]{display:none!important}.setup-options{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.planner .tier-picker label:has(input:checked),.gear-row:has(input:checked){border-color:#79c4b4}
.planner .setup-receipt:focus{outline:none}.setup-receipt header output{color:#a7edd7}
@media(prefers-reduced-motion:no-preference){
 .cover-story:after{animation:coastal-light 14s ease-in-out infinite alternate}
 .mast{animation:mast-light 10s ease-in-out infinite alternate}
 .setup-receipt:not([hidden]){animation:print-in .42s ease-out}
 @keyframes coastal-light{from{transform:translateX(-13%);opacity:.45}to{transform:translateX(16%);opacity:.95}}
 @keyframes mast-light{to{border-color:#877074;box-shadow:0 2px 13px #e78a8624}}
 @keyframes print-in{from{opacity:.2;transform:translateY(9px)}to{opacity:1;transform:none}}
}
@media(max-width:750px){.mast-shortcuts{display:none}.mast-directory>div{left:auto;right:-50px}.cover-story{grid-template-columns:1fr;align-content:end;gap:20px}.cover-caption{margin:0;max-width:34ch}.directory-cover{grid-template-columns:1fr}.directory-cover figure{min-height:140px;order:-1}}
@media(max-width:450px){.mast-brand img{width:23px;height:23px}.mast-inner{gap:10px}.mast{font-size:.8rem}.mast-search{padding:.45em}.mast-search span{display:none}.mast-brand{gap:.18em}}

.setup-options{display:grid}
.setup-options .gear-row label{padding:0;background:none;border:0}
.archive-edition{margin:2.5rem 0;border:1px solid #375052;background:#152528;border-radius:12px}
.archive-edition>summary{cursor:pointer;padding:1rem 1.4rem;color:#a9e9d8;font-weight:650}
.archive-edition>div{padding:0 clamp(16px,3vw,36px) 24px}
.setup-receipt{scroll-margin-top:85px}

/* Sunset studio: the same light falls on the backdrop, panels and controls. */
:root {
  --studio-floor: #100e20;
  --lilac: #decdff;
  --edge: rgb(215 197 255 / 30%);
  --smoked-glass: radial-gradient(ellipse at 0% 0%, #ac8ae32e, transparent 54%),
    linear-gradient(128deg, #312a4699, #141526e8 63%, #393049b3);
  --glass-shadow: inset 0 1px 0 #ffffff20, inset 0 -1px 0 #f1c5ff0e, 0 14px 36px -18px #090418e6;
}
body, body.home-page {
  background: linear-gradient(100deg, #100c21e6, #19122ddb 58%, #24152cd6),
    url('/images/editorial/sunset-arc.webp') 65% center / cover fixed, var(--studio-floor);
}
.mast {
  background: linear-gradient(105deg, #221a33f5, #171524fa 65%, #292034f5);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 6px 26px #0a051b50;
  animation: none;
}
.mast-inner {position:relative; gap:clamp(12px,2vw,32px)}
.mast-brand strong,.mast [aria-current=page],.mast a:hover,.mast summary:hover {color:var(--lilac)}
.mast details {position:static; margin:0; border:0; overflow:visible; background:none}
.mast details>summary {
  display:flex; align-items:center; justify-content:center; gap:9px; min-height:42px;
  padding:0 14px; border:1px solid var(--edge); border-radius:24px;
  background:linear-gradient(145deg,#50415e66,#252031); box-shadow:inset 0 1px 0 #ffffff13;
}
.mast details[open]>summary,.mast details>summary:hover {border-color:#ad98c6; background:#3b304a}
.mast details>summary::before,.mast details[open]>summary::before,.mast summary::-webkit-details-marker {content:none; display:none}
.mast-directory>summary::after {
  content:""; width:6px; height:6px; border-right:1.5px solid; border-bottom:1.5px solid;
  transform:translateY(-2px) rotate(45deg); margin-left:2px;
}
.mast-directory[open]>summary::after {transform:translateY(2px) rotate(225deg)}
.mast summary svg {color:#dfc9ff; flex:none}
.mast-finder kbd {font:500 .72rem/1.3 system-ui; padding:1px 5px; color:#d7cadf; border:1px solid var(--edge); border-radius:4px}
.mast .atlas-menu,.mast-finder form {
  position:absolute; top:calc(100% + 7px); left:auto; right:clamp(12px,4vw,52px); margin:0;
  padding:20px; color:#f6f1ff; border:1px solid #86729c; border-radius:18px;
  background:radial-gradient(at top left,#48355a,#201c31 65%); box-shadow:inset 0 1px 0 #ffffff22,0 18px 50px #080615aa;
  max-height:calc(100dvh - 88px); overflow:auto;
}
.mast .atlas-menu {width:min(550px,calc(100% - 24px)); display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px}
.mast .atlas-menu section {margin:0; min-width:0}
.mast .atlas-menu h2,.home-page .mast .atlas-menu h2 {
  margin:3px 8px 8px; color:#cab6e1; font:650 .68rem/1.4 system-ui; text-transform:uppercase; letter-spacing:.11em;
}
.mast .atlas-menu a {display:flex; align-items:center; min-height:40px; padding:8px; border-radius:7px; font-size:.9rem}
.mast .atlas-menu a:is(:hover,:focus-visible,[aria-current=page]) {color:#fff; background:#ffffff12}
.mast-finder form {width:min(420px,calc(100% - 24px))}
.mast-finder label {display:block; margin-bottom:10px; font-size:1rem}
.mast-finder form div {display:flex; gap:8px}
.mast-finder input,.mast-finder button {font:inherit; min-height:44px; border-radius:9px; padding:9px 12px}
.mast-finder input {min-width:0; flex:1; color:#fff; background:#151322; border:1px solid #726382}
.mast-finder button {color:#241832; background:#e4cafa; border:0; cursor:pointer}
.cover-story {color:#fff6fa}
.cover-story>img {object-position:62% 50%}
.cover-story::before {background:linear-gradient(0deg,#140b21f7, #1c112d66 34%, transparent 66%)}
.cover-story h1 em,.cover-caption a {color:#ffdfeb}
.cover-caption a {border-color:#d9b6d2}
.directory-cover,.page-head {
  border-color:var(--edge); background:radial-gradient(at top left,#69486a77,transparent 65%),linear-gradient(125deg,#322a48eb,#191626d9);
  box-shadow:var(--glass-shadow);
}
.directory-cover h1 {color:#fff0fa}
.directory-cover p,.record-tile .d {color:#d0c9da}
.record-kind,.planner-label,.home-page .eyebrow {color:#e2c2f8}
.cover-caption,.directory-cover>div {text-wrap:pretty}

main :is(.card,.setup-feature,.gear-row,.tier-picker label,.setup-receipt,.stat,.archive-edition,.table-wrap,details),
.home-page .home-feed .card,.home-page .media-card {
  position:relative; border:1px solid var(--edge); border-radius:16px;
  background:var(--smoked-glass); box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
}
.home-page .atlas-card {border-radius:18px; border-color:var(--edge); box-shadow:var(--glass-shadow)}
.atlas-card-copy {background:linear-gradient(0deg,#151021ed,transparent)}
.home-page .atlas-card-copy>span,.home-page .media-card .more {color:#ffd4ea}
.planner .tier-picker label:has(:checked),.planner .gear-row:has(:checked) {border-color:#dbc0fa; box-shadow:inset 0 1px 0 #ffffff33,0 0 0 1px #dac2f336}
.gear-row select {background:#1d1929; border-color:#6c607d}
.archive-links a {background:#282239d9; color:#f4edf8}
.archive-links span,.archive-edition>summary {color:#e1cafa}
.archive-note {border-color:#caa6dd; background:#49375066; color:#e6dfeb; border-radius:0 8px 8px 0}
.badge.archive-label,.home-page .badge.archive-label {
  gap:6px; white-space:nowrap; text-transform:none; letter-spacing:.015em; font:550 .73rem/1.4 var(--font-body);
  color:#e9d7fb; border:1px solid #c690ec44; background:#463454a8; padding:4px 8px; border-radius:6px;
}
.archive-label::before {content:""; width:7px; height:9px; border:1px solid currentColor; border-radius:2px; box-shadow:inset 0 2px #dbc1f3}

/* A masked highlight travels along the rim without washing out text or photographs. */
@property --rim-angle {syntax:'<angle>'; inherits:false; initial-value:128deg}
@supports (mask-composite:exclude) {
  main :is(.card,.setup-feature,.gear-row,.tier-picker label,.setup-receipt,.stat,.archive-edition)::after,
  .home-page .home-feed .card::after,.home-page .atlas-card::before {
    content:""; position:absolute; inset:0; height:auto; padding:1px; z-index:2; border-radius:inherit;
    opacity:.8; pointer-events:none;
    background:conic-gradient(from var(--rim-angle),transparent 9%,#eed4ffa3 19%,transparent 37%,transparent 60%,#ffc2c487 76%,transparent 91%);
    mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); mask-composite:exclude;
  }
}
@media(prefers-reduced-motion:no-preference) {
  @keyframes studio-rim {from{--rim-angle:128deg}to{--rim-angle:488deg}}
  main :is(.card,.setup-feature,.gear-row,.tier-picker label,.archive-edition):is(:hover,:focus-within)::after,
  .home-page .atlas-card::before {animation:studio-rim 8s linear infinite}
}
.home-page #home-cheats .card::before {display:none}
main .card:focus-within,main .card:hover,.home-page .home-feed .card:hover {border-color:#c797c3}
.code-sequence {
  display:flex; flex-wrap:wrap; gap:4px; list-style:none; padding:0; margin:.3rem 0;
  font-variant-numeric:tabular-nums;
}
.code-sequence li {
  display:grid; justify-items:center; align-content:center; gap:1px; min-width:29px; min-height:44px; padding:3px 5px;
  color:#fff5ff; background:linear-gradient(#43374f,#262235); border:1px solid #806e8e; border-radius:7px; box-shadow:0 2px 0 #100c19;
}
.code-sequence li:first-child {border-color:#efb9d3}
.code-sequence small {color:#d7c5e4; font:600 10px/1 system-ui}
.code-sequence kbd {background:none; border:0; padding:0; color:inherit; font:650 17px/1.1 system-ui}
#cheat-root th:nth-child(3) {width:37%}
#cheat-root td b {color:#ffdaeb}
#cheat-root tr:hover {background:#f5c7ff09}
@media(max-width:800px) {
  #cheat-root .table-wrap {background:none; border:none; box-shadow:none; overflow:visible; backdrop-filter:none}
  #cheat-root table,#cbody {display:block; min-width:0}
  #cheat-root thead {position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%)}
  #cbody tr {display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:9px 12px; margin:12px 0; padding:16px; border:1px solid var(--edge); border-radius:14px; background:var(--smoked-glass); box-shadow:var(--glass-shadow)}
  #cbody td {padding:0; border:0; grid-column:1/-1; background:none}
  #cbody td:nth-child(2):not(:empty)::before {content:"Unlock · "; color:#e8c9df; font-weight:600}
  #cbody td:nth-child(4) {grid-column:1}
  #cbody td:nth-child(5) {grid-column:2}
}
@media(max-width:600px) {
  .mast-inner {gap:8px}
  .mast details>summary {padding:0 10px; gap:6px}
  .mast-finder summary span,.mast-finder summary kbd {display:none}
  .mast-finder summary {min-width:42px}
  .mast .atlas-menu,.mast-finder form {right:12px}
  .mast .atlas-menu {padding:13px 8px; gap:2px}
  .mast .atlas-menu a {font-size:.81rem; padding:7px}
  .mast .atlas-menu h2 {letter-spacing:.06em}
  body,body.home-page {background-attachment:scroll; background-size:auto,auto 100vh; background-repeat:no-repeat; background-color:var(--studio-floor)}
}
