:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #ffffff;

  --navy: #0a3d82;
  --navy-dark: #072f66;
  --teal: #18c98b;
  --text: #172033;
  --muted: #667085;
  --line: #e6eaf0;
  --soft: #f7f9fc;
  --white: #ffffff;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

/* ---------- Shared page width ---------- */

.site-header-inner,
.site-footer,
main {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}
/* Amessage to myself */
/* ---------- Header ---------- */

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.site-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: 230px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal);
}

/* ---------- Main content ---------- */

main {
  padding-block: 2rem 5rem;
}

.answer-page,
.hub,
.home-hero {
  padding: 2rem 0 4rem;
}

.home-hero {
  padding-top: 3.5rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  color: var(--navy-dark);
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

/* ---------- Answer pages ---------- */

.direct-answer {
  margin-top: 2.25rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: 12px;
  background: var(--soft);
}

.direct-answer > :first-child {
  margin-top: 0;
}

.direct-answer > :last-child {
  margin-bottom: 0;
}

.path-entry {
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
}

.path-entry h2,
.path-entry h3 {
  margin-top: 0;
  color: var(--white);
}

.path-entry p {
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Question / hub lists ---------- */

.question-list {
  margin-top: 2rem;
}

.question-list article {
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.question-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.question-list h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.question-list h2 a {
  color: var(--navy-dark);
  text-decoration: none;
}

.question-list h2 a:hover,
.question-list h2 a:focus-visible {
  color: var(--teal);
}

.question-list p {
  margin: 0;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.05rem;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.button:hover,
button:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}

.button:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(24, 201, 139, 0.35);
  outline-offset: 3px;
}

/* ---------- Record metadata ---------- */

.record-id {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--navy);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--teal);
}



/* ---------- Solar hub ---------- */

.solar-hub {
  padding-top: 2.5rem;
}

.hub-hero {
  max-width: 820px;
  padding: 1rem 0 3rem;
}

.hub-intro {
  max-width: 760px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hub-stats {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
}

.hub-stats strong {
  color: var(--navy);
  font-size: 1.15rem;
}

.hub-path-intro {
  margin: 1rem 0 3.5rem;
  padding: 1.8rem;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
}

.hub-path-intro .eyebrow {
  color: var(--teal);
}

.hub-path-intro h2 {
  margin-top: 0.25rem;
  color: var(--white);
}

.hub-path-intro p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
}

.hub-categories {
  display: grid;
  gap: 4rem;
}

.hub-category {
  min-width: 0;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--navy);
}

.category-header h2 {
  margin: 0.15rem 0 0;
}

.category-label {
  margin: 0;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.solar-hub .question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.solar-hub .question-list article {
  padding: 0;
  border: 0;
}

.solar-hub .question-list article:last-child {
  border-bottom: 0;
}

.question-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.question-card:hover {
  transform: translateY(-2px);
  border-color: #d8dee8;
  box-shadow: 0 8px 24px rgba(7, 47, 102, 0.08);
}

.question-card h3 {
  margin: 0 0 0.7rem;
  line-height: 1.35;
  font-size: 1.05rem;
}

.question-card h3 a {
  color: var(--navy-dark);
  text-decoration: none;
}

.question-card h3 a:hover,
.question-card h3 a:focus-visible {
  color: var(--teal);
}

.question-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 1rem;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.question-link {
  margin-top: auto;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

.question-link:hover,
.question-link:focus-visible {
  color: var(--teal);
}

@media (max-width: 720px) {
  .solar-hub .question-list {
    grid-template-columns: 1fr;
  }

  .category-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .hub-path-intro {
    padding: 1.35rem;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .site-header-inner,
  .site-footer,
  main {
    width: min(100% - 1.5rem, var(--max-width));
  }

  .site-header-inner {
    min-height: 62px;
    gap: 1rem;
  }

  .brand-logo {
    height: 34px;
    max-width: 175px;
  }

  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  main {
    padding-top: 1.25rem;
  }

  .answer-page,
  .hub,
  .home-hero {
    padding-top: 1.5rem;
  }

  .home-hero {
    padding-top: 2rem;
  }

  .direct-answer,
  .path-entry {
    padding: 1.25rem;
    border-radius: 10px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}

/* ---------- Path-Q decision engine ---------- */

.path-q-engine {
  margin-top: 2.5rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.path-q-engine > .eyebrow {
  margin-bottom: 0.55rem;
}

.path-q-engine > h2 {
  margin: 0 0 0.75rem;
}

.path-q-intro {
  max-width: 720px;
  margin-bottom: 1.25rem;
  color: var(--muted);
}

.path-q-status {
  min-height: 1.5em;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.path-q-question,
.path-q-outcome-title {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  line-height: 1.35;
}

.path-q-help {
  margin-bottom: 1rem;
  color: var(--muted);
}

.path-q-options {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.path-q-option {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid #cfd7e3;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy-dark);
  text-align: left;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(7, 47, 102, 0.04);
}

.path-q-option:hover {
  background: #f1f5f9;
  border-color: #b8c4d4;
  color: var(--navy-dark);
  transform: translateY(-1px);
}

.path-q-option:focus-visible {
  outline: 3px solid rgba(24, 201, 139, 0.35);
  outline-offset: 3px;
}

.path-q-option:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.path-q-next-step {
  margin-top: 1rem;
}

.path-q-destination {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.5rem;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.path-q-destination:hover,
.path-q-destination:focus-visible {
  background: var(--navy-dark);
  color: var(--white);
}

.path-q-restart {
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .path-q-engine {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .path-q-option {
    min-height: 50px;
    padding: 0.85rem 0.9rem;
  }
}

.path-q-continue {
  margin-right: 0.5rem;
}

/* github auto-deploy test */

.path-q-primary-button {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 0.55rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.path-q-primary-button:hover,
.path-q-primary-button:focus {
  opacity: 0.9;
}

.path-q-choice {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
}


.path-q-choice:disabled,
.path-q-choice[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  background: #e9e9e9;
  color: #666;
  border-color: #ccc;
}

.path-q-home-search {
  margin-top: 2rem;
}

#pathq-search {
  width: 100%;
}

.path-q-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  line-height: 1.4;
  border: 1px solid #bbb;
  border-radius: 8px;
}

.path-q-search-input:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.path-q-search-results {
  margin-top: 1.25rem;
}

.path-q-search-result {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

.path-q-search-result h3 {
  margin: 0 0 0.35rem;
}

.path-q-search-result p {
  margin: 0;
}
