/* @oficio/ds — folha unica. Importe junto do bundle. */
/* ---- fonts.css ---- */
/* Fontes da marca. Inter carrega texto e interface; JetBrains Mono carrega
   detalhe tecnico (eyebrow, rotulo de dado, linha de medida). */
/* @ds-font-face-dropped: unresolvable src */

/* @ds-font-face-dropped: unresolvable src */

/* ---- tokens.css ---- */
/* ============================================================================
   Tokens da Oficio — Brand Book v1.0 (aprovado 18/08/2026).
   Materia da marca: Ferro estrutura, Pergaminho e Marfim trazem luz,
   Latao assina. Proporcao alvo: 60-70% claro, 20-30% Ferro, 5-10% Latao.
   Nomes de cor da marca sao substantivos proprios e ficam em portugues;
   o resto da API e em ingles.
   ========================================================================== */

:root {
  /* --- paleta institucional (nao inventar cor nova) --- */
  --ofc-ferro: #1a1610;
  --ofc-pergaminho: #f1e8d6;
  --ofc-latao: #c99a4b;
  --ofc-pedra: #6e665b;
  --ofc-marfim: #fffdf8;
  --ofc-faisca: #f6dda0;

  /* --- papeis semanticos: tema claro (padrao institucional) --- */
  --ofc-bg: var(--ofc-pergaminho);
  --ofc-surface: var(--ofc-marfim);
  --ofc-surface-sunken: rgba(26, 22, 16, 0.05);
  --ofc-surface-inverse: var(--ofc-ferro);
  --ofc-text: var(--ofc-ferro);
  --ofc-text-muted: var(--ofc-pedra);
  --ofc-text-inverse: var(--ofc-pergaminho);
  --ofc-accent: var(--ofc-latao);
  --ofc-accent-soft: var(--ofc-faisca);
  --ofc-on-accent: var(--ofc-ferro);
  --ofc-border: rgba(26, 22, 16, 0.16);
  --ofc-border-strong: rgba(26, 22, 16, 0.34);
  --ofc-focus: var(--ofc-ferro);
  --ofc-shadow: 0 1px 2px rgba(26, 22, 16, 0.06), 0 8px 24px -12px rgba(26, 22, 16, 0.18);
  --ofc-logo-punch: var(--ofc-latao);

  /* --- estados de interface (fora da identidade institucional) --- */
  --ofc-success-fg: #3d5c33;
  --ofc-success-bg: #e3ead8;
  --ofc-warning-fg: #8a5a12;
  --ofc-warning-bg: #f6e6c3;
  --ofc-danger-fg: #8c3222;
  --ofc-danger-bg: #f2d9d2;
  --ofc-info-fg: #35525f;
  --ofc-info-bg: #dde6ea;

  /* --- tipografia --- */
  --ofc-font-text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ofc-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ofc-size-display: 3.5rem;
  --ofc-size-xl: 2.5rem;
  --ofc-size-lg: 1.875rem;
  --ofc-size-md: 1.375rem;
  --ofc-size-sm: 1.125rem;
  --ofc-size-body: 1rem;
  --ofc-size-body-sm: 0.9375rem;
  --ofc-size-caption: 0.8125rem;
  --ofc-size-micro: 0.6875rem;

  --ofc-leading-tight: 1.06;
  --ofc-leading-snug: 1.24;
  --ofc-leading-body: 1.6;
  --ofc-tracking-display: -0.028em;
  --ofc-tracking-title: -0.015em;
  --ofc-tracking-eyebrow: 0.14em;

  /* --- espaco: base 4px --- */
  --ofc-space-1: 4px;
  --ofc-space-2: 8px;
  --ofc-space-3: 12px;
  --ofc-space-4: 16px;
  --ofc-space-5: 24px;
  --ofc-space-6: 32px;
  --ofc-space-7: 48px;
  --ofc-space-8: 64px;
  --ofc-space-9: 96px;
  --ofc-space-10: 128px;

  /* --- forma: construido, nao decorado --- */
  --ofc-radius-none: 0px;
  --ofc-radius-sm: 2px;
  --ofc-radius-md: 4px;
  --ofc-radius-lg: 8px;
  --ofc-radius-pill: 999px;
  --ofc-hairline: 1px;

  /* --- grade editorial de seis colunas --- */
  --ofc-grid-columns: 6;
  --ofc-container-sm: 720px;
  --ofc-container-md: 960px;
  --ofc-container-lg: 1200px;

  /* --- movimento: revela estrutura, entra curto --- */
  --ofc-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ofc-duration: 160ms;
  --ofc-transition: all var(--ofc-duration) var(--ofc-ease);
}

