/* Shared high-visibility controls for the climate report. */
.hnClimateSectionMenu {
  display: none;
}
.hnClimateNav {
  border-color: var(--ink) !important;
  background: var(--surface) !important;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--bg) 72%, transparent),
    0 4px 14px rgba(0, 0, 0, .16) !important;
}
.hnClimateNav a {
  min-width: 32px;
  min-height: 34px !important;
  justify-content: center;
  padding: 0 8px !important;
  color: var(--ink) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  opacity: 1;
}
.hnClimateNav a + a {
  border-left: 1px solid var(--line2) !important;
}
.hnClimateNav a:hover {
  background: color-mix(in srgb, var(--ink) 12%, var(--surface)) !important;
}
.hnClimateNav a[aria-current="page"] {
  background: var(--ink) !important;
  color: var(--bg) !important;
  box-shadow: inset 0 -3px 0 var(--sc15);
}
.hnClimateNav a:focus-visible,
.hnClimateSectionMenu > summary:focus-visible,
.hnClimateSectionPanel a:focus-visible,
.reportMenuFloat > summary:focus-visible {
  outline: 2px solid var(--sc15);
  outline-offset: 2px;
}

.reportMenuFloat > summary {
  min-height: 50px !important;
  padding: 0 1.15rem !important;
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--panel) !important;
  color: var(--panel-ink) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28), 0 8px 20px -12px rgba(0, 0, 0, .55) !important;
  font-family: var(--f-body) !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  letter-spacing: .035em !important;
  text-transform: none !important;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.reportMenuFloat > summary::before {
  content: "";
  width: 14px;
  height: 9px;
  flex: 0 0 auto;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 4px / 9px 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 14px 1px no-repeat;
  opacity: .68;
  box-shadow: none;
}
.reportMenuFloat > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: .15rem;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  font-size: 0;
  transform: rotate(-45deg) translate(-1px, 1px);
  transition: transform .16s ease;
}
.reportMenuFloat[open] > summary::after {
  transform: rotate(135deg) translate(-1px, 1px);
}
.reportMenuFloat > summary:hover {
  background: color-mix(in srgb, var(--panel) 90%, var(--panel-ink)) !important;
  color: var(--panel-ink) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3), 0 10px 24px -14px rgba(0, 0, 0, .58) !important;
  transform: translateY(-1px);
}
.reportMenuFloat[open] > summary {
  background: color-mix(in srgb, var(--panel) 92%, var(--panel-ink)) !important;
}
.reportMenuFloat nav {
  border: 0 !important;
  border-radius: 2px !important;
  background: var(--surface) !important;
  min-width: 270px !important;
  padding: .55rem !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .24) !important;
}
.reportMenuFloat nav a {
  display: flex !important;
  align-items: center !important;
  min-height: 48px !important;
  padding: .8rem .95rem !important;
  font-family: var(--f-body) !important;
  font-size: .92rem !important;
  font-weight: 550 !important;
  line-height: 1.32 !important;
  letter-spacing: .025em !important;
  text-transform: none !important;
}

.reportUpdateLine {
  justify-content: flex-start;
  font-family: var(--f-body);
  font-size: .84rem;
  letter-spacing: .01em;
}

