/* InvesTech Programs: scoped to the plugin's pages (body.itp-page).
   Brand values from the Manual de identidad InvesTech: purple #32146A, blue #2F90B0, text #333333,
   gradient blue to purple (vertical), Figtree Extrabold headings, Nunito Sans body. */
body.itp-page {
  --itp-purple: #32146A;
  --itp-blue: #2F90B0;
  --itp-text: #333333;
  --itp-white: #ffffff;
  --itp-soft: #f6f6f8;
  --itp-line: #e6e6ea;
  --itp-grad: linear-gradient(180deg, #2F90B0 0%, #32146A 100%);
  --itp-font-heading: "Figtree", "Nunito Sans", Arial, sans-serif;
  --itp-font-body: "Nunito Sans", Arial, sans-serif;
  margin: 0;
  color: var(--itp-text);
  font-family: var(--itp-font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  background: var(--itp-white);
}
body.itp-page .itp-main { display: block; }
body.itp-page .itp-container { max-width: 900px; margin: 0 auto; padding: 32px 20px 56px; }

/* type scale from the manual: H1 72, H2 48, H3 36 Figtree Extrabold; H4 28 Nunito Sans Semibold; H5 24 Nunito Sans Regular; body 18 */
body.itp-page .itp-h1 { font-family: var(--itp-font-heading); font-weight: 800; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.5rem); line-height: 1.1; color: var(--itp-purple); margin: 12px 0 24px; overflow-wrap: anywhere; }
body.itp-page .itp-body h2, body.itp-page .itp-group h2, body.itp-page .itp-related h2, body.itp-page .itp-release h2 { font-family: var(--itp-font-heading); font-weight: 800; font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); line-height: 1.15; color: var(--itp-purple); margin: 40px 0 14px; }
body.itp-page .itp-body h3, body.itp-page .itp-release h3, body.itp-page .itp-listing-item h3 { font-family: var(--itp-font-heading); font-weight: 800; font-size: clamp(1.3rem, 0.9rem + 1.5vw, 2.25rem); line-height: 1.2; color: var(--itp-purple); margin: 28px 0 10px; }
body.itp-page .itp-body h4 { font-family: var(--itp-font-body); font-weight: 600; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.75rem); color: var(--itp-text); margin: 22px 0 8px; }
body.itp-page .itp-body h5 { font-family: var(--itp-font-body); font-weight: 400; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem); color: var(--itp-text); margin: 18px 0 6px; }
body.itp-page .itp-body p, body.itp-page .itp-body li, body.itp-page .itp-listing p, body.itp-page .itp-status dd { font-size: 18px; }
body.itp-page .itp-body a, body.itp-page .itp-listing a, body.itp-page .itp-related a, body.itp-page .itp-status a, body.itp-page .itp-table a, body.itp-page .itp-topics a, body.itp-page .itp-deadline-list a, body.itp-page .itp-release-dates a { color: var(--itp-blue); text-decoration: underline; text-underline-offset: 3px; }
body.itp-page .itp-body a:hover { color: var(--itp-purple); }
body.itp-page .itp-body ul, body.itp-page .itp-body ol { padding-left: 22px; }
body.itp-page .itp-body blockquote { border-left: 4px solid var(--itp-blue); margin: 16px 0; padding: 4px 16px; background: var(--itp-soft); }

/* breadcrumbs */
body.itp-page .itp-breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; }
body.itp-page .itp-breadcrumbs li + li::before { content: "/"; color: var(--itp-line); margin-right: 6px; }
body.itp-page .itp-breadcrumbs a { color: var(--itp-blue); text-decoration: none; }
body.itp-page .itp-breadcrumbs span { color: var(--itp-text); }

/* status box */
body.itp-page .itp-status { background: var(--itp-soft); border-left: 5px solid var(--itp-purple); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 0 0 20px; }
body.itp-page .itp-status dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
body.itp-page .itp-status dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: baseline; }
body.itp-page .itp-status dt { font-weight: 700; color: var(--itp-purple); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.4px; min-width: 0; }
body.itp-page .itp-status dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { body.itp-page .itp-status dl > div { grid-template-columns: 1fr !important; gap: 2px; } }

/* CTA: gradient box, white button with purple text (contrast 12.2:1 on white) */
body.itp-page .itp-cta { margin: 24px 0 32px; padding: 24px 26px; border-radius: 14px; background: var(--itp-grad); color: var(--itp-white); }
body.itp-page .itp-cta-bottom { margin-top: 44px; }
body.itp-page .itp-btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-family: var(--itp-font-heading); font-weight: 800; font-size: 1rem; text-decoration: none; }
body.itp-page .itp-btn-primary { background: var(--itp-white); color: var(--itp-purple); }
body.itp-page .itp-btn-primary:hover { background: var(--itp-soft); color: var(--itp-purple); }
body.itp-page .itp-cta-note { margin: 12px 0 0; font-size: 0.95rem; color: var(--itp-white); }
body.itp-page .itp-cta-note a { color: var(--itp-white); text-decoration: underline; }

/* listings */
body.itp-page .itp-listing { list-style: none; padding: 0; margin: 0; }
body.itp-page .itp-listing-item { padding: 16px 0; border-bottom: 1px solid var(--itp-line); }
body.itp-page .itp-listing-item h3 { margin: 0 0 4px; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem); }
body.itp-page .itp-listing-item p { margin: 0 0 4px; }
body.itp-page .itp-listing-meta { font-size: 0.9rem; color: var(--itp-blue); }
body.itp-page .itp-draft { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--itp-soft); color: var(--itp-purple); font-size: 0.75rem; vertical-align: middle; border: 1px solid var(--itp-line); }
body.itp-page .itp-group h2 a { color: var(--itp-purple); text-decoration: none; }
body.itp-page .itp-related ul { padding-left: 20px; }
body.itp-page .itp-muted { color: var(--itp-text); opacity: 0.75; }
body.itp-page .itp-verified { font-size: 0.9rem; color: var(--itp-text); opacity: 0.75; margin-top: 18px; }

/* living lists */
body.itp-page .itp-release-dates { background: var(--itp-soft); padding: 10px 14px; border-radius: 8px; font-size: 0.95rem; }
body.itp-page .itp-topics { list-style: none; padding: 0; }
body.itp-page .itp-topics li { padding: 6px 0; border-bottom: 1px solid var(--itp-line); }
body.itp-page .itp-topic-id { font-family: ui-monospace, Menlo, monospace; font-size: 0.85rem; color: var(--itp-blue); margin-right: 6px; }
body.itp-page .itp-closed { margin-top: 24px; }
body.itp-page .itp-table-wrap { overflow-x: auto; }
body.itp-page .itp-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
body.itp-page .itp-table th { text-align: left; background: var(--itp-purple); color: var(--itp-white); padding: 10px; }
body.itp-page .itp-table td { padding: 10px; border-bottom: 1px solid var(--itp-line); vertical-align: top; }
body.itp-page .itp-deadline-list li { margin: 0 0 8px; }

/* fallback chrome only */
body.itp-page .itp-fallback-header { padding: 18px 20px; border-bottom: 1px solid var(--itp-line); }
body.itp-page .itp-fallback-footer { background: var(--itp-purple); color: var(--itp-white); padding: 24px 20px; text-align: center; }
body.itp-page .itp-fallback-footer a { color: var(--itp-white); }
