:root {
  --page: #f5f7f3;
  --paper: #ffffff;
  --ink: #17241e;
  --muted: #68756e;
  --soft: #8b958f;
  --line: #dfe6e1;
  --green: #19734a;
  --green-dark: #0e5535;
  --green-pale: #edf5f0;
  --lime: #a8cc7c;
  --shell: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(168, 204, 124, 0.08), transparent 26rem),
    var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

a { color: inherit; }

.executive-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
}

.brand__mark svg {
  width: 22px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.updated-at { text-align: right; }

.updated-at span,
.project-fact span,
.priority span,
.project-progress__heading span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 670;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.updated-at strong {
  font-size: 0.75rem;
  font-weight: 680;
}

.intro { padding: 35px 0 26px; }

.eyebrow,
.section-label {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.65rem;
  font-weight: 760;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

h1, h2, h3, p { overflow-wrap: break-word; }

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.intro__subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-fact { padding: 0 24px; }
.project-fact:first-child { padding-left: 0; }
.project-fact + .project-fact { border-left: 1px solid var(--line); }

.project-fact strong {
  display: block;
  margin-top: 3px;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 680;
}

.project-progress { padding-top: 18px; }

.project-progress__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.project-progress__heading strong {
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 680;
}

.progress-line {
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4e9e5;
}

.progress-line i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
}

.project-progress p {
  margin: 7px 0 0;
  color: var(--soft);
  font-size: 0.66rem;
}

main { padding-top: 34px; }

.current-view {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border-top: 2px solid var(--green-dark);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.editorial-block { padding: 27px 32px 29px 0; }

.editorial-block--next {
  padding-right: 0;
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.executive-summary {
  max-width: 600px;
  margin: 17px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.priority {
  margin-top: 15px;
  padding-left: 14px;
  border-left: 3px solid var(--green);
}

.priority strong {
  display: block;
  margin-top: 2px;
  font-size: 0.94rem;
  font-weight: 680;
}

.action-list {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: actions;
}

.action-list li {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  min-height: 34px;
  counter-increment: actions;
  color: #3d4a43;
  font-size: 0.78rem;
}

.action-list li::before {
  color: var(--green);
  content: counter(actions, decimal-leading-zero);
  font-size: 0.59rem;
  font-weight: 760;
}

.section { margin-top: 42px; }

.section-heading { margin-bottom: 17px; }

.section-heading h2,
.strategic-reading h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 670;
  letter-spacing: -0.035em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.timeline-item {
  position: relative;
  min-width: 0;
  padding: 24px 22px 0 0;
  border-top: 1px solid #bfcac3;
}

.timeline-item::before {
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--page);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  content: "";
}

.timeline-item:last-child::before { background: var(--lime); }

.timeline-item time {
  display: block;
  margin-bottom: 7px;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 760;
}

.timeline-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.45;
}

.timeline-link,
.row-link {
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.timeline-link::after,
.row-link::after { content: " ↗"; }

.resources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding-top: 29px;
  border-top: 1px solid var(--line);
}

.resource-list { border-top: 1px solid var(--line); }

.all-meetings-link {
  display: inline-block;
  margin-top: 13px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 720;
  text-decoration: none;
}

.resource-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 53px;
  border-bottom: 1px solid #e8ede9;
}

.resource-row--document { grid-template-columns: minmax(0, 1fr) auto; }

.resource-row time {
  color: var(--muted);
  font-size: 0.69rem;
}

.resource-row__details {
  min-width: 0;
}

.resource-row strong {
  display: block;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meeting-description {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provisional {
  display: block;
  color: var(--soft);
  font-size: 0.55rem;
  font-weight: 500;
}

.document-status {
  color: var(--soft);
  font-size: 0.61rem;
  font-weight: 620;
  white-space: nowrap;
}

.document-status--available { color: var(--green); }

.strategic-reading {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 24px 28px;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 0, rgba(168, 204, 124, 0.16), transparent 17rem),
    #123d2d;
}

.strategic-reading__heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.strategic-reading .section-label { color: #b8d79b; }

.strategic-mark {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #c7e2aa;
  background: rgba(255, 255, 255, 0.05);
}

.strategic-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.strategic-item { padding: 0 21px; }
.strategic-item:first-child { padding-left: 0; }
.strategic-item + .strategic-item { border-left: 1px solid rgba(255, 255, 255, 0.12); }

.strategic-item h3 {
  margin: 0 0 5px;
  color: #d7e8c9;
  font-size: 0.7rem;
  font-weight: 710;
}

.strategic-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.7rem;
  line-height: 1.48;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 34px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
}

.footer span { color: var(--ink); font-weight: 720; }
.footer p { margin: 0; }
.footer a { color: var(--green); font-weight: 650; text-decoration: none; }

/* Histórico completo de reuniões */
.archive-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.back-link {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.archive-intro { padding: 52px 0 46px; }

.archive-intro h1 { font-size: clamp(2.45rem, 5vw, 3.7rem); }

.archive-intro > p:last-child {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.archive-main { padding-top: 36px; }

.meeting-month + .meeting-month { margin-top: 42px; }

.meeting-month__title {
  margin: 0 0 13px;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-history { border-top: 2px solid var(--green-dark); }

.meeting-entry {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.meeting-entry__date {
  padding-top: 3px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 720;
}

.meeting-entry__content h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.meeting-entry__summary {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.meeting-entry__participants {
  margin: 9px 0 0;
  color: var(--soft);
  font-size: 0.68rem;
}

.meeting-entry__participants strong {
  color: var(--ink);
  font-weight: 680;
}

.meeting-entry__link {
  margin-top: 2px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}

.meeting-entry__link::after { content: " ↗"; }

/* Biblioteca documental */
.documents-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.restricted-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(25, 115, 74, 0.18);
  border-radius: 99px;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: 0.65rem;
  font-weight: 700;
  white-space: nowrap;
}

.restricted-label svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.documents-main { padding-top: 25px; }

.access-note {
  margin: 0 0 32px;
  color: var(--soft);
  font-size: 0.65rem;
}

.document-category + .document-category { margin-top: 38px; }

.document-category__title {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-table { border-top: 2px solid var(--green-dark); }

.document-entry {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 100px 140px 55px;
  align-items: center;
  gap: 20px;
  min-height: 62px;
  border-bottom: 1px solid var(--line);
}

.document-entry__main { min-width: 0; }

.document-entry__main h3 {
  margin: 0 0 2px;
  font-size: 0.82rem;
  font-weight: 680;
}

.document-entry__main p,
.document-entry__date {
  margin: 0;
  color: var(--muted);
  font-size: 0.64rem;
}

.document-entry__action {
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 720;
  text-align: right;
  text-decoration: none;
}

.document-entry__action::after { content: " ↗"; }

.document-entry__unavailable {
  color: #a2aaa5;
  font-size: 0.58rem;
  text-align: right;
}

/* Administração mínima */
.admin-main { padding-top: 36px; }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.admin-section { min-width: 0; }

.admin-form {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 2px solid var(--green-dark);
}

.admin-form label > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-form label small {
  color: var(--soft);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 0.78rem;
}

.admin-form input:focus,
.admin-form select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(25, 115, 74, 0.1);
}

.file-field input { padding: 6px; }

.file-field i {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--soft);
  font-size: 0.62rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-form button {
  min-height: 40px;
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 720;
  cursor: pointer;
}

.admin-form button:disabled { cursor: wait; opacity: 0.65; }

.form-message {
  min-height: 18px;
  margin: -3px 0 0;
  font-size: 0.67rem;
}

.form-message.is-sending { color: var(--muted); }
.form-message.is-success { color: var(--green); }
.form-message.is-error,
.load-error { color: #9a3f36; }

.admin-recent { margin-top: 28px; }

.admin-recent h3 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.admin-recent__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
}

.admin-recent__details { min-width: 0; }

.admin-recent__details strong {
  display: block;
  overflow: hidden;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-recent__details span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.61rem;
}

.admin-recent__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.admin-open-button,
.admin-delete-button {
  padding: 5px 7px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.61rem;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

.admin-open-button {
  color: var(--green);
  background: var(--green-pale);
}

.admin-delete-button {
  border: 1px solid rgba(154, 63, 54, 0.22);
  color: #9a3f36;
  background: transparent;
  cursor: pointer;
}

.admin-delete-button:disabled { cursor: wait; opacity: 0.62; }

.admin-action-message {
  min-height: 16px;
  margin: -3px 0 4px;
  font-size: 0.63rem;
}

.admin-action-message.is-sending { color: var(--muted); }
.admin-action-message.is-success { color: var(--green); }
.admin-action-message.is-error { color: #9a3f36; }

.load-error,
.load-empty {
  margin: 12px 0;
  font-size: 0.68rem;
}

@media (max-width: 820px) {
  .resources { gap: 30px; }

  .strategic-reading {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }

  .intro { padding: 28px 0 22px; }

  .project-facts { grid-template-columns: 1fr; padding: 5px 0; }
  .project-fact,
  .project-fact:first-child { padding: 11px 0; }
  .project-fact + .project-fact { border-top: 1px solid var(--line); border-left: 0; }

  .current-view { grid-template-columns: 1fr; }
  .editorial-block { padding: 24px 0; }
  .editorial-block--next {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .timeline { grid-template-columns: 1fr; }
  .timeline-item {
    min-height: 92px;
    padding: 0 0 20px 24px;
    border-top: 0;
    border-left: 1px solid #bfcac3;
  }
  .timeline-item::before { top: 1px; left: -5px; }

  .resources { grid-template-columns: 1fr; gap: 34px; }

  .strategic-items { grid-template-columns: 1fr; }
  .strategic-item,
  .strategic-item:first-child { padding: 11px 0; }
  .strategic-item + .strategic-item {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .footer { align-items: flex-start; flex-direction: column; }

  .archive-intro { padding: 38px 0 34px; }

  .documents-intro { align-items: flex-start; flex-direction: column; gap: 18px; }

  .admin-grid { grid-template-columns: 1fr; gap: 50px; }

  .admin-recent__row { align-items: start; grid-template-columns: 1fr; gap: 8px; }
  .admin-recent__actions { justify-content: flex-start; }

  .meeting-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .meeting-entry__link { margin-top: 5px; }

  .document-entry {
    grid-template-columns: 1fr auto;
    gap: 7px 15px;
    padding: 15px 0;
  }

  .document-entry__main { grid-column: 1 / -1; }
  .document-entry__date { grid-column: 1; }
  .document-entry .document-status { grid-column: 1; }
  .document-entry__action,
  .document-entry__unavailable { grid-column: 2; grid-row: 2 / span 2; }
}

@media (max-width: 430px) {
  .updated-at span { display: none; }
  .back-link { font-size: 0.66rem; }
  .resource-row { grid-template-columns: 65px minmax(0, 1fr) auto; }
  .resource-row--document { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
