/* Solar Panels SA: Elementor bridge.
   Elementor puts a widget's "CSS Classes" on the outer .elementor-widget wrapper,
   not on the inner <h2>, <a> or <p>. These rules pass the sp- styles through to
   the element Elementor actually renders. Extend as you build; keep values on tokens. */

/* Headings: add sp-display / sp-h1 / sp-h2 / sp-h3 / sp-h4 to a Heading widget */
.elementor-widget.sp-display .elementor-heading-title { font-family: var(--font-display); font-size: 64px; line-height: 64px; font-weight: 800; letter-spacing: -0.025em; font-stretch: 112%; color: var(--ink); text-wrap: balance; }
.elementor-widget.sp-h1 .elementor-heading-title { font-family: var(--font-display); font-size: 46px; line-height: 50px; font-weight: 800; letter-spacing: -0.02em; font-stretch: 108%; color: var(--ink); text-wrap: balance; }
.elementor-widget.sp-h2 .elementor-heading-title { font-family: var(--font-display); font-size: 32px; line-height: 38px; font-weight: 750; letter-spacing: -0.015em; color: var(--ink); }
.elementor-widget.sp-h3 .elementor-heading-title { font-family: var(--font-display); font-size: 23px; line-height: 29px; font-weight: 700; color: var(--ink); }
.elementor-widget.sp-h4 .elementor-heading-title { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); }
.sp-section--night .elementor-widget .elementor-heading-title { color: var(--on-night); }

/* Lede and meta on Text Editor / Post Info widgets */
.elementor-widget.sp-lede, .elementor-widget.sp-lede p { font-family: var(--font-serif); font-size: 22px; line-height: 33px; color: var(--ink-soft); margin: 0; }
.elementor-widget.sp-meta, .elementor-widget.sp-meta .elementor-icon-list-text { font-family: var(--font-display); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); }
.elementor-widget.sp-meta a { color: var(--cell); font-weight: 600; text-decoration: none; }

/* Post Content widget: give it the prose styles */
.elementor-widget-theme-post-content.sp-prose .elementor-widget-container > * { margin-block: 0; }
.elementor-widget-theme-post-content.sp-prose .elementor-widget-container > * + * { margin-top: var(--space-5); }
.elementor-widget-theme-post-content.sp-prose .elementor-widget-container > h2 { margin-top: var(--space-8); }
.elementor-widget-theme-post-content.sp-prose .elementor-widget-container > h2 + * { margin-top: var(--space-3); }
.elementor-widget-theme-post-content.sp-prose h2 { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 750; letter-spacing: -0.015em; }
.elementor-widget-theme-post-content.sp-prose ul li::marker { color: var(--amber); font-size: 1.2em; }
.elementor-widget-theme-post-content.sp-prose ol li::marker { font-family: var(--font-display); font-weight: 800; color: var(--sun); }
.elementor-widget-theme-post-content.sp-prose blockquote { margin-inline: 0; padding: 0 0 0 var(--space-5); border-left: 4px solid var(--amber); font-style: italic; font-size: 22px; line-height: 33px; }
.elementor-widget-theme-post-content.sp-prose a { color: var(--cell); text-decoration: underline; text-underline-offset: 3px; }

