.single .site-header,
.single .site-footer {
  display: none;
}

.single .site-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.wd-single__progress {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: #d4ebc7;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.wd-single {
  font-family: Inter, system-ui, sans-serif;
  color: #1c2420;
  background: #f7f3e8;
  overflow-wrap: break-word;
}

.wd-single__hero {
  background: #173b2e;
  color: #f7f3e8;
  padding: 104px 40px 88px;
}

.wd-single__hero-inner {
  width: min(960px, 100%);
  margin: 0 auto;
}

.wd-single__breadcrumb {
  margin-bottom: 40px;
  font-size: 13px;
  line-height: 1.5;
}

.wd-single__breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wd-single__breadcrumb li {
  color: rgba(247, 243, 232, 0.68);
}

.wd-single__breadcrumb li + li::before {
  margin-right: 8px;
  color: rgba(247, 243, 232, 0.4);
  content: "/";
}

.wd-single__breadcrumb li[aria-current="page"] {
  overflow: hidden;
  max-width: 42ch;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-single__breadcrumb a {
  color: #f7f3e8;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 180ms ease;
}

.wd-single__breadcrumb a:hover {
  text-decoration-color: #d4ebc7;
}

.wd-single__eyebrow,
.wd-single__topic {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d4ebc7;
}

.wd-single a.wd-single__topic,
.wd-single a.wd-single__topic:link,
.wd-single a.wd-single__topic:visited {
  padding: 5px 10px;
  border: 1px solid rgba(212, 235, 199, 0.45);
  border-radius: 6px;
  color: #d4ebc7 !important;
  text-decoration: none !important;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.wd-single a.wd-single__topic:hover,
.wd-single a.wd-single__topic:focus {
  border-color: #d4ebc7;
  background: rgba(212, 235, 199, 0.14);
  color: #ffffff !important;
  text-decoration: none !important;
}

.wd-single h1.wd-single__title {
  margin: 0;
  font-family: "League Spartan", Inter, sans-serif;
  font-size: clamp(48px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #f7f3e8;
  text-wrap: balance;
}

.wd-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  color: rgba(247, 243, 232, 0.74);
  font-size: 14px;
  line-height: 1.5;
}

.wd-single__standfirst {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(247, 243, 232, 0.86);
}

.wd-single__figure {
  width: min(1180px, calc(100% - 80px));
  margin: -48px auto 0;
}

.wd-single__img,
.wd-single__figure img {
  display: block;
  width: 100%;
  height: min(520px, 56vw);
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(23, 59, 46, 0.18);
}

.wd-single__content-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 740px);
  gap: 56px;
  justify-content: center;
  width: min(1100px, calc(100% - 80px));
  margin: 72px auto 0;
}

.wd-single__toc {
  position: sticky;
  top: 112px;
  align-self: start;
  max-height: calc(100vh - 144px);
  overflow-y: auto;
  padding: 18px 18px 18px 20px;
  border: 1px solid #d9e2dc;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.wd-single__toc-title {
  margin: 0 0 12px;
  font-family: "League Spartan", Inter, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #173b2e;
}

.wd-single__toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wd-single__toc li + li {
  margin-top: 8px;
}

.wd-single__toc a {
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid #d9e2dc;
  color: #5e6b64;
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.wd-single__toc a:hover {
  border-color: #2d5a45;
  color: #173b2e;
}

.wd-single__body {
  width: min(740px, 100%);
  min-width: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.78;
}

.wd-single__body > :first-child {
  margin-top: 0;
}

.wd-single__body > :last-child {
  margin-bottom: 0;
}

.wd-single__body h2 {
  margin: 56px 0 18px;
  scroll-margin-top: 112px;
  font-family: "League Spartan", Inter, sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #173b2e;
  text-wrap: balance;
}

.wd-single__body h3 {
  margin: 38px 0 14px;
  font-family: "League Spartan", Inter, sans-serif;
  font-size: clamp(23px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #2d5a45;
  text-wrap: balance;
}

.wd-single__body p,
.wd-single__body ul,
.wd-single__body ol,
.wd-single__body blockquote,
.wd-single__body table {
  margin-top: 0;
  margin-bottom: 24px;
}

.wd-single__body p,
.wd-single__body ul,
.wd-single__body ol {
  color: #1c2420;
}

.wd-single__body ul,
.wd-single__body ol {
  padding-left: 1.35em;
}

.wd-single__body li {
  padding-left: 0.28em;
  margin: 8px 0;
}

.wd-single__body li::marker {
  color: #2d5a45;
  font-weight: 700;
}

.wd-single__body li > ul,
.wd-single__body li > ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.wd-single__body a {
  color: #2d5a45;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wd-single__body a:hover {
  color: #173b2e;
  text-decoration-thickness: 2px;
}

.wd-single__body blockquote {
  padding: 24px 28px;
  border-left: 4px solid #2d5a45;
  border-radius: 0 12px 12px 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 59, 46, 0.06);
  color: #173b2e;
  font-family: "League Spartan", Inter, sans-serif;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 600;
  line-height: 1.45;
}

.wd-single__body blockquote p:last-child {
  margin-bottom: 0;
}

.wd-single__body figure {
  max-width: 100%;
  margin: 32px 0;
}

.wd-single__body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.wd-single__body figcaption {
  margin-top: 10px;
  color: #5e6b64;
  font-size: 13px;
  line-height: 1.5;
}

.wd-single__body .wp-block-table {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid #d9e2dc;
  border-radius: 12px;
  background: #fff;
}

.wd-single__body table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.55;
}

