/* Coleção Sartori — direção visual "Casarão" */
:root {
  --papel: #FAFAF8; --reboco: #F1F0EB; --tinta: #121212; --azul: #0D3B7A; --amarelo: #E9B824; --amarelo-escuro: #8A6A0E;
  --cinza: #6B6B6B; --cinza-2: #3A3A3A; --linha: #E4E3DE; --linha-2: #C9C7BF; --claro: #B5B3AC;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif; --serif: "Source Serif 4", Georgia, "Times New Roman", serif; --display: "Outfit", "Arial Black", Arial, sans-serif;
  --pad: clamp(20px, 4vw, 56px); --max: 1440px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--azul); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--amarelo); color: var(--tinta); }

/* tipografia utilitária */
.wm { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: .92; }
.serif { font-family: var(--serif); }
.it { font-style: italic; }
.cap { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.gray { color: var(--cinza); }
.azul { color: var(--azul); }
.amarelo { color: var(--amarelo); }
.amarelo-escuro { color: var(--amarelo-escuro); }
.link { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.cst-meta { font-size: 13px; color: var(--cinza-2); }
.cst-lead { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.4; text-wrap: pretty; }
.cst-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--tinta); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--tinta); background: transparent; transition: background .15s, color .15s; white-space: nowrap; }
.cst-btn:hover { background: var(--tinta); color: var(--papel); }
.cst-btn.solid { background: var(--tinta); color: var(--papel); }
.cst-btn.solid:hover { background: var(--azul); border-color: var(--azul); }
.cst-btn.inv { border-color: var(--papel); color: var(--papel); }
.cst-btn.inv:hover { background: var(--papel); color: var(--tinta); }
.cst-btn.small { padding: 8px 12px; font-size: 10px; }
.cst-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cst-skip { position: absolute; left: -999px; top: 0; background: var(--tinta); color: var(--papel); padding: 8px 12px; z-index: 100; }
.cst-skip:focus { left: 8px; top: 8px; }
.cst-wrap { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--pad) 0; }
.cst-wrap:last-of-type { padding-bottom: clamp(40px, 5vw, 72px); }
.cst-dark { background: var(--tinta); color: var(--papel); margin-top: clamp(40px, 5vw, 72px); }
.cst-dark .cst-wrap { padding-bottom: clamp(40px, 5vw, 56px); }
.cst-dark a:hover { color: var(--amarelo); }
.cst-dark .gray { color: var(--claro); }
.cst-dark .cst-btn { border-color: var(--papel); color: var(--papel); }
.cst-dark .cst-sec-head { border-color: rgba(250,250,248,.25); }
.cst-reboco { background: var(--reboco); margin-top: clamp(40px, 5vw, 72px); }
.cst-reboco .cst-wrap { padding-bottom: clamp(40px, 5vw, 72px); }
.cst-page-head { display: flex; flex-direction: column; gap: 14px; max-width: 900px; margin-bottom: clamp(24px, 3vw, 40px); }
.cst-page-head h1 { font-size: clamp(40px, 6vw, 84px); }
.cst-page-head .serif { font-size: 18px; line-height: 1.5; max-width: 64ch; }
.cst-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--tinta); padding-bottom: 12px; }
.cst-sec-head .wm { font-size: clamp(26px, 3vw, 40px); }
.cst-sec-head .wm.small { font-size: 22px; }
.cst-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 24px; border-top: 1px solid var(--tinta); padding-top: 18px; }
.cst-nums.small { border-top: 0; padding-top: 0; grid-template-columns: repeat(auto-fit, minmax(140px, max-content)); }
.cst-num { display: flex; flex-direction: column; gap: 6px; }
.cst-num .wm { font-size: clamp(34px, 3.6vw, 52px); }
.cst-nums.small .cst-num .wm { font-size: 30px; }
.cst-empty { font-family: var(--serif); color: var(--cinza); font-size: 17px; padding: 40px 0; }
.cst-crumb { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.cst-crumb a:hover { color: var(--tinta); }
.cst-crumb .right { margin-left: auto; }
.cst-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; letter-spacing: .04em; color: var(--cinza); text-transform: none; }
.cst-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cst-tag { font-size: 12px; border: 1px solid var(--linha-2); padding: 5px 10px; }
.cst-tag em { font-style: normal; color: var(--cinza); margin-left: 4px; }
.cst-tag:hover { border-color: var(--tinta); }
.cst-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--linha); margin-bottom: 28px; }
.cst-tabs a { padding: 8px 0 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cst-tabs a.ativo { border-color: currentColor; }
.cst-prose { font-size: 18px; line-height: 1.65; color: var(--cinza-2); max-width: 68ch; }
.cst-prose.big { font-size: clamp(19px, 1.6vw, 22px); }
.cst-prose.light { color: var(--claro); }
.cst-prose p, .cst-prose ul, .cst-prose blockquote, .cst-prose figure { margin: 0 0 1.2em; }
.cst-prose h2, .cst-prose h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; margin: 1.6em 0 .6em; color: var(--tinta); font-size: 22px; }
.cst-prose blockquote { border-left: 3px solid var(--amarelo); padding-left: 20px; font-style: italic; }
.cst-prose img { margin: 1em 0; }
.cst-prose a { border-bottom: 1px solid var(--linha-2); }
.cst-prose sup { font-size: .7em; }
.cst-side-list li { border-bottom: 1px solid var(--linha); padding: 8px 0; font-size: 14px; }
.cst-side-list.small li { font-size: 13px; padding: 6px 0; }
.cst-side-list em { font-style: normal; color: var(--cinza); float: right; }
.cst-side-list + .cap, .cst-side-obras + .cap { margin-top: 28px; }
.cst-result-list { display: flex; flex-direction: column; margin-bottom: 40px; }
.cst-result-list li a { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--linha); font-size: 19px; align-items: baseline; }
.cst-busca-form { display: flex; gap: 10px; max-width: 720px; }
.cst-busca-form input { flex: 1; border: 0; border-bottom: 2px solid var(--tinta); background: transparent; padding: 10px 0; font-size: 22px; font-family: var(--serif); outline: none; }
.cst-more { text-align: center; margin: 36px 0 0; }
.cst-prevnext { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--linha); padding-top: 20px !important; padding-bottom: 60px !important; }
.cst-prevnext a { display: flex; flex-direction: column; gap: 6px; font-size: 18px; max-width: 45%; }
.cst-prevnext a.right { text-align: right; align-items: flex-end; }
.cst-ficha .row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linha); font-size: 14px; line-height: 1.45; }
.cst-ficha .row .k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--cinza); padding-top: 3px; }
.cst-ficha .row a { border-bottom: 1px solid var(--linha-2); }
.cst-texto-curatorial { font-size: 18px; line-height: 1.65; color: var(--cinza-2); }
.cst-texto-curatorial p { margin: 0 0 1.1em; }
.cst-texto-curatorial p:first-of-type::first-letter { font-family: var(--display); font-weight: 800; font-size: 3.4em; float: left; line-height: .8; margin: 6px 10px 0 0; color: var(--azul); }
.cst-texto-curatorial.collapsed { max-height: 520px; overflow: hidden; position: relative; }
.cst-texto-curatorial.collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(180deg, rgba(250,250,248,0), var(--papel)); }
[data-expand-btn] { margin-top: 12px; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--linha-2); font-size: 12px; padding: 0 10px; }
.pagination .page-numbers.current { background: var(--tinta); color: var(--papel); border-color: var(--tinta); }

