.heatmap-intro {
  --heatmap-ink: #153847;
  --heatmap-text: #38545f;
  --heatmap-muted: #466570;
  --heatmap-blue: #12677e;
  --heatmap-line: #c7dfe6;
  --heatmap-pale: #e1f1f6;
  --fg: var(--heatmap-ink);
  --muted: var(--heatmap-muted);
  --line: var(--heatmap-line);
  --card: #fff;
  --accent-pale: var(--heatmap-pale);
  --color-accent: #1c7791;
  --color-accent-bg: var(--heatmap-pale);
  --color-tag-text: #135c73;
  --color-link: #12677e;
  --color-link-hover: #0b465b;
  --shadow: 0 15px 32px rgb(36 91 107 / 10%);
  background: #f3f9fb;
  color-scheme: light;
}

.heatmap-intro::before,
.heatmap-intro::after {
  content: none;
}

.heatmap-intro main,
.heatmap-intro .site-header,
.heatmap-intro .site-footer {
  width: min(100%, 1248px);
  max-width: none;
  padding-inline: clamp(16px, 4vw, 48px);
}

.heatmap-intro .site-header {
  margin-bottom: 0;
  padding-block: 22px;
}

.heatmap-intro .site-title {
  font-size: 1.2rem;
}

.heatmap-intro .site-title a::before {
  width: 26px;
  height: 26px;
}

.heatmap-intro .work-page {
  padding: 0;
  color: var(--heatmap-text);
  font-size: 1rem;
  line-height: 1.8;
}

.heatmap-intro .work-page p {
  margin: 0;
}

.heatmap-hero {
  padding: clamp(24px, 4.4vw, 56px);
  padding-bottom: clamp(18px, 3vw, 36px);
  border-radius: 23px;
  background: radial-gradient(ellipse at 88% 10%, #1b5362, transparent 65%), #102d3b;
  color: #e0f3f7;
  --color-accent: #8ee7fb;
  --color-link: #b1edff;
  --color-link-hover: #e2faff;
}

.heatmap-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px clamp(22px, 4vw, 52px);
}

.heatmap-hero .work-status {
  align-items: center;
  margin: 0 0 13px;
}

.heatmap-hero .tag-tool {
  background: #ccebf2;
  color: #18536a;
}

.heatmap-intro .heatmap-hero h1 {
  margin: 0 0 13px;
  color: #f5fcfe;
  font-size: clamp(2.2rem, 4.55vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.058em;
  line-height: 1.14;
}

.heatmap-hero h1 span {
  color: #9be6f4;
}

.heatmap-lead {
  font-size: clamp(1.02rem, 1.75vw, 1.36rem);
  font-weight: 700;
}

.heatmap-hero-actions {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 8px;
  padding-left: clamp(18px, 3vw, 35px);
  border-left: 1px solid rgb(183 226 235 / 36%);
}

.heatmap-hero-actions p {
  font-size: 0.85rem;
}

.heatmap-intro .work-launch {
  width: auto;
  margin: 0;
}

.heatmap-intro .work-launch > .work-launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 10px 17px;
  border-radius: 9px;
  background: #b5eff9;
  color: #114254;
  font-size: 1rem;
}

.heatmap-intro .work-launch > .work-launch-button:hover {
  background: #d8f7fb;
}

.heatmap-text-link {
  font-size: 0.89rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.heatmap-preview {
  width: min(100%, 950px);
  margin: clamp(22px, 3.5vw, 36px) auto 0;
}

.heatmap-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
  box-shadow: 0 18px 30px rgb(3 18 25 / 25%);
}

.heatmap-preview figcaption {
  margin-top: 8px;
  color: #daeff4;
  font-size: 0.84rem;
  text-align: center;
}

.heatmap-intro .heatmap-section {
  margin-top: clamp(42px, 6vw, 78px);
}

.heatmap-intro .heatmap-section h2 {
  margin: 0 0 14px;
  color: var(--heatmap-ink);
  font-size: clamp(1.45rem, 2.8vw, 2.16rem);
  line-height: 1.4;
}

.heatmap-reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  gap: 20px clamp(25px, 5.5vw, 74px);
  align-items: center;
}

.heatmap-example {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid var(--heatmap-line);
  border-radius: 12px;
  background: #fff;
}

.heatmap-example dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  margin: 7px 0 0;
}

.heatmap-example dt {
  color: var(--heatmap-muted);
  font-size: 0.83rem;
}

.heatmap-example dd {
  margin: 0;
  color: var(--heatmap-blue);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.heatmap-metrics {
  margin: 0;
  border-top: 1px solid var(--heatmap-line);
}

.heatmap-metrics > div {
  padding: 11px 0;
  border-bottom: 1px solid var(--heatmap-line);
}

.heatmap-metrics dt,
.heatmap-conditions dt {
  color: var(--heatmap-ink);
  font-weight: 700;
}

.heatmap-metrics dd,
.heatmap-conditions dd {
  margin: 2px 0 0;
}

.heatmap-ranking {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
  gap: 0 clamp(18px, 4vw, 46px);
  align-items: start;
  padding: clamp(19px, 3.5vw, 39px);
  border: 1px solid var(--heatmap-line);
  border-radius: 15px;
  background: var(--heatmap-pale);
}

.heatmap-intro .heatmap-ranking p + p,
.heatmap-intro .heatmap-conditions p + p {
  margin-top: 7px;
}

.heatmap-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.heatmap-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-content: start;
  padding: clamp(13px, 1.8vw, 24px);
  border: 1px solid var(--heatmap-line);
  border-radius: 13px;
  background: #fff;
}

.heatmap-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--heatmap-pale);
  color: var(--heatmap-blue);
  font-family: var(--font-en);
  font-weight: 700;
}

.heatmap-steps h3 {
  margin: 1px 0 4px;
  color: var(--heatmap-ink);
  font-size: 1.08rem;
  line-height: 1.45;
}

.heatmap-intro .work-page .heatmap-file-name {
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--heatmap-blue);
  font-size: 0.78rem;
}

.heatmap-intro .work-page .heatmap-howto-note {
  margin-top: 13px;
  color: var(--heatmap-muted);
  font-size: 0.9rem;
}

.heatmap-conditions dl {
  margin: 0;
  border-top: 1px solid var(--heatmap-line);
}

.heatmap-conditions dl > div {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
  gap: 3px 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--heatmap-line);
}

.heatmap-open-again {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  padding: 24px 14px;
  border-radius: 14px;
  background: #153949;
  --color-accent: #8ee7fb;
}

.heatmap-intro .work-author div > p:first-of-type {
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .heatmap-hero-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .heatmap-hero-actions {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .heatmap-intro .site-header {
    padding-block: 14px 20px;
  }

  .heatmap-intro .site-nav {
    column-gap: 0;
  }

  .heatmap-intro .site-nav a {
    padding-inline: 7px;
  }

  .heatmap-intro .heatmap-hero h1 {
    font-size: clamp(1.7rem, 7.8vw, 2.25rem);
  }

  .heatmap-hero h1 span {
    display: block;
    margin-bottom: 0.13em;
  }

  .heatmap-reading,
  .heatmap-ranking,
  .heatmap-steps,
  .heatmap-conditions dl > div,
  .heatmap-intro .work-history li {
    grid-template-columns: minmax(0, 1fr);
  }
}
