/* HeyPolo Help Center
   Tokens match heypolo.com and the Help Center Figma.
   Muted text and filled buttons are darkened so normal text clears WCAG 2.1 AA (4.5:1).
*/

@font-face {
  font-family: "Nohemi";
  src: url("https://heypolo.com/fonts/Nohemi-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nohemi";
  src: url("https://heypolo.com/fonts/Nohemi-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("https://heypolo.com/fonts/InstrumentSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("https://heypolo.com/fonts/InstrumentSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("https://heypolo.com/fonts/InstrumentSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("https://heypolo.com/fonts/InstrumentSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --hp-bg: #f2f6ff;
  --hp-band: #edf2fd;
  --hp-surface: #fbfdff;
  --hp-white: #ffffff;
  --hp-ink: #0f1d3a;
  --hp-muted: #0f1d3a;
  --hp-blue: #3284ff;
  --hp-blue-strong: #1b64da;
  --hp-link: #1b56d0;
  --hp-circle: #dde8ff;
  --hp-line: #c3d0eb;
  --hp-footer-edge: #edf3ff;
  --hp-font: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hp-display: "Nohemi", "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --hp-header-height: 3.5rem;
  --hp-container: 80rem;
  --hp-narrow: 50rem;
  --hp-radius-card: 2rem;
  --hp-focus: #0f1d3a;
  --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --article-dock-height: 0px;
  --toc-panel-top: 4.5rem;
  --hp-chrome-top: 0px;
  --hp-chrome-fixed: 0px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  padding-top: var(--hp-chrome-fixed);
  scroll-padding-top: calc(var(--hp-header-height) + var(--hp-chrome-top) + 1rem);
  scroll-padding-bottom: var(--article-dock-height);
  -webkit-text-size-adjust: 100%;
}

html.hp-has-dock body {
  padding-bottom: var(--article-dock-height);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--hp-bg);
  color: var(--hp-ink);
  font-family: var(--hp-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  outline: none;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--hp-link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: #143f9a;
}

:focus-visible {
  outline: 2px solid var(--hp-focus);
  outline-offset: 2px;
}

::placeholder {
  color: #243044;
  opacity: 1;
}

::selection {
  background: #c3d0eb;
  color: var(--hp-ink);
}

.hp-sr-only,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden,
[hidden] {
  display: none !important;
}

.zg-js .zg-crawlable {
  display: none !important;
}

.zg-crawlable {
  padding-block: 1.5rem;
}

html.zg-scroll-locked,
html.zg-scroll-locked body {
  overflow: hidden;
}

html.zg-scroll-locked body {
  position: fixed;
  width: 100%;
}

/* Skip link */
.hp-skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--hp-ink);
  color: var(--hp-surface);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.hp-skip:focus {
  transform: none;
  color: var(--hp-surface);
}

/* Header */
@keyframes hp-header-slide-down {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.hp-header {
  position: sticky;
  top: var(--hp-chrome-top);
  z-index: 40;
  overflow: visible;
  background: var(--hp-bg);
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.hp-header.is-scrolled,
.hp-header.is-menu-open {
  background: rgba(242, 246, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(195, 208, 235, 0.55);
}

.hp-header__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 74.5rem);
  height: var(--hp-header-height);
  margin: 0 auto;
  padding: 0 1.25rem;
  overflow: visible;
}

.hp-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: max-content;
  color: var(--hp-ink);
  line-height: 0;
  text-decoration: none;
}

.hp-header__logo img {
  display: block;
  width: 7.125rem;
  height: 2rem;
  max-width: none;
  aspect-ratio: 114 / 32;
  object-fit: contain;
}

.hp-nav {
  display: none;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
}

.hp-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.hp-nav__group {
  position: relative;
}

.hp-nav__link,
.hp-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.5rem;
  padding: 0.625rem 0.875rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hp-ink);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.hp-nav__link,
.hp-nav__toggle,
.hp-btn,
.hp-icon-btn,
.hp-acc__trigger,
.hp-faq__trigger,
.hp-footer a,
.hp-dock__chat,
.hp-dock__mail,
.hp-share__btn {
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.hp-nav__link:hover,
.hp-nav__toggle:hover,
.hp-nav__link:active,
.hp-nav__toggle:active,
.hp-nav__toggle[aria-expanded="true"] {
  background: var(--hp-circle);
  color: var(--hp-blue-strong);
}

.hp-nav__chevron {
  width: 1rem;
  height: 1rem;
  transition: transform 150ms ease;
}

.hp-nav__toggle[aria-expanded="true"] .hp-nav__chevron {
  transform: rotate(180deg);
}

.hp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.4375rem;
  border-radius: 40px;
  background: var(--hp-blue-strong);
  color: var(--hp-surface);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hp-nav__panel {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 45;
  min-width: 16rem;
  max-width: min(22rem, calc(100vw - 2rem));
  padding-top: 0.5rem;
  opacity: 0;
  transform: translateY(-0.4rem);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms var(--hp-ease);
}

.hp-nav__panel-card {
  padding: 0.5rem;
  border: 1px solid var(--hp-line);
  border-radius: 1.5rem;
  background: rgba(251, 253, 255, 0.98);
  box-shadow: 0 4px 32px rgba(15, 29, 58, 0.08);
}

.hp-nav__panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hp-nav__panel a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--hp-ink);
  font-weight: 600;
  text-decoration: none;
}

