/* SPASSU Projetos — chrome interno em dark navy + laranja da marca. */
html {
  color-scheme: dark;
}

.op-app-header,
header.op-app-header,
.op-app-header--modules-menu-header {
  background: #100b2f !important;
}

.op-logo--link,
.op-logo--icon,
.op-logo--icon_white,
.op-logo--link_high_contrast {
  background-image: url("/branding/spassu-logo-white.svg") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
  filter: none !important;
}

.op-app-header .op-logo:not(.op-logo--icon) {
  display: flex !important;
  align-items: center;
  padding: 0 10px 0 4px;
}

.op-app-header .op-logo--link:not(.op-logo--icon) {
  display: inline-block !important;
  width: 158px !important;
  height: 36px !important;
  overflow: hidden;
  text-indent: -9999px;
  color: transparent !important;
}

.op-app-header a.op-logo--icon {
  display: none !important;
}

.op-app-header--modules-menu-header .op-logo,
.op-app-header--modules-menu-header .op-logo--icon,
.op-app-header--modules-menu-header .op-logo--icon_white {
  display: block !important;
  width: 158px !important;
  height: 36px !important;
  min-width: 158px;
  margin: 0;
  background-image: url("/branding/spassu-logo-white.svg") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
}

.op-app-header--modules-menu-header .op-logo img {
  display: none !important;
}

.op-logo--link svg,
.op-logo img:not(.spassu-header-logo) {
  display: none !important;
}

.spassu-header-logo {
  display: block;
  height: 32px;
  width: auto;
  max-width: 180px;
}

.Button--primary,
.button.-primary,
button.button.-highlight,
.spot-button_main,
input[type="submit"].button.-primary {
  background: linear-gradient(135deg, #fa4616, #ff6a34) !important;
  border-color: #fa4616 !important;
  color: #fff !important;
}

.op-app-menu--item-action:hover,
.main-menu-item.selected,
.main-menu .selected {
  background: rgba(250, 70, 22, 0.18) !important;
}

#main-menu,
.main-menu {
  background: #0c0825 !important;
}

html.spassu-lock-theme [name="pref[theme]"],
html.spassu-lock-theme [name="user[pref_attributes][theme]"],
html.spassu-lock-theme [name="user_preference[theme]"],
html.spassu-lock-theme #pref_theme,
html.spassu-lock-theme #user_pref_theme,
html.spassu-lock-theme select[id*="theme"],
html.spassu-lock-theme .form--field:has(select[name*="theme"]),
html.spassu-lock-theme .form--field:has([id*="color_mode"]),
html.spassu-lock-theme .form--field:has([id*="color-mode"]),
html.spassu-lock-theme .spot-form-field:has(select[name*="theme"]),
html.spassu-lock-theme .form--field:has([id*="increase_theme_contrast"]),
html.spassu-lock-theme .form--field:has([id*="force_light_theme"]),
html.spassu-lock-theme .form--field:has([id*="force_dark_theme"]) {
  display: none !important;
}

/* Home: notícias em primeiro, card SPASSU Projetos em seguida. */
.widget-boxes.-flex {
  display: flex !important;
  flex-direction: column !important;
  max-width: 980px;
}

#homescreen-blocks-news-box {
  order: -1;
}

.widget-boxes.-flex .widget-box {
  flex-basis: 100% !important;
  max-width: 980px;
  max-height: none !important;
}

#homescreen-blocks-welcome-box {
  border: 1px solid rgba(250, 70, 22, 0.32) !important;
  border-top: 3px solid #fa4616 !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(22, 16, 56, 0.92), rgba(12, 8, 37, 0.96)) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  padding: 8px 8px 16px;
}

#homescreen-blocks-welcome-box .op-widget-box--header,
#homescreen-blocks-welcome-header {
  display: none !important;
}

#homescreen-blocks-welcome-box .op-uc-container {
  padding: 12px 16px 8px;
  color: rgba(255, 255, 255, 0.88);
}

#homescreen-blocks-welcome-box .op-uc-container::before {
  content: "";
  display: block;
  width: 210px;
  height: 48px;
  margin: 2px 0 22px;
  background: url("/branding/spassu-logo-white.svg") left center / contain no-repeat;
}

#homescreen-blocks-welcome-box .op-uc-container > p:first-of-type {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 6px;
}

#homescreen-blocks-welcome-box .op-uc-container > p:nth-of-type(2) {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(250, 70, 22, 0.35);
}

