/* ==== CROSS SEO · temas por site (Fase 2) — organização comum: índice, faixa Explorar, bandas, dobráveis ==== */
body.tema{font-family:var(--font-body)}
body.tema h1,body.tema h2,body.tema h3{font-family:var(--font-display)}
body.tema main section{scroll-margin-top:calc(var(--header-h) + 3.2rem)}
body.tema main section:nth-of-type(even):not(.hero){background:var(--bg-2)}
/* índice «Nesta página» (pilar → secções) */
body.tema .toc{position:sticky;top:var(--header-h);z-index:20;background:color-mix(in srgb,var(--bg) 94%,transparent);border-bottom:1px solid var(--border);backdrop-filter:saturate(1.4) blur(8px)}
body.tema .toc__inner{display:flex;align-items:center;gap:.6rem;padding-block:.45rem;overflow:hidden}
body.tema .toc__label{flex:none;font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-ink)}
body.tema .toc__list{display:flex;gap:.4rem;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;padding-block:.1rem}
body.tema .toc__list::-webkit-scrollbar{display:none}
body.tema .toc__link{flex:none;scroll-snap-align:start;display:inline-flex;align-items:center;min-height:36px;padding:.3rem .8rem;border-radius:var(--radius-pill);border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:.82rem;font-weight:600;text-decoration:none;white-space:nowrap;max-width:20rem;overflow:hidden;text-overflow:ellipsis}
body.tema .toc__link:hover,body.tema .toc__link:focus-visible{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
/* faixa «Explorar» (hub de ligações internas) */
body.tema .hub-explore{padding-block:clamp(1.6rem,5vw,3rem);border-top:1px solid var(--border);background:var(--bg-2)}
body.tema .hub-explore__label{margin:0 0 .8rem;font-size:.78rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-ink)}
body.tema .hub-explore__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
body.tema .hub-card{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:.9rem 1rem;border-radius:var(--radius-sm);background:var(--surface);border:1px solid var(--border);color:var(--text);font-weight:700;text-decoration:none;box-shadow:var(--shadow);transition:transform .15s}
body.tema .hub-card::after{content:"→";color:var(--primary);font-weight:800;margin-left:.5rem}
body.tema .hub-card:hover{transform:translateY(-2px);border-color:var(--primary)}
body.tema .hub-card[aria-current=page]{outline:2px solid var(--primary);outline-offset:-2px}
@media (min-width:720px){ body.tema .hub-explore__grid{grid-template-columns:repeat(4,minmax(0,1fr))} }
/* telemóvel dobrado (≤430px): toque confortável, sem cortes */
@media (max-width:430px){ body.tema .toc__label{display:none} body.tema .hero{padding-block:1.6rem 2rem} }
/* aberto / tablet pequeno (600–999px): secções de texto em 2 colunas */
@media (min-width:600px) and (max-width:999px){
  body.tema .faq{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;align-items:start}
  body.tema .steps,body.tema .account__steps{grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* horizontal com pouca altura (dobrado deitado) */
@media (orientation:landscape) and (max-height:520px){
  body.tema .hero{padding-block:1.2rem 1.4rem}
  body.tema .toc{position:static}
  body.tema .sticky-cta{padding-block:.3rem}
}
/* ecrã duplo com dobradiça (viewport segments) */
@media (horizontal-viewport-segments:2){
  body.tema .container{column-gap:calc(env(viewport-segment-left 1 0,0px) - env(viewport-segment-right 0 0,0px))}
  body.tema .hero__grid{grid-template-columns:1fr 1fr;gap:calc(env(viewport-segment-left 1 0,0px) - env(viewport-segment-right 0 0,0px) + 2rem)}
  body.tema .hub-explore__grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:calc(env(viewport-segment-left 1 0,0px) - env(viewport-segment-right 0 0,0px) + 1rem)}
}
@media (prefers-reduced-motion:reduce){ body.tema *{transition:none!important;scroll-behavior:auto!important} }
/* hero dividido: o fundo do tema fica visível; a imagem passa a cartão (não fundo de ecrã inteiro) */
body.tema .hero::after{display:none}
body.tema .hero__grid{display:grid;grid-template-columns:1fr;gap:1.2rem;align-items:center;justify-items:stretch}
body.tema .hero__image{position:relative;inset:auto;z-index:auto;opacity:1;order:-1;border-radius:var(--radius);overflow:hidden;aspect-ratio:16/7;box-shadow:var(--shadow);border:1px solid var(--border);mix-blend-mode:normal}
body.tema .hero__image img{width:100%;height:100%;object-fit:cover;object-position:60% 30%}
body.tema .hero__text{max-width:none}
body.tema .hero__lead{margin-inline:0}
body.tema .hero h1{text-shadow:none}
@media (min-width:900px){
  body.tema .hero__grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:2.5rem}
  body.tema .hero__image{order:0;aspect-ratio:4/5;max-height:560px}
}
@media (min-width:900px){ body.tema .hero{text-align:left} body.tema .hero__meta{justify-content:flex-start} body.tema .hero__grid{justify-items:stretch} body.tema .hero__lead{margin-inline:0} }
/* botão «Entrar» do cabeçalho fica sempre em contorno; lead centrado abaixo de 900px */
body.tema .site-header .cta--ghost{background:transparent!important;color:var(--text);box-shadow:none}
@media (max-width:899px){ body.tema .hero__lead{margin-inline:auto} }

/* tema nautico (base variante a) */
:root{--primary:#14b8a6;--primary-2:#0e7490;--accent:#f4d58d;--on-primary:#fff;--btn-1:#0e7490;--btn-2:#155e75;--brand-ink:#14b8a6;--accent-ink:#f4d58d;--bonus-ink:#f4d58d;--bg:#041b30;--bg-2:#062a4a;--surface:#08345a;--surface-2:#0b4170;--border:color-mix(in srgb,#14b8a6 30%,transparent);--text:#eef7ff;--muted:rgba(238,247,255,.8);--link:#f4d58d;--notice-fg:rgba(238,247,255,.8);--glow:0 0 16px color-mix(in srgb,#14b8a6 35%,transparent);--shadow:0 6px 22px rgba(0,0,0,.35);--font-display:"Playfair Display",Georgia,"Times New Roman",serif;--font-body:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--radius:12px;--radius-sm:12px}
body.tema-nautico .logo span{background:none;color:var(--primary);-webkit-text-fill-color:currentColor}
body.tema-nautico .bonus-box__fine{color:var(--muted)}
body.tema-nautico .hero{background:radial-gradient(120% 60% at 50% 120%,#0e7490 0 40%,transparent 41%),radial-gradient(120% 60% at 30% 135%,#14b8a6 0 40%,transparent 41%),linear-gradient(180deg,#062a4a,#041b30)}
body.tema-nautico .bonus-box{border:2px solid #f4d58d;border-radius:12px;outline:1px dashed rgba(244,213,141,.6);outline-offset:4px}
body.tema-nautico .toplist__rank{background:#f4d58d;color:#041b30}
body.tema-nautico main section h2::after{content:"⚓";display:block;color:#f4d58d;font-size:1rem;margin-top:.3rem}
