/*
 * Inscrição DHR v1.1.0 — tokens visuais canônicos.
 *
 * Este arquivo é carregado depois do CSS legado. Os aliases no final mantêm
 * compatibilidade com os componentes existentes enquanto as próximas versões
 * migram cada módulo para a nova fundação.
 */

:root {
	/* Tipografia */
	--idhr-font-family: "Inscricao DHR Inter", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--idhr-font-size-xs: 12px;
	--idhr-font-size-sm: 13px;
	--idhr-font-size-md: 14px;
	--idhr-font-size-base: 16px;
	--idhr-font-size-lg: 18px;
	--idhr-font-size-xl: 20px;
	--idhr-font-size-2xl: 24px;
	--idhr-font-size-3xl: 30px;
	--idhr-line-height-tight: 1.2;
	--idhr-line-height-heading: 1.3;
	--idhr-line-height-body: 1.6;

	/* Espaçamento — escala única */
	--idhr-space-1: 4px;
	--idhr-space-2: 8px;
	--idhr-space-3: 12px;
	--idhr-space-4: 16px;
	--idhr-space-5: 20px;
	--idhr-space-6: 24px;
	--idhr-space-8: 32px;
	--idhr-space-10: 40px;
	--idhr-space-12: 48px;

	/* Raios */
	--idhr-radius-1: 8px;
	--idhr-radius-2: 12px;
	--idhr-radius-3: 16px;
	--idhr-radius-pill: 999px;

	/* Controles */
	--idhr-control-height: 48px;
	--idhr-control-height-sm: 40px;
	--idhr-control-padding-x: 16px;
	--idhr-touch-target: 44px;

	/* Layout */
	--idhr-content-max: 1440px;
	--idhr-form-max: 1120px;
	--idhr-workspace-padding: 28px;
	--idhr-workspace-gap: 24px;
	--idhr-card-padding: 22px;
	--idhr-sidebar-width: 260px;
	--idhr-sidebar-width-collapsed: 82px;

	/* Cores */
	--idhr-color-canvas: #f2f4f2;
	--idhr-color-surface: #ffffff;
	--idhr-color-surface-subtle: #f8faf8;
	--idhr-color-surface-muted: #eef2ef;
	--idhr-color-sidebar: #17211f;
	--idhr-color-sidebar-hover: #2b3936;
	--idhr-color-primary: #263a35;
	--idhr-color-primary-hover: #1d2f2b;
	--idhr-color-accent: #b56142;
	--idhr-color-accent-hover: #984d32;
	--idhr-color-text: #1e2724;
	--idhr-color-text-muted: #69736f;
	--idhr-color-text-subtle: #87918d;
	--idhr-color-border: #dfe5e1;
	--idhr-color-border-strong: #cdd6d1;
	--idhr-color-success-bg: #e8f5eb;
	--idhr-color-success-text: #236c3b;
	--idhr-color-warning-bg: #fff4df;
	--idhr-color-warning-text: #8a5b10;
	--idhr-color-danger-bg: #faecea;
	--idhr-color-danger-text: #9f392f;
	--idhr-color-info-bg: #eaf2f7;
	--idhr-color-info-text: #315d78;

	/* Sombras e foco */
	--idhr-shadow-card: 0 1px 2px rgba(18, 35, 30, .04), 0 10px 32px rgba(18, 35, 30, .04);
	--idhr-shadow-floating: 0 20px 60px rgba(12, 28, 23, .18);
	--idhr-focus-ring: 0 0 0 3px rgba(38, 58, 53, .18);
	--idhr-transition: .22s cubic-bezier(.2, .75, .25, 1);

	/* Aliases legados — remover gradualmente nas versões seguintes */
	--idhr-font: var(--idhr-font-family);
	--idhr-bg: var(--idhr-color-canvas);
	--idhr-surface: var(--idhr-color-surface);
	--idhr-surface-soft: var(--idhr-color-surface-subtle);
	--idhr-sidebar: var(--idhr-color-sidebar);
	--idhr-sidebar-soft: var(--idhr-color-sidebar-hover);
	--idhr-sidebar-line: rgba(255, 255, 255, .11);
	--idhr-primary: var(--idhr-color-primary);
	--idhr-primary-hover: var(--idhr-color-primary-hover);
	--idhr-accent: var(--idhr-color-accent);
	--idhr-accent-hover: var(--idhr-color-accent-hover);
	--idhr-text: var(--idhr-color-text);
	--idhr-muted: var(--idhr-color-text-muted);
	--idhr-subtle: var(--idhr-color-text-subtle);
	--idhr-line: var(--idhr-color-border);
	--idhr-success-bg: var(--idhr-color-success-bg);
	--idhr-success-text: var(--idhr-color-success-text);
	--idhr-warning-bg: var(--idhr-color-warning-bg);
	--idhr-warning-text: var(--idhr-color-warning-text);
	--idhr-danger-bg: var(--idhr-color-danger-bg);
	--idhr-danger-text: var(--idhr-color-danger-text);
	--idhr-radius-sm: var(--idhr-radius-1);
	--idhr-radius: var(--idhr-radius-2);
	--idhr-radius-lg: var(--idhr-radius-3);
	--idhr-focus: var(--idhr-focus-ring);
	--idhr-sidebar-expanded: var(--idhr-sidebar-width);
	--idhr-sidebar-collapsed: var(--idhr-sidebar-width-collapsed);
	--idhr-motion: var(--idhr-transition);
}

/*
 * Breakpoints canônicos para as próximas migrações:
 * mobile: até 639px
 * tablet: 640px a 899px
 * notebook: 900px a 1199px
 * desktop: 1200px ou mais
 */

@media (max-width: 899px) {
	:root {
		--idhr-workspace-padding: 20px;
		--idhr-workspace-gap: 20px;
		--idhr-card-padding: 20px;
	}
}

@media (max-width: 639px) {
	:root {
		--idhr-workspace-padding: 16px;
		--idhr-workspace-gap: 16px;
		--idhr-card-padding: 18px;
	}
}
