/* =====================================================
   SINGLE POST STORY LAYOUT
   ===================================================== */

body.single-post {
  --ttb-story-width: 760px;
  --ttb-story-wide: 1120px;
  background: var(--ttb-paper, #F4EFE3);
}

body.single-post .ttb-reading-progress {
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
  background: rgba(46, 73, 54, 0.12);
}

body.single-post .ttb-reading-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6F8263, #2E4936 72%, #9DB7C4);
  transition: width 80ms linear;
}

body.single-post main#wp--skip-link--target {
  max-width: none;
  margin-top: 0 !important;
  padding: 0 1.5rem 5rem;
}

body.single-post main#wp--skip-link--target > .wp-block-group:first-child {
  max-width: var(--ttb-story-wide);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0 3rem !important;
}

body.single-post .wp-block-post-title {
  width: 100%;
  max-width: var(--ttb-story-width);
  margin: 0 auto 2rem;
  color: var(--ttb-green-dark, #2E4936);
  font-size: clamp(2.8rem, 7vw, 7rem) !important;
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.94;
  text-wrap: balance;
}

body.single-post .wp-block-post-featured-image {
  width: 100%;
  max-width: var(--ttb-story-wide);
  margin: 3rem auto 1.5rem;
  aspect-ratio: 16 / 9 !important;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ttb-tag, #D7E0E3);
  box-shadow: 0 18px 45px rgba(46, 73, 54, 0.12);
}

body.single-post .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

body.single-post .wp-block-post-featured-image:hover img {
  transform: scale(1.025);
}

/* The featured image remains assigned for archive thumbnails, but the
   custom visual scene is the single large image on the post page. */
body.single-post main#wp--skip-link--target > .wp-block-group:first-child > .wp-block-post-featured-image {
  display: none;
}

/* Scroll-led visual scene built from the post's own featured artwork. */
body.single-post .ttb-visual-experience {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: var(--ttb-story-wide);
  height: clamp(270px, 42vw, 520px);
  margin: 2.5rem auto 3.5rem;
  border: 1px solid rgba(46, 73, 54, 0.2);
  border-radius: 18px;
  background: #203c2b;
  box-shadow: 0 20px 50px rgba(46, 73, 54, 0.14);
}

body.single-post .ttb-visual-experience__art,
body.single-post .ttb-visual-experience__wash,
body.single-post .ttb-visual-experience__horizon,
body.single-post .ttb-visual-experience__trees,
body.single-post .ttb-visual-experience__ripples,
body.single-post .ttb-visual-experience__sun {
  position: absolute;
  pointer-events: none;
}

body.single-post .ttb-visual-experience__art {
  inset: -6%;
  z-index: -4;
  background-position: center top;
  background-size: cover;
  filter: saturate(0.78) contrast(0.95);
  opacity: 0.48;
  transform: scale(1.06);
}

body.single-post .ttb-visual-experience--fallback .ttb-visual-experience__art {
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(247, 213, 135, 0.82) 0 7%, transparent 7.5%),
    radial-gradient(ellipse at 50% 100%, rgba(111, 130, 99, 0.68) 0 24%, transparent 25%),
    linear-gradient(135deg, #9db7c4 0%, #6f8263 46%, #173524 100%);
  filter: none;
  opacity: 1;
  transform: none;
}

body.single-post .ttb-visual-experience--fallback .ttb-visual-experience__wash {
  background: linear-gradient(180deg, rgba(17, 42, 28, 0.04), rgba(17, 42, 28, 0.64) 78%, #173524 100%);
}

body.single-post .ttb-visual-experience__wash {
  z-index: -3;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 42, 28, 0.2), rgba(17, 42, 28, 0.7) 70%, #173524 100%);
}