.hp-nav__panel a:hover,
.hp-nav__panel a:active {
  background: var(--hp-circle);
  color: var(--hp-blue-strong);
}

.hp-header__actions {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 88px;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.hp-btn:hover {
  text-decoration: none;
}

.hp-btn--outline {
  border-color: var(--hp-ink);
  background: transparent;
  color: var(--hp-ink);
}

.hp-btn--outline:hover {
  background: rgba(15, 29, 58, 0.06);
  color: var(--hp-ink);
}

.hp-btn--primary {
  border-color: var(--hp-blue-strong);
  background: var(--hp-blue-strong);
  color: var(--hp-surface);
}

.hp-btn--primary:hover,
.hp-btn--primary:active {
  background: #123f8a;
  border-color: #123f8a;
  color: var(--hp-surface);
}

.hp-header__cta {
  min-height: 2.5rem;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--hp-ink);
  border-radius: 88px;
  background: transparent;
  color: var(--hp-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.15;
  box-shadow: none;
}

.hp-header__cta:hover,
.hp-header__cta:active {
  background: rgba(15, 29, 58, 0.06);
  border-color: var(--hp-ink);
  color: var(--hp-ink);
}

#header-toc-toggle:not([hidden]) ~ .hp-header__cta {
  display: none;
}

.hp-btn--icon {
  width: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  border-color: transparent;
  background: var(--hp-circle);
  color: var(--hp-blue-strong);
}

.hp-btn--icon:hover {
  background: #c9d9ff;
  color: var(--hp-blue-strong);
}

.hp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hp-ink);
}

.hp-icon-btn:hover,
.hp-icon-btn:active,
.hp-icon-btn[aria-expanded="true"] {
  background: var(--hp-circle);
  color: var(--hp-blue-strong);
}

.hp-menu-toggle__close,
.hp-header.is-menu-open .hp-menu-toggle__open {
  display: none;
}

.hp-header.is-menu-open .hp-menu-toggle__close {
  display: block;
}

.hp-toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0 0.7rem 0 0.55rem;
  border: 0;
  border-radius: 999px;
  background: var(--hp-circle);
  color: var(--hp-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.hp-toc-toggle:hover,
.hp-toc-toggle:active,
.hp-toc-toggle.is-active {
  background: var(--hp-circle);
  color: var(--hp-blue-strong);
}

.hp-toc-toggle.is-active span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hp-toc-panel {
  position: fixed;
  top: var(--toc-panel-top);
  right: 0;
  left: 0;
  z-index: 45;
  max-height: min(60vh, 24rem);
  overflow: auto;
  padding: 0.5rem 1rem 1rem;
  border-bottom: 1px solid var(--hp-line);
  background: var(--hp-surface);
  box-shadow: 0 12px 32px rgba(15, 29, 58, 0.12);
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms var(--hp-ease);
}

.hp-toc-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hp-toc-panel a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.25rem 0.25rem 0;
  color: var(--hp-ink);
  font-weight: 500;
  text-decoration: none;
}

.hp-toc-panel a.hp-toc-panel__nested {
  padding-left: 1rem;
  color: var(--hp-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.hp-toc-panel a:hover,
.hp-toc-panel a:active,
.hp-toc-panel a[aria-current="location"] {
  color: var(--hp-blue-strong);
  font-weight: 700;
}

.hp-mobile-menu {
  position: fixed;
  top: calc(var(--hp-header-height) + var(--hp-chrome-top));
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 39;
  overflow: auto;
  padding: 0.5rem 1rem 2rem;
  background: var(--hp-bg);
  opacity: 0;
  transform: translateY(-0.5rem);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms var(--hp-ease);
}

.hp-mobile-menu.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hp-mobile-menu a,
.hp-mobile-menu button.hp-mobile-menu__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--hp-line);
  background: transparent;
  color: var(--hp-ink);
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.hp-mobile-menu a:hover,
.hp-mobile-menu a:active,
.hp-mobile-menu button.hp-mobile-menu__toggle:hover,
.hp-mobile-menu button.hp-mobile-menu__toggle:active,
.hp-mobile-menu button.hp-mobile-menu__toggle[aria-expanded="true"] {
  background: var(--hp-circle);
  color: var(--hp-blue-strong);
  border-radius: 0.75rem;
}

.hp-mobile-menu__sub {
  overflow: hidden;
}

.hp-mobile-menu__sub a {
  padding-left: 0.75rem;
  font-weight: 500;
}

.hp-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fdeaea;
  color: #6b1212;
  border-bottom: 1px solid #e54d4d;
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 1024px) {
  .hp-nav {
    display: flex;
    justify-content: flex-start;
    margin-left: 2.75rem;
  }

  .hp-header__cta {
    display: none;
  }

  .hp-header__actions {
    flex: 0 0 auto;
  }

  .hp-menu-toggle,
  .hp-toc-toggle,
  .hp-mobile-menu {
    display: none !important;
  }

  .hp-header__logo img {
    width: 7.125rem;
    height: 2rem;
  }
}

body:has(.hp-hero) .hp-header {
  position: absolute;
  top: var(--hp-hero-top, 0px);
  right: 0;
  left: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}

