@import url('https://fonts.googleapis.com/css2?family=Forum&display=swap');

/* Identidade da primeira Cordara, compartilhada pelas páginas em PHP. */
:root {
  --background: #e4e4e4;
  --surface: #ffffff;
  --text: #111111;
  --muted: #575757;
  --border: #d7d7d7;
  --accent: #0c5f5f;
  --accent-light: #18b4b4;
  --shadow: 0 2px 8px rgba(0, 0, 0, .08);
  --page-gutter: clamp(.875rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Forum", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--background);
  overflow-wrap: anywhere;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.2; font-weight: 400; overflow-wrap: anywhere; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { max-width: 100%; min-width: 0; font: inherit; }
input, select, textarea { font-size: max(1rem, 1em); }
textarea { resize: vertical; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem max(var(--page-gutter), env(safe-area-inset-right)) 1rem max(var(--page-gutter), env(safe-area-inset-left));
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  max-width: 100%;
  min-height: 2.75rem;
  color: var(--text);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  text-decoration: none;
}
.brand img { flex-shrink: 0; width: 2.75rem; height: 2.75rem; object-fit: contain; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem .75rem; min-width: 0; max-width: 100%; }
.header-link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .45rem .25rem; font-size: 1rem; text-align: center; text-decoration: none; }
.header-link:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  min-width: 0;
  max-width: 100%;
  padding: .65rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--surface);
  color: var(--text);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover { border-color: var(--text); }
.btn-primary { border-color: var(--text); background: var(--text); color: #fff; }
.btn-primary:hover { background: #333; border-color: #333; }
.btn:disabled { background: #e7e7e7; border-color: #d1d1d1; color: #666; }
.muted { color: var(--muted); }
.skip-link {
  position: absolute;
  top: .75rem;
  left: 1rem;
  z-index: 2000;
  padding: .6rem 1rem;
  background: #fff;
  color: #111;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 560px) {
  .site-header { gap: .75rem; }
  .header-actions { gap: .5rem; }
  .header-actions .btn { font-size: 1rem; padding: .6rem .8rem; }
  .brand { font-size: 1.75rem; }
  .brand img { width: 2rem; height: 2rem; }
  .site-header:not(.app-header):not(.auth-header) { justify-content: center; }
  .site-header:not(.app-header) .header-actions { width: 100%; }
  .site-header:not(.app-header) .header-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