/* Tema escuro: o Ferro vira campo e o Pergaminho vira tinta.
   Aplicado por [data-theme="dark"] — normalmente pelo <OficioProvider theme="dark">. */
[data-theme="dark"] {
  --ofc-bg: var(--ofc-ferro);
  --ofc-surface: #221d16;
  --ofc-surface-sunken: rgba(255, 253, 248, 0.04);
  --ofc-surface-inverse: var(--ofc-pergaminho);
  --ofc-text: var(--ofc-pergaminho);
  --ofc-text-muted: #a89c8a;
  --ofc-text-inverse: var(--ofc-ferro);
  --ofc-on-accent: var(--ofc-ferro);
  --ofc-border: rgba(241, 232, 214, 0.18);
  --ofc-border-strong: rgba(241, 232, 214, 0.38);
  --ofc-focus: var(--ofc-faisca);
  --ofc-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.7);

  --ofc-success-fg: #b7cfa6;
  --ofc-success-bg: rgba(183, 207, 166, 0.14);
  --ofc-warning-fg: #e0b56a;
  --ofc-warning-bg: rgba(224, 181, 106, 0.14);
  --ofc-danger-fg: #dd9c8d;
  --ofc-danger-bg: rgba(221, 156, 141, 0.14);
  --ofc-info-fg: #9fbcc7;
  --ofc-info-bg: rgba(159, 188, 199, 0.14);
}

/* ---- base.css ---- */
/* Base aplicada pela raiz do sistema. O <OficioProvider> e quem pinta o campo:
   sem ele, os componentes herdam a cor do host e o fundo nao e garantido. */
.ofc-root {
  background: var(--ofc-bg);
  color: var(--ofc-text);
  font-family: var(--ofc-font-text);
  font-size: var(--ofc-size-body);
  line-height: var(--ofc-leading-body);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.ofc-root *,
.ofc-root *::before,
.ofc-root *::after {
  box-sizing: border-box;
}

.ofc-root :focus-visible {
  outline: 2px solid var(--ofc-focus);
  outline-offset: 2px;
}

.ofc-root ::selection {
  background: var(--ofc-accent-soft);
  color: var(--ofc-ferro);
}

.ofc-root--fill {
  min-height: 100%;
}

/* Rotulo tecnico: mono, caixa alta, entrelinha aberta. E a "linha de medida"
   da marca — usada em eyebrow, rotulo de dado e legenda de secao. */
.ofc-eyebrow {
  font-family: var(--ofc-font-mono);
  font-size: var(--ofc-size-micro);
  font-weight: 500;
  letter-spacing: var(--ofc-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ofc-text-muted);
  margin: 0;
}

.ofc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ofc-root *,
  .ofc-root *::before,
  .ofc-root *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---- components.css ---- */
/* ============================================================================
   Componentes. Vocabulario de classe: .ofc-<bloco>__<parte>--<variante>.
   Nada aqui inventa cor: tudo sai dos tokens de tokens.css.
   ========================================================================== */

/* ---------------------------------------------------------------- tipografia */
.ofc-heading {
  margin: 0;
  color: var(--ofc-text);
  font-family: var(--ofc-font-text);
  font-weight: 600;
  text-wrap: balance;
}
.ofc-heading--display {
  font-size: var(--ofc-size-display);
  line-height: var(--ofc-leading-tight);
  letter-spacing: var(--ofc-tracking-display);
  font-weight: 620;
}
.ofc-heading--xl {
  font-size: var(--ofc-size-xl);
  line-height: var(--ofc-leading-tight);
  letter-spacing: var(--ofc-tracking-display);
}
.ofc-heading--lg {
  font-size: var(--ofc-size-lg);
  line-height: var(--ofc-leading-snug);
  letter-spacing: var(--ofc-tracking-title);
}
.ofc-heading--md {
  font-size: var(--ofc-size-md);
  line-height: var(--ofc-leading-snug);
  letter-spacing: var(--ofc-tracking-title);
}
.ofc-heading--sm {
  font-size: var(--ofc-size-sm);
  line-height: var(--ofc-leading-snug);
}

.ofc-text {
  margin: 0;
  font-family: var(--ofc-font-text);
  color: var(--ofc-text);
  line-height: var(--ofc-leading-body);
}
.ofc-text--lg { font-size: var(--ofc-size-sm); }
.ofc-text--md { font-size: var(--ofc-size-body); }
.ofc-text--sm { font-size: var(--ofc-size-body-sm); }
.ofc-text--xs { font-size: var(--ofc-size-caption); }
.ofc-text--muted { color: var(--ofc-text-muted); }
.ofc-text--accent { color: var(--ofc-accent); }
.ofc-text--inverse { color: var(--ofc-text-inverse); }
.ofc-text--mono {
  font-family: var(--ofc-font-mono);
  font-size: 0.94em;
  letter-spacing: 0;
}
.ofc-text--measure { max-width: 62ch; }

/* --------------------------------------------------------------------- logo */
.ofc-logo {
  display: inline-flex;
  color: var(--ofc-text);
  line-height: 0;
}
.ofc-logo--ferro { color: var(--ofc-ferro); }
.ofc-logo--marfim { color: var(--ofc-marfim); }
.ofc-logo--mono { --ofc-logo-punch: currentColor; }
.ofc-logo svg { display: block; height: auto; }

/* ----------------------------------------------------------------- container */
.ofc-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--ofc-space-5);
}
.ofc-container--sm { max-width: var(--ofc-container-sm); }
.ofc-container--md { max-width: var(--ofc-container-md); }
.ofc-container--lg { max-width: var(--ofc-container-lg); }
.ofc-container--full { max-width: none; }

