:root {
  --ink: #08181c;
  --ink-2: #10262b;
  --ink-3: #17363d;
  --paper: #f4f1ea;
  --paper-2: #e8e4da;
  --white: #fff;
  --muted: #657276;
  --red: #d42b2b;
  --red-dark: #a91d23;
  --gold: #d8ad55;
  --aqua: #58a8b7;
  --line: rgba(8, 24, 28, 0.14);
  --shadow: 0 24px 80px rgba(5, 18, 22, 0.16);
  --radius: 4px;
  --shell: min(1240px, calc(100vw - 48px));
  --display: Georgia, 'Times New Roman', serif;
  --sans: Inter, Aptos, 'Segoe UI', Arial, sans-serif;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  border-radius: 2px;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.prototype-bar {
  position: relative;
  z-index: 70;
  color: #f1dbab;
  background: #061216;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prototype-bar__inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: #7ccf8a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(124, 207, 138, 0.12);
}

.prototype-bar__note {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-header {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 60;
  color: var(--white);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(244, 241, 234, 0.95);
  box-shadow: 0 12px 30px rgba(7, 23, 27, 0.1);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-marks {
  display: flex;
  align-items: center;
}

.brand-marks img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.16));
}

.brand-marks img + img {
  width: 58px;
  height: 58px;
  margin-left: -10px;
}

.brand-copy {
  display: grid;
  line-height: 1.12;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.36rem;
  letter-spacing: 0.015em;
}

.brand-copy small {
  margin-top: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  opacity: 0.7;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  font-size: 0.83rem;
  font-weight: 700;
}

.main-nav > a:not(.button) {
  position: relative;
  padding-block: 12px;
}

.main-nav > a:not(.button)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.main-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--small {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 0.78rem;
}

.button--primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(212, 43, 43, 0.24);
}

.button--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button--ghost {
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.42);
}

.admin-reference-section {
  padding: 70px clamp(24px, 5vw, 64px);
  background: #f3efe7;
}

.admin-audit-section {
  padding: 70px clamp(24px, 5vw, 64px);
  background: #fff;
}

.admin-audit-section .admin-table-wrap {
  margin-top: 30px;
  border: 1px solid #ded9cf;
}

.admin-audit-table td:first-child {
  min-width: 132px;
}

.admin-audit-table td:last-child span {
  white-space: normal;
}

.admin-reference-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-top: 34px;
}

.admin-wings-card {
  margin-top: 18px;
}

.admin-reference-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.admin-reference-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) auto auto;
  gap: 10px;
  padding: 13px;
  align-items: end;
  border: 1px solid #e0dbd1;
  background: #fbfaf7;
}

.admin-reference-row--wing {
  grid-template-columns: 70px minmax(170px, 0.75fr) minmax(220px, 1.25fr) auto auto;
}

.admin-reference-row label,
.admin-reference-code {
  display: grid;
  gap: 6px;
}

.admin-reference-row label > span,
.admin-reference-code > span {
  color: #706960;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-reference-row input[type='text'],
.admin-reference-row input:not([type]) {
  min-width: 0;
  height: 40px;
  padding: 8px 10px;
  border: 1px solid #d5cfc5;
  background: #fff;
  font: inherit;
}

.admin-reference-code strong {
  display: grid;
  height: 40px;
  place-items: center;
  color: #fff;
  background: #0a3035;
}

.admin-reference-active {
  display: flex !important;
  min-height: 40px;
  padding: 0 10px;
  align-items: center;
  gap: 7px !important;
  border: 1px solid #d5cfc5;
  background: #fff;
}

.admin-reference-active input {
  width: auto;
  min-height: auto;
}

.admin-reference-active span {
  margin: 0;
  white-space: nowrap;
}

.admin-reference-row button {
  height: 40px;
  padding: 0 14px;
  color: #fff;
  border: 0;
  background: #82171d;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.admin-reference-row button:disabled {
  opacity: 0.55;
}

.site-header.is-scrolled .button--ghost {
  background: transparent;
  border-color: rgba(8, 24, 28, 0.3);
}

.button--glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.button--light {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.button--dark {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.button--outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
}

.button--full {
  width: 100%;
}

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  color: var(--white);
  background: #07171b;
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  transform: scale(1.015);
}

.hero-media__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  background: #07171b;
  transform: scale(1.025);
  transition: opacity 1.35s ease, transform 7s ease;
}

.hero-media__slide::before,
.hero-media__slide::after {
  position: absolute;
  content: '';
  background-image: var(--hero-image);
  background-repeat: no-repeat;
}

.hero-media__slide::before {
  inset: -7%;
  background-position: var(--hero-mobile-position, center);
  background-size: cover;
  filter: blur(28px) saturate(0.8) brightness(0.72);
  opacity: 0.68;
  transform: scale(1.08);
}

.hero-media__slide::after {
  inset: 0;
  background-position: 72% center;
  background-size: contain;
}

.hero-media__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-media__slide--bresc {
  --hero-image: url('assets/hero-curso-bresc.jpg');
  --hero-mobile-position: center 48%;
}

.hero-media__slide--crev {
  --hero-image: url('assets/hero-curso-crev.jpg');
  --hero-mobile-position: center 46%;
}

.hero-media__slide--cmaut {
  --hero-image: url('assets/hero-curso-cmaut.jpg');
  --hero-mobile-position: center 52%;
}

.hero-media__slide--cobs {
  --hero-image: url('assets/hero-curso-cobs.jpg');
  --hero-mobile-position: center 38%;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 18, 22, 0.96) 0%, rgba(5, 23, 28, 0.84) 40%, rgba(5, 20, 24, 0.28) 72%, rgba(4, 14, 17, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 18, 22, 0.82) 0%, transparent 45%);
}

.hero-grid {
  min-height: min(900px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 72px;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 34px;
  height: 2px;
  background: currentColor;
}

.eyebrow > [data-home-eyebrow] {
  width: auto;
  height: auto;
  background: none;
}

.eyebrow--light {
  color: #f0d17f;
}

.hero #hero-title {
  max-width: 850px;
  margin: 23px 0 24px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 6.2vw, 6.8rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.hero #hero-title em {
  color: #efc95d;
  font-weight: 400;
}

.hero-copy > p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 37px;
}

.hero-seal {
  align-self: end;
  display: grid;
  justify-items: center;
  padding: 26px;
  margin-bottom: 46px;
  background: rgba(4, 18, 22, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.hero-seal img {
  width: 172px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.34));
}

.hero-seal div {
  width: 100%;
  display: grid;
  gap: 3px;
  padding-top: 17px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.hero-seal span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-seal strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.scroll-cue {
  position: absolute;
  left: max(24px, calc((100vw - min(1240px, calc(100vw - 48px))) / 2));
  bottom: 27px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 56px;
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.section {
  padding: 112px 0;
}

.intro {
  background: var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(50px, 8vw, 130px);
}

.section-kicker {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.section-index {
  color: rgba(8, 24, 28, 0.08);
  font-family: var(--display);
  font-size: 7.8rem;
  line-height: 0.8;
}

.intro-content h2,
.section-heading h2,
.projects-heading h2,
.access-cta h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.intro-content .lead {
  max-width: 880px;
  margin: 28px 0 0;
  color: #35484d;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.55;
}

.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 50px 0 36px;
  background: var(--line);
  border: 1px solid var(--line);
}

.intro-facts article {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  background: var(--paper);
}

.intro-facts strong {
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
}

.intro-facts span {
  max-width: 180px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.text-link,
button.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 0 6px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(8, 24, 28, 0.55);
  font-weight: 800;
  cursor: pointer;
}

.text-link span {
  color: var(--red);
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.disciplines {
  background: #e7e3d9;
  border-top: 1px solid rgba(8, 24, 28, 0.08);
}

.section-heading,
.projects-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.65fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 58px;
}

.section-heading h2,
.projects-heading h2 {
  margin-top: 14px;
  font-size: clamp(2.5rem, 4.4vw, 4.7rem);
}

.section-heading > p,
.projects-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  line-height: 1.75;
}

.section-heading--compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(8, 24, 28, 0.14);
  border: 1px solid rgba(8, 24, 28, 0.14);
}

.discipline-card {
  position: relative;
  min-height: 370px;
  padding: 34px;
  background: var(--paper);
  overflow: hidden;
  transition: color 0.3s ease, background 0.3s ease;
}

.discipline-card:hover,
.discipline-card--featured {
  color: var(--white);
  background: var(--ink-2);
}

.discipline-card::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 190px;
  height: 190px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.45s ease;
}

.discipline-card:hover::after,
.discipline-card--featured::after {
  opacity: 0.11;
  transform: scale(1);
}

.discipline-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 54px;
  color: var(--red);
  border: 1px solid currentColor;
  border-radius: 50%;
}

.discipline-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.discipline-card:hover .discipline-icon,
.discipline-card--featured .discipline-icon {
  color: #efc95d;
}

.discipline-number {
  position: absolute;
  top: 34px;
  right: 34px;
  color: rgba(8, 24, 28, 0.3);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.discipline-card:hover .discipline-number,
.discipline-card--featured .discipline-number {
  color: rgba(255, 255, 255, 0.38);
}

.discipline-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
}

