/*
 * SUNS Energy — shell for NON-canvas pages
 * ----------------------------------------
 * The captured one-pager has no reusable header, footer, article or listing
 * styling, because the source site never had those surfaces. This sheet adds
 * them for pages/posts the client creates, reusing the brand custom properties
 * that the captured Webflow stylesheet already defines on :root:
 *
 *   --base-color-brand--suns-shadow   #323232   page background
 *   --base-color-brand--suns-yellow   #faff64   accent
 *   --base-color-brand--suns-blue     #00405c
 *   --base-color-neutral--white       #fff      body text
 *
 * Fallbacks are hard-coded next to each var() so this sheet still renders
 * correctly if the captured stylesheet is ever replaced.
 */

:root {
  --suns-shell-max: 72rem;
  --suns-gap: clamp(1rem, 3vw, 2.5rem);
}

.suns-page {
  background-color: var(--base-color-brand--suns-shadow, #323232);
  color: var(--base-color-neutral--white, #fff);
  font-family: "PP Neue Machina Plain", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.suns-skip-link {
  position: absolute;
  left: -9999px;
}
.suns-skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--base-color-brand--suns-yellow, #faff64);
  color: #323232;
  border-radius: 4px;
}

/* ---------- header ---------- */
.suns-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.suns-header__inner {
  max-width: var(--suns-shell-max);
  margin-inline: auto;
  padding: 1.25rem var(--suns-gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.suns-header__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.suns-header__logo,
.suns-header__brand .custom-logo {
  display: block;
  height: 34px;
  width: auto;
}
.suns-header__wordmark {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.suns-header__nav .suns-menu {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}
.suns-menu a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.suns-menu a:hover,
.suns-menu a:focus-visible,
.suns-menu .current-menu-item > a {
  border-bottom-color: var(--base-color-brand--suns-yellow, #faff64);
}

/* Mobile toggle: only meaningful once a primary menu exists. */
.suns-header__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.suns-header__toggle-bar,
.suns-header__toggle-bar::before,
.suns-header__toggle-bar::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  content: "";
}
.suns-header__toggle-bar::before { transform: translateY(-7px); }
.suns-header__toggle-bar::after  { transform: translateY(5px); }

@media (max-width: 800px) {
  .suns-header__toggle { display: block; }
  .suns-header__nav { flex-basis: 100%; display: none; }
  .suns-header__nav.is-open { display: block; }
  .suns-header__nav .suns-menu { flex-direction: column; gap: 0.75rem; }
}

/* ---------- main / article ---------- */
.suns-main {
  max-width: var(--suns-shell-max);
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--suns-gap);
  min-height: 50vh;
}

.suns-article__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.suns-article__meta {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.suns-article__media {
  margin: 0 0 2rem;
}
.suns-article__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.suns-article__media figcaption {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  padding-top: 0.5rem;
}

/* Long-form content: the block editor's default output needs typography. */
.suns-article__body { max-width: 46rem; }
.suns-article__body > * + * { margin-top: 1.25rem; }
.suns-article__body h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.2; margin-top: 2.5rem; }
.suns-article__body h3 { font-size: clamp(1.25rem, 2.4vw, 1.625rem); line-height: 1.25; margin-top: 2rem; }
.suns-article__body a { color: var(--base-color-brand--suns-yellow, #faff64); }
.suns-article__body img { max-width: 100%; height: auto; border-radius: 6px; }
.suns-article__body ul,
.suns-article__body ol { padding-left: 1.25rem; }
.suns-article__body li + li { margin-top: 0.4rem; }
.suns-article__body blockquote {
  border-left: 3px solid var(--base-color-brand--suns-yellow, #faff64);
  padding-left: 1.25rem;
  font-size: 1.125rem;
  margin-inline: 0;
}
.suns-article__body pre {
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
}
.suns-article__body code { font-size: 0.9em; }
.suns-article__body table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.suns-article__body th,
.suns-article__body td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.suns-article__body figure { margin-inline: 0; }

.suns-tags { list-style: none; display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0; margin-top: 2.5rem; }
.suns-tags a {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  color: inherit;
  text-decoration: none;
}

.suns-postnav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  flex-wrap: wrap;
}
.suns-postnav a { color: inherit; }

/* ---------- listings ---------- */
.suns-archive__title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin: 0 0 0.5rem; }
.suns-archive__intro { color: rgba(255, 255, 255, 0.7); margin-bottom: 2rem; }

.suns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: 2.5rem;
}
.suns-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.suns-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}
.suns-card__title { font-size: 1.1875rem; line-height: 1.3; margin: 0; }
.suns-card__title a { color: inherit; text-decoration: none; }
.suns-card__title a:hover,
.suns-card__title a:focus-visible { text-decoration: underline; }
.suns-card__meta { color: rgba(255, 255, 255, 0.6); font-size: 0.8125rem; margin: 0; }
.suns-card__excerpt { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 0.9375rem; }

.suns-empty { color: rgba(255, 255, 255, 0.7); margin-top: 2rem; }

.suns-pagination { margin-top: 3rem; }
.suns-pagination .page-numbers {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  margin-right: 0.35rem;
}
.suns-pagination .page-numbers.current {
  background: var(--base-color-brand--suns-yellow, #faff64);
  color: #323232;
  border-color: transparent;
}

/* ---------- 404 ---------- */
.suns-404 { text-align: center; padding-block: clamp(2rem, 8vw, 6rem); }
.suns-404__code {
  font-size: clamp(4rem, 16vw, 9rem);
  line-height: 1;
  margin: 0;
  color: var(--base-color-brand--suns-yellow, #faff64);
}
.suns-404__title { font-size: clamp(1.5rem, 4vw, 2.25rem); margin: 0.5rem 0 1rem; }
.suns-404__text { color: rgba(255, 255, 255, 0.75); }

.suns-button {
  display: inline-block;
  background: var(--base-color-brand--suns-yellow, #faff64);
  color: #323232;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
}

/* ---------- search form ---------- */
.suns-page .search-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.suns-page .search-form label { flex: 1 1 14rem; }
.suns-page .search-form .search-field {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font: inherit;
}
.suns-page .search-form .search-submit {
  padding: 0.65rem 1.25rem;
  border: 0;
  border-radius: 4px;
  background: var(--base-color-brand--suns-yellow, #faff64);
  color: #323232;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- footer ---------- */
.suns-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.suns-footer__inner {
  max-width: var(--suns-shell-max);
  margin-inline: auto;
  padding: 2rem var(--suns-gap);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}
.suns-footer__inner a { color: inherit; }
.suns-footer__copy,
.suns-footer__home { margin: 0; }
.suns-menu--footer { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

/* Screen-reader-only text (core class, not guaranteed by the captured sheet). */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .suns-page * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
