/* Shared text roles for the public site. Load after page-specific styles. */
body.noir-site {
  --noir-type-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  --noir-type-body: 16px;
  --noir-type-meta: 14px;
  --noir-type-caption: 12px;
  --noir-type-item: 17px;
  --noir-type-section: 23px;
  --noir-type-page: clamp(30px, 4vw, 42px);
  --noir-type-muted: #b8adbf;
  font-family: var(--noir-type-family);
  font-size: var(--noir-type-body) !important;
  line-height: 1.55 !important;
  font-weight: 400 !important;
}

.noir-site .v32-page-shell {
  font-size: var(--noir-type-body) !important;
  line-height: 1.55 !important;
}

.noir-site .v32-page-shell h1 {
  font-size: var(--noir-type-page) !important;
  line-height: 1.16 !important;
  letter-spacing: -.035em;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.noir-site .v32-page-shell .noir-home h1 {
  font-size: clamp(42px, 8vw, 68px) !important;
}

.noir-site .v32-page-shell :is(h2, .noir-order-sticky h2) {
  font-size: var(--noir-type-section) !important;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.02em;
}

.noir-site .v32-page-shell :is(h3, .v32-app-grid h2, .v32-step-grid h2, .noir-ticket-meta strong) {
  font-size: var(--noir-type-item) !important;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: 0;
}

.noir-site :is(.v32-tabs a, .v32-profile-button, .ui-mobile-menu-grid a, .v32-footer-inner a) {
  font-size: var(--noir-type-meta) !important;
  line-height: 1.35;
}

.noir-site .v32-mobile-dock a {
  font-size: var(--noir-type-caption) !important;
  line-height: 1.25;
}

.noir-site :is(.v32-page-shell, .noir-device-link-dialog) .btn,
.noir-site .v32-page-shell :is(.v32-copy-box, .v32-copy-line) button {
  font-family: inherit;
  font-size: var(--noir-type-body) !important;
  font-weight: 650;
  line-height: 1.3;
}

.noir-site :is(.v32-page-shell, .noir-device-link-dialog, .v32-control-menu) :is(input, textarea, select):not([type="radio"], [type="checkbox"]) {
  font-family: inherit !important;
  font-size: var(--noir-type-body) !important;
}

.noir-site .v32-page-shell :is(.noir-counter input, .noir-duration-counter input) {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.noir-site .v32-page-shell :is(
  .noir-home-links a, .v32-status-card strong, .v32-contact-grid strong, .v32-nav-card strong,
  .v32-faq-list summary, .v32-faq-list p, .v32-inline-note span, .legal p, .legal li,
  .noir-ticket-message p, .noir-support-confirmation, .noir-support-error,
  .noir-base-grid b, .noir-base-grid strong, .noir-unlimited b, .noir-unlimited strong,
  .noir-order-card dd, .noir-mode-switch span, .noir-card-title, .noir-choice-group legend strong
) {
  font-size: var(--noir-type-body) !important;
  line-height: 1.45;
}

.noir-site .v32-page-shell :is(
  .v32-status-card > span, .v32-step-grid span, .v32-app-grid span, .v32-contact-grid span,
  .v32-nav-card span, .v32-invite-main span, .v32-plan-specs span, .v32-result-card label > span,
  .v32-qr-card span, .v32-kicker, .noir-ticket-meta > span, .noir-ticket-status, .noir-ticket-message b,
  .noir-support-form label, .noir-base-grid small, .noir-addon-rate, .noir-unit-switch span,
  .noir-counter label span, .noir-order-card dt, .v32-auth-form label span,
  .v32-auth-links a, .v32-auth-links button, .v32-auth-card header p
) {
  font-size: var(--noir-type-meta) !important;
  color: var(--noir-type-muted);
  line-height: 1.45;
}

.noir-site .v32-page-shell .noir-ticket-status.is-open { color: #f1cb91 }
.noir-site .v32-page-shell .noir-ticket-status.is-resolved { color: #afe9cb }
.noir-site .v32-page-shell .noir-ticket-status.is-rejected { color: #ffc0cf }

.noir-site .v32-page-shell .v32-auth-form input.v32-auth-code {
  font-size: var(--noir-type-section) !important;
  font-variant-numeric: tabular-nums;
}

.noir-site .v32-account .v32-account-user h1 {
  font-size: clamp(24px, 3vw, 32px) !important;
}

.noir-site .v32-page-shell .v32-account :is(.v32-sub-head h2, .v32-account-card h2) {
  font-size: var(--noir-type-section) !important;
}

.noir-site .v32-account :is(.v32-device-title h3, .v32-devices-block > header h3) {
  font-size: var(--noir-type-item) !important;
}

.noir-site .v32-account :is(
  .v32-account-user p, .v32-account-card > header span, .v32-sub-head p,
  .v32-sub-metrics span, .v32-device-owner span, .v32-device-metrics span, .v32-account-kv span,
  .v32-browser-tab small, .v32-device-tab small, .v32-copy-box span, .v32-device-details summary,
  .noir-history-meta, .noir-history-empty
) {
  font-size: var(--noir-type-meta) !important;
  color: var(--noir-type-muted);
  line-height: 1.45;
}

.noir-site .v32-account :is(
  .v32-account-tabs button, .v32-balance, .v32-device-tab span, .v32-browser-tab span,
  .v32-sub-metrics strong, .v32-device-owner strong, .v32-device-metrics strong, .v32-account-kv strong,
  .noir-history-amount, .noir-history-message
) {
  font-size: var(--noir-type-body) !important;
  line-height: 1.45;
}

.noir-site .v32-account :is(.v32-status, .v32-relationship-state, .v32-devices-block > header > b) {
  font-size: var(--noir-type-meta) !important;
  line-height: 1.35;
  text-transform: none;
}

.noir-site :is(.v32-control-menu, .noir-device-link-dialog) :is(.v32-menu-head strong, .v32-menu-form button, .v32-menu-row, p) {
  font-size: var(--noir-type-body) !important;
}

.noir-site :is(.v32-control-menu, .noir-device-link-dialog) :is(.v32-menu-head span, .v32-menu-contact, .v32-menu-form label span, [data-link-copy-status]) {
  font-size: var(--noir-type-meta) !important;
  color: var(--noir-type-muted);
}

.noir-site .v32-page-shell :is(.v32-copy-box code, .v32-copy-line code, .v32-mono) {
  font-size: var(--noir-type-meta) !important;
  line-height: 1.4;
}