/* Buttons: add sp-btn-sun / sp-btn-amber / sp-btn-ink / sp-btn-line to a Button widget */
.elementor-widget.sp-btn-sun .elementor-button { background: var(--sun); color: var(--on-sun); }
.elementor-widget.sp-btn-sun .elementor-button:hover { background: var(--sun-hover); }
.elementor-widget.sp-btn-amber .elementor-button { background: var(--amber); color: var(--ink); }
.elementor-widget.sp-btn-amber .elementor-button:hover { background: var(--amber-hover); }
.elementor-widget.sp-btn-ink .elementor-button { background: var(--ink); color: var(--on-night); }
.elementor-widget.sp-btn-line .elementor-button { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.elementor-widget[class*="sp-btn-"] .elementor-button { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 20px; padding: 13px 22px; border-radius: var(--radius-md); }

/* Nav Menu widget */
.elementor-widget.sp-nav-menu .elementor-nav-menu a { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 2px solid transparent; }
.elementor-widget.sp-nav-menu .elementor-nav-menu a:hover,
.elementor-widget.sp-nav-menu .elementor-nav-menu a.elementor-item-active { border-bottom-color: var(--amber); }

@media (max-width: 900px) {
  .elementor-widget.sp-display .elementor-heading-title { font-size: 44px; line-height: 46px; }
  .elementor-widget.sp-h1 .elementor-heading-title { font-size: 36px; line-height: 40px; }
}
@media (max-width: 600px) {
  .elementor-widget.sp-display .elementor-heading-title { font-size: 36px; line-height: 39px; }
  .elementor-widget.sp-h1 .elementor-heading-title { font-size: 30px; line-height: 34px; }
  .elementor-widget.sp-h2 .elementor-heading-title { font-size: 26px; line-height: 31px; }
}

/* ------------------------------------------------------------------
   Build additions (2026-10-30). Same rule as above: values on tokens.
   ------------------------------------------------------------------ */

/* Text Editor widgets: no stray paragraph margins */
.elementor-widget-text-editor.sp-lede p, .elementor-widget-text-editor.sp-body p, .elementor-widget-text-editor.sp-hint p,
.elementor-widget-text-editor.sp-meta p, .elementor-widget-text-editor.sp-news-text p, .elementor-widget-text-editor.sp-author-text p { margin: 0; }
.elementor-widget.sp-body, .elementor-widget.sp-body p { font-size: 18px; line-height: 30px; }
.elementor-widget.sp-hint, .elementor-widget.sp-hint p { font-family: var(--font-display); font-size: 13px; line-height: 19px; color: var(--muted); }
.elementor-widget.sp-lede--narrow p { max-width: 38ch; }
.elementor-widget.sp-lede--40 p { max-width: 40ch; }
.elementor-widget.sp-display--56 .elementor-heading-title { font-size: 56px; line-height: 58px; }
.elementor-widget.sp-ui-link .elementor-heading-title, .elementor-widget.sp-ui-link .elementor-heading-title a { font-family: var(--font-display); font-size: 15px; line-height: 22px; font-weight: 600; color: var(--cell); text-decoration: underline; text-underline-offset: 3px; }
.sp-select-all { user-select: all; }

/* Prose inside Text Editor widgets (pages) */
.elementor-widget-text-editor.sp-prose { font-family: var(--font-serif); font-size: 19px; line-height: 31px; color: var(--ink); }
.elementor-widget-text-editor.sp-prose > *, .elementor-widget-text-editor.sp-prose > .elementor-widget-container > * { margin-block: 0; }
.elementor-widget-text-editor.sp-prose > * + *, .elementor-widget-text-editor.sp-prose > .elementor-widget-container > * + * { margin-top: var(--space-5); }
.elementor-widget-text-editor.sp-prose h2 { font-family: var(--font-display); font-size: 28px; line-height: 34px; font-weight: 750; letter-spacing: -0.015em; }
.elementor-widget-text-editor.sp-prose h3 { font-family: var(--font-display); font-size: 21px; line-height: 27px; font-weight: 700; }
.elementor-widget-text-editor.sp-prose h2 + *, .elementor-widget-text-editor.sp-prose h3 + * { margin-top: var(--space-3); }
.elementor-widget-text-editor.sp-prose > h2:not(:first-child), .elementor-widget-text-editor.sp-prose > .elementor-widget-container > h2:not(:first-child) { margin-top: var(--space-8); }
.elementor-widget-text-editor.sp-prose > h3, .elementor-widget-text-editor.sp-prose > .elementor-widget-container > h3 { margin-top: var(--space-6); }
/* A section that starts in a new Text Editor after a table or callout: 24px widget gap + 40px = the 64px H2 rhythm */
.sp-guide-body > .elementor-widget-text-editor.sp-prose:not(:first-child) h2:first-child { margin-top: 40px; }
.elementor-widget-text-editor.sp-prose ul, .elementor-widget-text-editor.sp-prose ol { padding-left: 1.3em; }
.elementor-widget-text-editor.sp-prose li + li { margin-top: var(--space-2); }
.elementor-widget-text-editor.sp-prose ul li::marker { color: var(--amber); font-size: 1.2em; }
.elementor-widget-text-editor.sp-prose ol li::marker { font-family: var(--font-display); font-weight: 800; color: var(--sun); }
.elementor-widget-text-editor.sp-prose a { color: var(--cell); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Header */
.elementor-widget.sp-site-logo img { height: 34px; width: auto; display: block; }
.elementor-widget.sp-nav-menu .elementor-nav-menu--main a { padding: 6px 0; }
.elementor-widget.sp-nav-menu .elementor-menu-toggle { width: 44px; height: 44px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); }
.elementor-widget.sp-nav-menu .elementor-nav-menu--dropdown a { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink); border-bottom: 0; padding: 12px 16px; }
.elementor-widget.sp-nav-menu .elementor-nav-menu--dropdown { border-top: 1px solid var(--line); }

