/* Revisão de Victor: guias comuns, fotos completas e galerias abertas. */
:root{--gutter:clamp(28px,4.4vw,96px);--header:140px;--footer:88px}
.topbar{height:var(--header);padding:34px var(--gutter) 14px;align-items:center}
.bottom-nav{padding-left:var(--gutter);padding-right:var(--gutter)}
.scene{padding-left:var(--gutter);padding-right:var(--gutter)}
.scene-inner{max-width:none;margin:0;padding-left:0;padding-right:0;scrollbar-gutter:auto}
.brand{width:clamp(270px,27vw,410px)}
.eyebrow{font-size:clamp(14px,1.08vw,18px);letter-spacing:.12em}
.scene[data-kind=hero] .eyebrow{font-size:clamp(18px,1.5vw,25px);letter-spacing:.1em}
.draft{display:none}
.scene .media-layout{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.3fr);gap:clamp(28px,3.3vw,64px);align-items:center;justify-content:normal;overflow-y:auto;overflow-x:hidden}
.chart-layout,.actions-list,.org-chart,.activity-table,.deliveries-list{max-width:none;width:100%}
.media-copy{display:flex;flex-direction:column;gap:clamp(16px,2.2vh,29px);min-width:0}
.media-copy h2{font-size:clamp(33px,3.65vw,65px);line-height:1.1;letter-spacing:-.05em;overflow-wrap:normal}
.media-copy .eyebrow{line-height:1.7}
.media-copy .title-line{overflow:visible}
.media-copy .lead{font-size:clamp(17px,1.4vw,23px);line-height:1.75}
.media-copy .photo-caption{font-size:14px;line-height:1.7;opacity:.72}
.media-visual{height:100%;min-height:0;min-width:0;display:grid;align-items:center;justify-items:stretch;padding:8px 0}
.mission-text{font-size:clamp(17px,1.35vw,21px);line-height:1.8}
.mission-visual{margin:0;display:grid;gap:18px;width:100%}
.mission-visual img{display:block;width:100%;height:auto;max-height:49vh;object-fit:contain;border-radius:3px}
.mission-visual figcaption{font-size:14px;font-weight:600;line-height:1.6;border-left:3px solid var(--yellow);padding-left:16px}
.media-copy .budget-flow{display:grid;gap:18px;margin:0}
.media-copy .budget-step{display:grid;grid-template-columns:80px 1fr;align-items:center;gap:14px}
.media-copy .budget-step b{font-size:31px}
.media-copy .budget-step span{font-size:16px;line-height:1.6}
.single-photo{width:100%;height:100%;max-height:580px;min-height:0;display:grid;align-items:center}
.single-photo>.gallery-item{height:100%;width:100%;background:none;max-height:580px}
.single-photo .gallery-item img,.gallery-main img,.gallery-thumb img,.recognition-grid .gallery-item img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transform:none;scale:none}
.gallery-item:hover img,.gallery-thumb:hover img{scale:none;filter:brightness(1.04)}
.gallery-overview{height:100%;max-height:590px;min-height:0;display:grid;grid-template-rows:minmax(150px,1fr) auto auto;gap:12px;width:100%}
.gallery-main{width:100%;height:100%;min-height:0;background:rgb(127 147 177 / .055)}
.gallery-thumbs{display:grid;grid-template-columns:repeat(var(--thumb-cols,3),minmax(0,1fr));grid-auto-rows:clamp(68px,10.6vh,110px);gap:10px;min-width:0}
.gallery-thumb{height:100%;min-height:0;min-width:0;padding:4px;background:rgb(127 147 177 / .07);border:2px solid transparent;border-radius:3px;transition:border-color .2s,background .2s}
.gallery-thumb[aria-pressed=true]{border-color:var(--yellow);background:rgb(127 147 177 / .14)}
.scene[data-theme=light] .gallery-thumb[aria-pressed=true]{border-color:var(--blue)}
.gallery-hint{font-size:12px;line-height:1.6;display:flex;justify-content:space-between;gap:14px;opacity:.75}
.gallery-hint [data-main-count]{white-space:nowrap;font-weight:600}
.media-copy .people{font-size:clamp(16px,1.2vw,20px);line-height:1.85}
.media-copy .feature-period{font-size:clamp(39px,4vw,67px);margin-top:0;gap:18px}
.media-copy .feature-period i{width:46px}
.scene[data-kind=recognition] .media-layout{grid-template-columns:minmax(0,.68fr) minmax(0,1.65fr);gap:36px}
.scene[data-kind=recognition] .media-copy h2{font-size:clamp(34px,3.35vw,58px)}
.recognition-grid{height:100%;max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}
.recognition-grid figure{height:100%;min-height:0;display:grid;grid-template-rows:minmax(220px,1fr) auto;gap:18px;align-items:stretch}
.recognition-grid .gallery-item{height:100%;max-height:none;width:100%;background:none}
.recognition-grid figcaption{font-size:15px;line-height:1.7;margin:0}
.scene[data-kind=closing]{background:#101b21}
.scene[data-kind=closing] .photo-shade{background:linear-gradient(180deg,rgb(0 0 0 / .28),rgb(0 0 0 / .53) 45%,rgb(0 0 0 / .72))}
.scene[data-kind=closing] .scene-photo{object-position:center;filter:none}
.scene[data-kind=closing] .scene-inner{align-items:center;justify-content:safe center;text-align:center;gap:30px}
.scene[data-kind=closing] .eyebrow{font-size:clamp(17px,1.4vw,23px)}
.scene[data-kind=closing] h2{font-size:clamp(42px,5.2vw,88px);line-height:1.09;max-width:1250px}
.closing-layout{display:flex;flex-direction:column;gap:26px;align-items:center;max-width:1040px}
.closing-layout .lead{max-width:980px;font-size:clamp(20px,1.8vw,30px);line-height:1.65;opacity:.95}
.closing-keywords{justify-content:center;font-size:clamp(18px,1.6vw,27px);gap:25px 45px;margin-top:3px}
.closing-layout .restart{margin:0;font-size:15px}
.historical-widget{min-height:0;display:flex;flex-direction:column;gap:12px;max-width:none;width:100%}
.scene[data-kind=history] .scene-inner{gap:17px}
.scene[data-kind=history] h2{font-size:clamp(34px,3.6vw,58px)}
.scene[data-kind=history] h2 .title-line{display:inline;overflow:visible}
.scene[data-kind=history] h2 .title-line+.title-line:before{content:' '}
.scene[data-kind=history] h2 .title-line-text{display:inline}
.historical-controls{display:flex;flex-wrap:wrap;gap:6px;background:rgb(0 48 135 / .06);padding:5px;border-radius:8px;align-self:flex-start}
.historical-controls button{font-size:14px;font-weight:600;line-height:1.45;border-radius:5px;padding:10px 16px;background:transparent;min-height:40px}
.historical-controls button[aria-pressed=true]{background:var(--blue);color:white}
.historical-legend{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center}
.historical-legend button{display:inline-flex;align-items:center;gap:8px;font-size:14px;line-height:1.5;background:none;padding:5px 0;min-height:32px;text-align:left}
.historical-legend button[aria-pressed=false]{opacity:.4;text-decoration:line-through}
.legend-swatch{height:11px;width:11px;border-radius:2px;background:var(--series-color);display:block;flex-shrink:0}
.historical-legend .history-reset{margin-left:auto;font-size:13px;text-decoration:underline;text-underline-offset:5px;opacity:.7}
.historical-canvas-wrap{position:relative;min-height:0}
.historical-scroll{width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
.historical-canvas{width:100%;min-height:235px;display:grid;align-items:center}
.historical-canvas svg{width:100%;height:auto;max-height:42vh;min-height:235px;display:block;overflow:visible}
.history-tick line{stroke:rgb(9 36 87 / .12);stroke-width:1}
.history-tick text{fill:#526582;font-size:13px;font-family:Montserrat,Arial,sans-serif}
.history-group-label{fill:var(--ink);font-size:15px;font-family:Montserrat,Arial,sans-serif;font-weight:600}
.history-hit{fill:transparent;stroke:transparent;stroke-width:1.5}
.historical-bar{cursor:pointer;outline:none}
.historical-bar-fill{transform-box:fill-box;transform-origin:center bottom}
.historical-bar:hover .history-hit,.historical-bar:focus .history-hit,.historical-bar.is-selected .history-hit{stroke:var(--blue);fill:rgb(0 48 135 / .06)}
.history-bar-value{fill:var(--ink);font-size:14px;font-family:Montserrat,Arial,sans-serif;font-weight:700;opacity:0;pointer-events:none}
.historical-bar:hover .history-bar-value,.historical-bar:focus .history-bar-value,.historical-bar.is-selected .history-bar-value{opacity:1}
.historical-tooltip{position:absolute;z-index:8;pointer-events:none;background:var(--navy);color:#fff;min-width:160px;max-width:250px;box-shadow:0 10px 30px rgb(0 0 0 / .2);padding:12px 16px;border-radius:7px;font-size:14px;line-height:1.5}
.historical-tooltip strong{display:block;font-size:27px;line-height:1.2;color:var(--yellow);margin-bottom:3px}
.historical-tooltip span,.historical-tooltip small{display:block}
.historical-tooltip small{font-size:12px;opacity:.7;margin-top:3px}
.history-selection{font-size:14px;line-height:1.5;min-height:21px;color:var(--blue);font-weight:600}
.history-source{font-size:12px;line-height:1.5;opacity:.7}
.history-data{font-size:13px;line-height:1.5}
.history-data summary{cursor:pointer;padding:4px 0;display:list-item;text-underline-offset:4px}
.history-table-scroll{overflow:auto;margin-top:12px;max-height:270px}
.history-data table{border-collapse:collapse;font-size:14px;width:100%;min-width:900px}
.history-data th,.history-data td{border-bottom:1px solid rgb(9 36 87 / .15);padding:10px;text-align:right}
.history-data th:first-child{text-align:left;white-space:nowrap}
.history-data caption{text-align:left;font-size:13px;margin-bottom:10px}
.history-empty{padding:80px 30px;text-align:center;background:rgb(0 48 135 / .035);font-size:18px;line-height:1.7}
.media-copy .budget-flow{grid-template-columns:1fr}
.scene[data-kind=deliveries] .scene-inner,.scene[data-kind=chart] .scene-inner{gap:13px}
.deliveries-list{gap:12px 4.5vw}
.historical-widget{gap:8px}
.historical-controls{padding:4px}
.historical-controls button{min-height:36px;padding:8px 14px}
.historical-legend{gap:3px 16px}
.historical-legend button{min-height:28px;padding:3px 0}
.historical-canvas,.historical-canvas svg{min-height:0;max-height:none}
.history-source{display:none}
@media(min-width:1000px) and (max-height:820px){
  :root{--header:110px;--footer:76px}
  .topbar{padding-top:24px;padding-bottom:10px}
  .brand{max-width:310px}
  .scene-inner{gap:16px}
  .scene[data-kind=hero] .eyebrow{font-size:19px}
  .media-copy{gap:17px}
  .media-copy h2{font-size:clamp(32px,3.5vw,49px)}
  .media-copy .lead{font-size:17px;line-height:1.7}
  .mission-text{font-size:17px;line-height:1.7}
  .gallery-thumbs{grid-auto-rows:70px;gap:8px}
  .gallery-overview{gap:10px;grid-template-rows:minmax(140px,1fr) auto auto}
  .media-copy .budget-flow{gap:13px}
  .media-copy .budget-step b{font-size:27px}
  .media-copy .budget-step span{font-size:14px}
  .media-copy .people{font-size:16px;line-height:1.7}
  .scene[data-kind=recognition] .media-copy h2{font-size:39px}
  .recognition-grid figure{gap:14px;grid-template-rows:minmax(170px,1fr) auto}
  .recognition-grid figcaption{font-size:14px;line-height:1.6}
  .scene[data-kind=closing] .scene-inner{gap:23px}
  .scene[data-kind=closing] h2{font-size:clamp(44px,5vw,70px)}
  .closing-layout{gap:20px}
  .closing-layout .lead{font-size:23px}
  .closing-keywords{font-size:20px}
  .historical-widget{gap:8px}
  .scene[data-kind=history] .scene-inner{gap:12px}
  .scene[data-kind=history] h2{font-size:41px}
  .historical-canvas,.historical-canvas svg{min-height:0;max-height:none}
  .historical-controls button{padding:7px 13px;min-height:35px}
  .historical-legend{gap:3px 15px}
  .historical-legend button{font-size:13px;min-height:27px;padding:3px 0}
  .history-data{font-size:12px}
  .scene[data-kind=deliveries] .delivery-item{line-height:1.45}
  .scene[data-kind=deliveries] .deliveries-list{gap:8px 4.5vw}
  .scene[data-kind=chart] .bar-chart{gap:5px}
}
@media(max-width:1000px) and (min-width:761px){
  :root{--header:120px}
  .topbar{padding-top:28px;padding-bottom:14px}
  .media-copy h2{font-size:clamp(30px,3.8vw,38px)}
  .scene .media-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px}
  .scene[data-kind=recognition] .media-layout{grid-template-columns:1fr;gap:26px}
  .scene[data-kind=recognition] .media-visual{height:400px}
  .gallery-thumbs{grid-auto-rows:80px;gap:8px}
  .media-copy .people{font-size:16px;line-height:1.7}
}
@media(max-width:760px){
  :root{--header:100px;--footer:110px;--gutter:22px}
  .topbar{padding:23px var(--gutter) 12px;gap:10px}
  .brand{width:55vw;max-width:300px;min-width:0}
  .top-actions{gap:6px}
  .scene-inner{padding-left:0;padding-right:0;scrollbar-gutter:auto}
  .eyebrow{font-size:13px;letter-spacing:.09em}
  .scene[data-kind=hero] .eyebrow{font-size:16px;line-height:1.7}
  .scene .media-layout{display:flex;flex-direction:column;gap:29px;align-items:stretch;justify-content:flex-start}
  .media-copy{gap:21px}
  .media-copy h2{font-size:clamp(33px,7.4vw,52px)}
  .media-copy .lead,.mission-text{font-size:17px;line-height:1.8}
  .media-visual{height:auto;min-height:0;padding:0;flex-shrink:0}
  .mission-visual img{max-height:290px}
  .media-copy .budget-flow{gap:16px}
  .media-copy .budget-step{grid-template-columns:70px 1fr}
  .media-copy .budget-step b{font-size:28px}
  .media-copy .budget-step span{font-size:15px}
  .gallery-overview{height:auto;max-height:none;display:flex;flex-direction:column;gap:12px}
  .gallery-main{height:250px;flex-shrink:0}
  .gallery-thumbs{grid-auto-rows:83px;gap:8px}
  .gallery-hint{font-size:12px;line-height:1.6;gap:12px}
  .gallery-hint>span:last-child{max-width:240px}
  .single-photo,.single-photo>.gallery-item{height:280px;max-height:none}
  .scene[data-kind=team] .single-photo,.scene[data-kind=team] .single-photo>.gallery-item{height:330px}
  .media-copy .people{font-size:16px;line-height:1.85}
  .scene[data-kind=recognition] .media-layout{display:flex;gap:30px}
  .scene[data-kind=recognition] .media-copy h2{font-size:clamp(33px,7.4vw,52px)}
  .recognition-grid{display:flex;flex-direction:column;gap:29px;height:auto}
  .recognition-grid figure{height:auto;display:flex;flex-direction:column;gap:14px}
  .recognition-grid .gallery-item{height:300px}
  .recognition-grid figcaption{font-size:15px;line-height:1.7}
  .scene[data-kind=closing] .scene-inner{gap:25px;justify-content:flex-start;padding-top:30px}
  .scene[data-kind=closing] .eyebrow{font-size:15px}
  .scene[data-kind=closing] h2{font-size:clamp(38px,8.4vw,58px);line-height:1.16}
  .closing-layout{gap:25px}
  .closing-layout .lead{font-size:20px;line-height:1.8}
  .closing-keywords{font-size:17px;gap:20px 24px}
  .scene[data-kind=history] h2{font-size:clamp(33px,7.4vw,52px)}
  .scene[data-kind=history] h2 .title-line{display:block}
  .scene[data-kind=history] h2 .title-line+.title-line:before{display:none}
  .scene[data-kind=history] h2 .title-line-text{display:block}
  .historical-widget{gap:17px}
  .historical-controls{width:100%;display:grid;grid-template-columns:1fr;padding:4px;gap:4px}
  .historical-controls button{font-size:14px;padding:11px;min-height:44px}
  .historical-legend{gap:8px 16px}
  .historical-legend button{font-size:14px;min-height:38px}
  .historical-legend .history-reset{margin-left:0;font-size:14px}
  .historical-canvas{min-width:800px;min-height:270px}
  .historical-canvas svg{min-height:260px;max-height:none}
  .history-selection{font-size:14px;line-height:1.7}
  .history-data summary{font-size:14px;padding:10px 0}
  .history-source{font-size:12px;line-height:1.7}
}
@media print{
  :root{--gutter:68px;--header:0px;--footer:0px}
  .scene .media-layout{display:grid!important;grid-template-columns:minmax(0,.92fr) minmax(0,1.3fr);gap:38px!important;align-items:center;overflow:hidden!important}
  .scene .media-copy{gap:20px}
  .scene .media-copy h2{font-size:43px!important;line-height:1.13}
  .scene .media-copy .eyebrow{font-size:13px}
  .scene .media-copy .lead,.scene .mission-text{font-size:18px;line-height:1.75}
  .scene .media-visual{height:100%;padding:6px 0}
  .scene .mission-visual img{max-height:390px}
  .scene .media-copy .budget-flow{display:grid;gap:19px}
  .scene .media-copy .budget-step{display:grid;grid-template-columns:75px 1fr;gap:12px}
  .scene .media-copy .budget-step b{font-size:28px}
  .scene .media-copy .budget-step span{font-size:15px}
  .scene .gallery-overview{height:100%;max-height:550px;display:grid;grid-template-rows:minmax(160px,1fr) auto auto;gap:11px}
  .scene .gallery-thumbs{display:grid;grid-template-columns:repeat(var(--thumb-cols,3),minmax(0,1fr));grid-auto-rows:77px;gap:8px}
  .scene .gallery-main,.scene .single-photo,.scene .single-photo>.gallery-item{height:100%;max-height:530px}
  .scene .gallery-hint{font-size:11px}
  .scene .people{font-size:16px;line-height:1.8}
  .scene[data-kind=recognition] .media-layout{grid-template-columns:minmax(0,.68fr) minmax(0,1.65fr);gap:32px!important}
  .scene .recognition-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;height:100%}
  .scene .recognition-grid figure{display:grid;grid-template-rows:minmax(220px,1fr) auto;height:100%;gap:18px}
  .scene .recognition-grid .gallery-item{height:100%}
  .scene .recognition-grid figcaption{font-size:14px;line-height:1.6}
  .scene[data-kind=closing] .scene-inner{text-align:center;align-items:center;gap:28px!important}
  .scene[data-kind=closing] h2{font-size:65px!important;max-width:1100px}
  .scene .closing-layout{display:flex;flex-direction:column;align-items:center;gap:27px;max-width:1020px}
  .scene .closing-layout .lead{font-size:24px;max-width:970px}
  .scene .closing-keywords{justify-content:center;font-size:23px}
  .historical-controls,.history-data,.history-reset,.historical-tooltip{display:none!important}
  .historical-legend button{font-size:12px}
  .historical-canvas{min-width:0;min-height:0}
  .historical-canvas svg{min-height:0;max-height:350px}
  .history-bar-value{opacity:1;font-size:10px}
  .historical-scroll{overflow:visible}
  .scene[data-kind=history] h2{font-size:44px!important}
  .scene[data-kind=history] h2 .title-line,.scene[data-kind=history] h2 .title-line-text{display:inline}
}
