/* v358 — ADDITIONS ONLY. v348 dashboard.css remains the visual/layout master. */
:root{--c4t-readable-font:Inter,"Segoe UI",Arial,sans-serif;--c4t-scratch-font:"Scratchmeow5","Rajdhani","Arial Narrow",Arial,sans-serif}

/* SETTLED RULE: EVERY sidebar/navigation label uses the user's Scratchmeow5 font. */
.app-sidebar .sidebar-nav a>span{
  font-family:var(--c4t-scratch-font)!important;
  font-weight:400!important;
  text-transform:uppercase!important;
  letter-spacing:.01em!important;
  line-height:1.06!important;
}

/* Content-name readability rules from the user's v348 convention. */
body[data-page="tools"] .tool-card-copy :is(h1,h2,h3,h4),
body[data-page="recommendations"] .recommendation-card :is(h1,h2,h3,h4),
.youtube-card :is(h1,h2,h3,h4),.media-card :is(h1,h2,h3,h4),.schedule-item :is(h1,h2,h3,h4),
.creator-name,.program-name,.stream-title,.video-title{
  font-family:var(--c4t-readable-font)!important;font-weight:700!important;text-transform:none!important;letter-spacing:normal!important;
}

/* Homepage hero is a background layer INSIDE the existing v348 title area; it adds no big block height. */
body[data-page="dashboard"] .page-title-row{position:relative!important;overflow:hidden!important;isolation:isolate!important}
body[data-page="dashboard"] .page-title-row>div{position:relative!important;z-index:2!important;max-width:900px!important;text-shadow:0 2px 16px rgba(0,0,0,.86)!important}
body[data-page="dashboard"] .page-title-row .c4t-home-brand-hero{position:absolute!important;inset:0!important;z-index:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;min-height:0!important;height:100%!important;overflow:hidden!important;background:#090712!important;box-shadow:none!important;pointer-events:none!important}
body[data-page="dashboard"] .page-title-row .c4t-home-brand-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,5,14,.92) 0%,rgba(8,5,14,.78) 38%,rgba(8,5,14,.44) 72%,rgba(8,5,14,.62) 100%);z-index:1}
body[data-page="dashboard"] .page-title-row .c4t-home-brand-hero img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 42%!important;opacity:.48!important;filter:saturate(.9) contrast(.98)!important;transition:opacity .55s ease!important}
body[data-page="dashboard"] .page-title-row .c4t-home-brand-hero img.is-fading{opacity:.18!important}
body[data-page="dashboard"]>.c4t-home-brand-hero,body[data-page="dashboard"] main.page-content>.c4t-home-brand-hero{display:none!important}
body[data-page="dashboard"] .home-screenshot-mount,body[data-page="dashboard"] .c4t-home-feature-rotation{display:none!important}

/* One visible CURRENT-language flag. Clicking it opens the 9-language chooser.
   This adds behavior only; it does not replace the v348 navigation spacing/divider lines. */