/* ---------------------------------------------------------------------- grid */
.ofc-grid {
  display: grid;
  grid-template-columns: repeat(var(--ofc-grid-cols, var(--ofc-grid-columns)), minmax(0, 1fr));
}
.ofc-grid--sm { gap: var(--ofc-space-3); }
.ofc-grid--md { gap: var(--ofc-space-5); }
.ofc-grid--lg { gap: var(--ofc-space-7); }
.ofc-grid--ruled {
  border-top: var(--ofc-hairline) solid var(--ofc-border);
  padding-top: var(--ofc-space-5);
}
@media (max-width: 720px) {
  .ofc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofc-grid > * { grid-column: span 2 !important; }
}

/* ------------------------------------------------------------------- divider */
.ofc-divider {
  border: 0;
  margin: 0;
  background: var(--ofc-border);
}
.ofc-divider--horizontal { height: var(--ofc-hairline); width: 100%; }
.ofc-divider--vertical { width: var(--ofc-hairline); align-self: stretch; min-height: 1em; }
.ofc-divider--strong { background: var(--ofc-border-strong); }
.ofc-divider--accent { background: var(--ofc-accent); height: 2px; width: 40px; }

.ofc-divider-labeled {
  display: flex;
  align-items: center;
  gap: var(--ofc-space-3);
  width: 100%;
}
.ofc-divider-labeled__rule {
  flex: 1;
  height: var(--ofc-hairline);
  background: var(--ofc-border);
}

/* -------------------------------------------------------------------- button */
.ofc-button {
  --ofc-btn-bg: transparent;
  --ofc-btn-fg: var(--ofc-text);
  --ofc-btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ofc-space-2);
  border: var(--ofc-hairline) solid var(--ofc-btn-border);
  border-radius: var(--ofc-radius-sm);
  background: var(--ofc-btn-bg);
  color: var(--ofc-btn-fg);
  font-family: var(--ofc-font-text);
  font-weight: 530;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--ofc-transition);
}
.ofc-button--sm { padding: 7px 12px; font-size: var(--ofc-size-caption); }
.ofc-button--md { padding: 11px 18px; font-size: var(--ofc-size-body-sm); }
.ofc-button--lg { padding: 15px 26px; font-size: var(--ofc-size-body); }
.ofc-button--block { display: flex; width: 100%; }

.ofc-button--primary {
  --ofc-btn-bg: var(--ofc-ferro);
  --ofc-btn-fg: var(--ofc-pergaminho);
  --ofc-btn-border: var(--ofc-ferro);
}
[data-theme="dark"] .ofc-button--primary {
  --ofc-btn-bg: var(--ofc-pergaminho);
  --ofc-btn-fg: var(--ofc-ferro);
  --ofc-btn-border: var(--ofc-pergaminho);
}
.ofc-button--accent {
  --ofc-btn-bg: var(--ofc-latao);
  --ofc-btn-fg: var(--ofc-ferro);
  --ofc-btn-border: var(--ofc-latao);
}
.ofc-button--secondary {
  --ofc-btn-fg: var(--ofc-text);
  --ofc-btn-border: var(--ofc-border-strong);
}
.ofc-button--ghost {
  --ofc-btn-fg: var(--ofc-text);
  padding-inline: var(--ofc-space-2);
}

