/* Magister Abyssi · design scoped to the dossier. */
body[data-page=magister]{--codex-tint:#bca3e2}
.magister-hero{background:linear-gradient(90deg,#0c0e16fa 3%,#141225de 54%,#14111bd0),url('art/underdark.webp') center 45%/cover;position:relative;border-bottom:1px solid #ad8bc96b;padding:clamp(32px,5vw,75px) 0;isolation:isolate}
.magister-hero:before{content:"";position:absolute;inset:12px;border:1px solid #d6b88842;pointer-events:none;clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}
.magister-hero-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:28px;align-items:center;position:relative}.magister-hero h1{font-size:clamp(44px,6.2vw,92px);line-height:.97;letter-spacing:-.045em;margin:12px 0 15px;color:#f0e2c7}.magister-hero h1 span{color:#d2b0f0}.magister-hero h2{font-family:Georgia,serif;font-weight:400;color:#dbc09a;font-size:clamp(22px,3vw,36px);margin:0 0 15px}.magister-hero p{max-width:710px}.magister-motto{font-family:Georgia,serif;font-style:italic;border-left:2px solid #d6b888;padding-left:15px;color:#e3d0ee}.magister-hero small{color:#c7b9d3}.magister-sigil{display:grid;place-items:center;max-width:320px;width:100%;justify-self:center}.magister-sigil svg{width:100%;height:auto;max-height:310px;filter:drop-shadow(0 0 25px #ac8ce65c)}.magister-sigil span{font-size:10px;letter-spacing:.25em;color:#d6b888;margin-top:-5px}.magister-main{padding-top:32px}.magister-main section{margin:35px 0;scroll-margin-top:130px}.mg-index{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0 30px}.mg-index a{font-size:12px}.mg-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.mg-stat{position:relative;border:1px solid #8e78aa65;background:linear-gradient(135deg,#262033,#151621);padding:18px;border-radius:8px;min-width:0}.mg-stat strong{display:block;font:clamp(26px,4vw,38px)/1 Georgia,serif;color:#e1c599}.mg-stat span{display:block;color:#d1c7df;font-size:12px;margin-top:6px}.mg-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:16px;border-bottom:1px solid #a68c6755;padding-bottom:12px}.mg-heading h2{margin:4px 0 0;font:clamp(25px,3.3vw,38px)/1.14 Georgia,serif;color:#eddfc7}.mg-heading p{max-width:520px;color:#c0b9cc;font-size:13px;margin:0}.mg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.mg-panel{padding:20px;border:1px solid #77618d77;border-radius:9px;background:linear-gradient(135deg,#25203399,#151621);box-shadow:0 7px 22px #0002;min-width:0}.mg-panel h3{margin:0 0 9px;font:22px/1.24 Georgia,serif;color:#e7d7b8}.mg-panel p{margin:8px 0;color:#c9c3d2}.mg-panel .eyebrow{display:block;margin-bottom:6px}.mg-meter{display:flex;gap:5px;margin:10px 0}.mg-meter span{height:11px;flex:1;background:#292839;border:1px solid #4f455e;border-radius:2px;transform:skewX(-12deg)}.mg-meter span.on{background:linear-gradient(180deg,#dbc5ff,#9771c4 50%,#6b478f);border-color:#b69ddb;box-shadow:0 0 9px #ae98e029}.mg-meter.gold span.on{background:linear-gradient(180deg,#e8d7a8,#a47f49);border-color:#ceb581}.mg-score{display:flex;justify-content:space-between;gap:10px;align-items:baseline}.mg-score strong{color:#e9d4ac;font-size:15px}.mg-score small{color:#d6b888;font-variant-numeric:tabular-nums;white-space:nowrap}.mg-links{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.mg-links a{font-size:12px;overflow-wrap:anywhere}.mg-evidence{scroll-margin-top:180px}.mg-evidence blockquote{margin:13px 0;padding:12px 16px;border-left:2px solid #b29ad8;background:#1a1825;font:italic 20px/1.45 Georgia,serif;color:#eee3f5}.mg-evidence blockquote small{display:block;font:11px/1.5 system-ui,sans-serif;color:#baa9cf;margin-top:6px}.mg-evidence dl{margin:12px 0}.mg-evidence dt{font-weight:700;color:#dfc497;font-size:12px;letter-spacing:.04em;text-transform:uppercase;margin-top:10px}.mg-evidence dd{margin:4px 0 0;color:#ccc6d6}.mg-filter{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:16px}.mg-filter input{max-width:100%;flex:1;min-width:180px}.mg-filter select{max-width:100%}.mg-orbit-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;align-items:center}.mg-orbit{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;position:relative;padding:16px;background:radial-gradient(ellipse,#3c284c88,#15121eb0 65%),url('art/profondita-sm.webp') center/cover;border:1px solid #8c719955;border-radius:12px;isolation:isolate}.mg-orbit-lines{position:absolute;inset:0;width:100%;height:100%;z-index:-1;opacity:.66;pointer-events:none}.mg-node{display:flex;align-items:center;gap:8px;flex-direction:column;justify-content:center;text-align:center;border:1px solid var(--node);border-radius:8px;min-width:0;padding:9px 4px;background:#171525ec;color:#f1e5d7;font:inherit;cursor:pointer;position:relative}.mg-node[aria-pressed=true]{box-shadow:0 0 0 2px var(--node),0 0 21px #b69be34a;background:linear-gradient(135deg,#40304e,#231e2e)}.mg-node img{width:52px;height:52px;border-radius:50%;border:1px solid var(--node);object-fit:cover;object-position:50% 24%;background:#252132}.mg-node strong{font:16px/1.1 Georgia,serif}.mg-node small{font-size:11px;color:var(--node)}.mg-core{display:grid;place-content:center;text-align:center;min-width:0;color:#d6b888;background:#271e34d9;border:1px solid #d6b88866;border-radius:50%;aspect-ratio:1;align-self:center;justify-self:center;width:95%;font:16px Georgia,serif}.mg-core small{font:10px system-ui,sans-serif;letter-spacing:.08em}.mg-detail{min-height:230px}.mg-detail h3{font-size:28px}.mg-horror{overflow:hidden;padding:0}.mg-horror img{width:100%;height:155px;object-fit:cover;display:block}.mg-horror>div{padding:17px}.mg-cycle{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;align-items:stretch}.mg-step{text-align:center;padding:16px 10px;border:1px solid #8c719976;background:#231d30;border-radius:8px}.mg-step b{display:block;font-family:Georgia,serif;font-size:17px;color:#ead1a2}.mg-step small{display:block;color:#c9bfd7;margin-top:5px}.mg-voices{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.mg-voice{padding:13px;border-left:2px solid #a98bc7;background:#1b1926;min-width:0}.mg-voice h3{font:19px Georgia,serif;margin:0;color:#e8d5b1}.mg-voice p{font-size:13px;margin:5px 0}.mg-risk{border-left:3px solid #bc8e7a}.mg-risk h3 small{display:block;color:#d6a58e;font:11px system-ui,sans-serif;text-transform:uppercase;letter-spacing:.1em;margin-top:5px}.mg-moment{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:12px;border-bottom:1px solid #5c4c6c66;padding:11px 0}.mg-moment b{font:26px Georgia,serif;color:#d6b888}.mg-moment strong{display:block;color:#e7dac5}.mg-moment small{display:block;color:#bfb5ce}.mg-chart{display:grid;grid-template-columns:repeat(13,1fr);gap:8px;align-items:end;margin:16px 0}.mg-col{text-align:center;min-width:0}.mg-col .barbox{height:100px;display:flex;align-items:end;justify-content:center}.mg-col i{display:block;width:70%;background:linear-gradient(#d6b888,#77619c);border-radius:3px 3px 0 0;min-height:2px}.mg-col b{font-size:10px;display:block;color:#dcc6e8}.mg-col small{display:block;font-size:10px;color:#d1c5df}.mg-method{border:1px solid #77618d77;padding:16px;border-radius:8px;background:#171624}.mg-method summary{cursor:pointer;color:#dfc397;font-weight:700}.mg-conclusion{font:italic clamp(21px,3vw,32px)/1.45 Georgia,serif;color:#e7d5bc;text-align:center;padding:28px;border-top:1px solid #b99b70;border-bottom:1px solid #b99b70;background:radial-gradient(ellipse,#30223d,#14131d)}.magister-main a:focus-visible,.magister-main button:focus-visible,.magister-main input:focus-visible,.magister-main select:focus-visible{outline:2px solid #ead1a2;outline-offset:3px}
@media(max-width:900px){.mg-orbit-layout{grid-template-columns:1fr}.mg-orbit{max-width:640px;margin:auto;width:100%}.mg-cycle{grid-template-columns:repeat(3,1fr)}.mg-heading{display:block}.mg-heading p{margin-top:8px}.magister-hero-grid{grid-template-columns:1.6fr .8fr}.mg-chart{grid-template-columns:repeat(7,1fr)}}
@media(max-width:600px){.magister-hero-grid{grid-template-columns:1fr;gap:12px}.magister-sigil{max-width:155px;grid-row:1;justify-self:start}.magister-hero h1{font-size:clamp(42px,11vw,62px)}.magister-hero:before{inset:6px}.mg-stats{grid-template-columns:repeat(2,1fr);gap:8px}.mg-stat{padding:13px}.mg-grid,.mg-voices{grid-template-columns:1fr}.mg-orbit{padding:10px;gap:7px}.mg-node{padding:7px 3px}.mg-node img{width:38px;height:38px}.mg-node strong{font-size:13px}.mg-node small{font-size:9px}.mg-core{font-size:12px}.mg-core small{font-size:8px}.mg-cycle{grid-template-columns:repeat(2,1fr)}.mg-moment{grid-template-columns:35px 1fr;gap:8px}.mg-moment a{grid-column:2;justify-self:start}.mg-chart{grid-template-columns:repeat(5,1fr)}.mg-panel{padding:15px}.mg-horror{padding:0}.mg-filter{display:grid;grid-template-columns:1fr;gap:8px}.mg-filter input{width:100%;min-width:0}.mg-filter select{width:100%}}
@media(prefers-reduced-motion:reduce){.magister-main *{scroll-behavior:auto;transition:none}}
