/* Portal layout only. Existing GTA typography, palette and sheet effects remain owned by their original styles. */
body.online-portal{--portal-header-height:76px;--portal-sidebar-width:248px}
html body.online-portal .site-header{height:var(--portal-header-height)!important}
html body.online-portal .header-inner{height:var(--portal-header-height)!important;max-width:none;padding-inline:clamp(20px,3vw,48px)!important}
.online-portal .portal-brand-copy{display:flex;flex-direction:column;gap:5px}
.online-portal .portal-brand-copy strong{font:400 23px/1 'Online Display',Impact,sans-serif;letter-spacing:.01em}
.online-portal .portal-brand-copy small{font:600 8px/1.3 'DM Sans',Arial,sans-serif;letter-spacing:.2em;color:var(--online-muted)}
.portal-header-caption{margin-left:30px;color:var(--online-muted);font-size:11px;letter-spacing:.04em}
.online-portal .portal-sidebar{display:none}
.portal-breadcrumb{display:flex;flex-wrap:wrap;gap:12px;align-items:center;color:var(--online-muted);font-size:10px;letter-spacing:.12em;text-transform:uppercase;margin:0 0 36px}
.portal-breadcrumb a:hover{color:var(--online-gold)}
.portal-sidebar nav a,.online-portal .drawer-nav a{display:flex;align-items:baseline;gap:14px}
.portal-nav-number{font:500 10px/1.4 'DM Sans',Arial,sans-serif;letter-spacing:.05em;color:var(--online-gold);flex:0 0 16px}
html body.online-portal #site-menu.portal-menu{inset:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:0!important;border:0;border-radius:0;margin:0;overflow-y:auto;background:var(--online-bg);color:var(--online-text)}
html body.online-portal #site-menu.portal-menu .menu-panel{position:relative;inset:auto;width:100%;max-width:none;min-height:100%;margin:0;padding:calc(env(safe-area-inset-top,0px) + 28px) clamp(24px,7vw,80px) calc(env(safe-area-inset-bottom,0px) + 24px)!important;border:0;border-radius:0!important;display:flex;flex-direction:column;background:transparent}
html body.online-portal #site-menu.portal-menu .menu-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding:0;border:0}
html body.online-portal #site-menu.portal-menu .menu-top h2{font:400 25px/1.3 'Online Display',Impact,sans-serif;letter-spacing:0;margin:8px 0 0}
html body.online-portal #site-menu.portal-menu .menu-close{width:48px;height:48px;min-width:48px;border:0;background:transparent;padding:10px}
html body.online-portal #site-menu.portal-menu .menu-close .icon{width:28px;height:28px}
html body.online-portal #site-menu.portal-menu .drawer-nav{display:flex!important;flex:1;flex-direction:column;justify-content:center;align-items:stretch;gap:12px!important;padding:40px 0!important;min-height:280px}
html body.online-portal #site-menu.portal-menu .drawer-nav>a{display:flex;min-height:60px;padding:12px 0!important;width:fit-content;max-width:100%;font:750 clamp(30px,7.5vw,56px)/1.18 'DM Sans',Arial,sans-serif!important;letter-spacing:0!important;text-transform:uppercase;color:var(--online-muted);border:0;overflow-wrap:normal}
html body.online-portal #site-menu.portal-menu .drawer-nav>a:hover,html body.online-portal #site-menu.portal-menu .drawer-nav>a[aria-current]{color:var(--online-text)}
html body.online-portal #site-menu.portal-menu .drawer-nav>a[aria-current]>span:nth-child(2){text-decoration:underline;text-decoration-color:var(--online-gold);text-underline-offset:12px;text-decoration-thickness:2px}
html body.online-portal #site-menu.portal-menu .menu-bottom{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;margin:0;padding:24px 0 0;border-top:1px solid var(--online-line)}
html body.online-portal #site-menu.portal-menu .menu-bottom a{display:inline-flex;align-items:center;gap:12px;min-height:44px;font-size:12px}
.portal-menu a:focus-visible,.portal-sidebar a:focus-visible{outline:2px solid var(--online-gold);outline-offset:6px}
.portal-news-heading{padding:6px 0 44px;border-bottom:1px solid var(--online-line)}
.portal-news-heading h1{margin:18px 0;font:800 clamp(58px,8vw,100px)/1.1 'DM Sans',Arial,sans-serif;text-transform:uppercase;letter-spacing:-.02em}
.portal-news-heading p{max-width:520px;color:var(--online-muted);font-size:15px;line-height:1.8;margin:0}
.portal-news-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0 28px}
.portal-news-toolbar>div{display:flex;flex-wrap:wrap;gap:24px}
.portal-news-toolbar button{border:0;border-bottom:2px solid transparent;background:transparent;padding:12px 0;min-height:44px;color:var(--online-muted);font:600 12px/1.5 'DM Sans',Arial,sans-serif}
.portal-news-toolbar button[aria-pressed=true]{border-color:var(--online-gold);color:var(--online-text)}
.portal-news-toolbar>span{color:var(--online-muted);font-size:10px;white-space:nowrap}
#portal-news-feed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 28px;min-height:260px}
.portal-news-card{min-width:0;display:flex;flex-direction:column;border-bottom:1px solid var(--online-line);padding-bottom:26px}
.portal-news-cover{display:block;aspect-ratio:16/9;width:100%;object-fit:cover;margin-bottom:22px;background:var(--online-panel)}
.portal-news-meta{display:flex;gap:14px;justify-content:space-between;align-items:baseline;color:var(--online-muted);font-size:10px;line-height:1.6;letter-spacing:.07em;text-transform:uppercase;margin-bottom:12px}
.portal-news-meta>span{color:var(--online-gold)}
.portal-news-card h2{font:750 clamp(24px,2.5vw,34px)/1.25 'DM Sans',Arial,sans-serif;letter-spacing:0;margin:0 0 12px;overflow-wrap:anywhere;text-transform:uppercase}
.portal-news-card p{color:var(--online-muted);font-size:13px;line-height:1.85;margin:0 0 22px;max-width:56ch}
.portal-news-read{display:flex;align-items:center;justify-content:space-between;gap:20px;text-align:left;min-height:44px;margin-top:auto;padding:10px 0;background:transparent;border:0;color:var(--online-text);font-weight:650;font-size:12px}
.portal-news-read:hover{color:var(--online-gold)}
.portal-news-state{grid-column:1/-1;padding:56px 0;border-bottom:1px solid var(--online-line)}
.portal-news-state h2{font:750 30px/1.2 'DM Sans',Arial,sans-serif;margin:0 0 16px;text-transform:uppercase}
.portal-news-state p{color:var(--online-muted);line-height:1.85;max-width:48ch}
.portal-news-state a,.portal-news-state button{display:inline-flex;align-items:center;gap:12px;min-height:44px;padding:10px 0;border:0;background:none;color:var(--online-gold);font-weight:650}
.portal-article-dialog{width:min(840px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:clamp(24px,4vw,56px);border:1px solid var(--online-line);background:var(--online-bg);color:var(--online-text);overflow:auto;overscroll-behavior:contain}
.portal-article-dialog::backdrop{background:#000b;backdrop-filter:blur(8px)}
.portal-article-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}
.portal-article-header button{display:grid;place-items:center;border:0;background:none;width:44px;height:44px;flex:0 0 44px}
.portal-article-dialog h2{font:750 clamp(30px,5vw,52px)/1.15 'DM Sans',Arial,sans-serif;text-transform:uppercase;margin:0 0 24px;overflow-wrap:anywhere}
.portal-article-summary{color:var(--online-muted);line-height:1.85;font-size:16px;padding-bottom:28px;border-bottom:1px solid var(--online-line)}
.portal-article-body{font-size:14px;line-height:1.9;overflow-wrap:anywhere;padding:12px 0}
.portal-article-body h3{font-size:19px;line-height:1.5;margin:30px 0 14px}
.portal-article-body ul{padding-left:22px}
.portal-article-body li{padding:4px 0}
.portal-article-body a{color:var(--online-gold);text-decoration:underline}
.portal-article-download{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;border-top:1px solid var(--online-line);margin-top:28px;padding-top:20px;color:var(--online-gold)}
html body.online-portal[data-online-view=news] .online-main{padding-bottom:50px}
@media(min-width:1100px){
 .online-portal .portal-sidebar{position:fixed;left:0;top:var(--portal-header-height);bottom:0;z-index:30;width:var(--portal-sidebar-width);display:flex;flex-direction:column;padding:40px 28px 24px;border-right:1px solid var(--online-line);background:var(--online-bg);overflow-y:auto}
 .portal-sidebar-top p{font-size:15px;line-height:1.7;margin:16px 0 36px;color:var(--online-muted)}
 .portal-sidebar nav{display:flex;flex-direction:column;gap:10px}
 .portal-sidebar nav a{min-height:54px;align-items:center;padding:12px 0;font:700 14px/1.4 'DM Sans',Arial,sans-serif;text-transform:uppercase;color:var(--online-muted)}
 .portal-sidebar nav a[aria-current],.portal-sidebar nav a:hover{color:var(--online-text)}
 .portal-sidebar nav a[aria-current]>span:nth-child(2){text-decoration:underline;text-decoration-color:var(--online-gold);text-underline-offset:8px;text-decoration-thickness:2px}
 .portal-sidebar-bottom{display:grid;gap:12px;margin-top:auto;padding-top:40px;color:var(--online-muted);font-size:10px}
 .portal-sidebar-bottom>span{margin-bottom:14px;letter-spacing:.1em;text-transform:uppercase}
 .portal-sidebar-bottom a{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px}
 .portal-sidebar-bottom a:hover{color:var(--online-gold)}
 html body.online-portal .online-main{margin-left:var(--portal-sidebar-width);padding:42px clamp(30px,4vw,72px) 140px}
 html body.online-portal .menu-toggle{display:none!important}
 .online-portal .online-page-nav{display:none}
}
@media(max-width:1099px){.portal-header-caption{display:none}html body.online-portal .online-main{padding-inline:clamp(20px,5vw,40px)}}
@media(max-width:600px){#portal-news-feed{grid-template-columns:1fr;gap:32px}.portal-news-heading{padding-bottom:30px}.portal-news-toolbar{align-items:flex-start;gap:12px}.portal-news-card h2{font-size:28px}.portal-breadcrumb{margin-bottom:28px}.portal-article-dialog{width:100%;max-height:100dvh;height:100dvh;margin:0;border:0;padding:calc(env(safe-area-inset-top,0px) + 24px) 24px calc(env(safe-area-inset-bottom,0px) + 32px)}}

.portal-news-card:only-child{grid-column:1/-1;max-width:850px}
.online-portal:has(#portal-news-article[open]){overflow:hidden}

.online-portal .portal-title-online{color:var(--online-red)!important;-webkit-text-fill-color:var(--online-red)}
.portal-news-total{margin:24px 0;color:var(--online-muted);font-size:11px}
.online-portal[data-online-view=guide] .online-main{padding-bottom:48px}
.online-portal[data-online-view=guide] .online-how-to{margin-top:0;padding-top:0;border-top:0}
.portal-article-body p{white-space:pre-wrap}


/* Header brand: understated metallic shine on GTA only. ONLINE keeps the original red. */
.online-portal .portal-brand-copy .portal-title-gta{
 display:inline-block;
 position:relative;
 color:#d9d9dc;
 -webkit-text-fill-color:#d9d9dc;
}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
 .online-portal .portal-brand-copy .portal-title-gta{
  background:linear-gradient(103deg,#85868a 0%,#b8b9bc 26%,#fdfdfd 42%,#bbbcc0 56%,#84858b 80%,#dadadd 100%);
  background-size:220% 100%;
  background-position:130% center;
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
  animation:onlineHeaderGtaShine 4.4s cubic-bezier(.45,0,.55,1) infinite;
 }
}
@keyframes onlineHeaderGtaShine{
 0%,14%{background-position:130% center}
 74%,100%{background-position:-105% center}
}
body.online-portal[data-online-view="sessions"] .portal-breadcrumb{
 margin-bottom:27px;
}
@media(max-width:760px){
 body.online-portal[data-online-view="sessions"] .portal-breadcrumb{
  margin-bottom:25px;
 }
}
@media(prefers-reduced-motion:reduce){
 .online-portal .portal-brand-copy .portal-title-gta{
  animation:none!important;
  background:none!important;
  color:#e0e0e2!important;
  -webkit-text-fill-color:#e0e0e2!important;
 }
}


/* News unread count: compact red dot and number beside NEWS in sidebar and menu. */
html body.online-portal .portal-news-unread-badge{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:5px;
 flex:0 0 auto;
 min-width:24px;
 height:21px;
 min-height:21px;
 padding:0 6px;
 margin-left:-6px;
 box-sizing:border-box;
 border:1px solid rgba(255,62,72,.24);
 border-radius:999px;
 background:rgba(229,36,48,.11);
 color:#ff575f;
 font:700 11px/1 'DM Sans',Arial,sans-serif;
 letter-spacing:0;
 text-decoration:none!important;
 text-transform:none;
 white-space:nowrap;
 vertical-align:middle;
}
html body.online-portal .portal-news-unread-badge::before{
 content:"";
 display:block;
 flex:0 0 6px;
 width:6px;
 height:6px;
 border-radius:50%;
 background:#ff3b45;
 box-shadow:0 0 7px rgba(255,59,69,.27);
}
html body.online-portal #site-menu.portal-menu .drawer-nav>a[data-portal-nav="news"]>.portal-news-unread-badge{
 align-self:center;
 margin-left:-4px;
 font:700 11px/1 'DM Sans',Arial,sans-serif!important;
}
html body.online-portal .online-page-nav a>.portal-news-unread-badge{
 color:#ff575f;
 font:700 10px/1 'DM Sans',Arial,sans-serif;
 min-width:22px;
 height:19px;
 min-height:19px;
}
html body.online-portal .menu-toggle{
 position:relative;
}
html body.online-portal .menu-toggle>.portal-news-menu-dot{
 position:absolute;
 top:6px;
 right:6px;
 width:8px;
 height:8px;
 border:2px solid var(--online-bg,#0b0b0c);
 border-radius:50%;
 background:#ff3b45;
 box-shadow:0 0 7px rgba(255,59,69,.26);
 pointer-events:none;
 box-sizing:content-box;
}
