/**
 * Reguvex Core 4.4.0 — UX Foundation
 * Typography, density and visual hierarchy only. No navigation or workflow logic.
 */
.rgd-app{
  --rgd-font-body:400;
  --rgd-font-ui:500;
  --rgd-font-label:600;
  --rgd-font-heading:700;
  --rgd-font-metric:700;
  --rgd-space-page:22px;
  --rgd-space-section:18px;
  --rgd-space-card:18px;
  --rgd-title-xl:clamp(28px,2.4vw,36px);
  --rgd-title-lg:clamp(25px,2vw,32px);
  --rgd-title-md:18px;
  --rgd-body-size:14px;
  --rgd-small-size:12.5px;
}

/* General reading rhythm */
.rgd-app,.rgd-app button,.rgd-app input,.rgd-app select,.rgd-app textarea{font-family:var(--rgd-font)!important;}
.rgd-app p,.rgd-app li,.rgd-app dd,.rgd-app td,.rgd-app label,.rgd-app small{font-weight:var(--rgd-font-body)!important;}
.rgd-app p{font-size:var(--rgd-body-size)!important;line-height:1.58!important;}
.rgd-app small{font-size:var(--rgd-small-size)!important;line-height:1.5!important;}
.rgd-app strong{font-weight:var(--rgd-font-label)!important;}
.rgd-app .rgd-stat-card strong,.rgd-app .rgd-dashboard-metric strong,.rgd-app .rgd-metric strong,.rgd-app .rgd-readiness-ring strong,.rgd-app .rgd-plan-price strong,.rgd-app .rgd-doc-score strong,.rgd-app .rgd-detail-score strong{font-weight:var(--rgd-font-metric)!important;}

/* Page and section headings */
.rgd-page-intro h2,.rgd-welcome h2,.rgd-section-head h2,.rgd-profile-hero h2,.rgd-onboarding-hero h2{
  font-size:var(--rgd-title-xl)!important;font-weight:var(--rgd-font-heading)!important;line-height:1.12!important;letter-spacing:-.035em!important;margin:4px 0 7px!important;
}
.rgd-dashboard-hero h2,.rgd-report-hero h2,.rgd-simple-hero h2,.rgd-billing-hero h2,.rgd-compliance-hero h2,.rgd-discovery-hero h2,.rgd-intelligence-hero h2,.rgd-detail-hero h2,.rgd-trust-hero h2,.rgd-trust-simple-hero h2,.rgd-trust-command-hero h2,.rgd-help-center-hero h2,.rgd-roadmap-hero h2{
  font-size:var(--rgd-title-lg)!important;font-weight:var(--rgd-font-heading)!important;line-height:1.12!important;letter-spacing:-.035em!important;
}
.rgd-panel h2{font-size:20px!important;font-weight:var(--rgd-font-heading)!important;line-height:1.2!important;letter-spacing:-.02em!important;}
.rgd-panel h3,.rgd-panel-head h3,.rgd-panel>header h3,.rgd-result-heading h3,.rgd-settings-section-head h3,.rgd-profile-progress-copy h3,.rgd-help-support-grid h3,.rgd-obligation-top h3,.rgd-report-card h3,.rgd-document-card h3,.rgd-issue-card h3{
  font-size:var(--rgd-title-md)!important;font-weight:var(--rgd-font-label)!important;line-height:1.28!important;letter-spacing:-.018em!important;
}
.rgd-eyebrow,.rgd-assistant-kicker,.rgd-ask-kicker,.rgd-plan-heading small{font-weight:var(--rgd-font-label)!important;letter-spacing:.09em!important;font-size:11px!important;}

/* Shorter, calmer page introductions */
.rgd-section-head,.rgd-page-intro,.rgd-profile-hero,.rgd-onboarding-hero{margin-bottom:var(--rgd-space-section)!important;}
.rgd-section-head p,.rgd-page-intro p,.rgd-profile-hero p,.rgd-onboarding-hero p,.rgd-dashboard-hero p,.rgd-help-center-hero p{max-width:68ch!important;margin-top:0!important;margin-bottom:0!important;color:var(--rgd-muted)!important;}
.rgd-content{padding:var(--rgd-space-page) clamp(16px,2.5vw,30px)!important;}
.rgd-content>section,.rgd-content>.rgd-panel,.rgd-content>.rgd-card-grid,.rgd-content>.rgd-table-wrap{margin-bottom:var(--rgd-space-section)!important;}

