/* Rôles typographiques de Figma Make. Les mesures mobiles viennent de src/index.css. */
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --type-body: "DM Sans", system-ui, sans-serif;
  --type-display: "Manrope", system-ui, sans-serif;
  --type-title: clamp(24px, 2.2vw, 34px);
  --type-section: 17px;
  --type-question: 17px;
  --type-copy: 13px;
  --type-secondary: 12px;
  --type-button: 12px;
  --type-field: 13px;
  --type-overview-amount: clamp(30px, 3vw, 43px);
  --type-budget-amount: 35px;
  --type-card-amount: 20px;
  --type-dialog-amount: 30px;
  --type-report-amount: 18px;
  --type-goal-amount: 25px;
}

body {font:400 var(--type-copy)/1.45 var(--type-body)}
h1 {font:700 var(--type-title)/1.25 var(--type-display);letter-spacing:-.04em}
h2, h3 {font:700 var(--type-section)/1.25 var(--type-display);letter-spacing:-.03em}
h4 {font:700 var(--type-copy)/1.35 var(--type-display)}
legend {font:700 var(--type-section)/1.25 var(--type-display)}
p {line-height:1.45}
label, th, td {font-size:var(--type-copy);line-height:1.4}
label, th {font-weight:600}
summary, .phase-table td, .phase-chart-ledger {line-height:1.4}
small, .help, .muted, .draft-status, .phase-caption, .phase-chip, .guided-question-position,
.phase-trend-legend, .transaction-name span, .mobile-cell-label,
#setup-progress, #phase-actions-note, #review-advice, #daily-operation-preview p {
  font:400 var(--type-secondary)/1.45 var(--type-body);
}
#setup-progress, .phase-chip, .draft-status {font-weight:600}
button, .file-actions label {font:700 var(--type-button)/1.25 var(--type-body)}
input, select, textarea {font:400 var(--type-field)/1.4 var(--type-body)}
#setup-guided-question .guided-prompt, #month-guided .month-question h4 {
  font:700 var(--type-question)/1.35 var(--type-display);
}
dialog h2 {font:700 21px/1.25 var(--type-display)}
.logo b {font:800 15px/1.15 var(--type-display);letter-spacing:.12em}
.topbar .logo b {font-size:13px;letter-spacing:.035em}
#figma-reminder b {font-size:12px}
.card-eyebrow {font:700 var(--type-secondary)/1.35 var(--type-body);letter-spacing:.13em}
.hero-copy p, .hero-foot span, .ring-inner span {font-weight:400}
.hero-copy > strong {
  font:700 var(--type-overview-amount)/1.15 var(--type-display);
  letter-spacing:-.06em;
}
.budget-gauge-panel .hero-copy > strong {font-size:var(--type-budget-amount);letter-spacing:-.05em}
.ring-inner strong {font:700 24px/1.15 var(--type-display)}
.ring-inner {min-width:0;grid-template-columns:minmax(0,1fr);padding-inline:3px}
#phase-home-cards .phase-metric strong, .phase-start-metrics b {
  font:700 var(--type-card-amount)/1.25 var(--type-display);letter-spacing:-.03em;
}
#phase-review-metrics strong, .phase-compact-metric strong, .annual-metric strong,
.budget-card strong, .card strong, .phase-budget-totals strong, .phase-table caption strong, #balance-overview,
#phase-category-amounts p:first-child {font:700 var(--type-report-amount)/1.25 var(--type-display)}
#saving-goal-amount {font:700 var(--type-goal-amount)/1.25 var(--type-display);letter-spacing:-.04em}
#saving-goal-estimate, #saving-goal-encouragement {font-size:var(--type-copy)}
#daily-operation-amount input {font:700 var(--type-dialog-amount)/1.15 var(--type-display);letter-spacing:-.06em}
.phase-category-link {font-size:inherit}
.transaction-name b, .transaction-row > strong, .phase-table td {font-weight:600}
.phase-list button::after {font:400 22px/1 var(--type-body)}
.period-nav button, #phase-category-close {font:600 22px/1 var(--type-body)}
#phase-add > span {font:600 27px/1 var(--type-body)}
#navigation button {font-size:12px;line-height:1.15}
#phase-add > small {font-size:12px}
#phase-goal-ring span {font-weight:700}
#phase-actions-title {font-size:var(--type-section)}
#setup-income-single p {margin-block:0 6px}
#setup-income-single {gap:10px}
#setup-income-single [data-setup-pattern] {min-height:44px}
.phase-table td::before {font:600 var(--type-secondary)/1.3 var(--type-body)}
/* Keep long amounts and names within their layout cells. */
:where(main, dialog) :is(h1,h2,h3,h4,legend,button,th,td,.transaction-name,.phase-metric,.goal-progress) {
  overflow-wrap:anywhere;
}
#phase-home .hero-copy, .budget-gauge-panel .hero-copy, .transaction-row > strong {min-width:0}
.transaction-row {grid-template-columns:38px minmax(0,1fr) minmax(0,auto)}
@media (max-width:760px) {
  :root {
    --type-title: 24px;
    --type-section: 16px;
    --type-field: 16px;
    --type-overview-amount: 31px;
    --type-budget-amount: 27px;
    --type-card-amount: 15px;
    --type-dialog-amount: 28px;
  }
  .ring-inner strong {font-size:20px}
  #setup input, #setup select, #month input, #month select,
  dialog input, dialog select, dialog textarea {font-size:max(16px,var(--type-field))}
  #daily-operation-amount input {font-size:var(--type-dialog-amount)}
  #wizard-actions {scroll-margin-bottom:10px}
}
@media (max-width:390px) {
  :root {--type-overview-amount:27px}
  .ring-inner strong {font-size:16px;overflow-wrap:anywhere}
}
@media (max-width:365px) {
  .topbar:has(#figma-period:not([hidden])) {
    grid-template-columns:34px minmax(0,1fr) 44px;
  }
  .topbar:has(#figma-period:not([hidden])) .logo b {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .ring-inner strong {font-size:14px}
}


@media (min-width: 768px) {
  :root {
    --type-title: clamp(24px, 2.3vw, 30px);
    --type-section: 20px;
    --type-question: 19px;
    --type-copy: 16px;
    --type-secondary: 14px;
    --type-button: 16px;
    --type-field: 16px;
  }
  main :is(table th,table td) { font-size: 14px; line-height: 1.45; }
  .sidebar small { font-size: 14px; }
}

@media (max-width: 365px) {
  body .topbar:has(#figma-period:not([hidden])) .logo b {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    font-size: 11px;
  }
}
