/* Editorial articles — uses the existing Open Sky House tokens. */

.app-main:has(.osh-article) {
  padding: 0;
}

.osh-article {
  --article-read: 44rem;
  --article-toc: 14rem;
  --article-gap: 2.75rem;
  --article-spread: 72rem;
  color: var(--osh-text);
  background: var(--osh-bg);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 1023px) {
  .osh-article {
    padding-bottom: calc(var(--osh-tabbar-clearance) + 1.5rem);
  }
}

.osh-article h2,
.osh-article h3,
.osh-article-section,
.osh-article-practice,
.osh-article-events,
.osh-article-faqwrap,
.osh-article-related,
.osh-article-cta {
  scroll-margin-top: calc(var(--header-h) + 0.85rem);
}

.osh-article .eyebrow {
  color: var(--osh-forest);
}

/* Hero */
.osh-article-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(22rem, 52vh, 30rem);
  color: #f7fbfb;
  overflow: hidden;
  background: var(--osh-deep-river);
}

.osh-article-hero--plain {
  min-height: 0;
  color: var(--osh-deep-river);
  background:
    linear-gradient(180deg, #f7f2ea 0%, var(--osh-warm-white) 100%);
  padding-top: calc(var(--header-h) + 2rem);
}

.osh-article-hero__media,
.osh-article-hero__shade {
  position: absolute;
  inset: 0;
}

.osh-article-hero__media {
  z-index: -2;
}

.osh-article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, center 42%);
}

.osh-article-hero__shade {
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(18, 58, 74, 0.88) 0%, rgba(18, 58, 74, 0.62) 46%, rgba(18, 58, 74, 0.22) 100%),
    linear-gradient(to top, rgba(12, 32, 40, 0.72), transparent 52%);
}

.osh-article-hero__content {
  width: min(100% - 2 * var(--gutter), 48rem);
  margin: 0 auto 0 0;
  padding: calc(var(--header-h) + 2.5rem) var(--gutter) clamp(3.5rem, 8vw, 5.5rem);
}

.osh-article-hero--plain .osh-article-hero__content {
  padding-top: 0;
  margin-inline: auto;
}

.osh-article-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  font-size: 0.84rem;
  color: rgba(247, 251, 251, 0.86);
}

.osh-article-hero--plain .osh-article-hero__crumbs {
  color: var(--osh-text-secondary);
}

.osh-article-hero__crumbs a {
  color: inherit;
  text-decoration: none;
}

.osh-article-hero__crumbs a:hover {
  text-decoration: underline;
}

.osh-article-hero__eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--osh-sand);
}

.osh-article-hero--plain .osh-article-hero__eyebrow {
  color: var(--osh-forest);
}

.osh-article-hero h1 {
  margin: 0;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.osh-article-hero--plain h1 {
  color: var(--osh-deep-river);
}

.osh-article-hero__dek {
  margin: 1rem 0 0;
  max-width: 13em;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 500;
  line-height: 1.3;
  color: #f4efe4;
}

.osh-article-hero--plain .osh-article-hero__dek {
  color: var(--osh-text);
}

.osh-article-hero__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  margin: 1.35rem 0 0;
  font-size: 0.92rem;
  color: rgba(247, 251, 251, 0.9);
}

.osh-article-hero--plain .osh-article-hero__byline {
  color: var(--osh-text-secondary);
}

.osh-article-hero__credit {
  position: absolute;
  right: var(--gutter);
  bottom: 0.85rem;
  z-index: 1;
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(247, 251, 251, 0.82);
}

/* Direct answer, contents, and reading column share one measure. */
.osh-article__frame,
.osh-article-faqwrap {
  width: min(100% - 2 * var(--gutter), var(--article-read));
  margin-inline: auto;
}

.osh-article__frame {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.osh-article-answer p:first-child {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.32;
  color: var(--osh-deep-river);
}

.osh-article-answer p:not(:first-child) {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.osh-article-answer__video {
  width: min(100%, 17rem);
  margin: 1.5rem auto 0;
  aspect-ratio: var(--video-ratio, 16 / 9);
  overflow: hidden;
  border-radius: 14px;
  background: var(--osh-deep-river);
  box-shadow: 0 14px 32px rgba(18, 58, 74, 0.18);
}

.osh-article-answer__video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 700px) {
  .osh-article-answer--video {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem);
    gap: clamp(1.5rem, 3vw, 2.25rem);
    align-items: start;
  }

  .osh-article-answer--video p:first-child {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
  }

  .osh-article-answer--video .osh-article-answer__video {
    width: 100%;
    margin: 0.35rem 0 0;
  }
}