.ofc-button:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px var(--ofc-accent);
}
.ofc-button--secondary:not(:disabled):hover,
.ofc-button--ghost:not(:disabled):hover {
  background: var(--ofc-surface-sunken);
  box-shadow: inset 0 0 0 1px var(--ofc-accent);
}
.ofc-button:not(:disabled):active { transform: translateY(0); }
.ofc-button:disabled { opacity: 0.42; cursor: not-allowed; }

.ofc-button__spinner {
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: var(--ofc-radius-pill);
  animation: ofc-spin 620ms linear infinite;
}
@keyframes ofc-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- form fields */
.ofc-field { display: flex; flex-direction: column; gap: var(--ofc-space-2); }
.ofc-field__label {
  font-size: var(--ofc-size-body-sm);
  font-weight: 540;
  color: var(--ofc-text);
}
.ofc-field__required { color: var(--ofc-accent); margin-inline-start: 2px; }
.ofc-field__hint { font-size: var(--ofc-size-caption); color: var(--ofc-text-muted); }
.ofc-field__error {
  font-size: var(--ofc-size-caption);
  color: var(--ofc-danger-fg);
  font-weight: 520;
}

.ofc-input,
.ofc-textarea,
.ofc-select {
  width: 100%;
  border: var(--ofc-hairline) solid var(--ofc-border-strong);
  border-radius: var(--ofc-radius-sm);
  background: var(--ofc-surface);
  color: var(--ofc-text);
  font-family: var(--ofc-font-text);
  font-size: var(--ofc-size-body-sm);
  line-height: 1.4;
  transition: var(--ofc-transition);
}
.ofc-input::placeholder,
.ofc-textarea::placeholder { color: var(--ofc-text-muted); opacity: 0.75; }

.ofc-input--sm { padding: 6px 10px; font-size: var(--ofc-size-caption); }
.ofc-input--md { padding: 11px 12px; }
.ofc-input--lg { padding: 16px 16px; font-size: var(--ofc-size-body); }
.ofc-textarea { padding: 11px 12px; resize: vertical; min-height: 96px; }
.ofc-select { padding: 11px 34px 11px 12px; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 1px), calc(100% - 13px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.ofc-input:focus,
.ofc-textarea:focus,
.ofc-select:focus {
  outline: none;
  border-color: var(--ofc-accent);
  box-shadow: 0 0 0 3px rgba(201, 154, 75, 0.28);
}
.ofc-input:disabled,
.ofc-textarea:disabled,
.ofc-select:disabled { opacity: 0.5; cursor: not-allowed; }
.ofc-input--invalid,
.ofc-textarea--invalid,
.ofc-select--invalid { border-color: var(--ofc-danger-fg); }

.ofc-input-affix { display: flex; align-items: stretch; }
.ofc-input-affix__slot {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--ofc-space-3);
  border: var(--ofc-hairline) solid var(--ofc-border-strong);
  background: var(--ofc-surface-sunken);
  color: var(--ofc-text-muted);
  font-family: var(--ofc-font-mono);
  font-size: var(--ofc-size-caption);
}
.ofc-input-affix__slot--prefix { border-right: 0; border-radius: var(--ofc-radius-sm) 0 0 var(--ofc-radius-sm); }
.ofc-input-affix__slot--suffix { border-left: 0; border-radius: 0 var(--ofc-radius-sm) var(--ofc-radius-sm) 0; }
.ofc-input-affix--has-prefix .ofc-input { border-radius: 0 var(--ofc-radius-sm) var(--ofc-radius-sm) 0; }
.ofc-input-affix--has-suffix .ofc-input { border-radius: var(--ofc-radius-sm) 0 0 var(--ofc-radius-sm); }
.ofc-input-affix--has-prefix.ofc-input-affix--has-suffix .ofc-input { border-radius: 0; }