body.single-post .ttb-visual-experience__sun {
  z-index: -2;
  top: 13%;
  right: 16%;
  width: clamp(70px, 11vw, 140px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(247, 213, 135, 0.72);
  box-shadow: 0 0 70px 24px rgba(247, 213, 135, 0.18);
}

body.single-post .ttb-visual-experience__horizon {
  z-index: -1;
  right: -5%;
  bottom: -12%;
  left: -5%;
  height: 52%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(32, 76, 51, 0.28), #173524 70%);
}

body.single-post .ttb-visual-experience__trees {
  z-index: 0;
  bottom: 16%;
  width: 0;
  height: 0;
  border-right: clamp(32px, 5vw, 74px) solid transparent;
  border-bottom: clamp(140px, 24vw, 300px) solid rgba(8, 29, 18, 0.72);
  border-left: clamp(32px, 5vw, 74px) solid transparent;
}

body.single-post .ttb-visual-experience__trees--left { left: 7%; transform: scale(0.8); }
body.single-post .ttb-visual-experience__trees--center { left: 40%; transform: scale(0.62); opacity: 0.62; }
body.single-post .ttb-visual-experience__trees--right { right: 5%; transform: scale(1.1); opacity: 0.8; }

body.single-post .ttb-visual-experience__ripples {
  z-index: 1;
  bottom: 12%;
  left: 50%;
  width: clamp(130px, 21vw, 290px);
  aspect-ratio: 2 / 1;
  border: 1px solid rgba(215, 224, 227, 0.55);
  border-radius: 50%;
  opacity: 0.62;
  transform: translateX(-50%);
  animation: ttb-ripple 4.5s ease-out infinite;
}

body.single-post .ttb-visual-experience__ripples::before,
body.single-post .ttb-visual-experience__ripples::after {
  position: absolute;
  inset: 18% 16%;
  border: inherit;
  border-radius: inherit;
  content: "";
}

body.single-post .ttb-visual-experience__ripples::after { inset: 36% 30%; }

body.single-post .ttb-visual-experience__caption {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2.5rem);
  color: #F4EFE3;
  font-size: clamp(0.72rem, 1.1vw, 0.92rem);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.34);
  text-transform: uppercase;
}

/* Sticky visual companion: its states are driven by the post's pull quotes. */
body.single-post .ttb-scroll-visual {
  position: fixed;
  z-index: 10;
  top: 50%;
  right: max(1rem, calc((100vw - 1480px) / 2));
  display: flex;
  overflow: hidden;
  width: clamp(220px, 22vw, 340px);
  height: min(58vh, 540px);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(215, 224, 227, 0.26);
  border-radius: 18px;
  background: #203c2b;
  box-shadow: 0 18px 50px rgba(46, 73, 54, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(20px);
  transition: opacity 450ms ease, transform 650ms cubic-bezier(.2,.7,.2,1), background 650ms ease;
}

body.single-post .ttb-scroll-visual.is-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

body.single-post .ttb-scroll-visual__image,
body.single-post .ttb-scroll-visual__veil,
body.single-post .ttb-scroll-visual__orb,
body.single-post .ttb-scroll-visual__rings {
  position: absolute;
  pointer-events: none;
}

body.single-post .ttb-scroll-visual__image {
  z-index: -4;
  inset: -12%;
  background-position: center top;
  background-size: cover;
  filter: saturate(0.55);
  opacity: 0.28;
  transform: scale(1.12);
  transition: transform 900ms ease, opacity 650ms ease;
}

body.single-post .ttb-scroll-visual--fallback .ttb-scroll-visual__image {
  opacity: 1;
  background:
    radial-gradient(circle at 68% 22%, rgba(247, 213, 135, 0.82) 0 11%, transparent 11.5%),
    linear-gradient(145deg, #9db7c4, #6f8263 52%, #173524);
  filter: none;
}

body.single-post .ttb-scroll-visual__veil {
  z-index: -3;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 42, 28, 0.15), rgba(17, 42, 28, 0.9) 82%);
}