body:has(.hp-hero) .hp-header.is-scrolled,
body:has(.hp-hero) .hp-header.is-menu-open {
  position: fixed;
  top: var(--hp-chrome-top);
  right: 0;
  left: 0;
  background: rgba(242, 246, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(195, 208, 235, 0.55);
  box-shadow: 0 4px 20px rgba(15, 29, 58, 0.05);
  animation: hp-header-slide-down 240ms var(--hp-ease);
}

body:has(.hp-hero) .hp-header__bar,
body:has(.hp-hero) .hp-header.is-scrolled .hp-header__bar,
body:has(.hp-hero) .hp-header.is-menu-open .hp-header__bar {
  height: var(--hp-header-height);
  padding: 0 1.25rem;
}

/* Layout */
.hp-wrap,
.hp-page {
  width: min(100%, var(--hp-container));
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.hp-narrow {
  width: min(100%, var(--hp-narrow));
  margin: 0 auto;
}

.hp-display {
  font-family: var(--hp-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--hp-ink);
}

/* Hero */
body:has(.hp-hero) .hp-wrap:has(> .hp-hero) {
  padding-top: 0;
}

.hp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin: 0 -1rem 0.75rem;
  padding: 5.5rem 1.25rem 1.75rem;
  border-radius: 0;
  background-color: var(--hp-bg);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
}

.hp-hero h1,
.hp-hero__title {
  font-family: var(--hp-display);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}

.hp-hero__title-strong {
  display: block;
  font-weight: 600;
}

.hp-hero__title-light {
  display: block;
  font-weight: 300;
}

.hp-search {
  position: relative;
  width: min(100%, 40rem);
}

.hp-search__icon {
  position: absolute;
  top: 50%;
  left: 1.375rem;
  z-index: 1;
  width: 1.375rem;
  height: 1.375rem;
  color: var(--hp-ink);
  transform: translateY(-50%);
  pointer-events: none;
}

.hp-search form,
.hp-search .search {
  margin: 0;
}

.hp-search input[type="search"],
.hp-search input[type="text"],
.Banner__search input,
form.search input[type="search"] {
  width: 100%;
  height: 4rem;
  padding: 0 1.25rem 0 3.5rem;
  border: 1px solid var(--hp-line);
  border-radius: 40px;
  background: var(--hp-surface);
  color: var(--hp-ink);
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(15, 29, 58, 0.04);
}

.hp-hero .hp-search input[type="search"],
.hp-hero .hp-search input[type="text"] {
  border-color: transparent;
}

.hp-search input:focus {
  border-color: var(--hp-ink);
  box-shadow: 0 0 0 3px rgba(15, 29, 58, 0.2);
}

.search-results,
[data-search-results],
.zd-autocomplete,
form.search + ul {
  position: absolute;
  z-index: 30;
  right: 0;
  left: 0;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--hp-line);
  border-radius: 1rem;
  background: var(--hp-white);
  box-shadow: 0 12px 32px rgba(15, 29, 58, 0.1);
}

.search-results a,
[data-search-results] a {
  display: block;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  color: var(--hp-ink);
  text-decoration: none;
}

.search-results a:hover,
[data-search-results] a:hover {
  background: var(--hp-circle);
}

@media (min-width: 768px) {
  .hp-hero h1,
  .hp-hero__title {
    max-width: none;
    font-size: 3rem;
    line-height: 1;
    white-space: nowrap;
  }

  .hp-hero__title-strong,
  .hp-hero__title-light {
    display: inline;
  }
}

@media (min-width: 1024px) {
  body:has(.hp-hero) .hp-wrap:has(> .hp-hero) {
    width: min(100%, 99rem);
    padding: 2.5rem 2.5rem 3rem;
  }

  body:has(.hp-hero) .hp-header:not(.is-scrolled):not(.is-menu-open) {
    top: var(--hp-hero-top, 2.5rem);
  }

  body:has(.hp-hero) .hp-header:not(.is-scrolled):not(.is-menu-open) .hp-header__bar {
    width: min(74.5rem, calc(100% - 10rem));
    height: auto;
    padding: 1.75rem 0 1rem;
  }

  .hp-hero {
    width: 100%;
    min-height: 0;
    margin: 0 auto 0;
    padding: 6.5rem 3rem 1.75rem;
    border-radius: 63px;
  }
}

/* FAQ */
.hp-faq {
  width: min(100%, var(--hp-narrow));
  margin: 0 auto 3rem;
}

.hp-faq__item {
  border-bottom: 1px solid var(--hp-line);
  padding: 1.5rem 0 1.25rem;
}

.hp-faq__item:first-child {
  padding-top: 0;
}

.hp-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hp-ink);
  text-align: left;
}

.hp-faq__trigger span:first-child {
  font-family: var(--hp-display);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hp-faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
}

.hp-faq__icon::before,
.hp-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.hp-faq__icon::after {
  transition: transform 300ms ease;
}

.hp-faq__trigger[aria-expanded="false"] .hp-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.hp-faq__trigger:hover,
.hp-faq__trigger:active {
  color: var(--hp-blue-strong);
}

.hp-faq__trigger:hover .hp-faq__icon,
.hp-faq__trigger:active .hp-faq__icon,
.hp-faq__trigger[aria-expanded="true"] .hp-faq__icon {
  background: var(--hp-circle);
  border-radius: 999px;
}

.hp-faq__panel {
  overflow: hidden;
}

.hp-faq__panel p,
.hp-faq__panel ul {
  padding-top: 1rem;
  color: var(--hp-ink);
  font-size: 1rem;
  line-height: 1.5;
}