/* header */
.cst-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--pad); border-bottom: 1px solid var(--linha); background: rgba(250,250,248,.94); backdrop-filter: blur(8px); }
.cst-wordmark { font-size: 18px; letter-spacing: .02em; white-space: nowrap; }
.cst-wordmark img { max-height: 32px; width: auto; }
.cst-nav { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.cst-nav a { padding-bottom: 2px; border-bottom: 2px solid transparent; }
.cst-nav a.ativo, .cst-nav .current-menu-item > a { border-color: var(--tinta); }
.cst-nav li { display: contents; }
.cst-tools { display: flex; align-items: center; gap: 18px; }
.cst-tools::before { content: ""; width: 1px; height: 16px; background: var(--linha-2); }
.cst-search-btn { display: inline-flex; }
.cst-login { color: var(--amarelo-escuro); display: inline-flex; align-items: center; gap: 6px; }
.cst-burger { display: none; width: 28px; height: 20px; flex-direction: column; justify-content: space-between; padding: 2px 0; }
.cst-burger span { display: block; height: 2px; background: var(--tinta); transition: transform .2s; }
.cst-burger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.cst-burger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.cst-mobile { position: fixed; inset: 0; top: 61px; z-index: 40; background: var(--papel); padding: 32px var(--pad); display: flex; flex-direction: column; justify-content: space-between; }
.cst-mobile nav { display: flex; flex-direction: column; gap: 14px; }
.cst-mobile nav a { font-size: 34px; }
.cst-mobile nav a.ativo { color: var(--azul); }
.cst-search { position: fixed; left: 0; right: 0; top: 0; z-index: 60; background: var(--papel); border-bottom: 1px solid var(--linha); padding: 28px var(--pad) 32px; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.cst-search form { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.cst-search-row { display: flex; gap: 12px; align-items: center; }
.cst-search-row input { flex: 1; border: 0; border-bottom: 2px solid var(--tinta); background: transparent; padding: 8px 0; font-size: clamp(22px, 3vw, 34px); font-family: var(--serif); outline: none; }
.cst-search-close { font-size: 32px; line-height: 1; color: var(--cinza); padding: 0 6px; }
.cst-search-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cst-search-results:empty { display: none; }
.cst-search-results .cap { display: block; margin-bottom: 8px; color: var(--cinza); }
.cst-search-results a { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--linha); font-size: 14px; }
.cst-search-results a img { width: 40px; height: 40px; object-fit: cover; background: var(--reboco); }
.cst-search-results a em { font-family: var(--serif); }
.cst-search-results a small { color: var(--cinza); margin-left: auto; }

/* footer */
.cst-footer { background: var(--tinta); color: var(--papel); padding: 56px var(--pad) 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-top: clamp(40px, 5vw, 72px); }
.cst-dark + .cst-footer, .cst-prevnext + .cst-footer { margin-top: 0; }
.cst-footer-brand { display: flex; flex-direction: column; gap: 12px; }
.cst-footer-brand .wm { font-size: 28px; }
.cst-footer-brand .serif { font-size: 14px; color: var(--claro); line-height: 1.5; max-width: 34ch; }
.cst-footer-col { display: flex; flex-direction: column; gap: 10px; }
.cst-footer-col span { color: #7A7A74; }
.cst-footer-col a:hover { color: var(--amarelo); }
.cst-footer-col li { display: contents; }
.cst-footer-base { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(250,250,248,.18); padding-top: 20px; font-size: 11px; color: #7A7A74; }

/* hero */
.cst-hero { position: relative; height: clamp(520px, 78vh, 800px); background: var(--tinta); overflow: hidden; }
.cst-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.cst-hero-slide.ativo { opacity: 1; }
.cst-hero-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.cst-hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,0) 30%, rgba(18,18,18,.85) 100%); }
.cst-hero-body { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; color: var(--papel); }
.cst-hero-text { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.cst-hero-text h1 { font-size: clamp(40px, 6.4vw, 92px); }
.cst-hero-text .serif { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; color: var(--linha); max-width: 58ch; font-style: italic; }
.cst-hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; flex: none; }
.cst-hero-dots { position: absolute; left: var(--pad); top: 26px; z-index: 3; display: flex; gap: 8px; }
.cst-hero-dots button { width: 28px; height: 2px; background: rgba(250,250,248,.35); padding: 8px 0; background-clip: content-box; }
.cst-hero-dots button.ativo { background-color: var(--papel); }

/* home */
.cst-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.cst-foco { display: grid; grid-template-columns: 1fr 1fr; background: var(--reboco); border-top: 3px solid var(--azul); }
.cst-foco-img { padding: clamp(24px, 4vw, 56px); display: flex; align-items: center; justify-content: center; }
.cst-foco-img img { max-height: 480px; width: auto; max-width: 100%; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.cst-foco-body { padding: clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px) 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cst-foco-body h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; }
.cst-foco-body p { font-size: 16px; line-height: 1.6; color: var(--cinza-2); max-width: 52ch; }
.cst-foco-body .link { align-self: flex-start; margin-top: 6px; }
.cst-nucleos-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.cst-nucleo-card { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--tinta); padding-top: 14px; scroll-snap-align: start; }
.cst-nucleo-img { display: block; aspect-ratio: 4 / 3; background: var(--reboco); overflow: hidden; }
.cst-nucleo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cst-nucleo-card:hover img { transform: scale(1.03); }
.cst-nucleo-card .wm { font-size: 22px; letter-spacing: 0; }
.cst-nucleo-card .serif { font-size: 14px; line-height: 1.45; }
.cst-casa { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding-bottom: clamp(40px, 5vw, 72px); }
.cst-casa-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cst-casa-body { display: flex; flex-direction: column; gap: 18px; }
.cst-casa-body h2 { font-size: clamp(36px, 4vw, 56px); }
.cst-casa-body p { font-size: 17px; line-height: 1.6; color: var(--cinza-2); max-width: 56ch; }

