/* /sidehustle — language-tuned type + calm home surfaces.
 * Scoped under body.sidehustle. Grep before adding short global class names. */

body.sidehustle {
  --sidehustle-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --sh-ease: cubic-bezier(.22, 1, .36, 1);
  --sh-font-display: "Segoe UI", system-ui, sans-serif;
  --sh-font-body: "Segoe UI", system-ui, sans-serif;
  --sh-tracking: -0.01em;
  --sh-leading: 1.55;
  --sh-title-leading: 1.2;
}

html[lang^="ko"] body.sidehustle {
  --sh-font-display: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --sh-font-body: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --sh-tracking: -0.02em;
  --sh-leading: 1.7;
  --sh-title-leading: 1.35;
}
html[lang^="ja"] body.sidehustle {
  --sh-font-display: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --sh-font-body: "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  --sh-tracking: 0.02em;
  --sh-leading: 1.75;
  --sh-title-leading: 1.4;
}
html[lang^="zh"] body.sidehustle {
  --sh-font-display: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --sh-font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --sh-tracking: 0.01em;
  --sh-leading: 1.7;
  --sh-title-leading: 1.35;
}
html[lang="ru"] body.sidehustle {
  --sh-font-display: "Segoe UI", "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --sh-font-body: "Segoe UI", "PT Sans", Arial, sans-serif;
  --sh-tracking: 0;
  --sh-leading: 1.6;
}
html[lang="de"] body.sidehustle,
html[lang="es"] body.sidehustle,
html[lang="fr"] body.sidehustle,
html[lang="pt-BR"] body.sidehustle,
html[lang="pt"] body.sidehustle {
  --sh-font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sh-tracking: -0.015em;
  --sh-leading: 1.58;
}

body.sidehustle,
body.sidehustle .lede,
body.sidehustle .sub,
body.sidehustle p,
body.sidehustle .section-intro {
  font-family: var(--sh-font-body);
  letter-spacing: var(--sh-tracking);
  line-height: var(--sh-leading);
}
body.sidehustle h1,
body.sidehustle h2,
body.sidehustle h3,
body.sidehustle .kicker {
  font-family: var(--sh-font-display);
  line-height: var(--sh-title-leading);
  letter-spacing: var(--sh-tracking);
}

html[lang^="ko"] body.sidehustle,
html[lang^="ja"] body.sidehustle,
html[lang^="zh"] body.sidehustle {
  font-size: 1.02rem;
}
html[lang^="ko"] body.sidehustle h1,
html[lang^="ja"] body.sidehustle h1,
html[lang^="zh"] body.sidehustle h1 {
  word-break: keep-all;
}

/* ---------- home hero: quiet warm charcoal ---------- */
body.sidehustle .jhome-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(234, 88, 12, .22), transparent 55%),
    linear-gradient(165deg, #14110f 0%, #1c1917 55%, #292524 100%);
  color: #fafaf9;
  padding-bottom: 2.4rem;
}
body.sidehustle .jhome-hero .lede,
body.sidehustle .jhome-hero .crumbs a,
body.sidehustle .jhome-hero .kicker {
  color: #d6d3d1;
}
body.sidehustle .jhome-hero h1 {
  color: #fff;
  text-wrap: balance;
  max-width: 18ch;
  font-weight: 750;
  letter-spacing: -0.03em;
}
body.sidehustle .jhome-hero .lede {
  max-width: 42rem;
  font-size: 1.05rem;
  color: #a8a29e;
}

body.sidehustle .sh-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 1.75rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
body.sidehustle .sh-stats span {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #78716c;
}
body.sidehustle .sh-stats b {
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #fafaf9;
  font-variant-numeric: tabular-nums;
}

/* Single category strip — color dot + label, no emoji stage */
body.sidehustle .sh-path {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .65rem;
  margin-top: 1.75rem;
}
body.sidehustle .sh-path a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .85rem .42rem .65rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .14);
  color: #e7e5e4;
  font-size: .86rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
body.sidehustle .sh-path a i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat, #ea580c);
  flex-shrink: 0;
}
body.sidehustle .sh-path a:hover,
body.sidehustle .sh-path a.is-hot {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  text-decoration: none;
}

body.sidehustle .sh-hero-actions {
  margin: 1.35rem 0 0;
}
body.sidehustle .sh-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #fdba74;
  font-weight: 650;
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
body.sidehustle .sh-hero-cta::after { content: " →"; }
body.sidehustle .sh-hero-cta:hover {
  color: #fed7aa;
  border-bottom-color: rgba(253, 186, 116, .45);
  text-decoration: none;
}