.hp-faq__panel ul {
  margin: 0;
  padding-left: 1.25rem;
}

.hp-faq__panel li + li {
  margin-top: 0.35rem;
}

.hp-faq__panel strong {
  font-weight: 700;
}

@media (min-width: 768px) {
  .hp-faq__item {
    padding: 2.5rem 0 2rem;
  }

  .hp-faq__trigger span:first-child {
    font-size: 2rem;
    line-height: 1.15;
  }
}

/* Sections accordion */
.hp-band {
  background: var(--hp-band);
  padding: 3rem 1rem;
}

.hp-band h2,
.hp-contact h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: center;
}

.hp-contact h2 {
  font-size: 2.75rem;
  line-height: 1.1;
}

.hp-acc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hp-acc__item {
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--hp-surface);
}

.hp-acc__trigger {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 1rem 1.25rem;
  border: 0;
  background: transparent;
  color: var(--hp-ink);
  text-align: left;
}

.hp-acc__trigger:hover,
.hp-acc__trigger:active {
  background: #e4edff;
}

.hp-acc__trigger.is-active,
.hp-acc__trigger[aria-expanded="true"] {
  background: var(--hp-circle);
}

.hp-acc__icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--hp-circle);
}

.hp-acc__icon img {
  width: 1.5rem;
  height: 1.5rem;
}

.hp-acc__name {
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 600;
}

.hp-acc__chevron {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 200ms var(--hp-ease);
}

.hp-acc__trigger[aria-expanded="true"] .hp-acc__chevron {
  transform: rotate(180deg);
}

.hp-acc__panel {
  overflow: hidden;
}

.hp-acc__state {
  margin: 0;
  padding: 0 1.25rem 1rem 4.25rem;
  color: var(--hp-muted);
  font-size: 0.875rem;
}

.hp-acc__articles {
  display: flex;
  flex-direction: column;
  padding: 0 0.75rem 0.75rem;
}

.hp-acc__articles a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem 0.5rem 3.5rem;
  border-radius: 0.75rem;
  color: var(--hp-ink);
  font-weight: 500;
  text-decoration: none;
}

.hp-acc__articles a:hover,
.hp-acc__articles a:active {
  background: #c5d6ff;
  color: var(--hp-blue-strong);
}

/* Contact cards */
.hp-contact {
  width: min(100%, var(--hp-narrow));
  margin: 3rem auto 0;
}

.hp-contact__grid {
  display: grid;
  gap: 1rem;
}

.hp-contact__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: var(--hp-radius-card);
  background: var(--hp-surface);
}

.hp-contact__card h3 {
  font-family: var(--hp-display);
  font-size: 1.5rem;
  font-weight: 600;
}

.hp-contact__card p {
  flex: 1 1 auto;
  color: var(--hp-muted);
}

@media (min-width: 768px) {
  .hp-contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hp-contact--aside {
  width: 100%;
  flex: 0 0 auto;
  margin-top: 1.5rem;
}

.hp-contact--aside h2 {
  font-size: 2rem;
  line-height: 1.15;
  text-align: left;
}

.hp-contact--aside .hp-contact__grid {
  grid-template-columns: 1fr;
}

.hp-contact--aside .hp-contact__card {
  padding: 1.25rem;
}

@media (max-width: 1023px) {
  .hp-contact--aside {
    display: none;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  margin: 0 0 1.25rem;
  color: var(--hp-muted);
  font-size: 0.875rem;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  margin: 0 0.625rem;
  border-top: 1.5px solid var(--hp-muted);
  border-right: 1.5px solid var(--hp-muted);
  transform: rotate(45deg);
}

.breadcrumbs a {
  color: var(--hp-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--hp-ink);
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--hp-ink);
  font-weight: 600;
}

.breadcrumbs__home-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.375rem;
}

/* Article */
.hp-article-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .hp-article-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .hp-article-top nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .hp-article-top .breadcrumbs {
    margin: 0;
  }

  .hp-article-top .hp-search {
    flex: 0 1 22rem;
    width: min(22rem, 38%);
  }

  .hp-article-top .hp-search input[type="search"],
  .hp-article-top .hp-search input[type="text"] {
    height: 2.75rem;
    font-size: 0.9375rem;
  }
}

.zg-article-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

.zg-article-main {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  min-width: 0;
}

.hp-after-article:not(:has(a)) {
  display: none;
}

.js-Article_page__toc-column {
  display: none;
}

.js-Article_page__toc-inline {
  display: none;
}

