/* AMERICA Obituários · identidade visual SEMUL (telas claras) */
:root {
  --gold: #a8864a;
  --gold-d: #8a6c35;
  --gold-l: #efe5d2;
  --blue: #1f4f9b;
  --blue-d: #173d7a;
  --blue-l: #e8eef9;
  --navy: #0a1a6b;
  --gray: #6b6f78;
  --slate: #38425a;
  --ink: #1b2033;
  --cream: #f8f5ef;
  --sand: #f5efe3;
  --line: #e4e0d7;
  --line-2: #eeebe5;
  --bg: #fbfaf7;
  --white: #ffffff;
  --ok: #1e8e4a;
  --ok-bg: #e3f4e8;
  --warn: #b7791f;
  --warn-bg: #fdf3dc;
  --danger: #b42318;
  --danger-bg: #fdecea;
  --radius: 8px;
  --font: Inter, "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--blue); background: var(--blue); color: #fff; font-weight: 700; padding: 8px 16px; border-radius: 6px; cursor: pointer; text-decoration: none; font-size: 14px; line-height: 1.3; white-space: nowrap; }
.btn:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.outline { background: #fff; color: var(--blue); }
.btn.outline:hover { background: var(--blue-l); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--slate); font-weight: 600; }
.btn.ghost:hover { background: var(--line-2); }
.btn.danger { background: #fff; color: var(--danger); border-color: #e7b4ae; }
.btn.danger:hover { background: var(--danger-bg); }
.btn.gold { background: var(--gold); border-color: var(--gold); }
.btn.gold:hover { background: var(--gold-d); border-color: var(--gold-d); }
.btn.sm { padding: 4px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label, .lbl { font-size: 13px; color: var(--gray); }
.input, select.input, textarea.input { width: 100%; border: 1px solid #d7d9de; background: #fff; border-radius: 6px; padding: 8px 10px; font-size: 14.5px; }
.input:focus { border-color: var(--blue); outline: 2px solid rgba(31, 79, 155, .18); outline-offset: 0; }
textarea.input { resize: vertical; min-height: 70px; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.badge.andamento, .badge.vigente, .badge.online { background: var(--ok-bg); color: #13703a; }
.badge.previsto, .badge.agendado { background: #e6ecfb; color: #2b4fae; }
.badge.aguardando { background: var(--warn-bg); color: #8f5d0b; }
.badge.encerrado, .badge.vencido, .badge.inativo { background: #eceef1; color: #4b5260; }
.badge.cancelado { background: var(--danger-bg); color: var(--danger); }
.badge.admin { background: var(--gold-l); color: #6e5326; }
.badge.operador { background: #eceef1; color: #4b5260; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); vertical-align: middle; margin-right: 6px; }
.dot.off { background: #e0a21b; }
.dot.never { background: #b9bdc6; }

.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.toggle .track { width: 38px; height: 22px; border-radius: 999px; background: #c9ccd3; position: relative; transition: background .15s; flex: none; }
.toggle .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle input:checked + .track { background: var(--blue); }
.toggle input:checked + .track::after { transform: translateX(16px); }
.toggle input:focus-visible + .track { outline: 3px solid var(--blue); outline-offset: 2px; }

.watermark { font-size: 10px; letter-spacing: .28em; color: #a7a9b0; font-weight: 600; }