body.sidehustle .hustle-card .jc-meter i,
body.sidehustle .jc-meter i {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

/* ---------- map: compact letter dots ---------- */
body.sidehustle .sh-map-sec {
  margin-top: .5rem;
}
body.sidehustle .sh-map-sec .hint {
  margin: .35rem 0 1rem;
  color: var(--muted);
  max-width: 40rem;
}
body.sidehustle .sh-map {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--line) 85%, #78716c);
  border-radius: 16px;
  padding: 1.35rem 1.1rem 1rem;
  box-shadow: none;
}
body.sidehustle .sh-map .map-axes {
  position: relative;
  height: 0;
  z-index: 1;
}
body.sidehustle .sh-map .map-axes .ax-y,
body.sidehustle .sh-map .map-axes .ax-x {
  position: absolute;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #78716c;
}
body.sidehustle .sh-map .map-axes .ax-y {
  left: 10px;
  top: 190px;
  transform: rotate(-90deg);
  transform-origin: left center;
}
body.sidehustle .sh-map .map-axes .ax-x {
  right: 18px;
  bottom: -12px;
  top: auto;
}
body.sidehustle .quadrant.is-compact .qd-halo {
  opacity: .07;
}
body.sidehustle .quadrant.is-compact .qd-core {
  opacity: .88;
  stroke: #fff;
  stroke-width: 1.25;
}
body.sidehustle .qd-mark {
  fill: #fff;
  font-weight: 750;
  pointer-events: none;
  user-select: none;
}
body.sidehustle .qd-dot:hover .qd-halo,
body.sidehustle .qd-dot:focus-visible .qd-halo {
  opacity: .2;
  transform: scale(1.35);
}
body.sidehustle .qd-dot:hover .qd-core,
body.sidehustle .qd-dot:focus-visible .qd-core {
  transform: scale(1.18);
}
body.sidehustle .sh-map .map-note {
  margin-top: .75rem;
  font-size: .8rem;
  color: #78716c;
  text-align: left;
}

/* ---------- category cards ---------- */
body.sidehustle .sh-cat-grid .sh-cat-card {
  border-left: 3px solid var(--card-accent, var(--accent));
  box-shadow: none;
  background: var(--surface, #fff);
}
body.sidehustle .sh-cat-card .sh-cat-dot,
body.sidehustle .fgroup .sh-cat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-accent, var(--accent));
  vertical-align: middle;
  margin-right: .15rem;
}
body.sidehustle .sh-cat-card .icon { display: none; }
body.sidehustle .fgroup {
  border-bottom-width: 1px;
  border-bottom-color: color-mix(in srgb, var(--card-accent, var(--accent)) 35%, var(--line));
}
body.sidehustle .fgroup span:not(.sh-cat-dot) { display: none; }

body.sidehustle .pillar-card {
  border-left-width: 3px;
  box-shadow: none;
}

/* ---------- content modules ---------- */
body.sidehustle .myth-card {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.1rem;
  background: color-mix(in srgb, var(--accent) 5%, var(--bg, #fff));
  border-radius: 0 12px 12px 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--sh-ease), transform .5s var(--sh-ease);
}
body.sidehustle .myth-card.is-in {
  opacity: 1;
  transform: none;
}
body.sidehustle .myth-card .myth-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
body.sidehustle .myth-card .myth-claim {
  font-weight: 650;
  margin: 0 0 0.55rem;
}
body.sidehustle .myth-card .myth-truth {
  margin: 0 0 0.55rem;
  color: var(--accent2);
  font-weight: 600;
}

body.sidehustle .age-cue {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
body.sidehustle .age-cue .ac-age {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent2);
}

body.sidehustle .check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 22%, transparent);
}
body.sidehustle .check-row .ck {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  border: 2px solid var(--accent);
  margin-top: 0.15rem;
}

body.sidehustle .finding {
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--card, #fff);
  border: 1px solid var(--line);
  box-shadow: none;
}
body.sidehustle .finding .fd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

body.sidehustle .profile.sh-pulse .pf-radar {
  animation: pgRadarIn .9s var(--sh-ease) both;
}
@keyframes pgRadarIn {
  from { opacity: .35; transform: scale(.94); }
  to { opacity: 1; transform: none; }
}

body.sidehustle .jhero.has-art .jhero-art img {
  border-radius: 14px;
  box-shadow: 0 16px 40px -28px rgba(0, 0, 0, .4);
}

@media (max-width: 640px) {
  body.sidehustle .sh-map .map-axes .ax-y,
  body.sidehustle .sh-map .map-axes .ax-x { display: none; }
  body.sidehustle .jhome-hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.sidehustle .myth-card {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1;
  }
}