.hp-article-card {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hp-article__title {
  font-family: var(--hp-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
}

.hp-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 1.5rem;
  color: var(--hp-muted);
  font-size: 0.875rem;
}

.hp-share__btn {
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  background: var(--hp-white);
  color: var(--hp-ink);
  font-weight: 600;
}

.hp-share__status:not(:empty) {
  margin-left: 0.5rem;
}

.Article_page__article-body {
  color: var(--hp-ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.Article_page__article-body > * + * {
  margin-top: 1.25em;
}

.Article_page__article-body h2,
.Article_page__article-body h3,
.Article_page__article-body h4 {
  margin-top: 1.75em;
  font-family: var(--hp-display);
  font-weight: 600;
  line-height: 1.25;
  scroll-margin-top: calc(var(--hp-header-height) + var(--hp-chrome-top) + 1rem);
}

.Article_page__article-body h2 {
  font-size: 1.5rem;
}

.Article_page__article-body h3 {
  font-size: 1.25rem;
}

.Article_page__article-body a {
  color: var(--hp-link);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.Article_page__article-body a:visited {
  color: var(--hp-link);
}

.Article_page__article-body ul,
.Article_page__article-body ol {
  padding-left: 1.5em;
  list-style: disc;
}

.Article_page__article-body ol {
  list-style: decimal;
}

.Article_page__article-body li + li {
  margin-top: 0.4em;
}

.Article_page__article-body img {
  display: block;
  border-radius: 1rem;
  cursor: zoom-in;
}

.Article_page__article-body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.Article_page__article-body th,
.Article_page__article-body td {
  padding: 0.75rem;
  border: 1px solid var(--hp-line);
  text-align: start;
  vertical-align: top;
}

.Article_page__article-body th {
  background: var(--hp-band);
}

.Article_page__article-body blockquote {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--hp-blue);
  border-radius: 0 1rem 1rem 0;
  background: var(--hp-surface);
}

.Article_page__article-body code {
  padding: 0.125em 0.375em;
  border-radius: 0.25rem;
  background: var(--hp-band);
  font-size: 0.875em;
}

.Article_page__article-body pre {
  padding: 1rem;
  overflow-x: auto;
  border-radius: 1rem;
  background: var(--hp-surface);
}

.Article_page__article-body details {
  border: 1px solid var(--hp-line);
  border-radius: 1rem;
  background: var(--hp-surface);
}

.Article_page__article-body summary {
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
}

@media (min-width: 1024px) {
  .zg-article-grid {
    grid-template-columns: minmax(0, 1fr) 21.5rem;
    gap: 2.5rem;
  }

  .js-Article_page__toc-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
  }

  .hp-article__title {
    font-size: 2.5rem;
  }
}

body.zg-article-sidebar-inline .zg-article-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.zg-article-sidebar-inline .Article_page__toc-sidebar {
  display: none;
}

body.zg-article-sidebar-inline .Article_page__toc-track {
  display: none;
}

body.zg-article-sidebar-inline .hp-contact--aside {
  margin-top: 2rem;
}

body.zg-article-sidebar-inline .js-Article_page__toc-inline {
  display: block;
  margin-bottom: 1.5rem;
}

@media (max-width: 1023px) {
  body.zg-article-sidebar-inline .js-Article_page__toc-inline {
    display: none;
  }
}

/* Desktop TOC sticks inside the track and releases above the contact cards. */
.Article_page__toc-track {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.Article_page__toc-sidebar {
  position: sticky;
  top: calc(var(--hp-header-height) + var(--hp-chrome-top) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.Article_page__toc-sidebar .Article_page__article-feedback {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
}

.Article_page__toc-sidebar .Article_page__article-votes-controls {
  align-self: center;
  flex-shrink: 0;
}

.Article_page__toc-sidebar.is-in-flow {
  position: static;
}

.Article_page__tableOfContents {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid var(--hp-line);
  border-radius: 1.5rem;
  background: var(--hp-surface);
}

.Article_page__toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.Article_page__toc-close {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.25rem -0.25rem -0.25rem 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hp-ink);
}

.Article_page__toc-close:hover,
.Article_page__toc-close:active {
  background: var(--hp-circle);
  color: var(--hp-ink);
}

.Article_page__tableOfContents-title {
  margin: 0;
  color: var(--hp-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.Article_page__tableOfContents-content .mainItems {
  padding-top: 0.75rem;
}

.Article_page__tableOfContents-content .mainItems:first-of-type {
  padding-top: 0;
}

.Article_page__tableOfContents-content .nestedItems {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--hp-line);
}

.Article_page__tableOfContents-content a {
  position: relative;
  display: block;
  padding: 0.25rem 0;
  color: var(--hp-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.Article_page__tableOfContents-content .nestedItems a {
  color: var(--hp-muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.Article_page__tableOfContents-content a:hover,
.Article_page__tableOfContents-content a:active,
.Article_page__tableOfContents-content a[aria-current="location"] {
  color: var(--hp-blue-strong);
  font-weight: 700;
  text-decoration: underline;
}

.Article_page__tableOfContents-content a[aria-current="location"]::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 0.35rem;
  left: -0.85rem;
  width: 3px;
  border-radius: 999px;
  background: var(--hp-blue-strong);
}

.Article_page__tableOfContents-content.isHidden {
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition:
    height 380ms cubic-bezier(0.45, 0, 0.2, 1),
    opacity 240ms ease-out,
    visibility 0s linear 380ms;
}

.Article_page__tableOfContents.expanded .Article_page__tableOfContents-content.isHidden {
  visibility: visible;
  opacity: 1;
  transition:
    height 380ms cubic-bezier(0.45, 0, 0.2, 1),
    opacity 300ms ease-out 80ms,
    visibility 0s;
}

.Article_page__show-all-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--hp-band);
  color: var(--hp-ink);
  font-size: 0.875rem;
  font-weight: 600;
}

.Article_page__show-all-button:hover {
  background: var(--hp-circle);
}

.Article_page__show-all-button__arrow,
.Article_page__show-all-button__arrow-close {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.Article_page__show-all-button__arrow {
  margin-bottom: 3px;
  transform: rotate(135deg);
}

.Article_page__show-all-button__arrow-close {
  margin-bottom: -3px;
  transform: rotate(-45deg);
}

/* Vote */
.Article_page__article-feedback {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.125rem;
  border: 1px solid var(--hp-line);
  border-radius: 1.5rem;
  background: var(--hp-surface);
  transition:
    max-height 800ms ease,
    opacity 700ms ease,
    margin 800ms ease,
    padding 800ms ease,
    border-color 700ms ease;
}

.Article_page__article-feedback.is-leaving {
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
  pointer-events: none;
}

.Article_page__article-feedback > div:first-child {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
}

#Article_page__article-feedback__question,
#Article_page__article-feedback__success-message {
  grid-area: 1 / 1;
  margin: 0;
  transition: opacity 650ms ease;
}

#Article_page__article-feedback__question {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

#Article_page__article-feedback__success-message {
  color: var(--hp-blue-strong);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
}

.Article_page__article-feedback.is-thanks #Article_page__article-feedback__question {
  opacity: 0;
}

.Article_page__article-feedback.is-thanks #Article_page__article-feedback__success-message {
  opacity: 1;
}

.Article_page__article-votes-controls {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  max-width: 8rem;
  overflow: hidden;
  transition:
    opacity 650ms ease,
    max-width 700ms ease,
    margin 700ms ease,
    transform 650ms ease;
}

.Article_page__article-feedback.is-thanks .Article_page__article-votes-controls {
  max-width: 0;
  margin: 0;
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.Article_page__article-votes-controls button,
.Article_page__article-votes-controls a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1.5px solid var(--hp-line);
  border-radius: 999px;
  background: var(--hp-white);
  color: var(--hp-ink);
  font-size: 0;
  text-decoration: none;
}

.Article_page__article-votes-controls button svg,
.Article_page__article-votes-controls a svg {
  display: none;
}

.Article_page__article-votes-controls button::before,
.Article_page__article-votes-controls a::before {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  background: var(--hp-ink);
  -webkit-mask: var(--hp-vote-icon) center / contain no-repeat;
  mask: var(--hp-vote-icon) center / contain no-repeat;
}

.Article_page__article-votes-controls > span[data-ga-slug="Yes"],
.Article_page__article-votes-controls > span[data-ga-slug="No"] {
  --hp-vote-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2z'/%3E%3C/svg%3E");
}

.Article_page__article-votes-controls > span[data-ga-slug="No"] button::before,
.Article_page__article-votes-controls > span[data-ga-slug="No"] a::before {
  transform: rotate(180deg);
}

.Article_page__article-votes-controls button:hover,
.Article_page__article-votes-controls a:hover,
.Article_page__article-votes-controls button:active,
.Article_page__article-votes-controls a:active,
.Article_page__article-votes-controls button.is-chosen,
.Article_page__article-votes-controls a.is-chosen {
  border-color: var(--hp-blue-strong);
  background: var(--hp-circle);
}

.Article_page__article-feedback.zg-feedback-hidden {
  display: none;
}

/* Related articles sit below the article on the same page background. */
.related-articles {
  margin: 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--hp-line);
  border-radius: 0;
  background: transparent;
}

.related-articles h2,
.related-articles h3 {
  margin-bottom: 0.75rem;
  font-family: var(--hp-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.related-articles a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.25rem 0.5rem;
  color: var(--hp-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.related-articles a:hover,
.related-articles a:active {
  color: var(--hp-link);
  background: var(--hp-circle);
  border-radius: 0.75rem;
}

/* Mobile dock — floating bar, joined votes, solid HeyPolo blue chat CTA, round email */
.hp-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 35;
  padding:
    0
    max(12px, env(safe-area-inset-right))
    calc(12px + env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  background: transparent;
  border: 0;
  pointer-events: none;
}

.hp-dock__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 45rem);
  min-height: 52px;
  margin: 0 auto;
  padding: 6px 8px;
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  background: var(--hp-surface);
  box-shadow: 0 4px 16px rgba(15, 29, 58, 0.1);
  pointer-events: auto;
}

.hp-dock [data-vote-slot] {
  flex: 0 0 auto;
  overflow: hidden;
  transition: max-width 800ms ease, opacity 700ms ease, margin 800ms ease;
}

.hp-dock [data-vote-slot]:empty {
  display: none;
}

.hp-dock__contacts {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hp-dock__chat {
  position: relative;
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  height: 2.75rem;
  padding: 0 1rem;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--hp-blue-strong);
  color: var(--hp-surface);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.hp-dock__chat span {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hp-dock__chat-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.hp-dock__chat:hover,
.hp-dock__chat:active {
  background: #123f8a;
  color: var(--hp-surface);
}

.hp-dock__mail {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--hp-line);
  border-radius: 999px;
  background: var(--hp-white);
  color: var(--hp-ink);
  text-decoration: none;
}

.hp-dock__mail:hover,
.hp-dock__mail:active {
  background: var(--hp-circle);
  color: var(--hp-blue-strong);
  text-decoration: none;
}

.hp-dock .Article_page__article-feedback {
  position: relative;
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.hp-dock .Article_page__article-feedback.is-thanks .Article_page__article-votes-controls {
  max-width: 8rem;
  margin: 0;
  transform: none;
  opacity: 0;
}

.hp-dock .Article_page__article-votes-controls {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  border-radius: 12px;
  background: var(--hp-white);
}

.hp-dock .Article_page__article-votes-controls > span {
  display: flex;
}

.hp-dock .Article_page__article-votes-controls > span + span {
  border-left: 1px solid var(--hp-line);
}

.hp-dock .Article_page__article-votes-controls button,
.hp-dock .Article_page__article-votes-controls a {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.hp-dock .Article_page__article-votes-controls button:hover,
.hp-dock .Article_page__article-votes-controls a:hover,
.hp-dock .Article_page__article-votes-controls button:active,
.hp-dock .Article_page__article-votes-controls a:active {
  border-color: transparent;
  background: #e4edff;
}

.hp-dock .Article_page__article-feedback > div:first-child {
  position: static;
  display: block;
  width: 0;
  height: 0;
  min-width: 0;
  overflow: visible;
}

.hp-dock #Article_page__article-feedback__question {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  opacity: 0;
}

.hp-dock #Article_page__article-feedback__success-message {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0 0.35rem;
  overflow: hidden;
  clip: auto;
  color: var(--hp-blue-strong);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
}

.hp-dock #Article_page__article-feedback__success-message span {
  min-width: 0;
  white-space: normal;
}

.hp-dock .Article_page__article-feedback.is-thanks #Article_page__article-feedback__success-message {
  opacity: 1;
}

@media (min-width: 1024px) {
  .hp-dock {
    display: none !important;
  }
}

/* Results, lists, pagination */
.hp-page-title {
  margin-bottom: 1.5rem;
  font-family: var(--hp-display);
  font-size: 2rem;
  font-weight: 600;
}

.hp-results {
  display: grid;
  gap: 0.75rem;
}

.hp-result {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--hp-line);
  border-radius: 1.25rem;
  background: var(--hp-surface);
  color: var(--hp-ink);
  text-decoration: none;
}

.hp-result:hover {
  color: var(--hp-ink);
  box-shadow: 0 8px 24px rgba(15, 29, 58, 0.08);
}

.hp-result__title {
  font-weight: 600;
  font-size: 1.0625rem;
}

.hp-result__path {
  color: var(--hp-muted);
  font-size: 0.875rem;
}

.hp-link-list {
  display: grid;
  gap: 0.5rem;
}

.hp-link-list a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hp-line);
  border-radius: 1rem;
  background: var(--hp-surface);
  color: var(--hp-ink);
  font-weight: 600;
  text-decoration: none;
}

