/*
 * Two Ranges Companion — frontend styles
 * v0.9.14 cleanup
 *
 * Scope: Two Ranges CPT pages and Two Ranges shortcodes only.
 * Typography inherits Blocksy/theme defaults unless the entry sets explicit font variables.
 */

:root {
  --tr-green: #425d42;
  --tr-green-2: #617b59;
  --tr-deep: #2e2e2a;
  --tr-cream: #f5efdf;
  --tr-paper: #fffaf0;
  --tr-gold: #c6a25a;
  --tr-blue: #4e8fa8;
  --tr-radius: 22px;
  --tr-shadow: 0 18px 44px rgba(0,0,0,.09);
}

/* Shared shortcode cards --------------------------------------------------- */
.tr-grid-section {
  margin: clamp(2rem, 5vw, 4.5rem) 0;
}

.tr-section-heading {
  max-width: 860px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.tr-section-heading h2 {
  margin: .25rem 0;
  color: var(--tr-deep);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.tr-grid {
  --tr-columns: auto-fit;
  display: grid;
  grid-template-columns: repeat(var(--tr-columns), minmax(250px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin: 2rem 0;
}

.tr-card,
.tr-profile,
.tr-latest,
.tr-episode-feature {
  border-radius: var(--tr-radius);
  box-shadow: var(--tr-shadow);
}

.tr-card {
  overflow: hidden;
  background: var(--tr-paper);
  border: 1px solid rgba(66,93,66,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tr-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(0,0,0,.12);
}

.tr-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tr-green);
}

.tr-card-img,
.tr-profile-img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.tr-card-img {
  aspect-ratio: 16 / 10;
  transition: transform .6s ease;
}

.tr-card:hover .tr-card-img {
  transform: scale(1.035);
}

.tr-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--tr-green), var(--tr-green-2));
  color: var(--tr-cream);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tr-card-body {
  padding: clamp(1rem, 2vw, 1.25rem);
}

.tr-kicker {
  display: inline-flex;
  width: max-content;
  margin: 0 0 .55rem;
  padding: .28rem .62rem;
  border-radius: 999px;
  background: var(--tr-gold);
  color: var(--tr-deep);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.tr-card h3 {
  margin: .15rem 0 .5rem;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.08;
}

.tr-card h3 a,
.tr-readmore,
.tr-secondary-link {
  color: var(--tr-green);
  font-weight: 800;
  text-decoration: none;
}

.tr-card h3 a:hover,
.tr-readmore:hover,
.tr-secondary-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tr-card p,
.tr-profile p {
  color: var(--tr-deep);
  line-height: 1.55;
}

.tr-subtitle {
  margin: .25rem 0;
  font-weight: 700;
}

.tr-meta {
  margin: .25rem 0 .6rem;
  color: rgba(46,46,42,.72) !important;
  font-size: .92rem;
}

.tr-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  margin-top: 1rem;
}

.tr-secondary-link {
  color: var(--tr-blue);
}

.tr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--tr-gold);
  color: var(--tr-deep);
  font-weight: 800;
  text-decoration: none;
}

.tr-card-compact .tr-card-body {
  padding: 1rem;
}

.tr-card-compact p:not(.tr-meta):not(.tr-subtitle) {
  display: none;
}

.tr-card-feature,
.tr-profile,
.tr-latest,
.tr-episode-feature {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.tr-card-feature .tr-card-media {
  order: 2;
}

.tr-card-feature .tr-card-img,
.tr-card-feature .tr-card-fallback,
.tr-profile-img {
  height: 100%;
  min-height: 360px;
  aspect-ratio: auto;
}

.tr-card-feature .tr-card-body,
.tr-profile-body {
  padding: clamp(1.5rem, 4vw, 3rem);
}

/* Video / feature shortcodes ------------------------------------------------ */
.tr-video {
  position: relative;
  overflow: hidden;
  border-radius: var(--tr-radius);
  background: #111;
  box-shadow: var(--tr-shadow);
}

.tr-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.tr-latest,
.tr-episode-feature {
  margin: clamp(2rem, 5vw, 4rem) 0;
  padding: clamp(1.4rem, 4vw, 3rem);
  background: var(--tr-green);
  color: #fff;
}

.tr-latest h2,
.tr-episode-feature h2 {
  margin: .35rem 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.tr-latest p,
.tr-episode-feature p {
  color: rgba(255,255,255,.9);
}

.tr-featured-place {
  max-width: 1120px;
  margin: 2rem auto;
}

/* Profile / details / gallery --------------------------------------------- */
.tr-profile {
  overflow: hidden;
  align-items: stretch;
  margin: 2rem 0;
  background: var(--tr-cream);
}

.tr-profile h2 {
  margin: .2rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.tr-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .8rem;
  margin: 1.2rem 0;
}

.tr-details div {
  padding: .85rem;
  border: 1px solid rgba(66,93,66,.15);
  border-radius: 14px;
  background: rgba(255,255,255,.55);
}

.tr-details dt {
  color: var(--tr-green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tr-details dd {
  margin: .15rem 0 0;
  color: var(--tr-deep);
  font-weight: 700;
}

.tr-note {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 5px solid var(--tr-gold);
  border-radius: 14px;
  background: #fff;
}

.tr-gallery {
  --tr-gallery-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--tr-gallery-columns), minmax(160px, 1fr));
  gap: .8rem;
  margin: 2rem 0;
}

.tr-gallery a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--tr-green);
}

.tr-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}

.tr-gallery a:hover img {
  transform: scale(1.04);
}

/* Stats / nav --------------------------------------------------------------- */
.tr-stats,
.tr-story-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0;
}

.tr-stats > *,
.tr-story-nav a {
  padding: .65rem .9rem;
  border-radius: 999px;
  background: var(--tr-paper);
  border: 1px solid rgba(66,93,66,.18);
  color: var(--tr-deep);
  font-weight: 800;
  text-decoration: none;
}

/* Clean single template ----------------------------------------------------- */
.tr-clean-single-template {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--tr-page-bg, inherit);
}

.tr-clean-entry-header,
.tr-clean-entry-content,
.tr-story-moments {
  width: min(var(--tr-story-width, 1120px), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.tr-clean-entry-header {
  margin-top: clamp(2.2rem, 5vw, 5rem);
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

.tr-clean-entry-header h1 {
  margin: 0;
  font-family: inherit;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: .98;
  letter-spacing: normal;
}

.tr-clean-entry-header p {
  max-width: 720px;
  margin: .75rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.55;
}

.tr-clean-entry-content:empty {
  display: none;
}

/* Entry hero fallback ------------------------------------------------------- */
.tr-story-hero-wrap,
.tr-entry-hero {
  margin: 0 auto;
}

.tr-entry-hero {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: clamp(360px, 62vh, 760px);
  overflow: hidden;
  isolation: isolate;
  border-radius: 24px;
  background: #1b241d;
}

.tr-entry-hero-full,
.tr-clean-single-template > .tr-story-hero-wrap,
.tr-clean-single-template .tr-entry-hero.tr-entry-hero-full {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
}

.tr-entry-hero-media,
.tr-entry-hero-media img,
.tr-entry-hero-overlay {
  position: absolute;
  inset: 0;
}

.tr-entry-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tr-entry-hero-overlay {
  z-index: 1;
  background:
    radial-gradient(circle at 65% 30%, rgba(255,231,167,.16), transparent 34%),
    linear-gradient(90deg, rgba(10,14,11,.72), rgba(10,14,11,.28) 48%, rgba(10,14,11,.56));
}

.tr-entry-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(1040px, calc(100% - 40px));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
  color: #fffaf0;
}

.tr-entry-hero-label {
  width: max-content;
  max-width: 100%;
  margin-bottom: .75rem;
  padding: .35rem .65rem;
  border: 1px solid rgba(255,250,240,.42);
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.tr-entry-hero h1 {
  max-width: 900px;
  margin: 0;
  color: inherit;
  font-size: clamp(2.4rem, 7vw, 6.6rem);
  line-height: .92;
}

.tr-entry-hero p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: rgba(255,250,240,.9);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

/* Story moments ------------------------------------------------------------- */
.tr-story-moments {
  --tr-polaroid-font: "Bradley Hand", "Segoe Print", "Comic Sans MS", "Marker Felt", cursive;
  display: grid;
  gap: clamp(2.2rem, 6vw, 5.5rem);
  color: var(--tr-body, inherit);
}

.tr-story-moment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, 1.05fr);
  gap: clamp(1.25rem, 4vw, 3.75rem);
  align-items: center;
  isolation: isolate;
  padding: clamp(1rem, 2vw, 1.5rem) 0;
}

.tr-moment-layout-left {
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, .95fr);
}

.tr-moment-layout-left .tr-moment-media {
  order: 1;
}

.tr-moment-layout-left .tr-moment-text {
  order: 2;
}

.tr-moment-layout-right .tr-moment-media {
  order: 2;
}

.tr-moment-layout-right .tr-moment-text {
  order: 1;
}

.tr-moment-layout-top,
.tr-moment-layout-bottom,
.tr-moment-layout-full {
  grid-template-columns: 1fr;
}

.tr-moment-layout-bottom .tr-moment-media {
  order: 2;
}

.tr-moment-layout-bottom .tr-moment-text {
  order: 1;
}

.tr-moment-text h3 {
  margin: 0 0 .7rem;
  color: var(--tr-moment-heading, var(--tr-heading, inherit));
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: normal;
  text-shadow: none;
}

.tr-heading-style-editorial .tr-moment-text h3 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: .98;
}

.tr-heading-style-compact .tr-moment-text h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.tr-heading-style-handwritten .tr-moment-text h3 {
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", "Marker Felt", cursive;
}

