.longform {
  --lf-accent: #a6c627;
  --lf-black: #111111;
  --lf-muted: #6f6f6f;
  --lf-panel: #f1f1f1;
  --lf-rule: rgba(17, 17, 17, 0.32);
  background: #fff;
  color: var(--lf-black);
}

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

.longform-container {
  width: min(84%, 1320px);
  margin-inline: auto;
}

.longform-hero {
  position: relative;
  min-height: clamp(300px, 30vw, 420px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #252525;
  background-position: center;
  background-size: cover;
}

ol.wp-block-footnotes {
    list-style-type: decimal;
    list-style-position: outside;
    padding-left: 2rem;
}

ol.wp-block-footnotes > li {
    display: list-item;
}

.longform-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0.78) 100%);
}

.longform-hero__inner {
  position: relative;
  z-index: 1;
  padding-block: 120px 38px;
}

.longform .longform-hero__title {
  max-width: 1050px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.longform .longform-title {
  max-width: 1050px;
  margin: 0;
  padding: 0;
  color: var(--lf-black);
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.longform-meta {
  padding-block: 36px 42px;
}

.longform-meta__grid {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(300px, 2.4fr) minmax(150px, 0.8fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.longform-meta__label {
  display: block;
  margin-bottom: 12px;
  color: var(--lf-muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.longform-meta__date time {
  color: var(--lf-muted);
}

.longform-meta__date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.longform-status {
  display: inline-block;
  padding: 5px 8px 4px;
  background: var(--lf-accent);
  color: var(--lf-black);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.longform-authors__list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
}

.longform-author {
  display: flex;
  gap: 16px;
  align-items: center;
}

.longform-author__image {
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.longform-author__name {
  font-size: 1.1rem;
  font-weight: 800;
}

.longform-author__details {
  margin-top: 3px;
  color: var(--lf-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.longform-share {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 18px 22px;
  background: var(--lf-panel);
}

.longform-actions {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-width: 0;
}

.longform-share .longform-meta__label {
  margin-bottom: 2px;
}

.longform-share a,
.longform-sharebar a {
  color: #111;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-decoration: none;
  text-transform: uppercase;
}

.longform-share a:hover,
.longform-share a:focus-visible,
.longform-sharebar a:hover,
.longform-sharebar a:focus-visible {
  color: #536600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.longform-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.3fr) minmax(0, 0.7fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
  padding-block: 76px 100px;
}

.longform-rail {
  min-width: 0;
  position: sticky;
  top: 120px;
  align-self: start;
}

.longform-toc {
  position: static;
  padding: 30px 26px 34px;
  background: var(--lf-panel);
}

.longform-toc__title {
  margin-bottom: 25px;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.longform-toc__list,
.longform-mobile-toc ol {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.longform-toc__item a,
.longform-mobile-toc li a {
  display: block;
  border-left: 3px solid transparent;
  padding-left: 11px;
  color: #111;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.longform-toc__item--h3 a,
.longform-mobile-toc .longform-toc__item--h3 a {
  padding-left: 25px;
  color: #555;
  font-weight: 600;
}

.longform-toc__item a:hover,
.longform-toc__item a:focus-visible,
.longform-toc__item a.is-active,
.longform-mobile-toc li a:hover,
.longform-mobile-toc li a:focus-visible,
.longform-mobile-toc li a.is-active {
  border-left-color: var(--lf-accent);
  color: #111;
}

.longform-mobile-toc {
  display: none;
}

.longform-content {
  width: min(100%, 760px);
  min-width: 0;
}

.longform-content > .longform-title {
  margin-bottom: clamp(28px, 4vw, 48px);
}

.longform-content :where(h2, h3) {
  scroll-margin-top: 125px;
}

.longform .longform-content h2 {
  margin: 2.2em 0 0.65em;
  padding: 0;
  color: #111;
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.longform .longform-content h3 {
  margin: 2em 0 0.65em;
  padding: 0;
  color: #111;
  font-size: clamp(1.2rem, 1.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.15;
}

.longform-deck {
  margin: 0 0 42px;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.longform-rich-text {
  font-size: 1.08rem;
  line-height: 1.62;
}

.longform-rich-text p,
.longform-rich-text ul,
.longform-rich-text ol,
.longform-rich-text .wp-block-list {
  margin: 0 0 1.35em;
}

.longform-rich-text .econ-list--upper-roman {
  list-style-type: upper-roman;
}

.longform-rich-text .econ-list--lower-roman {
  list-style-type: lower-roman;
}

.longform-rich-text a {
  color: #304500;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.longform-rich-text > :first-child {
  margin-top: 0;
}

.longform-rich-text .wp-block-image,
.longform-rich-text .wp-block-gallery,
.longform-rich-text .wp-block-video,
.longform-rich-text .wp-block-embed {
  margin: 42px 0 58px;
}

.longform-rich-text .wp-block-image img,
.longform-rich-text .wp-block-gallery img,
.longform-rich-text .wp-block-video video,
.longform-rich-text .wp-block-embed iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

.longform-rich-text .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.longform-rich-text .wp-block-gallery.has-nested-images figure.wp-block-image {
  width: auto;
  margin: 0;
}

.longform-rich-text .wp-block-gallery.has-nested-images img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.longform-rich-text .wp-element-caption,
.longform-rich-text .wp-block-image figcaption,
.longform-rich-text .wp-block-gallery figcaption,
.longform-rich-text .wp-block-embed figcaption,
.longform-rich-text .wp-block-video figcaption {
  margin-top: 10px;
  color: var(--lf-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.longform-rich-text .wp-block-quote,
.longform-rich-text .wp-block-pullquote {
  margin: 60px 0;
  border: 0;
  border-left: 8px solid var(--lf-accent);
  padding: 4px 0 4px clamp(24px, 4vw, 45px);
  text-align: left;
}

.longform-rich-text .wp-block-quote p,
.longform-rich-text .wp-block-pullquote p {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.longform-rich-text .wp-block-quote cite,
.longform-rich-text .wp-block-pullquote cite {
  display: block;
  margin-top: 18px;
  color: var(--lf-muted);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 700;
}

.longform-rich-text sup.fn {
  position: relative;
  top: -0.15em;
  padding-inline: 0.08em;
  font-size: 0.7em;
  font-weight: 800;
  line-height: 0;
}

.longform-rich-text sup.fn a {
  color: #405300;
  text-decoration: none;
}

.longform-rich-text sup.fn a:hover,
.longform-rich-text sup.fn a:focus-visible {
  color: #111;
  text-decoration: underline;
}

.longform-rich-text .wp-block-footnotes {
  display: grid;
  gap: 12px;
  margin: 72px 0 0;
  border-top: 1px solid var(--lf-rule);
  padding: 30px 0 0 1.6em;
  color: #444;
  font-size: 0.82rem;
  line-height: 1.45;
}

.longform-rich-text .wp-block-footnotes li {
  scroll-margin-top: 125px;
  padding-left: 5px;
}

.longform-rich-text .wp-block-footnotes li:target {
  background: color-mix(in srgb, var(--lf-accent) 20%, transparent);
}

.longform-rich-text .wp-block-footnotes a[aria-label] {
  display: inline-block;
  margin-left: 5px;
  color: #111;
  text-decoration: none;
}

.longform-download {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: auto;
  margin: 60px 0 0;
  padding: 0;
  background: transparent;
  color: #111;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.longform-download > span:first-child {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.longform-download > span:last-child {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--lf-accent);
  color: #111;
  font-size: 1.05rem;
  line-height: 1;
  transition: background-color 160ms ease, transform 160ms ease;
}

.longform-download:hover > span:last-child,
.longform-download:focus-visible > span:last-child {
  background: #b3d22d;
  transform: translateY(2px);
}

.longform-actions > .longform-download {
  width: max-content;
  max-width: 100%;
  margin: 0;
}

.longform-block {
  margin-block: 0 52px;
}

.longform-figure,
.longform-gallery-wrap,
.longform-video {
  margin: 36px 0 58px;
}

.longform-figure--wide {
  width: 100%;
}

.longform-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.longform figcaption {
  margin-top: 10px;
  color: var(--lf-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.longform-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.longform-gallery img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.longform-gallery--3 img:first-child {
  grid-row: span 2;
  height: 598px;
}

.longform-video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.longform-video__frame iframe,
.longform-video__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.longform-quote {
  margin: 65px 0;
  border-left: 8px solid var(--lf-accent);
  padding: 4px 0 4px clamp(24px, 4vw, 45px);
}

.longform-quote p {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.longform-quote cite {
  display: block;
  margin-top: 18px;
  color: var(--lf-muted);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 700;
}

.longform-sharebar {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-bottom: 96px;
  padding: 24px 28px;
  background: var(--lf-panel);
  font-size: 0.82rem;
}

.longform-sharebar .longform-download {
  flex-basis: 100%;
  margin-top: 8px;
}

.longform-related {
  border-top: 1px solid var(--lf-rule);
  padding-block: 44px 105px;
  background: #f5f5f5;
}

.longform-related__header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  margin-bottom: 28px;
}

.longform .longform-related__header h2 {
  margin: 0;
  padding: 0;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.longform-related__more {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: #111;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.longform-related__more span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--lf-accent);
  font-size: 1.3rem;
}

.longform-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.longform-card {
  min-width: 0;
  border-left: 1px solid var(--lf-rule);
  padding: 0 0 8px 18px;
}

.longform-card > a {
  color: #111;
  text-decoration: none;
}

.longform-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.longform .longform-card h3 {
  margin: 18px 0 10px;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}

.longform-card p {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.longform-card time {
  color: var(--lf-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}
.entry-content ol {
    list-style-type: decimal;
    padding-left: 2rem;
}

@media (max-width: 900px) {
  .longform-container {
    width: min(100% - 32px, 760px);
  }

  .longform-hero {
    min-height: 330px;
  }

  .longform-hero__inner {
    padding-block: 110px 30px;
  }

  .longform .longform-title,
  .longform .longform-hero__title {
    font-size: clamp(2.15rem, 9vw, 3.5rem);
  }

  .longform-meta__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .longform-share--top {
    grid-template-columns: auto repeat(3, auto);
    justify-content: start;
    align-items: center;
    gap: 12px 20px;
  }

  .longform-share--top .longform-meta__label {
    margin: 0;
  }

  .longform-mobile-toc {
    display: block;
    margin-top: 20px;
  }

  .longform-mobile-toc details {
    background: var(--lf-panel);
  }

  .longform-mobile-toc summary {
    cursor: pointer;
    padding: 20px 22px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .longform-mobile-toc ol {
    padding: 0 22px 24px;
  }

  .longform-layout {
    display: block;
    padding-block: 50px 75px;
  }

  .longform-rail {
    display: none;
  }

  .longform-figure--wide {
    width: 100%;
  }

  .longform-related__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 560px) {
  .longform-hero {
    min-height: 300px;
  }

  .longform-author__image {
    width: 60px;
    height: 60px;
  }

  .longform-share--top {
    grid-template-columns: 1fr;
  }

  .longform-gallery {
    grid-template-columns: 1fr;
  }

  .longform-rich-text .wp-block-gallery {
    grid-template-columns: 1fr;
  }

  .longform-gallery img,
  .longform-gallery--3 img:first-child {
    grid-row: auto;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .longform-rich-text .wp-block-gallery.has-nested-images img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .longform-sharebar {
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-bottom: 70px;
  }

  .longform-related__header {
    display: block;
  }

  .longform-related__more {
    margin-top: 22px;
  }
}

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