.hp-link-list a:hover {
  box-shadow: 0 8px 24px rgba(15, 29, 58, 0.08);
  color: var(--hp-ink);
}

.pagination {
  margin-top: 1.5rem;
}

.pagination ul,
.pagination-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--hp-surface);
  color: var(--hp-ink);
  font-weight: 600;
  text-decoration: none;
}

.pagination .pagination-current,
.pagination .pagination-current a,
.pagination .pagination-current span {
  background: var(--hp-ink);
  color: var(--hp-surface);
}

/* Forms */
.hp-form-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--hp-radius-card);
  background: var(--hp-surface);
}

.New-request-page__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.New-request-page__form .form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.New-request-page__form label {
  font-weight: 600;
  color: var(--hp-ink);
}

.New-request-page__form input[type="text"],
.New-request-page__form input[type="email"],
.New-request-page__form input[type="number"],
.New-request-page__form input[type="date"],
.New-request-page__form input[type="file"],
.New-request-page__form select,
.New-request-page__form textarea,
.nesty-input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hp-line);
  border-radius: 0.75rem;
  background: var(--hp-white);
  color: var(--hp-ink);
  font-size: 1rem;
}

.New-request-page__form textarea {
  min-height: 9rem;
  resize: vertical;
}

.New-request-page__form input:focus,
.New-request-page__form select:focus,
.New-request-page__form textarea:focus {
  border-color: var(--hp-ink);
  box-shadow: 0 0 0 3px rgba(15, 29, 58, 0.2);
}