/* Shared editorial status and revision history for living reports. */
.livingReport {
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.livingReportGrid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.livingReportCopy h2 {
  max-width: 12ch;
  margin: 0 0 1.6rem;
  font-size: clamp(2.7rem, 5.8vw, 5.6rem);
  line-height: .9;
}
.livingReportCopy p {
  max-width: 61ch;
  margin: 0;
  color: var(--ink2);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.72;
}
.livingReportHistory {
  border-top: 1px solid var(--line2);
}
.livingReportUpdated {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--mut);
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.livingReportUpdated time {
  color: var(--ink);
  text-align: right;
}
.livingReportHistory h3 {
  margin: 2rem 0 .85rem;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 650;
}
.livingReportLog {
  margin: 0;
  padding: 0;
  list-style: none;
}
.livingReportLog li {
  display: grid;
  grid-template-columns: 6.3rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
}
.livingReportLog time {
  color: var(--pind);
  font-family: var(--f-mono);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.livingReportLog p {
  margin: 0;
  color: var(--ink2);
  line-height: 1.58;
}
.livingReportLog a {
  color: var(--ink);
  font-weight: 620;
  text-decoration-color: color-mix(in srgb, var(--pind) 72%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.livingReportLog a:hover,
.livingReportLog a:focus-visible {
  color: var(--pind);
}
.livingReportLog a:focus-visible {
  outline: 2px solid var(--pind);
  outline-offset: 3px;
}
.navigatorTerm {
  position: relative;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--pind) 78%, transparent);
  color: var(--ink);
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  cursor: help;
}
.navigatorTerm:focus-visible {
  outline: 2px solid var(--pind);
  outline-offset: 3px;
}
.navigatorTooltip {
  position: absolute;
  z-index: 65;
  right: auto;
  left: 0;
  top: calc(100% + .8rem);
  bottom: auto;
  width: min(38rem, calc(100vw - 3rem));
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line2);
  color: var(--ink2);
  background: var(--surface);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  font-family: var(--f-body);
  font-size: .9rem;
  font-weight: 420;
  line-height: 1.58;
  letter-spacing: 0;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(.35rem);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  pointer-events: none;
}
.navigatorTerm:hover .navigatorTooltip,
.navigatorTerm:focus-visible .navigatorTooltip,
.navigatorTerm.is-open .navigatorTooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.navigatorTerm.is-dismissed:hover .navigatorTooltip {
  opacity: 0;
  visibility: hidden;
  transform: translateY(.35rem);
}
.reportSubscribeForm {
  margin-top: 1.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line2);
}
.reportSubscribeForm fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.reportSubscribeForm legend {
  margin: 0 0 .75rem;
  padding: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
}
.reportSubscribeTopics {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.15rem;
}
.reportSubscribeTopics label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ink2);
  font-size: .83rem;
  line-height: 1.35;
  cursor: pointer;
}
.reportSubscribeTopics input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--pind);
}
.reportSubscribeRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: .9rem;
}
.reportSubscribeRow input {
  min-width: 0;
  min-height: 44px;
  padding: 0 .85rem;
  border: 1px solid var(--line2);
  border-right: 0;
  border-radius: 0;
  color: var(--ink);
  background: var(--bg);
  font: 500 .9rem/1 var(--f-body);
}
.reportSubscribeRow input::placeholder {
  color: var(--mut);
}
.reportSubscribeRow button {
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--pind);
  border-radius: 0;
  color: var(--bg);
  background: var(--pind);
  font: 700 .72rem/1 var(--f-mono);
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
}
.reportSubscribeRow button:hover,
.reportSubscribeRow button:focus-visible {
  color: var(--ink);
  background: color-mix(in srgb, var(--pind) 82%, var(--bg));
}
.reportSubscribeRow input:focus-visible,
.reportSubscribeRow button:focus-visible {
  outline: 2px solid var(--pind);
  outline-offset: 2px;
}
.reportSubscribeRow button:disabled {
  cursor: wait;
  opacity: .62;
}
.reportSubscribeStatus {
  min-height: 1.4em;
  margin: .65rem 0 0;
  color: var(--ink2);
  font-size: .78rem;
  line-height: 1.4;
}
.reportSubscribeStatus.err {
  color: var(--p4);
}
.reportSubscribeForm .hiddenTrap {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.reportOtherMaterials {
  padding: clamp(1.35rem, 2.6vw, 2.1rem) 0;
  background: var(--bg);
}
.reportOtherMaterials h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  font-weight: 600;
}
.reportOtherMaterials .reportFooterNav {
  margin-top: .8rem;
}
.reportOtherMaterials .reportFooterNav a,
.reportOtherMaterials .reportFooterNav a:first-child {
  min-height: 52px;
  color: var(--ink2);
  font-weight: 520;
}
.reportFooterNav {
  display: grid;
  grid-template-columns: minmax(270px, 1.45fr) repeat(3, minmax(150px, 1fr));
  margin-top: clamp(2.2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reportFooterNav a {
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: .9rem clamp(.85rem, 1.8vw, 1.4rem);
  border-right: 1px solid var(--line);
  color: var(--ink2);
  font-family: var(--f-body);
  font-size: .86rem;
  font-weight: 520;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease;
}
.reportFooterNav a:first-child {
  padding-left: 0;
  color: var(--ink);
  font-weight: 650;
}
.reportFooterNav a:last-child {
  border-right: 0;
}
.reportFooterNav a:hover,
.reportFooterNav a:focus-visible {
  background: var(--surface);
  color: var(--ink);
}
.reportFooterNav a:focus-visible {
  outline: 2px solid var(--sc15);
  outline-offset: -2px;
}
body:has(.hnCookieConsent:not([hidden])) .reportMenuFloat {
  bottom: 154px;
}

@media (max-width: 1100px) {
  .topbar {
    gap: .35rem !important;
  }
  .topbar > .brand,
  .topbar > nav {
    display: none !important;
  }
  .hnClimateSectionMenu {
    position: relative;
    display: block;
    height: 100%;
    flex: 0 0 auto;
  }
  .hnClimateSectionMenu > summary {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 9px;
    padding: 0 8px 0 2px;
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .08em;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
  }
  .hnClimateSectionMenu > summary::-webkit-details-marker {
    display: none;
  }
  .hnClimateSectionIcon {
    display: grid;
    width: 22px;
    gap: 5px;
  }
  .hnClimateSectionIcon i {
    display: block;
    width: 22px;
    height: 1px;
    background: currentColor;
  }
  .hnClimateSectionMenu[open] .hnClimateSectionIcon i:first-child {
    transform: translateY(3px) rotate(20deg);
  }
  .hnClimateSectionMenu[open] .hnClimateSectionIcon i:last-child {
    transform: translateY(-3px) rotate(-20deg);
  }
  .hnClimateSectionPanel {
    position: fixed;
    z-index: 70;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line2);
    background: var(--surface);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
    counter-reset: climate-section;
  }
  .hnClimateSectionMenu[open] .hnClimateSectionPanel {
    display: grid;
  }
  .hnClimateSectionPanel a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding: 8px 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--mut);
    font-family: var(--f-mono);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
    counter-increment: climate-section;
  }
  .hnClimateSectionPanel a::before {
    content: counter(climate-section, decimal-leading-zero);
    flex: 0 0 2.4em;
    color: var(--sc15);
    font-variant-numeric: tabular-nums;
  }
  html[data-theme="dark"] .hnClimateSectionPanel a {
    color: #fff;
  }
  .hnClimateSectionPanel a:nth-child(2n) {
    border-right: 0;
  }
  .hnClimateSectionPanel a.act {
    background: color-mix(in srgb, var(--ink) 8%, var(--surface));
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--sc15);
  }
  .topbar .hnClimateNav {
    height: 30px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .hnClimateNav a {
    height: 28px !important;
    min-width: 29px;
    min-height: 28px !important;
    padding: 0 6px !important;
    font-size: 9px !important;
  }
}