/* Footer */
.elementor-widget.sp-footer-logo img { height: 30px; width: auto; display: block; }
.elementor-widget.sp-footer-blurb, .elementor-widget.sp-footer-blurb p { font-family: var(--font-display); font-size: 15px; line-height: 22px; margin: 0; max-width: 34ch; }
.elementor-widget.sp-footer-heading .elementor-heading-title { font-family: var(--font-display); font-size: 15px; line-height: 22px; font-weight: 700; }
.elementor-widget.sp-footer-menu .elementor-nav-menu a { padding: 0; border: 0; }
.elementor-widget.sp-footer-base, .elementor-widget.sp-footer-base p { font-family: var(--font-display); font-size: 13px; line-height: 19px; margin: 0; }

/* Meta lines: Post Info widget with " · " between items, no icons */
.elementor-widget.sp-meta .elementor-icon-list-items { display: flex; flex-wrap: wrap; align-items: baseline; margin: 0; }
.elementor-widget.sp-meta .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.elementor-widget.sp-meta .elementor-icon-list-item::after { display: none !important; }
.elementor-widget.sp-meta .elementor-icon-list-item + .elementor-icon-list-item::before { content: "\00B7"; margin: 0 0.35em; color: var(--muted); }
.elementor-widget.sp-meta .elementor-icon-list-icon { display: none; }
.elementor-widget.sp-meta .elementor-icon-list-text { font-family: var(--font-display); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); padding: 0; }
.elementor-widget.sp-meta a .elementor-icon-list-text, .elementor-widget.sp-meta .elementor-post-info__terms-list a { color: var(--cell); font-weight: 600; text-decoration: none; }
.elementor-widget.sp-card-by .elementor-post-info__terms-list, .elementor-widget.sp-card-by .elementor-post-info__item--type-terms { color: var(--cell); font-weight: 600; }

/* Featured images: 16:9, radius 6, navy placeholder until a photo is set */
.elementor-widget.sp-thumb { background-color: var(--night-raised); background-image: repeating-linear-gradient(90deg, transparent 0 46px, var(--ink) 46px 49px), repeating-linear-gradient(0deg, transparent 0 70px, var(--ink) 70px 73px); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16 / 9; width: 100%; }
.elementor-widget.sp-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.elementor-widget.sp-thumb--row { width: 132px; flex: none; aspect-ratio: 4 / 3; }
.elementor-widget.sp-thumb--row img { aspect-ratio: 4 / 3; }

/* Image slots on pages: Image widget with class sp-img shows the placeholder pattern and label until a photo is chosen */
.elementor-widget-image.sp-img { width: 100%; }
.elementor-widget-image.sp-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.elementor-widget-image.sp-img img[src*="placeholder"] { display: none; }