.New-request-page__form .form-field__checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  font-weight: 500;
}

.New-request-page__form .form-field__checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  accent-color: var(--hp-ink);
}

.New-request-page__form .form-field__hint {
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.875rem;
}

.New-request-page__form .form-field__error,
.New-request-page__form-error {
  color: #8b1a1a;
  font-size: 0.875rem;
}

.New-request-page__form-error {
  padding: 0.75rem 1rem;
  border: 1px solid #e7b4b4;
  border-radius: 0.75rem;
  background: #fdeaea;
}

.New-request-page__submit {
  min-height: 2.75rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--hp-blue-strong);
  border-radius: 999px;
  background: var(--hp-blue-strong);
  color: var(--hp-surface);
  font-weight: 700;
  cursor: pointer;
}

.New-request-page__submit:hover {
  background: #164fae;
}

.New-request-page__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

.New-request-page__attachments {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.New-request-page__attachment {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--hp-line);
  border-radius: 0.75rem;
  background: var(--hp-white);
}

.New-request-page__attachment-name {
  flex: 1;
  overflow-wrap: anywhere;
}

.New-request-page__attachment-status {
  color: var(--hp-muted);
  font-size: 0.8125rem;
}

.New-request-page__attachment-status.is-ready {
  color: #1f7a3d;
}

.New-request-page__attachment-status.is-error {
  color: #8b1a1a;
}

.New-request-page__attachment-remove {
  min-height: 2.75rem;
  padding: 0 0.5rem;
  border: 0;
  background: none;
  color: var(--hp-link);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Error */
.hp-error__code {
  font-family: var(--hp-display);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
}

.hp-error__grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hp-error__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: var(--hp-surface);
}

