/* Typography roles shared by the companion and its Studio workspace.
   Display: Dogica's actual bold face, without synthetic bold.
   Interface: one system stack for controls, metadata and reading copy. */
:root {
  --app-display-font: 'Dogica Pixel Bold', 'Dogica Pixel', monospace;
  --app-ui-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body.companion-active { font-family: var(--app-ui-font); font-size: 14px; font-weight: 400; }
#profile-workspace :is(h2,h3),
.companion-active .studio-workspace .studio-editor :is(h2,h3),
.companion-active .profile-stat-strip strong:not(.rank-pending),
.companion-active .profile-extra-stats strong,
.companion-active .referral-strip-label strong,
.companion-active .referral-strip-stat strong,
.companion-active .completion-meter strong,
.companion-active .mini-profile-id strong {
  font-family: var(--app-display-font);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: normal;
}
/* Navigation and actions always use the interface face, including Studio. */
.companion-active :is(button, input, select, textarea, label),
.companion-active .companion-nav a,
.companion-active .profile-tools a,
.companion-active .secondary-button,
.companion-active .studio-module button,
.companion-active .studio-flow,
.companion-active .studio-trait-tile > span,
.companion-active .referral-code-row code {
  font-family: var(--app-ui-font);
  letter-spacing: normal;
}
.companion-active :is(button, .secondary-button),
.companion-active .companion-nav a,
.companion-active .profile-tools a { font-weight: 600; }
.companion-active :is(input,select,textarea) { font-size: 16px; font-weight: 400; line-height: 1.5; }
/* Expandable control rows are controls, not section titles. */
.companion-active :is(.profile-more-stats,.milestone-details,.collection-stats,.collection-legend) > summary {
  font: 600 14px/1.5 var(--app-ui-font);
  letter-spacing: normal;
}
.companion-active :is(.profile-more-stats,.milestone-details,.collection-stats) > summary > span {
  font: 400 12px/1.5 var(--app-ui-font);
}
/* One treatment for small labels and state badges across every view. */
.companion-active .profile-stat-strip article > span,
.companion-active .profile-extra-stats article > span,
.companion-active .referral-strip-label > span,
.companion-active .referral-strip-stat > span,
.companion-active .goal-eyebrow,
.companion-active .giveaway-eyebrow,
.companion-active .giveaway-live-strip,
.companion-active .studio-eyebrow {
  font: 600 11px/1.5 var(--app-ui-font);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.companion-active .giveaway-live-strip strong,
.companion-active .giveaway-state-panel > strong,
.companion-active .achievement-count,
.companion-active .completion-badges strong,
.companion-active .milestone-card > strong {
  font: 600 14px/1.5 var(--app-ui-font);
  letter-spacing: normal;
}
.companion-active :is(.module-note,.collection-results,.giveaway-checkline,.progress-note),
.companion-active .collection-hub .completion-copy p,
.companion-active .asset-action-copy p {
  font: 400 14px/1.6 var(--app-ui-font);
  letter-spacing: normal;
}
.companion-active :is(.goal-caption,.earned-tier,.tier-ladder,.binder-pagination,.mini-profile-stats),
.companion-active .asset-action-copy > span,
.companion-active .collection-tracker .module-title > strong {
  font-family: var(--app-ui-font);
  letter-spacing: normal;
}
.companion-active .next-goal h3 > span { font: 600 14px/1.5 var(--app-ui-font); }
.companion-active .milestone-details .milestone-card h3 { font-size: 12px; line-height: 1.7; }
.companion-active .studio-workspace .studio-editor .studio-heading h2 {
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: normal;
}
.companion-active .studio-workspace .studio-editor .studio-review h3 {
  font-size: 16px;
  line-height: 1.7;
}
#profile-workspace .studio-editor .studio-picker-heading h3 {
  font: 600 14px/1.5 var(--app-ui-font);
}
.companion-active .studio-editor .studio-recolor summary { font-family: var(--app-ui-font); font-weight: 600; }
.companion-active .studio-editor :is(.studio-status,.studio-publish-note,.studio-save-note,.studio-draft-indicator) { font-family: var(--app-ui-font); font-weight: 400; }
.companion-active .studio-editor .studio-trait-tile > span { font-weight: 500; }
@media (max-width: 820px) {
  .companion-active .studio-workspace .studio-editor .studio-heading h2 { font-size: 16px; }
  .companion-active .studio-workspace .studio-editor .studio-review h3 { font-size: 14px; }
  .companion-active .profile-stat-strip article > span { font-size: 10px; }
}
.companion-active .studio-module button { font-weight: 600; }
/* Page titles share one size across Progress, Collection, Rewards and Studio. */
body.companion-active { --app-page-title-size: 20px; }
.companion-active #progress-title,
.companion-active #companion-collection .module-title h2,
.companion-active #rewards-title,
.companion-active #companion-studio > h2,
.companion-active .studio-workspace .studio-editor .studio-heading h2 {
  margin: 0;
  font: 400 var(--app-page-title-size)/1.7 var(--app-display-font);
  font-synthesis: none;
  letter-spacing: normal;
}
@media (max-width: 820px) {
  body.companion-active { --app-page-title-size: 16px; }
}
