.main-page {
  --custom-page-max-width: 1180px;
}

.main-page__title {
  max-width: var(--custom-page-max-width);
  margin: 0 auto 34px;
  padding-inline: 0;
  color: var(--feral-ink, #0a0a0a);
  font-family: var(--feral-display, "Syne", Impact, sans-serif);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-align: left;
  text-transform: uppercase;
}

.main-page__title::after {
  display: block;
  width: 112px;
  height: 4px;
  margin-top: 22px;
  background: var(--feral-pink, #ff2e85);
  content: "";
}

.main-page__content {
  max-width: var(--custom-page-max-width);
  margin-inline: auto;
}

/* The policy/learn HTML is a content fragment. The native page template owns
   the site header, footer and title; this wrapper owns only the reading grid. */
.main-page__content > .fh-page {
  max-width: none;
  margin: 0;
  padding: 0 0 8px;
}

.main-page__content > .fh-page[data-fh-page-content]::before {
  display: none;
}

.main-page__content > .fh-page .fh-layout {
  padding-top: 0;
}

.main-page--custom .main-page__content > .fh-page[data-fh-page-content] {
  --fh-custom-pink: var(--feral-pink, #ff2e85);
  --fh-custom-ink: var(--feral-ink, #0a0a0a);
  --fh-custom-muted: #6f6a73;
  --fh-custom-line: rgba(10, 10, 10, 0.16);
  color: var(--fh-custom-ink);
  font-family: var(--feral-body, "Space Grotesk", sans-serif);
  font-size: 16px;
  line-height: 1.72;
}

.main-page--custom .fh-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.24fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 52px);
}

.main-page--custom .fh-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

.main-page--custom .fh-toc {
  position: sticky;
  top: 20px;
  padding: 18px 0 22px;
  border-top: 3px solid var(--fh-custom-ink);
  border-bottom: 1px solid rgba(10, 10, 10, 0.2);
}

.main-page--custom .fh-toc-title {
  margin: 0 0 14px;
  color: var(--fh-custom-pink);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.main-page--custom .fh-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: custom-toc;
}

.main-page--custom .fh-toc li {
  margin: 0;
  padding: 0;
  counter-increment: custom-toc;
}

.main-page--custom .fh-toc li::before {
  display: inline-block;
  width: 28px;
  color: #9b959d;
  content: counter(custom-toc, decimal-leading-zero);
  font-family: "Space Mono", monospace;
  font-size: 10px;
}

.main-page--custom .fh-toc a {
  color: var(--fh-custom-ink);
  font-size: 13px;
  text-decoration: none;
  text-underline-offset: 3px;
}

.main-page--custom .fh-toc a:hover,
.main-page--custom .fh-toc a:focus-visible {
  color: var(--fh-custom-pink);
  text-decoration: underline;
}

.main-page--custom .fh-article {
  min-width: 0;
  padding: clamp(28px, 4vw, 54px) clamp(22px, 5vw, 68px) clamp(36px, 5vw, 70px);
  border: 1px solid var(--fh-custom-line);
  background: #fff;
  box-shadow: 0 12px 34px rgba(10, 10, 10, 0.035);
  counter-reset: custom-section;
}

.main-page--custom .fh-article h2,
.main-page--custom .fh-article h3,
.main-page--custom .fh-article h4 {
  color: var(--fh-custom-ink);
  scroll-margin-top: 24px;
}

.main-page--custom .fh-article h2 {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  margin: 42px 0 15px;
  padding-top: 15px;
  border-top: 2px solid var(--fh-custom-ink);
  counter-increment: custom-section;
  font-family: var(--feral-display, "Syne", sans-serif);
  font-size: clamp(21px, 2.6vw, 29px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.main-page--custom .fh-article h2::before {
  padding-top: 5px;
  color: var(--fh-custom-pink);
  content: counter(custom-section, decimal-leading-zero);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.main-page--custom .fh-article h2:first-child {
  margin-top: 0;
}

.main-page--custom .fh-article h3 {
  margin: 32px 0 10px;
  font-size: 19px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.main-page--custom .fh-article h4 {
  margin: 24px 0 8px;
  color: var(--fh-custom-pink);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.main-page--custom .fh-article p {
  margin: 0 0 16px;
}

.main-page--custom .fh-article .fh-dek {
  max-width: 700px;
  margin-bottom: 26px;
  color: var(--fh-custom-muted);
  font-size: 18px;
  line-height: 1.55;
}

.main-page--custom .fh-article .fh-lead {
  max-width: 800px;
  margin-bottom: 30px;
  font-size: 18px;
  line-height: 1.65;
}

.main-page--custom .fh-article .fh-meta {
  margin-bottom: 22px;
  color: var(--fh-custom-muted);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.55;
}

.main-page--custom .fh-question {
  margin-top: 26px !important;
  padding: 14px 16px;
  border-left: 4px solid var(--fh-custom-pink);
  background: #f7f2f5;
  font-size: 18px;
  font-weight: 750;
}

.main-page--custom .fh-article ul,
.main-page--custom .fh-article ol {
  margin: 8px 0 22px;
  padding-left: 26px;
}

.main-page--custom .fh-article li {
  margin: 6px 0;
  padding-left: 4px;
}

.main-page--custom .fh-article li::marker {
  color: var(--fh-custom-pink);
  font-weight: 700;
}

.main-page--custom .fh-article a {
  color: #b91658;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.main-page--custom .fh-article a:hover,
.main-page--custom .fh-article a:focus-visible {
  color: var(--fh-custom-pink);
}

.main-page--custom .fh-callout {
  margin: 26px 0 32px;
  padding: 20px 22px;
  border: 1px solid #f4a4c3;
  border-left: 5px solid var(--fh-custom-pink);
  background: #fff0f6;
}

.main-page--custom .fh-table-wrap {
  margin: 26px 0 34px;
  overflow-x: auto;
  border: 1px solid var(--fh-custom-line);
}

.main-page--custom .fh-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
}

.main-page--custom .fh-table-wrap th,
.main-page--custom .fh-table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e1e6;
  text-align: left;
  vertical-align: top;
}

.main-page--custom .fh-table-wrap th {
  background: var(--fh-custom-ink);
  color: #fff;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-page--custom .fh-table-wrap tr:last-child td {
  border-bottom: 0;
}

.main-page--custom .fh-table-wrap tr:nth-child(even) td {
  background: #fcfafb;
}

.main-page--custom .fh-figure {
  max-width: 820px;
  margin: 30px 0 8px;
  padding: 12px;
  border: 1px solid #e7e1e6;
  background: #f4f2f4;
}

.main-page--custom .fh-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ddd7dc;
  background: #fff;
}

.main-page--custom .fh-figure figcaption {
  margin: 10px 4px 2px;
  color: var(--fh-custom-muted);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.main-page--custom .fh-footer-note {
  margin: 28px 0 0;
  padding: 16px 20px;
  background: var(--fh-custom-ink);
  color: #bdb3bb;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

@media (max-width: 899px) {
  .main-page--custom .fh-layout {
    grid-template-columns: 1fr;
  }

  .main-page--custom .fh-toc {
    position: static;
  }

  .main-page--custom .fh-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }
}

@media (max-width: 640px) {
  .main-page--custom .main-page__content > .fh-page[data-fh-page-content] {
    font-size: 15px;
  }

  .main-page--custom .fh-toc ol {
    grid-template-columns: 1fr;
  }

  .main-page--custom .fh-article {
    padding: 26px 20px 36px;
  }

  .main-page--custom .fh-article h2 {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    margin-top: 34px;
    font-size: 23px;
  }

  .main-page--custom .fh-article .fh-dek,
  .main-page--custom .fh-article .fh-lead {
    font-size: 16px;
  }

  .main-page--custom .fh-table-wrap th,
  .main-page--custom .fh-table-wrap td {
    padding: 11px 12px;
  }
}

@media (max-width: 959px) {
  .main-page__title {
    margin-bottom: 24px;
    padding-inline: 0;
    font-size: clamp(30px, 8vw, 44px);
  }

  .main-page__title::after {
    width: 84px;
    height: 3px;
    margin-top: 16px;
  }
}

@media (max-width: 640px) {
  .main-page__title {
    margin-bottom: 22px;
    font-size: 32px;
    line-height: 1;
  }

.main-page__content > .fh-page {
  padding-bottom: 0;
}
}

/* Feralhook policy / learn pages: the masthead is intentionally full-bleed so
   it joins the theme's dark navigation without a pale gutter between them. */
.main-page--custom {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
  background: #efedef;
}

.main-page--custom .main-page__content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}

/* The article Hero is rendered by the native page template, so the body HTML
   package can stay body-only. Reset the helper shell before the full-bleed
   Hero rules below are applied. */
.main-page--custom .main-page__hero-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #efedef;
}

/* Prevent an older page-content paste from rendering a second Hero. */
.main-page--custom .main-page__content .fh-hero {
  display: none !important;
}

.main-page--custom .main-page__content > .fh-page[data-fh-page-content] {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 8px;
  overflow: hidden;
  background: #efedef;
}

.main-page--custom .fh-page .fh-hero {
  position: relative;
  display: flex;
  min-height: 352px;
  align-items: center;
  isolation: isolate;
  width: 100vw !important;
  max-width: none !important;
  margin: 0 0 0 calc(50% - 50vw) !important;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0 !important;
  color: #fff;
  background:
    linear-gradient(100deg, #0a0a0a 0%, #100b11 59%, #170e18 100%);
}

.main-page--custom .fh-page .fh-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background: linear-gradient(90deg, transparent 0 68%, rgba(255, 46, 133, 0.08) 100%);
  content: "";
}

.main-page--custom .fh-page .fh-hero::after {
  position: absolute;
  right: -112px;
  top: 50%;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 46, 133, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 46, 133, 0.055), 0 0 0 36px rgba(255, 46, 133, 0.035);
  content: "";
  pointer-events: none;
  transform: translateY(-20%);
}

.main-page--custom .fh-page .fh-hero-main {
  position: relative;
  z-index: 1;
  width: min(var(--custom-page-max-width), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 52px;
}

.main-page--custom .fh-page .fh-kicker {
  margin: 0 0 18px;
  color: var(--fh-custom-pink, var(--feral-pink, #ff2e85));
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.2;
  text-transform: uppercase;
}

.main-page--custom .fh-page .fh-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-family: var(--feral-display, "Syne", Impact, sans-serif);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 750;
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-transform: uppercase;
}

.main-page--custom .fh-page .fh-hero .fh-dek,
.main-page--custom .fh-page .fh-hero .fh-lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: #d2ccd2;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.5;
}

.main-page--custom .fh-page .fh-hero-side {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 42px;
  z-index: 1;
  color: #a99fa8;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-transform: uppercase;
}

.main-page--custom .fh-page .fh-hero-index::before {
  content: "HELP · INFO";
  display: block;
  margin-bottom: 8px;
  color: var(--fh-custom-pink, var(--feral-pink, #ff2e85));
}

.main-page--custom .fh-page .fh-hero-index::after {
  content: "READING ROOM";
}

.main-page--custom .fh-page .fh-layout {
  width: min(var(--custom-page-max-width), calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding-top: 44px;
}

.main-page--custom .fh-page .fh-layout--single {
  width: min(920px, calc(100% - 48px));
}

.main-page--custom .fh-page .fh-footer-note {
  width: min(var(--custom-page-max-width), calc(100% - 48px));
  margin: 28px auto 0;
}

@media (max-width: 899px) {
  .main-page--custom .fh-page .fh-hero-main {
    width: calc(100% - 48px);
  }

  .main-page--custom .fh-page .fh-hero-side {
    right: 24px;
  }

  .main-page--custom .fh-page .fh-layout,
  .main-page--custom .fh-page .fh-layout--single,
  .main-page--custom .fh-page .fh-footer-note {
    width: calc(100% - 48px);
  }
}

@media (max-width: 640px) {
  .main-page--custom .fh-page .fh-hero {
    min-height: 310px;
  }

  .main-page--custom .fh-page .fh-hero-main {
    width: calc(100% - 40px);
    padding: 44px 0 42px;
  }

  .main-page--custom .fh-page .fh-kicker {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .main-page--custom .fh-page .fh-hero h1 {
    max-width: 330px;
    font-size: clamp(47px, 15vw, 70px);
    line-height: 0.95;
  }

  .main-page--custom .fh-page .fh-hero .fh-dek,
  .main-page--custom .fh-page .fh-hero .fh-lead {
    max-width: 320px;
    margin-top: 18px;
    font-size: 16px;
  }

  .main-page--custom .fh-page .fh-hero::after {
    right: -116px;
    width: 230px;
    height: 230px;
    transform: translateY(-6%);
  }

  .main-page--custom .fh-page .fh-hero-side {
    right: 20px;
    bottom: 27px;
    font-size: 8px;
  }

  .main-page--custom .fh-page .fh-layout,
  .main-page--custom .fh-page .fh-layout--single,
  .main-page--custom .fh-page .fh-footer-note {
    width: calc(100% - 40px);
  }

  .main-page--custom .fh-page .fh-layout {
    padding-top: 25px;
  }

  .main-page--custom .fh-page .fh-footer-note {
    margin-top: 22px;
  }
}