.hp-error__card p {
  color: var(--hp-muted);
}

@media (min-width: 768px) {
  .hp-error__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Image modal */
.Article_page__imgModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  align-items: center;
  justify-content: center;
  background: rgba(15, 29, 58, 0.88);
}

.Article_page__imgModal.modal-open {
  display: flex !important;
  opacity: 0;
  transition: opacity 180ms ease;
}

.Article_page__imgModal.modal-open.is-visible {
  opacity: 1;
}

.Article_page__imgModal img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 1rem;
}

.Article_page__imgModal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--hp-surface);
  color: var(--hp-ink);
  font-size: 1.75rem;
  line-height: 1;
}

/* Footer — spacing matches heypolo.com (sm 640, md 810, lg 1200). */
.hp-footer {
  margin-top: auto;
  color: var(--hp-ink);
}

.hp-footer a {
  color: var(--hp-ink);
  font-weight: 400;
  text-decoration: none;
}

.hp-footer a:hover,
.hp-footer a:active {
  color: var(--hp-link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.hp-footer a.hp-footer__logo:hover,
.hp-footer a.hp-footer__logo:active,
.hp-footer a.hp-footer__store:hover,
.hp-footer a.hp-footer__store:active {
  color: var(--hp-ink);
  text-decoration: none;
}

.hp-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 3rem max(1rem, calc((100% - var(--hp-container)) / 2 + 1rem));
  background: var(--hp-circle);
}

.hp-footer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hp-footer__logo img {
  display: block;
  width: 5rem;
  height: auto;
}

.hp-footer__stores {
  display: none;
  gap: 1rem;
}

.hp-footer__store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--hp-footer-edge);
  border-radius: 999px;
  background: var(--hp-bg);
  text-decoration: none;
}

.hp-footer__store--apple {
  padding: 1rem 1.5rem;
}

.hp-footer__store--play {
  padding: 0.75rem 1.5rem;
}

.hp-footer__store:hover,
.hp-footer__store:active {
  background: #e4edff;
  text-decoration: none;
}

.hp-footer__store img {
  display: block;
  width: auto;
  height: auto;
}

.hp-footer__store--apple img {
  height: 1.5rem;
}

.hp-footer__store--play img {
  height: 2rem;
}

.hp-footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1rem;
}

.hp-footer__col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hp-footer__col--resources {
  order: 1;
}

.hp-footer__label {
  margin: 0;
  color: var(--hp-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hp-footer__cols ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hp-footer__cols a {
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.4;
}

.hp-footer__stores--mobile {
  display: flex;
  flex-direction: column;
}

.hp-footer__stores--mobile .hp-footer__store {
  width: 100%;
}

.hp-footer__bottom {
  background: var(--hp-line);
  padding: 1.5rem max(1rem, calc((100% - var(--hp-container)) / 2 + 1rem));
}

.hp-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hp-footer__legal > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hp-footer__copy {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
}

.hp-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.hp-footer__dot {
  width: 1px;
  height: 1.125rem;
  background: #80899c;
}

.hp-footer__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.hp-footer__pay img {
  display: block;
  height: 2rem;
  width: auto;
}

@media (min-width: 640px) {
  .hp-footer__top,
  .hp-footer__bottom {
    padding-inline: max(1rem, calc((100% - var(--hp-container)) / 2 + 1rem));
  }

  .hp-footer__stores {
    display: flex;
  }

  .hp-footer__stores--mobile {
    display: none;
  }

  .hp-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hp-footer__col--resources {
    order: 0;
  }

  .hp-footer__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

@media (min-width: 810px) {
  .hp-footer__top {
    gap: 3.5rem;
  }

  .hp-footer__logo img {
    width: 7.125rem;
  }

  .hp-footer__stores {
    gap: 2rem;
  }

  .hp-footer__cols a {
    font-size: 1rem;
  }

  .hp-footer__bottom {
    padding-block: 2rem;
  }
}

@media (min-width: 1200px) {
  .hp-footer__top {
    padding-block: 5.5rem;
  }

  .hp-footer__cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .hp-footer__bottom {
    padding-block: 2rem;
  }
}

/* Code copy button from handleCopyToClipboard.js */
.Article_page__article-body-codeBlock {
  position: relative;
}

.Article_page__article-body-codeBlock button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--hp-surface);
}

body:not(.hp-chat-open) iframe#launcher,
body:not(.hp-chat-open) iframe[title="Button to launch messaging window"],
body:not(.hp-chat-open) iframe[title*="launch messaging" i],
body:not(.hp-chat-open) iframe[title="Close message"],
body:not(.hp-chat-open) iframe[title="Message from company"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1023px) {
  html.hp-has-dock iframe#launcher,
  html.hp-has-dock iframe[title="Button to launch messaging window"],
  html.hp-has-dock iframe[title*="launch messaging" i],
  html.hp-has-dock iframe[title="Close message"],
  html.hp-has-dock iframe[title="Message from company"],
  body:has(#article-mobile-dock) iframe#launcher,
  body:has(#article-mobile-dock) iframe[title="Button to launch messaging window"],
  body:has(#article-mobile-dock) iframe[title*="launch messaging" i],
  body:has(#article-mobile-dock) iframe[title="Close message"],
  body:has(#article-mobile-dock) iframe[title="Message from company"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