.osh-article-toc {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

.osh-article__main {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

@media (min-width: 960px) {
  .osh-article__frame,
  .osh-article-faqwrap {
    width: min(100% - 2 * var(--gutter), calc(var(--article-toc) + var(--article-gap) + var(--article-read)));
  }

  .osh-article__frame {
    display: grid;
    grid-template-columns: var(--article-toc) minmax(0, var(--article-read));
    column-gap: var(--article-gap);
    align-items: start;
  }

  .osh-article-answer {
    grid-column: 2;
    grid-row: 1;
  }

  .osh-article-toc {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 0.35rem;
  }

  .osh-article__main {
    grid-column: 2;
    grid-row: 2;
    margin-top: clamp(2rem, 4vw, 2.75rem);
  }
}

.osh-article-toc {
  padding-top: 0.35rem;
}

@media (min-width: 960px) {
  .osh-article-toc {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow: auto;
  }
}

.osh-article-toc__label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--osh-forest);
}

.osh-article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: article-toc;
}

.osh-article-toc li {
  counter-increment: article-toc;
}

.osh-article-toc a {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  gap: 0.35rem;
  padding: 0.38rem 0;
  color: var(--osh-text);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
}

.osh-article-toc a::before {
  content: counter(article-toc, decimal-leading-zero);
  color: var(--osh-forest);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  padding-top: 0.16rem;
}

.osh-article-toc a:hover,
.osh-article-toc a[aria-current="true"] {
  color: var(--osh-deep-river);
}

.osh-article-toc a[aria-current="true"] {
  font-weight: 700;
}

.osh-article-toc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.osh-article-toc a.osh-article-toc__cta {
  display: inline-flex;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.osh-article-toc a.osh-article-toc__cta::before {
  content: none;
}

.osh-article-toc a.osh-article-toc__cta.btn--primary,
.osh-article-toc a.osh-article-toc__cta.btn--primary:hover {
  color: #fff;
}

.osh-article__main h2 {
  margin: 2.5rem 0 0.9rem;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.15;
}

.osh-article__main h2:first-child,
.osh-article-section:first-child h2 {
  margin-top: 0.2rem;
}

.osh-article__prose {
  font-size: 1.075rem;
  line-height: 1.78;
}

.osh-article__prose p {
  margin: 0 0 1.05rem;
}

.osh-article__prose h3 {
  margin: 1.75rem 0 0.55rem;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.osh-article__prose a {
  font-weight: 650;
}

.osh-article__prose ul,
.osh-article__prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.osh-article__prose ul {
  list-style: disc;
}

.osh-article__prose ol {
  list-style: decimal;
}

.osh-article__prose li {
  margin: 0.35rem 0;
}

.osh-article__prose li::marker {
  color: var(--osh-forest);
}

/* Figures */
.osh-article-figure {
  margin: 2rem 0 2.25rem;
}

.osh-article-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.osh-article-figure--full img {
  aspect-ratio: 16 / 10;
}

.osh-article-figure--inline {
  max-width: 22rem;
  margin-inline: auto;
}

.osh-article-figure--inline img {
  aspect-ratio: 4 / 5;
  object-position: center 20%;
}

.osh-article-figure figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin-top: 0.7rem;
  color: var(--osh-text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

.osh-article-figure__credit {
  color: var(--osh-text-secondary);
}

/* Quote */
.osh-article-quote {
  margin: 2.5rem 0;
  padding: 0.25rem 0 0.35rem 1.25rem;
  border-left: 2px solid var(--osh-deep-river);
}

.osh-article-quote blockquote {
  margin: 0;
}

.osh-article-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 500;
  line-height: 1.28;
  color: var(--osh-deep-river);
}

.osh-article-quote footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--osh-text-secondary);
  font-size: 0.92rem;
  line-height: 1.45;
}

.osh-article-quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--osh-text);
}

.osh-article-quote__original {
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Practice */
.osh-article-practice {
  margin: 2.25rem 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(130, 157, 131, 0.16);
  border: 1px solid rgba(53, 94, 75, 0.16);
  border-radius: var(--radius-lg);
}

.osh-article-practice__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--osh-forest);
}

.osh-article-practice h2 {
  margin: 0 0 1rem;
}

.osh-article-practice__meta {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
}