.tr-moment-text p {
  max-width: 64ch;
  margin: 0 0 .9rem;
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.tr-moment-bg-paper::before,
.tr-moment-bg-tint::before,
.tr-moment-bg-dark::before,
.tr-moment-bg-field-note::before {
  content: "";
  position: absolute;
  inset: clamp(-.8rem, -1.5vw, -.35rem);
  z-index: -1;
  border-radius: 24px;
  pointer-events: none;
}

.tr-moment-bg-paper::before {
  background: var(--tr-surface, var(--tr-paper));
  box-shadow: 0 18px 45px rgba(0,0,0,.06);
}

.tr-moment-bg-tint::before {
  background: var(--tr-moment-bg, var(--tr-accent, var(--tr-green)));
  opacity: var(--tr-moment-bg-opacity, .16);
}

.tr-moment-bg-dark {
  color: #fffaf0;
}

.tr-moment-bg-dark::before {
  background: var(--tr-moment-bg, #18241d);
  opacity: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.tr-moment-bg-field-note::before {
  background: var(--tr-surface, var(--tr-paper));
  border-left: 5px solid var(--tr-accent, rgba(66,93,66,.55));
}

/* Media / polaroids --------------------------------------------------------- */
.tr-moment-media {
  display: grid;
  gap: 1rem;
}

.tr-moment-video iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
}

.tr-moment-photos {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: .8rem;
}

.tr-moment-photo {
  --tr-photo-width: 210px;
  width: min(var(--tr-photo-width), 100%);
  margin: 0;
  padding: .55rem .55rem .85rem;
  background: #fffdf4;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  transform: rotate(var(--tr-tilt, -1deg));
}

.tr-photo-size-small .tr-moment-photo { --tr-photo-width: 170px; }
.tr-photo-size-medium .tr-moment-photo { --tr-photo-width: 220px; }
.tr-photo-size-large .tr-moment-photo { --tr-photo-width: 300px; }
.tr-photo-size-wide .tr-moment-photo { --tr-photo-width: 420px; }

.tr-polaroid-1 { --tr-tilt: -2deg; }
.tr-polaroid-2 { --tr-tilt: 1.5deg; }
.tr-polaroid-3 { --tr-tilt: -.7deg; }
.tr-polaroid-4 { --tr-tilt: 2.2deg; }
.tr-polaroid-5 { --tr-tilt: -1.4deg; }
.tr-polaroid-6 { --tr-tilt: .9deg; }

.tr-moment-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tr-moment-photo a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tr-moment-photo figcaption {
  margin-top: .55rem;
  color: #2e2e2a;
  font-family: var(--tr-polaroid-font);
  font-size: clamp(.88rem, 1.2vw, 1.05rem);
  line-height: 1.1;
  text-align: center;
}

.tr-polaroid-font-typewriter { --tr-polaroid-font: "Courier New", Courier, monospace; }
.tr-polaroid-font-clean { --tr-polaroid-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.tr-polaroid-font-marker { --tr-polaroid-font: "Segoe Print", "Comic Sans MS", "Marker Felt", cursive; }
.tr-polaroid-font-pencil { --tr-polaroid-font: "Comic Sans MS", "Bradley Hand", "Segoe Print", cursive; }

.tr-moment-style-polaroid-grid .tr-moment-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

.tr-moment-style-polaroid-grid .tr-moment-photo {
  width: 100%;
}

.tr-moment-style-polaroid-spread-column .tr-moment-photos {
  flex-direction: column;
  align-items: center;
}

.tr-overlap-light .tr-moment-photo + .tr-moment-photo { margin-left: -.35rem; }
.tr-overlap-medium .tr-moment-photo + .tr-moment-photo { margin-left: -.8rem; }
.tr-overlap-heavy .tr-moment-photo + .tr-moment-photo { margin-left: -1.25rem; }

/* Maps ---------------------------------------------------------------------- */
.tr-moment-map,
.tr-location-card {
  display: grid;
  gap: .8rem;
  padding: .8rem;
  border: 1px solid rgba(66,93,66,.18);
  border-radius: 18px;
  background: rgba(255,250,240,.34);
}

.tr-map-link-card {
  padding: 1rem;
  border: 1px solid rgba(66,93,66,.22);
  border-radius: 14px;
  background: rgba(255,250,240,.86);
  color: #26332b;
  box-shadow: 0 8px 22px rgba(0,0,0,.12);
}

.tr-map-link-card p {
  margin: .35rem 0 .65rem;
}

.tr-map-link-card a,
.tr-location-card a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.tr-moment-map iframe,
.tr-location-card iframe {
  display: none;
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 14px;
}

.tr-map-display-embed-compact iframe,
.tr-map-display-embed-side iframe,
.tr-map-display-embed-wide iframe,
.tr-location-card-embed-compact iframe,
.tr-location-card-embed-wide iframe {
  display: block;
}

.tr-map-display-embed-wide iframe,
.tr-location-card-embed-wide iframe {
  min-height: 420px;
}

/* Ridge wrapping ------------------------------------------------------------ */
.tr-story-moments.tr-story-moments-has-ridges {
  gap: 0;
}

.tr-story-moments.tr-ridge-full-bleed,
.tr-clean-single-template > .tr-story-moments.tr-story-moments-has-ridges {
  width: 100%;
  max-width: none;
}

.tr-ridge-slot {
  width: 100%;
  margin: 0;
}

.tr-story-moments:not(.tr-ridge-overlap-default-none) .tr-ridge-slot.tr-ridge-overlap-before-inherit + .tr-ridge-slot.tr-ridge-overlap-before-inherit,
.tr-ridge-slot.tr-ridge-overlap-before-overlap {
  margin-top: calc(var(--tr-ridge-stack-overlap, 18px) * -1);
}

.tr-ridge-slot.tr-ridge-overlap-before-none {
  margin-top: 0;
}

.tr-ridge-slot > .srs-section,
.tr-ridge-slot > .story-ridge-section,
.tr-ridge-slot > [class*="story-ridge"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.tr-ridge-slot .tr-story-moment {
  width: min(var(--tr-story-width, 1120px), calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

body.tr-use-companion-template.tr-has-entry-hero.tr-has-ridge-moments .tr-clean-single-template > .tr-story-moments.tr-ridge-overlap-hero.tr-story-moments-has-ridges {
  position: relative;
  z-index: 5;
  margin-top: calc(var(--tr-ridge-hero-overlap, clamp(32px, 6vw, 84px)) * -1);
}

/* Theme presets ------------------------------------------------------------- */
.tr-story-theme-field-notebook {
  --tr-page-bg: #f6f0df;
  --tr-surface: #fffaf0;
  --tr-heading: #2e2e2a;
  --tr-body: #2c3029;
  --tr-accent: #425d42;
}

.tr-story-theme-cinematic {
  --tr-page-bg: #111815;
  --tr-surface: #1d2922;
  --tr-heading: #f4df9e;
  --tr-body: #fffaf0;
  --tr-accent: #d3a83d;
}

.tr-story-theme-river {
  --tr-page-bg: #edf3ed;
  --tr-surface: #f7fbf2;
  --tr-heading: #003854;
  --tr-body: #20342d;
  --tr-accent: #00bf80;
}

.tr-story-theme-local-history {
  --tr-page-bg: #efe5cf;
  --tr-surface: #fff6df;
  --tr-heading: #4a2e1d;
  --tr-body: #33271f;
  --tr-accent: #9a5b23;
}

.tr-story-theme-daylight {
  --tr-page-bg: #fffdf7;
  --tr-surface: #fff;
  --tr-heading: #1f2a24;
  --tr-body: #28312b;
  --tr-accent: #356c75;
}

/* Lightbox ------------------------------------------------------------------ */
.tr-lightbox[hidden] {
  display: none;
}

.tr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.82);
}

.tr-lightbox-inner {
  position: relative;
  display: grid;
  gap: .7rem;
  max-width: min(1100px, 96vw);
  max-height: 92vh;
}

.tr-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0,0,0,.5);
}

.tr-lightbox-caption {
  color: #fffaf0;
  text-align: center;
  font-family: var(--tr-polaroid-font);
  font-size: 1.05rem;
}

.tr-lightbox button {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(255,250,240,.92);
  color: #111;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.tr-lightbox-close {
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
}

.tr-lightbox-prev,
.tr-lightbox-next {
  top: 50%;
  width: 44px;
  height: 56px;
  transform: translateY(-50%);
  font-size: 2rem;
}

.tr-lightbox-prev { left: -56px; }
.tr-lightbox-next { right: -56px; }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 860px) {
  .tr-card-feature,
  .tr-profile,
  .tr-latest,
  .tr-episode-feature,
  .tr-story-moment,
  .tr-moment-layout-left,
  .tr-moment-layout-right {
    grid-template-columns: 1fr;
  }

  .tr-card-feature .tr-card-media,
  .tr-moment-layout-left .tr-moment-media,
  .tr-moment-layout-right .tr-moment-media,
  .tr-moment-layout-left .tr-moment-text,
  .tr-moment-layout-right .tr-moment-text {
    order: initial;
  }

  .tr-overlap-light .tr-moment-photo + .tr-moment-photo,
  .tr-overlap-medium .tr-moment-photo + .tr-moment-photo,
  .tr-overlap-heavy .tr-moment-photo + .tr-moment-photo {
    margin-left: 0;
  }

  .tr-lightbox-prev { left: 8px; }
  .tr-lightbox-next { right: 8px; }
}


/* v0.9.15 section pages / filters */
.tr-filter-panel{
  display:grid;
  gap:.65rem;
  width:min(var(--tr-story-width,1120px),100%);
  margin:0 auto 1.25rem;
}
.tr-filter-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.45rem;
}
.tr-filter-row span{
  margin-right:.25rem;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--tr-green);
}
.tr-filter-row a{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:.25rem .75rem;
  border:1px solid rgba(66,93,66,.22);
  border-radius:999px;
  background:rgba(255,250,240,.78);
  color:var(--tr-deep);
  font-weight:750;
  text-decoration:none;
}
.tr-filter-row a:hover,
.tr-filter-row a.is-active{
  background:var(--tr-green);
  color:#fffaf0;
  border-color:var(--tr-green);
}
.tr-grid-section-story .tr-readmore::first-letter,
.tr-grid-section-local .tr-readmore::first-letter,
.tr-grid-section-video .tr-readmore::first-letter{
  text-transform:uppercase;
}




/* v0.9.17 typography correction
   Default: do not set font-family on headings/cards/heroes at all.
   Blocksy should own H1/H2/H3/body typography.
   These only activate when a manual font override is selected in Overall Story Theme + Hero. */