@media (max-width: 820px) {
  footer.wrap > .report-about-grid {
    margin-inline: var(--gut);
  }
  .livingReportGrid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .livingReportCopy h2 {
    max-width: 11ch;
  }
}

@media (max-width: 720px) {
  .cec-proposal .cec-list {
    padding-left: 2rem;
  }
  .livingReport {
    padding: 3.5rem 0;
  }
  .livingReportUpdated {
    display: grid;
    gap: .35rem;
  }
  .livingReportUpdated time {
    text-align: left;
  }
  .livingReportLog li {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
  .navigatorTooltip {
    position: fixed;
    top: auto;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    width: auto;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
  }
  .reportSubscribeRow {
    grid-template-columns: 1fr;
    gap: .55rem;
  }
  .reportSubscribeRow input {
    border-right: 1px solid var(--line2);
  }
  .reportSubscribeRow button {
    min-height: 46px;
  }
  .reportOtherMaterials {
    padding: 1.35rem 0 1.75rem;
  }
  .reportMenuFloat > summary {
    min-height: 46px !important;
    padding: 0 .9rem !important;
    font-size: .76rem !important;
  }
  .reportMenuFloat nav {
    min-width: min(280px, calc(100vw - 32px)) !important;
  }
  .reportMenuFloat nav a {
    min-height: 46px !important;
    padding: .72rem .82rem !important;
    font-size: .86rem !important;
  }
  .reportFooterNav {
    grid-template-columns: 1fr;
    margin-top: .8rem;
  }
  .reportFooterNav a,
  .reportFooterNav a:first-child {
    min-height: 44px;
    padding: .6rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .reportOtherMaterials .reportFooterNav a,
  .reportOtherMaterials .reportFooterNav a:first-child {
    min-height: 44px;
  }
  .reportFooterNav a:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 560px) {
  body:has(.hnCookieConsent:not([hidden])) .reportMenuFloat {
    bottom: 206px;
  }
}
