/*
 * Fixed single-screen creation-choice page.
 * This file is the sole style owner for the energy_analysis entry surface.
 */

body[data-page-id="energy_analysis"] {
  --energy-choice-page: var(--gx-ui-page, #fbf9f4);
  --energy-choice-surface: var(--gx-ui-surface, #fffefb);
  --energy-choice-ink: var(--gx-ui-text, #342d28);
  --energy-choice-muted: var(--gx-ui-muted, #746c64);
  --energy-choice-green: var(--gx-ui-primary, #4f7332);
  --energy-choice-green-strong: var(--gx-ui-primary-hover, #3f6127);
  --energy-choice-gold: var(--gx-ui-primary, #bd8a43);
  --energy-choice-border: var(--gx-ui-border, rgba(79, 115, 50, 0.18));
  width: min(100%, var(--gx-content-shell-max, 480px));
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-bottom: 0 !important;
  overflow: hidden;
  background: var(--energy-choice-page);
}

body[data-page-id="energy_analysis"] .page-shell {
  width: 100%;
  max-width: var(--gx-content-shell-max, 480px);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-bottom: 0 !important;
  overflow: hidden;
  background: var(--energy-choice-page);
}

body[data-page-id="energy_analysis"] .gx-app-header,
body[data-page-id="energy_analysis"] .header-actions,
body[data-page-id="energy_analysis"] .anchor-nav,
body[data-page-id="energy_analysis"] .mobile-menu,
body[data-page-id="energy_analysis"] .fixed-cta,
body[data-page-id="energy_analysis"] .contact-float {
  display: none !important;
}

body[data-page-id="energy_analysis"] #top {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.energy-analysis-intro-page {
  --energy-card-height: clamp(156px, 25.5dvh, 220px);
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: start;
  align-items: start;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  gap: clamp(9px, 1.5dvh, 14px) 0;
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    clamp(12px, 4cqi, 20px)
    calc(var(--gx-floating-nav-height, 70px) + 24px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background-color: var(--energy-choice-page);
  background-image:
    linear-gradient(to top, transparent 0, var(--energy-choice-page) 30cqi),
    url("/gx-customer-assets/assets/energy-choice-footer-wave-v1.png?v=2ae54e4d23ce4464899f");
  background-position: center bottom calc(var(--gx-floating-nav-height, 70px) + 7px);
  background-repeat: no-repeat;
  background-size: 100% auto;
  container-name: energy-choice-page;
  container-type: size;
}

.energy-analysis-home-return {
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  grid-column: 1;
  grid-row: 1;
  place-items: center;
  align-self: start;
  justify-self: start;
  border: 0;
  border-radius: 50%;
  color: var(--energy-choice-green);
  background: transparent;
  padding: 0;
  text-decoration: none;
  box-shadow: none;
}

.energy-analysis-home-return:hover {
  color: var(--energy-choice-green-strong);
  background: var(--gx-ui-soft, rgba(79, 115, 50, 0.08));
}

.energy-analysis-home-return:focus-visible,
.energy-analysis-start:focus-visible {
  outline: 3px solid var(--gx-ui-focus, rgba(189, 138, 67, 0.42));
  outline-offset: 3px;
}

.energy-analysis-intro-heading {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-items: center;
  align-content: start;
  gap: clamp(4px, 0.8dvh, 8px);
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 2px 44px 0;
  text-align: center;
}

.energy-analysis-intro-heading h1 {
  margin: 0;
  color: var(--energy-choice-ink);
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: clamp(25px, 7cqi, 32px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

/* Route focus locates the heading for assistive technology without a control outline. */
body[data-page-id="energy_analysis"] #energy-analysis-title[tabindex="-1"]:focus {
  outline: none;
}

.energy-analysis-heading-divider {
  display: inline-flex;
  height: 10px;
  min-height: 10px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 0;
  overflow: hidden;
  color: rgba(var(--gx-ui-primary-rgb, 79, 115, 50), 0.72);
  line-height: 1;
}

.energy-analysis-heading-divider img {
  display: block;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%) invert(38%) sepia(22%) saturate(1150%) hue-rotate(46deg) brightness(92%) contrast(91%);
}

.energy-analysis-heading-rule {
  width: 20px;
  height: 20px;
  opacity: 0.68;
}

.energy-analysis-heading-diamond {
  width: 10px;
  height: 10px;
  opacity: 0.92;
}

.energy-analysis-intro-subtitle {
  margin: 0;
  color: var(--energy-choice-muted);
  font-size: clamp(12.5px, 3.55cqi, 15px);
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.energy-analysis-intro-list {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-rows: repeat(2, var(--energy-card-height));
  gap: clamp(10px, 1.7dvh, 16px);
  width: 100%;
  min-width: 0;
  margin: 0;
}

.energy-analysis-intro-card {
  min-width: 0;
  height: var(--energy-card-height);
  border: 1px solid var(--energy-choice-border);
  border-radius: clamp(14px, 4cqi, 17px);
  background: var(--energy-choice-surface);
  padding: clamp(10px, 3.4cqi, 16px);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(var(--gx-ui-shadow-rgb, 69, 55, 37), 0.055);
}

.energy-analysis-card-body {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  grid-template-columns: clamp(96px, 34cqi, 142px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 3.4cqi, 17px);
}

.energy-analysis-art-frame {
  display: grid;
  min-width: 0;
  height: 100%;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--energy-choice-surface);
}

.energy-analysis-art {
  display: block;
  width: 100%;
  max-width: clamp(102px, 33cqi, 142px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.energy-analysis-intro-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: clamp(5px, 0.9dvh, 9px);
}

.energy-analysis-title-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(4px, 1.2cqi, 6px);
  white-space: nowrap;
}

.energy-analysis-title-row h2 {
  flex: 0 1 auto;
  min-width: 0;
}

.energy-analysis-direction-badge {
  display: inline-flex;
  min-height: 20px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--energy-choice-green-strong);
  background: var(--gx-ui-soft, rgba(79, 115, 50, 0.12));
  padding: 3px 5px;
  font-size: clamp(9.5px, 2.55cqi, 11px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.energy-analysis-intro-copy h2 {
  margin: 0;
  color: var(--energy-choice-ink);
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  font-size: clamp(17px, 4.9cqi, 22px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.energy-analysis-intro-copy p {
  margin: 0;
  color: var(--energy-choice-muted);
  font-size: clamp(12px, 3.45cqi, 14px);
  line-height: 1.48;
}

.energy-analysis-start {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: clamp(44px, 6.2dvh, 54px);
  grid-template-columns: minmax(0, 1fr) 24px;
  place-items: center;
  gap: 8px;
  border: 1px solid var(--energy-choice-green);
  border-radius: clamp(10px, 3cqi, 12px);
  color: #fff;
  background: var(--energy-choice-green);
  padding: 0 clamp(12px, 3.8cqi, 18px);
  font-size: clamp(15px, 4.15cqi, 18px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.energy-analysis-start span {
  min-width: 0;
  justify-self: center;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.energy-analysis-start img {
  display: block;
  width: 22px;
  height: 22px;
  justify-self: end;
  filter: brightness(0) invert(1);
}

.energy-analysis-start--secondary {
  color: var(--energy-choice-green);
  background: var(--gx-ui-surface, rgba(255, 254, 251, 0.84));
}

.energy-analysis-start--secondary img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(22%) saturate(1150%) hue-rotate(46deg) brightness(92%) contrast(91%);
}

.energy-analysis-start:hover {
  border-color: var(--energy-choice-green-strong);
  color: #fff;
  background: var(--energy-choice-green-strong);
}

.energy-analysis-start:hover img {
  filter: brightness(0) invert(1);
}

.energy-analysis-intro-footer {
  display: grid;
  min-height: 0;
  grid-column: 1 / -1;
  grid-row: 3;
  place-items: start center;
  align-content: start;
  padding-top: clamp(4px, 1dvh, 9px);
}

.energy-analysis-intro-note {
  display: grid;
  grid-template-columns: 11px minmax(0, auto) 11px;
  align-items: center;
  gap: clamp(9px, 2.8cqi, 13px);
  max-width: 340px;
  margin: 0;
  color: var(--gx-ui-muted, #827060);
  font-size: clamp(11.5px, 3.25cqi, 14.5px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: center;
}

.energy-analysis-intro-note-copy {
  display: grid;
  justify-items: center;
  white-space: nowrap;
}

.energy-analysis-intro-note-sparkle {
  display: block;
  width: 11px;
  height: 11px;
  object-fit: contain;
  opacity: 0.72;
  filter: brightness(0) saturate(100%) invert(59%) sepia(33%) saturate(790%) hue-rotate(354deg) brightness(91%) contrast(85%);
}

.energy-analysis-footer-lockup {
  display: inline-grid;
  grid-template-columns: 38px 28px 38px;
  align-items: center;
  gap: 4px;
  margin-top: 15px;
}

.energy-analysis-footer-rule {
  display: block;
  width: 38px;
  height: 26px;
  object-fit: contain;
  opacity: 0.28;
  filter: brightness(0) saturate(100%) invert(59%) sepia(33%) saturate(790%) hue-rotate(354deg) brightness(91%) contrast(85%);
  transform: scaleX(2);
  transform-origin: center;
}

.energy-analysis-footer-mark {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 1;
}

@media (orientation: portrait) and (min-width: 375px) and (min-height: 701px) {
  .energy-analysis-intro-page {
    --energy-card-height: clamp(220px, 27.2dvh, 236px);
    gap: clamp(20px, 2.75dvh, 25px) 0;
    padding-top: clamp(44px, 5.2dvh, 48px);
  }

  .energy-analysis-home-return {
    position: absolute;
    top: calc(18px - clamp(44px, 5.2dvh, 48px));
    left: calc(10px - clamp(12px, 4cqi, 20px));
  }

  .energy-analysis-intro-heading {
    gap: clamp(5px, 0.85dvh, 8px);
    padding-top: 0;
  }

  .energy-analysis-intro-heading h1 {
    font-size: clamp(28px, 7.8cqi, 34px);
  }

  .energy-analysis-intro-subtitle {
    font-size: clamp(13.5px, 3.65cqi, 16px);
    line-height: 1.5;
  }

  .energy-analysis-card-body {
    grid-template-columns: clamp(150px, 43cqi, 176px) minmax(0, 1fr);
    gap: clamp(12px, 3.4cqi, 17px);
  }

  .energy-analysis-art {
    max-width: clamp(150px, 42.5cqi, 172px);
  }

  .energy-analysis-intro-copy h2 {
    font-size: clamp(18px, 4.8cqi, 21px);
  }

  .energy-analysis-intro-copy p {
    font-size: clamp(11.75px, 3.15cqi, 13px);
  }

  .energy-analysis-intro-footer {
    padding-top: clamp(7px, 0.9dvh, 9px);
  }

  .energy-analysis-intro-note {
    max-width: 330px;
    font-size: clamp(12px, 3.3cqi, 14.5px);
  }
}

@media (max-height: 700px) {
  .energy-analysis-intro-page {
    --energy-card-height: clamp(145px, 25.5dvh, 166px);
    gap: 8px 0;
    padding-top: max(6px, env(safe-area-inset-top, 0px));
    padding-bottom: calc(var(--gx-floating-nav-height, 70px) + 18px + env(safe-area-inset-bottom, 0px));
    background-size: 118% auto;
  }

  .energy-analysis-intro-heading {
    gap: 2px;
    padding-top: 0;
  }

  .energy-analysis-intro-heading h1 {
    font-size: clamp(23px, 6.7cqi, 28px);
  }

  .energy-analysis-heading-divider {
    height: 8px;
    min-height: 8px;
  }

  .energy-analysis-heading-rule {
    width: 16px;
    height: 16px;
  }

  .energy-analysis-heading-diamond {
    width: 8px;
    height: 8px;
  }

  .energy-analysis-intro-subtitle {
    font-size: clamp(11.5px, 3.35cqi, 13px);
    line-height: 1.4;
  }

  .energy-analysis-intro-card {
    padding: clamp(8px, 2.8cqi, 12px);
  }

  .energy-analysis-card-body {
    grid-template-columns: clamp(88px, 30cqi, 112px) minmax(0, 1fr);
    gap: clamp(8px, 2.8cqi, 12px);
  }

  .energy-analysis-art {
    max-width: clamp(90px, 28cqi, 108px);
  }

  .energy-analysis-intro-copy {
    gap: 4px;
  }

  .energy-analysis-intro-copy h2 {
    font-size: clamp(16px, 4.6cqi, 19px);
  }

  .energy-analysis-intro-copy p {
    font-size: clamp(11px, 3.15cqi, 12.5px);
    line-height: 1.36;
  }

  .energy-analysis-start {
    min-height: 44px;
    padding-inline: 10px;
    font-size: clamp(14px, 4cqi, 16px);
  }

  .energy-analysis-intro-footer {
    padding-top: 2px;
  }

  .energy-analysis-intro-note {
    gap: 4px;
    font-size: clamp(10.5px, 3cqi, 12px);
    line-height: 1.35;
  }

  .energy-analysis-intro-note-sparkle {
    width: 9px;
    height: 9px;
  }

  .energy-analysis-footer-lockup {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .energy-analysis-intro-page {
    --energy-card-height: clamp(112px, 30dvh, 128px);
    gap: 5px 0;
    padding-top: 4px;
    padding-bottom: calc(var(--gx-floating-nav-height, 70px) + 14px + env(safe-area-inset-bottom, 0px));
    background-image: none;
  }

  .energy-analysis-intro-heading {
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding-inline: 48px;
  }

  .energy-analysis-intro-heading h1 {
    justify-self: end;
    font-size: 20px;
  }

  .energy-analysis-heading-divider {
    display: none;
  }

  .energy-analysis-intro-subtitle {
    justify-self: start;
    font-size: 11px;
  }

  .energy-analysis-intro-list {
    gap: 5px;
  }

  .energy-analysis-intro-card {
    padding: 7px 10px;
  }

  .energy-analysis-card-body {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
  }

  .energy-analysis-art {
    max-width: 72px;
  }

  .energy-analysis-intro-copy {
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.9fr);
    grid-template-rows: auto auto;
    gap: 2px 10px;
  }

  .energy-analysis-intro-copy h2 {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    font-size: 15px;
  }

  .energy-analysis-intro-copy p {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    font-size: 10px;
    line-height: 1.25;
  }

  .energy-analysis-start {
    min-height: 44px;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 14px;
  }

  .energy-analysis-intro-footer {
    display: none;
  }
}

/* Desktop uses the shared content shell and proportional stacked cards. */
@media (min-width: 768px) and (min-height: 521px) {
  body[data-page-id="energy_analysis"] {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  body[data-page-id="energy_analysis"] .page-shell,
  body[data-page-id="energy_analysis"] #top {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .energy-analysis-intro-page {
    --energy-card-height: clamp(180px, 23dvh, 232px);
    height: auto;
    min-height: 100dvh;
    container-type: inline-size;
    grid-template-rows: auto auto auto;
    gap: 16px 0;
    padding: 20px 20px calc(var(--gx-floating-nav-height, 70px) + 24px);
    background-size: 100% auto;
  }

  .energy-analysis-home-return {
    position: absolute;
    top: 16px;
    left: 16px;
  }

  .energy-analysis-intro-heading {
    gap: 10px;
    padding: 10px 24px 4px;
  }

  .energy-analysis-intro-heading h1 { font-size: 28px; }
  .energy-analysis-intro-subtitle { font-size: 14px; }
  .energy-analysis-intro-list { gap: 16px; }
  .energy-analysis-intro-card { padding: 18px; border-radius: 18px; }

  .energy-analysis-card-body {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
  }

  .energy-analysis-art-frame { min-height: 0; }
  .energy-analysis-art {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: min(168px, calc(var(--energy-card-height) - 38px));
  }
  .energy-analysis-intro-copy { gap: 9px; }
  .energy-analysis-intro-copy h2 { font-size: 20px; }
  .energy-analysis-intro-copy p { font-size: 14px; line-height: 1.55; }
  .energy-analysis-direction-badge { font-size: 10px; padding: 4px 6px; }
  .energy-analysis-start { min-height: 46px; font-size: 16px; font-weight: 600; }

  .energy-analysis-intro-footer {
    align-content: end;
    padding-top: 8px;
  }

  .energy-analysis-intro-note { max-width: 360px; font-size: 14px; }
  .energy-analysis-footer-lockup { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .energy-analysis-start {
    transition: none;
  }
}