@media (min-width: 640px) {
  .osh-article-practice__meta {
    grid-template-columns: 8.5rem minmax(0, 1fr);
  }
}

.osh-article-practice__meta div {
  min-width: 0;
}

.osh-article-practice__meta dt {
  margin: 0 0 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--osh-forest);
}

.osh-article-practice__meta dd {
  margin: 0;
  line-height: 1.5;
}

.osh-article-practice__steps {
  margin: 0;
  padding-left: 1.2rem;
  list-style: decimal;
}

.osh-article-practice__steps li {
  margin: 0.45rem 0;
  padding-left: 0.25rem;
  line-height: 1.6;
}

.osh-article-practice__steps li::marker {
  color: var(--osh-forest);
  font-weight: 700;
}

.osh-article-practice__note {
  margin: 1rem 0 0;
  color: var(--osh-text);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Events, related */
.osh-article-band,
.osh-article-faqwrap {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.osh-article-band {
  width: min(100% - 2 * var(--gutter), var(--article-read));
  margin-inline: auto;
}

@media (min-width: 960px) {
  .osh-article-band {
    width: min(100% - 2 * var(--gutter), calc(var(--article-toc) + var(--article-gap) + var(--article-read)));
  }

  .osh-article-events > .eyebrow,
  .osh-article-events > h2,
  .osh-article-events > .osh-article-events__intro,
  .osh-article-events > .osh-article-events__more {
    margin-left: calc(var(--article-toc) + var(--article-gap));
  }

  .osh-article-events > .osh-article-events__intro {
    max-width: calc(var(--article-read) - 1rem);
  }
}

.osh-article-events__intro,
.osh-article-events__empty p {
  max-width: 40rem;
  color: var(--osh-text);
  line-height: 1.7;
}

.osh-article-events .osh-event-card {
  margin-top: 1.25rem;
}

.osh-article-events__more {
  margin: 2rem 0 0.25rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.osh-event-card {
  display: grid;
  background: var(--osh-surface);
  border: 1px solid var(--osh-border);
  border-radius: var(--radius-md);
  box-shadow: var(--osh-shadow-sm);
  overflow: hidden;
}

@media (min-width: 800px) {
  .osh-event-card--featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.9fr);
  }
}

.osh-event-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--osh-border);
}

/* Banners that are not 16:9 are shown whole over a blurred copy of themselves. */
.osh-event-card__media img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.osh-event-card__media img.osh-event-card__backdrop {
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.15);
  opacity: 0.85;
}

@media (min-width: 800px) {
  .osh-event-card--featured {
    align-items: center;
  }
}

.osh-event-card__body {
  padding: 1.15rem 1.2rem 1.25rem;
}

.osh-event-card h3 {
  margin: 0.25rem 0 0.45rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.osh-event-card h3 a {
  color: inherit;
  text-decoration: none;
}

.osh-event-card h3 a:hover {
  color: var(--osh-accent);
}

.osh-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0;
  margin: 0 0 0.75rem;
  color: var(--osh-text-secondary);
  font-size: 0.92rem;
}

.osh-event-card__meta time,
.osh-event-card__meta span {
  white-space: nowrap;
}

.osh-event-card__meta time + span::before,
.osh-event-card__meta span + span::before {
  content: "·";
  margin: 0 0.45rem;
  color: var(--osh-muted);
}

.osh-event-card__text {
  margin: 0 0 1rem;
  line-height: 1.6;
}

.osh-event-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.85rem;
}

@media (min-width: 800px) {
  .osh-event-list {
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  }
}

.osh-article-events__actions,
.osh-article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.osh-article-events__empty {
  margin-top: 0.5rem;
  padding: 1.25rem 1.3rem;
  background: var(--osh-surface);
  border: 1px solid var(--osh-border);
  border-radius: var(--radius-md);
}

/* FAQ */
.osh-article-faqwrap {
  width: min(100% - 2 * var(--gutter), var(--article-read));
}

@media (min-width: 960px) {
  .osh-article-faqwrap {
    width: min(100% - 2 * var(--gutter), calc(var(--article-toc) + var(--article-gap) + var(--article-read)));
    padding-left: calc(var(--article-toc) + var(--article-gap));
  }
}

.osh-article-faq {
  margin-top: 0.5rem;
  border-top: 1px solid var(--osh-border);
}

.osh-article-faq details {
  border-bottom: 1px solid var(--osh-border);
}