/* histórias */
.cst-hist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.cst-hist { display: flex; flex-direction: column; gap: 14px; }
.cst-hist-img { display: block; aspect-ratio: 4 / 3; background: var(--reboco); overflow: hidden; }
.cst-hist-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cst-hist:hover .cst-hist-img img { transform: scale(1.03); }
.cst-hist-body { display: flex; flex-direction: column; gap: 8px; }
.cst-hist-title { font-size: 22px; line-height: 1.2; }
.cst-hist-ex { font-size: 15px; line-height: 1.5; color: var(--cinza-2); }
.cst-hist.big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.cst-hist.big .cst-hist-img { aspect-ratio: 16 / 10; }
.cst-hist.big .cst-hist-title { font-size: clamp(28px, 3vw, 40px); }
.cst-hist.big .cst-hist-ex { font-size: 17px; }

/* vídeos */
.cst-vid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cst-vid-grid.home { grid-template-columns: 1.6fr 1fr 1fr; }
.cst-vid { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #222; }
.cst-vid img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s, opacity .3s; }
.cst-vid:hover img { transform: scale(1.03); opacity: 1; }
.cst-vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,0) 40%, rgba(18,18,18,.8)); }
.cst-vid-cap { position: absolute; left: 18px; right: 70px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 6px; color: var(--papel); }
.cst-vid-cap .serif { font-size: 17px; font-style: italic; line-height: 1.25; }
.cst-vid.big .cst-vid-cap .serif { font-size: 24px; }
.cst-play { position: absolute; right: 18px; bottom: 14px; z-index: 2; width: 44px; height: 44px; border: 1.5px solid var(--papel); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--papel); }
.cst-vid-grid.home .cst-vid.big { grid-row: span 1; }
.cst-videos .cst-page-head { color: var(--papel); }
.cst-videos .cst-tabs { border-color: rgba(250,250,248,.25); }
.cst-vid-feat { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; margin-bottom: 40px; }
.cst-vid-feat-body { display: flex; flex-direction: column; gap: 12px; }
.cst-vid-feat-body h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.cst-vid-feat-body p { font-size: 16px; line-height: 1.55; }
.cst-player { background: #000; aspect-ratio: 16 / 9; position: relative; }
.cst-player iframe, .cst-player video { position: absolute; inset: 0; width: 100%; height: 100%; }
.cst-player-vazio { display: flex; align-items: center; justify-content: center; color: var(--claro); }
.cst-player-vazio img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.cst-player-vazio .cap { position: relative; }
.cst-audio { background: var(--reboco); padding: 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.cst-audio img { max-height: 420px; width: auto; }
.cst-audio audio { width: 100%; }
.cst-dark .cst-audio { background: #1d1d1d; }
.cst-video-page .cst-wrap { padding-top: 32px; }
.cst-video-info { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; margin: 28px 0 56px; }
.cst-video-info h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; margin: 10px 0 16px; }
.cst-video-info aside { display: flex; flex-direction: column; gap: 10px; }
.cst-video-info aside .cst-card { max-width: 320px; }
.cst-side-link { font-size: 18px; }
.cst-transcricao { margin-top: 24px; border-top: 1px solid rgba(250,250,248,.25); padding-top: 12px; }
.cst-transcricao summary { cursor: pointer; }
.cst-transcricao .serif { color: var(--claro); font-size: 15px; margin-top: 10px; }

/* acervo */
.cst-acervo-bar { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--tinta); border-bottom: 1px solid var(--linha); padding: 12px 0; position: sticky; top: 61px; background: var(--papel); z-index: 10; }
.cst-acervo-search { display: flex; align-items: center; gap: 10px; flex: 1; }
.cst-acervo-search input { flex: 1; border: 0; background: transparent; font-size: 16px; padding: 6px 0; outline: none; font-family: var(--serif); }
.cst-acervo-count { font-size: 13px; color: var(--cinza); white-space: nowrap; }
.cst-acervo-count strong { color: var(--tinta); font-weight: 600; }
.cst-select { display: flex; align-items: center; gap: 8px; }
.cst-select select { border: 0; background: transparent; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--tinta); border-bottom: 1px solid var(--linha-2); padding: 4px 0; }
.cst-filters-toggle { display: none; }
.cst-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.cst-chips:empty { display: none; }
.cst-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; background: var(--reboco); padding: 6px 10px; }
.cst-chip span { color: var(--cinza); }
.cst-chip button { font-size: 16px; line-height: 1; color: var(--cinza); }
.cst-chip button:hover { color: var(--tinta); }
.cst-acervo-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; margin-top: 24px; }
.cst-facets { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; scrollbar-width: thin; padding-right: 6px; }
.cst-facet { border-bottom: 1px solid var(--linha); padding: 10px 0; }
.cst-facet summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; padding: 4px 0; }
.cst-facet summary::-webkit-details-marker { display: none; }
.cst-facet summary::after { content: "+"; font-weight: 400; color: var(--cinza); }
.cst-facet[open] summary::after { content: "–"; }
.cst-facet-n { color: var(--cinza); font-weight: 400; margin-left: auto; margin-right: 10px; }
.cst-facet-search { width: 100%; border: 1px solid var(--linha); padding: 6px 8px; font-size: 12px; margin: 6px 0; background: var(--papel); }
.cst-facet ul { max-height: 260px; overflow: auto; scrollbar-width: thin; margin-top: 4px; }
.cst-facet li label { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; cursor: pointer; }
.cst-facet li label input { margin: 0; accent-color: var(--tinta); width: 13px; height: 13px; flex: none; }
.cst-facet li label span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cst-facet li label em { font-style: normal; color: var(--cinza); font-size: 11px; }
.cst-facet li label.on span { font-weight: 600; }
.cst-facet li[hidden] { display: none; }
.cst-facets [data-clear] { align-self: flex-start; margin-top: 12px; }
.cst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 40px 24px; }
.cst-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cst-card { display: flex; flex-direction: column; gap: 12px; }
.cst-card-img { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 260px; background: var(--reboco); padding: 18px; }
.cst-card-img img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 24px rgba(0,0,0,.12); transition: transform .35s; }
.cst-card:hover .cst-card-img img { transform: translateY(-4px); }
.cst-noimg { font-family: var(--sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--claro); align-self: center; }
.cst-badge { position: absolute; left: 10px; top: 10px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; background: var(--tinta); color: var(--papel); padding: 4px 7px; }
.cst-legend { display: flex; flex-direction: column; gap: 2px; font-size: 11px; line-height: 1.4; color: var(--cinza-2); }
.cst-legend .a { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--tinta); }
.cst-legend .t { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--tinta); }
.cst-legend .cst-code { margin-top: 2px; }
.cst-dark .cst-legend, .cst-dark .cst-legend .a, .cst-dark .cst-legend .t { color: var(--papel); }
.cst-dark .cst-legend .m { color: var(--claro); }

