/* Faixa institucional (IFTO) e cabeçalho do portal */
.topbar { background: var(--navy); color: #fff; font-size: .8125rem; }
.topbar__inner { display: flex; align-items: center; gap: 8px 20px; min-height: 52px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__ifto { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); }
.topbar__logo { display: block; max-height: 38px; width: auto; }
.topbar__logo--upload { background: #fff; border-radius: 6px; padding: 3px 8px; }
.topbar__name { display: flex; flex-direction: column; line-height: 1.1; }
.topbar__name strong { font-size: .8125rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.topbar__name span { font-size: .6875rem; font-weight: 400; opacity: .85; }
.topbar__sep { width: 1px; height: 26px; background: rgba(255, 255, 255, .35); }
.topbar__campus { display: inline-flex; align-items: center; gap: 10px; }
.topbar__campus .dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.topbar__slogan { margin-left: auto; padding-left: 14px; border-left: 2px solid var(--lime); }

.mainbar { background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(6, 61, 42, .05); }
.mainbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-height: var(--tap); }
.brand__mark { width: 40px; height: 54px; flex: none; }
.brand__logo { display: block; max-height: 56px; width: auto; }
.brand__abbr { font: 700 3rem/1 var(--font-display); color: var(--navy); letter-spacing: -.01em; }
.brand__sep { width: 1px; height: 46px; background: var(--border); flex: none; }
.brand__full { font: 500 1.0625rem/1.25 var(--font-display); color: var(--ink); max-width: 15ch; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: 4px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; border-bottom: 3px solid transparent; }
.main-nav a:hover { color: var(--green-700); border-bottom-color: var(--mint); }
.main-nav a[aria-current="page"] { color: var(--green-700); font-weight: 600; border-bottom-color: var(--green-500); }
.topbar :focus-visible, .site-footer :focus-visible, .banner :focus-visible, .hero :focus-visible, .panel-dark :focus-visible { outline-color: var(--lime); }
@media (max-width: 720px) {
  .topbar__slogan, .topbar__sep { display: none; }
  .topbar__inner { min-height: 44px; }
  .brand__abbr { font-size: 2.25rem; }
  .brand__mark { width: 30px; height: 42px; }
  .brand__full { font-size: .9375rem; }
  .mainbar__inner { flex-direction: column; align-items: stretch; }
  .main-nav ul { justify-content: space-between; gap: 0; border-top: 1px solid var(--border); padding-top: 4px; }
}

/* Rodapé */
.site-footer { background: var(--navy); color: #E3F4E8; font-size: .875rem; }
.site-footer__inner { display: grid; gap: 20px 0; padding-block: 28px; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1.1fr 1.2fr 1.2fr; align-items: center; } .site-footer__col + .site-footer__col { border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 32px; margin-left: 32px; } }
.site-footer p { margin: 0 0 .35rem; }
.site-footer a { color: var(--mint); }
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__brand .brand__mark { width: 34px; height: 46px; }
.site-footer__brand strong { font: 700 1.9rem/1 var(--font-display); color: #fff; }
.site-footer__brand span { font-size: .8125rem; line-height: 1.3; max-width: 16ch; border-left: 1px solid rgba(255, 255, 255, .3); padding-left: 12px; }
.site-footer__name { color: #fff; font-weight: 600; }
.site-footer__logos { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 8px; }
.site-footer__logos img { max-height: 40px; width: auto; background: #fff; padding: 4px 8px; border-radius: 6px; }
.site-footer__strip { height: 8px; background: var(--lime); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; padding-block: 56px 64px; background: linear-gradient(90deg, #043A29F2 0%, #043A29B3 42%, #043A2900 72%), url("../img/hero-bg.webp") right center / cover no-repeat #043A29; }
@media (max-width: 720px) { .hero { background: linear-gradient(90deg, #043A29F2 0%, #043A29CC 100%), url("../img/hero-bg.webp") right center / cover no-repeat #043A29; } }
.hero__inner { position: relative; z-index: 1; max-width: 600px; }
.hero h1 { color: #fff; font-size: clamp(2.125rem, 4.2vw + 1rem, 3.25rem); line-height: 1.12; margin-bottom: 20px; font-weight: 700; }
.hero h1 .accent { color: var(--lime); }
.hero__text { font-size: 1.0625rem; line-height: 1.65; color: #E3F4E8; margin: 0 0 22px; }
.hero__bar { display: block; width: 80px; height: 3px; background: var(--lime); border-radius: 3px; }
@media (max-width: 800px) { .hero { padding-block: 40px 44px; } .hero::after { width: 100%; right: -30%; opacity: .32; } }

/* Títulos de seção, cartões de módulos e projetos */
.section-title { border-left: 4px solid var(--lime); padding-left: 14px; margin-bottom: 22px; color: var(--ink); }
.card-list { list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.card h3 { margin-top: 10px; color: var(--navy); }
.card p { flex: 1; }
.module-card__head { display: flex; align-items: center; gap: 16px; }
.module-icon { width: 52px; height: 52px; flex: none; stroke: var(--green-700); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.module-card--off { background: #FAFBFA; }
.module-card--off .module-icon { stroke: var(--muted-2); }
.module-card .btn { margin-top: 6px; }
.project-card .module-icon { width: 46px; height: 46px; }

/* Faixa "Como usar sem internet" */
.banner { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 28px 32px; border-radius: var(--radius-lg); color: #E3F4E8; background: linear-gradient(100deg, #064A33 0%, #0A6B47 100%); }
.banner::after { content: ""; position: absolute; right: -40px; bottom: -50px; width: 260px; height: 220px; background: url('../img/leaf.svg') center / contain no-repeat; opacity: .55; pointer-events: none; }
.banner__icon { width: 64px; height: 64px; flex: none; stroke: var(--mint); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.banner__body { position: relative; z-index: 1; flex: 1 1 320px; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .3); }
.banner .eyebrow { color: var(--mint); margin-bottom: 4px; }
.banner h2 { color: #fff; margin-bottom: 8px; }
.banner p { margin: 0; max-width: 60ch; }
@media (max-width: 640px) { .banner { padding: 22px 20px; } .banner__body { padding-left: 0; border-left: 0; } }

.panel-dark { background: var(--navy); color: #E3F4E8; border-radius: var(--radius-lg); padding: 28px; }
.panel-dark h2 { color: #fff; }
.panel-dark p:last-child { margin-bottom: 0; max-width: 62ch; }
.panel-dark .eyebrow--lime { color: var(--mint); }

/* Selos de estado: sempre ícone + texto */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.badge--ok { background: var(--ok-bg); color: var(--ok-text); }
.badge--warn { background: var(--warn-bg); color: var(--warn-text); }
.badge--info { background: var(--info-bg); color: var(--ink); }
.badge--wait { background: var(--wait-bg); color: var(--wait-text); }

/* Botões (altura mínima 44 px) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; border-radius: 10px; border: 2px solid transparent; font: 500 1rem var(--font-body); text-decoration: none; cursor: pointer; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-900); }
.btn--action { background: var(--lime); color: #063D2A; }
.btn--action:hover { filter: brightness(.95); }
.btn--secondary { background: var(--surface); color: var(--navy); border-color: var(--navy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* Alertas */
.alert { display: flex; gap: 10px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--border); background: var(--info-bg); color: var(--ink); }
.alert--ok { background: var(--ok-bg); color: var(--ok-text); }
.alert--warn { background: var(--warn-bg); color: var(--warn-text); }

/* Formulários */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { min-height: var(--tap); padding: 10px 12px; border: 2px solid var(--border); border-radius: 10px; font: inherit; color: var(--ink); background: var(--surface); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-text); }
.field__help { font-size: .875rem; color: var(--muted); }
.field__error { font-size: .875rem; color: var(--warn-text); font-weight: 600; }
.field[data-invalid] input, .field[data-invalid] select, .field[data-invalid] textarea { border-color: var(--warn-text); }

/* Chips, tabela responsiva, barra de progresso, passos, vazio, paginação, toast, diálogo */
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .875rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-text); }
.progress { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--teal); }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 10px; min-height: var(--tap); }
.empty { text-align: center; padding: 40px 16px; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 16px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.toast { position: fixed; right: 16px; bottom: 16px; max-width: min(92vw, 420px); background: var(--navy-900); color: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(18, 33, 63, .3); }
dialog { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; max-width: min(92vw, 520px); color: var(--ink-2); }
dialog::backdrop { background: rgba(18, 33, 63, .55); }

/* Ajustes: campos em largura total */
.field input, .field select, .field textarea { width: 100%; }
.field input[type="file"] { padding: 8px; }
.card form { align-self: stretch; }

/* Subcabeçalho do módulo */
.subnav { background: var(--surface); border-bottom: 1px solid var(--border); }
.subnav__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; min-height: 52px; }
.subnav__title { font: 700 1rem var(--font-display); color: var(--teal-text); }
.subnav ul { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; margin: 0; padding: 0; }
.subnav a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; }
.subnav a:hover { border-bottom-color: var(--teal); }
.subnav a[aria-current="page"] { border-bottom-color: var(--lime); }