.discipline-card p {
  min-height: 78px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.discipline-card:hover p,
.discipline-card--featured p {
  color: rgba(255, 255, 255, 0.66);
}

.card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-top: 25px;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.card-link span {
  color: var(--red);
  font-size: 1rem;
}

.discipline-card:hover .card-link span,
.discipline-card--featured .card-link span {
  color: #efc95d;
}

.story-panel {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--ink);
  color: var(--white);
}

.story-photo {
  min-height: 620px;
  background:
    linear-gradient(90deg, transparent 60%, rgba(8, 24, 28, 0.58)),
    url('assets/instrucao-resgate.jpeg') center 45% / cover no-repeat;
}

.story-content {
  align-self: center;
  max-width: 620px;
  padding: 90px clamp(48px, 7vw, 110px) 90px 70px;
}

.story-content h2 {
  margin: 22px 0 25px;
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 5.8rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.story-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.8;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 36px;
}

.story-tags span {
  padding: 7px 12px;
  color: #f1d892;
  border: 1px solid rgba(241, 216, 146, 0.32);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-section {
  background: var(--paper);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding-top: 15px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 75px;
  left: 3px;
  right: 3px;
  height: 1px;
  background: rgba(8, 24, 28, 0.18);
}

.timeline-item {
  position: relative;
  padding-right: 25px;
}

.timeline-item time {
  display: block;
  margin-bottom: 25px;
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 2rem;
}

.timeline-item > span {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  display: block;
  margin-bottom: 29px;
  background: var(--paper);
  border: 3px solid var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--paper);
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.events {
  background: #e7e3d9;
}

.event-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 20px;
}

.event-card {
  position: relative;
  min-height: 500px;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.event-card--large {
  min-height: 600px;
}

.event-card img,
.event-card__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card img {
  transition: transform 0.7s ease;
}

.event-card:hover img {
  transform: scale(1.035);
}

.event-card__overlay {
  background: linear-gradient(0deg, rgba(4, 16, 20, 0.94), rgba(4, 16, 20, 0.08) 68%);
}

.event-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 36px;
}

.event-card__content > span {
  color: #f0d17f;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 8px 0;
  font-family: var(--display);
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.event-card:not(.event-card--large) h3 {
  font-size: clamp(1.8rem, 2.4vw, 2.7rem);
}

.event-card p {
  max-width: 480px;
  margin: 10px 70px 0 0;
  color: rgba(255, 255, 255, 0.67);
}

.event-card__content button,
.event-card__content > a {
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

.projects {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(44, 112, 124, 0.2), transparent 28%),
    var(--ink);
}

.projects-heading .eyebrow {
  color: #f0d17f;
}

.projects-heading > p {
  color: rgba(255, 255, 255, 0.58);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.project-card {
  min-height: 510px;
  display: flex;
  flex-direction: column;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.045);
}

.project-card--active {
  background:
    linear-gradient(135deg, rgba(212, 43, 43, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.06);
}

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

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c8e6ce;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-status i {
  width: 8px;
  height: 8px;
  background: #72c986;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(114, 201, 134, 0.1);
}

.project-status--planning {
  color: #ead492;
}

.project-status--planning i {
  background: #d8ad55;
  box-shadow: 0 0 0 5px rgba(216, 173, 85, 0.1);
}

.project-code {
  color: rgba(255, 255, 255, 0.24);
  font-family: var(--display);
  font-size: 1.4rem;
}

.project-symbol {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 48px 0 26px;
  color: #efc95d;
  border: 1px solid rgba(239, 201, 93, 0.35);
  border-radius: 50%;
}

.project-symbol svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-type {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.project-card p {
  max-width: 570px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.62);
}

.project-card .button {
  align-self: flex-start;
  margin-top: auto;
}

.project-card small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.68rem;
}

.access-cta {
  padding: 80px 0;
  color: var(--ink);
  background: #dbbd68;
}

.access-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 70px;
}

.access-cta h2 {
  max-width: 780px;
  margin-top: 10px;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
}

.access-cta p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(8, 24, 28, 0.68);
}

.access-cta .eyebrow {
  color: #7d261e;
}

.access-cta .button {
  flex-shrink: 0;
}

.site-footer {
  padding: 75px 0 24px;
  color: var(--white);
  background: #051014;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  padding-bottom: 60px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.footer-brand div {
  display: grid;
}

.footer-brand strong {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 500;
}

.footer-brand span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: #efd791;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a,
.footer-links button {
  justify-self: start;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  background: none;
  border: 0;
  font-size: 0.8rem;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.36);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.68rem;
}

.footer-bottom span:last-child {
  color: #efd791;
  font-family: var(--display);
  font-size: 0.92rem;
}

.footer-useful-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 20px;
  font-size: 0.9rem;
}

.footer-useful-links strong {
  color: #efd791;
}

