html[data-template-id="schemermag"] {
  --tf-accent: #2f6b62;
  --tf-accent-deep: #193f39;
  --tf-mint: #e5f0ec;
  --tf-display: Verdana, "Segoe UI", sans-serif;
  --tf-serif: Georgia, serif;
  --tf-radius: 2px;
}
html[data-template-id="schemermag"] .reader-frontpage { max-width: 1230px; --rf-accent: #2f6b62; --rf-accent-dark: #193f39; }
html[data-template-id="schemermag"] .rf-lead { border-right: 1px solid var(--rf-line); }
html[data-template-id="schemermag"] .rf-rail-block { background: #eef6f2; padding: 14px; border-top: 0; border-left: 4px solid var(--rf-accent); }
html[data-template-id="schemermag"] .rf-section-heading { padding-top: 5px; border-top: 1px solid var(--rf-ink); }
html[data-template-id="schemermag"] .rf-article h1 { max-width: 980px; font-family: var(--tf-display); font-size: clamp(42px, 5vw, 72px); margin-left: 0; }
html[data-template-id="schemermag"] .rf-article-header { text-align: left; }
html[data-template-id="schemermag"] .rf-article-kicker,
html[data-template-id="schemermag"] .rf-article-dek,
html[data-template-id="schemermag"] .rf-article-byline { justify-content: flex-start; margin-left: 0; }
html[data-template-id="schemermag"] .rf-article-grid { grid-template-columns: minmax(0, 1fr) 300px; }
html[data-template-id="schemermag"] .article-body { max-width: 740px; }

@media (max-width: 1050px) {
  html[data-template-id="schemermag"] .rf-article-grid { grid-template-columns: minmax(0, 1fr); }
}
/* periodicoIA · Schema: mármol claro sustituido por papel menta y jade. */
body.pia-tpl-schemermag { background: #eaf7f1 !important; }
body.pia-tpl-schemermag #wrapper { background: #fff !important; }
body.pia-tpl-schemermag #header { background: #f2fbf7 !important; border-color: #cbe6da !important; }
body.pia-tpl-schemermag #header ul.pages { background: #0b6b61 !important; }
body.pia-tpl-schemermag #header ul.pages a { color: #fff !important; }
body.pia-tpl-schemermag #header ul.categories a { color: #0b6b61 !important; }
body.pia-tpl-schemermag #content, body.pia-tpl-schemermag #lsidebar, body.pia-tpl-schemermag #rsidebar { background: #fff !important; border-color: #cbe6da !important; }
body.pia-tpl-schemermag .box h2 { background: #e1f5ec !important; color: #0b6b61 !important; border-color: #b8dfd0 !important; }
body.pia-tpl-schemermag .homelist li { border-color: #d7eae2 !important; }
body.pia-tpl-schemermag .homelist a.title { color: #174d40 !important; }
body.pia-tpl-schemermag #footer { background: #0d3f35 !important; }
@media (max-width: 820px) {
  body.pia-tpl-schemermag #lsidebar, body.pia-tpl-schemermag #content, body.pia-tpl-schemermag #rsidebar { float: none !important; width: 100% !important; padding: 12px !important; }
}

/* La demo original conservaba dos navegaciones idénticas y bloques de 2009. */
body.pia-tpl-schemermag #wrapper { box-sizing: border-box; }
body.pia-tpl-schemermag #header { height: auto !important; min-height: 0; overflow: hidden; padding-bottom: 0 !important; }
body.pia-tpl-schemermag #header h1 { padding: 18px 0 18px 5px !important; }
body.pia-tpl-schemermag #header ul.categories a { color: #fff !important; }
body.pia-tpl-schemermag #header a.rss { color: #0b6b61 !important; }
body.pia-tpl-schemermag #header .pages,
body.pia-tpl-schemermag #header .categories { display: flex; flex-wrap: wrap; height: auto !important; }
body.pia-tpl-schemermag #header .pages li,
body.pia-tpl-schemermag #header .categories li { float: none !important; }
body.pia-tpl-schemermag #header .categories { align-items: center; gap: 2px 0; min-height: 34px; padding: 4px 0 !important; }
body.pia-tpl-schemermag #header .categories li { padding: 6px 10px !important; background: none !important; }
body.pia-tpl-schemermag #header a.rss { margin-right: 8px; }
body.pia-tpl-schemermag #lsidebar .box ul li,
body.pia-tpl-schemermag #rsidebar .box ul li { overflow-wrap: anywhere; }
body.pia-tpl-schemermag #rsidebar .box form { width: 100% !important; height: auto !important; min-height: 40px; box-sizing: border-box; background: #f4fbf8 !important; border: 1px solid #c4e5d8; border-radius: 6px; }
body.pia-tpl-schemermag #rsidebar .box form input { width: calc(100% - 74px) !important; min-width: 0; height: 32px; box-sizing: border-box; }
body.pia-tpl-schemermag #rsidebar .box form button { width: 62px !important; height: 32px !important; margin-top: 4px; border-radius: 4px; background: #0b6b61 !important; color: #fff !important; font-size: 10px; text-indent: 0 !important; }
body.pia-tpl-schemermag #rsidebar .box .flickr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; text-align: left; }
body.pia-tpl-schemermag #rsidebar .box .flickr a { display: block; overflow: hidden; border-radius: 3px; }
body.pia-tpl-schemermag #rsidebar .box .flickr img { display: block; width: 100% !important; height: 88px; margin: 0 !important; object-fit: cover; }
body.pia-tpl-schemermag #rsidebar .box .video img { display: block; width: 100%; height: auto; object-fit: cover; }
body.pia-tpl-schemermag .pia-tag { display: inline-block; margin: 4px 5px 0 0; padding: 5px 8px; border-radius: 999px; background: #e7f6ef; color: #0b6b61 !important; font-size: 10px; text-decoration: none; }
@media (min-width: 1060px) {
  body.pia-tpl-schemermag #wrapper { width: 1160px !important; }
  body.pia-tpl-schemermag #lsidebar { width: 190px !important; }
  body.pia-tpl-schemermag #content { width: 610px !important; }
  body.pia-tpl-schemermag #rsidebar { width: 330px !important; }
}
@media (max-width: 820px) {
  body.pia-tpl-schemermag #wrapper { width: 100% !important; max-width: 100% !important; overflow: hidden; }
  body.pia-tpl-schemermag #header h1 { float: none !important; padding: 18px 12px 12px !important; }
  body.pia-tpl-schemermag #header .ad { display: none !important; }
  body.pia-tpl-schemermag #header .categories li { padding: 7px 8px !important; }
  body.pia-tpl-schemermag #lsidebar { margin-top: 12px !important; }
  body.pia-tpl-schemermag #content .box .buffer { padding: 8px !important; }
  body.pia-tpl-schemermag #content .homelist li img { width: 90px !important; height: 68px; object-fit: cover; }
  body.pia-tpl-schemermag #footer .buffer { width: 100% !important; padding: 0 12px; box-sizing: border-box; }
  body.pia-tpl-schemermag #footer .l,
  body.pia-tpl-schemermag #footer .r { float: none !important; text-align: center; }
}
