:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room) {
 --paper:#f7f4ed; --charcoal:#1f1f1d; --pine:#3d4d42; --mist:#bfc3bd; --clay:#c47e64;
 --title-font:'Canela Text',Baskerville,'Times New Roman',serif;
 --body-font:'Söhne Buch','Sohne Buch',Arial,Helvetica,sans-serif;
 --gold:#c6a36d; --ink:#e2d4bf; --muted:#ad9e8b; --hairline:#b992592e;
 position:absolute; inset:0; z-index:4; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain;
 background:#0d0d0c; color:var(--ink); font-family:var(--title-font); font-weight:400; font-synthesis:none; -webkit-font-smoothing:antialiased;
 scrollbar-color:#796345 #0d0d0c; scrollbar-width:thin; scroll-padding-top:138px;
}
:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room)[hidden] { display:none; }
:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room):focus,#thinking-content:focus { outline:none; }
.world-header { position:sticky; top:0; z-index:5; display:grid; grid-template-columns:48px minmax(0,1fr) 48px; gap:38px; align-items:center; padding:24px 3vw 17px; background:linear-gradient(#090a09f5,#090a09eb); backdrop-filter:blur(12px); border-bottom:0; }
.world-icon { width:48px; height:48px; display:grid; place-items:center; color:#dfb878; }
.world-icon svg { width:42px; height:42px; fill:none; stroke:currentColor; stroke-width:1.35; }
.key-icon svg { width:32px; height:36px; }
.world-nav { overflow-x:auto; scrollbar-width:none; }
.world-nav::-webkit-scrollbar { display:none; width:0; height:0; }
.world-nav ul { list-style:none; display:flex; align-items:stretch; justify-content:space-between; gap:20px; margin:0; padding:5px 0 10px; min-width:max-content; }
.world-nav li { flex:1; text-align:center; }
.world-menu-item { position:relative; display:block; padding:29px 5px 0; font-size:.875rem; line-height:1.4; text-transform:uppercase; letter-spacing:.14em; white-space:nowrap; color:#938574; }
.world-menu-item::before { content:'✦'; position:absolute; top:0; left:50%; transform:translateX(-50%); font-size:.65rem; color:#af9470; }
.world-nav li { position:relative; }
.world-nav li::before { content:''; position:absolute; top:7px; left:-12px; right:-12px; height:1px; background:linear-gradient(90deg,#b9925911,#b9925944,#b9925911); }
.world-menu-item[aria-current] { color:#f1d4a4; }
.world-menu-item[aria-current]::before { font-size:1.45rem; top:-9px; text-shadow:0 0 14px #ffc66c,0 0 30px #ffc66c88; }
.world-menu-item[aria-disabled] { cursor:default; }
:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room) button:focus-visible,:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room) a:focus-visible,:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room) summary:focus-visible { outline:1px solid var(--gold); outline-offset:5px; }
.thinking-hero { position:relative; min-height:620px; height:calc(100svh - 112px); max-height:1200px; isolation:isolate; }
.thinking-hero>img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 45%; z-index:-2; }
.thinking-hero::before { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#08080765 0%,#08080730 44%,transparent 75%),linear-gradient(0deg,#0d0d0c 0%,transparent 22%); pointer-events:none; }
.thinking-welcome { position:absolute; left:17%; top:20%; max-width:440px; text-shadow:0 2px 18px #000b; }
.thinking-welcome h1 { font-size:clamp(3.7rem,6.2vw,6.5rem); font-weight:400; letter-spacing:-.035em; line-height:1.08; margin:0; }
.fine-rule { display:block; width:38px; height:1px; background:var(--gold); margin:30px 0; }
#thinking-intro { white-space:pre-line; font-size:clamp(1.2rem,1.65vw,1.65rem); line-height:1.6; margin:0; color:#e0ceb2; }
.explore-content { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:10px; padding:8px 20px; color:#d9be96; font-size:.8125rem; letter-spacing:.28em; text-shadow:0 2px 10px #000; }
.explore-content span { font-size:1.8rem; font-weight:400; line-height:1; }
.world-quote { padding:32px 24px 56px; text-align:center; background:radial-gradient(ellipse at top,#9b713d0c,transparent 65%); }
.world-quote blockquote { white-space:pre-line; margin:0 auto; max-width:900px; font-size:1rem; line-height:1.8; font-style:italic; color:#baa889; }
.quote-divider { display:flex; align-items:center; gap:24px; max-width:660px; margin:28px auto 0; font-size:1.4rem; color:var(--gold); }
.quote-divider::before,.quote-divider::after { content:''; height:1px; flex:1; background:linear-gradient(90deg,transparent,#b9925977); }
.quote-divider::after { transform:rotate(180deg); }
#thinking-content { max-width:1160px; margin:auto; padding:46px 48px 10px; }
.content-opening { padding:0 0 65px 18%; }
.eyebrow { font-family:Arial,Helvetica,sans-serif; font-size:.75rem; letter-spacing:.18em; line-height:1.6; color:var(--gold); }
.content-opening h2 { font-size:clamp(2rem,3.3vw,3rem); font-weight:400; line-height:1.2; margin:20px 0; }
.sample-note { font-family:Arial,Helvetica,sans-serif; font-size:.875rem; line-height:1.6; color:#a59d92; margin:0; }
.content-block { display:grid; grid-template-columns:18% minmax(0,1fr); border-top:1px solid var(--hairline); padding:60px 0 72px; }
.block-index { display:flex; flex-direction:column; gap:14px; padding-top:5px; }
.block-number { font-size:1.75rem; font-style:italic; color:#9c8058; }
.block-body { max-width:760px; min-width:0; }
.block-body h2 { font-size:clamp(1.8rem,2.5vw,2.5rem); line-height:1.22; font-weight:400; margin:0 0 26px; text-wrap:balance; }
.reading-text,.block-description { font-size:1.125rem; line-height:1.85; color:#c6bbaa; margin:0 0 22px; }
.reading-quote { font-size:clamp(1.4rem,2vw,1.85rem); font-style:italic; line-height:1.6; color:#d4b98e; margin:36px 0 0; padding-left:24px; border-left:1px solid #9c8058; }
.audio-pending { display:flex; flex-direction:column; align-items:flex-start; gap:12px; border-left:1px solid var(--gold); padding:22px 28px; margin-top:28px; background:linear-gradient(90deg,#bd935b0b,transparent); }
.media-kicker { font-family:Arial,Helvetica,sans-serif; font-size:.75rem; letter-spacing:.2em; color:#b6976b; }
.audio-pending p,.video-pending p { font-size:1.35rem; margin:0; line-height:1.5; }
.media-status { font-family:Arial,Helvetica,sans-serif; font-size:.875rem; line-height:1.6; color:#b0a18b; }
.video-pending { aspect-ratio:16/9; display:flex; flex-direction:column; gap:16px; align-items:center; justify-content:center; text-align:center; padding:28px; border:1px solid #b9925929; background:#11120f; margin-top:30px; }
.block-body audio,.block-body video { width:100%; margin-top:20px; }
.block-body video { aspect-ratio:16/9; background:#050605; }
.transcript { margin-top:24px; }
.transcript summary { cursor:pointer; color:var(--gold); margin-bottom:20px; }
.exercise-fields { margin-top:36px; }
.exercise-row { display:grid; grid-template-columns:30px minmax(0,1fr); gap:12px; margin:0 0 32px; }
.question-number { color:var(--gold); font-size:.8125rem; font-family:Arial,Helvetica,sans-serif; padding-top:5px; }
.exercise-row label { font-size:1.2rem; line-height:1.5; }
.exercise-row textarea { grid-column:2; resize:vertical; width:100%; min-height:110px; max-height:500px; padding:16px 0; border:0; border-bottom:1px solid #b9925959; border-radius:0; background:transparent; color:#eadcc5; font-family:inherit; font-size:1.0625rem; line-height:1.6; }
.exercise-row textarea::placeholder { color:#928879; opacity:1; }
.exercise-row textarea:focus { outline:0; border-bottom-color:#e0ba7b; background:#c6a36d08; }
.exercise-note { font-size:.875rem; line-height:1.7; color:#a79d8f; font-family:Arial,Helvetica,sans-serif; }
.resource-link { color:var(--gold); }
.world-footer { text-align:center; padding:64px 24px 38px; border-top:1px solid var(--hairline); background:#090a09; }
.world-footer p { font-size:1.2rem; font-style:italic; line-height:1.6; color:#cbb99b; margin:0 0 28px; }
.world-footer button { color:#d6b684; padding:12px; font-size:1rem; }
.world-footer>span { display:block; margin-top:52px; font-family:Arial,Helvetica,sans-serif; color:#a2947e; font-size:.75rem; letter-spacing:.2em; }
@media (max-width:1100px) { .world-header { gap:18px; padding-inline:20px; } .world-nav ul { gap:22px; } .world-menu-item { font-size:.8125rem; } }
@media (max-width:600px) {
 :is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room) { scroll-padding-top:110px; }
 .world-header { grid-template-columns:38px minmax(0,1fr) 32px; gap:12px; padding:17px 14px 10px; }
 .world-icon { width:38px; height:44px; } .world-icon svg { width:34px; } .key-icon { width:32px; } .key-icon svg { width:25px; }
 .world-nav ul { padding-bottom:12px; gap:22px; } .world-menu-item { padding-top:24px; font-size:.8125rem; }
 .thinking-hero { min-height:590px; height:calc(100svh - 103px); max-height:900px; }
 .thinking-hero>img { object-position:44% 40%; }
 .thinking-hero::before { background:linear-gradient(90deg,#08080755,transparent),linear-gradient(0deg,#0d0d0c,transparent 35%); }
 .thinking-welcome { left:9%; right:7%; top:17%; } .thinking-welcome h1 { font-size:3.9rem; }
 .fine-rule { margin:24px 0; } #thinking-intro { font-size:1.2rem; }
 .world-quote { padding:28px 28px 34px; } .world-quote blockquote { font-size:1rem; white-space:normal; }
 #thinking-content { padding:40px 26px 0; }
 .content-opening { padding:0 0 44px; } .content-opening h2 { font-size:2.1rem; }
 .content-block { grid-template-columns:1fr; padding:36px 0 48px; }
 .block-index { flex-direction:row; align-items:center; gap:16px; margin-bottom:22px; padding-top:0; }
 .block-number { font-size:1.4rem; } .block-body h2 { font-size:1.9rem; }
 .reading-text,.block-description { font-size:1.0625rem; line-height:1.8; }
 .reading-quote { font-size:1.4rem; padding-left:18px; }
 .video-pending { width:100%; aspect-ratio:auto; min-height:205px; padding:24px 18px; } .video-pending p { font-size:1.2rem; }
 .audio-pending { padding:20px; } .exercise-row { grid-template-columns:23px minmax(0,1fr); gap:9px; }
 .exercise-row label { font-size:1.125rem; }
}
@media (max-height:520px) and (min-width:601px) { .thinking-hero { min-height:520px; } }

/* Corporate editorial surface, separate from the cinematic entrance. */
.editorial-surface { background:var(--paper); color:var(--charcoal); }
.editorial-surface .eyebrow { color:var(--pine); font-family:var(--body-font); }
.editorial-surface .sample-note { color:#60685f; font-family:var(--body-font); }
.editorial-surface .content-block { border-color:var(--mist); }
.editorial-surface .block-number { color:var(--pine); }
.editorial-surface .reading-text,.editorial-surface .block-description { color:#41463e; font-family:var(--body-font); }
.editorial-surface .reading-quote { color:var(--pine); border-color:var(--clay); }
.editorial-surface .audio-pending { border-color:var(--clay); background:#3d4d4208; }
.editorial-surface .media-kicker { color:var(--pine); font-family:var(--body-font); }
.editorial-surface .media-status { color:#60685f; font-family:var(--body-font); }
.editorial-surface .video-pending { background:#ecebe3; border-color:var(--mist); color:var(--pine); }
.editorial-surface .question-number { color:var(--pine); font-family:var(--body-font); }
.editorial-surface .exercise-row textarea { color:var(--charcoal); border-color:#8b958b; font-family:var(--body-font); }
.editorial-surface .exercise-row textarea::placeholder { color:#667064; }
.editorial-surface .exercise-row textarea:focus { border-bottom:2px solid var(--pine); background:#3d4d4206; }
.editorial-surface .exercise-note { color:#60685f; font-family:var(--body-font); }
.editorial-surface .resource-link,.editorial-surface .transcript summary { color:var(--pine); }
.editorial-surface .content-opening::after { content:''; display:block; width:52px; height:2px; background:var(--clay); margin-top:30px; }
.world-footer { background:var(--clay); border-top:0; }
.world-footer p { color:var(--charcoal); }
.world-footer button { color:var(--charcoal); }
.world-footer>span { color:var(--charcoal); font-family:var(--body-font); }
.world-footer button:focus-visible { outline:2px solid var(--charcoal)!important; outline-offset:5px; }

/* A quiet arrival: keep the universe underneath while the room materializes.
   Display toggling restarts these animations on every visit. */
/* The scene opacity is controlled by the arrival sequence in app.js. */
:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room):not([hidden]) .world-header { animation:world-details 1.9s ease both; }
:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room):not([hidden]) .thinking-welcome { animation:world-details 2.1s ease both; }
:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room):not([hidden]) .explore-content { animation:world-details 2.5s ease both; }
.thinking-hero { overflow:clip; }
:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room):not([hidden]) .thinking-hero>img { animation:room-settle 2.6s cubic-bezier(.2,.6,.3,1) both; }

@keyframes world-details { 0%,38% { opacity:0; } 100% { opacity:1; } }
@keyframes room-settle { from { transform:scale(1.025); } to { transform:scale(1); } }
@media (prefers-reduced-motion:reduce) {
 :is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room):not([hidden]),:is(#thinking, #cafe-room, #prosperar-room, #fragmentos-room, #voces-room):not([hidden]) * { animation:none!important; }
}

/* Reusable parchment variant; pilot applied only to El Café. */
.world-footer.world-footer--parchment {
 --paper-edge:clamp(65px,15vw,230px);
 position:relative;
 isolation:isolate;
 overflow:hidden;
 border:0;
 background:linear-gradient(var(--paper),#fcfaf3 42%);
}
/* Antique paper texture, decorative only; no text is embedded. */
.world-footer--parchment::before {
 content:'';
 position:absolute;
 inset:0;
 z-index:-2;
 pointer-events:none;
 background:url('assets/paper-antique.png') center bottom / 100% 100% no-repeat;
 opacity:.82;
 mask-image:linear-gradient(transparent,#000 40%);
}
/* The top veil dissolves texture into the existing page, with no seam. */
.world-footer--parchment::after {
 content:'';
 position:absolute;
 inset:0;
 z-index:-1;
 pointer-events:none;
 background:linear-gradient(180deg,var(--paper),#f7f4ede6 7%,#f7f4ed00 38%);
}
.world-footer--parchment p { color:#39362d; }
.world-footer--parchment button { color:#51452b; }
.world-footer--parchment>span { color:#625a48; }
.world-footer--parchment button:hover { color:#29271f; }
.world-footer--parchment button:focus-visible { outline:2px solid #51452b!important; outline-offset:5px; }
@media(max-width:600px) {
 .world-footer--parchment::before { background-size:100% 100%; opacity:.68; }
}

/* Pensar editorial refinements, scoped to this room. */
#thinking .block-description{white-space:pre-line}
#thinking .world-quote cite{display:block;margin-top:18px;font-size:.85rem;font-style:normal;letter-spacing:.12em}
#thinking-prosperar{display:block;max-width:620px;margin:20px auto;color:#5b513d;font:1rem/1.7 var(--body-font);text-decoration:none}
#thinking-prosperar:hover{text-decoration:underline}
#thinking-prosperar:focus-visible{outline:2px solid currentColor;outline-offset:5px}

#thinking .reflection-actions{display:flex;flex-wrap:wrap;gap:14px;margin:28px 0 18px}
#thinking .reflection-actions button{min-height:48px;padding:12px 20px;font:1rem/1.5 var(--body-font);cursor:pointer;border:1px solid #3d4d42}
#thinking .reflection-save{background:#3d4d42;color:#fffdf7}
#thinking .reflection-copy{background:transparent;color:#3d4d42}
#thinking .reflection-actions button:focus-visible{outline:2px solid #3d4d42;outline-offset:4px}
#thinking .reflection-status{font:1rem/1.6 var(--body-font);color:#3d4d42}
#thinking .reflection-copy-fallback{width:100%;min-height:220px;font:1rem/1.6 var(--body-font)}
/* The library keeps Pensar's existing editorial columns. */
#thinking .pensar-title{display:block;font:normal clamp(1.8rem,3vw,2.8rem)/1.3 var(--title-font,Georgia,serif);text-decoration:none;color:inherit;margin-bottom:24px}
#thinking .pensar-link{color:#4c5145;text-decoration:none;border:0;border-bottom:1px solid #b5a38b;background:transparent;padding:10px 0;cursor:pointer;font:inherit;display:inline-block}
#thinking .pensar-link:focus-visible{outline:2px solid #66523b;outline-offset:6px}
#thinking .pensar-navigation{display:flex;gap:24px;flex-wrap:wrap;margin:30px 0}
#thinking .pensar-navigation button:disabled{opacity:.4;cursor:default;border-color:transparent}
#thinking .pensar-index{padding:0;list-style:none}
#thinking .pensar-index li{padding:24px 0;border-bottom:1px solid #c5beb0}
#thinking .pensar-index a{font:normal 1.65rem/1.4 Georgia,serif}
#thinking .pensar-thumb{display:block;width:100%;max-width:620px;max-height:300px;object-fit:cover;margin:24px 0}
#thinking audio{width:100%;margin:24px 0}
#thinking .practice-conclusion{padding:24px 0;border-top:1px solid #c5beb0}
#thinking .block-body{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){#thinking .pensar-navigation{gap:16px}#thinking .pensar-thumb{max-height:210px}}

#thinking .content-block[tabindex="-1"]:focus{outline:none}