/* -------------------------------------------------------------------- switch */
.ofc-switch {
  display: inline-flex;
  align-items: center;
  gap: var(--ofc-space-3);
  cursor: pointer;
  font-size: var(--ofc-size-body-sm);
  color: var(--ofc-text);
}
.ofc-switch__input { position: absolute; opacity: 0; width: 0; height: 0; }
.ofc-switch__track {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  border: var(--ofc-hairline) solid var(--ofc-border-strong);
  border-radius: var(--ofc-radius-pill);
  background: var(--ofc-surface-sunken);
  transition: var(--ofc-transition);
}
.ofc-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: var(--ofc-radius-pill);
  background: var(--ofc-text-muted);
  transition: var(--ofc-transition);
}
.ofc-switch__input:checked + .ofc-switch__track {
  background: var(--ofc-latao);
  border-color: var(--ofc-ferro);
}
.ofc-switch__input:checked + .ofc-switch__track .ofc-switch__thumb {
  left: 21px;
  background: var(--ofc-ferro);
}
.ofc-switch__input:focus-visible + .ofc-switch__track {
  outline: 2px solid var(--ofc-focus);
  outline-offset: 2px;
}
.ofc-switch--disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------------- card */
.ofc-card {
  display: block;
  border: var(--ofc-hairline) solid var(--ofc-border);
  border-radius: var(--ofc-radius-md);
  background: var(--ofc-surface);
  color: var(--ofc-text);
}
.ofc-card--sm { padding: var(--ofc-space-4); }
.ofc-card--md { padding: var(--ofc-space-5); }
.ofc-card--lg { padding: var(--ofc-space-6); }
.ofc-card--raised { box-shadow: var(--ofc-shadow); border-color: transparent; }
.ofc-card--inverse { background: var(--ofc-surface); border-color: var(--ofc-border); }
.ofc-card--flat { background: transparent; }
.ofc-card--interactive { transition: var(--ofc-transition); cursor: pointer; }
.ofc-card--interactive:hover { border-color: var(--ofc-accent); transform: translateY(-2px); }
.ofc-card__marker {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--ofc-accent);
  margin-bottom: var(--ofc-space-4);
}

/* --------------------------------------------------------------------- badge */
.ofc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ofc-space-1);
  padding: 3px 8px;
  border: var(--ofc-hairline) solid transparent;
  border-radius: var(--ofc-radius-sm);
  font-family: var(--ofc-font-mono);
  font-size: var(--ofc-size-micro);
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.ofc-badge--soft.ofc-badge--neutral { background: var(--ofc-surface-sunken); color: var(--ofc-text-muted); }
.ofc-badge--soft.ofc-badge--accent { background: var(--ofc-accent-soft); color: var(--ofc-ferro); }
.ofc-badge--soft.ofc-badge--success { background: var(--ofc-success-bg); color: var(--ofc-success-fg); }
.ofc-badge--soft.ofc-badge--warning { background: var(--ofc-warning-bg); color: var(--ofc-warning-fg); }
.ofc-badge--soft.ofc-badge--danger { background: var(--ofc-danger-bg); color: var(--ofc-danger-fg); }
.ofc-badge--soft.ofc-badge--info { background: var(--ofc-info-bg); color: var(--ofc-info-fg); }

.ofc-badge--solid.ofc-badge--neutral { background: var(--ofc-ferro); color: var(--ofc-pergaminho); }
.ofc-badge--solid.ofc-badge--accent { background: var(--ofc-latao); color: var(--ofc-ferro); }
.ofc-badge--solid.ofc-badge--success { background: var(--ofc-success-fg); color: var(--ofc-marfim); }
.ofc-badge--solid.ofc-badge--warning { background: var(--ofc-warning-fg); color: var(--ofc-marfim); }
.ofc-badge--solid.ofc-badge--danger { background: var(--ofc-danger-fg); color: var(--ofc-marfim); }
.ofc-badge--solid.ofc-badge--info { background: var(--ofc-info-fg); color: var(--ofc-marfim); }

.ofc-badge--outline { background: transparent; border-color: var(--ofc-border-strong); color: var(--ofc-text); }
.ofc-badge--outline.ofc-badge--accent { border-color: var(--ofc-accent); color: var(--ofc-text); }
.ofc-badge--outline.ofc-badge--success { border-color: var(--ofc-success-fg); color: var(--ofc-success-fg); }
.ofc-badge--outline.ofc-badge--warning { border-color: var(--ofc-warning-fg); color: var(--ofc-warning-fg); }
.ofc-badge--outline.ofc-badge--danger { border-color: var(--ofc-danger-fg); color: var(--ofc-danger-fg); }
.ofc-badge--outline.ofc-badge--info { border-color: var(--ofc-info-fg); color: var(--ofc-info-fg); }

