/* OTBrasil 8.60 — identidade do portal, isolada do tema-base do Znote. */
:root {
  --primary: #181f2b;
  --secondary: #101722;
  --third: #dfe5ed;
  --border: #354051;
  --font-color: #e0e5ec;
  --anchor: #efbd72;
  --anchor-hover: #ffdc9c;
  --gold: #f0ba67;
  --surface: #1b2430;
  --surface-raised: #222d3b;
  --muted: #aab5c4;
}

* { box-sizing: border-box; }

body {
  background: #1a1c1c;
  line-height: 1.5;
  min-height: 100vh;
}

.main {
  width: min(1280px, calc(100% - 32px));
  margin: 20px auto 32px;
}

nav {
  background: #252725;
  border: 1px solid #595446;
  border-radius: 4px;
  box-shadow: 0 2px 8px #0005;
}

nav .container {
  background: transparent;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
  padding: 0 14px;
  overflow: visible;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #f8f2e6;
}

.site-brand:hover { color: #fff; }

.site-brand-text {
  display: block;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.site-brand-text small {
  display: block;
  margin-top: 4px;
  font: 700 9px Arial, sans-serif;
  letter-spacing: .17em;
  color: var(--gold);
}

nav .container > .pull-left { flex: 1 1 auto; }
nav .container > .pull-left, nav .container > .pull-right { float: none; }
nav .container > div > ul { display: flex; align-items: center; }
nav .container > div > ul > li { position: relative; }
nav .container > div > ul > li > a {
  padding: 13px 11px;
  color: #d5dce6;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 3px;
}
nav .container > div > ul > li > a:hover { background: #ffffff12; color: white; }
nav .container > div > ul > li > ul {
  border: 1px solid #435064;
  border-radius: 3px;
  background: #292d2c;
  box-shadow: 0 16px 36px #0009;
  overflow: hidden;
}
nav .container > div > ul > li > ul > li > a { color: #e5eaf1; }
nav .container > div > ul > li > ul > li > a:hover { background: #324054; }
nav .account-cta, nav .container > div > ul > li > a.account-cta {
  background: #d5a864;
  color: #25190d;
  box-shadow: inset 0 1px #f9d99b;
}
nav .container > div > ul > li > a.account-cta:hover { background: #ffe0a0; color: #25190d; }

.banner {
  position: relative;
  height: 340px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #6f5942;
  border-radius: 4px;
  background: #101824;
  box-shadow: 0 3px 12px #0008;
}

.banner::before {
  position: absolute;
  content: '';
  inset: 0;
  background: linear-gradient(0deg, #0e1623c9 0%, #0e162300 38%), url('../img/otbrasil-hero.png') center 66% / cover no-repeat;
}

.banner::after {
  position: absolute;
  content: '';
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, #a97031, #f7d79c 45%, transparent);
}

body:not(.page_index) .banner { height: 210px; }

.quick-links { display: flex; flex-wrap: wrap; gap: 0; margin-top: 10px; border: 1px solid #514c40; border-radius: 4px; background: #262a29; }
.quick-links a {
  display: flex; align-items: center; gap: 9px;
  min-width: 0; min-height: 42px; padding: 8px 17px;
  border-right: 1px solid #514c40;
  color: #f5f7fa;
}
.quick-links a:last-child { border-right: 0; }
.quick-links a:hover { background: #383a32; color: #fff; }
.quick-links a > .fa { color: var(--gold); font-size: 14px; }
.quick-links strong { font-size: 12px; font-weight: 700; }

.feedContainer {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 16px 0;
  padding: 16px;
  background: #252a2b;
  border: 1px solid #514c40;
  border-radius: 4px;
}
.page_index .feedContainer { padding: 0; border: 0; background: transparent; }
.leftPane, .rightPane { float: none; min-width: 0; }
.leftPane { flex: 1 1 auto; width: auto; }
.rightPane { flex: 0 0 290px; width: 290px; }
.leftPane table, .rightPane .well { border: 1px solid #575244; border-radius: 3px; overflow: hidden; }
table, .header { background: #292e2e; }
tr:nth-child(2n+1) { background: #242a2a; }
td, th { border-bottom: 1px solid #ffffff0d; }
.header { color: #f1c37a; font-weight: 800; border-bottom: 1px solid #39485b; }
.rightPane .well { background: #292e2e; margin-bottom: 12px; }
.rightPane .body { padding: 10px; }
.account-login-page .loginContainer { max-width: 460px; margin: 0 auto; border: 1px solid #575244; border-radius: 3px; background: #292e2e; }
.account-login-page .loginForm input[type='submit'] { min-height: 40px; cursor: pointer; }
.register-panel { width: min(100%, 520px); margin: 0 auto; }
.register-panel form ul { list-style: none; padding: 0; margin: 0; }
.register-panel form li { margin: 0 0 15px; }
.register-panel form input:not([type='submit']), .register-panel form select { box-sizing: border-box; width: 100%; max-width: 100%; }
.register-panel form input[type='submit'] { min-height: 40px; padding: 8px 16px; cursor: pointer; }
.leftPane > h1, .leftPane > h2 { color: #f7e9d4; font-family: Georgia, serif; }
.client-downloads { padding: 8px 2px 16px; }
.client-downloads h1 { margin: 3px 0 6px; color: #f7e9d4; font: 700 30px/1.2 Georgia, serif; }
.client-downloads-intro, .client-download-note { color: #c0cad6; }
.client-downloads-intro { margin: 0 0 20px; }
.client-download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.client-download-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 20px; border: 1px solid #696049; border-radius: 4px; background: #2a2e2d; }
.client-download-icon { display: grid; flex: 0 0 94px; place-items: center; width: 94px; height: 94px; border: 1px solid #5a574c; border-radius: 8px; background: #191e23; }
.client-download-icon:hover, .client-download-icon:focus-visible { border-color: #f0ba67; }
.client-download-icon img { display: block; width: 80px; height: 80px; object-fit: contain; }
.client-download-copy { min-width: 0; }
.client-download-copy h2 { margin: 0 0 5px; color: #f7e9d4; font: 700 21px/1.2 Georgia, serif; }
.client-download-copy p { margin: 0 0 12px; color: #c0cad6; }
.client-download-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 13px; border: 1px solid #b98843; border-radius: 4px; background: #d5a864; color: #25190d; font-weight: 700; }
.client-download-button:hover { background: #ffe0a0; color: #25190d; }
.client-download-note { margin: 16px 0 0; font-size: 13px; }
.welcome-panel, .news-empty {
  padding: 20px 22px;
  border: 1px solid #696049;
  border-radius: 3px;
  background: #2a2e2d;
}
.section-kicker { color: #d8b477; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.welcome-panel h2, .news-empty h2 { margin: 4px 0 7px; color: #f2e9d5; font: bold 23px/1.2 Georgia, serif; }
.welcome-panel p, .news-empty p { max-width: 580px; margin: 0; color: #c0cad6; }
.page_index .postHolder .well {
  padding: 0;
  border: 1px solid #696049;
  border-radius: 3px;
  overflow: hidden;
  background: #2a2e2d;
}
.page_index .postHolder .header {
  padding: 12px 20px;
  border-bottom: 1px solid #5a574c;
  background: #2a2e2d;
}
.page_index .postHolder .body {
  padding: 18px 20px;
  background: #2a2e2d;
}
.portal-links { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 14px; padding-top: 11px; border-top: 1px solid #5a574c; }
.portal-links a { color: #e6c58c; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.portal-links a:hover { color: #ffe0a2; }
.news-empty { margin-top: 12px; background: #272c2c; }
.news-empty h2 { font-size: 20px; }
input, select, .searchForm input, .loginForm input { background: #121b27; border: 1px solid #48566a; border-radius: 6px; color: #f2f5f8; }
input:focus, select:focus { outline: 2px solid #d59d5c; outline-offset: 1px; }
.loginForm button, input[type='submit'], button { border-radius: 6px; }
.loginForm button { background: #344051; color: #fff; border: 1px solid #637186; }
.loginForm button:hover { background: #4c5d72; }
.rightPane form input[type='submit'] { width: 100%; min-height: 38px; background: #33445a; color: #f5f6f8; border: 1px solid #5b6c81; font-weight: 700; cursor: pointer; }
.rightPane form input[type='submit']:hover { background: #455b75; }
.rightPane form select { width: 100%; }
.search_widget form { display: flex; align-items: center; gap: 8px; }
.search_widget label { float: none; padding: 0; white-space: nowrap; }
.search_widget input { float: none; width: 100%; min-width: 0; }
footer.well { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; background: #252a2b; border: 1px solid #514c40; border-radius: 4px; font-size: 12px; color: #aab5c4; }
footer .pull-left, footer .pull-right { float: none; }
footer p { margin: 0; }

@media (max-width: 1100px) {
  nav .container { flex-wrap: wrap; gap: 0 14px; padding-top: 10px; padding-bottom: 10px; }
  nav .container > .pull-left { order: 3; flex-basis: 100%; }
  nav .container > .pull-right { margin-left: auto; }
  .rightPane { flex-basis: 260px; width: 260px; }
}

@media (max-width: 760px) {
  .client-download-grid { grid-template-columns: 1fr; }
  .main { width: min(100% - 20px, 560px); margin-top: 10px; }
  nav .container > .pull-left { overflow: visible; }
  nav .container > .pull-left > ul { flex-wrap: wrap; }
  nav .container > div > ul > li > a { padding: 8px 8px; }
  nav .container > div > ul > li > ul { position: fixed; left: 16px; right: 16px; width: auto; }
  .banner { height: 260px; min-height: 0; }
  body:not(.page_index) .banner { height: 220px; min-height: 0; }
  .banner::before { background: linear-gradient(0deg, #0e1623cf 0%, #0e162300 55%), url('../img/otbrasil-hero.png') 53% 65% / cover no-repeat; }
  .quick-links { gap: 0; }
  .quick-links a { min-height: 40px; }
  .feedContainer { flex-direction: column; padding: 10px; }
  .leftPane, .rightPane { width: 100%; flex: 0 0 auto; }
  .leftPane { overflow-x: auto; }
  .rightPane { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rightPane .well { min-width: 0; margin: 0; }
  footer.well { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .site-brand-text { font-size: 18px; }
  nav .container > .pull-right a { font-size: 12px; }
  .rightPane { display: block; }
  .rightPane .well { margin-bottom: 10px; }
  .welcome-panel, .news-empty { padding: 20px; }
}
