/**
 * Ad-Safe layout mode — attivo solo con body.tc-theme-ad-safe.
 * Containment / overflow: non blocca l’inserimento Auto Ads ma limita rotture di layout.
 * Slot annunci gestiti (.tc-section--ad, .tc-ad-slot, Ad Ace) esclusi da contain stretto.
 */

body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app {
  isolation: isolate;
}

body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app #tc-main.wrap.tc-main,
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app main#tc-main {
  min-width: 0;
  overflow-x: clip;
}

/* Superfici card / pannelli (esclusi blocchi annuncio dedicati) */
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app :where(
  .result-card:not(.tc-section--ad):not(.tc-ad-above-header),
  .card:not(.tc-section--ad),
  .tc-final-card-block,
  .tc-final-section:not(.tc-section--ad),
  .tc-final-hero,
  .tc-final-legend,
  .tc-reading-header,
  .tc-hero,
  .tc-page-hero,
  .spread-card,
  .tc-spread-card,
  .tc-points-box,
  .tc-full-ai-teaser,
  .tc-pick-slots-wrap,
  .tc-pick-slots,
  .tc-deck-pick-root,
  .tc-deck-pick-progress-block,
  .tc-step-toolbar,
  .tc-card-layout,
  .tc-dash-missions,
  .tc-dash-mission,
  .tc-home-missions,
  .tc-home-missions__item,
  .tc-home-hero-brand,
  .tc-home-stats,
  .tc-profile-card,
  .tc-profile-section,
  .tc-quiz-root,
  .tc-quiz-panel,
  .tc-casino-root,
  .tc-salao-root,
  .tc-mini-game,
  .tc-install-app-banner,
  .tc-upsell,
  .tc-reading-brand-hero,
  .tc-dash-kpis__card,
  .tc-dash-hero,
  .tc-dash-missions-section,
  .tc-dash-analysis,
  .tc-deck-arc-wrap,
  .tc-reading-results,
  .tc-reading-form,
  .tc-reading-editorial,
  .tc-rw78-wrap,
  .tc-spread-grid-wrap,
  .tc-step-actions-shell,
  .tc-step-editorial,
  .tc-step-editorial-card,
  .tc-top10-widget,
  .spread-item,
  article.tc-final-card-block
):not(.tc-section--ad):not(.tc-ad-above-header) {
  contain: layout style;
  position: relative;
  min-width: 0;
}

/* Griglie e liste a card */
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app .spread-grid > *,
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app .tc-dash-grid > *,
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app .tc-mission-grid > * {
  min-width: 0;
}

/* Header/footer: no layout containment (sticky / full-bleed) */
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app .tc-header--app,
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app .tc-footer {
  contain: none;
  min-width: 0;
}

/* Slot pubblicitari espliciti: iframe / ins dimensionati, senza contain sul wrapper */
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app .tc-section--ad,
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app .tc-ad-above-header,
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app .tc-between-widget-ads {
  contain: none;
}

body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app #tc-main :where(ins.adsbygoogle:not(.adsbygoogle-noablate), .adsbygoogle:not(.adsbygoogle-noablate)),
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app #tc-main :where(iframe[src*="googlesyndication"], iframe[src*="doubleclick"], iframe[id^="google_ads_iframe"]) {
  max-width: 100% !important;
  box-sizing: border-box;
}

body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app #tc-main ins.adsbygoogle.adsbygoogle-noablate {
  max-width: none !important;
  width: auto !important;
}

body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app #tc-main ins.adsbygoogle.adsbygoogle-noablate iframe {
  max-width: none !important;
}

/* Interpretazione: flow stabile se Auto Ads inserisce tra paragrafi */
body.tc-theme-ad-safe.tarot-clash-royale-php .tc-app .interp {
  display: flow-root;
  min-width: 0;
}