/* obra */
.cst-obra { max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: clamp(28px, 4vw, 64px); }
.cst-obra .cst-crumb { grid-column: 1 / -1; margin-bottom: 0; }
.cst-obra-stage { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; align-self: start; }
.cst-parede { background: var(--reboco); padding: clamp(20px, 4vw, 56px); display: flex; align-items: center; justify-content: center; min-height: 360px; position: relative; }
.cst-parede-vazia { min-height: 420px; }
.cst-zoom { display: flex; cursor: zoom-in; max-height: 76vh; }
.cst-zoom img { max-height: 76vh; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.cst-zoom-hint { position: absolute; right: 14px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; opacity: .7; }
.cst-vistas { display: flex; gap: 8px; flex-wrap: wrap; }
.cst-vistas button { width: 64px; height: 64px; border: 1px solid var(--linha); background: var(--reboco); padding: 3px; }
.cst-vistas button.ativo { border-color: var(--tinta); }
.cst-vistas img { width: 100%; height: 100%; object-fit: cover; }
.cst-credito { font-size: 10px; }
.cst-obra-info { display: flex; flex-direction: column; gap: 28px; padding-top: 6px; }
.cst-obra-head { display: flex; flex-direction: column; gap: 10px; }
.cst-obra-artist { font-size: 13px; align-self: flex-start; }
.cst-obra-head h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; font-weight: 400; }
.cst-obra-head .cst-ano { font-style: normal; color: var(--cinza); font-size: .6em; font-family: var(--sans); }
.cst-obra-texto { font-size: 17px; line-height: 1.65; color: var(--cinza-2); }
.cst-obra-texto p { margin: 0 0 1em; }
.cst-obra-texto .cap { margin-top: -4px; }
.cst-restrito { border: 1px solid var(--amarelo); border-left: 4px solid var(--amarelo); background: #FBF6E4; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.cst-restrito > .cap { color: var(--amarelo-escuro); display: inline-flex; align-items: center; gap: 6px; }
.cst-restrito .row { border-color: #EAD9A0; }
.cst-obra-share { display: flex; gap: 20px; }
.cst-obra-share button, .cst-obra-share a { border-bottom: 1px solid var(--linha-2); padding-bottom: 2px; font: inherit; letter-spacing: inherit; text-transform: inherit; }

/* artistas */
.cst-artist-feat { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin-bottom: 48px; }
.cst-artist-card { display: flex; flex-direction: column; gap: 10px; }
.cst-artist-img { display: block; aspect-ratio: 1; background: var(--reboco); overflow: hidden; }
.cst-artist-img img { width: 100%; height: 100%; object-fit: cover; }
.cst-artist-card .wm { font-size: 16px; letter-spacing: 0; }
.cst-az-nav { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; border-top: 1px solid var(--tinta); border-bottom: 1px solid var(--linha); padding: 12px 0; position: sticky; top: 61px; background: var(--papel); z-index: 5; }
.cst-az-nav span { color: var(--linha-2); }
.cst-az-nav input { margin-left: auto; border: 0; border-bottom: 1px solid var(--linha-2); background: transparent; padding: 4px 0; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; outline: none; min-width: 200px; }
.cst-az { display: flex; flex-direction: column; }
.cst-az-group { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--linha); }
.cst-az-group[hidden] { display: none; }
.cst-az-letter { font-size: 64px; color: var(--linha-2); }
.cst-az-group ul { columns: 3; column-gap: 32px; }
.cst-az-group li { break-inside: avoid; }
.cst-az-group li[hidden] { display: none; }
.cst-az-group li a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--linha); font-size: 15px; }
.cst-az-group li a em { font-style: normal; color: var(--cinza); font-size: 12px; }
.cst-artist { padding-top: 24px; }
.cst-artist-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; margin-bottom: 48px; align-items: start; }
.cst-artist-body { display: flex; flex-direction: column; gap: 18px; }
.cst-artist-body h1 { font-size: clamp(38px, 5.4vw, 76px); }
.cst-artist-bio { font-size: 17px; line-height: 1.6; color: var(--cinza-2); max-width: 62ch; }
.cst-artist-bio p { margin: 0 0 1em; }
.cst-artist-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* núcleos */
.cst-nucleos { display: flex; flex-direction: column; }
.cst-nucleo-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding: 40px 0; border-top: 1px solid var(--tinta); align-items: center; }
.cst-nucleo-row.inv .cst-nucleo-media { order: 2; }
.cst-nucleo-media { position: relative; display: block; }
.cst-nucleo-media > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cst-nucleo-obras { position: absolute; right: 16px; bottom: -18px; display: flex; gap: 8px; }
.cst-nucleo-obras img { width: 72px; height: 72px; object-fit: cover; background: var(--papel); border: 3px solid var(--papel); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.cst-nucleo-body { display: flex; flex-direction: column; gap: 12px; }
.cst-nucleo-body .wm { font-size: clamp(28px, 3.2vw, 44px); }
.cst-nucleo-body .sub { font-size: 19px; color: var(--cinza-2); }
.cst-nucleo-body .serif:not(.sub) { font-size: 15px; line-height: 1.55; color: var(--cinza-2); }
.cst-nucleo-hero { position: relative; min-height: 460px; background: var(--tinta); display: flex; align-items: flex-end; overflow: hidden; }
.cst-nucleo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.cst-nucleo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,0) 30%, rgba(18,18,18,.85)); }
.cst-nucleo-hero-body { position: relative; z-index: 2; color: var(--papel); padding: 48px var(--pad); max-width: var(--max); width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.cst-nucleo-hero-body h1 { font-size: clamp(40px, 6vw, 88px); }
.cst-nucleo-hero-body p { font-size: 20px; color: var(--linha); }
.cst-nucleo-page { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 64px; padding-top: 48px; }
.cst-nucleo-side { display: flex; flex-direction: column; gap: 10px; }

/* exposição */
.cst-expo-hero { position: relative; height: clamp(480px, 72vh, 760px); background: var(--tinta); overflow: hidden; }
.cst-expo-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cst-expo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,0) 30%, rgba(18,18,18,.85)); }
.cst-expo-hero-body { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; z-index: 2; color: var(--papel); display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.cst-expo-hero-body h1 { font-size: clamp(38px, 6vw, 88px); }
.cst-expo-hero-body p { font-size: 18px; color: var(--linha); }
.cst-expo-dados { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding-top: 40px; }
.cst-expo-links { display: flex; flex-direction: column; gap: 14px; }
.cst-expo-link { display: flex; flex-direction: column; gap: 8px; background: var(--reboco); border-top: 3px solid var(--azul); padding: 20px; }
.cst-expo-link .serif { font-size: 16px; line-height: 1.5; color: var(--cinza-2); }
.cst-expo-texto { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr; gap: 64px; align-items: start; }
.cst-expo-texto-col { display: flex; flex-direction: column; gap: 14px; }
.cst-expo-fig { position: sticky; top: 90px; }
.cst-expo-fig button { display: block; cursor: zoom-in; }
.cst-expo-fig figcaption { margin-top: 8px; }
.cst-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cst-mosaic button { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--reboco); cursor: zoom-in; }
.cst-mosaic button.wide { grid-column: span 2; }
.cst-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cst-mosaic button:hover img { transform: scale(1.03); }
.cst-mosaic + .cap { margin-top: 10px; display: block; }
.cst-colec-texto { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.cst-colec-texto .serif.big { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.5; }
.cst-colec-texto .serif.big p { margin: 0 0 1em; }
.cst-expo-list { display: flex; flex-direction: column; }
.cst-expo-item { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 32px 0; border-top: 1px solid var(--tinta); align-items: center; }
.cst-expo-item-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.cst-expo-item-body { display: flex; flex-direction: column; gap: 10px; }
.cst-expo-item-body .wm { font-size: clamp(26px, 3vw, 40px); }

/* história */
.cst-hist-head { padding-top: 32px; display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.cst-hist-head h1 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.05; font-weight: 600; }
.cst-hist-hero { max-width: var(--max); margin: 32px auto 0; padding: 0 var(--pad); }
.cst-hist-hero img { width: 100%; max-height: 80vh; object-fit: cover; }
.cst-hist-hero.obra { background: var(--reboco); padding: clamp(24px, 4vw, 56px); max-width: calc(var(--max) - 2 * var(--pad)); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cst-hist-hero.obra img { max-height: 70vh; width: auto; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.cst-hist-hero.obra button { cursor: zoom-in; }
.cst-hist-hero figcaption { margin-top: 8px; }
.cst-hist-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 64px; padding-top: 40px; }
.cst-hist-side { display: flex; flex-direction: column; gap: 10px; }
.cst-side-obras { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.cst-side-obras .cst-card-img { height: 150px; padding: 10px; }

/* a coleção */
.cst-colecao-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.cst-colecao-head > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.cst-colecao-head h1 { font-size: clamp(38px, 5.6vw, 80px); }
.cst-colecao-texto { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 64px; }
.cst-colecao-texto aside { display: flex; flex-direction: column; gap: 10px; }
.cst-bars { display: flex; gap: 10px; align-items: flex-end; height: 200px; border-bottom: 1px solid var(--tinta); }
.cst-bars.small { height: 120px; }
.cst-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; position: relative; }
.cst-bar-fill { width: 100%; background: var(--azul); min-height: 2px; transition: background .15s; }
.cst-bar:hover .cst-bar-fill { background: var(--amarelo); }
.cst-bar .cap { font-size: 10px; }
.cst-bar em { position: absolute; top: -18px; font-style: normal; font-size: 11px; color: var(--cinza); opacity: 0; }
.cst-bar:hover em { opacity: 1; }
.cst-bar { padding-top: 20px; }
.cst-bar .cst-bar-fill { max-height: calc(100% - 40px); }
.cst-creditos .cst-ficha { max-width: 900px; }

/* gestão */
.cst-gestao .cst-page-head .cap { display: inline-flex; align-items: center; gap: 6px; }
.cst-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--tinta); padding-top: 18px; }
.cst-kpis .cst-num .wm { font-size: clamp(26px, 2.6vw, 40px); }
.cst-gestao-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.cst-gestao-box { background: var(--reboco); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.cst-zonas li button { width: 100%; display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--linha-2); font-size: 14px; text-align: left; }
.cst-zonas li button:hover { color: var(--azul); }
.cst-zonas em { font-style: normal; color: var(--cinza); }
.cst-gestao-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 40px; border-top: 1px solid var(--tinta); padding-top: 14px; }
.cst-gestao-bar input, .cst-gestao-bar select { border: 1px solid var(--linha-2); background: var(--papel); padding: 8px 10px; font-size: 13px; }
.cst-gestao-bar input { flex: 1; min-width: 220px; }
.cst-table-wrap { overflow-x: auto; margin-top: 16px; }
.cst-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cst-table th { text-align: left; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--cinza); padding: 10px 8px; border-bottom: 1px solid var(--tinta); white-space: nowrap; }
.cst-table td { padding: 8px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
.cst-table .num, .cst-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cst-table td img { width: 44px; height: 44px; object-fit: cover; background: var(--reboco); }
.cst-table td .serif { font-style: italic; }
.cst-table .cst-code { color: var(--tinta); }
.cst-table .lac { display: inline-block; font-size: 10px; background: #FBF6E4; color: var(--amarelo-escuro); padding: 2px 6px; margin: 1px 2px 1px 0; }
.cst-table td.acoes a { font-size: 11px; margin-right: 8px; border-bottom: 1px solid var(--linha-2); }
.cst-table tr.rascunho td { opacity: .55; }

/* 404 */
.cst-404 { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-bottom: 80px; min-height: 50vh; }
.cst-404 .wm { font-size: clamp(90px, 20vw, 220px); color: var(--linha-2); }
.cst-404 .serif { font-size: 24px; }

/* lightbox */
.cst-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(18,18,18,.96); display: flex; align-items: center; justify-content: center; padding: 48px; }
.cst-lightbox figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cst-lightbox img { max-width: calc(100vw - 96px); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; }
.cst-lightbox figcaption { color: var(--claro); font-family: var(--serif); font-style: italic; font-size: 14px; text-align: center; }
.cst-lb-close { position: absolute; top: 14px; right: 22px; color: var(--papel); font-size: 40px; line-height: 1; }
.cst-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--papel); font-size: 54px; line-height: 1; padding: 20px; opacity: .7; }
.cst-lb-nav:hover { opacity: 1; }
.cst-lb-nav.prev { left: 6px; } .cst-lb-nav.next { right: 6px; }
.cst-lb-nav[hidden] { display: none; }
body.cst-lb-open { overflow: hidden; }

