/*
Theme Name: Sciattisi Grid 3D
Author: Sciattisi Grid
Version: 0.2.2
Description: Tema della community Sciattisi, con portale OpenSim e articoli WordPress.
Requires PHP: 8.2
*/
:root{--bg:#100c15;--panel:#1a1420;--line:#ffffff17;--text:#f9f5fa;--muted:#c1b5c8;--pink:#ff3296;--yellow:#f2df57;--max:1240px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:var(--pink)}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--yellow);outline-offset:5px}img{max-width:100%;height:auto;display:block}button,input,textarea,select{font:inherit}button,.button,input[type=submit]{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid var(--pink);background:var(--pink);color:#190914;padding:13px 23px;border-radius:6px;font-weight:700;cursor:pointer;line-height:1.4}.button:hover,button:hover,input[type=submit]:hover{background:#ff68b2;color:#190914}.button.secondary{background:transparent;border-color:#ffffff45;color:white}.button.secondary:hover{border-color:var(--pink);color:var(--pink)}.wrap{max-width:var(--max);padding:0 32px;margin:0 auto}.skip-link{position:absolute;top:-100px;left:10px;z-index:1000;background:#fff;color:#111;padding:15px}.skip-link:focus{top:10px}.site-header{height:88px;position:sticky;top:0;z-index:1000;background:#100c15;border-bottom:1px solid var(--line)}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{line-height:1;font-weight:900;font-size:25px;letter-spacing:-1.3px}.brand small{color:var(--pink);display:block;font-size:10px;font-weight:700;letter-spacing:4.4px;margin-top:7px}.main-nav{display:flex;align-items:center;gap:25px;font-size:13px;font-weight:700}.main-nav .button{font-size:13px;padding:11px 17px}.nav-toggle{display:none}.hero{height:min(900px,calc(100svh - 88px));min-height:650px;position:relative;overflow:hidden;background:#e82383 url('assets/hero-background.webp') center/cover}.hero-word{font-size:clamp(100px,18vw,320px);font-weight:900;position:absolute;top:13%;width:100%;text-align:center;letter-spacing:-.065em;color:#ff2a91;line-height:1;user-select:none}.hero-art{height:100%;width:100%;object-fit:contain;object-position:center top;position:absolute;inset:0}.hero:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(0deg,#100c15 0%,#100c1520 80%,transparent)}.hero-copy{position:absolute;z-index:2;bottom:35px;text-align:center;width:100%;padding:0 24px}.hero-logo{width:400px;max-width:45%;margin:0 auto 15px}.hero-copy h1{font-size:clamp(22px,3vw,42px);line-height:1.2;margin:12px 0;font-weight:800;letter-spacing:-1.3px}.hero-copy p{color:#f3e4ef;margin:0 0 22px;font-size:17px}.hero-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.eyebrow{color:var(--pink);font-size:11px;font-weight:800;letter-spacing:2.3px;text-transform:uppercase}.section{padding:90px 0;border-bottom:1px solid var(--line)}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:35px}.section-head h2,.intro h2{font-size:clamp(30px,4.5vw,55px);letter-spacing:-2px;line-height:1.13;margin:12px 0 0}.section-head>a{color:var(--pink);white-space:nowrap;font-size:14px}.intro{display:grid;grid-template-columns:1fr 1fr;gap:100px;align-items:start}.intro-content{color:var(--muted);font-size:18px}.intro-content p:first-child{margin-top:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);margin-top:55px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.stat{padding:27px;border-right:1px solid var(--line)}.stat:last-child{border:0}.stat strong{font-size:40px;display:block;line-height:1.2;font-weight:800;letter-spacing:-1.5px}.stat span{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:1px}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.region-card,.post-card{background:var(--panel);border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:transform .2s,border-color .2s}.region-card:hover,.post-card:hover{transform:translateY(-4px);border-color:#ff32964d}.region-card>img,.post-card>a>img{width:100%;height:230px;object-fit:cover;background:#30182d}.card-body{padding:24px}.card-body h3{font-size:24px;line-height:1.2;margin:9px 0 12px;letter-spacing:-.6px;overflow-wrap:anywhere}.card-body p{color:var(--muted);font-size:14px}.card-body>a{color:var(--pink);font-size:14px;font-weight:700}.map-teaser{background:#e92284;border-radius:14px;padding:55px;display:grid;grid-template-columns:1fr 1fr;gap:50px;align-items:center}.map-teaser h2{font-size:45px;letter-spacing:-1.8px;line-height:1.1;margin:12px 0 20px}.map-teaser p{color:#fff1f9}.map-teaser .eyebrow{color:#42132e}.map-teaser img{border-radius:9px;box-shadow:0 18px 50px #47102e88;aspect-ratio:1.3;object-fit:cover}.map-teaser .button{background:#100c15;color:white;border-color:#100c15}.owner-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:25px}.owner-grid>article{flex:0 0 calc((100% - 75px)/4);min-width:0;text-align:center}.owner-grid img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:center;border-radius:8px;margin:0 auto 18px}.owner-grid h3{font-size:20px;line-height:1.2;margin:10px 0}.owner-grid p{font-size:12px;color:var(--muted);letter-spacing:1px;text-transform:uppercase}.site-footer{padding:60px 0 25px}.footer-top{display:flex;justify-content:space-between;align-items:start;gap:50px}.footer-top p{color:var(--muted);font-size:14px;max-width:420px}.footer-links{display:flex;gap:25px;flex-wrap:wrap;font-size:14px}.footer-bottom{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:40px;padding-top:20px;color:var(--muted);font-size:12px}.page-header{padding:65px 0 40px;border-bottom:1px solid var(--line);background:linear-gradient(120deg,#281023,#100c15)}.page-header h1{font-size:clamp(36px,6vw,70px);letter-spacing:-2.3px;line-height:1.1;margin:14px 0}.page-content{padding:45px 0 85px;min-height:45vh}.prose{max-width:820px}.prose p,.prose li{color:#d1c5d4}.prose h2{font-size:30px;line-height:1.2;margin-top:40px}.prose a{text-decoration:underline;text-underline-offset:4px}.post-meta{color:var(--muted);font-size:13px}.post-hero{width:100%;max-height:480px;object-fit:cover;border-radius:12px;margin-bottom:35px}.portal-nav{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:30px;margin-bottom:35px;border-bottom:1px solid var(--line)}.portal-nav a{border:1px solid var(--line);border-radius:5px;padding:9px 13px;font-size:13px;background:var(--panel)}.portal-nav a:last-child{margin-left:auto}.portal-welcome{margin-bottom:35px}.portal-welcome h2{font-size:45px;line-height:1.2;letter-spacing:-1px;margin:10px 0}.muted{color:var(--muted)}.profile-card{padding:35px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.profile-card h2{font-size:30px;line-height:1.2}.notice{padding:20px;border:1px solid #ab7659;border-radius:8px;background:#322518}label{display:block;font-size:14px;font-weight:700;margin-bottom:7px}input[type=text],input[type=password],input[type=search],input[type=email],textarea{width:100%;border:1px solid #746176;background:#fff;color:#201123;border-radius:6px;padding:12px 14px}.search-form{max-width:650px;margin-bottom:25px}.search-form>div{display:flex;gap:10px}.search-form input{min-width:0}#loginform{max-width:440px;padding:30px;background:var(--panel);border:1px solid var(--line);border-radius:12px}#loginform .login-remember label{font-weight:400}.pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin-top:35px;flex-wrap:wrap}.grid-map{width:100%;height:75vh;min-height:540px;border:1px solid var(--line);border-radius:10px;background:#080e15}.event-card{display:grid;grid-template-columns:180px 1fr;gap:30px;padding:28px;border-bottom:1px solid var(--line)}.event-card time{color:var(--pink);font-weight:700}.event-card h2{font-size:25px;line-height:1.2;margin-top:0}.event-card p{color:var(--muted)}.empty-posts{color:var(--muted)}.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.gallery-grid img{width:100%;height:230px;object-fit:cover;border-radius:8px}.wp-block-image img{border-radius:10px}.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1600px){.hero-art{object-fit:cover;object-position:center 20%}}
@media(max-width:1000px){.main-nav{gap:15px}.main-nav a{font-size:12px}.intro{gap:40px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.map-teaser{padding:35px;gap:30px}.map-teaser h2{font-size:35px}.hero{min-height:600px}.owner-grid{gap:15px}.owner-grid>article{flex-basis:calc((100% - 45px)/4)}}
@media(max-width:760px){.wrap{padding:0 22px}.site-header{height:76px}.brand{font-size:23px}.nav-toggle{display:flex;background:none;border-color:#ffffff33;color:#fff;padding:8px 12px}.main-nav{display:none;position:absolute;top:76px;left:0;right:0;background:#17101b;padding:22px;flex-direction:column;align-items:stretch;border-bottom:1px solid var(--line);gap:0}.main-nav.open{display:flex}.main-nav a{font-size:15px;padding:12px}.main-nav .button{margin-top:10px}.hero{height:78svh;min-height:580px}.hero-art{object-fit:cover;object-position:center top}.hero-word{top:15%;font-size:26vw}.hero-logo{max-width:70%;width:300px}.hero-copy{bottom:25px}.hero-copy h1{font-size:27px;letter-spacing:-.8px}.hero-copy p{font-size:14px}.section{padding:55px 0}.intro{grid-template-columns:1fr;gap:25px}.intro-content{font-size:16px}.stats{grid-template-columns:repeat(2,1fr);margin-top:30px}.stat{padding:22px;border-bottom:1px solid var(--line)}.stat:nth-child(2){border-right:0}.stat:nth-child(n+3){border-bottom:0}.stat strong{font-size:33px}.section-head{align-items:start;gap:15px}.section-head h2{font-size:32px;letter-spacing:-1px}.section-head>a{font-size:12px}.card-grid{grid-template-columns:1fr;gap:20px}.region-card>img,.post-card>a>img{height:240px}.map-teaser{grid-template-columns:1fr;padding:27px;gap:25px}.map-teaser h2{font-size:34px}.owner-grid{row-gap:25px}.owner-grid>article{flex-basis:calc((100% - 15px)/2)}.owner-grid img{width:100%;height:auto}.owner-grid h3{font-size:18px}.footer-top{flex-direction:column;gap:20px}.footer-bottom{flex-direction:column;gap:12px}.page-header{padding:40px 0 25px}.page-content{padding-top:30px}.portal-nav a:last-child{margin-left:0}.event-card{grid-template-columns:1fr;gap:10px;padding:20px 0}.grid-map{min-height:480px;height:75vh}.gallery-grid{grid-template-columns:repeat(2,1fr)}.gallery-grid img{height:170px}.hero-actions .button{padding:12px 16px;font-size:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
.search-form:has(+.sg-users){display:flex;align-items:end;gap:12px;flex-wrap:wrap;max-width:none;padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:12px;margin-bottom:24px}
.search-form:has(+.sg-users)>label{flex-basis:100%;margin:0}.search-form:has(+.sg-users)>input{flex:1;max-width:580px}.search-form:has(+.sg-users)>button{flex:none}
.sg-users{width:100%;border-collapse:separate;border-spacing:0;background:var(--panel);border:1px solid var(--line);border-radius:12px;font-size:14px;line-height:1.5;table-layout:fixed}
.sg-users th{text-align:left;color:var(--muted);font-size:11px;letter-spacing:1px;text-transform:uppercase;background:#ffffff04;padding:18px 20px;border-bottom:1px solid var(--line)}
.sg-users td{padding:18px 20px;vertical-align:top;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.sg-users tbody tr:last-child td{border-bottom:0}.sg-users tbody tr:hover{background:#ffffff03}
.sg-users th:nth-child(1){width:23%}.sg-users th:nth-child(2){width:18%}.sg-users th:nth-child(3){width:29%}.sg-users th:nth-child(4){width:13%}.sg-users th:nth-child(5){width:17%}
.sg-users td strong{font-weight:700}.sg-users td small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.sg-users td br{display:none}
.sg-users td:nth-child(4){color:#a6e6ba;font-weight:700;font-size:12px}.sg-users details{position:relative}.sg-users summary{cursor:pointer;display:inline-flex;align-items:center;gap:8px;border:1px solid #ff329650;background:#ff32960c;border-radius:6px;padding:7px 12px;color:#ff80bd;font-size:12px;font-weight:700;list-style:none;white-space:nowrap}.sg-users summary::-webkit-details-marker{display:none}.sg-users summary:after{content:'＋'}.sg-users details[open]>summary:after{content:'−'}
.sg-user-form{position:absolute;right:0;top:45px;width:370px;z-index:20;padding:24px;background:#241a2c;border:1px solid #ff329650;border-radius:12px;box-shadow:0 20px 70px #0009;display:grid;gap:16px}.sg-user-form label{display:grid;gap:7px;margin:0;font-size:12px;color:var(--muted)}.sg-user-form input:not([type=checkbox]){display:block;width:100%;min-width:0;padding:10px 12px;background:#100c15;color:var(--text);border-color:#ffffff30}.sg-user-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:9px}.sg-user-form input[type=checkbox]{width:16px;height:16px;accent-color:var(--pink)}.sg-user-form .button{width:100%;padding:11px}.sg-users:has(details[open]){margin-bottom:540px}
@media(max-width:760px){.sg-users{font-size:12px;table-layout:auto}.sg-users th,.sg-users td{padding:14px 10px}.sg-users th:nth-child(2),.sg-users td:nth-child(2),.sg-users th:nth-child(3),.sg-users td:nth-child(3){display:none}.sg-users th:nth-child(1){width:50%}.sg-users th:nth-child(4),.sg-users th:nth-child(5){width:25%}.sg-user-form{width:min(340px,calc(100vw - 64px));right:0}.search-form:has(+.sg-users){padding:16px}.search-form:has(+.sg-users)>input{width:100%;flex-basis:65%}}
.sg-users:has(details[open]){margin-bottom:0}.sg-users details[open] .sg-user-form{position:fixed;left:50%;top:50%;right:auto;transform:translate(-50%,-50%);max-height:85vh;overflow-y:auto;z-index:10001}.sg-users details[open]>summary{position:relative;z-index:10002}
.sg-user-form .sg-user-close{justify-self:end;padding:6px 12px;background:transparent;border-color:#ffffff40;color:var(--text);font-size:12px}.sg-user-form .sg-user-close:hover{border-color:var(--pink);color:var(--pink)}
.portal-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:38px;align-items:start}.portal-layout .portal-nav{display:flex;flex-direction:column;gap:5px;margin:0;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:12px;position:sticky;top:52px}.portal-nav-title{font-size:10px;letter-spacing:2px;color:var(--muted);padding:8px 10px 15px}.portal-layout .portal-nav a{border:0;background:transparent;padding:10px 12px;border-radius:6px}.portal-layout .portal-nav a.is-current{background:#ff32961a;color:#ff80bd}.portal-layout .portal-nav a:last-child{margin:12px 0 0;border-top:1px solid var(--line);padding-top:17px}.portal-main{min-width:0}.portal-welcome{padding:30px;border-radius:12px;background:linear-gradient(120deg,#36172e,var(--panel));border:1px solid #ff32962b;margin-bottom:24px}.portal-welcome h2{font-size:32px;letter-spacing:-1px;margin:10px 0}.portal-welcome p{margin:0;color:var(--muted)}.account-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:32px}.account-stats>div{border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:22px}.account-stats strong{display:block;font-size:30px;line-height:1.2}.account-stats span{display:block;font-size:12px;color:var(--muted);margin-top:8px}.portal-section-title{font-size:20px;margin:0 0 18px}.portal-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.portal-shortcuts>a{border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:24px}.portal-shortcuts>a:hover{border-color:var(--pink);color:var(--text)}.portal-shortcuts h3{font-size:20px;margin:10px 0 6px}.portal-shortcuts p{font-size:13px;color:var(--muted);margin:0}
.region-operations-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.region-operations-grid .region-card:hover{transform:none}.region-operations-grid .card-body{padding:24px}.region-operations-grid h3{font-size:23px;min-height:56px;margin:10px 0 18px;display:flex;align-items:center}.region-operations-grid .card-body>form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.region-operations-grid button{font-size:12px;padding:12px 10px;width:100%;min-height:44px}.region-operations-grid button:disabled{opacity:.4;cursor:not-allowed}.region-operations-grid h4{margin:24px 0 12px;padding-top:18px;border-top:1px solid var(--line);font-size:13px}.region-operations-grid .card-body>p{margin:0;font-size:12px;min-height:44px}.oar-backup{background:#100c1566;border:1px solid var(--line);border-radius:7px;margin:8px 0;overflow:hidden}.oar-backup summary{padding:13px 12px;cursor:pointer;font-size:12px;font-weight:600;overflow-wrap:anywhere}.oar-backup[open] summary{background:#ffffff05;border-bottom:1px solid var(--line)}.oar-backup form{padding:14px;display:grid;gap:12px}.oar-backup form p{font-size:12px;margin:0}.oar-backup label{display:flex;align-items:center;gap:8px;font-size:12px;margin:0}.oar-backup input[type=checkbox]{flex:none;accent-color:var(--pink)}@media(max-width:600px){.region-operations-grid{grid-template-columns:1fr}.region-operations-grid h3{min-height:0}}
.sg-access-scroll{overflow-x:auto;margin:24px 0}#sg-security .sg-users{min-width:850px;table-layout:auto}#sg-security .sg-users th,#sg-security .sg-users td{width:auto;display:table-cell;font-size:12px;padding:12px}#sg-security .sg-users button{font-size:11px;padding:7px;margin:3px}.sg-ban-row{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--panel);border:1px solid var(--line);padding:16px;border-radius:8px;margin:8px 0;overflow-wrap:anywhere}.sg-ban-row span{min-width:0}.sg-ban-row button{flex:none;font-size:12px;padding:8px}
@media(max-width:900px){.portal-layout{grid-template-columns:1fr;gap:25px}.portal-layout .portal-nav{position:static;flex-direction:row;flex-wrap:wrap;padding:12px;gap:4px}.portal-nav-title{width:100%;padding:5px 10px}.portal-layout .portal-nav a:last-child{margin:0;border:0;padding:10px 12px}.portal-welcome{padding:24px}.portal-welcome h2{font-size:28px}}@media(max-width:560px){.account-stats{gap:8px}.account-stats>div{padding:14px}.account-stats strong{font-size:24px}.account-stats span{font-size:10px}.portal-shortcuts{grid-template-columns:1fr}}

.sg-login-panel{width:100%;max-width:480px;margin:0 auto}.sg-login-panel>p{text-align:center}.sg-login-panel #loginform{width:100%;max-width:none;margin:20px 0}.sg-login-panel .login-submit input{width:100%}

.sg-registration{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;max-width:1080px;margin:0 auto;align-items:start}.sg-registration h1{font-size:36px;line-height:1.15;margin:14px 0}.sg-registration form>label{margin-top:16px}.sg-name-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sg-registration input:not([type=checkbox]){margin-top:6px}.sg-registration select{width:100%;padding:12px;border:1px solid #746176;border-radius:6px;background:var(--bg);color:var(--text)}.sg-registration .sg-terms{font-weight:400;margin:24px 0}.sg-terms a,.sg-registration section>p a{color:var(--pink)}.sg-registration button{width:100%}.sg-registration button:disabled{opacity:.65;cursor:wait}.sg-avatar-preview{position:sticky;top:32px;min-width:0;border:1px solid var(--line);border-radius:16px;background:radial-gradient(ellipse at 50% 40%,#4c2546,#1a1420 65%);text-align:center;overflow:hidden}.sg-avatar-preview canvas{display:block;width:100%;height:600px;cursor:grab}.sg-avatar-preview span{display:block;color:var(--muted);font-size:13px;padding:16px}.sg-avatar-preview p{position:absolute;top:40%;left:10%;right:10%;pointer-events:none}.sg-register-status:empty{display:none}@media(max-width:760px){.sg-registration{grid-template-columns:1fr;gap:24px}.sg-avatar-preview{position:relative;top:auto;grid-row:1}.sg-avatar-preview canvas{height:360px}.sg-name-fields{grid-template-columns:1fr}.sg-registration .profile-card{padding:24px}}

.sg-viewer-tip{margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.sg-viewer-tip h2{font-size:24px;margin:0 0 12px}.sg-viewer-tip .button{width:100%;text-align:center}.sg-viewer-tip .muted{font-size:13px}

#main :is(button,.button,input[type=submit]){margin-inline:auto;text-align:center;justify-content:center}
#main .button{display:flex;width:fit-content;max-width:100%}
#main :is(form,.card-body)>button{display:flex}
#main :is(.hero-actions,.pagination,.wp-block-buttons){justify-content:center}
#main .sg-viewer-tip .button{width:100%}
.sg-account-notice{max-width:580px;margin:0 auto;text-align:center;padding:24px 0}

.footer-viewer{text-align:center;border-top:1px solid var(--line);padding:32px 0}.footer-viewer h2{font-size:26px;line-height:1.2;margin:0 0 12px}.footer-viewer>p{margin:10px 0 18px}.footer-viewer .button{margin-inline:auto;text-align:center;max-width:100%}.footer-viewer .muted{font-size:12px;margin-top:16px}

.footer-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);gap:32px;align-items:start}.footer-top .footer-viewer{border:0;padding:0;min-width:0}.footer-top .footer-viewer h2{margin:0 0 12px}.footer-top .footer-viewer p{margin-inline:auto}.footer-top .footer-viewer .muted{font-size:11px}.footer-top .footer-links{justify-content:flex-end;gap:12px 20px}.footer-viewer .button{font-size:13px;padding:12px 16px}@media(max-width:850px){.footer-top{grid-template-columns:1fr;gap:28px;text-align:center}.footer-top>div>p{margin-inline:auto}.footer-top .footer-links{justify-content:center}.footer-top .footer-viewer{grid-row:2}}

/* Complianz: keep consent behavior in the plugin and appearance in the theme. */
body .cmplz-cookiebanner,
body #cmplz-manage-consent .cmplz-manage-consent {
  --cmplz_text_color: #f9f5fa;
  --cmplz_hyperlink_color: #ff85c0;
  --cmplz_button_accept_background_color: #ff3296;
  --cmplz_button_accept_border_color: #ff3296;
  --cmplz_button_accept_text_color: #190914;
  --cmplz_button_deny_background_color: #302337;
  --cmplz_button_deny_border_color: #71536c;
  --cmplz_button_deny_text_color: #f9f5fa;
  --cmplz_button_settings_background_color: #302337;
  --cmplz_button_settings_border_color: #71536c;
  --cmplz_button_settings_text_color: #f9f5fa;
  --cmplz_category_header_always_active_color: #d7e88a;
  --cmplz_slider_active_color: #ff3296;
  --cmplz_slider_inactive_color: #71536c;
  font-family: Arial, Helvetica, sans-serif;
}
body .cmplz-cookiebanner {
  width: 480px;
  min-width: 0;
  max-width: calc(100% - 40px);
  max-height: calc(100dvh - 40px);
  right: 20px;
  bottom: 20px;
  padding: 24px;
  gap: 16px;
  background: linear-gradient(135deg, #291624, #17111e 65%);
  color: #f9f5fa;
  border: 1px solid #735064;
  border-top: 3px solid #ff3296;
  border-radius: 16px;
  box-shadow: 0 18px 60px #0009;
  color-scheme: dark;
}
body .cmplz-cookiebanner.cmplz-show,
body .cmplz-cookiebanner.cmplz-show:hover { box-shadow: 0 18px 60px #0009; }
body .cmplz-cookiebanner .cmplz-header { grid-template-columns: 1fr 36px; gap: 12px; }
body .cmplz-cookiebanner .cmplz-logo:empty { display: none; }
body .cmplz-cookiebanner .cmplz-title {
  display: block;
  grid-column: 1;
  justify-self: start;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.5px;
}
body .cmplz-cookiebanner .cmplz-close {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #ffffff0a;
  color: #d8c7d7;
}
body .cmplz-cookiebanner .cmplz-close svg { width: 14px; height: 14px; }
body .cmplz-cookiebanner .cmplz-close:hover { background: #ffffff18; color: #fff; }
body .cmplz-cookiebanner .cmplz-body { min-width: 0; }
body .cmplz-cookiebanner .cmplz-message,
body .cmplz-cookiebanner .cmplz-categories { width: 100%; }
body .cmplz-cookiebanner .cmplz-message { font-size: 14px; line-height: 1.7; color: #d5c7d9; margin: 0; }
body .cmplz-cookiebanner .cmplz-divider { display: none; }
body .cmplz-cookiebanner .cmplz-buttons { gap: 10px; }
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { min-height: 46px; font-size: 14px; font-weight: 700; border-radius: 8px; white-space: normal; }
body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn:hover { filter: brightness(1.15); }
body .cmplz-cookiebanner .cmplz-links .cmplz-link { font-size: 12px; text-underline-offset: 3px; }
body .cmplz-cookiebanner .cmplz-links ul { flex-wrap: wrap; gap: 8px 18px; }
body .cmplz-cookiebanner .cmplz-categories .cmplz-category { background: #ffffff08; border: 1px solid #ffffff1f; border-radius: 9px; }
body .cmplz-cookiebanner .cmplz-categories .cmplz-description { color: #d5c7d9; line-height: 1.65; }
body .cmplz-cookiebanner :is(button, a, .cmplz-close, input):focus-visible { outline: 2px solid #f2df57; outline-offset: 3px; }
body #cmplz-manage-consent .cmplz-manage-consent { background: #211628; color: #f9f5fa; border: 1px solid #735064; border-top: 2px solid #ff3296; border-radius: 10px 10px 0 0; font-size: 12px; }
@media (max-width: 768px) {
  body .cmplz-cookiebanner { width: calc(100% - 24px); max-width: 480px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); padding: 20px; max-height: calc(100dvh - 40px); }
  body .cmplz-cookiebanner .cmplz-buttons { flex-direction: row; flex-wrap: wrap; }
  body .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { flex: 1 1 110px; width: auto; }
}
@media (max-width: 425px) {
  body .cmplz-cookiebanner .cmplz-title { font-size: 18px; }
  body .cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences,
  body .cmplz-cookiebanner .cmplz-buttons .cmplz-save-preferences { flex-basis: 100%; }
}

.sg-online-friends{margin:32px 0;padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.sg-friends-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:18px}.sg-friends-heading .portal-section-title{margin:0}.sg-friends-heading>span,.sg-friends-status{font-size:12px}.sg-friends-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;list-style:none;margin:0;padding:0}.sg-friends-list li{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#ffffff04}.sg-friend-avatar{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:50%;background:#ff32961c;color:#ff85c0;font-weight:700}.sg-friends-list li>div{min-width:0;overflow-wrap:anywhere}.sg-friends-list strong{font-size:14px}.sg-friends-list small{display:block;font-size:12px;color:var(--muted)}.sg-friend-online{margin-left:auto;white-space:nowrap;font-size:12px;color:#b6e8ac}.sg-friend-online:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#95d884;margin-right:6px}.sg-friends-status:empty{display:none}@media(max-width:600px){.sg-online-friends{padding:18px}}

.sg-profile-form{max-width:680px;margin-top:28px;padding:28px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.sg-profile-form h3{margin:0;font-size:24px}.sg-profile-form>input,.sg-profile-form fieldset input{margin-bottom:20px}.sg-profile-form fieldset{min-width:0;margin:24px 0;padding:20px;border:1px solid #ffffff24;border-radius:9px}.sg-profile-form legend{padding:0 8px;font-weight:700}.sg-profile-form .muted{font-size:13px}.sg-profile-success{padding:16px 20px;background:#243321;border:1px solid #78ad70;border-radius:8px;color:#d7f0d2}@media(max-width:600px){.sg-profile-form{padding:20px}.sg-profile-form fieldset{padding:14px}}

.post-hero.post-hero-poster{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:760px;margin-inline:auto}.sg-article-languages{display:flex;gap:14px;align-items:center;margin:24px 0;padding:14px 18px;background:var(--panel);border:1px solid var(--line);border-radius:8px;font-weight:700}.prose section[lang]{scroll-margin-top:24px}.prose section[lang]+section[lang]{margin-top:38px;padding-top:12px;border-top:1px solid var(--line)}

@media(max-width:420px){.owner-grid>article{flex-basis:100%;max-width:300px}}

/* Keep the menu below the WordPress toolbar while it is fixed. */
body.admin-bar .site-header{top:32px}
@media(max-width:782px){body.admin-bar .site-header{top:46px}}
@media(max-width:600px){body.admin-bar .site-header{top:0}}

body .site-header{position:sticky;top:0}
