:root {
  --page-bg: #FAFAFA;
  --panel-bg: #FFFFFF;
  --text-main: #071629;
  --text-muted: rgba(7, 22, 41, 0.68);
  --border-soft: rgba(7, 22, 41, 0.12);
  --header-bg: #FFFFFF;
  --header-text: #071629;
  --accent: #1e3448;
  --color-border-subtle: rgba(7, 22, 41, 0.08);
  --radius-header: 0.6rem;
  --radius-pill: 0.72rem;
  --radius-panel: 0.52rem;
  --radius-card: 0.64rem;
  --shadow-header: 0 10px 24px rgba(7, 22, 41, 0.1);
  --shadow-flyout: 0 12px 24px rgba(7, 22, 41, 0.12);
  --shadow-soft: 0 18px 48px rgba(31, 47, 69, 0.10);
  --ff-main: "Montserrat", "Avenir Next", Avenir, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-medium-mobile: 480;
  --fw-emphasis: 600;
  --lh-heading: 1.1;
  --lh-ui: 1.15;
  --fs-support: 0.88rem;
  --fs-tagline: clamp(1rem, 2.2vw, 1.4rem);
  --fs-menu-title: 0.92rem;
  --fs-menu-note: 0.76rem;
  --lh-support: 1.24;
  --title-gap-bottom: 1.6rem;
  --page-side-pad: 6rem;
  --page-mobile-side-pad: 10px;
  --col-spot: 11ch;
  --col-surf: 2.65rem;
  --col-wind: 10.9ch;
  --col-primary: 12.7ch;
  --col-secondary: 26ch;
  --col-energy: 8ch;
  --cluster-gap-w: 0.6ch;
  --extra-value-w: 4ch;
  --extra-unit-w: 2ch;
  --col-extra: calc(var(--extra-value-w) + var(--extra-unit-w) + var(--cluster-gap-w));
  --overview-table-w: calc(var(--col-spot) + var(--col-surf) + var(--col-wind) + var(--col-primary) + var(--col-secondary) + var(--col-energy) + var(--col-extra) + var(--col-extra) + var(--col-extra));
  --overview-side-panel-w: 18rem;
  --overview-side-panel-gap: 1rem;
  --overview-layout-w: calc(var(--overview-table-w) + var(--overview-side-panel-gap) + var(--overview-side-panel-w) + 0.2rem);
  --col-time: 4ch;
  --detail-table-w: calc(var(--col-time) + var(--col-surf) + var(--col-wind) + var(--col-primary) + var(--col-secondary) + var(--col-energy) + var(--col-extra) + var(--col-extra) + var(--col-extra) + var(--col-extra));
  --page-content-w: max(var(--overview-table-w), var(--detail-table-w));
  --page-fluid-side-pad: max(var(--page-mobile-side-pad), min(var(--page-side-pad), calc((100% - var(--page-content-w)) / 2)));
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  color: var(--text-main);
  font-family: var(--ff-main);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  font-weight: var(--fw-regular);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.info-page-shell {
  width: 100%;
  max-width: 1480px;
  min-height: 100vh;
  margin: 0 auto;
  padding:
    env(safe-area-inset-top, 0px)
    var(--page-fluid-side-pad)
    3rem;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 0;
  min-width: 0;
}

.page-head {
  position: sticky;
  top: 0;
  z-index: 24;
  background: var(--page-bg);
  width: 100%;
  max-width: 100%;
  padding: 0 0.15rem var(--title-gap-bottom);
}

.page-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-header);
  background: var(--header-bg);
  color: var(--header-text);
  border-left: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: none;
  width: 100%;
  max-width: 100%;
}

.page-brand,
.page-tagline,
.menu-button {
  color: var(--header-text);
  font-family: var(--ff-main);
}

.page-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.page-logo {
  display: block;
  width: auto;
  height: clamp(2.9rem, 4.8vw, 3.3rem);
  max-width: min(15rem, 100%);
  object-fit: contain;
}

.page-logo--mark {
  height: clamp(3.15rem, 5vw, 3.55rem);
  max-width: none;
}

.page-tagline {
  justify-self: center;
  text-align: center;
  font-size: var(--fs-tagline);
  font-weight: var(--fw-medium);
  letter-spacing: -0.015em;
  line-height: var(--lh-heading);
}

.page-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  justify-self: end;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.12rem 0.48rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(7, 22, 41, 0.16);
  background: rgba(7, 22, 41, 0.04);
  color: var(--header-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-wrap,
.menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.menu-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  cursor: pointer;
  width: 1.7rem;
  height: 1.7rem;
  min-height: 0;
  line-height: 0;
  align-self: center;
}

.menu-button-bar {
  display: block;
  width: 1.26rem;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--header-text);
  flex: 0 0 auto;
}

.login-button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  color: var(--header-text);
  cursor: pointer;
  align-self: center;
}

.login-button-icon {
  display: block;
  width: 1.7rem;
  height: 1.7rem;
}

.login-panel,
.menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: max-content;
  min-width: 13.5rem;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-panel);
  background: var(--panel-bg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-flyout);
  z-index: 60;
}