/* Cards and panels: reduce excess air without making them cramped. */
.rgd-panel{border-radius:18px!important;}
.rgd-panel-head,.rgd-panel>header{padding:16px 18px!important;gap:12px!important;}
.rgd-panel>h3{padding:15px 18px!important;margin:0!important;}
.rgd-panel p,.rgd-card-grid p,.rgd-document-card p,.rgd-obligation-card p,.rgd-issue-card p{color:var(--rgd-muted)!important;}
.rgd-card-grid,.rgd-stat-grid,.rgd-document-grid,.rgd-review-list,.rgd-obligation-list{gap:14px!important;}
.rgd-document-card,.rgd-obligation-card,.rgd-issue-card,.rgd-report-card,.rgd-price-card,.rgd-list-item{padding:16px!important;}
.rgd-simple-action-card,.rgd-vault-card,.rgd-beginner-path-card{padding:15px!important;}
.rgd-help-card{min-height:112px!important;padding:14px 16px!important;}

/* Buttons: hierarchy without shouting. */
.rgd-button,.rgd-mini-button,.rgd-link-button,.rgd-muted-action,.rgd-new-permit-button{font-weight:var(--rgd-font-label)!important;letter-spacing:0!important;}
.rgd-button{min-height:40px!important;padding:9px 14px!important;border-radius:10px!important;font-size:13px!important;}
.rgd-mini-button{font-size:12px!important;}
.rgd-link-button{font-size:12.5px!important;}

/* Forms: readable labels, quieter helper text. */
.rgd-form label,.rgd-form-grid label,.rgd-settings-section label,.rgd-activity-fieldset legend{font-weight:var(--rgd-font-label)!important;font-size:13px!important;color:var(--rgd-text)!important;}
.rgd-form input,.rgd-form select,.rgd-form textarea,.rgd-form-grid input,.rgd-form-grid select,.rgd-form-grid textarea{font-weight:var(--rgd-font-body)!important;font-size:14px!important;}
.rgd-inline-help,.rgd-inline-note,.rgd-form small{font-weight:var(--rgd-font-body)!important;}

/* Tables: make rows easier to scan and stop bold saturation. */
.rgd-table th{font-weight:var(--rgd-font-label)!important;font-size:11.5px!important;letter-spacing:.045em!important;}
.rgd-table td{font-weight:var(--rgd-font-body)!important;font-size:13px!important;line-height:1.45!important;}
.rgd-table td strong{font-weight:var(--rgd-font-label)!important;}
.rgd-table th,.rgd-table td{padding:12px 14px!important;}

/* Badges and status labels should be accents, not headlines. */
.rgd-pill,.rgd-status,.rgd-vbadge,.rgd-current-plan-badge,.rgd-readiness-check,.rgd-confidence-meter{font-weight:var(--rgd-font-label)!important;}

/* Help and assistant content */
.rgd-assistant-panel h2{font-size:clamp(22px,1.8vw,28px)!important;font-weight:var(--rgd-font-heading)!important;}
.rgd-assistant-score strong,.rgd-assistant-score span{font-weight:var(--rgd-font-metric)!important;}
.rgd-help-dialog h2{font-size:clamp(23px,2.2vw,30px)!important;font-weight:var(--rgd-font-heading)!important;}
.rgd-tour-popover h3,.rgd-ask-header h3{font-weight:var(--rgd-font-heading)!important;}
.rgd-ask-header h3{font-size:21px!important;}

/* Empty states: concise and visually quiet. */
.rgd-empty{padding:24px 18px!important;}
.rgd-empty h3{font-size:17px!important;font-weight:var(--rgd-font-label)!important;}
.rgd-empty p{max-width:58ch!important;margin-left:auto!important;margin-right:auto!important;}

/* Settings/profile density */
.rgd-settings-section{padding:18px!important;}
.rgd-settings-section-head{margin-bottom:14px!important;gap:11px!important;}
.rgd-step-badge{font-weight:var(--rgd-font-label)!important;}
.rgd-profile-progress-card{padding:18px!important;}

/* Responsive scale */
@media(max-width:900px){
  .rgd-app{--rgd-space-page:18px;--rgd-space-section:15px;--rgd-title-xl:clamp(26px,5.2vw,32px);--rgd-title-lg:clamp(24px,4.7vw,30px);}
  .rgd-panel-head,.rgd-panel>header{padding:14px 15px!important;}
}
@media(max-width:640px){
  .rgd-app{--rgd-space-page:14px;--rgd-space-section:13px;--rgd-title-xl:27px;--rgd-title-lg:25px;--rgd-title-md:17px;--rgd-body-size:13.5px;}
  .rgd-content{padding-left:12px!important;padding-right:12px!important;}
  .rgd-button{min-height:39px!important;padding:9px 12px!important;}
  .rgd-document-card,.rgd-obligation-card,.rgd-issue-card,.rgd-report-card,.rgd-price-card,.rgd-list-item{padding:14px!important;}
}
