/* Shared site shell and focused reading layouts; loaded after page styles. */
:root{--qd-ink:#e6e9df;--qd-muted:#a8b6aa;--qd-line:#8a9d8533;--qd-gold:#e4c58c}
.qd-shell-header{box-sizing:border-box;max-width:1440px;width:100%;min-height:84px;margin:0 auto;padding:18px 40px;display:flex;align-items:center;gap:32px;background:#101c19;border:0;border-bottom:1px solid var(--qd-line);position:relative;z-index:50;color:var(--qd-ink)}
.qd-shell-header .brand{display:flex;align-items:center;gap:12px;text-decoration:none;white-space:nowrap;color:inherit;font-size:20px}
.qd-shell-header .brand div{display:grid;gap:4px}.qd-shell-header .brand strong{font-size:22px;letter-spacing:3px}.qd-shell-header .brand small{font-size:10px;font-weight:400;color:var(--qd-muted);letter-spacing:.5px;margin:0}
.qd-shell-header .site-navigation{display:flex;align-items:center;justify-content:center;gap:8px;flex:1;min-width:0;width:auto;margin:0;position:static;padding:0;border:0;background:none;box-shadow:none;overflow:visible}
.qd-shell-header .site-navigation>a{display:block;min-width:70px;min-height:44px;box-sizing:border-box;padding:12px 18px;border-radius:7px;text-align:center;text-decoration:none;color:var(--qd-muted);font-size:14px;line-height:20px;white-space:nowrap}
.qd-shell-header .site-navigation>a:hover,.qd-shell-header .site-navigation>a[aria-current=page]{color:var(--qd-gold);background:#e4c58c0d}
.qd-shell-header .site-navigation>a:not([aria-current=page]){background:transparent;color:var(--qd-muted)}
.site-layout .btn.primary,.qd-document .btn.primary{background:var(--qd-gold);color:#203026;border-color:var(--qd-gold)}
.qd-shell-header .site-account{display:flex;align-items:center;gap:8px;flex:0 0 auto}.qd-my-link{color:var(--qd-ink);padding:12px 16px;border:1px solid var(--qd-line);border-radius:7px;text-decoration:none;font-size:13px}
.qd-section-nav{box-sizing:border-box;max-width:1300px;margin:0 auto;display:flex;gap:8px;align-items:center;justify-content:flex-start;padding:16px 0;border-bottom:1px solid var(--qd-line);overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;white-space:nowrap}
.qd-section-nav>a{flex:0 0 auto;display:block;padding:10px 16px;border-radius:6px;text-decoration:none;font-size:13px;line-height:20px;min-height:40px;color:var(--qd-muted)}
.qd-section-nav>a:hover{background:#fff1;color:#fff}.qd-section-nav>a[aria-current=page]{background:#d5c18b15;color:var(--qd-gold)}
.site-layout .content>.qd-section-nav{max-width:1300px}.qd-shell-header a:focus-visible,.qd-section-nav a:focus-visible{outline:2px solid var(--qd-gold);outline-offset:3px}
.home-layout.home-focused .world-hero-scene{padding-top:48px;padding-bottom:40px;gap:44px}.home-layout.home-focused .world-hero-art{aspect-ratio:1.5;box-shadow:none;border-radius:12px}.home-layout.home-focused .world-hero-scene h1{font-size:clamp(34px,3.6vw,52px);line-height:1.4;margin:14px 0 20px}.home-layout.home-focused .world-hero-scene .home-intro{font-size:15px}
.home-focused .home-section{padding:38px 0!important;margin:0 auto;max-width:1300px;border-top:1px solid var(--qd-line)}
.home-focused .home-section-heading{margin-bottom:24px;align-items:end}.home-focused .home-section-heading h2{font-size:26px;line-height:1.5;margin:8px 0}.home-focused .home-section-heading p{font-size:13px;line-height:1.8;margin:8px 0;color:var(--qd-muted)}
.home-focused .home-residents .resident-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-focused .resident-card{padding:16px;min-height:76px}.home-focused .resident-card .avatar{width:42px;height:42px}
.home-focused .home-gallery .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.home-focused .photo-post-header{padding:14px}.home-focused .photo-caption{padding:0 14px 14px}.home-focused .photo-caption h3{font-size:15px}.home-focused .photo-story{font-size:13px}.home-focused .photo-card img{aspect-ratio:16/10;object-fit:cover;max-height:250px}
.home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}.home-shortcut{padding:18px;border:1px solid var(--qd-line);border-radius:9px;text-decoration:none;background:#ffffff03;display:flex;align-items:center;gap:12px}.home-shortcut:hover{background:#fff1}.home-shortcut>span{display:grid;gap:6px}.home-shortcut strong{font-size:15px;color:var(--qd-ink);font-weight:500}.home-shortcut small{font-size:11px;color:var(--qd-muted)}.home-shortcut>.icon{color:var(--qd-gold);width:21px;height:21px;flex:0 0 auto}
.home-focused .home-journal{display:grid;grid-template-columns:1fr 1.4fr;gap:40px}.home-focused .home-journal h2{font-size:25px}.home-focused .home-journal-list{margin:0}.home-focused .home-journal-list>a{padding:14px 0}.home-focused .home-journal-list h3{font-size:14px}
.home-join-choices,.join-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.join-choice{min-width:0;border:1px solid var(--qd-line);border-radius:12px;padding:26px;background:#ffffff03}.join-choice>small{font-size:11px;letter-spacing:1px;color:var(--qd-gold)}.join-choice h2,.join-choice h3{font-size:23px;line-height:1.5;margin:10px 0}.join-choice p{color:var(--qd-muted);font-size:14px;line-height:1.8}.join-choice .form-actions{margin-top:22px;display:flex;gap:10px;flex-wrap:wrap}
.join-secondary{display:flex;flex-wrap:wrap;gap:12px 26px;margin-top:20px;color:var(--qd-muted);font-size:12px;line-height:1.9}.join-secondary a{text-decoration:underline;text-underline-offset:4px}.home-focused .home-footer{margin-top:24px;padding-block:30px}
.connection-start{display:flex;align-items:center;justify-content:space-between;gap:24px}.connection-start p{margin:8px 0;color:var(--qd-muted);font-size:14px;line-height:1.8}.connection-start h2{margin:0}.connection-start .form-actions{display:flex;flex-wrap:wrap;gap:10px;flex:0 0 auto}
.advanced-settings{margin-top:24px;border:1px solid var(--qd-line);border-radius:10px;padding:20px}.advanced-settings>summary{cursor:pointer;color:var(--qd-ink);line-height:1.7;font-size:14px}.advanced-settings>summary small{display:block;margin:6px 0 0 18px;font-size:12px;color:var(--qd-muted)}.advanced-settings[open]>summary{margin-bottom:22px}.advanced-settings>.panel:last-child{margin-bottom:0}
.help-topics{display:grid;gap:12px;margin-top:28px}.help-topics details{border:1px solid var(--qd-line);border-radius:8px;padding:18px 22px}.help-topics summary{cursor:pointer;font-size:15px;line-height:1.7}.help-topics p{font-size:14px;line-height:1.9;color:var(--qd-muted);margin:14px 0 0}.help-topics code{overflow-wrap:anywhere}
.home-focused .home-film{margin-top:24px;border:1px solid var(--qd-line);border-radius:8px;padding:18px}.home-focused .home-film>summary{font-size:14px;cursor:pointer}.home-focused .home-film[open]>summary{margin-bottom:20px}.home-focused .home-film-link{max-width:720px;margin:auto}.home-focused .home-film video{width:100%;max-height:460px}.home-focused .home-film-link img{width:100%}
.qd-document{background:#101d1b;color:var(--qd-ink)}.qd-document>.qd-section-nav{max-width:1180px;padding-inline:16px}.qd-document main{box-sizing:border-box}.qd-document .help-doc{max-width:1180px;margin:28px auto 60px}.qd-document .aincrad-document{max-width:1060px;margin:32px auto;padding-top:0}
.qd-document .music-toolbar{display:flex;gap:10px;padding:0;margin:0 0 20px;align-items:center;justify-content:flex-start;max-width:none;border:0;background:none}.music-toolbar button{padding:10px 18px}.qd-document .music-toolbar [aria-current=page]{border-color:#a9976c;background:#e4c58c10;color:var(--qd-gold)}.qd-document .intro{padding:0 0 20px}.qd-document .intro h1{font-size:36px}.qd-document #content{padding-top:32px}.qd-document .download-intro{display:block;padding:0 0 24px;margin:0;max-width:none;border:0}.qd-document .download-intro h1{font-size:32px}
.download-audience{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.download-audience>a{display:inline-block;border:1px solid var(--qd-line);padding:12px 18px;border-radius:7px;color:var(--qd-ink);text-decoration:none;font-size:14px}.download-audience>a:hover{background:#fff1}.optional-downloads{padding:22px;margin:20px 0;border:1px solid var(--qd-line);border-radius:10px}.optional-downloads>summary{font-size:18px;cursor:pointer;line-height:1.6}.optional-downloads>p{color:var(--qd-muted);font-size:13px;line-height:1.8}.optional-downloads>.panel{margin-top:20px}
@media(max-width:1380px){.home-focused .home-section{margin-inline:40px}.qd-section-nav,.site-layout .content>.qd-section-nav{margin-inline:40px}}
@media(max-width:900px){.qd-shell-header{padding:16px 22px;gap:16px;flex-wrap:wrap;min-height:76px}.qd-shell-header .brand small{display:none}.qd-shell-header .site-navigation{order:3;flex-basis:100%;gap:6px;justify-content:space-between;box-shadow:none;max-height:none;overflow:visible}.qd-shell-header .site-navigation>a{flex:1;padding:10px;min-width:0;font-size:14px;text-align:center}.qd-shell-header .site-account{margin-left:auto}.qd-shell-header .mobile-menu,.home-layout .nav-scrim,.site-layout .nav-scrim{display:none!important}.menu-open .qd-shell-header .site-navigation{flex-direction:row}.home-focused .home-section{margin-inline:24px}.qd-section-nav,.site-layout .content>.qd-section-nav{margin-inline:24px;padding-block:10px}.qd-section-nav>a{padding-inline:12px}.home-layout.home-focused .world-hero-scene{gap:24px;padding:30px 24px}.home-layout.home-focused .world-hero-art{aspect-ratio:1.7}.home-shortcuts{grid-template-columns:1fr 1fr}.home-focused .home-residents .resident-grid{grid-template-columns:1fr 1fr}.home-focused .home-journal{gap:24px}.qd-document .help-doc{margin-top:16px}.connection-start{align-items:flex-start;flex-direction:column}.home-focused .home-section-heading{align-items:start;gap:16px}}
@media(max-width:600px){.qd-shell-header{padding:14px 16px 8px;gap:12px}.qd-shell-header .brand strong{font-size:20px}.qd-shell-header .brand img{width:30px;height:30px}.qd-shell-header .site-account>.home-login{padding:9px 11px;font-size:12px}.qd-shell-header .site-navigation>a{min-height:42px}.qd-section-nav,.site-layout .content>.qd-section-nav{margin-inline:16px}.qd-document>.qd-section-nav{margin-inline:0;padding-inline:16px}.home-layout.home-focused .world-hero-scene{padding:28px 20px}.home-layout.home-focused .world-hero-scene h1{font-size:34px}.home-focused .home-section{margin-inline:20px;padding-block:28px!important}.home-focused .home-section-heading{flex-direction:column}.home-focused .home-residents .resident-grid,.home-focused .home-gallery .photo-grid,.home-focused .home-journal,.home-join-choices,.join-choice-grid{grid-template-columns:1fr}.home-focused .resident-grid{gap:8px}.home-focused .home-gallery .photo-grid{gap:16px}.home-focused .photo-card img{max-height:240px}.home-shortcut{padding:14px;gap:10px}.home-shortcut small{font-size:10px}.home-shortcut strong{font-size:14px}.home-focused .home-journal{gap:8px}.join-choice{padding:22px}.advanced-settings{padding:16px}.help-topics details{padding:16px}.qd-document .intro h1{font-size:28px}.qd-document .aincrad-document{margin-top:22px;padding-inline:20px}.qd-document .music-toolbar{flex-direction:row}.optional-downloads{padding:16px}.home-focused .home-footer{padding-inline:20px}.home-focused .home-footer nav{flex-wrap:wrap}}