.osh-article-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--touch);
  padding: 0.85rem 0;
  color: var(--osh-deep-river);
  font-weight: 650;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.osh-article-faq summary::-webkit-details-marker {
  display: none;
}

.osh-article-faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--osh-deep-river);
  border-bottom: 1.5px solid var(--osh-deep-river);
  transform: translateY(-0.15rem) rotate(45deg);
}

.osh-article-faq details[open] summary::after {
  transform: translateY(0.15rem) rotate(-135deg);
}

.osh-article-faq__answer {
  padding: 0 0 1rem;
  max-width: 40rem;
}

.osh-article-faq__answer p {
  margin: 0;
  line-height: 1.7;
}

/* Related */
.osh-related-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 700px) {
  .osh-related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .osh-related-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.osh-related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: var(--osh-surface);
  border: 1px solid var(--osh-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--osh-shadow-sm);
}

.osh-related-card:hover {
  color: inherit;
}

.osh-related-card:hover .osh-related-card__title {
  color: var(--osh-accent);
}

.osh-related-card__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.osh-related-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1.1rem;
}

.osh-related-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--osh-deep-river);
}

.osh-related-card__text {
  color: var(--osh-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.osh-article-planned {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--osh-border);
}

.osh-article-planned__label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--osh-forest);
}

.osh-article-planned ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.osh-article-planned li {
  padding: 0.35rem 0;
  color: var(--osh-text-secondary);
}

/* Closing invitation */
.osh-article-cta {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: clamp(3.25rem, 8vw, 5.5rem) var(--gutter);
  background: linear-gradient(180deg, #eef8f9 0%, var(--osh-warm-white) 100%);
}

.osh-article-cta__inner {
  width: min(100%, 40rem);
  margin-inline: auto;
}

.osh-article-cta .eyebrow {
  color: var(--osh-forest);
}

.osh-article-cta h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.osh-article-cta p {
  font-size: 1.0625rem;
  line-height: 1.7;
}

@media (max-width: 699px) {
  .osh-article-hero h1 {
    max-width: 12ch;
  }

  .osh-article-hero__content {
    margin-inline: 0;
  }
}

/* Live openskyhouse.org rail. The photo stays full-bleed; the text sits beside the menu. */
@media (min-width: 861px) {
  body.has-rail .osh-article {
    padding-left: var(--rail-rest);
  }

  body.has-rail .osh-article-hero {
    width: calc(100% + var(--rail-rest));
    margin-left: calc(var(--rail-rest) * -1);
  }

  body.has-rail .osh-article-hero__content {
    width: min(calc(100% - var(--rail-rest) - 2 * var(--gutter)), 48rem);
    margin-left: var(--rail-rest);
    padding-top: 2.75rem;
  }

  body.has-rail .osh-article h2,
  body.has-rail .osh-article h3,
  body.has-rail .osh-article-section,
  body.has-rail .osh-article-practice,
  body.has-rail .osh-article-events,
  body.has-rail .osh-article-faqwrap,
  body.has-rail .osh-article-related,
  body.has-rail .osh-article-cta,
  body.has-rail .osh-pathwrap,
  body.has-rail .osh-ways,
  body.has-rail .osh-module,
  body.has-rail .osh-modules > h2,
  body.has-rail .osh-readings {
    scroll-margin-top: 1.25rem;
  }

  body.has-rail .osh-article-toc {
    top: 1.25rem;
    max-height: calc(100vh - 2.5rem);
  }
}

@media (max-width: 860px) {
  body.has-rail .osh-article-hero__content {
    padding-top: 8.6rem;
  }

  body.has-rail .osh-article {
    padding-bottom: calc(5.4rem + env(safe-area-inset-bottom));
  }

  body.has-rail .osh-article h2,
  body.has-rail .osh-article h3,
  body.has-rail .osh-article-section,
  body.has-rail .osh-article-practice,
  body.has-rail .osh-article-events,
  body.has-rail .osh-article-faqwrap,
  body.has-rail .osh-article-related,
  body.has-rail .osh-article-cta,
  body.has-rail .osh-pathwrap,
  body.has-rail .osh-ways,
  body.has-rail .osh-module,
  body.has-rail .osh-modules > h2,
  body.has-rail .osh-readings {
    scroll-margin-top: 7.2rem;
  }
}

.osh-path__intro,
.osh-ways__intro {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  line-height: 1.7;
}

.osh-path {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.osh-path__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--osh-surface);
  border: 1px solid var(--osh-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.osh-path__jump {
  color: inherit;
  text-decoration: none;
}

.osh-path__jump::after {
  content: "";
  position: absolute;
  inset: 0;
}

.osh-path__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--osh-soft-aqua);
  overflow: hidden;
}