/* --------------------------------------------------------------------- alert */
.ofc-alert {
  display: flex;
  gap: var(--ofc-space-4);
  padding: var(--ofc-space-4) var(--ofc-space-5);
  border-radius: var(--ofc-radius-md);
  border-left: 3px solid currentColor;
}
.ofc-alert--info { background: var(--ofc-info-bg); color: var(--ofc-info-fg); }
.ofc-alert--success { background: var(--ofc-success-bg); color: var(--ofc-success-fg); }
.ofc-alert--warning { background: var(--ofc-warning-bg); color: var(--ofc-warning-fg); }
.ofc-alert--danger { background: var(--ofc-danger-bg); color: var(--ofc-danger-fg); }
.ofc-alert__body { flex: 1; display: flex; flex-direction: column; gap: var(--ofc-space-1); }
.ofc-alert__title { font-size: var(--ofc-size-body-sm); font-weight: 600; }
.ofc-alert__content { font-size: var(--ofc-size-body-sm); color: var(--ofc-text); line-height: var(--ofc-leading-body); }
.ofc-alert__dismiss {
  flex: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: var(--ofc-size-body);
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: var(--ofc-radius-sm);
  opacity: 0.7;
}
.ofc-alert__dismiss:hover { opacity: 1; background: var(--ofc-surface-sunken); }

/* ---------------------------------------------------------------------- stat */
.ofc-stat { display: flex; flex-direction: column; gap: var(--ofc-space-2); }
.ofc-stat__value {
  font-size: var(--ofc-size-xl);
  line-height: 1;
  letter-spacing: var(--ofc-tracking-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ofc-text);
}
.ofc-stat__foot { display: flex; align-items: center; gap: var(--ofc-space-2); }
.ofc-stat__trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ofc-font-mono);
  font-size: var(--ofc-size-caption);
  font-weight: 550;
}
.ofc-stat__trend--positive { color: var(--ofc-success-fg); }
.ofc-stat__trend--negative { color: var(--ofc-danger-fg); }
.ofc-stat__trend--neutral { color: var(--ofc-text-muted); }
.ofc-stat__hint { font-size: var(--ofc-size-caption); color: var(--ofc-text-muted); }

/* --------------------------------------------------------------------- table */
.ofc-table-wrap { width: 100%; overflow-x: auto; }
.ofc-table { width: 100%; border-collapse: collapse; font-size: var(--ofc-size-body-sm); }
.ofc-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: var(--ofc-space-3);
  font-size: var(--ofc-size-caption);
  color: var(--ofc-text-muted);
}
.ofc-table th {
  font-family: var(--ofc-font-mono);
  font-size: var(--ofc-size-micro);
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ofc-text-muted);
  text-align: left;
  padding: var(--ofc-space-3) var(--ofc-space-4);
  border-bottom: var(--ofc-hairline) solid var(--ofc-border-strong);
  white-space: nowrap;
}
.ofc-table td {
  padding: var(--ofc-space-4);
  border-bottom: var(--ofc-hairline) solid var(--ofc-border);
  color: var(--ofc-text);
  vertical-align: middle;
}
.ofc-table--dense th { padding: var(--ofc-space-2) var(--ofc-space-3); }
.ofc-table--dense td { padding: var(--ofc-space-2) var(--ofc-space-3); }
.ofc-table tbody tr:last-child td { border-bottom: 0; }
.ofc-table tbody tr:hover td { background: var(--ofc-surface-sunken); }
.ofc-table__cell--right { text-align: right; font-variant-numeric: tabular-nums; }
.ofc-table__cell--center { text-align: center; }

