/* Triálogo — topo e rodapé compartilhados (Editora, Eventos, Materiais didáticos) */
.tx-header, .tx-footer {
  --tx-navy: #010039; --tx-navy-deep: #00002A; --tx-line: #1C1C55; --tx-orange: #FF6700; --tx-orange-hover: #FF8533;
  --tx-orange-light: #FFB27A; --tx-orange-text: #B84A00; --tx-soft: #FFF2E8; --tx-ink: #1A1A2E; --tx-muted: #4A4A5E; --tx-on-navy: #C8C8DC;
  --tx-head: "Urbanist", "DM Sans", sans-serif; --tx-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-family: var(--tx-body); box-sizing: border-box; -webkit-font-smoothing: antialiased;
}
.tx-header *, .tx-footer * { box-sizing: border-box; }
.tx-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.tx-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 6px; font: 700 15px/1 var(--tx-body); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.tx-btn-orange { background: var(--tx-orange); color: var(--tx-navy) !important; }
.tx-btn-orange:hover { background: var(--tx-orange-hover); }
.tx-btn-navy { background: var(--tx-navy); color: #fff !important; min-height: 40px; font-size: 14px; padding: 0 16px; }
.tx-btn-navy:hover { background: var(--tx-line); }

/* topo */
.tx-header { position: relative; z-index: 60; background: var(--tx-navy); color: #fff; }
.tx-bar { min-height: 84px; display: flex; align-items: center; gap: 24px; }
.tx-logo { display: flex; flex: none; }
.tx-logo img { height: 38px; width: auto; display: block; }
.tx-nav { flex: 1; display: flex; justify-content: center; }
.tx-nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.tx-has { position: static; }
.tx-header .tx-top { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: #fff; font: 500 16px/1 var(--tx-body); text-decoration: none; cursor: pointer; }
.tx-header .tx-top:hover, .tx-header .tx-top[aria-expanded="true"] { background: rgba(255,255,255,.10); color: #fff; }
.tx-header .tx-top.is-on { color: var(--tx-orange-light); font-weight: 700; box-shadow: inset 0 -2px 0 var(--tx-orange); }
.tx-caret { display: inline-flex; transition: transform .15s; } .tx-caret svg { width: 14px; height: 14px; }
.tx-top[aria-expanded="true"] .tx-caret { transform: rotate(180deg); }
.tx-panel { position: absolute; left: 0; right: 0; top: 100%; display: flex; justify-content: center; padding: 0 32px; }
.tx-panel[hidden] { display: none; }
.tx-panel { animation: tx-fade .16s ease-out; }
.tx-panel-in { animation: tx-in .16s ease-out; }
/* escurece a página atrás do submenu (sem cobrir o topo) */
.tx-panel::before { content: ""; position: fixed; left: 0; right: 0; top: 0; bottom: 0; background: rgba(0,0,26,.55); pointer-events: none; z-index: -1; clip-path: inset(var(--tx-top, 84px) 0 0 0); }
.tx-panel-in { position: relative; width: min(780px, 100%); background: #fff; color: var(--tx-ink); border-top: 3px solid var(--tx-orange); border-radius: 0 0 14px 14px; box-shadow: 0 24px 48px rgba(0,0,26,.35); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; }
@keyframes tx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tx-in { from { transform: translateY(-6px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tx-panel, .tx-panel-in { animation: none; } }
.tx-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; align-content: start; }
.tx-header .tx-links a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--tx-navy); }
.tx-header .tx-links a:hover, .tx-header .tx-links a:focus-visible { background: #F5F5F8; }
.tx-links strong { font-size: 15px; } .tx-links span { font-size: 13px; color: var(--tx-muted); line-height: 1.4; }
.tx-promo { background: var(--tx-soft); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.tx-promo-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tx-orange-text); }
.tx-header .tx-promo strong { font-family: var(--tx-head); font-size: 19px; line-height: 1.2; color: var(--tx-navy); flex: 1; }
.tx-promo .tx-btn { align-self: flex-start; }
.tx-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.tx-header .tx-icon { width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.tx-header .tx-icon:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.tx-badge { background: var(--tx-navy); color: #fff; border-radius: 999px; font-size: 12px; padding: 2px 8px; line-height: 1.4; }
.tx-burger { display: none; }
.tx-drawer { border-top: 1px solid var(--tx-line); padding: 8px 0 20px; }
.tx-drawer[hidden] { display: none; }
.tx-d-group { border-bottom: 1px solid var(--tx-line); }
.tx-d-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 18px; font-weight: 600; cursor: pointer; }
.tx-d-group summary::-webkit-details-marker { display: none; }
.tx-d-group summary.is-on, .tx-d-link.is-on { color: var(--tx-orange-light); }
.tx-d-group[open] summary svg { transform: rotate(180deg); }
.tx-header .tx-d-group a { display: block; padding: 10px 0 10px 12px; color: #D2D2E8; text-decoration: none; font-size: 16px; }
.tx-d-group a:last-child { padding-bottom: 16px; }
.tx-header .tx-d-link { display: block; padding: 16px 0; color: #fff; text-decoration: none; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--tx-line); }

/* rodapé */
.tx-footer { background: var(--tx-navy-deep); color: var(--tx-on-navy); }
.tx-footer a, .tx-footer .tx-col a { color: var(--tx-on-navy); text-decoration: none; }
.tx-footer a:hover, .tx-footer .tx-col a:hover { color: #fff; }
.tx-news { border-bottom: 1px solid rgba(255,255,255,.1); }
.tx-news-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; }
.tx-news-txt { flex: 1 1 420px; }
.tx-news-txt h2 { font-family: var(--tx-head); color: #fff; font-size: 22px; margin: 0 0 6px; }
.tx-news-txt p { margin: 0; font-size: 13px; } .tx-news-txt a { color: #fff; text-decoration: underline; }
.tx-news-form { display: flex; gap: 8px; flex: 0 1 460px; }
.tx-news-form input { flex: 1; min-width: 0; height: 46px; border: 0; border-radius: 6px; padding: 0 14px; font: 15px var(--tx-body); color: var(--tx-ink); }
.tx-cols { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.tx-brand { display: flex; flex-direction: column; gap: 14px; }
.tx-brand img { height: 40px; width: auto; align-self: flex-start; display: block; }
.tx-brand p { margin: 0; font-size: 14px; line-height: 1.6; }
.tx-social { display: flex; gap: 10px; }
.tx-footer .tx-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.tx-col { display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.tx-col-t { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.tx-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.tx-bottom-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-top: 20px; padding-bottom: 28px; font-size: 13px; }
.tx-bottom-links { display: inline-flex; gap: 20px; }

@media (max-width: 1100px) {
  .tx-nav { display: none; }
  .tx-burger { display: inline-flex; }
  .tx-actions { margin-left: auto; }
  .tx-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tx-wrap { padding: 0 20px; }
  .tx-bar { min-height: 72px; gap: 12px; }
  .tx-logo img { height: 32px; }
  .tx-actions .tx-icon:not(.tx-burger) { display: none; }
  .tx-cta { padding: 0 14px; }
  .tx-news-form { flex-direction: column; flex-basis: 100%; }
  .tx-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}
