/**
 * @file
 * Layout/page styles entrypoint for portal_firjan.
 *
 * PURPOSE:
 * - Page templates, layout wrappers, region spacing
 * - Node/page-specific adjustments
 * - Section/grid composition rules
 *
 * This is the "safe playground" for developers:
 * - Prefer putting page and layout rules here
 * - Keep code grouped by template/route/region
 *
 * Output:
 * - dist/css/layout.css
 *
 * Build:
 * - npm run build:css
 *
 * Suggested conventions:
 * - Target Drupal body classes: .path-frontpage, .page-node-type-*, .path-*
 * - Target regions: .region-header, .region-content, .region-footer, etc.
 * - When styling Paragraphs, prefer stable classes you control (BEM-ish)
 *   Example: .ds-section, .ds-columns, .ds-column
 *
 * DO NOT:
 * - Override DS tokens in here (do that in global.scss or DS layer).
 */
.ds-topbar {
  color: #fff;
}

.ds-topbar__inner {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  column-gap: 16px;
  min-height: 64px;
  padding-block: 10px;
}

.ds-topbar,
.ds-topbar__inner {
  max-width: 100%;
}

.ds-topbar__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 120px;
}

.ds-topbar__brand svg,
.ds-topbar__brand img {
  display: block;
  width: 140px;
  height: auto;
  max-height: 54px;
}

.ds-topbar__search {
  position: relative;
  width: 100%;
  min-width: 0;
  align-self: center;
}

.ds-topbar__search .ds-search-bar {
  width: 100%;
}

.ds-topbar__search .ds-search-bar__wrapper {
  width: 100%;
}

.ds-topbar__search .ds-search-bar__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 100%;
  z-index: 20;
}

