html[data-template-id="megazzine"] {
  --tf-accent: #34c99a;
  --tf-accent-deep: #0a5643;
  --tf-mint: #d8f5e8;
  --tf-display: "Segoe UI", system-ui, sans-serif;
  --tf-serif: Georgia, serif;
  --tf-radius: 3px;
}
html[data-template-id="megazzine"] .reader-frontpage {
  --rf-ink: #f0fff8; --rf-muted: #9fc5b5; --rf-line: #2a493d;
  --rf-panel: #143429; --rf-panel-soft: #102d24;
  --rf-accent: #34c99a; --rf-accent-dark: #6ee7bd; --rf-accent-deep: #062e23;
  max-width: 1260px; border-radius: 8px;
  background: radial-gradient(circle at 85% 2%, rgba(52,201,154,.14), transparent 34rem), #081f19;
}
html[data-template-id="megazzine"] .rf-edition-bar { background: rgba(255,255,255,.035); }
html[data-template-id="megazzine"] .rf-lead h2,
html[data-template-id="megazzine"] .rf-secondary h3,
html[data-template-id="megazzine"] .rf-latest h3 { color: #f4fff9 !important; font-weight: 800; }
html[data-template-id="megazzine"] .rf-secondary h3 a,
html[data-template-id="megazzine"] .rf-latest h3 a { color: #f4fff9 !important; }
html[data-template-id="megazzine"] .rf-secondary .rf-more,
html[data-template-id="megazzine"] .rf-latest .rf-more { color: #6ee7bd !important; }
html[data-template-id="megazzine"] .rf-secondary .rf-story,
html[data-template-id="megazzine"] .rf-latest .rf-story,
html[data-template-id="megazzine"] .rf-latest { background: #102d24 !important; }
html[data-template-id="megazzine"] .rf-article { --tf-ink: #effff8; --tf-muted: #a5c7b8; --tf-line: #315044; --tf-paper: #0a251d; background: #0a251d; max-width: none; }
html[data-template-id="megazzine"] .rf-article h1 { max-width: 1020px; font-size: clamp(42px, 5vw, 70px); }
html[data-template-id="megazzine"] .rf-article-kicker .rf-section { color: #6ee7bd !important; }
html[data-template-id="megazzine"] .article-body a { color: #6ee7bd; }
html[data-template-id="megazzine"] .rf-article-hero { max-width: 1180px; border-radius: 0; }
html[data-template-id="megazzine"] .rf-article-hero img { aspect-ratio: 2 / 1; }
html[data-template-id="megazzine"] .article-body { max-width: 740px; margin: 0 auto; }
html[data-template-id="megazzine"] .article-body p:first-of-type { color: #d9f6e9; }
html[data-template-id="megazzine"] .rf-article-grid { max-width: 1180px; }
html[data-template-id="megazzine"] .rf-article-subscribe { background: #16543f; }
/* periodicoIA · Megazzine: contraste oscuro con acentos verdes y pie legible. */
body.pia-tpl-megazzine #navigation { background: #0b6b61 !important; }
body.pia-tpl-megazzine #navigation a { color: #fff !important; }
body.pia-tpl-megazzine .box h2 { background: linear-gradient(90deg, #0b6b61, #0f9f78) !important; }
body.pia-tpl-megazzine .post h4 a { color: #155846 !important; }
body.pia-tpl-megazzine #footer, body.pia-tpl-megazzine #footer p, body.pia-tpl-megazzine #footer a { white-space: normal !important; overflow-wrap: anywhere; }
body.pia-tpl-megazzine #shell, body.pia-tpl-megazzine #main, body.pia-tpl-megazzine #content, body.pia-tpl-megazzine #footer { max-width: 100% !important; }
@media (max-width: 820px) {
  body.pia-tpl-megazzine #content, body.pia-tpl-megazzine #sidebar { float: none !important; width: 100% !important; }
}