.language-flags.language-dropdown{position:relative!important;display:block!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
.language-current{display:flex;align-items:center;justify-content:center;gap:2px;width:43px;height:38px;padding:2px 4px;border:1px solid rgba(160,127,217,.35);border-radius:11px;background:rgba(13,10,24,.9);color:#e9dcff;cursor:pointer;box-shadow:0 7px 20px rgba(0,0,0,.18)}
.language-current:hover,.language-dropdown.open .language-current{border-color:#9d5cff;background:rgba(126,34,206,.18)}
.language-current img{display:block;width:30px;height:30px;object-fit:contain}
.language-current-chevron{font-size:11px;line-height:1;transform:translateY(-1px)}
.language-menu{position:absolute;z-index:1000;top:calc(100% + 7px);right:0;display:none;width:max-content;min-width:205px;padding:6px;border:1px solid rgba(157,92,255,.46);border-radius:12px;background:#100b19;box-shadow:0 18px 44px rgba(0,0,0,.46)}
.language-dropdown.open .language-menu{display:grid;gap:2px}
.language-menu-item{display:grid;grid-template-columns:30px minmax(0,1fr) 18px;align-items:center;gap:8px;min-height:38px;padding:5px 8px;border:1px solid transparent;border-radius:8px;color:#eee7f7;text-decoration:none!important;white-space:nowrap}
.language-menu-item:hover{background:rgba(137,63,255,.12);border-color:rgba(157,92,255,.22)}
.language-menu-item.active{background:rgba(126,34,206,.20);border-color:rgba(157,92,255,.42)}
.language-menu-item img{width:26px;height:26px;object-fit:contain}
.language-check{text-align:right;color:#c78cff;font-weight:900}
@media(max-width:760px){.language-current{width:39px;height:34px;border-radius:9px}.language-current img{width:27px;height:27px}.language-menu{right:-4px;min-width:196px;max-height:min(68vh,420px);overflow:auto}}

/* User-supplied Steam/profile artwork: visible as the background of the WHOLE Steam panel. */
body[data-page="dashboard"] .steam-panel{position:relative!important;overflow:hidden!important;background:#0b0712!important;isolation:isolate!important}
body[data-page="dashboard"] .steam-panel:before{content:""!important;position:absolute!important;inset:0!important;z-index:0!important;background-image:linear-gradient(90deg,rgba(8,5,14,.54),rgba(8,5,14,.34) 58%,rgba(19,8,31,.48)),url('../images/brand/steam-profile-background.png')!important;background-position:center 30%!important;background-size:cover!important;background-repeat:no-repeat!important;opacity:.72!important;pointer-events:none!important}
body[data-page="dashboard"] .steam-panel>.panel-head,body[data-page="dashboard"] .steam-panel>.panel-body{position:relative!important;z-index:1!important;background:transparent!important}
body[data-page="dashboard"] .steam-panel .info-pairs>div,body[data-page="dashboard"] .steam-panel .button{background-color:rgba(9,6,15,.72)!important;backdrop-filter:blur(2px)}

/* Requested public screenshot cleanup. */
.cms-screenshot-grid figure figcaption,.cms-screenshot-grid .cms-screenshot-open-original{display:none!important}

/* Project engagement stays tiny: one heart + count, one download + count. */
.project-stat-icon,.project-heart-icon,.project-download-icon,.project-heart img,.project-download img,.project-download-stat img{width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;object-fit:contain!important}
.project-card-stats,.maker-engagement{gap:10px!important}.project-heart:before,.project-heart:after{content:none!important}.project-heart>svg{display:none!important}

/* Goal Maker is an on-site maker, not a downloadable Projects card. */
[data-project-slug="goal-maker"],a[href$="project-goal-maker.html"],a[href*="/project-goal-maker.html"]{display:none!important}


/* v363 — FINAL settled rules: no redesign.
   1) EVERY sidebar/navigation label uses Scratchmeow5.
   2) Goal Maker runtime is untouched. The site shell shows ONE GOAL MAKER name;
      iframe is normal layout and only its internal header strip is clipped externally. */
.app-sidebar .sidebar-nav a > span{
  font-family:"Scratchmeow5","Rajdhani","Arial Narrow",Arial,sans-serif!important;
  font-weight:400!important;
  font-synthesis:none!important;
}
body[data-page="goal-maker-shell"] .page-title-row h1{
  font-family:"Scratchmeow5","Rajdhani","Arial Narrow",Arial,sans-serif!important;
  font-weight:400!important;
  text-transform:uppercase!important;
  letter-spacing:.02em!important;
  font-size:clamp(30px,2.2vw,42px)!important;
  line-height:1!important;
}
body[data-page="goal-maker-shell"] .goal-maker-shell-panel>.panel-body{
  padding:0!important;
  overflow:hidden!important;
}
body[data-page="goal-maker-shell"] .goal-maker-embed-wrap{
  position:relative!important;
  width:100%!important;
  overflow:hidden!important;
  padding:0!important;
  background:#090712!important;
}
body[data-page="goal-maker-shell"] .goal-maker-embed{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  height:1000px!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#090712!important;
  transform:none!important;
}
@media(max-width:1050px){
  body[data-page="goal-maker-shell"] .goal-maker-embed{height:1200px!important;}
}


/* v364 — shell-only duplicate-header crop + embedded maker sizing.
   Internal maker/tool files are NOT edited. The site shell simply clips the maker's own
   top title strip so the official tool name appears once on the page. */
.maker-project-body{position:relative!important;overflow:hidden!important;min-width:0!important;background:#090712!important}
.maker-frame{display:block!important;width:100%!important;max-width:none!important;min-height:0;border:0!important;background:#090712!important;transform:none;margin:0}
body[data-page="goal-maker-shell"] .goal-maker-embed{margin:0!important;transform:none!important}
body[data-page="goal-maker-shell"] .goal-maker-embed-wrap{overflow:hidden!important}
