/* Home, tools first (2026-10-21): buttons under the title, "For streamers" tools box, "About the creator" heading,
   support + CATMINT boxes. Boxes use the site spacing contract (--section-gap / --panel-pad / --inner-gap). */
.home-cta-row{display:flex;flex-wrap:wrap;gap:var(--inner-gap,10px);margin-top:var(--inner-gap,12px)}
.home-cta-row .button{min-height:44px}

.home-tools{margin:var(--section-gap,18px) 0}
.home-tools-intro{margin:0 0 var(--inner-gap,14px);color:var(--muted,#c9b6dc);line-height:1.55;max-width:980px}
.home-tools-intro .eyebrow{display:inline;margin-right:6px}
.home-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--inner-gap,14px)}
.home-tool-card{display:flex;flex-direction:column;gap:8px;padding:var(--inner-pad,12px);border:1px solid rgba(202,174,255,.22);border-radius:12px;
  background:rgba(20,12,34,.72);color:inherit;text-decoration:none;transition:border-color .15s,background .15s}
.home-tool-card:hover,.home-tool-card:focus-visible{border-color:rgba(202,174,255,.55);background:rgba(155,99,255,.12)}
.home-tool-shot{display:block;aspect-ratio:1200/630;border-radius:9px;overflow:hidden;background:#0b0714}
.home-tool-shot img{display:block;width:100%;height:100%;object-fit:cover}
.home-tool-badges{display:flex;flex-wrap:wrap;gap:6px}
.home-tool-badges em{font-style:normal;font-size:.72rem;font-weight:700;padding:3px 8px;border:1px solid rgba(202,174,255,.3);border-radius:999px;color:#eadcff}
.home-tool-card strong{font-size:1.02rem;line-height:1.25;color:#fff}
.home-tool-desc{font-size:.86rem;line-height:1.45;color:var(--muted,#c9b6dc)}

.home-use-title{margin:var(--section-gap,18px) 0 var(--inner-gap,10px);font-size:1.05rem}
.home-use-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--inner-gap,14px)}
.home-use-tile{display:flex;flex-direction:column;gap:6px;padding:var(--panel-pad-y,16px) var(--panel-pad-x,16px);border:1px solid rgba(202,174,255,.28);
  border-radius:12px;background:rgba(155,99,255,.08);color:inherit;text-decoration:none}
.home-use-tile:hover,.home-use-tile:focus-visible{background:rgba(155,99,255,.16);border-color:rgba(202,174,255,.55)}
.home-use-tile strong{font-size:1.02rem;color:#fff}
.home-use-tile span{font-size:.86rem;line-height:1.45;color:var(--muted,#c9b6dc)}

.home-section-head{margin:var(--section-gap,18px) 0 var(--inner-gap,12px)}
.home-section-head h2{margin:0 0 4px}
.home-section-head p{margin:0;color:var(--muted,#c9b6dc)}

.home-bottom-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--section-gap,18px);margin:var(--section-gap,18px) 0;align-items:stretch}
.home-bottom-row .panel-body p{margin:0 0 var(--inner-gap,12px);color:var(--muted,#c9b6dc);line-height:1.5}
.home-support-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--inner-gap,10px)}
.home-support-actions .button{min-height:44px;justify-content:center;text-align:center;white-space:normal}
.home-support-actions .button.primary{grid-column:1/-1}
.home-catmint-list{display:flex;flex-wrap:wrap;gap:8px}
.home-catmint-list a{font-size:.84rem;font-weight:700;padding:6px 11px;border:1px solid rgba(202,174,255,.3);border-radius:999px;color:#eadcff;text-decoration:none;background:rgba(20,12,34,.6)}
.home-catmint-list a:hover,.home-catmint-list a:focus-visible{background:rgba(155,99,255,.16);color:#fff}

/* 8 cards: 4 or 2 per row, never 3 (no half-empty last row) */
@media (max-width:1100px){.home-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:1000px){.home-use-grid,.home-bottom-row{grid-template-columns:1fr}}
@media (max-width:560px){.home-tool-grid,.home-support-actions{grid-template-columns:1fr}.home-cta-row .button{flex:1 1 100%}.home-tool-desc{display:none}}   /* phones: shorter scroll */
/* square / small pictures (Catmint Wheel, Sniff Bot logo): whole and centred, never stretched */
.home-tool-shot-fit{display:flex;align-items:center;justify-content:center}
.home-tool-shot-fit img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain}

/* Live box on Home (2026-10-21, user: "text on the left instead of taking the space"): the stream thumbnail when live,
   the Twitch offline banner when offline, shown BESIDE the text (not as a dark backdrop behind it). Phones: picture on top. */
body[data-page="dashboard"] .live-panel{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)!important;align-items:stretch!important}
body[data-page="dashboard"] .live-panel .live-content{order:1;position:relative;z-index:1;align-self:center}
body[data-page="dashboard"] .live-panel .live-visual{display:block!important;order:2;position:relative!important;inset:auto!important;
  margin:var(--panel-pad-y,16px) var(--panel-pad-x,16px) var(--panel-pad-y,16px) 0;min-height:220px;aspect-ratio:16/9;align-self:center;
  border:1px solid rgba(202,174,255,.22);border-radius:12px;background-color:#0b0714;background-size:cover!important;background-position:center!important}
body[data-page="dashboard"] .live-panel .live-visual::after{display:none!important}
@media (max-width:900px){
  body[data-page="dashboard"] .live-panel{grid-template-columns:1fr!important}
  body[data-page="dashboard"] .live-panel .live-visual{order:0;margin:var(--panel-pad-y,16px) var(--panel-pad-x,16px) 0;min-height:0}
}

/* Home dashboard below the tools (2026-10-21): when the page area is <= 1180 px the charts box spans the full width
   (dashboard.css container query) but a v377 screen-width rule still forced 3 columns -> empty third column next to
   Recent clips / Recommendations. Same condition as the container query: 2 equal columns, no gap. */
@container c4tm30w-page (max-width:1180px){
  html body[data-page="dashboard"]:not(.cms-edit-mode) .dashboard-columns{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:none!important}
  html body[data-page="dashboard"]:not(.cms-edit-mode) .dashboard-columns>.dashboard-column-wide{grid-column:1/-1!important}
}

/* Phone: dashboard boxes use the full width (was squeezed into 2 columns). */
@media (max-width:1179px){html body[data-page=dashboard]:not(.cms-edit-mode) .dashboard-columns{grid-template-columns:minmax(0,1fr)!important}html body[data-page=dashboard]:not(.cms-edit-mode) .dashboard-columns>*{grid-column:auto!important}}
/* Home H1: brand + short descriptive line (SEO: H1 needs more than one word). */
h1 .h1-sub{display:block;margin-top:6px;font-family:var(--c4t-readable-font,"Rajdhani","Arial Narrow","Rajdhani Fallback","Rajdhani Fallback Android",Arial,sans-serif);font-size:clamp(15px,.36em,22px);font-weight:700;letter-spacing:.04em;text-transform:none;line-height:1.2;color:#cbb7ff}
/* Home tool cards: hearts + downloads row */
.home-tool-card .home-tool-stats{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 2px}
.home-tool-card .home-tool-stats>span{padding:3px 8px!important;font-size:12px}
.home-tool-card .home-tool-stats img{width:14px;height:14px}

/* 2026-10-24: Home shows only full rows of cards (home-tools.js) */
.home-tool-card[hidden]{display:none!important}