.osh-path__media picture,
.osh-path__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.osh-path__mark {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-size: 2.75rem;
  color: var(--osh-forest);
}

.osh-path__index {
  position: absolute;
  left: 0.65rem;
  bottom: 0.65rem;
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--osh-forest);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.osh-path__media:has(.osh-path__mark) .osh-path__index {
  position: static;
  display: none;
}

.osh-path__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.9rem 1rem 1.05rem;
}

.osh-path__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.osh-path__body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.osh-path__more {
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
  color: var(--osh-deep-river);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

.osh-ways__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.osh-ways__card {
  display: block;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--osh-border);
  border-radius: var(--radius-md);
  background: var(--osh-surface);
  color: inherit;
  text-decoration: none;
}

.osh-ways__card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.osh-ways__card p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .osh-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .osh-ways__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .osh-path {
    grid-template-columns: 1fr;
  }
}

.osh-modules {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
}

.osh-modules > h2 {
  margin: 0.15rem 0 0;
}

.osh-modules__intro {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  line-height: 1.7;
}

.osh-module {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.4rem;
  scroll-margin-top: calc(var(--header-h) + 0.85rem);
}

.osh-module__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--osh-soft-aqua);
}

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

.osh-module__body > h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.osh-module .osh-article-practice {
  margin: 1.25rem 0 0;
}

.osh-module .osh-article-practice__meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.osh-module .osh-article-practice h3 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.osh-module__more {
  margin: 1rem 0 0;
  font-weight: 700;
}

.osh-module__more a {
  color: var(--osh-deep-river);
}

@media (min-width: 860px) {
  .osh-module:not(.osh-module--text) {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 1.15rem 1.75rem;
    align-items: start;
  }

  .osh-module:not(.osh-module--text):nth-of-type(even) .osh-module__media {
    order: 2;
  }

  .osh-module__media {
    position: sticky;
    top: 1.25rem;
  }
}

.osh-readings {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  scroll-margin-top: calc(var(--header-h) + 0.85rem);
}

.osh-readings > h2 {
  margin: 0.15rem 0 0;
}

.osh-readings__intro {
  max-width: 40rem;
  margin: 0.75rem 0 0;
  line-height: 1.7;
}

.osh-readings__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
}

.osh-readings__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--osh-border);
  border-radius: var(--radius-md);
  background: var(--osh-surface);
  color: inherit;
  text-decoration: none;
}

.osh-readings__card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  line-height: 1.25;
}

.osh-readings__card p {
  margin: 0;
  line-height: 1.55;
}

.osh-readings__card:hover h3 {
  color: var(--osh-deep-river);
}

@media (max-width: 900px) {
  .osh-readings__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .osh-readings__grid {
    grid-template-columns: 1fr;
  }
}

.osh-series {
  width: min(100% - 2 * var(--gutter), var(--article-read));
  margin: clamp(2.25rem, 5vw, 3.5rem) auto 0;
}

@media (min-width: 960px) {
  .osh-series {
    width: min(100% - 2 * var(--gutter), calc(var(--article-toc) + var(--article-gap) + var(--article-read)));
  }
}

.osh-series__pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}

.osh-series__prev,
.osh-series__next,
.osh-series__hub {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--osh-border);
  border-radius: var(--radius-md);
  background: var(--osh-surface);
  color: inherit;
  text-decoration: none;
}

.osh-series__next {
  text-align: right;
  align-items: flex-end;
}

.osh-series__hub {
  align-items: center;
  text-align: center;
  font-weight: 700;
  color: var(--osh-deep-river);
}

.osh-series__pager span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.osh-series__pager strong {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

.osh-series__list {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.5rem;
}

.osh-series__list a {
  color: var(--osh-deep-river);
  text-underline-offset: 0.15em;
}

.osh-series__list [aria-current="page"] {
  font-weight: 700;
}

@media (max-width: 700px) {
  .osh-series__pager {
    grid-template-columns: 1fr;
  }

  .osh-series__next {
    text-align: left;
    align-items: flex-start;
  }

  .osh-series__list {
    grid-template-columns: 1fr;
  }
}

.osh-article-events [hidden] { display: none !important; }