#homescreen-blocks-welcome-box .op-uc-container > p:first-of-type strong {
  color: #fff;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

#homescreen-blocks-welcome-box .op-uc-container > p:not(:first-of-type):has(> strong:only-child) strong {
  color: #ff7a45;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#homescreen-blocks-welcome-box .op-uc-container ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  list-style: none;
  padding: 0;
  margin: 12px 0 20px;
}

#homescreen-blocks-welcome-box .op-uc-container a {
  color: #ff7a45;
  font-weight: 600;
  text-decoration: none;
}

#homescreen-blocks-welcome-box .op-uc-container a:hover {
  text-decoration: underline;
}

#homescreen-blocks-welcome-box .op-uc-container li {
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #fa4616;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

#homescreen-blocks-welcome-box .op-uc-container li strong {
  color: #fff;
}

#homescreen-blocks-welcome-box .op-uc-container > p:last-child {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  #homescreen-blocks-welcome-box .op-uc-container ul {
    grid-template-columns: 1fr;
  }
}

/* Notícias: destaque no topo da home, título com acentuação visível. */
#homescreen-blocks-news-box {
  border: 1px solid rgba(250, 70, 22, 0.32) !important;
  border-top: 3px solid #fa4616 !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(22, 16, 56, 0.92), rgba(12, 8, 37, 0.96)) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  padding: 10px 8px 16px;
  margin-bottom: 18px;
}

#homescreen-blocks-news-box .op-widget-box--header,
#homescreen-blocks-news-header {
  display: flex !important;
  align-items: center;
  padding: 10px 16px 6px !important;
  border: 0 !important;
  background: transparent !important;
}

#homescreen-blocks-news-box .op-widget-box--header-title,
#homescreen-blocks-news-header .op-widget-box--header-title,
#homescreen-blocks-news-box h3 {
  font-size: 1.35rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: #fff !important;
  overflow: visible !important;
}

#homescreen-blocks-news-box .op-uc-container,
#homescreen-blocks-news-box .widget-box--body {
  padding: 4px 16px 8px;
}

#homescreen-blocks-news-box .news,
#homescreen-blocks-news-box .widget-box--enumeration,
#homescreen-blocks-news-box ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#homescreen-blocks-news-box .news > div,
#homescreen-blocks-news-box .widget-box--enumeration > li,
#homescreen-blocks-news-box article {
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #fa4616;
  border-radius: 10px;
}

#homescreen-blocks-news-box a {
  color: #ff7a45 !important;
  font-weight: 650;
  text-decoration: none;
  font-size: 1.02rem;
}

#homescreen-blocks-news-box a:hover {
  text-decoration: underline;
}

#homescreen-blocks-news-box p,
#homescreen-blocks-news-box .author,
#homescreen-blocks-news-box .additional-information {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

/* Wiki: tabelas e código no padrão dos dossiês GRC (navy / laranja). */
.wiki-content table,
.op-uc-container table,
.op-uc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 0.92rem;
  overflow: hidden;
  border: 1px solid rgba(213, 208, 227, 0.22);
  border-radius: 8px;
}

.wiki-content thead th,
.op-uc-container thead th,
.op-uc-table thead th {
  background: #100b2f !important;
  color: #fff !important;
  font-weight: 650;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid rgba(16, 11, 47, 0.9);
}

.wiki-content tbody td,
.op-uc-container tbody td,
.op-uc-table tbody td {
  padding: 7px 10px;
  border: 1px solid rgba(213, 208, 227, 0.18);
  vertical-align: top;
}

.wiki-content tbody tr:nth-child(odd) td,
.op-uc-container tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.03);
}

.wiki-content tbody tr:nth-child(even) td,
.op-uc-container tbody tr:nth-child(even) td {
  background: rgba(16, 11, 47, 0.35);
}

.wiki-content tbody tr:hover td,
.op-uc-container tbody tr:hover td {
  background: rgba(250, 70, 22, 0.12);
}

.wiki-content pre,
.op-uc-container pre,
.op-uc-code-block {
  background: #160f3a !important;
  border-left: 3px solid #fa4616;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
  overflow-x: auto;
}

.wiki-content img,
.op-uc-container img,
.op-uc-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(250, 70, 22, 0.28);
  margin: 8px 0 4px;
}

.wiki-content figcaption,
.op-uc-figure--description {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 16px;
}