body.single-post .ttb-scroll-visual__orb {
  z-index: -2;
  top: 18%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(247, 213, 135, 0.68);
  box-shadow: 0 0 55px 15px rgba(247, 213, 135, 0.18);
  transform: translateX(-50%);
  transition: background 650ms ease, transform 900ms ease;
}

body.single-post .ttb-scroll-visual__rings {
  z-index: -1;
  top: 31%;
  left: 50%;
  width: 57%;
  aspect-ratio: 1;
  border: 1px solid rgba(215, 224, 227, 0.55);
  border-radius: 50%;
  transform: translateX(-50%) rotate(12deg) scale(0.72);
  transition: transform 850ms cubic-bezier(.2,.7,.2,1), border-color 650ms ease;
}

body.single-post .ttb-scroll-visual__rings::before,
body.single-post .ttb-scroll-visual__rings::after {
  position: absolute;
  inset: 13%;
  border: inherit;
  border-radius: inherit;
  content: "";
}

body.single-post .ttb-scroll-visual__rings::after { inset: 26%; }

body.single-post .ttb-scroll-visual__eyebrow {
  position: relative;
  z-index: 1;
  margin-bottom: 0.9rem;
  color: #D7E0E3;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.single-post .ttb-scroll-visual__quote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #F4EFE3;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.18;
  transition: opacity 220ms ease, transform 450ms ease;
}

body.single-post .ttb-scroll-visual__dots {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

body.single-post .ttb-scroll-visual__dots span {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid #D7E0E3;
  border-radius: 50%;
  opacity: 0.7;
  transition: background 250ms ease, transform 250ms ease;
}

body.single-post .ttb-scroll-visual__dots span.is-active {
  background: #D7E0E3;
  transform: scale(1.35);
}

body.single-post .ttb-scroll-visual[data-state="1"] .ttb-scroll-visual__orb { transform: translateX(-50%) translateY(28px) scale(0.72); }
body.single-post .ttb-scroll-visual[data-state="1"] .ttb-scroll-visual__rings { transform: translateX(-50%) rotate(-20deg) scale(1.05); }
body.single-post .ttb-scroll-visual[data-state="2"] .ttb-scroll-visual__orb { background: rgba(157, 183, 196, 0.68); transform: translateX(-50%) translateY(-12px) scale(1.2); }
body.single-post .ttb-scroll-visual[data-state="2"] .ttb-scroll-visual__rings { transform: translateX(-50%) rotate(35deg) scale(0.68); }
body.single-post .ttb-scroll-visual[data-state="3"] .ttb-scroll-visual__orb { background: rgba(111, 130, 99, 0.72); transform: translateX(-50%) translateY(24px) scale(0.6); }
body.single-post .ttb-scroll-visual[data-state="3"] .ttb-scroll-visual__rings { transform: translateX(-50%) rotate(-42deg) scale(1.3); }
body.single-post .ttb-scroll-visual[data-state="4"] .ttb-scroll-visual__orb { background: rgba(247, 213, 135, 0.82); transform: translateX(-50%) translateY(-20px) scale(0.9); }
body.single-post .ttb-scroll-visual[data-state="4"] .ttb-scroll-visual__rings { transform: translateX(-50%) rotate(70deg) scale(0.84); }

@keyframes ttb-ripple {
  0%, 100% { opacity: 0.28; transform: translateX(-50%) scale(0.92); }
  50% { opacity: 0.7; transform: translateX(-50%) scale(1.08); }
}

body.single-post main#wp--skip-link--target > .wp-block-group:first-child > .wp-block-group {
  max-width: var(--ttb-story-width);
  margin: 0 auto;
  color: #667067;
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-post main#wp--skip-link--target > .wp-block-group:first-child > .wp-block-group p {
  margin: 0;
}