.wd-single__body > table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #d9e2dc;
  border-radius: 12px;
  background: #fff;
}

.wd-single__body th,
.wd-single__body td {
  padding: 14px 16px;
  border-right: 1px solid #d9e2dc;
  border-bottom: 1px solid #d9e2dc;
  text-align: left;
  vertical-align: top;
}

.wd-single__body th:last-child,
.wd-single__body td:last-child {
  border-right: 0;
}

.wd-single__body tr:last-child td {
  border-bottom: 0;
}

.wd-single__body th {
  background: #d4ebc7;
  color: #173b2e;
  font-weight: 700;
}

.wd-single__body .wd-article-callout {
  margin: 32px 0;
  padding: 24px 26px;
  border: 1px solid #86a691;
  border-radius: 12px;
  background: #d4ebc7;
  box-shadow: 0 8px 24px rgba(23, 59, 46, 0.05);
}

.wd-single__body .wd-article-callout > :first-child {
  margin-top: 0;
}

.wd-single__body .wd-article-callout > :last-child {
  margin-bottom: 0;
}

.wd-single__body .wd-article-callout strong:first-child {
  color: #173b2e;
}

.wd-single__body pre {
  max-width: 100%;
  overflow-x: auto;
  margin: 32px 0;
  padding: 20px;
  border-radius: 12px;
  background: #173b2e;
  color: #f7f3e8;
  font-size: 14px;
  line-height: 1.65;
}

.wd-single a:focus-visible {
  outline: 3px solid #c5a15a;
  outline-offset: 4px;
  border-radius: 3px;
}

.wd-single__footer {
  width: min(740px, calc(100% - 80px));
  margin: 64px auto 0;
  padding: 32px 0 72px;
  border-top: 1px solid #d9e2dc;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.wd-single__back {
  color: #2d5a45;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 180ms ease;
}

.wd-single__back:hover {
  text-decoration-color: #2d5a45;
}

.wd-single__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wd-single__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.wd-single__btn--primary {
  background: #2d5a45;
  color: #fff;
}

.wd-single__btn--primary:hover {
  background: #173b2e;
  color: #fff;
  text-decoration: none;
}

.wd-single__btn--ghost {
  border: 2px solid #2d5a45;
  color: #2d5a45;
}

.wd-single__btn--ghost:hover {
  background: #2d5a45;
  color: #fff;
  text-decoration: none;
}

.wd-single__related {
  background: #fff;
  padding: 90px 40px 120px;
  border-top: 1px solid #d9e2dc;
}

.wd-single__related-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.wd-single__related h2 {
  margin: 0 0 32px;
  font-family: "League Spartan", Inter, sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #173b2e;
}

.wd-single__related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.wd-single__related a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #d9e2dc;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  color: #173b2e;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.wd-single__related a:hover {
  border-color: #86a691;
  box-shadow: 0 12px 28px rgba(28, 36, 32, 0.09);
  text-decoration: none;
}

.wd-single__related-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.wd-single__related-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 22px;
}

.wd-single__related-copy time {
  color: #5e6b64;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wd-single__related strong {
  display: block;
  font-family: "League Spartan", Inter, sans-serif;
  font-size: 21px;
  line-height: 1.25;
}

@media (max-width: 1199px) {
  .wd-single__hero {
    padding: 90px 32px 76px;
  }

  .wd-single h1.wd-single__title {
    font-size: 56px;
  }

  .wd-single__figure,
  .wd-single__footer {
    width: calc(100% - 64px);
  }

  .wd-single__content-shell {
    grid-template-columns: minmax(0, 740px);
    width: calc(100% - 64px);
    margin-top: 64px;
  }

  .wd-single__toc {
    position: static;
    max-height: none;
  }

  .wd-single__toc ol {
    columns: 2;
    column-gap: 32px;
  }

  .wd-single__toc li {
    break-inside: avoid;
  }

  .wd-single__related {
    padding: 90px 32px;
  }
}

@media (max-width: 767px) {
  .wd-single__hero {
    padding: 70px 20px 58px;
  }

  .wd-single__breadcrumb {
    margin-bottom: 32px;
  }

  .wd-single h1.wd-single__title {
    font-size: 42px;
    line-height: 1.02;
  }

  .wd-single__figure,
  .wd-single__content-shell,
  .wd-single__footer {
    width: calc(100% - 40px);
  }

  .wd-single__figure {
    margin-top: -28px;
  }

  .wd-single__img,
  .wd-single__figure img {
    height: 240px;
    border-radius: 12px;
  }

  .wd-single__content-shell {
    gap: 40px;
    margin-top: 48px;
  }

  .wd-single__toc ol {
    columns: 1;
  }

  .wd-single__body {
    font-size: 16px;
    line-height: 1.75;
  }

  .wd-single__body h2 {
    margin-top: 44px;
    font-size: 30px;
  }

  .wd-single__body h3 {
    margin-top: 32px;
    font-size: 24px;
  }

  .wd-single__body blockquote,
  .wd-single__body .wd-article-callout {
    padding: 20px;
  }

  .wd-single__footer {
    align-items: stretch;
    margin-top: 48px;
    padding-bottom: 56px;
  }

  .wd-single__related {
    padding: 70px 20px;
  }

  .wd-single__related ul {
    grid-template-columns: 1fr;
  }

  .wd-single__cta {
    width: 100%;
    display: grid;
  }

  .wd-single__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-single * {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .wd-single__progress {
    will-change: auto;
  }
}