/* Post cards (Loop Items) */
a.sp-card, a.sp-card:hover { text-decoration: none; color: inherit; }
.elementor-widget.sp-card-title .elementor-heading-title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 27px; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.elementor-widget.sp-card-title--row .elementor-heading-title { font-size: 17px; line-height: 23px; }
.elementor-widget.sp-card-title--feature .elementor-heading-title { font-size: 30px; line-height: 36px; font-weight: 800; }
.sp-card:hover .sp-card-title .elementor-heading-title { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.elementor-widget.sp-card-excerpt, .elementor-widget.sp-card-excerpt p { font-family: var(--font-serif); font-size: 16.5px; line-height: 26px; color: var(--ink-soft); margin: 0; }

/* Homepage full-post loop: a 2px ink rule between posts */
.sp-fullpost-grid .e-loop-item + .e-loop-item { border-top: 2px solid var(--ink); padding-top: var(--space-8); }

/* Author box */
.sp-author-box .elementor-widget.sp-author-mark img { width: 40px; height: auto; display: block; }
.elementor-widget.sp-author-text, .elementor-widget.sp-author-text p { font-size: 16px; line-height: 25px; color: var(--ink-soft); }

/* Table of Contents widget styled as sp-toc (the box itself comes from .sp-toc in solarpanelssa.css) */
.elementor-widget-table-of-contents.sp-toc { --box-border-width: 1px; --box-border-color: var(--line); --box-padding: var(--space-5); --box-border-radius: var(--radius-md); --box-background-color: var(--surface); --header-background-color: transparent; --separator-width: 0; --header-color: var(--ink); --item-text-color: var(--ink); --item-text-hover-color: var(--cell); --marker-color: var(--ink); --toc-body-padding: 0; }
.elementor-widget-table-of-contents.sp-toc .elementor-toc__header { padding: 0; border: 0; }
.elementor-widget-table-of-contents.sp-toc .elementor-toc__header-title { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); }
.elementor-widget-table-of-contents.sp-toc .elementor-toc__body { padding: 0; margin-top: var(--space-3); }
.elementor-widget-table-of-contents.sp-toc .elementor-toc__list-wrapper { font-family: var(--font-display); font-size: 15px; line-height: 22px; display: grid; gap: var(--space-2); padding-left: 1.2em; margin: 0; }
.elementor-widget-table-of-contents.sp-toc .elementor-toc__list-item-text { color: var(--ink); text-decoration: none; }
.elementor-widget-table-of-contents.sp-toc .elementor-toc__list-item-text:hover { color: var(--cell); }
.elementor-widget-table-of-contents.sp-toc .elementor-toc__toggle-button { display: none; }
.sp-toc .sp-topics { list-style: none; padding: 0; margin: 0; font-family: var(--font-display); font-size: 15px; line-height: 22px; display: grid; gap: var(--space-2); }
.sp-toc .sp-topics a { color: var(--ink); text-decoration: none; }
.sp-toc .sp-topics a:hover { color: var(--cell); }
@media (min-width: 901px) { .e-con.sp-toc--static { position: static; } }

/* Taxonomy Filter as sp-chips */
.elementor-widget.sp-chips-filter .e-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.elementor-widget.sp-chips-filter .e-filter-item { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 20px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--ink); background: var(--surface); }
.elementor-widget.sp-chips-filter .e-filter-item:hover { border-color: var(--ink); }
.elementor-widget.sp-chips-filter .e-filter-item[aria-pressed="true"] { background: var(--ink); color: var(--on-night); border-color: var(--ink); }

/* Loop Grid pagination as sp-pager */
.sp-pager-grid .elementor-pagination { display: flex; gap: var(--space-2); justify-content: flex-start; margin-top: var(--space-7); font-family: var(--font-display); font-weight: 600; font-size: 14px; flex-wrap: wrap; }
.sp-pager-grid .elementor-pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink); text-decoration: none; padding-inline: 10px; margin: 0; }
.sp-pager-grid .elementor-pagination .page-numbers.current { background: var(--ink); color: var(--on-night); border-color: var(--ink); }

/* Forms */
.elementor-widget.sp-contact-form .elementor-field-group .elementor-field:not(.elementor-select-wrapper),
.elementor-widget.sp-news-form .elementor-field-group .elementor-field:not(.elementor-select-wrapper) { font-family: var(--font-display); font-size: 16px; line-height: 22px; padding: 12px 14px; }
.elementor-widget.sp-contact-form .elementor-field:focus, .elementor-widget.sp-news-form .elementor-field:focus { outline: 3px solid var(--cell); outline-offset: 1px; border-color: var(--cell); }
.elementor-widget.sp-contact-form .elementor-field-textual.elementor-field { min-height: 48px; }
.elementor-widget.sp-contact-form textarea.elementor-field { min-height: 150px; }
.elementor-widget.sp-contact-form .elementor-button, .elementor-widget.sp-news-form .elementor-button { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 20px; padding: 13px 22px; min-height: 48px; }
.elementor-widget.sp-contact-form .elementor-message-success { font-family: var(--font-display); font-weight: 600; color: var(--grid-green); }
.elementor-widget.sp-news-form .elementor-field-group { margin-bottom: 0; }