/* ---------------------------------------------------------------------- hero */
.ofc-hero { padding-block: var(--ofc-space-9); }
.ofc-hero__inner {
  display: grid;
  gap: var(--ofc-space-8);
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.ofc-hero--split .ofc-hero__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 880px) {
  .ofc-hero--split .ofc-hero__inner { grid-template-columns: minmax(0, 1fr); }
}
.ofc-hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ofc-space-5); }
.ofc-hero--center .ofc-hero__content { align-items: center; text-align: center; }
.ofc-hero__rule { width: 40px; height: 2px; background: var(--ofc-accent); }
.ofc-hero__eyebrow { margin-bottom: calc(var(--ofc-space-2) * -1); }
.ofc-hero__title { max-width: 18ch; }
.ofc-hero--center .ofc-hero__title { max-width: 22ch; }
.ofc-hero__description { max-width: 56ch; font-size: var(--ofc-size-sm); color: var(--ofc-text-muted); }
.ofc-hero__actions { display: flex; flex-wrap: wrap; gap: var(--ofc-space-3); margin-top: var(--ofc-space-2); }
.ofc-hero__media { min-width: 0; }

/* ------------------------------------------------------------- sectionheader */
.ofc-section-header {
  display: flex;
  gap: var(--ofc-space-5);
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: var(--ofc-space-5);
  border-bottom: var(--ofc-hairline) solid var(--ofc-border);
}
.ofc-section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
}
.ofc-section-header__text { display: flex; flex-direction: column; gap: var(--ofc-space-3); min-width: 0; }
.ofc-section-header__description { max-width: 60ch; color: var(--ofc-text-muted); }
.ofc-section-header__action { flex: none; }

/* --------------------------------------------------------------- featurecard */
.ofc-feature {
  display: flex;
  flex-direction: column;
  gap: var(--ofc-space-3);
  padding: var(--ofc-space-6) var(--ofc-space-5);
  border-top: 2px solid var(--ofc-border-strong);
  background: transparent;
  transition: var(--ofc-transition);
}
.ofc-feature--boxed {
  border: var(--ofc-hairline) solid var(--ofc-border);
  border-top: 2px solid var(--ofc-border-strong);
  border-radius: var(--ofc-radius-md);
  background: var(--ofc-surface);
}
.ofc-feature:hover { border-top-color: var(--ofc-accent); }
.ofc-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ofc-accent);
  margin-bottom: var(--ofc-space-2);
}
.ofc-feature__title { font-size: var(--ofc-size-md); font-weight: 580; letter-spacing: var(--ofc-tracking-title); }
.ofc-feature__description { color: var(--ofc-text-muted); font-size: var(--ofc-size-body-sm); }
.ofc-feature__footer {
  margin-top: auto;
  padding-top: var(--ofc-space-4);
  font-family: var(--ofc-font-mono);
  font-size: var(--ofc-size-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ofc-text-muted);
}

/* -------------------------------------------------------------------- footer */
.ofc-footer {
  background: var(--ofc-bg);
  color: var(--ofc-text);
  padding-block: var(--ofc-space-8) var(--ofc-space-6);
  border-top: 2px solid var(--ofc-accent);
}
.ofc-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--ofc-space-8);
  padding-bottom: var(--ofc-space-7);
}
@media (max-width: 880px) {
  .ofc-footer__top { grid-template-columns: minmax(0, 1fr); gap: var(--ofc-space-6); }
}
.ofc-footer__brand { display: flex; flex-direction: column; gap: var(--ofc-space-4); align-items: flex-start; }
.ofc-footer__tagline {
  font-family: var(--ofc-font-mono);
  font-size: var(--ofc-size-caption);
  letter-spacing: 0.06em;
  color: var(--ofc-accent);
}
.ofc-footer__description { color: var(--ofc-text-muted); font-size: var(--ofc-size-body-sm); max-width: 46ch; }
.ofc-footer__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--ofc-space-6); }
.ofc-footer__column-title {
  font-family: var(--ofc-font-mono);
  font-size: var(--ofc-size-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ofc-text-muted);
  margin-bottom: var(--ofc-space-3);
}
.ofc-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--ofc-space-2); }
.ofc-footer__link {
  color: var(--ofc-text);
  text-decoration: none;
  font-size: var(--ofc-size-body-sm);
  transition: var(--ofc-transition);
}
.ofc-footer__link:hover { color: var(--ofc-accent); }
.ofc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ofc-space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--ofc-space-5);
  border-top: var(--ofc-hairline) solid var(--ofc-border);
  font-size: var(--ofc-size-caption);
  color: var(--ofc-text-muted);
}

.ofc-button[aria-busy="true"]:disabled { opacity: 1; cursor: progress; }

/* Peca de largura propria: dentro de um grid, nao esticar para a coluna toda. */
.ofc-badge,
.ofc-logo,
.ofc-switch,
.ofc-button:not(.ofc-button--block) {
  justify-self: start;
}