.login-panel {
  min-width: 8rem;
  padding: 0.62rem 0.82rem;
  text-align: left;
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.menu-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  cursor: pointer;
  color: var(--text-main);
}

.menu-link {
  min-height: 2.55rem;
  padding: 0.24rem 0;
  text-decoration: none;
}

.menu-link + .menu-link {
  border-top: 1px solid rgba(29, 42, 58, 0.10);
  padding-top: 0.48rem;
}

.menu-link-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
}

.menu-option-text {
  display: grid;
  gap: 0.15rem;
}

.menu-option-title {
  font-size: var(--fs-menu-title);
  font-weight: var(--fw-medium);
  line-height: var(--lh-ui);
}

.info-page-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--header-text);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.info-page-main {
  display: grid;
  gap: 1rem;
  width: min(100%, 920px);
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}

.info-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 500;
}

.info-breadcrumb a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.info-article {
  display: grid;
  gap: 1.05rem;
  min-width: 0;
  padding: clamp(1rem, 2.6vw, 1.7rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: var(--panel-bg);
  box-shadow: var(--shadow-soft);
}

.info-article a,
.info-article p,
.info-article li {
  overflow-wrap: break-word;
}

.info-article a {
  overflow-wrap: anywhere;
}

.info-article h1,
.info-article h2 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: var(--fw-emphasis);
  color: var(--text-main);
}

.info-article p,
.info-article li {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: var(--fw-regular);
}

.info-article p {
  margin: 0;
}

.info-article ul {
  margin: 0;
  padding-left: 1.1rem;
}

.info-section {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.35rem;
  scroll-margin-top: 1rem;
}

.info-section + .info-section {
  border-top: 1px solid rgba(29, 42, 58, 0.10);
  padding-top: 1.05rem;
}

.info-scale-grid {
  display: grid;
  gap: 0.48rem;
  margin-top: 0.12rem;
}

.info-scale-row {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.31rem;
  min-height: 1.05rem;
}

.info-scale-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

.info-scale-text {
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.55;
  font-weight: var(--fw-regular);
}

.info-scale-symbol {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.info-scale-symbol--line {
  width: 1.25rem;
  height: 0.25rem;
}

.info-article .info-scale-heading {
  color: var(--text-muted);
  font-size: var(--fs-support);
  line-height: var(--lh-support);
  font-weight: var(--fw-regular);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 1.05rem;
  margin-bottom: 0;
}

.info-note {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-card);
  background: #edf4f8;
  color: var(--text-main);
  line-height: 1.55;
}

@media (max-width: 640px) {
  :root {
    --radius-header: 0;
    --fs-tagline: 0.82rem;
  }

  .info-page-shell {
    padding-left: var(--page-mobile-side-pad);
    padding-right: var(--page-mobile-side-pad);
  }

  .page-head {
    width: auto;
    max-width: none;
    margin-inline: calc(var(--page-mobile-side-pad) * -1);
    padding-inline: 0;
    padding-bottom: 1.35rem;
  }

  .page-nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand tagline menu";
    gap: 0.45rem;
    padding: 0.9rem 0.75rem;
    border-radius: var(--radius-header);
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .page-brand {
    grid-area: brand;
    min-width: 0;
  }

  .page-logo {
    height: 2.45rem;
    max-width: min(9.9rem, 100%);
  }

  .page-logo--mark {
    height: 2.7rem;
    max-width: none;
  }

  .page-tagline {
    grid-area: tagline;
    min-width: 0;
    font-weight: var(--fw-medium-mobile);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-actions {
    grid-area: menu;
    gap: 0.4rem;
  }

  .beta-badge {
    min-height: 1.32rem;
    padding: 0.08rem 0.38rem;
    font-size: 0.64rem;
  }

  .menu-button {
    gap: 0.2rem;
    width: 1.55rem;
    height: 1.55rem;
  }

  .menu-button-bar {
    width: 1.08rem;
  }

  .login-button {
    width: 1.7rem;
    height: 1.7rem;
  }

  .login-button-icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .login-panel,
  .menu-panel {
    right: 0;
    min-width: min(15rem, calc(100vw - 2rem));
  }

  .info-article h1,
  .info-article h2 {
    font-size: 0.81rem;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  .info-article p,
  .info-article li,
  .info-scale-text {
    font-size: 0.88rem;
    line-height: 1.28;
  }
}

@media (min-width: 980px) {
  .info-page-shell {
    --page-content-w: max(var(--overview-layout-w), var(--detail-table-w));
    --page-fluid-side-pad: max(var(--page-mobile-side-pad), min(var(--page-side-pad), calc((100% - var(--page-content-w)) / 2)));
  }
}

@media (pointer: coarse) and (orientation: landscape) and (max-height: 520px) {
  .info-article h1,
  .info-article h2 {
    font-size: 0.842rem;
    line-height: 1.16;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  .info-article p,
  .info-article li,
  .info-scale-text {
    font-size: 0.78rem;
    line-height: 1.22;
  }
}