@media (max-width: 900px) {
  .elementor-widget.sp-display--56 .elementor-heading-title { font-size: 44px; line-height: 46px; }
}
@media (max-width: 600px) {
  .elementor-widget.sp-display--56 .elementor-heading-title { font-size: 36px; line-height: 39px; }
  .elementor-widget.sp-news-form .elementor-field-group { flex-basis: 100%; max-width: 100%; }
}

/* Let lede paragraphs follow the widget's own (Global) colour, e.g. On Night Muted on ink bands */
.elementor-widget.sp-lede p { color: inherit; }
/* Kit heading colours (ink) must not override headings inside HTML components on dark grounds */
.sp-stages .sp-stages__title { color: var(--on-night); }
.sp-news h3, .sp-suncard h3 { color: var(--ink); }
.elementor-widget.sp-site-logo { flex: none; width: auto; }
.elementor-widget.sp-site-logo img { max-width: none; }
.elementor-widget.sp-thumb img[src*="placeholder"] { visibility: hidden; }

/* TOC list: Archivo 15/22, 8px rhythm, like .sp-toc ol */
.elementor-widget-table-of-contents.sp-toc .elementor-toc__list-item { margin: 0; }
.elementor-widget-table-of-contents.sp-toc .elementor-toc__list-item, .elementor-widget-table-of-contents.sp-toc .elementor-toc__list-item-text-wrapper,
.elementor-widget-table-of-contents.sp-toc .elementor-toc__list-item-text { font-family: var(--font-display); font-size: 15px; line-height: 22px; }
.elementor-widget-table-of-contents.sp-toc .elementor-toc__list-item-text-wrapper::before { font-family: var(--font-display); }

/* Spec tables: undo Hello Elementor's default table styles so .sp-table rules show through */
.sp-table-wrap table.sp-table { margin: 0; font-size: 15px; border: 0; }
.sp-table-wrap .sp-table th, .sp-table-wrap .sp-table td { border-top: 0; border-left: 0; border-right: 0; background: none; }
.sp-table-wrap .sp-table th { padding: 12px 16px; border-bottom: 2px solid var(--ink); line-height: 1.4; vertical-align: bottom; }
.sp-table-wrap .sp-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); line-height: 21px; }
.sp-table-wrap .sp-table tbody > tr:nth-child(odd) > td, .sp-table-wrap .sp-table tbody > tr:nth-child(odd) > th { background: none; }
.sp-table-wrap .sp-table tbody tr:hover > td { background: var(--paper); }
.sp-table-wrap .sp-table tr:last-child td { border-bottom: 0; }
.sp-table-wrap .sp-table thead:first-child tr:first-child th { border-top: 0; }

/* Mobile header: the Nav Menu shrinks to its hamburger and sits right; the full-width dropdown must not widen the page */
@media (max-width: 600px) {
  .sp-site-header { overflow-x: clip; }
}
/* Loop Grid columns may shrink below their content (wide tables scroll inside .sp-table-wrap instead) */
.elementor-widget-loop-grid .elementor-loop-container.elementor-grid { grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr)); }
/* Static components in HTML widgets: keep their own type, not the Kit's body line-height or heading sizes */
.elementor-widget-html .sp-sun, .elementor-widget-html .sp-stages, .elementor-widget-html .sp-hint { line-height: normal; }
.elementor-widget-html .sp-hint { line-height: 19px; }
.elementor-widget-html h3.sp-h4 { font-family: var(--font-display); font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: 0; }
.elementor-widget-html .sp-stages .sp-stages__title { font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 750; letter-spacing: 0; }
/* Images inside post content */
.sp-prose .sp-figure { margin-inline: 0; }
.sp-prose .sp-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
/* Image slots with a real photo have no data-label: hide the placeholder label box */
.elementor-widget-image.sp-img:not([data-label])::after, .elementor-widget-image.sp-img[data-label=""]::after { display: none; }
.elementor-widget-image.sp-img:not([data-label]) { background: none; }
/* Mobile header: logo left, then Contact and the burger on the right */
@media (max-width: 600px) { .elementor-widget.sp-site-logo { margin-right: auto; } }