.tr-story-moments.tr-has-font-body,
.tr-story-moments.tr-has-font-body .tr-moment-text,
.tr-story-moments.tr-has-font-body .tr-moment-text p,
.tr-clean-single-template .tr-clean-entry-content {
}

.tr-story-moments.tr-has-font-heading .tr-moment-text h3,
.tr-clean-single-template .tr-has-font-heading h1,
.tr-card.tr-has-font-heading h3 {
}

.tr-entry-hero.tr-has-font-hero,
.tr-entry-hero.tr-has-font-hero h1,
.tr-entry-hero.tr-has-font-hero p,
.tr-entry-hero.tr-has-font-hero .tr-entry-hero-label {
}

/* Polaroid captions remain intentionally styled. */
.tr-moment-photo figcaption,
.tr-lightbox-caption {
  font-family: var(--tr-polaroid-font, "Bradley Hand", "Segoe Print", "Comic Sans MS", "Marker Felt", cursive);
}


/* v0.9.17 scoped manual font overrides */
.tr-story-moments.tr-has-font-body,
.tr-story-moments.tr-has-font-body .tr-moment-text,
.tr-story-moments.tr-has-font-body .tr-moment-text p {
  font-family: var(--tr-font-body);
}

.tr-story-moments.tr-has-font-heading .tr-moment-text h3 {
  font-family: var(--tr-font-heading);
}

.tr-entry-hero.tr-has-font-hero,
.tr-entry-hero.tr-has-font-hero h1,
.tr-entry-hero.tr-has-font-hero p,
.tr-entry-hero.tr-has-font-hero .tr-entry-hero-label {
  font-family: var(--tr-font-hero);
}


/* v0.9.18 colour controls
   Overall Heading colour applies to Two Ranges headings. Individual Story Moment heading
   overrides still win via --tr-moment-heading. */
.tr-clean-entry-header h1,
.tr-entry-hero h1,
.tr-card h3,
.tr-card h3 a,
.tr-profile h2,
.tr-latest h2,
.tr-episode-feature h2,
.tr-section-heading h2,
.tr-story-moments .tr-moment-text h3 {
  color: var(--tr-moment-heading, var(--tr-heading, currentColor));
}

.tr-card h3 a {
  text-decoration-color: currentColor;
}

.tr-story-moments .tr-moment-text p,
.tr-card p,
.tr-profile p {
  color: var(--tr-body, currentColor);
}

.tr-readmore,
.tr-secondary-link,
.tr-filter-row span {
  color: var(--tr-accent, currentColor);
}

.tr-button,
.tr-kicker {
  background-color: var(--tr-accent, var(--tr-gold));
}


/* v0.9.19 hero text position + ridge tuck helpers */
.tr-entry-hero.tr-hero-text-center .tr-entry-hero-content{
  justify-content:center;
}
.tr-entry-hero.tr-hero-text-upper .tr-entry-hero-content{
  justify-content:center;
  transform:translateY(clamp(-88px, -7vw, -36px));
}
.tr-entry-hero.tr-hero-text-top .tr-entry-hero-content{
  justify-content:flex-start;
  padding-top:clamp(3rem, 10vw, 8rem);
}
.tr-entry-hero .tr-entry-hero-content{
  transform:translateY(var(--tr-hero-text-y, 0));
}

/* Story Hero plugin wrappers can use the same helper class/variable. */
.tr-story-hero-wrap.tr-hero-text-upper{
  transform:translateY(var(--tr-hero-text-y, 0));
}


/* v0.9.20 map embeds + map card styling */
.tr-map-card{
  --tr-map-border: rgba(66,93,66,.22);
  --tr-map-bg: rgba(255,250,240,.88);
  --tr-map-copy-bg: rgba(255,250,240,.72);
  display:grid;
  gap:.85rem;
  padding:clamp(.8rem,1.5vw,1.15rem);
  border:1px solid var(--tr-map-border);
  border-radius:20px;
  background:var(--tr-map-copy-bg);
  box-shadow:0 12px 34px rgba(0,0,0,.10);
  color:#26332b;
}

.tr-map-card-copy,
.tr-map-link-card{
  display:grid;
  gap:.35rem;
}

.tr-map-kicker{
  width:max-content;
  max-width:100%;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--tr-accent,var(--tr-green));
}

.tr-map-card strong,
.tr-map-link-card strong{
  font-size:clamp(1rem,1.35vw,1.25rem);
  line-height:1.15;
}

.tr-map-card p,
.tr-map-link-card p{
  margin:0;
  line-height:1.45;
}

.tr-map-link-card{
  padding:1rem;
  border:1px solid rgba(66,93,66,.16);
  border-radius:16px;
  background:var(--tr-map-bg);
}

.tr-map-link-card a,
.tr-map-open-link{
  width:max-content;
  max-width:100%;
  margin-top:.35rem;
  color:var(--tr-accent,var(--tr-green));
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:.18em;
}

.tr-map-embed-shell{
  position:relative;
  overflow:hidden;
  min-height:230px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:16px;
  background:#d9e7d7;
}

.tr-map-embed-shell iframe{
  display:block !important;
  width:100%;
  height:100%;
  min-height:inherit;
  border:0;
  filter:saturate(.92) contrast(.96);
}

.tr-map-display-embed-compact .tr-map-embed-shell,
.tr-location-card-embed-compact .tr-map-embed-shell{
  min-height:240px;
  aspect-ratio:4 / 3;
}

.tr-map-display-embed-wide,
.tr-location-card-embed-wide{
  width:min(var(--tr-story-width,1120px),calc(100% - 32px));
  margin-left:auto;
  margin-right:auto;
}

.tr-map-display-embed-wide .tr-map-embed-shell,
.tr-location-card-embed-wide .tr-map-embed-shell{
  min-height:360px;
  aspect-ratio:16 / 7;
}

.tr-map-display-embed-side{
  grid-template-columns:minmax(180px,.75fr) minmax(280px,1.25fr);
  align-items:stretch;
}

.tr-map-display-embed-side .tr-map-card-copy{
  align-content:center;
  padding:.3rem;
}

.tr-map-display-embed-side .tr-map-open-link{
  grid-column:2;
}

/* override older recovery map rules that hid iframes */
.tr-map-display-embed-compact iframe,
.tr-map-display-embed-side iframe,
.tr-map-display-embed-wide iframe,
.tr-location-card-embed-compact iframe,
.tr-location-card-embed-wide iframe{
  display:block !important;
}

@media(max-width:760px){
  .tr-map-display-embed-side{
    grid-template-columns:1fr;
  }
  .tr-map-display-embed-side .tr-map-open-link{
    grid-column:auto;
  }
  .tr-map-display-embed-wide .tr-map-embed-shell,
  .tr-location-card-embed-wide .tr-map-embed-shell{
    aspect-ratio:4 / 3;
    min-height:260px;
  }
}



/* v0.9.23 video-first pages */
.tr-primary-video{
  width:min(1320px, calc(100% - 24px));
  margin:clamp(1rem, 3vw, 2rem) auto clamp(2rem, 5vw, 4rem);
}
.tr-primary-video-cinema{
  width:min(1500px, calc(100vw - 20px));
}
.tr-primary-video-standard{
  width:min(960px, calc(100% - 32px));
}
.tr-primary-video .tr-video{
  border-radius:clamp(16px, 2vw, 28px);
  box-shadow:0 22px 70px rgba(0,0,0,.24);
}
.tr-primary-video .tr-video iframe{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  min-height:auto;
  border:0;
}
.tr-primary-video-copy{
  width:min(860px, calc(100% - 24px));
  margin:clamp(1rem,2vw,1.5rem) auto 0;
  font-size:clamp(1rem,1.2vw,1.12rem);
  line-height:1.65;
}
.tr-primary-video-copy .tr-meta{
  margin:0 0 .35rem;
  opacity:.75;
  font-weight:700;
}
.tr-video-supporting-stills{
  width:min(var(--tr-story-width,1120px), calc(100% - 32px));
  margin:clamp(2rem,5vw,4rem) auto;
}
.tr-video-supporting-stills h2{
  margin:0 0 1rem;
}
.tr-grid-section-video .tr-card-media::after{
  content:"▶";
  position:absolute;
  left:50%;
  top:50%;
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:999px;
  background:rgba(0,0,0,.62);
  color:#fff;
  transform:translate(-50%,-50%);
  font-size:1.35rem;
  line-height:1;
  padding-left:.15rem;
}
@media(max-width:760px){
  .tr-primary-video,
  .tr-primary-video-cinema{
    width:100%;
    margin-top:0;
  }
  .tr-primary-video .tr-video{
    border-radius:0;
  }
}


/* v0.9.24 video/local layout polish */
body.single-tr_episode .tr-clean-entry-header,
body.single-tr_legend .tr-clean-entry-header{
  width:min(980px, calc(100% - 32px));
  margin-left:auto;
  margin-right:auto;
}

body.single-tr_episode .tr-story-moments{
  width:min(920px, calc(100% - 32px));
  gap:clamp(1.4rem, 3vw, 2.4rem);
  margin-top:clamp(1rem, 3vw, 2rem);
}

body.single-tr_episode .tr-story-moment{
  display:block;
  padding:0;
  margin:0 auto;
}

body.single-tr_episode .tr-moment-text{
  max-width:760px;
  margin:0 auto;
}

body.single-tr_episode .tr-moment-text h3{
  font-size:clamp(1.8rem, 3vw, 2.8rem);
}

.tr-local-profile{
  width:min(var(--tr-story-width,1120px), calc(100% - 32px));
  margin:clamp(1.5rem,4vw,3.5rem) auto clamp(2rem,5vw,4rem);
  display:grid;
  grid-template-columns:minmax(220px, .8fr) minmax(0, 1.2fr);
  gap:clamp(1.4rem,4vw,4rem);
  align-items:center;
  padding:clamp(1rem,2.5vw,2rem);
  border:1px solid rgba(66,93,66,.16);
  border-radius:28px;
  background:rgba(255,250,240,.54);
  box-shadow:0 18px 50px rgba(0,0,0,.08);
}