body.single-post main#wp--skip-link--target > .wp-block-group:first-child > .wp-block-group a,
body.single-post .taxonomy-post_tag a {
  color: var(--ttb-green-dark, #2E4936);
  font-weight: 700;
  text-decoration: none;
}

body.single-post main#wp--skip-link--target > .wp-block-group:first-child > .wp-block-group a:hover,
body.single-post .taxonomy-post_tag a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.single-post .wp-block-post-content {
  position: relative;
  max-width: var(--ttb-story-width);
  margin: 0 auto !important;
  color: var(--ttb-ink, #30352F);
  font-size: clamp(1.08rem, 1.4vw, 1.24rem) !important;
  line-height: 1.8;
}

body.single-post .wp-block-post-content > p:first-of-type {
  color: var(--ttb-green-dark, #2E4936);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
}

body.single-post .wp-block-post-content p,
body.single-post .wp-block-post-content ul,
body.single-post .wp-block-post-content ol {
  max-width: 100%;
}

body.single-post .wp-block-post-content h2,
body.single-post .wp-block-post-content h3 {
  position: relative;
  scroll-margin-top: 5rem;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  margin-bottom: 1.25rem;
  color: var(--ttb-green-dark, #2E4936);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

body.single-post .wp-block-post-content h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}

body.single-post .wp-block-post-content h3 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

body.single-post .wp-block-post-content h2::before,
body.single-post .wp-block-post-content h3::before {
  display: block;
  margin-bottom: 0.65rem;
  color: #6F8263;
  content: "✳";
  font-size: 0.8rem;
  letter-spacing: 0;
}

body.single-post .wp-block-post-content a {
  color: var(--ttb-green-dark, #2E4936);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

body.single-post .wp-block-post-content figure:not(.wp-block-image) {
  margin: clamp(2.5rem, 6vw, 5rem) calc(50% - 50vw);
  width: 100vw;
  max-width: var(--ttb-story-wide);
  transform: translateX(calc(50vw - 50%));
}

body.single-post .wp-block-post-content figure:not(.wp-block-image) img {
  display: block;
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(215, 224, 227, 0.35);
}

/* Embedded video: treat it as a story beat, not an inline utility. */
body.single-post .wp-block-post-content figure.wp-block-embed-video,
body.single-post .wp-block-post-content figure.wp-block-embed-youtube {
  position: relative;
  width: min(calc(100vw - 3rem), var(--ttb-story-wide));
  max-width: var(--ttb-story-wide);
  margin: clamp(3.5rem, 8vw, 7rem) auto;
  padding: 3.25rem clamp(0.75rem, 3vw, 2.5rem) clamp(0.75rem, 3vw, 2.5rem);
  transform: none;
  border-radius: 18px;
  background: var(--ttb-green-dark, #2E4936);
  box-shadow: 0 20px 50px rgba(46, 73, 54, 0.2);
}

body.single-post .wp-block-post-content figure.wp-block-embed-video::before,
body.single-post .wp-block-post-content figure.wp-block-embed-youtube::before {
  position: absolute;
  top: 1.1rem;
  left: clamp(0.75rem, 3vw, 2.5rem);
  color: #D7E0E3;
  content: "A moment to listen";
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.single-post .wp-block-post-content figure.wp-block-embed-video::after,
body.single-post .wp-block-post-content figure.wp-block-embed-youtube::after {
  position: absolute;
  right: clamp(0.75rem, 3vw, 2.5rem);
  bottom: 1rem;
  color: rgba(255, 255, 255, 0.65);
  content: "Press play when you’re ready";
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

body.single-post .wp-block-post-content figure.wp-block-embed-video .wp-block-embed__wrapper,
body.single-post .wp-block-post-content figure.wp-block-embed-youtube .wp-block-embed__wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: #101b14;
}

body.single-post .wp-block-post-content figure.wp-block-embed-video iframe,
body.single-post .wp-block-post-content figure.wp-block-embed-youtube iframe {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.single-post .wp-block-post-content figcaption {
  max-width: var(--ttb-story-width);
  margin: 0.75rem auto 0;
  color: #6b756d;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: left;
}

/* Keep editorial callouts and data tables readable instead of full-bleed. */
body.single-post .wp-block-post-content figure.wp-block-pullquote {
  width: min(100%, 44rem);
  max-width: 100%;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  transform: none;
}

body.single-post .wp-block-post-content figure.wp-block-pullquote blockquote {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

body.single-post .wp-block-post-content figure.wp-block-table {
  width: 100%;
  max-width: 100%;
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
  overflow-x: auto;
  transform: none;
}

body.single-post .wp-block-post-content figure.wp-block-table table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

body.single-post .wp-block-post-content figure.wp-block-table th,
body.single-post .wp-block-post-content figure.wp-block-table td {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(46, 73, 54, 0.16);
  text-align: left;
  vertical-align: top;
}

body.single-post .wp-block-post-content figure.wp-block-table thead th {
  background: rgba(46, 73, 54, 0.09);
  color: var(--ttb-green-dark, #2E4936);
  font-weight: 700;
}

body.single-post .wp-block-post-content figure.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background: rgba(157, 183, 196, 0.12);
}

body.single-post .wp-block-post-content blockquote {
  margin: 3rem 0;
  padding: 1.4rem 1.75rem;
  border-left: 4px solid #6F8263;
  border-radius: 0 12px 12px 0;
  background: rgba(157, 183, 196, 0.2);
  color: var(--ttb-green-dark, #2E4936);
  font-size: 1.35em;
  line-height: 1.45;
}

body.single-post .taxonomy-post_tag {
  max-width: var(--ttb-story-width);
  margin: 3.5rem auto !important;
  padding: 0 !important;
  color: #6b756d;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-post .taxonomy-post_tag a {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(46, 73, 54, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
}

body.single-post .wp-block-post-navigation-link {
  max-width: 520px;
  color: var(--ttb-green-dark, #2E4936);
  font-size: 1.05rem;
  line-height: 1.35;
}

body.single-post .wp-block-post-navigation-link a {
  color: inherit;
  text-decoration: none;
}

body.single-post .wp-block-post-navigation-link a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.single-post .ttb-post-sections {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: max(1rem, calc((100vw - 1400px) / 2));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 130px;
  transform: translateY(-50%);
}

body.single-post .ttb-post-sections__label {
  margin-bottom: 0.35rem;
  color: #6b756d;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.single-post .ttb-post-sections a {
  display: block;
  overflow: hidden;
  color: #87918a;
  font-size: 0.72rem;
  line-height: 1.25;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.single-post .ttb-post-sections a::before {
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin: 0 0.45rem 0.08rem 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

body.single-post .ttb-post-sections a.is-active,
body.single-post .ttb-post-sections a:hover {
  color: var(--ttb-green-dark, #2E4936);
}

body.single-post .ttb-post-sections a.is-active::before {
  background: #6F8263;
  border-color: #6F8263;
}

body.single-post .ttb-citation-input {
  max-width: var(--ttb-story-width);
  margin: 0 auto;
  font-size: 0.75rem;
  line-height: 1;
}

body.single-post .ttb-citation-marker a {
  display: inline-block;
  margin-left: 0.15em;
  color: var(--ttb-green-dark, #2E4936);
  font-size: 0.72em;
  font-weight: 700;
  text-decoration: none;
  vertical-align: super;
}

body.single-post .ttb-citation-rail {
  position: absolute;
  top: 0;
  left: calc(50% + 460px);
  width: 180px;
  color: #6b756d;
}

body.single-post .ttb-citation-rail__label {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ttb-green-dark, #2E4936);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.single-post .ttb-citation-rail__list,
body.single-post .ttb-references ol {
  margin: 0;
  padding-left: 1.4rem;
  list-style: none;
}

body.single-post .ttb-citation-rail__list {
  position: relative;
  min-height: 1px;
  padding-left: 0;
  list-style: none;
}

body.single-post .ttb-citation-rail li,
body.single-post .ttb-references li {
  margin-bottom: 0.8rem;
  font-size: 0.72rem;
  line-height: 1.4;
}

body.single-post .ttb-citation-rail li {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
}

body.single-post .ttb-references li + li {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(46, 73, 54, 0.13);
}

body.single-post .ttb-citation-rail a,
body.single-post .ttb-references a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

body.single-post .ttb-citation-rail a:hover,
body.single-post .ttb-references a:hover {
  color: var(--ttb-green-dark, #2E4936);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.single-post .ttb-citation-rail__number {
  color: var(--ttb-green-dark, #2E4936);
  font-weight: 700;
}

body.single-post .ttb-citation-rail__note-label,
body.single-post .ttb-reference-label {
  color: var(--ttb-green-dark, #2E4936);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.single-post .ttb-references {
  max-width: var(--ttb-story-width);
  margin: 5rem auto 2rem;
  padding-top: 2rem;
  color: #6b756d;
}

body.single-post .ttb-references summary {
  margin: 0 0 1.25rem;
  color: var(--ttb-green-dark, #2E4936);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0;
}

body.single-post .ttb-references summary::-webkit-details-marker {
  display: none;
}

body.single-post .ttb-references summary::after {
  content: none;
}

body.single-post .ttb-references[open] summary::after {
  content: none;
}

body.single-post .ttb-references,
body.single-post .ttb-references[open] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-post .ttb-reference-number {
  float: left;
  width: 1.8rem;
  margin-left: -1.4rem;
  color: var(--ttb-green-dark, #2E4936) !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.single-post .ttb-reference-note {
  margin: 0.7rem 0 0.35rem;
  color: var(--ttb-green-dark, #2E4936);
  font-size: 1em;
  line-height: 1.45;
}

body.single-post .ttb-reference-url {
  font-size: 0.9em;
}

body.single-post .ttb-reference-back {
  margin-left: 0.35rem;
  color: var(--ttb-green-dark, #2E4936) !important;
  font-size: 1rem;
}

body.single-post .ttb-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

body.single-post .ttb-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1100px) {
  body.single-post .ttb-post-sections,
  body.single-post .ttb-scroll-visual,
  body.single-post .ttb-citation-rail {
    display: none;
  }

  body.single-post .ttb-references {
    margin-top: 3rem;
  }

  body.single-post .ttb-references:not([open]) {
    padding-bottom: 0;
  }
}

@media (max-width: 700px) {
  body.single-post main#wp--skip-link--target {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  body.single-post main#wp--skip-link--target > .wp-block-group:first-child {
    padding-top: 3rem !important;
  }

  body.single-post .wp-block-post-featured-image {
    border-radius: 12px;
  }

  body.single-post .wp-block-post-content figure:not(.wp-block-image) {
    margin-right: -1rem;
    margin-left: -1rem;
    width: calc(100% + 2rem);
    transform: none;
  }

  body.single-post .wp-block-post-content figure:not(.wp-block-image) img {
    border-radius: 0;
  }

  body.single-post .wp-block-post-content figure.wp-block-embed-video,
  body.single-post .wp-block-post-content figure.wp-block-embed-youtube {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 3.5rem 0;
    padding: 3rem 0.75rem 2.75rem;
    transform: none;
    border-radius: 0;
  }

  body.single-post .wp-block-post-content figure.wp-block-embed-video::after,
  body.single-post .wp-block-post-content figure.wp-block-embed-youtube::after {
    right: 0.75rem;
    bottom: 0.8rem;
  }

  body.single-post .wp-block-post-content figure.wp-block-pullquote {
    width: 100%;
    margin: 2.5rem auto;
  }

  body.single-post .wp-block-post-content figure.wp-block-table {
    width: 100%;
    margin: 2.5rem auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-post .ttb-reveal,
  body.single-post .wp-block-post-featured-image img,
  body.single-post .ttb-reading-progress__bar {
    transition: none;
  }

  body.single-post .ttb-visual-experience__ripples {
    animation: none;
  }
}
