/* Papel, Tinta e Vinho: section aliases inherit the central theme. */
:host, .leo-acervo {
  --section-bg:var(--leo-bg);--section-surface:var(--leo-surface);--section-layer:var(--leo-card);
  --section-accent:var(--leo-action-text);--section-action-fill:var(--leo-action-fill);--section-action-ink:var(--leo-on-action);
  --section-line:var(--leo-line);--section-border:var(--leo-control-border);--section-hover:var(--leo-hover);
  --section-muted:var(--leo-muted);--section-text:var(--leo-text);--section-focus:var(--leo-focus);--section-error:var(--leo-error);
}
/* One compact bar leaves room for the lesson itself. */
:host .topbar{height:64px;min-height:64px;flex:none;padding:0 clamp(12px,3vw,40px);display:flex;align-items:center;gap:24px;position:relative;z-index:20;background:var(--leo-header);backdrop-filter:blur(8px);border-bottom:1px solid var(--section-line)}
:host .topbar>button{font:inherit;font-size:12px;min-height:44px;border:0;padding:0;background:none;color:var(--section-muted);white-space:nowrap;flex:none}
:host .topbar .section-home{display:inline-flex;align-items:center;flex:none;min-height:44px;line-height:0}
:host .topbar .logo{width:108px;height:40px;object-fit:contain;flex:none}
:host([data-theme="light"]) .topbar .logo{filter:invert(1)}
:host .topbar-actions{margin-left:auto;display:flex;align-items:center;gap:12px;flex:none}
:host .topbar .section-help{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 12px;border:1px solid var(--section-border);border-radius:999px;color:var(--section-text);font:400 12px/1.2 RivieraNights,Riviera,Arial,sans-serif;text-decoration:none;white-space:nowrap}
:host .topbar .section-help svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
:host .topbar .close{width:32px;height:44px;min-width:32px;padding:0;border:0;background:none;color:var(--section-muted);font-size:25px}
:host .topbar a:focus-visible,:host .topbar button:focus-visible{outline:2px solid var(--section-focus);outline-offset:3px}
:host .section-error{padding:10px 24px;color:var(--section-error);background:var(--section-surface);font-size:14px}
@media(max-width:760px){:host .topbar{gap:12px;padding-inline:12px}:host .topbar .logo,:host .topbar .section-home{display:none}:host .topbar>button{width:32px;font-size:20px}:host .topbar>button span{display:none}:host .topbar-actions{gap:6px}:host .topbar .section-help{width:32px;padding:0;border:0}:host .topbar .section-help span{display:none}:host .topbar .close{width:28px;min-width:28px}:host .topbar button.leo-theme-toggle[data-theme-toggle]{width:64px;min-width:64px;max-width:64px;flex-basis:64px;height:36px;min-height:36px;padding:3px}:host .topbar button.leo-theme-toggle[data-theme-toggle] span{width:26px;flex-basis:26px;height:28px}}
/* Adjacent destinations alternate paper and raised neutral surfaces. */
:host([data-section-key="acompanhamento"]),
:host([data-section-key="buscatube"]),
:host([data-section-key="lion"]),
:host([data-section-key="forum"]) {
  --section-bg:var(--leo-surface);--section-surface:var(--leo-card);--section-layer:var(--leo-card);
}
:host([data-section-key]) {
  --muted:var(--section-muted);--line:var(--section-line);
  --accent:var(--section-accent);--panel:var(--section-surface);--hover:var(--section-hover);
  color:var(--section-text);background:var(--section-bg);
}

:host([data-section-key]) .topbar {background:var(--section-surface);border-bottom:1px solid var(--section-line);}
:host([data-section-key]) .scroll {background:var(--section-bg);}
:host([data-section-key]) main h1 {padding-top:18px;border-top:3px solid var(--section-accent);width:fit-content;max-width:100%;color:var(--section-text);}
/* The catalog keeps the same section canvas when opened from the landing. */
:host([data-section-key="mentoria"][data-theme]) .lp-catalog {--lp-page:var(--section-bg);--lp-text:var(--section-text);--lp-muted:var(--section-muted);--lp-line:var(--section-line);--lp-panel:var(--section-surface);}

/* Navigation disclosure; these rules are shared with standalone product pages. */
.section-switcher{min-width:0;position:relative;flex:0 1 280px}
.section-switcher-toggle{display:flex;align-items:center;gap:10px;max-width:100%;min-height:44px;border:0;padding:8px 0;background:transparent;color:var(--leo-action-on-card);font:inherit;font-size:14px;cursor:pointer;text-align:left}
.section-switcher-toggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.section-switcher-toggle svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .15s}
.section-switcher-toggle[aria-expanded="true"] svg{transform:rotate(180deg)}
.section-switcher :focus-visible{outline:2px solid var(--leo-focus);outline-offset:2px}
@media(max-width:760px){.section-switcher{flex:1 1 auto}.section-switcher-toggle{font-size:12px;gap:4px}}
@media(prefers-reduced-motion:reduce){.section-switcher-toggle svg{transition:none}}

:host([data-section-key="mentoria"]) .booking-shell main>h1 {font-size:14px;line-height:1.4;letter-spacing:.06em;text-transform:uppercase;font-weight:500;margin:0 0 12px;padding:0;border:0;color:var(--section-muted)}