.tr-local-profile-image{
  margin:0;
}

.tr-local-profile-image img{
  display:block;
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:22px;
  box-shadow:0 16px 38px rgba(0,0,0,.16);
}

.tr-local-profile-copy h2{
  margin:.2rem 0 .8rem;
  font-size:clamp(2.2rem,5vw,5rem);
  line-height:.95;
}

.tr-local-profile-copy p{
  max-width:68ch;
  font-size:clamp(1rem,1.25vw,1.15rem);
  line-height:1.65;
}

.tr-local-profile blockquote{
  margin:clamp(1rem,2vw,1.5rem) 0 0;
  padding-left:1rem;
  border-left:4px solid var(--tr-accent,var(--tr-green));
  font-size:clamp(1.15rem,1.8vw,1.45rem);
  line-height:1.45;
}

.tr-local-related-video{
  width:min(1120px, calc(100% - 32px));
  margin:clamp(1rem,3vw,2rem) auto clamp(2rem,5vw,4rem);
}

.tr-local-related-video h2{
  margin:0 0 1rem;
}

.tr-local-related-video .tr-video{
  border-radius:clamp(16px, 2vw, 28px);
  box-shadow:0 18px 56px rgba(0,0,0,.18);
}

.tr-local-related-video iframe{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  border:0;
}

body.single-tr_legend .tr-story-moments{
  width:min(860px, calc(100% - 32px));
}

body.single-tr_legend .tr-story-moment{
  display:block;
  padding:0;
}

@media(max-width:780px){
  .tr-local-profile{
    grid-template-columns:1fr;
    padding:1rem;
  }
  .tr-local-profile-image img{
    aspect-ratio:16/11;
  }
}


/* v0.9.27 consolidated hero/content/ridge flow
   Rules are ordered around actual layout states:
   - heroes never add their own bottom gap
   - shortcode wrappers can be full-width only when they contain Story Moments
   - normal moments remain readable/site-width
   - negative hero overlap is allowed only when the FIRST rendered section is a ridge wrapper */
.tr-clean-single-template > .tr-story-hero-wrap,
.tr-clean-single-template > .tr-entry-hero,
.tr-clean-single-template .tr-entry-hero.tr-entry-hero-full {
  margin-bottom: 0 !important;
}

.tr-clean-single-template > .tr-story-hero-wrap + .tr-clean-entry-content,
.tr-clean-single-template > .tr-entry-hero + .tr-clean-entry-content {
  margin-top: 0;
}

/* Normal editor content after a hero gets breathing room. */
.tr-clean-single-template > .tr-story-hero-wrap + .tr-clean-entry-content:not(.tr-clean-entry-content-has-moments):not(:empty),
.tr-clean-single-template > .tr-entry-hero + .tr-clean-entry-content:not(.tr-clean-entry-content-has-moments):not(:empty) {
  padding-top: clamp(1.75rem, 4vw, 4rem);
}

/* The editor wrapper only goes full-width when it contains [two_ranges_story_moments]. */
.tr-clean-entry-content-has-moments {
  width: 100%;
  max-width: none;
  padding-top: 0 !important;
}

