.hpn-btn {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3125rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.hpn-btn:hover { color: var(--hpn-accent, #d33e2e); }

.hpn-btn i,
.hpn-btn::before,
.hpn-btn::after {
  content: "";
  display: block;
  width: 1.375rem;
  height: 0.125rem;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hpn-btn[aria-expanded="true"]::before { transform: translateY(0.4375rem) rotate(45deg); }
.hpn-btn[aria-expanded="true"] i { opacity: 0; }
.hpn-btn[aria-expanded="true"]::after { transform: translateY(-0.4375rem) rotate(-45deg); }

.hpn-x {
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.hpn-x:hover { color: var(--hpn-accent, #d33e2e); }

.hpn-x svg {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hpn-card[aria-current] { color: var(--hpn-accent, #d33e2e); }

.hpn-card.has::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hpn-accent, #d33e2e);
}

.hpn-lang { position: relative; }
.hpn-lang summary { list-style: none; }
.hpn-lang summary::-webkit-details-marker { display: none; }

.hpn-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.375rem);
  min-width: 10rem;
  padding: 0.375rem;
  display: flex;
  flex-direction: column;
  z-index: 30;
  background: var(--hpn-paper, #ffffff);
  color: var(--hpn-ink, #1c1c1c);
  border: 0.0625rem solid var(--hpn-line, #e0e0e0);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.22);
}

.hpn-lang-menu a,
.hpn-lang-menu b {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
}

.hpn-lang-menu a:hover { color: var(--hpn-accent, #d33e2e); }
.hpn-lang-menu b { color: var(--hpn-accent, #d33e2e); }
.hpn-lang-menu b::after { content: "\25cf"; margin-left: auto; font-size: 0.75rem; }

.hpn-panel {
  position: fixed;
  inset: var(--hpn-bars-h, var(--hpn-head-h, 3.5rem)) 0 0 0;
  z-index: 19;
  display: block;
  padding: 1.625rem 1.375rem 2.5rem;
  overflow: auto;
  background: var(--hpn-paper, #ffffff);
  color: var(--hpn-ink, #1c1c1c);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hpn-panel.open { transform: none; }

@media (min-width: 56.25rem) {
  .hpn-panel {
    inset: var(--hpn-bars-h, var(--hpn-head-h, 3.5rem)) 0 auto auto;
    width: min(26rem, 100vw);
    max-height: calc(100vh - var(--hpn-bars-h, var(--hpn-head-h, 3.5rem)));
    box-shadow: -0.5rem 0 2rem rgba(0, 0, 0, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpn-panel,
  .hpn-btn i,
  .hpn-btn::before,
  .hpn-btn::after { transition: none; }
}

.hpn-lock { overflow: hidden; }

.hpn-btn:focus-visible,
.hpn-x:focus-visible,
.hpn-panel a:focus-visible {
  outline: 0.125rem solid var(--hpn-accent, #d33e2e);
  outline-offset: -0.125rem;
}

.hpn-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hpn-list + .hpn-list { margin-top: 1.75rem; }

.hpn-h {
  margin: 0 0 0.375rem;
  font-family: var(--hpn-font, inherit);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hpn-accent, #d33e2e);
}

.hpn-list a,
.hpn-list b {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 0.0625rem solid var(--hpn-line, #e0e0e0);
  color: inherit;
  text-decoration: none;
  font-family: var(--hpn-font, inherit);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hpn-list a:hover { color: var(--hpn-accent, #d33e2e); }

.hpn-list a[aria-current],
.hpn-langs b {
  color: var(--hpn-accent, #d33e2e);
}

.hpn-list a[aria-current]::after,
.hpn-list a.has::after,
.hpn-langs b::after {
  content: "";
  flex: none;
  align-self: center;
  margin-left: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--hpn-accent, #d33e2e);
}

.hpn-meta {
  margin: 1.75rem 0 0;
  padding-top: 1.75rem;
  border-top: 0.0625rem solid var(--hpn-line, #e0e0e0);
  color: var(--hpn-muted, #828282);
  font-size: 0.875rem;
  line-height: 1.5;
}

.hpn-meta a {
  display: inline-block;
  margin-top: 0.375rem;
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.hpn-meta a:hover { color: var(--hpn-accent, #d33e2e); }

.hpn-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.hpn-sheet.open { pointer-events: auto; }

.hpn-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.hpn-sheet.open::before { opacity: 1; }

.hpn-sheet-in {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(28rem, 100%);
  display: flex;
  flex-direction: column;
  background: var(--hpn-paper, #ffffff);
  color: var(--hpn-ink, #1c1c1c);
  box-shadow: -0.5rem 0 2rem rgba(0, 0, 0, 0.24);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.hpn-sheet.open .hpn-sheet-in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hpn-sheet::before,
  .hpn-sheet-in { transition: none; }
}

.hpn-sheet-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 0.25rem;
  border-bottom: 0.0625rem solid var(--hpn-line, #e0e0e0);
}

.hpn-sheet-t {
  flex: 1;
  text-align: center;
  font-family: var(--hpn-font, inherit);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hpn-muted, #828282);
}

.hpn-sheet-body {
  flex: 1;
  min-height: 0;
}

.hpn-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--hpn-paper, #ffffff);
}

.hpn-bar,
.hpn-bar2 { transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }

.hpn-bar.hpn-off { transform: translateY(-100%); transition-duration: 0.28s; }
.hpn-bar2.hpn-off { transform: translateY(calc(-100% - var(--hpn-head-h, 3.5rem))); transition-duration: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .hpn-bar,
  .hpn-bar2 { transition: none; }
}
