/* HappyStock v15.32.237 — scoped public-page visual refinements.
   No authentication, game, grade calculation, data or advertising logic. */
/* A single clear page heading; preserve meaningful descriptions and controls. */
.page-lead,
.hs-catalog-games .hs-catalog-hero,
.hs-catalog-giveaways .hs-catalog-hero,
body.hs-inbox-v120 .hs-inbox-hero {
  background:transparent; border:0; border-radius:0; box-shadow:none;
  min-height:0; padding:8px 0 17px; margin:0 0 20px;
  border-bottom:1px solid var(--hs-night-line,#dce6df); overflow:visible;
}
.hs-catalog-games .hs-catalog-hero::before,.hs-catalog-games .hs-catalog-hero::after,
.hs-catalog-giveaways .hs-catalog-hero::before,.hs-catalog-giveaways .hs-catalog-hero::after {content:none}
.page-lead h1,.hs-catalog-games .page-lead h1,.hs-catalog-giveaways .page-lead h1,
body.hs-inbox-v120 .hs-inbox-hero h1 {
  color:var(--hs-night-text,#263c30); margin:0; font-size:clamp(26px,2.4vw,34px);
  font-weight:800; line-height:1.25; letter-spacing:-.035em; overflow-wrap:anywhere;
}
.page-lead p,.hs-catalog-games .page-lead p,.hs-catalog-giveaways .page-lead p,
body.hs-inbox-v120 .hs-inbox-hero p {
  color:var(--hs-night-secondary,#43594c); margin:8px 0 0;
  font-size:clamp(14px,1vw,17px); line-height:1.65; max-width:76ch;
}
/* Community has a separate hero (not the game phase/room hero). */
body.cc-public .cc-hero {
  background:transparent;color:var(--hs-night-text,#263c30);border:0;border-radius:0;
  min-height:0;padding:8px 0 17px;margin-bottom:18px;
  border-bottom:1px solid var(--hs-night-line,#dce6df);
}
body.cc-public .cc-hero::before {content:none}
body.cc-public .cc-hero h1 {font-size:clamp(26px,2.4vw,34px);line-height:1.25;letter-spacing:-.035em}
body.cc-public .cc-hero p {color:var(--hs-night-secondary,#43594c);max-width:76ch;font-size:clamp(14px,1vw,17px);line-height:1.65}
/* Grade labels: fixed light, subdued backgrounds and dark ink in both themes. */
.hs-school-grade,.hs-home-learning-badge {background:#dce9df;color:#14271c;box-shadow:none;}
.hs-home-learning-badge {line-height:1.3}
/* Only resolved guest cards. Logged-in panel and pending placeholder are unchanged. */
:is(.sidebar,.mobile-login-panel) .login-card:not(.hs-auth-pending):has([data-account-panel][hidden]):has([data-login-form]:not([hidden])) {
  padding:15px 14px 12px;box-shadow:none;border-radius:10px;
}
:is(.sidebar,.mobile-login-panel) .login-card:not(.hs-auth-pending):has([data-account-panel][hidden]):has([data-login-form]:not([hidden])) .aside-subtitle {
  margin:5px 0 11px;line-height:1.45;font-size:clamp(13px,.78vw,15px);color:var(--hs-night-secondary,#43594c);
}
:is(.sidebar,.mobile-login-panel) .login-card:not(.hs-auth-pending):has([data-account-panel][hidden]):has([data-login-form]:not([hidden])) .login-links {
  margin-top:7px;gap:8px;flex-wrap:wrap;font-size:clamp(13px,.76vw,15px);
}
:is(.sidebar,.mobile-login-panel) .login-card:not(.hs-auth-pending):has([data-account-panel][hidden]):has([data-login-form]:not([hidden])) .login-links a {color:var(--hs-night-mint-ink,#126b45);padding-block:6px;overflow-wrap:anywhere}
/* Improve secondary text in public sections without resizing chart labels,
   scores, navigation, game controls or administrative forms. */
.hs-school-intro,.hs-school-card-summary,.hs-ranking-desc,.hs-home-rank-desc,
.hs-home-company-empty,.hs-home-learning-placeholder,.hs-search-status,
.hs-search-result-description,.hs-etf-detail-title p,.hs-etf-ssr-issuer,.hs-etf-updated-at,
.hs-guru-note,.hs-guru-ratio-note,.hs-company-normalization-note,.hs-company-shared-notice,
.hs-etf-score-layout .hs-etf-score-note p,.hs-etf-expand .hs-etf-disclaimer,.hs-etf-ssr .hs-etf-disclaimer {
  color:var(--hs-night-secondary,#43594c);line-height:1.6;
  font-size:clamp(14px,calc(12px + .23vw),17px);overflow-wrap:anywhere;
}
/* Matching navigation treatments by role; actual links/accessible names unchanged. */
.section-link,.hs-home-learning-all {
  display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:4px 0;
  color:var(--hs-night-mint-ink,#126b45);font-size:clamp(13px,calc(11px + .22vw),16px);
  font-weight:700;line-height:1.4;text-decoration:none;white-space:normal;text-align:end;
}
.section-link:hover,.hs-home-learning-all:hover {text-decoration:underline;text-underline-offset:3px}
.section-link:focus-visible,.hs-home-learning-all:focus-visible {outline:2px solid currentColor;outline-offset:3px;border-radius:3px}
.hs-home-guru-find,.hs-guru-main-button,.hs-guru-cta {border-radius:8px;box-shadow:none;line-height:1.4}
.hs-detail-share {border-radius:8px;box-shadow:none;line-height:1.4}
/* ETF detail only: cohesive data rows rather than individual boxes. */
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-metric-blocks {gap:20px;margin-top:23px}
:is(.hs-etf-expand,.hs-etf-ssr) :is(.hs-etf-metric-section,.hs-etf-fund-information,.hs-etf-holdings) h3 {
  color:var(--hs-night-text,#263c30);font-size:clamp(18px,calc(15px + .36vw),23px);font-weight:750;line-height:1.35;margin:0 0 10px;
}
:is(.hs-etf-expand,.hs-etf-ssr) :is(.hs-etf-metric-grid,.hs-etf-fund-info-grid) {
  gap:0;border-block:1px solid var(--hs-night-line,#dce6df);border-radius:0;min-width:0;
}
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-metric-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
:is(.hs-etf-expand,.hs-etf-ssr) :is(.hs-etf-metric-tile,.hs-etf-fund-info-card) {
  border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0;
  min-height:0;padding:14px 8px;gap:7px;justify-content:center;
}
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-metric-tile+.hs-etf-metric-tile,
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-fund-info-card+.hs-etf-fund-info-card {border-inline-start:1px solid var(--hs-night-line,#dce6df)}
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-metric-tile>span,
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-fund-info-card>span {
  color:var(--hs-night-secondary,#43594c);font-size:clamp(13px,calc(11.5px + .23vw),17px);line-height:1.4;overflow-wrap:anywhere;
}
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-metric-value strong {
  font-size:clamp(18px,calc(15px + .55vw),29px);font-weight:800;line-height:1.25;overflow-wrap:anywhere;max-width:100%;
}
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-metric-value .hs-company-grade {min-width:22px;height:22px;padding:2px 4px;border-radius:4px;font-size:12px;box-shadow:none}
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-fund-info-card>strong {font-size:clamp(15px,calc(12px + .45vw),23px);line-height:1.4}
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-holdings-scroll {border:0;border-radius:0;border-block:1px solid var(--hs-night-line,#dce6df)}
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-holdings th {background:var(--hs-night-inset,#f1f5f2);font-weight:700}
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-holdings :is(td,th) {padding-block:11px}
@media(max-width:730px){
  :is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-fund-info-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
  :is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-fund-info-card:nth-child(3) {border-inline-start:0}
  :is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-fund-info-card:nth-child(n+3) {border-top:1px solid var(--hs-night-line,#dce6df)}
  .page-lead,.hs-catalog-games .hs-catalog-hero,.hs-catalog-giveaways .hs-catalog-hero,body.hs-inbox-v120 .hs-inbox-hero {padding:5px 0 14px;margin-bottom:16px}
}
@media(max-width:480px){
  :is(.hs-etf-expand,.hs-etf-ssr) :is(.hs-etf-metric-tile,.hs-etf-fund-info-card) {padding:12px 4px;gap:5px}
  :is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-metric-value {flex-direction:column;gap:4px;max-width:100%}
  :is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-metric-value strong {font-size:clamp(14px,4vw,18px)}
  :is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-metric-tile>span {font-size:12.5px}
  :is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-fund-info-card>span {font-size:13px}
  :is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-fund-info-card>strong {font-size:14px}
}
/* Shared role-based links, excluding editor and destructive actions. */
a.hs-company-back,a.hs-guru-back,a.hs-company-outline {
  display:inline-flex;align-items:center;gap:6px;color:var(--hs-night-mint-ink,#126b45);
  font-size:clamp(13px,calc(11px + .22vw),16px);font-weight:700;line-height:1.4;
  min-height:32px;padding-block:4px;text-decoration:none;
}
a.hs-company-back:hover,a.hs-guru-back:hover,a.hs-company-outline:hover {text-decoration:underline;text-underline-offset:3px}
a.hs-company-back:focus-visible,a.hs-guru-back:focus-visible,a.hs-company-outline:focus-visible {outline:2px solid currentColor;outline-offset:3px;border-radius:3px}
.hs-home-guru-find,.hs-guru-main-button,.hs-guru-cta {background:#127b50}
.hs-etf-score-layout .hs-etf-score-note p {font-size:clamp(14.5px,calc(13.5px + .22vw),17.5px)}
/* Existing radar geometry stays unchanged. Match label ink to the active theme. */
:is(.hs-etf-expand,.hs-etf-ssr) .hs-etf-score-layout>.hs-etf-chart .hs-etf-radar text {fill:var(--hs-night-secondary,#43594c)}
