:root{color-scheme:light;--paper:#faf7ef;--ink:#352e25;--gold:#95783c;--line:#d5c8ae;--bar:#fffdf8}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--paper);color:var(--ink)}
body{font:16px/1.5 Arial,sans-serif;display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
button{font:inherit;color:inherit;background:var(--bar);border:1px solid var(--line);border-radius:7px;padding:8px 14px;cursor:pointer;min-height:42px}
button:hover:not(:disabled){background:#eee6d5;border-color:#9b8352}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,a:focus-visible{outline:3px solid #497d9a;outline-offset:3px}
button[aria-current="page"],button[aria-pressed="true"]{background:#e9dfcb;border-color:#8e713a}
header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:9px 18px;border-bottom:1px solid var(--line);background:var(--bar)}
nav{display:flex;gap:8px;flex-wrap:wrap}
#sections{padding:7px 18px;justify-content:center;border-bottom:1px solid var(--line)}
#sections button{font-size:14px;padding:5px 12px;min-height:36px}
#stage{flex:1;min-height:0;display:flex;align-items:safe center;justify-content:safe center;padding:12px 18px;outline:none;container-type:size;overflow:auto;overscroll-behavior:contain}
footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:9px 14px;border-top:1px solid var(--line);background:var(--bar);min-height:60px}
.status{font-size:14px;color:#625745;padding:0 8px}
.primary{background:#eadfc8;border-color:#9b804b}
.image-frame{position:relative;width:min(100%,calc(100cqh * 1.778));flex-shrink:0}
.image-frame>img{display:block;max-width:100%;max-height:100cqh;width:auto;height:auto;margin:auto;object-fit:contain}.opening>img{width:100%;height:100%}
.opening{aspect-ratio:16/9}
.opening img{position:absolute;inset:0;transition:opacity .75s ease}
.opening img:last-child{opacity:0}
.opening.revealed img:last-child{opacity:1}
.opening.revealed img:first-child{opacity:0}
.reading{width:min(1200px,100%);padding:12px 24px}
.reading h1,.diagram h1{font:normal clamp(26px,3vw,46px)/1.2 Georgia,serif;text-align:center;margin:4px 0 22px}
.numbers{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:18px 0 24px}
.number{border-radius:50%;height:58px;width:58px;min-height:58px;padding:0;font:24px Georgia,serif;border:1px solid #806c4c55;position:relative}
.number[aria-pressed="true"]{outline:3px solid #5c513e;outline-offset:4px;background:var(--color)}
.number{background:var(--color)}
.number.visited::after{content:'';position:absolute;bottom:5px;left:26px;width:4px;height:4px;background:currentColor;border-radius:50%}
.question-panel{padding:20px 30px;border:1px solid var(--line);background:#fffdf9;border-radius:10px;min-height:180px}
.question-panel p{font:clamp(21px,2.3vw,34px)/1.55 Georgia,serif;margin:10px 0;white-space:pre-wrap}
.eyebrow{font:14px Arial,sans-serif;letter-spacing:.09em;color:#68573d}
.diagram{width:min(1100px,100%);padding:0 10px}
.diagram h1{font-size:clamp(26px,2.7vw,36px);margin-bottom:10px}
.diagram-body{position:relative;display:flex;flex-direction:column;gap:8px}
.origin,.ending{text-align:center;color:#87692f;font:bold clamp(20px,2vw,28px)/1.3 Georgia,serif;min-height:38px}
.ending{min-height:70px}
.ending span{display:block;font-size:clamp(18px,1.8vw,25px)}
.levels{display:flex;flex-direction:column;gap:6px}
.level{border-left:7px solid var(--color);border-radius:7px;border-top:1px solid var(--color);border-bottom:1px solid var(--color);border-right:1px solid var(--color);background:color-mix(in srgb,var(--color) 20%,#fffdf8);padding:7px 15px;min-height:40px;text-align:center;font:clamp(18px,1.8vw,26px)/1.25 Georgia,serif;transition:opacity .35s}
.unseen{visibility:hidden;opacity:0}
.beam{position:absolute;top:36px;bottom:0;left:calc(50% - 3px);width:6px;background:#ffe6a6;box-shadow:0 0 14px 5px #e3be6ca8;pointer-events:none;opacity:0;z-index:2}
.beam.running{opacity:.85;animation:descent 3.4s ease-in-out both}
.beam.done{opacity:0}
.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip:focus{padding:12px;background:white;z-index:100}
dialog{border:1px solid var(--line);border-radius:12px;padding:24px;max-width:480px;color:var(--ink);background:var(--paper)}
dialog::backdrop{background:#28251e66}
dialog p{margin:0 0 22px}
dialog form>div{display:flex;gap:12px;justify-content:flex-end}
/* Concepções distintas: the original watercolor card texture, softly framed. */
.perspectives{position:relative;isolation:isolate;width:min(100%,1200px);flex-shrink:0;display:grid;place-items:center;background:#fbf7ef;border:1px solid #b9a071;border-radius:10px;box-shadow:inset 0 0 0 5px #fbf7ef,inset 0 0 0 6px #d7c49c}
.perspectives-art{position:absolute;inset:7px;z-index:-1;overflow:hidden;border-radius:4px;background:radial-gradient(ellipse at 0% 0%,#d6c0a237,transparent 62%),radial-gradient(ellipse at 100% 100%,#a6a3b02b,transparent 65%),#fcf9f2}
.perspectives-art::before,.perspectives-art::after{content:'';position:absolute;pointer-events:none;left:0;right:0;height:24%;background-image:url('assets/referencia_visual/face_institucional_original.png');background-repeat:no-repeat;background-size:100% auto;opacity:.25}
.perspectives-art::before{top:0;background-position:center top;mask-image:linear-gradient(#000,transparent)}
.perspectives-art::after{bottom:0;background-position:center 98%;mask-image:linear-gradient(transparent,#000)}
.perspectives-inner{width:91%;padding:2.5% 0;text-align:center;color:#46382d}
.perspectives h1{font:normal clamp(22px,3.2vw,48px)/1.14 Georgia,serif;margin:0 0 3%;color:#725c37}
.perspectives table{width:100%;table-layout:fixed;border-collapse:collapse;font:clamp(15px,1.75vw,29px)/1.22 Georgia,serif;background:#fffcf5ba;border:1px solid #cdb786}
.perspectives th{background:#e7d9bd87;color:#6e5429;font-weight:normal;padding:1.55% 2%;border-bottom:2px solid #b99b61}
.perspectives td{padding:1.45% 2%;border-bottom:1px solid #d9c9a6;text-align:left;vertical-align:middle}
.perspectives td+td,.perspectives th+th{border-left:1px solid #cdb786}
.perspectives tr:nth-child(even) td{background:#e9dfce38}
.perspectives p{font:italic clamp(11px,1.1vw,17px)/1.3 Georgia,serif;color:#74664f;margin:2% 0 0}
@media(max-width:700px){.perspectives{width:100%;aspect-ratio:auto;min-height:0}.perspectives-inner{padding:18px 0}.perspectives table{font-size:clamp(14px,2.5vw,20px)}.perspectives td,.perspectives th{padding:10px 8px}.perspectives h1{font-size:25px}.perspectives p{font-size:13px}}

/* AJUDA À MEMÓRIA: leitura fluida, fundo inspirado na frente institucional aprovada */
#stage{overflow-y:auto;overscroll-behavior:contain;align-items:safe center;justify-content:safe center}
.memo-paper{position:relative;isolation:isolate;width:min(990px,100%);margin:14px auto;padding:clamp(28px,4.5vw,72px);background:#fffcf7;border:1px solid #d7c4a0;box-shadow:0 12px 35px #77634814,inset 0 0 0 7px #fffcf7,inset 0 0 0 8px #e8dcca;border-radius:12px;font:clamp(16px,1.45vw,19px)/1.77 Georgia,serif;color:#40382e;flex-shrink:0}
.memo-paper::before{content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;opacity:.095;background:url('assets/referencia_visual/face_institucional_original.png') center / cover no-repeat;}
.memo-paper h1{font:normal clamp(28px,3vw,43px)/1.22 Georgia,serif;color:#745f3d;text-align:center;margin:8px auto 30px;max-width:740px}
.memo-paper p{margin:0 0 1.22em}.memo-paper p:last-of-type{margin-bottom:0}
.memo-paper strong{font-weight:600;color:#67502f}.memo-paper em{font-style:italic}
.memo-overline{text-transform:uppercase;letter-spacing:.16em;font:12px/1.5 Arial,sans-serif;color:#9d825a;text-align:center}
.memo-jumps{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:28px;padding-top:22px;border-top:1px solid #e2d6bc}
.memo-intro{max-width:900px;margin:6px auto 24px;padding:22px 30px;border-radius:12px;background:#fffdf7;border:1px solid #e0d4bc;font:clamp(16px,1.5vw,19px)/1.7 Georgia,serif}
.memo-intro p{margin:0 0 14px}.memo-intro p:last-child{margin-bottom:0}.memo-intro strong{color:#795f31}
.reading:has(.memo-intro){padding:26px 20px 50px;flex-shrink:0}.reading:has(.memo-intro) .question-panel{margin-top:25px}
@media(max-width:700px){.memo-paper{padding:28px 22px;font-size:17px}.memo-intro{padding:18px}.memo-paper h1{font-size:29px}}

header,#sections,footer{flex-shrink:0}
.number:hover:not(:disabled){background:var(--color)}
.level,.origin,.ending{transition:opacity .35s,visibility .35s}
@keyframes descent{
  from{clip-path:inset(0 0 100% 0)}
  to{clip-path:inset(0 0 0 0)}
}
.fixed-artwork{
  width:100%;
  height:100cqh;
  flex:none;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.fixed-artwork figcaption{
  text-align:center;
  font:clamp(14px,1.5vw,20px)/1.35 Georgia,serif;
  color:#6e5429;
}
.artwork-image{
  flex:1;
  min-height:0;
  position:relative;}
.artwork-image img{
  position:absolute;inset:0;margin:auto;display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
}
.artwork-zoom{display:none}
#stage.artwork-zoomed{align-items:start;justify-content:start}
.artwork-zoomed .fixed-artwork{height:auto}
.artwork-zoomed .artwork-image{display:block}
.artwork-zoomed .artwork-image img{position:static;margin:0;max-width:none;max-height:none}
@media(max-width:900px){
  header{padding:8px;gap:8px}
  header button{font-size:14px;padding:7px 10px}
  #sections{padding:7px;gap:5px}
  #stage{padding:10px 8px}
  .question-panel{padding:16px 20px}
  .number{width:48px;height:48px;min-height:48px;font-size:21px}
  .number.visited::after{left:21px}
  .numbers{gap:10px}
  .diagram{padding:0;flex-shrink:0}
  .level{font-size:18px}
  .artwork-zoom{display:inline-block}
}
@media(max-width:560px){
  header{align-items:flex-start}
  #blocks{gap:5px}
  header #fullscreen{font-size:13px;padding:6px;min-width:65px}
  #sections button{font-size:13px;padding:5px 8px}
  footer{padding:6px;gap:5px}
  footer button{font-size:14px;padding:6px 8px}
  .reading:has(.memo-intro){padding:12px 2px 32px}
  .question-panel p{font-size:21px}
  .number{width:44px;height:44px;min-height:44px}
  .reading h1,.diagram h1{font-size:26px}
  .level{font-size:16px}
  .origin,.ending{font-size:20px}
  .ending span{font-size:18px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