.tr-clean-entry-content-has-moments > .tr-story-moments {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

/* Negative hero tuck: first rendered section must be a ridge, and the setting must be on. */
.tr-clean-single-template > .tr-entry-hero + .tr-clean-entry-content-overlap-hero.tr-clean-entry-content-first-ridge,
.tr-clean-single-template > .tr-story-hero-wrap + .tr-clean-entry-content-overlap-hero.tr-clean-entry-content-first-ridge,
body.tr-use-companion-template.tr-has-entry-hero .tr-clean-single-template > .tr-story-moments.tr-story-moments-overlap-hero.tr-story-moments-first-ridge {
  margin-top: calc(var(--tr-ridge-hero-overlap, clamp(48px, 8vw, 120px)) * -1) !important;
  position: relative;
  z-index: 5;
}

/* Safety valve: if the first section is normal content, no hero tuck. */
.tr-clean-single-template > .tr-entry-hero + .tr-clean-entry-content-has-moments:not(.tr-clean-entry-content-first-ridge),
.tr-clean-single-template > .tr-story-hero-wrap + .tr-clean-entry-content-has-moments:not(.tr-clean-entry-content-first-ridge),
.tr-clean-single-template > .tr-entry-hero + .tr-clean-entry-content-overlap-hero:not(.tr-clean-entry-content-first-ridge),
.tr-clean-single-template > .tr-story-hero-wrap + .tr-clean-entry-content-overlap-hero:not(.tr-clean-entry-content-first-ridge),
body.tr-use-companion-template.tr-has-entry-hero .tr-clean-single-template > .tr-story-moments.tr-ridge-overlap-hero:not(.tr-story-moments-first-ridge) {
  margin-top: 0 !important;
}

/* Add normal spacing when a non-ridge story moment starts the page after a hero. */
.tr-clean-single-template > .tr-entry-hero + .tr-clean-entry-content-has-moments:not(.tr-clean-entry-content-first-ridge) > .tr-story-moments,
.tr-clean-single-template > .tr-story-hero-wrap + .tr-clean-entry-content-has-moments:not(.tr-clean-entry-content-first-ridge) > .tr-story-moments,
body.tr-use-companion-template.tr-has-entry-hero .tr-clean-single-template > .tr-story-moments:not(.tr-story-moments-first-ridge) {
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

/* Normal moments inside a full-width wrapper return to readable width. */
.tr-story-moments > .tr-story-moment {
  width: min(var(--tr-story-width, 1120px), calc(100% - 32px));
  max-width: var(--tr-story-width, 1120px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  padding-right: clamp(1rem, 2.5vw, 2rem);
}

/* Ridge slots remain full-width; the ridge plugin controls its own shape and internal content. */
.tr-story-moments > .tr-ridge-slot {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Card-like note backgrounds need a touch more inner space. */
.tr-story-moments > .tr-story-moment.tr-moment-bg-paper,
.tr-story-moments > .tr-story-moment.tr-moment-bg-field-note,
.tr-story-moments > .tr-story-moment.tr-moment-bg-tint,
.tr-story-moments > .tr-story-moment.tr-moment-bg-dark {
  padding: clamp(1.25rem, 3vw, 2.4rem);
}

.tr-story-moments > .tr-story-moment.tr-moment-layout-top .tr-moment-text,
.tr-story-moments > .tr-story-moment.tr-moment-layout-bottom .tr-moment-text,
.tr-story-moments > .tr-story-moment.tr-moment-layout-full .tr-moment-text {
  max-width: min(760px, 100%);
}

@media(max-width:760px){
  .tr-story-moments > .tr-story-moment{
    width: min(100%, calc(100% - 24px));
    padding-left: 1rem;
    padding-right: 1rem;
  }
}


/* v0.9.28 — Inline numbered story photos */
.tr-moment-text{
  overflow: visible;
}

.tr-inline-story-photo{
  --tr-inline-photo-bg: var(--tr-surface, #fffaf0);
  position: relative;
  margin: clamp(1.2rem, 3vw, 2rem) 0;
  max-width: min(100%, 760px);
}

.tr-inline-story-photo-frame{
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(66,93,66,.22);
  background: var(--tr-inline-photo-bg);
  box-shadow: 0 18px 42px rgba(17,27,20,.12);
}

.tr-inline-story-photo img{
  display: block;
  width: 100%;
  height: auto;
}

.tr-inline-story-photo a{
  color: inherit;
  text-decoration: none;
}

.tr-inline-photo-number{
  position: absolute;
  top: .65rem;
  left: .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.45rem;
  height: 2.45rem;
  padding: 0 .55rem;
  border-radius: 999px;
  background: #f0c63a;
  color: #1f2d23;
  border: 2px solid rgba(31,45,35,.85);
  font-size: .88rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
  box-shadow: 0 8px 18px rgba(17,27,20,.18);
}

.tr-inline-story-photo figcaption{
  margin: .65rem 0 0;
  color: var(--tr-body, #2c3029);
  font-size: .92rem;
  line-height: 1.45;
}

.tr-inline-story-photo figcaption span{
  display: block;
}

.tr-inline-photo-caption{
  font-weight: 750;
}

.tr-inline-photo-note,
.tr-inline-photo-credit{
  opacity: .76;
  font-size: .84rem;
  margin-top: .2rem;
}

.tr-inline-photo-placement-wide,
.tr-inline-photo-placement-wide.tr-inline-auto{
  max-width: min(100vw - 2rem, 1040px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.tr-inline-photo-placement-left,
.tr-inline-photo-placement-right{
  max-width: min(48%, 380px);
  margin-top: .35rem;
}

.tr-inline-photo-placement-left{
  float: left;
  margin-right: clamp(1rem, 3vw, 2rem);
}

.tr-inline-photo-placement-right{
  float: right;
  margin-left: clamp(1rem, 3vw, 2rem);
}

.tr-inline-photo-placement-before{
  margin-top: 0;
}

.tr-inline-story-photo + p{
  margin-top: clamp(1rem, 2vw, 1.4rem);
}

@media (max-width: 760px){
  .tr-inline-story-photo,
  .tr-inline-photo-placement-left,
  .tr-inline-photo-placement-right,
  .tr-inline-photo-placement-wide,
  .tr-inline-photo-placement-wide.tr-inline-auto{
    float: none;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    transform: none;
  }

  .tr-inline-photo-number{
    min-width: 2.15rem;
    height: 2.15rem;
    font-size: .78rem;
  }
}


/* v0.9.29 — Inline short video cards and video lightbox */
.tr-inline-media-type-video .tr-inline-story-photo-frame{
  background:#1f2d23;
}

.tr-inline-video-trigger{
  display:block;
  position:relative;
  width:100%;
  padding:0;
  margin:0;
  border:0;
  background:#1f2d23;
  color:#fffaf0;
  cursor:pointer;
  text-align:left;
}

.tr-inline-video-trigger img{
  display:block;
  width:100%;
  height:auto;
  opacity:.88;
}

.tr-inline-video-trigger:hover img,
.tr-inline-video-trigger:focus-visible img{
  opacity:.72;
}

.tr-inline-video-placeholder{
  display:grid;
  place-items:center;
  min-height:260px;
  padding:2rem;
  color:#fffaf0;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:
    radial-gradient(circle at 20% 20%, rgba(240,198,58,.18), transparent 30%),
    linear-gradient(135deg, #1f2d23, #425d42);
}

.tr-inline-video-play{
  position:absolute;
  inset:50% auto auto 50%;
  width:4.25rem;
  height:4.25rem;
  transform:translate(-50%,-50%);
  border-radius:999px;
  background:#f0c63a;
  border:2px solid rgba(31,45,35,.85);
  box-shadow:0 14px 32px rgba(17,27,20,.28);
}

.tr-inline-video-play::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-38%,-50%);
  width:0;
  height:0;
  border-top:.72rem solid transparent;
  border-bottom:.72rem solid transparent;
  border-left:1.05rem solid #1f2d23;
}

.tr-video-lightbox{
  position:fixed;
  z-index:999999;
  inset:0;
  display:grid;
  place-items:center;
  padding:clamp(1rem,3vw,2rem);
  background:rgba(17,27,20,.88);
}

.tr-video-lightbox[hidden]{
  display:none;
}

.tr-video-lightbox-inner{
  position:relative;
  width:min(100%, 1080px);
  color:#fffaf0;
}

.tr-video-lightbox-stage{
  background:#000;
  box-shadow:0 20px 80px rgba(0,0,0,.45);
}

.tr-video-lightbox-stage video,
.tr-video-lightbox-stage iframe{
  display:block;
  width:100%;
  aspect-ratio:16 / 9;
  max-height:78vh;
  border:0;
  object-fit:contain;
}

.tr-video-lightbox-title{
  margin-top:.75rem;
  font-size:.92rem;
  opacity:.86;
}

.tr-video-lightbox-close{
  position:absolute;
  right:0;
  top:-3rem;
  width:2.35rem;
  height:2.35rem;
  border:1px solid rgba(255,250,240,.4);
  border-radius:999px;
  background:rgba(255,250,240,.12);
  color:#fffaf0;
  font-size:1.7rem;
  line-height:1;
  cursor:pointer;
}

@media(max-width:700px){
  .tr-inline-video-placeholder{
    min-height:190px;
  }

  .tr-inline-video-play{
    width:3.35rem;
    height:3.35rem;
  }
}


/* v0.9.32 — Sweet Adeline polish, line/content layout, media labels */
.tr-clean-entry-content{
  color: var(--tr-body, inherit);
  padding-top: clamp(1rem, 2.5vw, 2rem);
  padding-bottom: clamp(.5rem, 1.5vw, 1rem);
}

.tr-clean-entry-content > p,
.tr-clean-entry-content > ul,
.tr-clean-entry-content > ol,
.tr-clean-entry-content > blockquote{
  max-width: min(68ch, 100%);
  margin-left: auto;
  margin-right: auto;
}

.tr-entry-hero h1{
  color: var(--tr-hero-title, inherit);
}

.tr-entry-hero p{
  color: var(--tr-hero-body, rgba(255,250,240,.9));
}

/* Top/bottom story sections should read as centred editorial sections, not a two-column leftover. */
.tr-moment-layout-top .tr-moment-text,
.tr-moment-layout-bottom .tr-moment-text,
.tr-moment-layout-full .tr-moment-text{
  width: min(68ch, 100%);
  margin-left: auto;
  margin-right: auto;
}

.tr-moment-layout-top .tr-moment-media,
.tr-moment-layout-bottom .tr-moment-media,
.tr-moment-layout-full .tr-moment-media{
  width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.tr-moment-text p{
  margin-left: auto;
  margin-right: auto;
}

/* Ridge-wrapped story moments default back to readable light copy, but can be overridden in the story colour controls. */
.tr-ridge-slot .tr-moment-text,
.tr-ridge-slot .tr-moment-text p,
.tr-ridge-slot .tr-inline-story-photo figcaption{
  color: var(--tr-ridge-body, #fffaf0) !important;
}

.tr-ridge-slot .tr-moment-text h3{
  color: var(--tr-ridge-heading, #fffaf0) !important;
}

.tr-ridge-slot .tr-inline-photo-caption{
  color: var(--tr-ridge-body, #fffaf0) !important;
}

/* Inline evidence card treatment */
.tr-inline-story-photo{
  margin-left: auto;
  margin-right: auto;
}

.tr-inline-story-photo-frame{
  border-radius: 6px;
  border: 1px solid rgba(31,45,35,.2);
  box-shadow: 0 18px 45px rgba(17,27,20,.15);
  background: #111b14;
}

.tr-inline-story-photo-frame img{
  filter: saturate(.95) contrast(1.03);
}

.tr-inline-photo-number{
  top: .65rem;
  left: .65rem;
  min-width: auto;
  width: auto;
  height: auto;
  padding: .34rem .48rem;
  border-radius: 3px;
  background: rgba(17,27,20,.86);
  border: 1px solid rgba(255,250,240,.55);
  color: #fffaf0;
  font-family: "Courier New", Courier, monospace;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.tr-inline-media-type-image .tr-inline-photo-number::before{
  content: "IMG ";
}

.tr-inline-media-type-video .tr-inline-photo-number::before{
  content: "VID ";
}

.tr-inline-story-photo figcaption{
  max-width: 68ch;
  margin: .7rem auto 0;
  padding-left: .75rem;
  border-left: 3px solid var(--tr-accent, #425d42);
  font-family: "Courier New", Courier, monospace;
  font-size: .82rem;
}

.tr-inline-photo-caption{
  font-weight: 800;
}

.tr-inline-photo-placement-wide,
.tr-inline-photo-placement-wide.tr-inline-auto{
  width: min(920px, calc(100vw - 32px));
  max-width: min(920px, calc(100vw - 32px));
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
}

.tr-inline-video-play{
  background: rgba(17,27,20,.86);
  border-color: rgba(255,250,240,.75);
}

.tr-inline-video-play::before{
  border-left-color: #fffaf0;
}

@media (max-width: 760px){
  .tr-inline-photo-placement-wide,
  .tr-inline-photo-placement-wide.tr-inline-auto{
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    transform: none;
  }

  .tr-inline-story-photo figcaption{
    margin-left: 0;
    margin-right: 0;
  }
}


/* v0.9.34 — alignment fix for text-only and inline-media story moments */
.tr-story-moment.tr-moment-no-media,
.tr-story-moment.tr-moment-single-column{
  grid-template-columns: 1fr !important;
}

.tr-story-moment.tr-moment-no-media .tr-moment-text,
.tr-story-moment.tr-moment-single-column .tr-moment-text{
  width: min(68ch, 100%);
  margin-left: auto !important;
  margin-right: auto !important;
  order: 1 !important;
}

.tr-story-moment.tr-moment-no-media .tr-moment-text h3,
.tr-story-moment.tr-moment-single-column .tr-moment-text h3{
  max-width: 100%;
}

.tr-story-moment.tr-moment-no-media .tr-moment-text p,
.tr-story-moment.tr-moment-single-column .tr-moment-text p{
  max-width: 100%;
}

/* Keep text that appears before/after an inline media marker aligned to the same readable column. */
.tr-moment-text > p{
  width: min(68ch, 100%);
}

.tr-moment-text > .tr-inline-story-photo + p{
  width: min(68ch, 100%);
  margin-left: auto;
  margin-right: auto;
}

.tr-inline-story-photo.tr-inline-marker,
.tr-inline-story-photo.tr-inline-auto{
  clear: both;
}

/* Slightly reduce the huge visual jump from copy to inline video cards. */
.tr-inline-media-type-video.tr-inline-photo-placement-wide{
  margin-top: clamp(1.1rem, 2.5vw, 1.7rem);
  margin-bottom: clamp(1rem, 2vw, 1.4rem);
}


/* v0.9.37 — ridge heading override fix
   Per-section Heading colour override should beat the page-level ridge heading colour.
   Fallback order:
   1. Story Moment heading override (--tr-moment-heading)
   2. Story-level Ridge heading colour (--tr-ridge-heading)
   3. Light default for ridge readability
*/
.tr-ridge-slot .tr-moment-text h1,
.tr-ridge-slot .tr-moment-text h2,
.tr-ridge-slot .tr-moment-text h3,
.tr-ridge-slot .tr-moment-text h4{
  color: var(--tr-moment-heading, var(--tr-ridge-heading, #fffaf0)) !important;
}

.tr-ridge-slot .tr-story-moment[style*="--tr-moment-heading"] .tr-moment-text h1,
.tr-ridge-slot .tr-story-moment[style*="--tr-moment-heading"] .tr-moment-text h2,
.tr-ridge-slot .tr-story-moment[style*="--tr-moment-heading"] .tr-moment-text h3,
.tr-ridge-slot .tr-story-moment[style*="--tr-moment-heading"] .tr-moment-text h4{
  color: var(--tr-moment-heading) !important;
}


/* v0.9.38 — inline image lightbox */
.tr-inline-media-type-image .tr-inline-story-photo-frame a{
  cursor: zoom-in;
}

.tr-lightbox{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(17,27,20,.88);
}

.tr-lightbox[hidden]{
  display: none;
}

.tr-lightbox-inner{
  position: relative;
  width: min(100%, 1180px);
  display: grid;
  place-items: center;
  color: #fffaf0;
}

.tr-lightbox-inner img{
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,.45);
  background: #111b14;
}

.tr-lightbox-caption{
  margin-top: .75rem;
  max-width: min(72ch, 100%);
  color: rgba(255,250,240,.88);
  font-family: "Courier New", Courier, monospace;
  font-size: .86rem;
  text-align: center;
}

.tr-lightbox-close,
.tr-lightbox-prev,
.tr-lightbox-next{
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,250,240,.45);
  background: rgba(17,27,20,.76);
  color: #fffaf0;
  cursor: pointer;
}

.tr-lightbox-close{
  top: -3rem;
  right: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.tr-lightbox-prev,
.tr-lightbox-next{
  top: 50%;
  width: 2.75rem;
  height: 3.75rem;
  transform: translateY(-50%);
  border-radius: 8px;
  font-size: 2.5rem;
  line-height: 1;
}

.tr-lightbox-prev{
  left: 0;
}

.tr-lightbox-next{
  right: 0;
}

@media(max-width:760px){
  .tr-lightbox{
    padding: 1rem;
  }

  .tr-lightbox-close{
    top: .5rem;
    right: .5rem;
  }

  .tr-lightbox-prev,
  .tr-lightbox-next{
    width: 2.25rem;
    height: 3rem;
    font-size: 2rem;
  }
}


/* v0.9.40 — effective ridge overlap / clearance
   The ridge SVG/top edge can extend above the section itself. "No overlap" now
   reserves clearance so the ridge shape does not cover the previous normal section.
   Stack/tuck is only applied to consecutive ridge sections, unless a section
   explicitly chooses "Overlap previous".
*/
.tr-story-moments .tr-ridge-slot.tr-ridge-effective-no-overlap{
  margin-top: var(--tr-ridge-clearance, clamp(72px, 9vw, 140px)) !important;
  position: relative;
  z-index: 1;
}

.tr-story-moments .tr-ridge-slot.tr-ridge-effective-overlap{
  margin-top: calc(var(--tr-ridge-stack-overlap, 18px) * -1) !important;
  position: relative;
  z-index: 2;
}

/* When a ridge follows normal cream content and is not explicitly overlapped,
   prioritise protecting the previous copy over decorative tucking. */
.tr-story-moments > .tr-story-moment + .tr-ridge-slot.tr-ridge-effective-no-overlap,
.tr-story-moments .tr-ridge-slot.tr-ridge-after-normal.tr-ridge-effective-no-overlap{
  margin-top: var(--tr-ridge-clearance, clamp(72px, 9vw, 140px)) !important;
}

/* If the site-level default is No overlap, inherited ridge sections should never tuck. */
.tr-story-moments.tr-ridge-overlap-default-none .tr-ridge-slot.tr-ridge-overlap-before-inherit{
  margin-top: var(--tr-ridge-clearance, clamp(72px, 9vw, 140px)) !important;
}

/* Give normal sections before a non-overlapping ridge a little safe bottom room too. */
.tr-story-moments > .tr-story-moment:has(+ .tr-ridge-slot.tr-ridge-effective-no-overlap){
  padding-bottom: clamp(1.5rem, 4vw, 3.25rem);
}

/* v0.9.42 — full-width media + plain image rendering ----------------------- */
.tr-moment-layout-full .tr-moment-media,
.tr-moment-layout-full .tr-moment-photos {
  width: 100%;
  max-width: 100%;
}

.tr-moment-layout-full .tr-moment-photos {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.8rem);
}

.tr-moment-layout-full .tr-moment-photo,
.tr-moment-style-plain .tr-moment-photo {
  --tr-photo-width: 100%;
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.tr-moment-layout-full .tr-moment-photo a,
.tr-moment-style-plain .tr-moment-photo a {
  display: block;
  width: 100%;
}

.tr-moment-layout-full .tr-moment-photo img,
.tr-moment-style-plain .tr-moment-photo img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0,0,0,.12);
}

.tr-moment-layout-full .tr-moment-photo figcaption,
.tr-moment-style-plain .tr-moment-photo figcaption {
  width: min(760px, 100%);
  margin: .65rem auto 0;
  padding: .3rem .2rem 0;
  color: inherit;
  font-size: clamp(.9rem, 1vw, 1rem);
  line-height: 1.35;
  text-align: center;
}

.tr-moment-layout-full.tr-moment-style-polaroid-grid .tr-moment-photos,
.tr-moment-layout-full.tr-moment-style-polaroid-spread-row .tr-moment-photos,
.tr-moment-layout-full.tr-moment-style-polaroid-row .tr-moment-photos {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .tr-moment-layout-full.tr-photo-size-small .tr-moment-photos,
  .tr-moment-layout-full.tr-photo-size-medium .tr-moment-photos {
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  }
}

/* v0.9.45 — featured hero focus point + text readability glow */
.tr-entry-hero-media img {
  object-position: var(--tr-hero-focus-x, 50%) var(--tr-hero-focus-y, 50%);
}

.tr-entry-hero-content {
  position: relative;
}

.tr-entry-hero-content > * {
  position: relative;
  z-index: 1;
}

.tr-entry-hero-content::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: calc(clamp(1rem, 4vw, 4rem) * -1);
  bottom: clamp(1rem, 4vw, 3rem);
  width: min(860px, 96%);
  height: clamp(230px, 36vw, 440px);
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 28% 66%, rgba(0, 0, 0, .74), rgba(0, 0, 0, .38) 38%, rgba(0, 0, 0, .14) 58%, transparent 76%);
  filter: blur(18px);
  opacity: var(--tr-hero-text-glow-opacity, .52);
}

.tr-entry-hero h1,
.tr-entry-hero p,
.tr-entry-hero-label {
  text-shadow:
    0 2px 14px rgba(0, 0, 0, .42),
    0 12px 34px rgba(0, 0, 0, .34);
}

.tr-entry-hero.tr-hero-glow-none .tr-entry-hero-content::before {
  display: none;
}

.tr-entry-hero.tr-hero-glow-none h1,
.tr-entry-hero.tr-hero-glow-none p,
.tr-entry-hero.tr-hero-glow-none .tr-entry-hero-label {
  text-shadow: none;
}

.tr-entry-hero.tr-hero-glow-subtle {
  --tr-hero-text-glow-opacity: .44;
}

.tr-entry-hero.tr-hero-glow-medium {
  --tr-hero-text-glow-opacity: .64;
}

.tr-entry-hero.tr-hero-glow-strong {
  --tr-hero-text-glow-opacity: .82;
}

@media (max-width: 700px) {
  .tr-entry-hero-content::before {
    left: calc(clamp(.75rem, 5vw, 2rem) * -1);
    right: calc(clamp(.75rem, 5vw, 2rem) * -1);
    width: auto;
    height: clamp(210px, 62vw, 360px);
    bottom: clamp(.75rem, 5vw, 2rem);
  }
}

/* v0.9.48 — richer Locals profile layout */
.tr-local-profile-v2{
  grid-template-columns:minmax(220px,.55fr) minmax(0,1.05fr) minmax(220px,.42fr);
  align-items:stretch;
  background:linear-gradient(135deg, rgba(255,250,240,.82), rgba(244,236,204,.52));
}

.tr-local-profile-v2 .tr-local-profile-image img{
  height:100%;
  min-height:320px;
}

.tr-local-project-name{
  margin:-.35rem 0 1rem !important;
  font-size:clamp(1.05rem,1.6vw,1.3rem) !important;
  font-weight:800;
  letter-spacing:.02em;
  color:var(--tr-green,#425d42);
}

.tr-local-project-name a{
  color:inherit;
  text-decoration-color:rgba(66,93,66,.35);
  text-underline-offset:.18em;
}

.tr-local-summary p:first-child{
  margin-top:0;
}

.tr-local-services{
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin:1.1rem 0;
}

.tr-local-services span{
  display:inline-flex;
  align-items:center;
  min-height:2rem;
  padding:.35rem .72rem;
  border:1px solid rgba(66,93,66,.18);
  border-radius:999px;
  background:rgba(255,255,255,.58);
  color:var(--tr-green,#425d42);
  font-size:.85rem;
  font-weight:800;
  letter-spacing:.03em;
}

.tr-local-connection,
.tr-local-cta{
  margin:1.1rem 0 0;
  padding:1rem;
  border:1px solid rgba(66,93,66,.14);
  border-radius:18px;
  background:rgba(255,255,255,.46);
}

.tr-local-connection > strong{
  display:block;
  margin-bottom:.35rem;
  color:var(--tr-green,#425d42);
  font-size:.82rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tr-local-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  align-items:center;
  margin-top:.75rem;
}

.tr-local-profile-facts{
  align-self:stretch;
  padding:1rem;
  border:1px solid rgba(66,93,66,.16);
  border-radius:22px;
  background:rgba(39,59,39,.08);
}

.tr-local-profile-facts h3{
  margin:0 0 .85rem;
  color:var(--tr-green,#425d42);
  font-size:1rem;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tr-local-profile-facts dl,
.tr-local-profile-facts dt,
.tr-local-profile-facts dd{
  margin:0;
}

.tr-local-profile-facts dl{
  display:grid;
  gap:.75rem;
}

.tr-local-profile-facts div{
  padding-bottom:.75rem;
  border-bottom:1px solid rgba(66,93,66,.14);
}

.tr-local-profile-facts div:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.tr-local-profile-facts dt{
  margin-bottom:.14rem;
  color:rgba(46,46,42,.62);
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.tr-local-profile-facts dd{
  color:var(--tr-body,#2e2e2a);
  font-size:.95rem;
  line-height:1.35;
}

.tr-local-profile-facts a{
  color:var(--tr-green,#425d42);
  font-weight:800;
}

@media(max-width:980px){
  .tr-local-profile-v2{
    grid-template-columns:minmax(180px,.5fr) minmax(0,1fr);
  }
  .tr-local-profile-facts{
    grid-column:1 / -1;
  }
}

@media(max-width:780px){
  .tr-local-profile-v2{
    grid-template-columns:1fr;
    gap:1rem;
  }
  .tr-local-profile-v2 .tr-local-profile-image img{
    min-height:0;
    height:auto;
  }
  .tr-local-services{
    gap:.35rem;
  }
  .tr-local-services span{
    font-size:.78rem;
    min-height:1.8rem;
    padding:.3rem .58rem;
  }
  .tr-local-actions{
    gap:.5rem;
  }
}

/* v0.9.49 — Locals frontend UI pass */
.tr-local-profile-v2{
  position:relative;
  overflow:hidden;
  gap:clamp(1rem,2vw,1.4rem);
  border:1px solid rgba(66,93,66,.18);
  box-shadow:0 20px 60px rgba(21,35,25,.1);
}
.tr-local-profile-v2::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at top left,rgba(240,198,58,.16),transparent 34rem),
    linear-gradient(110deg,rgba(66,93,66,.07),transparent 44%);
}
.tr-local-profile-v2 > *{
  position:relative;
  z-index:1;
}
.tr-local-profile-v2 .tr-local-profile-image{
  margin:0;
  padding:.45rem;
  border-radius:24px;
  background:#fffaf0;
  box-shadow:0 12px 34px rgba(31,45,35,.1);
}
.tr-local-profile-v2 .tr-local-profile-image img{
  border-radius:18px;
  object-fit:cover;
  aspect-ratio:4/5;
}
.tr-local-profile-v2.tr-local-profile-no-image{
  grid-template-columns:minmax(0,1fr) minmax(220px,.38fr);
}
.tr-local-profile-v2.tr-local-profile-no-image .tr-local-profile-copy{
  max-width:860px;
}
.tr-local-profile-section h3,
.tr-local-cta h3{
  margin:0 0 .4rem !important;
  color:var(--tr-green,#425d42);
  font-size:.86rem !important;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.tr-local-profile-v2 .tr-kicker{
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.35rem;
  margin:0 0 .65rem !important;
  padding:.32rem .7rem;
  border:1px solid rgba(66,93,66,.18);
  border-radius:999px;
  background:rgba(255,250,240,.75);
  color:var(--tr-green,#425d42);
  font-weight:900;
}
.tr-local-profile-v2 .tr-local-profile-copy h2{
  margin-top:0 !important;
  line-height:1;
}
.tr-local-profile-v2 .tr-local-summary{
  font-size:clamp(1rem,1.2vw,1.09rem);
  line-height:1.62;
}
.tr-local-services span{
  box-shadow:0 4px 14px rgba(31,45,35,.05);
}
.tr-local-connection,
.tr-local-cta{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.58);
}
.tr-local-profile-sponsor{
  border-color:rgba(240,198,58,.45);
}
.tr-local-profile-sponsor .tr-local-profile-facts,
.tr-local-profile-sponsor .tr-local-services span{
  background:rgba(240,198,58,.16);
}
.tr-local-profile-compact{
  grid-template-columns:minmax(180px,.38fr) minmax(0,1fr);
}
.tr-local-profile-compact .tr-local-profile-facts{
  grid-column:1 / -1;
}
.tr-local-profile-compact .tr-local-profile-image img{
  min-height:0;
  aspect-ratio:1/1;
}
.tr-local-actions .tr-secondary-link{
  min-height:2.55rem;
  padding:.55rem .85rem;
  border-radius:999px;
  background:rgba(255,250,240,.85);
  border:1px solid rgba(66,93,66,.2);
  color:var(--tr-green,#425d42);
  text-decoration:none;
  font-weight:900;
}
.tr-local-actions .tr-secondary-link:hover,
.tr-local-actions .tr-secondary-link:focus{
  background:#fffaf0;
  border-color:rgba(66,93,66,.42);
}
@media(max-width:980px){
  .tr-local-profile-v2.tr-local-profile-no-image,
  .tr-local-profile-compact{
    grid-template-columns:1fr;
  }
}
@media(max-width:780px){
  .tr-local-profile-v2{
    padding:1rem;
    border-radius:22px;
  }
  .tr-local-profile-v2 .tr-local-profile-image{
    padding:.35rem;
    border-radius:18px;
  }
  .tr-local-profile-v2 .tr-local-profile-image img{
    aspect-ratio:16/10;
    border-radius:14px;
  }
  .tr-local-profile-facts{
    padding:.85rem;
    border-radius:16px;
  }
  .tr-local-actions .tr-button,
  .tr-local-actions .tr-secondary-link{
    width:100%;
    justify-content:center;
  }
}

/* v0.9.51 — Local profiles: richer people/business pages */
.tr-local-profile-v2 .tr-kicker{
  text-transform:uppercase;
  max-width:max-content;
}

.tr-local-logo-mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:180px;
  margin:0 0 .85rem;
  padding:.45rem .65rem;
  border-radius:16px;
  background:rgba(255,250,240,.75);
  border:1px solid rgba(66,93,66,.13);
  box-shadow:0 8px 22px rgba(31,45,35,.06);
}
.tr-local-logo-mark img{
  display:block;
  max-width:150px;
  max-height:80px;
  width:auto;
  height:auto;
  object-fit:contain;
}

.tr-local-profile-v2 .tr-local-summary ul,
.tr-local-profile-v2 .tr-local-summary ol,
.tr-local-connection ul,
.tr-local-connection ol,
.tr-local-cta ul,
.tr-local-cta ol{
  margin:.65rem 0 1rem 1.2rem;
  padding:0;
}
.tr-local-profile-v2 .tr-local-summary li,
.tr-local-connection li,
.tr-local-cta li{
  margin:.25rem 0;
}
.tr-local-profile-v2 .tr-local-summary a,
.tr-local-connection a,
.tr-local-cta a{
  color:var(--tr-green,#425d42);
  font-weight:800;
  text-underline-offset:.18em;
}

.tr-local-facts-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 0 1rem;
  padding:.75rem;
  min-height:88px;
  border-radius:16px;
  background:rgba(255,250,240,.75);
  border:1px solid rgba(66,93,66,.12);
}
.tr-local-facts-logo img{
  max-width:100%;
  max-height:92px;
  width:auto;
  height:auto;
  object-fit:contain;
}

.tr-local-facts-links{
  display:grid;
  gap:.45rem;
  margin-top:1rem;
}
.tr-social-link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  min-height:2.35rem;
  padding:.45rem .65rem;
  border:1px solid rgba(66,93,66,.2);
  border-radius:999px;
  background:rgba(255,250,240,.88);
  color:var(--tr-green,#425d42)!important;
  text-decoration:none;
  font-weight:900;
  line-height:1.1;
}
.tr-social-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.45rem;
  height:1.45rem;
  border-radius:999px;
  background:var(--tr-green,#425d42);
  color:#fffaf0;
  font-size:.75rem;
  font-weight:900;
  letter-spacing:-.04em;
  flex:0 0 auto;
}
.tr-social-youtube .tr-social-icon{ background:#7a2d2d; }
.tr-social-instagram .tr-social-icon{ background:#8b5a73; }
.tr-social-facebook .tr-social-icon{ background:#36536f; }
.tr-social-linkedin .tr-social-icon{ background:#3a5d73; }
.tr-social-tiktok .tr-social-icon{ background:#27343a; }
.tr-social-email .tr-social-icon{ background:#b9782d; }
.tr-social-link:hover,
.tr-social-link:focus{
  background:#fffaf0;
  border-color:rgba(66,93,66,.46);
  transform:translateY(-1px);
}

.tr-local-profile-v2 .tr-local-profile-image img{
  object-position:top center;
}
.tr-card-local .tr-card-media img{
  object-position:top center;
}

@media(max-width:780px){
  .tr-local-logo-mark{
    max-width:140px;
  }
  .tr-local-facts-links{
    grid-template-columns:1fr;
  }
}

/* v0.9.53 — Local profile image/layout options + About-style stats */
.tr-local-profile-v2{
  grid-template-columns:minmax(0,1fr) minmax(230px,.38fr);
  align-items:start;
}
.tr-local-profile-v2.tr-local-profile-image-side{
  grid-template-columns:minmax(190px,.42fr) minmax(0,1fr) minmax(230px,.38fr);
}
.tr-local-profile-v2.tr-local-profile-image-full{
  grid-template-columns:minmax(0,1fr) minmax(230px,.38fr);
}
.tr-local-profile-v2.tr-local-profile-image-full .tr-local-profile-image-full{
  grid-column:1 / -1;
}
.tr-local-profile-v2.tr-local-profile-no-image,
.tr-local-profile-v2.tr-local-profile-image-hidden{
  grid-template-columns:minmax(0,1fr) minmax(230px,.38fr);
}
.tr-local-profile-v2 .tr-local-profile-heading{
  position:relative;
  margin-bottom:clamp(.7rem,1.7vw,1.15rem);
}
.tr-local-profile-v2 .tr-local-profile-heading .tr-kicker{
  margin-bottom:.45rem!important;
}
.tr-local-profile-v2 .tr-local-profile-heading h2{
  margin-bottom:.2rem!important;
}
.tr-local-profile-v2 .tr-local-profile-image-inline{
  float:right;
  width:min(240px,34%);
  margin:.15rem 0 1rem 1.35rem;
  padding:0;
  shape-margin:1rem;
}
.tr-local-profile-v2 .tr-local-profile-image-side{
  max-width:260px;
  align-self:start;
}
.tr-local-profile-v2 .tr-local-profile-image-full{
  max-width:min(780px,100%);
  justify-self:center;
  margin-bottom:.35rem;
}
.tr-local-profile-v2 .tr-local-profile-image{
  background:transparent;
  box-shadow:none;
  border:0;
  overflow:visible;
}
.tr-local-profile-v2 .tr-local-profile-image img{
  display:block;
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center top;
  border-radius:0;
}
.tr-local-profile-v2.tr-local-profile-frame-soft .tr-local-profile-image,
.tr-local-profile-v2.tr-local-profile-frame-bordered .tr-local-profile-image{
  padding:.45rem;
  border-radius:22px;
  background:rgba(255,250,240,.82);
  box-shadow:0 12px 34px rgba(31,45,35,.10);
}
.tr-local-profile-v2.tr-local-profile-frame-bordered .tr-local-profile-image{
  border:1px solid rgba(66,93,66,.2);
}
.tr-local-profile-v2.tr-local-profile-frame-soft .tr-local-profile-image img,
.tr-local-profile-v2.tr-local-profile-frame-bordered .tr-local-profile-image img{
  border-radius:16px;
}
.tr-local-logo-mark-top{
  margin:.2rem 0 .8rem;
}
.tr-local-profile-v2 .tr-local-project-name{
  max-width:44rem;
}
.tr-local-profile-facts{
  background:linear-gradient(145deg,rgba(255,246,204,.74),rgba(255,250,240,.58));
  border-color:rgba(240,198,58,.38);
}
.tr-local-profile-facts h3{
  font-family:var(--tr-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  color:var(--tr-green,#425d42);
}
.tr-local-profile-facts .tr-local-stat-list{
  display:grid;
  gap:.75rem;
}
.tr-local-profile-facts .tr-local-stat-card{
  padding:.78rem .85rem;
  border:1px solid rgba(66,93,66,.15);
  border-radius:18px;
  background:rgba(255,250,240,.58);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.62);
}
.tr-local-profile-facts .tr-local-stat-card:last-child{
  border-bottom:1px solid rgba(66,93,66,.15);
}
.tr-local-profile-facts .tr-local-stat-card dt{
  color:var(--tr-gold,#f0c63a);
  font-family:var(--tr-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size:.74rem;
  letter-spacing:.12em;
}
.tr-local-profile-facts .tr-local-stat-card dd{
  margin-top:.22rem;
  color:var(--tr-green,#425d42);
  font-size:1rem;
  font-weight:900;
}
.tr-local-facts-logo{
  background:rgba(255,250,240,.72);
  border-color:rgba(240,198,58,.28);
}
@media(max-width:1100px){
  .tr-local-profile-v2,
  .tr-local-profile-v2.tr-local-profile-image-side,
  .tr-local-profile-v2.tr-local-profile-image-full,
  .tr-local-profile-v2.tr-local-profile-no-image,
  .tr-local-profile-v2.tr-local-profile-image-hidden{
    grid-template-columns:minmax(0,1fr);
  }
  .tr-local-profile-facts{
    grid-column:auto;
  }
}
@media(max-width:780px){
  .tr-local-profile-v2 .tr-local-profile-image-inline{
    float:none;
    width:min(320px,100%);
    margin:.25rem auto 1rem;
  }
  .tr-local-profile-v2 .tr-local-profile-image-side,
  .tr-local-profile-v2 .tr-local-profile-image-full{
    max-width:min(360px,100%);
    justify-self:center;
  }
  .tr-local-profile-v2.tr-local-profile-frame-soft .tr-local-profile-image,
  .tr-local-profile-v2.tr-local-profile-frame-bordered .tr-local-profile-image{
    padding:.32rem;
    border-radius:18px;
  }
  .tr-local-profile-v2.tr-local-profile-frame-soft .tr-local-profile-image img,
  .tr-local-profile-v2.tr-local-profile-frame-bordered .tr-local-profile-image img{
    border-radius:13px;
  }
}


/* v0.9.54 — Local transparent-image wrap fixes */
.tr-local-profile-v2.tr-local-profile-frame-none .tr-local-profile-image,
.tr-local-profile-v2.tr-local-profile-frame-none .tr-local-profile-image-inline,
.tr-local-profile-v2.tr-local-profile-frame-none .tr-local-profile-image-side,
.tr-local-profile-v2.tr-local-profile-frame-none .tr-local-profile-image-full{
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:0 !important;
}
.tr-local-profile-v2.tr-local-profile-frame-none .tr-local-profile-image img,
.tr-local-profile-v2.tr-local-profile-frame-none .tr-local-profile-image-inline img,
.tr-local-profile-v2.tr-local-profile-frame-none .tr-local-profile-image-side img,
.tr-local-profile-v2.tr-local-profile-frame-none .tr-local-profile-image-full img{
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:0 !important;
}

/* Inline illustrations should behave like a floated cutaway, not a full-height column. */
.tr-local-profile-v2.tr-local-profile-image-inline .tr-local-profile-image-inline{
  float:right;
  width:auto;
  max-width:min(240px,34%);
  margin:.05rem 0 .85rem 1.25rem;
  line-height:0;
}
.tr-local-profile-v2.tr-local-profile-image-inline .tr-local-profile-image-inline img{
  width:auto;
  max-width:100%;
  height:auto;
  max-height:clamp(280px,34vw,440px);
  object-fit:contain;
}
.tr-local-profile-v2.tr-local-profile-image-size-small .tr-local-profile-image-inline{
  max-width:min(190px,28%);
}
.tr-local-profile-v2.tr-local-profile-image-size-small .tr-local-profile-image-inline img{
  max-height:clamp(220px,28vw,330px);
}
.tr-local-profile-v2.tr-local-profile-image-size-large .tr-local-profile-image-inline{
  max-width:min(310px,42%);
}
.tr-local-profile-v2.tr-local-profile-image-size-large .tr-local-profile-image-inline img{
  max-height:clamp(360px,44vw,560px);
}
.tr-local-profile-v2.tr-local-profile-image-size-full .tr-local-profile-image-inline{
  max-width:min(360px,45%);
}
.tr-local-profile-v2.tr-local-profile-image-size-full .tr-local-profile-image-inline img{
  max-height:none;
}

/* Keep connection/actions below floated artwork instead of sliding into odd narrow columns. */
.tr-local-profile-v2.tr-local-profile-image-inline .tr-local-services,
.tr-local-profile-v2.tr-local-profile-image-inline .tr-local-connection,
.tr-local-profile-v2.tr-local-profile-image-inline .tr-local-cta,
.tr-local-profile-v2.tr-local-profile-image-inline blockquote{
  clear:both;
}

/* Side/full layouts get cleaner transparent treatment too. */
.tr-local-profile-v2.tr-local-profile-image-side .tr-local-profile-image-side,
.tr-local-profile-v2.tr-local-profile-image-full .tr-local-profile-image-full{
  line-height:0;
}
.tr-local-profile-v2.tr-local-profile-image-side.tr-local-profile-frame-none .tr-local-profile-image-side img,
.tr-local-profile-v2.tr-local-profile-image-full.tr-local-profile-frame-none .tr-local-profile-image-full img{
  max-height:520px;
  width:auto;
  max-width:100%;
  margin-inline:auto;
}

@media(max-width:780px){
  .tr-local-profile-v2.tr-local-profile-image-inline .tr-local-profile-image-inline,
  .tr-local-profile-v2.tr-local-profile-image-size-small .tr-local-profile-image-inline,
  .tr-local-profile-v2.tr-local-profile-image-size-large .tr-local-profile-image-inline,
  .tr-local-profile-v2.tr-local-profile-image-size-full .tr-local-profile-image-inline{
    float:none;
    width:min(260px,100%);
    max-width:min(260px,100%);
    margin:.25rem auto 1rem;
  }
  .tr-local-profile-v2.tr-local-profile-image-inline .tr-local-profile-image-inline img,
  .tr-local-profile-v2.tr-local-profile-image-size-small .tr-local-profile-image-inline img,
  .tr-local-profile-v2.tr-local-profile-image-size-large .tr-local-profile-image-inline img,
  .tr-local-profile-v2.tr-local-profile-image-size-full .tr-local-profile-image-inline img{
    max-height:360px;
  }
}


/* v0.9.58: mobile archive/listing grids.
   Stories / Locals / Videos pages should not keep fixed desktop column counts on phones. */
.tr-grid-section,
.tr-grid-section *{
  box-sizing:border-box;
}

.tr-grid-section{
  max-width:100%;
}

.tr-grid{
  min-width:0;
}

.tr-card{
  min-width:0;
}

@media(max-width:780px){
  .tr-grid-section{
    width:100%!important;
    max-width:100%!important;
    overflow:hidden!important;
    margin:clamp(1.3rem,5vw,2rem) 0!important;
    padding-inline:0!important;
  }

  .tr-section-heading{
    max-width:100%!important;
    padding-inline:clamp(.85rem,4vw,1.1rem)!important;
    margin-bottom:1rem!important;
    text-align:center!important;
  }

  .tr-section-heading h2{
    font-size:clamp(2.25rem,12vw,3.4rem)!important;
    line-height:.95!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  .tr-filter-panel{
    width:100%!important;
    max-width:100%!important;
    padding-inline:clamp(.85rem,4vw,1.1rem)!important;
    overflow:visible!important;
  }

  .tr-filter-row{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:.55rem!important;
    max-width:100%!important;
  }

  .tr-filter-row span{
    flex:0 0 auto!important;
    margin-right:.1rem!important;
    font-size:.82rem!important;
    letter-spacing:.16em!important;
  }

  .tr-filter-row a{
    max-width:100%!important;
    white-space:normal!important;
    line-height:1.1!important;
  }

  .tr-grid,
  .tr-grid[style]{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    gap:1rem!important;
    margin:1.15rem 0!important;
    padding-inline:clamp(.85rem,4vw,1.1rem)!important;
    overflow:visible!important;
  }

  .tr-card,
  .tr-card-feature,
  .tr-profile,
  .tr-latest,
  .tr-episode-feature{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:hidden!important;
    border-radius:22px!important;
    transform:none!important;
  }

  .tr-card:hover{
    transform:none!important;
  }

  .tr-card-feature,
  .tr-profile,
  .tr-latest,
  .tr-episode-feature{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
  }

  .tr-card-feature .tr-card-media{
    order:0!important;
  }

  .tr-card-img,
  .tr-card-feature .tr-card-img,
  .tr-card-feature .tr-card-fallback,
  .tr-profile-img{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:16/10!important;
    object-fit:cover!important;
  }

  .tr-card-body,
  .tr-card-feature .tr-card-body,
  .tr-profile-body{
    padding:clamp(.95rem,4.5vw,1.25rem)!important;
    min-width:0!important;
  }

  .tr-card h3{
    margin:0 0 .45rem!important;
    font-size:clamp(1.55rem,7.5vw,2.25rem)!important;
    line-height:1.02!important;
    letter-spacing:-.035em!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }

  .tr-card h3 a{
    display:block!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  .tr-card p,
  .tr-subtitle{
    font-size:clamp(.95rem,4.2vw,1.08rem)!important;
    line-height:1.45!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }

  .tr-card-actions{
    flex-wrap:wrap!important;
    gap:.5rem!important;
  }

  .tr-card-actions a,
  .tr-button,
  .tr-secondary-link{
    min-width:0!important;
  }
}

@media(max-width:420px){
  .tr-grid{
    padding-inline:.82rem!important;
  }

  .tr-section-heading,
  .tr-filter-panel{
    padding-inline:.82rem!important;
  }

  .tr-card h3{
    font-size:clamp(1.4rem,8vw,2rem)!important;
  }

  .tr-card p,
  .tr-subtitle{
    font-size:.94rem!important;
  }
}
