@charset "UTF-8";
/* GavetaDev v7: leitura editorial confortável, modais amplos e créditos do estúdio.
   O arquivo é Sass válido e compila para css/v7.css. */
:root {
  --reading-gutter: clamp(18px, 2.8vw, 42px);
}

/* A página Sobre é uma página, não um modal. Ocupa a área de conteúdo disponível. */
.about-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.about-page .about-page-hero {
  padding: clamp(28px, 3.4vw, 50px) !important;
  margin-bottom: 26px;
  min-height: 0;
}

.about-page .about-page-hero .page-header-info {
  max-width: 96ch;
}

.about-page .about-page-hero .page-title {
  max-width: 32ch;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.15;
}

.about-page .about-page-hero .page-description {
  max-width: 96ch;
}

.about-page .filter-toolbar {
  margin-bottom: 25px !important;
}

.about-page .filter-pills {
  gap: 9px;
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
}

.about-page .filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  padding: 10px 15px;
  line-height: 1.4;
  font-size: 0.83rem;
}

.about-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(272px, 330px);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
  min-width: 0;
}

.about-page .about-editorial {
  min-width: 0;
  max-width: none; /* Corrige o limite legado de 900px. */
  width: 100%;
  padding: var(--reading-gutter);
  margin: 0;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #dce6ed;
  box-shadow: 0 10px 28px rgba(28, 58, 73, 0.045);
  font-size: clamp(0.94rem, 0.98vw, 1rem);
  line-height: 1.82;
  overflow-wrap: break-word;
}

.about-page .about-editorial h2,
.about-page .about-editorial h3 {
  max-width: none;
  color: #142b3d;
  line-height: 1.28;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.about-page .about-editorial h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
}

.about-page .about-editorial h3 {
  font-size: clamp(1.08rem, 1.35vw, 1.3rem);
  margin-top: 28px;
}

.about-page .about-editorial p,
.about-page .about-editorial li {
  max-width: 90ch;
  line-height: 1.85;
}

.about-page .about-editorial ul,
.about-page .about-editorial ol {
  padding-inline-start: 24px;
  display: grid;
  gap: 12px;
}

.about-page .about-editorial code,
.about-page .about-editorial strong {
  overflow-wrap: anywhere;
}

.about-page .about-editorial .alert-box {
  margin-block: 20px;
}

.about-studio-panel {
  position: sticky;
  top: 92px;
  min-width: 0;
  border: 1px solid #e0e6ed;
  border-radius: 18px;
  background: linear-gradient(145deg, #f9fafc 0%, #f2f6f8 100%);
  padding: clamp(18px, 2vw, 27px);
  box-shadow: 0 10px 28px rgba(28, 58, 73, 0.045);
}

.about-studio-kicker {
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.095em;
  color: #446274;
  text-transform: uppercase;
}

.about-studio-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 17px;
}

.about-studio-visual img {
  display: block;
  width: min(158px, 55%);
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 12px 34px rgba(12, 23, 35, 0.14);
}

.about-studio-panel h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  text-align: center;
  color: #142b3d;
  margin: 0 0 10px;
}

.about-studio-panel p {
  color: #465d6d;
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 19px;
}

.about-studio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.about-studio-tags span {
  border-radius: 99px;
  background: #e2edef;
  color: #215965;
  font-size: 0.72rem;
  padding: 5px 10px;
}

.about-studio-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  background: #142b3d;
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 700;
}

.about-studio-link:hover {
  color: #fff;
  background: #206b76;
}

.studio-footer-credit {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-radius: 11px;
  padding: 5px 8px;
}

.studio-footer-credit:hover {
  background: rgba(46, 122, 128, 0.08);
  color: var(--text-primary);
}

.studio-footer-credit img {
  flex-shrink: 0;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.studio-footer-credit strong {
  color: #16344b;
}

.studio-footer-credit small {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

/* Modais verdadeiramente fluidos, em vez de caixas pequenas no centro. */
.modal-backdrop {
  box-sizing: border-box;
  padding: clamp(12px, 2vw, 28px);
  overflow-y: auto;
}

.modal-backdrop .modal-window {
  box-sizing: border-box;
  width: min(100%, 960px);
  max-width: min(960px, 100vw - 24px);
  max-height: min(92dvh, 1040px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
}

.modal-backdrop .modal-window.modal-xl,
#global-search-modal .modal-window {
  width: min(100%, 1080px);
  max-width: min(1080px, 100vw - 24px);
}

.modal-backdrop .modal-header {
  flex: 0 0 auto;
  padding: clamp(17px, 1.8vw, 25px) clamp(18px, 2.6vw, 32px);
}

.modal-backdrop .modal-title {
  min-width: 0;
  font-size: clamp(0.95rem, 1.15vw, 1.16rem);
  line-height: 1.4;
}

.modal-backdrop .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  width: 100%;
  overflow-y: auto;
  padding: clamp(20px, 2.5vw, 34px);
  overscroll-behavior: contain;
}

.modal-backdrop .modal-footer {
  flex: 0 0 auto;
  padding: 16px clamp(18px, 2.6vw, 32px);
}

.modal-backdrop .modal-body > * {
  max-width: 100%;
}

.modal-backdrop .modal-body pre,
.modal-backdrop .modal-body .table-responsive {
  overflow-x: auto;
}

#global-search-modal .omnibar-hit-item {
  min-width: 0;
}

@media (max-width: 1120px) {
  .about-reading-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-studio-panel {
    position: static;
    display: grid;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 20px;
  }
  .about-studio-kicker {
    grid-column: 1/-1;
  }
  .about-studio-visual {
    grid-row: span 3;
    margin: 4px;
  }
  .about-studio-visual img {
    width: 110px;
    max-width: none;
  }
  .about-studio-panel h2 {
    text-align: left;
  }
  .about-studio-tags {
    margin-bottom: 0;
  }
  .about-studio-link {
    justify-self: start;
  }
}
@media (max-width: 639.98px) {
  .about-page .about-page-hero {
    padding: 24px 20px !important;
  }
  .about-page .about-page-hero .page-title {
    font-size: clamp(1.65rem, 6vw, 2.25rem);
  }
  .about-page .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 2px 10px;
    scroll-snap-type: x proximity;
  }
  .about-page .filter-pill {
    white-space: nowrap;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .about-page .about-editorial {
    padding: 23px 18px;
  }
  .about-page .about-editorial ul,
  .about-page .about-editorial ol {
    padding-inline-start: 20px;
  }
  .about-studio-panel {
    display: block;
  }
  .about-studio-visual {
    margin: 19px auto;
  }
  .about-studio-panel h2 {
    text-align: center;
  }
  .about-studio-link {
    width: 100%;
  }
  .modal-backdrop {
    padding: 8px;
    align-items: center;
  }
  .modal-backdrop .modal-window,
  .modal-backdrop .modal-window.modal-xl,
  #global-search-modal .modal-window {
    width: 100%;
    max-width: calc(100vw - 16px);
    max-height: 93dvh;
    border-radius: 14px;
  }
  .modal-backdrop .modal-header {
    padding: 16px;
  }
  .modal-backdrop .modal-body {
    padding: 18px 15px;
  }
  .modal-backdrop .modal-footer {
    padding: 13px 15px;
  }
  .footer-trust-indicators {
    flex-wrap: wrap;
  }
}
@media (max-width: 359.98px) {
  .about-page .about-editorial {
    padding-inline: 14px;
  }
  .modal-backdrop .modal-body {
    padding: 14px 11px;
  }
  .studio-footer-credit img {
    width: 35px;
    height: 35px;
  }
}