.footer-useful-links ul,
.contact-useful-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-useful-links a,
.contact-useful-links a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-useful-links li,
.contact-useful-links li,
.footer-brand div,
.footer-bottom > span {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.contact-useful-links {
  margin-top: 20px;
}

.contact-card [data-contact-hours-row][hidden] {
  display: none;
}

.contact-editor__links {
  display: grid;
  gap: 14px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  width: min(390px, calc(100vw - 48px));
  display: grid;
  padding: 17px 19px;
  color: var(--white);
  background: var(--ink-2);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast strong {
  font-size: 0.86rem;
}

.toast span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay,
.reveal--delay-1 {
  transition-delay: 0.12s;
}

.reveal--delay-2 {
  transition-delay: 0.22s;
}

/* Access prototype */
.auth-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(390px, 0.95fr) minmax(500px, 1.05fr);
  background: var(--paper);
}

.auth-visual {
  position: fixed;
  inset: 0 auto 0 0;
  width: calc(100% * 0.475);
  min-width: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px clamp(34px, 5vw, 78px);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}

.auth-visual__image,
.auth-visual__overlay {
  position: absolute;
  inset: 0;
}

.auth-visual__image {
  background: url('assets/hero-curso-crev.jpg') center 46% / cover no-repeat;
}

.auth-visual__overlay {
  background:
    linear-gradient(0deg, rgba(4, 17, 21, 0.96), rgba(4, 17, 21, 0.2) 75%),
    linear-gradient(90deg, rgba(4, 17, 21, 0.72), transparent);
}

.auth-brand,
.auth-quote,
.auth-visual__caption {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
}

.auth-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.auth-brand span {
  display: grid;
  line-height: 1.15;
}

.auth-brand strong {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 500;
}

.auth-brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.auth-quote {
  max-width: 630px;
}

.auth-quote blockquote {
  margin: 20px 0 16px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.6vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.auth-quote p {
  color: rgba(255, 255, 255, 0.6);
}

.auth-visual__caption {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-main {
  grid-column: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 34px clamp(34px, 7vw, 110px) 25px;
}

.auth-main__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-main__top a {
  display: inline-flex;
  gap: 9px;
  color: var(--ink);
}

.auth-main__top > span {
  padding: 7px 10px;
  color: #7d261e;
  background: rgba(212, 43, 43, 0.08);
  border: 1px solid rgba(212, 43, 43, 0.14);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-panel {
  width: min(100%, 560px);
  margin: auto;
  padding: 65px 0 45px;
}

.auth-panel[hidden] {
  display: none;
}

.auth-panel h1 {
  margin: 17px 0 12px;
  font-family: var(--display);
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.auth-panel > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.prototype-notice {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 15px;
  margin: 27px 0;
  color: #6b4e1d;
  background: #f2e8cc;
  border: 1px solid #dfc980;
}

.prototype-notice > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #6b4e1d;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
}

.prototype-notice p {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.5;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form > label,
.label-row label {
  font-size: 0.74rem;
  font-weight: 850;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 5px;
}

.label-row button,
.back-button {
  padding: 0;
  color: var(--red-dark);
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.back-button {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--ink);
}

.input-wrap {
  position: relative;
}

.input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #718085;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: 54px;
  padding: 0 48px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(8, 24, 28, 0.18);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap input::placeholder {
  color: #879397;
}

.input-wrap input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(212, 43, 43, 0.08);
  outline: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #718085;
  background: transparent;
  border: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 0.71rem !important;
  font-weight: 600 !important;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.auth-separation,
.recovery-help {
  padding: 19px 21px;
  margin-top: 26px;
  background: rgba(8, 24, 28, 0.045);
  border-left: 3px solid var(--aqua);
}

.auth-separation strong,
.recovery-help strong {
  font-family: var(--display);
  font-size: 1.02rem;
}

.auth-separation p,
.recovery-help p {
  margin: 5px 0 7px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.auth-separation a {
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 850;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  color: #889397;
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
}

.auth-footer button,
.auth-footer a {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

/* Restricted area and administration */
.dashboard-page {
  min-height: 100vh;
  color: var(--ink);
  background: #eee9df;
}

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px max(24px, calc((100vw - 1240px) / 2));
  color: var(--white);
  background: rgba(5, 24, 29, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.dashboard-brand span {
  display: grid;
  line-height: 1.1;
}

.dashboard-brand strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
}

.dashboard-brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.dashboard-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.76rem;
  font-weight: 800;
}

.dashboard-header nav a,
.dashboard-header nav button {
  padding: 9px 0;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.dashboard-header nav a:hover,
.dashboard-header nav button:hover {
  color: var(--white);
}

.dashboard-main {
  width: min(1240px, calc(100vw - 48px));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 54px 0 90px;
}

.dashboard-main[data-auth-state='loading'] .dashboard-protected,
.dashboard-main[data-auth-state='setup'] .dashboard-protected {
  display: none;
}

.dashboard-main[data-auth-state='ready'] .dashboard-setup {
  display: none;
}

.dashboard-setup {
  max-width: 760px;
  padding: clamp(34px, 6vw, 70px);
  margin: 8vh auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dashboard-setup h1 {
  margin: 18px 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
}

.dashboard-setup p {
  color: var(--muted);
  line-height: 1.75;
}

.dashboard-setup .button {
  margin-top: 20px;
}

.dashboard-welcome,
.admin-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  align-items: end;
  padding: clamp(38px, 6vw, 74px);
  color: var(--white);
  background: linear-gradient(125deg, #071b20, #173b43);
  box-shadow: 0 22px 60px rgba(7, 27, 32, 0.15);
}

.dashboard-welcome h1,
.admin-title h1 {
  margin: 16px 0 12px;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.dashboard-welcome p,
.admin-title p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.dashboard-identity {
  min-width: 230px;
  padding: 20px 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-identity span {
  display: block;
  color: #efc95d;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-identity strong {
  display: block;
  margin-top: 7px;
  font-size: 0.78rem;
  max-width: 100%;
  overflow-x: auto;
}

.dashboard-section {
  padding: 70px 0 0;
}

.dashboard-heading,
.admin-card__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 28px;
}

.dashboard-heading > div > span {
  color: var(--red-dark);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dashboard-heading h2,
.admin-card h2 {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  font-weight: 500;
  line-height: 1;
}

.dashboard-heading p,
.admin-card__heading p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-metrics article {
  min-height: 150px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.dashboard-metrics strong {
  display: block;
  font-family: var(--display);
  font-size: 1.42rem;
  font-weight: 500;
}

.dashboard-metrics span {
  display: block;
  margin-top: 11px;
  color: var(--muted);
  font-size: 0.78rem;
}

.dashboard-content-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-content-card,
.dashboard-empty,
.dashboard-loading {
  min-height: 190px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
}

.dashboard-content-card > span {
  color: var(--red-dark);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-content-card h3 {
  margin: 16px 0 10px;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
}

.dashboard-content-card p,
.dashboard-empty span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.dashboard-empty,
.dashboard-loading {
  grid-column: 1 / -1;
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 5px;
  color: var(--muted);
}

.dashboard-empty strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
}

.dashboard-projects,
.admin-next {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-top: 70px;
  padding: clamp(36px, 6vw, 70px);
  color: var(--white);
  background: #0a2227;
}

.dashboard-projects h2,
.admin-next h2 {
  margin: 15px 0 12px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
}

.dashboard-projects p,
.admin-next p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.61);
}

.admin-title {
  color: var(--ink);
  background: var(--white);
}

.admin-title .eyebrow {
  color: var(--red-dark);
}

.admin-title p {
  color: var(--muted);
}

.admin-title .dashboard-identity {
  color: var(--ink);
  border-color: var(--line);
  background: #f6f1e8;
}

.admin-title .dashboard-identity span {
  color: var(--red-dark);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 20px;
  margin-top: 24px;
}

.admin-card {
  padding: clamp(30px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
}

.admin-card > p {
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-card h2 small {
  display: inline-grid;
  min-width: 35px;
  height: 35px;
  place-items: center;
  vertical-align: middle;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.72rem;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form label {
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 850;
}

.admin-form input,
.admin-form select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: #faf8f3;
  border: 1px solid rgba(8, 24, 28, 0.18);
  border-radius: var(--radius);
}

.admin-form .button {
  margin-top: 14px;
}

.admin-invite-reference {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 14px;
  align-content: center;
  color: var(--muted);
  background: #f4efe5;
  border-left: 3px solid #c89b37;
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-invite-reference strong,
.admin-invite-reference span {
  display: block;
}

.admin-invite-reference strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.admin-table th,
.admin-table td {
  padding: 16px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.status-chip {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.62rem !important;
  font-weight: 850;
}

.status-chip--active {
  color: #256335 !important;
  background: #e5f4e8;
}

.status-chip--blocked {
  color: #8d2525 !important;
  background: #f7e3e3;
}

.toast[data-tone='error'] {
  border-left-color: #b82028;
}

.toast[data-tone='success'] {
  border-left-color: #3d8f51;
}

@media (max-width: 900px) {
  .dashboard-welcome,
  .admin-title,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-identity {
    min-width: 0;
  }

  .dashboard-metrics,
  .dashboard-content-list {
    grid-template-columns: 1fr;
  }

  .dashboard-projects,
  .admin-next {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .dashboard-header {
    align-items: flex-start;
    padding: 10px 16px;
  }

  .dashboard-brand span {
    display: none;
  }

  .dashboard-header nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .dashboard-header nav a,
  .dashboard-header nav button {
    font-size: 0.68rem;
  }

  .dashboard-main {
    width: min(100% - 28px, 1240px);
    padding-top: 24px;
  }

  .dashboard-welcome,
  .admin-title,
  .dashboard-projects,
  .admin-next {
    padding: 30px 24px;
  }

  .dashboard-heading,
  .admin-card__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-card {
    padding: 28px 22px;
  }
}

/* Diretório restrito do efetivo */
.dashboard-metric-card {
  display: flex;
  min-height: 128px;
  padding: 25px;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  border: 1px solid #e1ddd4;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dashboard-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(128, 21, 27, 0.36);
  box-shadow: 0 15px 35px rgba(7, 23, 27, 0.08);
}

.dashboard-metric-card strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
}

.dashboard-metric-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.military-page .dashboard-main {
  max-width: 1560px;
}

.military-hero {
  display: flex;
  min-height: 330px;
  padding: clamp(38px, 6vw, 76px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(5, 30, 35, 0.98), rgba(10, 59, 64, 0.87)),
    radial-gradient(circle at 85% 15%, rgba(209, 162, 62, 0.32), transparent 33%);
}

.military-hero h1 {
  margin: 22px 0 14px;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.military-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.04rem;
  line-height: 1.65;
}

.military-hero__actions {
  display: grid;
  min-width: 280px;
  gap: 15px;
  justify-items: stretch;
}

.military-hero__actions .dashboard-identity {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
}

.military-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  background: #f3eee4;
}

.military-overview article {
  display: flex;
  min-height: 118px;
  padding: 26px clamp(24px, 4vw, 46px);
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-right: 1px solid #dcd3c4;
}

.military-overview article:last-child {
  border-right: 0;
}

.military-overview span {
  color: #665f55;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.military-overview strong {
  color: #82171d;
  font-family: var(--display);
  font-size: 2.5rem;
  font-weight: 600;
}

.military-directory {
  padding: clamp(48px, 7vw, 90px) clamp(24px, 5vw, 72px) 90px;
  background: #f8f6f1;
}

.military-filters {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  margin: 34px 0 28px;
  padding: 20px;
  align-items: end;
  border: 1px solid #ded9cf;
  background: #fff;
}

.military-filters label,
.military-form label {
  display: grid;
  gap: 8px;
}

.military-filters label > span,
.military-form label > span {
  color: #544f48;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.military-filters input,
.military-filters select,
.military-form input,
.military-form select,
.military-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid #d5d0c7;
  border-radius: 0;
  background: #fff;
  font: inherit;
}

.military-filters input:focus,
.military-filters select:focus,
.military-form input:focus,
.military-form select:focus,
.military-form textarea:focus {
  outline: 2px solid rgba(128, 21, 27, 0.2);
  border-color: #82171d;
}

.military-filters button,
.military-pagination button {
  min-height: 46px;
  padding: 0 17px;
  color: #fff;
  border: 1px solid #0a3035;
  background: #0a3035;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.military-feedback {
  display: grid;
  min-height: 150px;
  padding: 34px;
  place-content: center;
  gap: 8px;
  color: #665f55;
  border: 1px dashed #c9c1b4;
  text-align: center;
}

.military-feedback strong,
.military-feedback span {
  display: block;
}

.military-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.military-card {
  display: grid;
  min-width: 0;
  min-height: 156px;
  padding: 20px;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 16px 18px;
  color: var(--ink);
  border: 1px solid #ded9cf;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.military-card:hover {
  transform: translateY(-3px);
  border-color: rgba(128, 21, 27, 0.42);
  box-shadow: 0 14px 30px rgba(7, 23, 27, 0.08);
}

.military-card__avatar {
  display: grid;
  width: 64px;
  height: 78px;
  grid-row: 1 / 3;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #153e43, #09282d);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.military-card__body {
  display: block;
  min-width: 0;
}

.military-card__body small,
.military-card__body strong,
.military-card__body em,
.military-card__body span {
  display: block;
}

.military-card__body small {
  margin-bottom: 6px;
  color: #82171d;
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.military-card__body strong {
  font-family: var(--display);
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.15;
}

.military-card__body em,
.military-card__body span {
  margin-top: 5px;
  color: #6b655d;
  font-size: 0.78rem;
  font-style: normal;
}

.military-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.military-card__meta i {
  font-style: normal;
}

.military-card__meta b {
  color: #666057;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-chip--seconded,
.status-chip--away {
  color: #754d08;
  background: #fff0c5;
}

.status-chip--transferred,
.status-chip--archived {
  color: #5d5d5d;
  background: #e9e9e9;
}

.military-pagination {
  display: flex;
  margin-top: 32px;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.military-pagination[hidden] {
  display: none;
}

.military-pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.military-pagination span {
  color: #625d55;
  font-size: 0.82rem;
  font-weight: 750;
}

.military-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  border: 0;
  background: #f8f6f1;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.military-dialog::backdrop {
  background: rgba(2, 17, 20, 0.78);
  backdrop-filter: blur(4px);
}

.military-dialog__close {
  position: sticky;
  z-index: 5;
  top: 14px;
  float: right;
  width: 42px;
  height: 42px;
  margin: 14px 14px -56px 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: #092c31;
  font-size: 1.5rem;
  cursor: pointer;
}

.military-profile__top {
  display: grid;
  min-height: 310px;
  padding: clamp(40px, 7vw, 72px);
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  color: #fff;
  background: linear-gradient(125deg, #08282d, #10464b);
}

.military-profile__photo {
  display: grid;
  width: 190px;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border: 5px solid rgba(255, 255, 255, 0.88);
  background: #174d52;
  font-family: var(--display);
  font-size: 3.6rem;
}

.military-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.military-profile__top h2 {
  margin: 20px 0 10px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.military-profile__top p {
  color: rgba(255, 255, 255, 0.7);
}

.military-profile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.military-profile__chips > span {
  padding: 7px 10px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.military-profile__chips > span:not(.status-chip) {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.military-profile__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 42px clamp(30px, 6vw, 64px);
  gap: 0;
}

.military-profile__details div {
  padding: 20px 0;
  border-bottom: 1px solid #ded8cd;
}

.military-profile__details div:nth-child(odd) {
  padding-right: 30px;
}

.military-profile__details div:nth-child(even) {
  padding-left: 30px;
  border-left: 1px solid #ded8cd;
}

.military-profile__details dt {
  margin-bottom: 7px;
  color: #7b7469;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.military-profile__details dd {
  margin: 0;
  font-weight: 700;
}

.military-profile__courses,
.military-profile__notes,
.military-profile__actions {
  padding: 0 clamp(30px, 6vw, 64px) 46px;
}

.military-profile h3 {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
}

.military-profile__courses ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.military-profile__courses li {
  padding: 9px 12px;
  color: #5e171a;
  background: #efe3d2;
  font-size: 0.75rem;
  font-weight: 800;
}

.military-profile__courses li.is-empty {
  color: #6b655c;
  background: #e9e6df;
}

.military-form-heading {
  padding: 54px clamp(28px, 6vw, 64px) 32px;
  color: #fff;
  background: #0a3035;
}

.military-form-heading h2 {
  margin: 20px 0 10px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
}

.military-form-heading p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.military-form {
  padding: 38px clamp(28px, 6vw, 64px) 56px;
}

.military-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 32px;
  padding: 26px;
  border: 1px solid #dcd6cb;
  background: #fff;
}

.military-form legend {
  padding: 0 10px;
  color: #82171d;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
}

.military-form textarea {
  resize: vertical;
}

.military-form label small {
  color: #746e64;
  font-size: 0.75rem;
  line-height: 1.5;
}

.military-form__wide {
  grid-column: 1 / -1;
}

.military-photo-editor {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.military-photo-preview {
  display: grid;
  width: 140px;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  color: #787168;
  border: 1px solid #d2cbc0;
  background: #ede9e1;
  text-align: center;
}

.military-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.military-source-fields {
  margin-bottom: 30px;
  border: 1px solid #dcd6cb;
  background: #fff;
}

.military-source-fields summary {
  padding: 18px 22px;
  color: #5c554d;
  font-weight: 800;
  cursor: pointer;
}

.military-source-fields > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 22px 24px;
}

.military-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.button--ghost {
  color: #0a3035;
  border: 1px solid #0a3035;
  background: transparent;
}

@media (max-width: 1120px) {
  .military-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .military-search {
    grid-column: 1 / -1;
  }

  .military-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-reference-grid {
    grid-template-columns: 1fr;
  }

  .admin-reference-row--wing {
    grid-template-columns: 70px minmax(160px, 0.8fr) minmax(220px, 1.2fr);
  }

  .admin-reference-row--wing .admin-reference-active,
  .admin-reference-row--wing button {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .military-hero {
    min-height: auto;
    padding-top: 58px;
    flex-direction: column;
    align-items: stretch;
  }

  .military-hero__actions {
    min-width: 0;
  }

  .military-overview,
  .military-grid,
  .military-profile__details,
  .military-form fieldset,
  .military-source-fields > div {
    grid-template-columns: 1fr;
  }

  .military-overview article {
    min-height: 90px;
    border-right: 0;
    border-bottom: 1px solid #dcd3c4;
  }

  .military-filters {
    grid-template-columns: 1fr;
  }

  .military-search {
    grid-column: auto;
  }

  .military-profile__top {
    grid-template-columns: 1fr;
  }

  .military-profile__photo {
    width: 150px;
  }

  .military-profile__details div,
  .military-profile__details div:nth-child(odd),
  .military-profile__details div:nth-child(even) {
    padding: 18px 0;
    border-left: 0;
  }

  .military-photo-editor {
    grid-template-columns: 1fr;
  }

  .military-form__actions {
    flex-direction: column-reverse;
  }

  .admin-reference-row,
  .admin-reference-row--wing {
    grid-template-columns: 1fr;
  }
}

/* Importação assistida do efetivo */
.import-page .dashboard-main { max-width: 1380px; }
.import-hero { padding: clamp(52px, 8vw, 96px); color: #fff; background: linear-gradient(125deg, #07272c, #104b50); }
.import-hero h1 { max-width: 850px; margin: 22px 0 14px; font-family: var(--display); font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.04em; }
.import-hero p { max-width: 760px; color: rgba(255,255,255,.72); font-size: 1.06rem; line-height: 1.65; }
.import-steps { display: grid; gap: 18px; padding: clamp(34px, 6vw, 76px); background: #f3efe7; }
.import-card { position: relative; display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 10px 24px; padding: clamp(26px, 5vw, 48px); align-items: start; border: 1px solid #ddd7cc; background: #fff; }
.import-card[hidden] { display: none; }
.import-card > :not(.import-step-number) { min-width: 0; grid-column: 2; }
.import-step-number { display: grid; width: 54px; height: 54px; grid-column: 1; grid-row: 1; place-items: center; color: #fff; background: #82171d; font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.import-card h2 { margin: 0 0 8px; font-family: var(--display); font-size: 2rem; font-weight: 600; }
.import-card h3 { margin: 28px 0 14px; font-family: var(--display); font-size: 1.45rem; }
.import-card > div > p { margin: 0; color: #6c655c; line-height: 1.6; }
.import-file { display: inline-flex; width: fit-content; margin-top: 22px; padding: 13px 18px; color: #fff; background: #0a3035; font-size: .78rem; font-weight: 850; cursor: pointer; }
.import-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.import-file-status { margin-top: 14px; color: #6b655d; font-size: .86rem; }
.import-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 28px 0; }
.import-metrics--comparison { grid-template-columns: repeat(4,minmax(0,1fr)); }
.import-metrics div { padding: 20px; border: 1px solid #e0dbd2; background: #faf8f4; }
.import-metrics strong,.import-metrics span { display: block; }
.import-metrics strong { color: #82171d; font-family: var(--display); font-size: 2.1rem; }
.import-metrics span { color: #70695f; font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.import-issues { margin-bottom: 24px; padding: 18px 20px; color: #604b16; border-left: 4px solid #d19b28; background: #fff4d8; }
.import-issues strong,.import-issues p { display: block; margin: 0 0 6px; }
.import-issues ul { margin: 10px 0 0; padding-left: 20px; }
.import-card .admin-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
.import-preview-table { width: 100%; min-width: 800px; }
.import-comparison-summary { display: grid; gap: 5px; margin: 0 0 8px; padding: 18px 20px; color: #173d43; border-left: 4px solid #2a747a; background: #e7f1f0; }
.import-comparison-summary:empty { display: none; }
.import-comparison-summary strong,.import-comparison-summary span { display: block; }
.import-comparison-group { min-width: 0; margin-top: 28px; }
.import-comparison-group > h3 { margin-bottom: 5px; }
.import-comparison-group > p { margin: 0 0 14px; color: #6c655c; line-height: 1.55; }
.import-missing-empty { margin-top: 24px; padding: 18px 20px; color: #245133; background: #e6f1e8; font-weight: 750; }
.import-missing-decisions { display: grid; gap: 12px; margin-top: 24px; }
.import-missing-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.55fr); gap: 20px; padding: 18px 20px; align-items: center; border: 1px solid #ded8cf; background: #faf8f4; }
.import-missing-card > div,.import-missing-card label { display: grid; gap: 6px; }
.import-missing-card strong { font-family: var(--display); font-size: 1.2rem; }
.import-missing-card span { color: #6c655c; font-size: .82rem; }
.import-missing-card label > span { font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.import-missing-card select { min-height: 46px; padding: 10px 12px; border: 1px solid #d5cfc5; background: #fff; font: inherit; }
.import-rule-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.import-rule-grid label,.import-location-map label { display: grid; gap: 8px; }
.import-rule-grid label > span,.import-location-map label > span { color: #5f584f; font-size: .7rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.import-rule-grid select,.import-location-map select { min-height: 46px; padding: 10px 12px; border: 1px solid #d5cfc5; background: #fff; font: inherit; }
.import-location-map { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.import-location-map small { color: #8a8278; font-weight: 700; letter-spacing: 0; text-transform: none; }
.import-confirm { display: flex; margin-top: 26px; padding: 18px; align-items: flex-start; gap: 12px; color: #403b35; border: 1px solid #d5cfc5; background: #faf8f4; font-weight: 750; line-height: 1.5; }
.import-confirm input { width: 20px; height: 20px; flex: 0 0 auto; }
.import-card--confirm { background: #0a3035; color: #fff; }
.import-card--confirm > div > p { color: rgba(255,255,255,.68); }
.import-readiness { margin: 22px 0; padding: 15px; color: #183c25; background: #dcebdd; font-weight: 800; }
.import-card--confirm .button { justify-self: start; }
.import-card--confirm .button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .import-card { grid-template-columns: 1fr; }
  .import-card > :not(.import-step-number),.import-step-number { grid-column: 1; }
  .import-step-number { grid-row: auto; }
  .import-metrics,.import-rule-grid,.import-location-map,.import-missing-card { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .brand-copy small {
    display: none;
  }

  .main-nav {
    gap: 15px;
  }

  .main-nav > a:not(.button) {
    font-size: 0.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 240px;
    gap: 35px;
  }

  .hero-seal {
    padding: 20px;
  }

  .discipline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-panel {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item > span {
    margin-bottom: 20px;
  }

  .auth-page {
    grid-template-columns: 42% 58%;
  }

  .auth-visual {
    width: 42%;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 32px, 720px);
  }

  .prototype-bar__note {
    display: none;
  }

  .site-header {
    top: 34px;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand-marks img {
    width: 44px;
    height: 44px;
  }

  .brand-marks img + img {
    width: 49px;
    height: 49px;
  }

  .brand-copy strong {
    font-size: 1.18rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    inset: 110px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 32px 24px;
    color: var(--white);
    background: rgba(5, 16, 20, 0.98);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav > a:not(.button) {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 500;
  }

  .main-nav .button {
    margin-top: 24px;
  }

  .site-header.is-scrolled .main-nav {
    color: var(--white);
  }

  .menu-toggle[aria-expanded='true'] > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded='true'] > span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded='true'] > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-grid {
    min-height: 860px;
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 170px;
  }

  .hero-media__slide::after {
    background-position: var(--hero-mobile-position, center);
    background-size: cover;
  }

  .hero-seal {
    display: none;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(4, 18, 22, 0.94), rgba(4, 18, 22, 0.65));
  }

  .intro-grid,
  .section-heading,
  .projects-heading {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-kicker {
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-index {
    font-size: 4rem;
  }

  .story-panel {
    grid-template-columns: 1fr;
  }

  .story-photo {
    min-height: 520px;
    background-position: center 40%;
  }

  .story-content {
    max-width: none;
    padding: 75px var(--shell);
  }

  .event-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .event-card,
  .event-card--large {
    min-height: 540px;
  }

  .access-cta__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 34px;
  }

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

  .auth-page {
    display: block;
  }

  .auth-visual {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 390px;
    padding: 28px 24px;
  }

  .auth-quote blockquote {
    font-size: 2.8rem;
  }

  .auth-main {
    min-height: auto;
    padding: 24px;
  }

  .auth-panel {
    padding: 65px 0;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 82px 0;
  }

  .prototype-bar__inner {
    justify-content: center;
  }

  .brand-copy {
    display: none;
  }

  .hero {
    min-height: 820px;
  }

  .hero-grid {
    min-height: 820px;
  }

  .hero #hero-title {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .intro-facts {
    grid-template-columns: 1fr;
  }

  .intro-facts article {
    min-height: 104px;
  }

  .discipline-grid {
    grid-template-columns: 1fr;
  }

  .discipline-card {
    min-height: 350px;
  }

  .story-photo {
    min-height: 450px;
  }

  .story-content {
    padding: 62px 24px;
  }

  .timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 0 18px;
    padding: 0 0 28px;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item time {
    grid-row: 1 / 3;
    margin: 0;
  }

  .timeline-item > span {
    display: none;
  }

  .timeline-item p {
    grid-column: 2;
  }

  .section-heading--compact {
    grid-template-columns: 1fr;
  }

  .event-card,
  .event-card--large {
    min-height: 480px;
  }

  .event-card__content {
    padding: 25px;
  }

  .event-card__content button,
  .event-card__content > a {
    right: 22px;
    bottom: 22px;
  }

  .project-card {
    min-height: 520px;
    padding: 28px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .auth-visual {
    min-height: 320px;
  }

  .auth-quote .eyebrow,
  .auth-quote p,
  .auth-visual__caption {
    display: none;
  }

  .auth-quote blockquote {
    margin-bottom: 0;
    font-size: 2.35rem;
  }

  .auth-main__top > span {
    display: none;
  }

  .auth-panel h1 {
    font-size: 3rem;
  }
}

/* Interior pages */
.main-nav a.is-current::after {
  transform: scaleX(1);
}

.inner-hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #071b20;
  isolation: isolate;
}

.inner-hero::before,
.inner-hero::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: '';
}

.inner-hero::before {
  background-image: var(--inner-hero-image, url('assets/instrucao-resgate.jpeg'));
  background-position: var(--inner-hero-position, center);
  background-size: cover;
  transform: scale(1.01);
}

.inner-hero::after {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 18, 22, 0.97) 0%, rgba(4, 24, 29, 0.76) 50%, rgba(4, 20, 24, 0.28) 100%),
    linear-gradient(0deg, rgba(4, 18, 22, 0.9), transparent 55%);
}

.inner-hero--history {
  --inner-hero-image: url('assets/event-cmaut-lago.jpg');
  --inner-hero-position: center 48%;
}

.inner-hero--areas {
  --inner-hero-image: url('assets/hero-curso-bresc.jpg');
  --inner-hero-position: center 45%;
}

.inner-hero--events {
  --inner-hero-image: url('assets/hero-travessia.jpg');
  --inner-hero-position: center 58%;
}

.inner-hero--projects {
  --inner-hero-image: url('assets/instrucao-resgate.jpeg');
  --inner-hero-position: center 46%;
}

.inner-hero--contact {
  --inner-hero-image: url('assets/evento-aquatico.jpg');
  --inner-hero-position: center 55%;
}

.inner-hero--legal {
  min-height: 480px;
  --inner-hero-image: linear-gradient(135deg, #071b20, #17363d);
}

.inner-hero__content {
  width: min(880px, 100%);
  padding-top: 190px;
  padding-bottom: 82px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inner-hero h1 {
  margin: 18px 0 24px;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.inner-hero h1 em {
  color: #efc95d;
  font-weight: 400;
}

.inner-hero__content > p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.page-intro {
  background: #f4f0e8;
}

.page-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 120px);
}

.page-intro__grid h2,
.content-heading h2,
.legal-content h2 {
  margin: 18px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.7rem, 5vw, 5.2rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

/* A coluna do título pode ser bem mais estreita que a janela. */
.page-intro__grid > .content-heading {
  min-width: 0;
  container-type: inline-size;
}

.page-intro__grid > .content-heading h2 {
  font-size: clamp(2.125rem, 4.1vw, 4.25rem);
  font-size: min(clamp(2.125rem, 12.5cqi, 5.2rem), clamp(2.125rem, 5vw, 5.2rem));
  line-height: 1.05;
}

.page-intro__body > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: rgba(8, 24, 28, 0.12);
  border: 1px solid rgba(8, 24, 28, 0.12);
}

.fact-strip article {
  min-height: 150px;
  padding: 25px;
  background: #fff;
}

.fact-strip strong {
  display: block;
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 2.15rem;
  font-weight: 500;
}

.fact-strip span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.history-detail {
  background: #0b2228;
  color: var(--white);
}

.history-detail .content-heading h2,
.history-detail .content-heading p {
  color: var(--white);
}

.history-detail .content-heading p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.65);
}

.history-list {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 70px;
}

.history-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 113px;
  width: 1px;
  content: '';
  background: rgba(255, 255, 255, 0.17);
}

.history-entry {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 58px;
  padding: 0 0 52px;
}

.history-entry time {
  color: #efc95d;
  font-family: var(--display);
  font-size: 1.8rem;
}

.history-entry div::before {
  position: absolute;
  left: 106px;
  top: 12px;
  width: 15px;
  height: 15px;
  content: '';
  border: 3px solid #0b2228;
  background: var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.history-entry h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.72rem;
  font-weight: 500;
}

.history-entry p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.75;
}

.structure-section,
.area-section,
.event-listing,
.portfolio-section,
.contact-section,
.legal-section {
  background: #f4f0e8;
}

.structure-grid,
.area-list,
.event-list,
.portfolio-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 58px;
}

.structure-card,
.area-card,
.portfolio-item {
  min-height: 245px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(8, 24, 28, 0.12);
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 27, 32, 0.05);
}

.structure-card__code,
.area-card__number,
.portfolio-item__status,
.event-feature__meta {
  color: var(--red-dark);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.structure-card h3,
.area-card h3,
.portfolio-item h2 {
  margin: 17px 0 13px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 500;
  line-height: 1.05;
}

.structure-card p,
.area-card p,
.portfolio-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.area-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 25px;
  align-items: start;
}

.area-card__icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: var(--red-dark);
  border: 1px solid rgba(169, 29, 35, 0.2);
  background: #fbf6ed;
  font-family: var(--display);
  font-size: 1.6rem;
}

.area-card .text-link,
.portfolio-item .button {
  margin-top: 25px;
}

.event-list {
  gap: 28px;
}

.event-feature {
  overflow: hidden;
  border: 1px solid rgba(8, 24, 28, 0.12);
  background: #fff;
  box-shadow: 0 22px 60px rgba(7, 27, 32, 0.08);
}

.event-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.event-feature--portrait img {
  object-position: center 42%;
}

.event-feature__body {
  padding: clamp(26px, 4vw, 42px);
}

.event-feature h2 {
  margin: 12px 0 15px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
}

.event-feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.event-feature__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 25px;
}

.event-feature__tags span {
  padding: 7px 10px;
  color: #6f171d;
  border: 1px solid rgba(128, 21, 27, 0.16);
  background: #fbf6ed;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.portfolio-list {
  grid-template-columns: 1fr;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 120px 1fr minmax(220px, 0.45fr);
  gap: 40px;
  align-items: center;
}

.portfolio-item__code {
  color: rgba(8, 24, 28, 0.17);
  font-family: var(--display);
  font-size: 5.5rem;
  line-height: 1;
}

.portfolio-item__note {
  padding-left: 34px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.governance-note,
.source-note {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  margin-top: 70px;
  padding: clamp(32px, 5vw, 60px);
  color: var(--white);
  background: #0a2227;
}

.governance-note h2,
.source-note h2 {
  margin: 15px 0 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.governance-note p,
.source-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  line-height: 1.75;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-top: 58px;
}

.contact-card,
.contact-guidance {
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(8, 24, 28, 0.12);
  background: #fff;
}

.contact-card dl {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
}

.contact-card dl div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.contact-card dt {
  color: var(--red-dark);
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 1.02rem;
}

.contact-card a {
  text-decoration: underline;
  text-decoration-color: rgba(169, 29, 35, 0.35);
  text-underline-offset: 4px;
}

.contact-guidance {
  color: var(--white);
  background: #0a2227;
}

.contact-guidance h2 {
  margin: 18px 0;
  font-family: var(--display);
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
}

.contact-guidance p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.75;
}

.contact-guidance .button {
  margin-top: 20px;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content > p,
.legal-content li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-content h2 {
  margin-top: 62px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.legal-content h3 {
  margin: 36px 0 10px;
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 500;
}

.legal-notice {
  margin-bottom: 42px;
  padding: 24px 26px;
  border-left: 4px solid var(--gold);
  background: #fff;
}

.legal-notice strong {
  display: block;
  margin-bottom: 6px;
}

@media (max-width: 1000px) {
  .page-intro__grid,
  .contact-grid,
  .governance-note,
  .source-note {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .portfolio-item {
    grid-template-columns: 90px 1fr;
  }

  .portfolio-item__note {
    grid-column: 2;
    padding: 22px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .inner-hero {
    min-height: 610px;
  }

  .inner-hero__content {
    padding-top: 180px;
    padding-bottom: 60px;
  }

  .fact-strip,
  .structure-grid,
  .area-list,
  .event-list {
    grid-template-columns: 1fr;
  }

  .area-card {
    grid-template-columns: 58px 1fr;
    gap: 18px;
  }

  .area-card__icon {
    width: 54px;
    height: 54px;
  }

  .portfolio-item {
    grid-template-columns: 1fr;
  }

  .portfolio-item__code {
    font-size: 4rem;
  }

  .portfolio-item__note {
    grid-column: 1;
  }
}

@media (max-width: 520px) {
  .history-list::before {
    left: 12px;
  }

  .history-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 38px;
  }

  .history-entry div::before {
    left: 5px;
    top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Cursos e especialidades */

.main-nav a.is-current {
  color: #f0d17f;
}

.courses-page {
  background: #f4f0e8;
}

.courses-page .site-header.is-scrolled .main-nav a.is-current {
  color: var(--red);
}

.courses-hero {
  position: relative;
  min-height: min(860px, 100svh);
  overflow: hidden;
  color: var(--white);
  background: #07171b;
  isolation: isolate;
}

.courses-hero__media,
.courses-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.courses-hero__media {
  overflow: hidden;
  background: #07171b;
}

.courses-hero__media::before,
.courses-hero__media::after {
  position: absolute;
  content: '';
  background-image: url('assets/hero-curso-cobs.jpg');
  background-repeat: no-repeat;
}

.courses-hero__media::before {
  inset: -7%;
  background-position: center;
  background-size: cover;
  filter: blur(30px) saturate(0.75) brightness(0.68);
  opacity: 0.72;
  transform: scale(1.08);
}

.courses-hero__media::after {
  inset: 0;
  background-position: 76% center;
  background-size: contain;
}

.courses-hero__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 17, 21, 0.98) 0%, rgba(4, 21, 26, 0.9) 39%, rgba(4, 18, 23, 0.35) 74%, rgba(3, 14, 18, 0.26) 100%),
    linear-gradient(0deg, rgba(4, 16, 20, 0.78), transparent 54%);
}

.courses-hero__grid {
  min-height: min(860px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center;
  gap: 74px;
  padding-top: 148px;
  padding-bottom: 82px;
}

.courses-hero__copy {
  max-width: 880px;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb:hover {
  color: var(--white);
}

.courses-hero h1 {
  max-width: 920px;
  margin: 22px 0 26px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.4vw, 7rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.courses-hero h1 em {
  color: #efc95d;
  font-weight: 400;
}

.courses-hero__copy > p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.79);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.72;
}

.courses-hero__aside {
  align-self: end;
  margin-bottom: 32px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(4, 20, 24, 0.74);
  backdrop-filter: blur(14px);
}

.courses-hero__aside strong {
  display: block;
  color: #efc95d;
  font-family: var(--display);
  font-size: 5.4rem;
  font-weight: 500;
  line-height: 0.8;
}

.courses-hero__aside span {
  display: block;
  margin-top: 18px;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.courses-hero__aside small {
  display: block;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.71rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.courses-overview {
  background: #f4f0e8;
}

.course-index {
  position: sticky;
  top: 105px;
  z-index: 7;
  display: flex;
  gap: 8px;
  margin: 60px 0 50px;
  padding: 12px;
  border: 1px solid rgba(8, 36, 42, 0.12);
  background: rgba(244, 240, 232, 0.91);
  box-shadow: 0 18px 50px rgba(6, 27, 32, 0.09);
  backdrop-filter: blur(14px);
}

.course-index a {
  flex: 1;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid transparent;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.course-index a:hover,
.course-index a:focus-visible {
  color: var(--red-dark);
  border-color: rgba(128, 21, 27, 0.22);
  background: var(--white);
}

.course-catalog {
  display: grid;
  gap: 54px;
}

.course-profile {
  scroll-margin-top: 190px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: 610px;
  overflow: hidden;
  border: 1px solid rgba(7, 32, 38, 0.12);
  background: var(--white);
  box-shadow: 0 26px 70px rgba(6, 28, 33, 0.09);
}

.course-profile--reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.course-profile--reverse .course-profile__media {
  grid-column: 2;
}

.course-profile--reverse .course-profile__content {
  grid-column: 1;
  grid-row: 1;
}

.course-profile__media {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #0a2429;
}

.course-profile__media::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(0deg, rgba(3, 16, 20, 0.48), transparent 44%);
}

.course-profile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s ease;
}

.course-profile:hover .course-profile__media img {
  transform: scale(1.025);
}

.course-profile__media > span {
  position: absolute;
  right: 26px;
  bottom: 17px;
  z-index: 1;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--display);
  font-size: 4.6rem;
  font-weight: 500;
}

.course-profile__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 88px);
}

.course-breve {
  width: min(100%, 310px);
  aspect-ratio: 3.15 / 1;
  margin-bottom: 32px;
  border: 1px solid rgba(7, 32, 38, 0.11);
  object-fit: cover;
  object-position: center;
}

.course-label {
  color: var(--red-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-profile__content h2 {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(4rem, 6.5vw, 7rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.course-profile__content h2 abbr {
  text-decoration: none;
}

.course-profile__content h3 {
  max-width: 620px;
  margin: 25px 0 20px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
  font-weight: 500;
  line-height: 1.08;
}

.course-profile__content p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.course-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.course-pillars li {
  padding: 9px 13px;
  color: #6f171d;
  border: 1px solid rgba(128, 21, 27, 0.17);
  background: #fbf6ed;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.briefs-section {
  padding: 120px 0;
  color: var(--white);
  background: #071b20;
}

.briefs-section .section-heading {
  margin-bottom: 58px;
}

.briefs-section .section-heading h2 {
  color: var(--white);
}

.briefs-section .section-heading p {
  color: rgba(255, 255, 255, 0.6);
}

.briefs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.briefs-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.briefs-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3.05 / 1;
  object-fit: cover;
}

.briefs-grid figcaption {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.courses-note {
  background: #e8dfd0;
}

.courses-note__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

.courses-note h2 {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.7rem, 4.8vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.courses-note__inner > div:last-child p {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

@media (max-width: 1100px) {
  .courses-hero__grid {
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 36px;
  }

  .course-profile,
  .course-profile--reverse {
    grid-template-columns: 1fr 1fr;
  }

  .course-profile__content {
    padding: 45px;
  }

  .briefs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .courses-hero,
  .courses-hero__grid {
    min-height: 860px;
  }

  .courses-hero__media::after {
    background-position: center 38%;
    background-size: cover;
  }

  .courses-hero__grid {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: 170px;
  }

  .courses-hero__aside {
    display: none;
  }

  .course-index {
    top: 100px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .course-index a {
    flex: 0 0 auto;
    min-width: 92px;
  }

  .course-profile,
  .course-profile--reverse {
    grid-template-columns: 1fr;
  }

  .course-profile--reverse .course-profile__media,
  .course-profile--reverse .course-profile__content {
    grid-column: 1;
    grid-row: auto;
  }

  .course-profile__media {
    min-height: 520px;
  }

  .course-profile__content {
    padding: 54px 40px 62px;
  }

  .briefs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .courses-note__inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 620px) {
  .courses-hero,
  .courses-hero__grid {
    min-height: 820px;
  }

  .courses-hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.7rem);
  }

  .course-index {
    top: 96px;
    margin-top: 44px;
  }

  .course-catalog {
    gap: 30px;
  }

  .course-profile__media {
    min-height: 420px;
  }

  .course-profile__content {
    padding: 42px 24px 48px;
  }

  .course-breve {
    width: 240px;
  }

  .briefs-section {
    padding: 86px 0;
  }

  .briefs-grid {
    grid-template-columns: 1fr;
  }
}

/* Editor administrativo do conteúdo institucional */
.editor-title h1 {
  max-width: 760px;
}

.editor-modules {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding: 8px;
  overflow-x: auto;
  background: #071b20;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-modules button {
  min-height: 48px;
  flex: 0 0 auto;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.editor-modules button:hover,
.editor-modules button.is-active {
  color: #071b20;
  background: #efc95d;
}

.editor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  margin-top: 22px;
}

.editor-summary article {
  min-height: 118px;
  display: grid;
  align-content: center;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.editor-summary article span,
.editor-summary article small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editor-summary article strong {
  margin: 3px 0;
  color: var(--red-dark);
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 500;
}

.editor-summary > .button {
  min-width: 180px;
  align-self: stretch;
}

.editor-summary-actions {
  min-width: 210px;
  display: grid;
  gap: 8px;
}

.editor-summary-actions .button {
  min-height: 52px;
}

.editor-import-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 12px;
  padding: 16px 20px;
  color: #fff;
  background: #173b43;
  border-left: 4px solid #efc95d;
}

.editor-import-progress[hidden] {
  display: none;
}

.editor-import-progress strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
}

.editor-import-progress span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.editor-layout {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.editor-catalog,
.editor-form-card {
  padding: clamp(28px, 4vw, 48px);
}

.editor-catalog .admin-card__heading > div {
  flex: 1 1 230px;
  min-width: 210px;
}

.editor-catalog .admin-card__heading .eyebrow {
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1.35;
}

.editor-catalog .admin-card__heading h2 {
  margin-top: 16px;
}

.editor-catalog .editor-search {
  flex: 0 1 330px;
  min-width: 220px;
}

.editor-search input {
  width: min(330px, 70vw);
  height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: #faf8f3;
  border: 1px solid rgba(8, 24, 28, 0.18);
}

.editor-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.editor-filter-row button {
  padding: 8px 12px;
  color: var(--muted);
  background: #f4efe5;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.editor-filter-row button.is-active {
  color: var(--white);
  background: var(--red-dark);
}

.editor-record-list {
  display: grid;
  gap: 10px;
}

.editor-record {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: #faf8f3;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.editor-record:hover {
  transform: translateY(-2px);
  border-color: rgba(128, 21, 27, 0.35);
  box-shadow: 0 12px 30px rgba(7, 27, 32, 0.08);
}

.editor-record__image {
  width: 112px;
  height: 96px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  background: #173b43;
  font-family: var(--display);
  font-size: 1.4rem;
}

.editor-record__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editor-record__body {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 13px 0;
}

.editor-record__body strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
}

.editor-record__body small {
  color: var(--muted);
  line-height: 1.45;
}

.editor-record__arrow {
  padding-right: 22px;
  color: var(--red-dark);
  font-size: 1.35rem;
}

.status-chip--editor-draft {
  color: #6d5930 !important;
  background: #f3ead5;
}

.status-chip--editor-review {
  color: #2b5870 !important;
  background: #e0eef5;
}

.status-chip--editor-published {
  color: #256335 !important;
  background: #e5f4e8;
}

.status-chip--editor-archived {
  color: #696969 !important;
  background: #e9e9e9;
}

.editor-form-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.editor-form-heading h2 {
  margin: 20px 0 0;
  line-height: 1.05;
}

.editor-form-heading .eyebrow {
  line-height: 1.4;
}

.editor-form-heading .eyebrow > span:not(:empty),
.editor-catalog .eyebrow > span:not(:empty) {
  width: auto;
  height: auto;
  background: none;
}

.editor-form-heading .eyebrow > span:empty,
.editor-catalog .eyebrow > span:empty {
  flex: 0 0 34px;
}

.editor-form-heading > div {
  min-width: 0;
  overflow-x: auto;
}

.editor-form-heading .editor-close {
  flex-shrink: 0;
}

.editor-close {
  width: 42px;
  height: 42px;
  color: var(--muted);
  background: #f4efe5;
  border: 0;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
}

.editor-form {
  gap: 16px;
}

.editor-form label {
  display: grid;
  gap: 7px;
  font-size: 0.88rem;
}

.editor-generic-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editor-generic-fields label:has(textarea),
.editor-generic-fields .editor-check {
  grid-column: 1 / -1;
}

.editor-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #faf8f3;
  border: 1px solid rgba(8, 24, 28, 0.18);
  border-radius: var(--radius);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.editor-form label small {
  color: var(--muted);
  font-weight: 500;
}

.editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor-field-grid--wide {
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
}

.editor-field-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.editor-series-panel {
  padding: 14px 16px;
  background: #f4efe5;
  border-left: 3px solid #c89b37;
}

.editor-series-panel summary {
  font-size: 0.75rem;
  font-weight: 850;
  cursor: pointer;
}

.editor-series-panel > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 13px;
}

.editor-series-panel button {
  min-height: 50px;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  font-weight: 850;
  cursor: pointer;
}

.editor-media-fieldset {
  margin: 8px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
}

.editor-media-fieldset legend {
  padding: 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
}

.editor-media-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
}

.editor-preview {
  min-height: 270px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #ece6db;
  border: 1px dashed rgba(8, 24, 28, 0.25);
  font-size: 0.78rem;
  text-align: center;
}

.editor-preview img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: contain;
  background: #071b20;
}

.editor-media-fields {
  display: grid;
  gap: 10px;
}

.editor-check {
  grid-template-columns: auto 1fr !important;
  align-items: center;
  gap: 10px !important;
  margin-top: 6px !important;
  color: var(--muted);
  line-height: 1.45;
}

.editor-check input {
  width: 18px !important;
  height: 18px !important;
}

.editor-check--boxed {
  min-height: 50px;
  align-self: end;
  padding: 0 14px;
  background: #f4efe5;
  border: 1px solid var(--line);
}

.editor-publication-fields {
  align-items: end;
}

.editor-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.editor-form-actions .button {
  margin-top: 0;
}

.editor-archive {
  margin-left: auto;
  padding: 12px 0;
  color: #8d2525;
  background: transparent;
  border: 0;
  font-weight: 850;
  cursor: pointer;
}

.event-list--managed {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(8, 24, 28, 0.14);
}

.event-detail__nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.event-detail__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}
.event-detail .event-detail__gallery figure { margin: 0; }
.event-detail .event-detail__gallery img { aspect-ratio: 4 / 3; object-fit: contain; background: #e9eeed; }
.event-feature__managed-image > .event-feature__fallback {
  object-fit: contain;
  padding: 2rem;
  background: #e9eeed;
}

.event-feature__managed-image {
  position: relative;
  min-width: 0;
}

.event-feature__managed-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-feature__credit {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.62);
  font-size: 0.6rem;
}

.editor-summary--media {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
}

.media-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.media-library-grid > .dashboard-empty,
.media-library-grid > .dashboard-loading {
  grid-column: 1 / -1;
}

.media-library-card {
  min-width: 0;
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  background: #faf8f3;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.media-library-card:hover {
  transform: translateY(-3px);
  border-color: rgba(128, 21, 27, 0.35);
  box-shadow: 0 14px 34px rgba(7, 27, 32, 0.1);
}

.media-library-card__visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  background: #071b20;
  font-family: var(--display);
  font-size: 1.3rem;
}

.media-library-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-library-card__body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.media-library-card__body strong {
  max-width: 100%;
  overflow-x: auto;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
}

.media-library-card__body small {
  min-height: 2.8em;
  color: var(--muted);
  line-height: 1.4;
}

.media-library-card__body > span:last-child {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.media-library-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.media-usage-chip {
  padding: 5px 8px;
  color: #285765;
  background: #e3f0f3;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
}

.media-library-preview {
  min-height: 360px;
}

.media-library-preview img {
  min-height: 360px;
  max-height: 600px;
}

.media-file-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.media-file-facts span {
  padding: 6px 9px;
  color: var(--muted);
  background: #f4efe5;
  border: 1px solid var(--line);
  font-size: 0.7rem;
  font-weight: 750;
}

.media-usage-panel {
  margin-top: 22px;
  padding: 20px;
  background: #f4efe5;
  border-left: 4px solid #c89b37;
}

.media-usage-panel > strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
}

.media-usage-panel ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.media-usage-empty {
  color: var(--muted);
  font-size: 0.88rem;
}

.media-storage-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.home-editor {
  margin-top: 20px;
}

.institutional-editor {
  margin-top: 20px;
}

.institutional-editor__form[hidden] {
  display: none;
}

.institutional-editor__choice {
  display: grid;
  gap: 6px;
  max-width: 380px;
  font-weight: 700;
}

.institutional-editor__choice select {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #faf8f3;
  font: inherit;
}

.institutional-editor__status {
  color: var(--muted);
}

.institutional-editor__blocks,
.institutional-editor__fields {
  display: grid;
  gap: 12px;
}

.institutional-editor__block {
  border: 1px solid var(--line);
}

.institutional-editor__block summary {
  padding: 16px;
  cursor: pointer;
  font-weight: 800;
  background: #f4efe5;
}

.institutional-editor__fields {
  padding: 16px;
}

.home-editor [data-home-form][hidden],
.home-highlights[hidden] {
  display: none;
}

.home-editor-fields {
  display: grid;
  gap: 14px;
}

.home-editor-fields p {
  margin: 0;
  color: var(--muted);
}

.home-slide-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-inline-start: 24px;
}

.home-slide-list li {
  min-height: 64px;
  padding: 8px;
  background: #f4efe5;
  overflow-x: auto;
}

.home-slide-list li img {
  width: 74px;
  height: 52px;
  margin-inline-end: 12px;
  object-fit: contain;
  vertical-align: middle;
  background: var(--ink);
}

.home-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.home-slide-actions button {
  min-height: 40px;
  padding: 5px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.home-slide-actions button:disabled {
  opacity: 0.5;
}

.home-editor-preview__hero {
  isolation: isolate;
  position: relative;
  min-height: 260px;
  padding: clamp(16px, 4vw, 50px);
  overflow: auto;
  color: #fff;
  background: #07171b;
}

.home-editor-preview__hero img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.44;
}

.home-editor-preview__hero strong,
.home-editor-preview__hero em {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  line-height: 1.08;
}

.home-editor-preview__hero em {
  color: #efc95d;
}

.home-highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 18px;
}

.home-highlight {
  min-width: 0;
  padding: clamp(20px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red-dark);
}

.home-highlight > span {
  color: var(--red-dark);
  font-weight: 800;
}

.home-highlight h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin: 10px 0;
}

@media (max-width: 1000px) {
  .editor-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .editor-summary--media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-summary > .button {
    grid-column: 1 / -1;
    min-height: 58px;
  }

  .editor-summary-actions {
    grid-column: 1 / -1;
  }

  .editor-field-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .editor-summary,
  .editor-summary--media,
  .editor-field-grid,
  .editor-field-grid--wide,
  .editor-field-grid--four,
  .editor-series-panel > div {
    grid-template-columns: 1fr;
  }

  .media-library-grid {
    grid-template-columns: 1fr;
  }

  .editor-summary > .button {
    grid-column: auto;
  }

  .editor-catalog .admin-card__heading > div,
  .editor-catalog .editor-search {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
  }

  .editor-generic-fields {
    grid-template-columns: 1fr;
  }

  .editor-record {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .editor-record__image {
    width: 82px;
    height: 100%;
    min-height: 116px;
  }

  .editor-record__arrow {
    display: none;
  }

  .editor-search input {
    width: 100%;
  }

  .editor-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-archive {
    margin-left: 0;
  }
}

/* Conteúdos institucionais publicados pelo editor */
.history-list--managed {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.history-entry__image {
  display: block;
  width: min(760px, 100%);
  height: auto;
  max-height: none;
  margin-bottom: 20px;
  object-fit: contain;
}

.history-entry--managed small {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
  line-height: 1.5;
}

.commanders-section {
  background: #e8dfd0;
}

.commanders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.commander-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(8, 24, 28, 0.12);
}

.commander-card > img,
.commander-card__placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.commander-card__placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  background: #173b43;
  font-family: var(--display);
  font-size: 3rem;
}

.commander-card > div:last-child {
  padding: 26px;
}

.commander-card span {
  color: var(--red-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.commander-card h3 {
  margin: 12px 0 5px;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
}

.commander-card strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.commander-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.course-catalog--managed,
.portfolio-list--managed {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(8, 24, 28, 0.15);
}

.course-profile__placeholder {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.62);
  background: #173b43;
  font-family: var(--display);
  font-size: 4rem;
}

@media (max-width: 900px) {
  .commanders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .commanders-grid {
    grid-template-columns: 1fr;
  }

  .area-list,
  .courses-note__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .area-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .hero #hero-title,
  .inner-hero h1,
  .courses-hero h1 {
    font-size: clamp(2rem, 9.25vw, 3.6rem);
    line-height: 1.02;
  }

  .intro-content h2,
  .section-heading h2,
  .projects-heading h2,
  .story-content h2,
  .access-cta h2,
  .content-heading h2,
  .auth-panel h1,
  .auth-quote blockquote,
  .dashboard-welcome h1,
  .dashboard-setup h1,
  .admin-title h1,
  .admin-card h2,
  .courses-note__inner h2,
  .military-hero h1,
  .military-profile__top h2,
  .military-form-heading h2,
  .import-hero h1 {
    font-size: clamp(1.625rem, 8vw, 2.75rem);
    line-height: 1.08;
  }
}

@media (max-width: 380px) {
  .area-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Notícias do GBS: capa, faixa recente e arquivo paginado. */
.news-front .site-header,
.news-archive .site-header {
  position: sticky;
  top: 0;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.news-front .main-nav .button--ghost,
.news-archive .main-nav .button--ghost {
  border-color: currentColor;
}

.news-front__section {
  padding: clamp(32px, 5vw, 66px) 0 clamp(48px, 7vw, 88px);
  background: #fffdf8;
}

.news-front__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.news-front__heading h1,
.news-article h1 {
  margin: 10px 0 8px;
  font: 500 clamp(2rem, 6.6vw, 4.8rem)/1.04 var(--display);
  letter-spacing: -0.035em;
}

.news-front__heading p,
.news-card__copy p {
  margin: 0;
  color: var(--muted);
}

.news-reel {
  margin-bottom: 34px;
  min-width: 0;
}

.news-reel__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.news-reel__heading h2,
.news-section-title {
  margin: 0 0 12px;
  font: 500 clamp(1.35rem, 2.6vw, 2.25rem)/1.15 var(--display);
}

.news-reel__controls,
.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.news-reel__controls button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.news-reel__controls button:disabled,
.news-pagination button:disabled {
  opacity: 0.55;
  cursor: default;
}

.news-reel__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(250px, 86%);
  gap: 12px;
  margin: 0;
  padding: 6px 4px 12px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: 4px;
}

.news-reel__list > li {
  min-width: 0;
  scroll-snap-align: start;
}

.news-reel__item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 100%;
  align-items: start;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
}

.news-reel__item:hover,
.news-card__title:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.news-reel__copy {
  font-size: 0.93rem;
  line-height: 1.3;
}

.news-date {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.news-reel__cover,
.news-card__cover {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #102b33;
}

.news-reel__cover {
  aspect-ratio: 1;
}

.news-card__cover {
  aspect-ratio: 16 / 9;
}

.news-reel__cover img,
.news-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-cover--default img {
  width: 52%;
  height: 62%;
  object-fit: contain;
  opacity: 0.75;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
}

.news-card {
  min-width: 0;
  border: 1px solid var(--line);
  background: white;
}

.news-card__copy {
  padding: clamp(14px, 3vw, 26px);
}

.news-card__copy h2,
.news-card__copy h3 {
  margin: 4px 0 10px;
  font: 600 clamp(1.28rem, 2.55vw, 2.1rem)/1.13 var(--display);
}

.news-empty {
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-dark);
  background: var(--paper);
  color: var(--ink);
}

.news-front .hero,
.news-front .hero-grid {
  min-height: min(610px, 85vh);
}

.news-front .hero-grid {
  padding-top: clamp(48px, 7vw, 100px);
}

.news-archive__main {
  min-height: 60vh;
  padding-top: clamp(24px, 5vw, 65px);
  padding-bottom: clamp(36px, 7vw, 90px);
}

.news-archive__main > .text-link {
  margin-bottom: 18px;
}

.news-pagination {
  margin-top: 24px;
}

.news-article {
  max-width: 850px;
  margin-inline: auto;
}

.news-article__summary {
  color: var(--muted);
  font-size: 1.16rem;
}

.news-article figure {
  margin: 26px 0;
}

.news-article figure img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
  background: var(--paper-2);
}

.news-article figcaption {
  color: var(--muted);
  margin-top: 6px;
}

.news-article__body p {
  white-space: pre-line;
  line-height: 1.75;
}

.news-editor-entry {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  min-width: 0;
  text-align: start;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}

.news-editor-entry span {
  color: var(--muted);
}

.news-editor-cover {
  max-height: 220px;
  object-fit: contain;
}

@media (min-width: 861px) and (max-width: 1080px) {
  .news-front .main-nav,
  .news-archive .main-nav {
    gap: 12px;
  }
}

@media (max-width: 860px) {
  .news-front .main-nav,
  .news-archive .main-nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
  }
}

@media (max-width: 620px) {
  .news-front__heading {
    align-items: start;
    flex-direction: column;
  }

  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-front .hero-grid {
    padding-top: 54px;
    padding-bottom: 54px;
  }
}