/* toast */
.cst-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--tinta); color: var(--papel); padding: 10px 16px; font-size: 12px; letter-spacing: .06em; z-index: 120; }

/* responsivo */
@media (max-width: 1100px) {
  .cst-nav { display: none; }
  .cst-burger { display: flex; }
  .cst-hist-grid, .cst-vid-grid, .cst-vid-grid.home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cst-grid.cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cst-artist-feat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cst-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cst-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cst-footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .cst-intro, .cst-foco, .cst-casa, .cst-obra, .cst-artist-head, .cst-nucleo-row, .cst-nucleo-page, .cst-expo-dados, .cst-expo-texto, .cst-hist-layout, .cst-colecao-head, .cst-colecao-texto, .cst-gestao-cols, .cst-video-info, .cst-vid-feat, .cst-expo-item, .cst-hist.big { grid-template-columns: 1fr; gap: 28px; }
  .cst-nucleo-row.inv .cst-nucleo-media { order: 0; }
  .cst-foco-body { padding: 0 24px 28px; }
  .cst-obra-stage { position: static; }
  .cst-hero { height: 78vh; }
  .cst-hero-body { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cst-hero-actions { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  .cst-acervo-body { grid-template-columns: 1fr; }
  .cst-facets { display: none; position: static; max-height: none; }
  .cst-facets.aberto { display: flex; }
  .cst-filters-toggle { display: inline-flex; }
  .cst-acervo-bar { flex-wrap: wrap; gap: 10px 16px; position: static; }
  .cst-acervo-search { flex-basis: 100%; }
  .cst-select { display: none; }
  .cst-grid, .cst-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .cst-card-img { height: 200px; padding: 12px; }
  .cst-az-group { grid-template-columns: 1fr; gap: 8px; }
  .cst-az-group ul { columns: 1; }
  .cst-az-letter { font-size: 40px; }
  .cst-az-nav input { flex-basis: 100%; margin: 8px 0 0; }
  .cst-expo-fig { position: static; }
  .cst-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cst-mosaic button.wide { grid-column: span 2; }
  .cst-hist-grid, .cst-vid-grid, .cst-vid-grid.home, .cst-artist-feat { grid-template-columns: 1fr; }
  .cst-artist-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cst-footer { grid-template-columns: 1fr; gap: 28px; }
  .cst-prevnext a { max-width: 100%; }
  .cst-result-list li a { grid-template-columns: 1fr; gap: 4px; }
  .cst-lightbox { padding: 12px; }
  .cst-lightbox img { max-width: calc(100vw - 24px); }
  .cst-ficha .row { grid-template-columns: 110px 1fr; }
  .cst-side-obras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
/* barra do WordPress para usuários logados */
.admin-bar .cst-header { top: 32px; }
.admin-bar .cst-mobile { top: 93px; }
.admin-bar .cst-acervo-bar, .admin-bar .cst-az-nav { top: 93px; }
@media (max-width: 782px) { .admin-bar .cst-header { top: 46px; } .admin-bar .cst-mobile { top: 107px; } }

/* Antônio Prado */
.cst-cidade .cst-casa-img { display: flex; flex-direction: column; gap: 10px; }
.cst-cidade .cst-casa-img > a img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.cst-cidade-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cst-cidade-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cst-cidade .cst-casa-body h2 { font-size: clamp(30px, 3.4vw, 48px); }
.cst-casa-img button { display: block; width: 100%; cursor: zoom-in; }
.cst-ap-hero { position: relative; height: clamp(480px, 76vh, 780px); background: var(--tinta); overflow: hidden; }
.cst-ap-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.cst-ap-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,18,18,0) 35%, rgba(18,18,18,.82)); }
.cst-ap-hero-body { position: absolute; left: var(--pad); right: var(--pad); bottom: 48px; z-index: 2; color: var(--papel); display: flex; flex-direction: column; gap: 14px; max-width: 900px; }
.cst-ap-hero-body h1 { font-size: clamp(44px, 7vw, 104px); }
.cst-ap-hero-body p { font-size: 19px; color: var(--linha); font-style: italic; }
.cst-ap-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.cst-ap-texto { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 64px; align-items: start; }
.cst-ap-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; }
.cst-ap-fig button { display: block; cursor: zoom-in; }
.cst-ap-fig figcaption { margin: 8px 0 20px; font-size: 10px; text-transform: none; letter-spacing: .04em; line-height: 1.4; }
.cst-mosaic.ap { grid-auto-flow: dense; }
.cst-mosaic.ap figure { display: flex; flex-direction: column; gap: 8px; }
.cst-mosaic.ap figure button { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--reboco); cursor: zoom-in; }
.cst-mosaic.ap figure.tall { grid-row: span 2; }
.cst-mosaic.ap figure.tall button { aspect-ratio: auto; height: 100%; }
.cst-mosaic.ap figure img { width: 100%; height: 100%; object-fit: cover; }
.cst-mosaic.ap .cst-legend .m { font-size: 11px; line-height: 1.4; }
.cst-marcos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.cst-marco { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--tinta); padding-top: 14px; }
.cst-marco .wm { font-size: 30px; color: var(--azul); letter-spacing: 0; }
.cst-marco .serif.it { font-size: 20px; }
.cst-marco .serif.gray { font-size: 14px; line-height: 1.5; }
.cst-ap-visita { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.cst-ap-visita h2 { font-size: clamp(30px, 3.4vw, 48px); margin: 10px 0 16px; }
.cst-ap-visita p { font-size: 17px; line-height: 1.6; color: var(--claro); max-width: 56ch; margin-bottom: 20px; }
.cst-ap-links li { border-color: rgba(250,250,248,.2); }
@media (max-width: 860px) {
  .cst-ap-intro, .cst-ap-texto, .cst-ap-visita { grid-template-columns: 1fr; gap: 28px; }
  .cst-ap-side { position: static; }
  .cst-marcos { grid-template-columns: 1fr 1fr; }
  .cst-mosaic.ap figure.tall { grid-row: auto; }
  .cst-mosaic.ap figure.tall button { aspect-ratio: 4 / 3; height: auto; }
}

/* edição pelo site (usuário logado) */
.cst-editable { position: relative; }
.cst-editable.big { grid-column: 1 / -1; }
.cst-editable > .cst-hist.big { display: grid; }
.cst-edit { position: absolute; top: 10px; right: 10px; z-index: 6; display: inline-flex; align-items: center; gap: 6px; background: var(--amarelo); color: var(--tinta); font-family: var(--sans); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 6px 9px; box-shadow: 0 2px 8px rgba(0,0,0,.18); opacity: .92; transition: opacity .15s, transform .15s; }
.cst-edit:hover { opacity: 1; color: var(--tinta); transform: translateY(-1px); }
.cst-edit.hero { top: 20px; right: var(--pad); }
.cst-edit.inline, .cst-edit.static { position: static; }
.cst-edit-row { margin: -12px 0 20px; }
.cst-editable:hover > .cst-edit, .cst-editable:focus-within > .cst-edit { opacity: 1; }
.cst-hero .cst-edit { z-index: 4; }
.cst-toolbar { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 4px; background: var(--tinta); color: var(--papel); padding: 6px 8px 6px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 12px; flex-wrap: wrap; max-width: calc(100vw - 32px); }
.cst-toolbar .cap { color: var(--amarelo); margin-right: 6px; }
.cst-toolbar a { padding: 6px 10px; border-radius: 2px; }
.cst-toolbar a:hover { background: rgba(250,250,248,.12); color: var(--papel); }
.cst-toolbar button { color: var(--claro); font-size: 18px; padding: 0 6px 0 10px; line-height: 1; }
.cst-toolbar[hidden] { display: none !important; }
.cst-hub { margin-bottom: 48px; }
.cst-hub-dica { margin: -8px 0 20px; font-size: 15px; }
.cst-hub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cst-hub-card { background: var(--reboco); border-top: 3px solid var(--azul); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.cst-hub-card .wm { font-size: 18px; letter-spacing: 0; }
.cst-hub-card .serif { font-size: 14px; line-height: 1.45; flex: 1; }
.cst-hub-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cst-casa-texto p { margin: 0 0 .9em; }
@media (max-width: 1100px) { .cst-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cst-hub-grid { grid-template-columns: 1fr; } .cst-toolbar { right: 8px; left: 8px; bottom: 8px; } }
