html[data-template-id="treasure"] {
  --tf-accent: #2f8a5d;
  --tf-accent-deep: #10573a;
  --tf-mint: #ddf3e4;
  --tf-display: "Segoe UI", system-ui, sans-serif;
  --tf-serif: Georgia, serif;
  --tf-radius: 7px;
}
html[data-template-id="treasure"] .reader-frontpage { --rf-accent: #2f8a5d; --rf-accent-dark: #10573a; }
html[data-template-id="treasure"] .rf-lead .rf-media { border-radius: 7px 7px 0 0; }
html[data-template-id="treasure"] .rf-lead .rf-content { background: linear-gradient(135deg, #0e4f38, #0e7551); }
html[data-template-id="treasure"] .rf-secondary .rf-story { border-top: 3px solid var(--rf-accent); }
html[data-template-id="treasure"] .rf-article h1 { font-family: Georgia, serif; color: #f7fffb !important; }
html[data-template-id="treasure"] .rf-article {
  --tf-ink: #eefcf5;
  --tf-muted: #aad0bf;
  --tf-line: #315b49;
  --tf-paper: #092d20;
  max-width: none;
  background: #092d20;
}
html[data-template-id="treasure"] .rf-article-kicker .rf-section { color: #7ce8c4 !important; }
html[data-template-id="treasure"] .article-body a { color: #8ff1d2; }
html[data-template-id="treasure"] .rf-article-hero img { aspect-ratio: 2.1 / 1; }
html[data-template-id="treasure"] .article-body { max-width: 730px; }
html[data-template-id="treasure"] .rf-article-tools { border-color: #315b49; }
/* periodicoIA · Treasure: retícula original en tonos verdes, sin desbordes. */
body.pia-tpl-treasure { background: #eaf7f1 !important; }
body.pia-tpl-treasure #main_container { width: min(920px, 100%) !important; background: #fff !important; }
body.pia-tpl-treasure #center_content { width: 100% !important; background: #f3fbf7 !important; overflow: hidden; }
body.pia-tpl-treasure .left_content { width: 53% !important; background: #fff !important; padding: 18px 18px 18px 28px !important; }
body.pia-tpl-treasure .right_content { width: 47% !important; box-sizing: border-box; padding: 18px 28px 18px 18px !important; background: #f2fbf6 !important; }
body.pia-tpl-treasure .left_content h1,
body.pia-tpl-treasure .right_content h1,
body.pia-tpl-treasure .bottom_content h1 { color: #0b6b61 !important; font-family: "Segoe UI", system-ui, sans-serif !important; }
body.pia-tpl-treasure .pia-treasure-lead-image { display: block; width: 100% !important; height: 220px !important; margin: 0 0 12px !important; border-radius: 6px; object-fit: cover; }
body.pia-tpl-treasure .pia-treasure-lead { margin: 0 0 20px; padding: 0 0 15px; border-bottom: 1px solid #c9e7d9; }
body.pia-tpl-treasure .pia-treasure-lead span { color: #0d8b69; font: 850 9px/1 "Segoe UI", sans-serif; letter-spacing: .09em; text-transform: uppercase; }
body.pia-tpl-treasure .pia-treasure-lead h2 { margin: 6px 0 7px; font: 850 25px/1.06 Georgia, serif; }
body.pia-tpl-treasure .pia-treasure-lead h2 a { color: #113f33 !important; text-decoration: none !important; }
body.pia-tpl-treasure .pia-treasure-lead p { color: #4b625b; font-size: 12px !important; line-height: 1.55 !important; }
body.pia-tpl-treasure .pia-treasure-more { display: inline-block; margin-top: 4px; padding: 7px 10px; background: #0b6b61; color: #fff !important; font: 800 9px/1 "Segoe UI", sans-serif; text-decoration: none !important; }
body.pia-tpl-treasure .photos_block { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.pia-tpl-treasure .photo_box { float: none !important; width: auto !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; background: #fff !important; border: 1px solid #c9e7d9; }
body.pia-tpl-treasure .photo_box img { width: 100% !important; height: 102px !important; padding: 0 !important; object-fit: cover; }
body.pia-tpl-treasure .photo_box a.view { float: none !important; display: block; padding: 4px !important; color: #0b6b61 !important; font-size: 8px; }
body.pia-tpl-treasure .tip_box, body.pia-tpl-treasure .news_box { width: 100% !important; max-width: 100%; }
body.pia-tpl-treasure .bottom_content {
  display: grid !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
  gap: 12px 32px;
  align-items: start;
  padding: 24px 28px 18px !important;
  box-sizing: border-box;
  background: linear-gradient(135deg, #e8f8f0, #d9f1e6) !important;
  color: #31544a !important;
  overflow: hidden;
}
body.pia-tpl-treasure .bottom_content .about_text,
body.pia-tpl-treasure .bottom_content .friends_list,
body.pia-tpl-treasure .bottom_content .bottom_right {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
body.pia-tpl-treasure .bottom_content .bottom_right { display: none !important; }
body.pia-tpl-treasure .bottom_content h1 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: #075f50 !important;
  font: 800 18px/1.15 "Segoe UI", system-ui, sans-serif !important;
  letter-spacing: -.02em;
}
body.pia-tpl-treasure .bottom_content p,
body.pia-tpl-treasure .bottom_content li,
body.pia-tpl-treasure .bottom_content a { color: #31544a !important; }
body.pia-tpl-treasure .bottom_content p { margin: 0 !important; padding: 0 !important; font-size: 12px !important; line-height: 1.6 !important; text-align: left !important; }
body.pia-tpl-treasure .bottom_content ul.list { margin: 0 !important; padding: 0 !important; }
body.pia-tpl-treasure .bottom_content ul.list li { padding: 0 0 6px !important; }
body.pia-tpl-treasure .bottom_content ul.list li a { padding: 0 0 0 12px !important; background: none !important; font-size: 11px !important; line-height: 1.35 !important; }
body.pia-tpl-treasure .bottom_content ul.list li a::before { content: "›"; margin-right: 6px; color: #0f8b6c; font-weight: 900; }
body.pia-tpl-treasure .bottom_content .pia-legacy-footer { grid-column: 1 / -1; margin-top: 6px !important; }
body.pia-tpl-treasure .footer { background: #092d25 !important; }
@media (max-width: 760px) {
  body.pia-tpl-treasure .left_content, body.pia-tpl-treasure .right_content { float: none !important; width: 100% !important; padding: 14px !important; }
  body.pia-tpl-treasure .photo_box img { height: 120px !important; }
  body.pia-tpl-treasure .pia-treasure-lead-image { height: 210px !important; }
  body.pia-tpl-treasure .bottom_content { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px 14px !important; }
}
