.ad-page {
  --ad-paper: #080a09;
  --ad-light: #fbf9f3;
  --ad-ink: #fbf9f3;
  --ad-muted: #bac1bb;
  --ad-line: #424b44;
  --ad-accent: #e7a741;
  color: var(--ad-ink);
  background: var(--ad-paper);
  font: 400 16px/1.65 "DM Sans", Arial, sans-serif;
}
.ad-page *, .ad-viewer * { box-sizing: border-box; }
.ad-page [hidden] { display: none !important; }
/* Navegação editorial, com links reais entre as páginas. */
.ad-page-context { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px 26px; border-top: 1px solid var(--ad-line); }
.ad-page-context strong { font-size: 14px; font-weight: 500; }
.ad-page-context span { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ad-muted); }

.ad-pagination { padding-block: 18px 26px; border-top: 1px solid var(--ad-line); }
.ad-pagination__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ad-page-step { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font-size: 13px; font-weight: 600; text-decoration: none; }
.ad-page-step:not(.is-disabled):hover { text-decoration: underline; }
.ad-page-step.is-disabled { color: #77796f; }
.ad-page-position { font-size: 12px; color: var(--ad-muted); font-variant-numeric: tabular-nums; }
.ad-page-position strong { font-weight: 600; color: var(--ad-ink); }
.ad-pagination--bottom { padding-block: 24px 0; margin-top: 54px; }
.ad-pagination--bottom .ad-pagination__row { max-width: 510px; margin: auto; }
.ad-page-numbers { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 16px; }
.ad-page-numbers a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; text-decoration: none; font-size: 13px; }
.ad-page-numbers a[aria-current="page"] { background: var(--ad-ink); color: var(--ad-paper); border-radius: 50%; }
.ad-page-numbers a:not([aria-current]):hover { background: #242b26; border-radius: 50%; }
.ad-page-ellipsis { font-size: 12px; width: 12px; text-align: center; }
.ad-case__explanation { margin-top: 18px; border-top: 1px solid var(--ad-line); }
.ad-case__explanation summary { cursor: pointer; padding-block: 14px; font-size: 14px; font-weight: 600; }
.ad-case__explanation > div { padding: 0 0 10px; }
.ad-case__explanation p { font-size: 15px; }
.ad-case__explanation summary:focus-visible, .ad-case__sources summary:focus-visible { outline: 3px solid #e7a741; outline-offset: 3px; }
.ad-case__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; margin-top: 18px; font-size: 12px; }
.ad-case__sources summary { cursor: pointer; padding-block: 12px; }
.ad-case__sources ul { padding-left: 18px; overflow-wrap: anywhere; }
.ad-case__permalink { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; }
.ad-page ::selection { background: #e7a741; color: #121413; }
.ad-page a { color: inherit; text-underline-offset: .25em; }
.ad-page a:focus-visible, .ad-viewer :focus-visible { outline: 3px solid #e7a741; outline-offset: 5px; }
.ad-page h1, .ad-page h2, .ad-page h3, .ad-page p, .ad-page figure { margin: 0; }
.ad-page h1, .ad-page h2, .ad-page h3 { font-family: "DM Sans", Arial, sans-serif; font-weight: 500; text-wrap: balance; }
.ad-wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.ad-intro { padding-block: 50px 34px; }
.ad-intro__row { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; }
.ad-page h1 { font-size: clamp(48px, 5.7vw, 82px); line-height: 1.04; letter-spacing: -.035em; }
.ad-intro__copy { max-width: 51ch; padding-bottom: 4px; font-size: 17px; line-height: 1.65; }
.ad-gallery { padding-bottom: 72px; scroll-margin-top: 0; }
.ad-case-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.ad-case { min-width: 0; scroll-margin-top: 16px; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; background: #171a18; color: var(--ad-light); box-shadow: 0 18px 42px rgba(0,0,0,.4); }
.ad-case__media { min-width: 0; }
.ad-image-link { display: block; text-decoration: none; }
.ad-image-stage { display: flex; align-items: center; justify-content: center; background: #090b0a; }
.ad-image-stage img { display: block; width: 100%; height: auto; max-height: 660px; object-fit: contain; }
.ad-case .ad-image-stage img { max-height: 580px; }
.ad-image-stage--pair { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.ad-image-stage--pair img { max-height: 430px; }
.ad-image-caption { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding-block: 11px; border-bottom: 1px solid var(--ad-line); color: var(--ad-muted); font-size: 12px; line-height: 1.5; }
.ad-image-caption span:last-child { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; font-weight: 600; color: var(--ad-ink); }
.ad-image-link:hover .ad-image-caption span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.ad-case .ad-image-caption { padding: 12px 20px; border: 0; color: #d7ded5; }
.ad-case .ad-image-caption span:last-child { color: var(--ad-light); }

.ad-case .ad-case__text { padding: 40px 44px; }
.ad-case__meta { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-bottom: 14px; color: var(--ad-muted); font-size: 12px; font-weight: 600; }
.ad-case .ad-case__meta { color: #d7ded5; }
.ad-case h2 { margin-bottom: 16px; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -.02em; }
.ad-case__text p { max-width: 64ch; }
.ad-case__text p + p { margin-top: 12px; }
.ad-case__source { display: inline-flex; align-items: center; min-height: 44px; margin-top: 13px; font-size: 12px; }
.ad-contact { padding-block: 66px; background: #080a09; color: #fbf9f3; border-top: 1px solid var(--ad-line); }
.ad-contact__row { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.ad-contact h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.12; margin-bottom: 14px; }
.ad-contact p { max-width: 58ch; color: #bac1bb; }
.ad-contact a { display: inline-flex; flex: 0 0 auto; justify-content: center; align-items: center; min-height: 52px; padding: 14px 24px; color: #121413; background: #e7a741; text-decoration: none; font-size: 13px; font-weight: 600; }
.ad-contact .ad-contact__note { font-size: 12px; line-height: 1.7; max-width: 68ch; margin-top: 22px; }
.ad-contact a { gap: 12px; }
.ad-contact a:hover { background: #f5c475; }
.ad-viewer { width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #5e665f; background: #121413; color: #fbf9f3; font: 400 15px/1.5 "DM Sans", Arial, sans-serif; }
.ad-viewer::backdrop { background: rgba(7, 10, 8, .90); }
.ad-viewer__top { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; background: #121413; z-index: 1; }
.ad-viewer__top h2 { margin: 0; font: 500 17px/1.4 "DM Sans", Arial, sans-serif; }
.ad-viewer button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 48px; min-height: 48px; padding: 8px 14px; border: 1px solid #858b83; background: transparent; color: #fbf9f3; font: inherit; cursor: pointer; }
.ad-viewer button:hover { background: #28312f; }
.ad-viewer__images { display: flex; flex-wrap: wrap; align-items: start; justify-content: center; gap: 16px; padding: 0 20px 20px; }
.ad-viewer__images img { display: block; max-width: 100%; height: auto; max-height: calc(100dvh - 150px); object-fit: contain; }
.ad-viewer__images.is-pair img { max-width: calc(50% - 8px); }
.ad-viewer__caption { margin: 0; padding: 0 20px 20px; color: #d7ded5; font-size: 13px; }
body.ad-viewer-open { overflow: hidden; }
@media (max-width: 1050px) {
  .ad-wrap { width: calc(100% - 48px); }
  .ad-intro__row { gap: 32px; }
  .ad-case-grid { gap: 40px; }
  .ad-case .ad-case__text { padding: 28px; }
}
@media (max-width: 720px) {
  .ad-wrap { width: calc(100% - 40px); }
  .ad-intro { padding-block: 26px 22px; }
  .ad-intro__row { grid-template-columns: 1fr; gap: 16px; }
  .ad-intro__copy { font-size: 15px; line-height: 1.65; }
  .ad-pagination { padding-block: 10px 18px; }
  .ad-page-context { gap: 10px; padding-block: 14px 22px; }
  .ad-pagination__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ad-page-position { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .ad-page-step:first-child { justify-content: flex-start; }
  .ad-page-step:last-child { justify-content: flex-end; }
  .ad-page-step { gap: 5px; font-size: 12px; }
  .ad-pagination--bottom { padding-top: 22px; }
  .ad-case-grid { grid-template-columns: 1fr; gap: 32px; }
  .ad-case { display: block; }
  .ad-case .ad-case__text { padding: 22px 22px 28px; }
  .ad-case h2 { font-size: clamp(28px, calc(15vw - 20px), 34px); }
  .ad-gallery { padding-bottom: 52px; }
  .ad-contact { padding-block: 44px; }
  .ad-contact__row { display: block; }
  .ad-contact a { width: 100%; margin-top: 26px; }
  .ad-viewer { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .ad-viewer__top { gap: 10px; padding: 12px; }
  .ad-viewer__top h2 { font-size: 14px; }
  .ad-viewer__images { padding-inline: 12px; }
  .ad-viewer__images.is-pair img { max-width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .ad-page a, .ad-viewer button { transition: background-color 180ms ease-out, color 180ms ease-out; }
  .ad-viewer[open] { animation: ad-open 180ms ease-out; }
  @keyframes ad-open { from { opacity: .6; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}

/* Tema escuro da candidata, preservando a composição e as funções do shell. */
body.ad-dark-page { background: #080a09; color-scheme: dark; }
body.irp-global-shell-active.ad-dark-page:not(.prototype-header-solid) .irp-global-header { background: #080a09 !important; color: #fbf9f3 !important; box-shadow: none; }
body.ad-dark-page:not(.prototype-header-solid) .irp-global-header__brand svg { filter: brightness(0) invert(1) !important; }
body.ad-dark-page:not(.prototype-header-solid) .irp-global-header a,
body.ad-dark-page:not(.prototype-header-solid) .irp-global-header button,
body.ad-dark-page:not(.prototype-header-solid) .prototype-section-label strong { color: #fbf9f3 !important; }
body.ad-dark-page:not(.prototype-header-solid) .prototype-section-label small,
body.ad-dark-page:not(.prototype-header-solid) .prototype-section-chevron,
body.ad-dark-page:not(.prototype-header-solid) .prototype-page-map > button,
body.ad-dark-page:not(.prototype-header-solid) .prototype-header-links a[aria-current],
body.ad-dark-page:not(.prototype-header-solid) .irp-global-header__nav a[aria-current="page"] { color: #e8b467 !important; }
body.ad-dark-page:not(.prototype-header-solid) .prototype-section-ruler i { background: rgba(232,180,103,.32); }
body.ad-dark-page:not(.prototype-header-solid) .prototype-section-ruler i.is-current { background: #e8b467; }
body.ad-dark-page:not(.prototype-header-solid) .prototype-section-list { background: #171a18; border-color: #766444; }
body.ad-dark-page:not(.prototype-header-solid) .prototype-section-list a[aria-current] { color: #e8b467 !important; }
body.ad-dark-page:not(.prototype-header-solid) .irp-global-header__menu-icon i { background: #fbf9f3 !important; }
body.ad-dark-page .prototype-footer { background: #080a09; }

/* Submenu da coleção: estado definido pela página, sem vínculo com a rolagem. */
.ad-page-compass { position: relative; min-width: 0; }
.ad-page-jump { width: 100%; color: #fbf9f3; font-family: "DM Sans", Arial, sans-serif; }
.ad-page-toggle { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 18px; min-height: 48px; padding: 0 6px; cursor: pointer; list-style: none; }
.ad-page-toggle::-webkit-details-marker { display: none; }
.ad-page-toggle::marker { content: ""; }
.ad-page-label { display: grid; gap: 5px; }
.ad-page-label small { color: #e8b467; font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: .08em; text-transform: uppercase; }
.ad-page-label strong { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.ad-page-label svg { color: #e8b467; flex: 0 0 auto; }
.ad-page-ruler { display: grid; grid-template-columns: repeat(29, minmax(0, 1fr)); gap: 3px; }
.ad-page-ruler i { display: block; height: 3px; background: rgba(232,180,103,.32); }
.ad-page-ruler i.is-current { background: #e8b467; }
.ad-page-picker { position: absolute; z-index: 50; top: 100%; right: 0; box-sizing: border-box; width: min(100%,340px); max-height: calc(100dvh - 170px); overflow: auto; padding: 12px; background: #171a18; border: 1px solid #766444; }
.ad-page-picker p { margin: 0 0 10px; padding-inline: 5px; color: #bac1bb; font-size: 12px; line-height: 1.5; }
.ad-page-list { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 4px; }
.ad-page-list a { display: flex; align-items: center; justify-content: center; min-height: 44px; text-decoration: none; font-size: 14px; line-height: 1; font-variant-numeric: tabular-nums; }
body.ad-dark-page .ad-page-list a[aria-current="page"] { color: #e8b467 !important; background: #30352d; }
.ad-page-list a:hover { background: #30352d; }
.ad-page-toggle:focus-visible, .ad-page-list a:focus-visible { outline: 2px solid #e8b467; outline-offset: 1px; }
.ad-page-jump[open] .ad-page-label svg { transform: rotate(180deg); }
@media (min-width: 761px) {
  .ad-page-toggle { min-height: 54px; padding-inline: 8px; }
  .ad-page-picker { right: auto; left: 0; }
}
@media (max-width: 359px) {
  .ad-page-toggle { grid-template-columns: 126px minmax(0,1fr); gap: 12px; padding-inline: 0; }
  .ad-page-ruler { gap: 2px; }
}

/* O estado branco segue a rolagem do shell, sem clarear os casos. */
body.ad-dark-page.prototype-header-solid .ad-page-jump { color: #211e1a; color-scheme: light; }
body.ad-dark-page.prototype-header-solid .ad-page-label small,
body.ad-dark-page.prototype-header-solid .ad-page-label svg { color: #81592b; }
body.ad-dark-page.prototype-header-solid .ad-page-ruler i { background: rgba(129,89,43,.3); }
body.ad-dark-page.prototype-header-solid .ad-page-ruler i.is-current { background: #81592b; }
body.ad-dark-page.prototype-header-solid .ad-page-picker { background: #fff; border-color: rgba(129,89,43,.65); }
body.ad-dark-page.prototype-header-solid .ad-page-picker p { color: #625b52; }
body.ad-dark-page.prototype-header-solid .ad-page-list a[aria-current="page"] { color: #81592b !important; background: #f3eee6; }
body.ad-dark-page.prototype-header-solid .ad-page-list a:hover { background: #f3eee6; }
body.ad-dark-page.prototype-header-solid .ad-page-toggle:focus-visible,
body.ad-dark-page.prototype-header-solid .ad-page-list a:focus-visible { outline-color: #81592b; }