.ds-topbar__search .ds-search-bar__panel-inner {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.ds-topbar__search .ds-search-bar__listbox {
  width: 100%;
  display: block;
  box-sizing: border-box;
}

.ds-topbar__search .ds-search-bar__listbox > .ds-listbox,
.ds-topbar__search .ds-search-bar__listbox > .ds-listbox.ds-listbox__list,
.ds-topbar__search .ds-search-bar__listbox .ds-listbox__list {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.ds-topbar__links {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.ds-topbar__links .ds-button {
  margin-left: 1.5rem;
}
.ds-topbar__links .ds-button.btn-sm {
  height: 46px;
  padding: 0 1.1rem;
  font-size: 0.875rem;
  line-height: 1;
  gap: 0.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
}
.ds-topbar__links .ds-button.btn-sm svg {
  width: 0.875em;
  height: 0.875em;
}
.ds-topbar__links .ds-button--secondary {
  background-color: var(--ds-color-button-background-brand-secondary-default) !important;
}
.ds-topbar__links .ds-button--secondary:hover {
  background-color: var(--ds-button-secondary-bg-hover) !important;
}

.ds-topbar__link {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

.ds-topbar__link:hover {
  text-decoration: none;
  color: var(--ds-button-secondary-bg-hover);
}

.ds-topbar__sep {
  opacity: 0.7;
  padding: 0 0.6rem;
}

.ds-topbar__social {
  display: flex;
  align-items: center;
  justify-self: end;
  white-space: nowrap;
}

.ds-topbar__social a {
  margin: 0 0.2rem;
}

.ds-topbar__social a:last-of-type {
  margin-right: 0 !important;
}

.ds-topbar__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) and (max-width: 1199px) {
  .ds-container {
    width: 100%;
  }
  .ds-topbar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
  }
  .ds-topbar__brand {
    flex: 0 0 auto;
  }
  .ds-topbar__brand svg,
  .ds-topbar__brand img {
    width: 110px;
    height: auto;
  }
  .ds-topbar__search {
    flex: 1;
  }
  .ds-topbar__search input {
    width: 100%;
    height: 40px;
  }
  .ds-topbar__menu-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }
  .ds-topbar__menu-toggle svg {
    width: 24px !important;
    height: 24px !important;
  }
  .ds-topbar__links,
  .ds-topbar__social {
    display: none;
  }
  #block-portal-firjan-mainnavigation-2 {
    display: none;
  }
}
@media (max-width: 639px) {
  .ds-topbar__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand search toggle";
    column-gap: 12px;
    align-items: center;
  }
  .ds-topbar__brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: auto;
    max-width: max-content;
    height: auto;
  }
  .ds-topbar__brand .ds-brand {
    display: inline-flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    height: auto;
    line-height: 0;
  }
  .ds-topbar__search {
    grid-area: search;
    min-width: 0;
    max-width: none;
  }
  .ds-topbar__links,
  .ds-topbar__social {
    display: none;
  }
  .ds-topbar__menu-toggle {
    grid-area: toggle;
    display: inline-flex;
    justify-self: end;
    align-self: center;
  }
  .ds-topbar__brand .ds-brand svg,
  .ds-topbar__brand svg,
  .ds-topbar__brand img {
    display: block;
    width: 88px;
    height: 48px;
  }
  .ds-topbar__menu-toggle svg {
    width: 24px !important;
    height: 24px !important;
  }
}
@media (max-width: 576px) {
  .ds-topbar__inner {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    column-gap: 8px;
    align-items: center;
  }
  .ds-topbar__brand img,
  .ds-topbar__brand svg {
    max-height: 48px;
  }
}
@media (max-width: 420px) {
  .ds-topbar {
    overflow-x: clip;
    max-width: 100%;
  }
  .ds-topbar__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 8px;
    width: 100%;
    max-width: 100%;
  }
  .ds-topbar .ds-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ds-topbar__brand {
    min-width: 0;
    max-width: max-content;
  }
  .ds-topbar__brand .ds-brand,
  .ds-topbar__brand svg,
  .ds-topbar__brand img {
    width: auto;
    height: auto;
    max-width: 92px;
    max-height: 48px;
  }
  .ds-topbar__search,
  .ds-topbar__search .ds-search-bar,
  .ds-topbar__search .ds-search-bar__wrapper,
  .ds-topbar__search .ds-search-bar__field {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .ds-topbar__menu-toggle {
    min-width: 32px;
    justify-self: end;
  }
}
@media (max-width: 1023px) {
  #block-portal-firjan-mainnavigation-2 {
    display: none;
  }
}
@media (min-width: 1200px) {
  .ds-topbar .ds-brand__logo {
    display: block;
    margin-left: -20px;
  }
}
.ds-footer {
  background: var(--ds-color-shape-accent-brand-default);
  color: var(--ds-color-text-accent-brand-soft);
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.ds-footer .ds-container {
  width: 100%;
}
.ds-footer .ds-icon {
  color: #fff;
}
.ds-footer__main {
  width: 100%;
}
.ds-footer__title {
  margin: 0 0 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.ds-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ds-footer__item {
  margin-bottom: 1rem;
}
.ds-footer__item:last-child {
  margin-bottom: 0;
}
.ds-footer__link {
  color: inherit;
  text-decoration: none;
  line-height: 1.35;
}
.ds-footer__link:hover {
  text-decoration: none;
}
.ds-footer__menus a:hover {
  color: var(--ds-button-secondary-bg-hover);
}
.ds-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ds-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.ds-footer__bottom-right {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.ds-footer__bottom-nav ul {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ds-footer__social ul {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ds-footer .ds-footer__bottom-nav li a {
  font-size: var(--ds-font-size-body-md);
}
.ds-footer .ds-footer__bottom-nav li a {
  font-size: var(--ds-font-size-body-md);
  font-weight: 600;
}
.ds-footer .ds-footer__bottom-nav li .ds-footer__bottom-link[href=""] {
  font-weight: unset;
}
.ds-footer__brand--desktop {
  display: none;
}
.ds-footer__brand--mobile {
  display: flex;
  justify-content: center;
}
.ds-footer .ds-footer__logo--mobile {
  display: none;
}
.ds-footer .ds-footer__logo--desktop {
  display: block;
}

.ds-footer-contact {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.ds-footer-contact .ds-footer-contact__content h6 {
  margin-bottom: 0.1rem;
}
.ds-footer-contact .ds-footer-contact__content p {
  margin-bottom: 0;
  font-size: var(--ds-font-size-body-sm);
}
.ds-footer-contact__icon {
  width: 1.75rem;
  height: 1.75rem;
}
.ds-footer-contact__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.ds-footer-contact__link, .ds-footer-contact__text {
  display: flex;
  flex-direction: column;
}

.ds-footer__divider {
  margin: 2rem 0;
}

@media (max-width: 639px) {
  .ds-footer {
    padding-block: 3rem;
  }
  .ds-footer .ds-footer__content {
    padding-inline: 1rem !important;
  }
  .ds-footer__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  .ds-footer__brand--mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
  }
  .ds-footer .ds-footer__brand--mobile svg,
  .ds-footer .ds-footer__brand--mobile img {
    display: block;
    margin: 0 auto;
  }
  .ds-footer .ds-footer__logo--mobile {
    display: flex !important;
    justify-content: center;
  }
  .ds-footer .ds-footer__logo--desktop {
    display: none;
  }
  .ds-footer .ds-footer__brand svg {
    width: 166px;
    height: 77px;
  }
  .ds-footer__col--contact {
    text-align: left;
  }
  .ds-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .ds-footer__contacts * {
    width: 100%;
  }
  .ds-footer .ds-footer__contacts > div > div:nth-child(2),
  .ds-footer .ds-footer__contacts > div > div:nth-child(3) {
    width: 50%;
  }
  .ds-footer .ds-footer__contacts > div {
    display: flex;
    flex-wrap: wrap;
  }
  .ds-footer .ds-footer__contacts > div > div:nth-child(1),
  .ds-footer .ds-footer__contacts > div > div:nth-child(4) {
    width: 100%;
  }
  .ds-footer__divider--mobile {
    margin: 0;
  }
  .ds-footer__menus {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .ds-footer__col--menu {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }
  .ds-footer__list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ds-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .ds-footer__bottom-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .ds-footer__social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
  }
  .ds-footer .ds-footer__bottom-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 0;
  }
  .ds-footer .ds-footer__social ul {
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .ds-footer .ds-footer__social li {
    flex: 0 0 auto;
  }
  .ds-footer__social-label {
    text-align: center;
    width: 100%;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .ds-footer .ds-container {
    width: 100%;
  }
  .ds-footer__main {
    padding-inline: 0;
  }
  .ds-footer__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }
  .ds-footer__brand--mobile {
    grid-column: 1;
    justify-content: flex-start;
  }
  .ds-footer__col--contact {
    grid-column: 2;
  }
  .ds-footer__menus {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .ds-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .ds-footer__bottom-right {
    margin-left: 0;
    flex-direction: column;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .ds-footer__main {
    padding-inline: 0;
  }
  .ds-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }
  .ds-footer__brand.ds-footer__logo--mobile {
    display: none;
  }
  .ds-footer__brand.ds-footer__logo--desktop {
    grid-column: 4;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 120px;
  }
  .ds-footer__menus {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .ds-footer__col--contact {
    grid-column: 2;
    grid-row: 1;
  }
  .ds-footer__col--menu {
    min-width: 0;
  }
  .ds-footer__divider--mobile {
    grid-column: 3;
    grid-row: 2;
    display: none;
  }
  .ds-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .ds-footer__bottom-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .ds-footer__bottom-nav ul {
    justify-content: center;
  }
  .ds-footer__bottom-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  .ds-footer__social-label {
    margin: 0;
    white-space: nowrap;
  }
  .ds-footer__social {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .ds-footer__social ul {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
  }
}
@media (min-width: 1024px) {
  .ds-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: start;
    gap: 3rem;
  }
  .ds-footer__logo--desktop {
    grid-column: 3;
    justify-self: start;
  }
  .ds-footer__logo--mobile {
    display: none;
  }
  .ds-footer__logo--desktop svg {
    width: 320px;
    height: auto;
  }
  .ds-footer .ds-footer__divider--mobile {
    display: none !important;
    grid-column: 4;
    grid-row: 1;
  }
  .ds-footer__menus {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .ds-footer__col--contact {
    grid-column: 2;
    grid-row: 1;
  }
  .ds-footer__col--menu {
    min-width: 0;
  }
  .ds-footer__divider--mobile {
    display: none;
  }
  .ds-footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .ds-footer__bottom-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .ds-footer__bottom-nav ul li {
    white-space: nowrap;
  }
  .ds-footer__bottom-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }
  .ds-footer .ds-footer__bottom-right * {
    justify-content: center;
  }
  .ds-footer .ds-footer__social {
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  .ds-footer .ds-footer__social ul {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    padding: 0;
  }
  .ds-footer .ds-footer__institutional p {
    margin-bottom: 0.3rem;
  }
}
.ds-footer-block p {
  color: #fff !important;
}

.ds-main {
  overflow-x: clip;
}

body {
  color: var(--ds-color-primitive-gray-800);
}
body p, body li {
  color: var(--ds-color-primitive-gray-800);
}

.views-exposed-form .ds-dropdown__toggle {
  background: var(--ds-color-primitive-gray-100);
  border: 1px solid var(--ds-color-primitive-gray-500);
  border-radius: 999px;
  height: 48px;
  padding: 0 16px;
  box-shadow: none;
}

.views-exposed-form .ds-dropdown__toggle[aria-expanded=true],
.views-exposed-form .ds-dropdown__toggle:focus {
  border-color: var(--ds-color-primitive-blue-400);
  outline: none;
}

.views-exposed-form .ds-dropdown__text {
  color: var(--ds-color-primitive-gray-800);
}

.views-exposed-form .ds-dropdown__icon {
  opacity: 0.6;
}

.paragraph--type--ds-produtos-firjan {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
}
