/* App shell — account, events, content pages */
.app-main { padding: calc(var(--header-h) + 1.5rem) 0 4rem; min-height: 60vh; }
.app-grid { display: grid; grid-template-columns: 15rem minmax(0,1fr); gap: 1.75rem; align-items: start; }
/* If a page uses the grid without a sidebar, don't trap content in the 15rem track */
.app-grid:not(:has(> .context-sidebar)) {
  grid-template-columns: minmax(0, 1fr);
}
.context-sidebar {
  display: block;
  position: sticky; top: calc(var(--header-h) + 1rem);
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px);
  border: 1px solid var(--osh-border); border-radius: var(--radius-md); padding: 1rem;
}
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.side-list a { display: block; padding: .5rem .65rem; border-radius: var(--radius-sm); color: var(--osh-text); text-decoration: none; font-weight: 500; font-size: .9rem; }
.side-list a:hover { background: var(--osh-soft-aqua); color: var(--osh-deep-river); }

.auth-card, .page-intro, .content-page {
  max-width: min(52rem, 100%);
}
/* Legacy event-detail class kept for any older markup; new pages use .osh-event-page */
.event-detail:not(.osh-event-page) {
  max-width: min(52rem, 100%);
}
.account-panel { max-width: none; }
.auth-card { margin: 0 auto; background: #fff; border: 1px solid var(--osh-border); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--osh-shadow-sm); }

.osh-form { display: flex; flex-direction: column; gap: .85rem; max-width: 100%; min-width: 0; }
.osh-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--osh-deep-river); min-width: 0; }
.osh-form input, .osh-form select, .osh-form textarea {
  font: inherit; font-weight: 400; padding: .65rem .75rem; border-radius: .65rem;
  border: 1px solid var(--osh-border); background: var(--osh-warm-white); color: var(--osh-text);
  width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0;
}
.osh-form .check { flex-direction: row; align-items: flex-start; font-weight: 500; gap: .6rem; }
.osh-form .check input { width: auto; margin-top: .2rem; }
.form-error { color: #b00020; margin: 0; }
.form-ok { color: var(--osh-forest); margin: 0; }
.auth-links { font-size: .9rem; }
.muted { color: var(--osh-text-secondary); }
.small { font-size: .85rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--osh-muted); }

.account-wrap {
  width: min(100% - 2 * var(--gutter), var(--dashboard-max-width));
  margin-inline: auto;
  display: grid;
  grid-template-columns: var(--dashboard-sidebar-width) minmax(0, 1fr);
  gap: var(--dashboard-content-gap);
  align-items: start;
}
.account-nav {
  position: sticky; top: calc(var(--header-h) + 1rem); align-self: start;
  background: rgba(255,255,255,.8); border: 1px solid var(--osh-border); border-radius: var(--radius-md); padding: 1rem;
}
.account-nav__head { padding: 0 .25rem .5rem; border-bottom: 1px solid var(--osh-border); margin-bottom: .35rem; }
.account-nav__hello { font-size: .85rem; color: var(--osh-text-secondary); margin: 0 0 .35rem; }
.account-nav__admin {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; text-decoration: none;
  color: #c4004c; background: rgba(233, 0, 90, 0.08);
  padding: .3rem .6rem .3rem .45rem; border-radius: 999px; margin-bottom: .35rem;
}
.account-nav__admin:hover { background: rgba(233, 0, 90, 0.15); }
.account-nav__group { border-bottom: 1px solid var(--osh-border); padding: .2rem 0 .35rem; }
.account-nav__group:last-of-type { border-bottom: 0; }
.account-nav__group summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: .5rem .55rem .35rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--osh-text-secondary);
  display: flex; align-items: center; justify-content: space-between;
}
.account-nav__group summary::-webkit-details-marker { display: none; }
.account-nav__group summary::after {
  content: ""; width: .45rem; height: .45rem; flex: 0 0 auto;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55; transition: transform .18s ease;
}
.account-nav__group:not([open]) summary::after { transform: rotate(-45deg); }
.account-nav__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.account-nav__link {
  display: flex; align-items: center; gap: .55rem; width: 100%;
  padding: .42rem .55rem; border: 0; border-radius: .55rem;
  background: none; text-align: left; text-decoration: none; cursor: pointer;
  color: var(--osh-text); font-size: .88rem; font-weight: 500; font-family: inherit;
}
.account-nav__icon { width: 16px; height: 16px; flex: 0 0 auto; opacity: .62; }
.account-nav__link:hover { background: rgba(23, 78, 99, .08); }
.account-nav__link.is-active { background: var(--osh-deep-river); color: #fff; }
.account-nav__link.is-active .account-nav__icon { opacity: .9; }
.account-nav__logout { margin-top: .5rem; color: var(--osh-text-secondary); }
.account-nav__logout:hover { background: rgba(196, 0, 76, .08); color: #c4004c; }
.account-nav .adm-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(233, 0, 90, 0.12);
  color: #c4004c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.account-panel { background: #fff; border: 1px solid var(--osh-border); border-radius: var(--radius-md); padding: 1.25rem 1.35rem 1.75rem; max-width: none; }
.account-panel h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--osh-deep-river); margin: 0 0 1rem; }

.dash-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dash-card { background: var(--osh-warm-white); border-radius: var(--radius-md); padding: 1rem 1.1rem; border: 1px solid var(--osh-border); }
.dash-card--accent { background: linear-gradient(160deg, var(--osh-soft-aqua), #fff 60%); }
.dash-card h2 { font-size: 1.15rem; margin: 0 0 .5rem; color: var(--osh-deep-river); }
.dash-event { display: block; padding: .55rem 0; border-top: 1px solid var(--osh-border); text-decoration: none; color: inherit; }
.dash-event span { display: block; font-size: .8rem; color: var(--osh-text-secondary); }

.event-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.25rem; }
.event-filters .chip {
  display: inline-flex; align-items: center; padding: .35rem .85rem;
  border: 1px solid var(--osh-border); border-radius: 999px; text-decoration: none;
  color: var(--osh-deep-river); background: #fff; font-size: .85rem; font-weight: 500;
}
.event-filters .chip.is-active,
.event-filters .chip:hover { background: var(--osh-deep-river); color: #fff; border-color: var(--osh-deep-river); }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.event-card { background: #fff; border: 1px solid var(--osh-border); border-radius: var(--radius-md); padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.event-card h2 { font-size: 1.25rem; margin: 0; font-family: var(--font-display); }
.event-card h2 a { color: var(--osh-deep-river); text-decoration: none; }
.event-card .meta { font-size: .85rem; color: var(--osh-text-secondary); margin: 0; }

.prose { line-height: 1.65; color: var(--osh-text); }
.prose h2 { font-family: var(--font-display); color: var(--osh-deep-river); margin-top: 1.75rem; }
.lead { font-size: 1.125rem; color: var(--osh-text-secondary); max-width: 40rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .85rem; margin-bottom: 1rem; color: var(--osh-muted); }
.breadcrumbs a { color: var(--osh-deep-river); }
.faq details { border-top: 1px solid var(--osh-border); padding: .75rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--osh-deep-river); }
.check-list { padding-left: 1.1rem; }
.check-list li { margin: .35rem 0; }
.empty-state { padding: 1.5rem; background: var(--osh-warm-white); border-radius: var(--radius-sm); color: var(--osh-text-secondary); }
.inline-form { flex-direction: row; flex-wrap: wrap; align-items: end; margin: 1rem 0; }
.inline-form label { flex: 1 1 220px; }
.stack { display: flex; flex-direction: column; gap: .65rem; margin-top: 1rem; }
.tabs { display: flex; gap: .4rem; margin: 1rem 0; }
.tabs button { border: 1px solid var(--osh-border); background: #fff; border-radius: var(--radius-pill); padding: .35rem .8rem; cursor: pointer; font: inherit; font-size: .85rem; }
.tabs button.is-active { background: var(--osh-deep-river); color: #fff; border-color: var(--osh-deep-river); }

/* Account: My Events — friendly booking cards */
.ev-tabs { margin: .85rem 0 1rem; }
.ev-list { display: flex; flex-direction: column; gap: .65rem; }
.ev-card {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem .95rem; text-decoration: none; color: inherit;
  background: var(--osh-warm-white); border: 1px solid var(--osh-border); border-radius: var(--radius-md);
  transition: box-shadow .15s ease, transform .15s ease;
}
a.ev-card:hover { box-shadow: var(--osh-shadow-sm); transform: translateY(-1px); }
.ev-card__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 0 0 auto; width: 3.1rem; height: 3.4rem; border-radius: .75rem;
  background: #fff; border: 1px solid var(--osh-border); color: var(--osh-deep-river);
}
.ev-card__date strong { font-size: 1.15rem; line-height: 1.1; }
.ev-card__date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--osh-text-secondary); }
.ev-card__body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1 1 auto; }
.ev-card__title { font-size: .98rem; color: var(--osh-deep-river); }
.ev-card__when { font-size: .82rem; color: var(--osh-text-secondary); }
.ev-card__meta { font-size: .8rem; color: var(--osh-text-secondary); }
.ev-card__chip {
  flex: 0 0 auto; align-self: flex-start; font-size: .7rem; font-weight: 700;
  padding: .18rem .55rem; border-radius: 999px;
  background: rgba(23, 78, 99, .08); color: var(--osh-deep-river);
  text-transform: capitalize; white-space: nowrap;
}
.ev-empty { text-align: center; padding: 1.75rem 1rem; border: 1px dashed var(--osh-border); border-radius: var(--radius-md); margin-top: .5rem; }
.ev-empty p { margin: 0 0 .85rem; color: var(--osh-text-secondary); }
.ev-manual { margin-top: 1.5rem; border-top: 1px solid var(--osh-border); padding-top: .85rem; }
.ev-manual summary { cursor: pointer; font-size: .85rem; font-weight: 600; color: var(--osh-text-secondary); }
.ev-manual summary:hover { color: var(--osh-deep-river); }
.ev-manual .inline-form { margin-top: .65rem; }
@media (max-width: 560px) {
  .ev-card { flex-wrap: wrap; }
  .ev-card__chip { order: 3; }
}

/* Privacy: email preferences */
.privacy-block { margin-bottom: 2rem; }
.privacy-block + .privacy-block { border-top: 1px solid var(--osh-border); padding-top: 1.5rem; }
.privacy-block h3 { margin: 0 0 .35rem; }
.email-prefs__master { display: block; margin: .85rem 0; }
.email-prefs__topics { border: 1px solid var(--osh-border); border-radius: var(--radius-md); padding: .85rem 1rem 1rem; margin: 0 0 .75rem; transition: opacity .2s ease; }
.email-prefs__topics legend { font-size: .85rem; font-weight: 600; color: var(--osh-text-secondary); padding: 0 .35rem; }
.email-prefs__topics.is-disabled { opacity: .45; }
.email-prefs__grid { display: flex; flex-direction: column; gap: 1rem; }
.email-prefs__group-title {
  margin: 0 0 .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--osh-text-secondary);
}
.email-prefs__group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .35rem .9rem; }
.email-prefs__group-grid .check { margin: 0; font-size: .92rem; }
.email-prefs__hint { font-size: .82rem; }
.email-prefs__actions { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.email-prefs__status { font-size: .85rem; }

/* Blog index + article */
.blog-page {
  padding: calc(var(--header-h) + 2.5rem) 0 5rem;
  min-height: 70vh;
  background:
    radial-gradient(ellipse 80% 50% at 8% 0%, rgba(98, 190, 210, 0.16), transparent 55%),
    radial-gradient(ellipse 55% 40% at 92% 12%, rgba(233, 0, 90, 0.05), transparent 50%),
    linear-gradient(180deg, var(--osh-soft-aqua) 0%, var(--osh-warm-white) 32%, var(--osh-warm-white) 100%);
}
.blog-page__intro {
  max-width: 42rem;
  margin: 0 0 1.5rem;
}
.blog-page__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--osh-muted);
}
.blog-page__intro h1 {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 600;
  color: var(--osh-deep-river);
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}
.blog-page__lead {
  margin: 0;
  color: var(--osh-text-secondary);
  line-height: 1.55;
  font-size: 1.05rem;
}
.blog-page__empty {
  color: var(--osh-text-secondary);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid var(--osh-border);
  grid-column: 1 / -1;
}

.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.75rem;
  padding: 0.35rem;
  width: fit-content;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--osh-border);
  border-radius: 999px;
  box-shadow: var(--osh-shadow-sm);
  backdrop-filter: blur(10px);
}
.blog-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--osh-deep-river);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.blog-tabs__btn:hover {
  background: rgba(221, 241, 243, 0.9);
}
.blog-tabs__btn.is-active {
  background: var(--osh-deep-river);
  color: #fff;
}
.blog-tabs__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(15, 47, 60, 0.1);
  color: inherit;
}
.blog-tabs__btn.is-active .blog-tabs__count {
  background: rgba(255, 255, 255, 0.18);
}

.blog-panel[hidden] { display: none !important; }
.blog-panel__note {
  margin: 0 0 1.15rem;
  color: var(--osh-text-secondary);
  font-size: 0.92rem;
}
.blog-panel__note a {
  color: var(--osh-deep-river);
  font-weight: 600;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}
.blog-card {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 47, 60, 0.08);
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 47, 60, 0.06);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(15, 47, 60, 0.12);
}
.blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-card__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, rgba(98, 190, 210, 0.35), rgba(240, 230, 216, 0.9));
  overflow: hidden;
  position: relative;
}
.blog-card__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(15, 47, 60, 0.18));
  pointer-events: none;
}
.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card__media img {
  transform: scale(1.05);
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.95rem 1rem 1.1rem;
  flex: 1;
}
.blog-card__date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--osh-muted);
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--osh-deep-river);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__excerpt {
  margin: 0;
  color: var(--osh-text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__more {
  margin-top: auto;
  padding-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--osh-open-sky-pink);
  letter-spacing: 0.01em;
}

.blog-article {
  padding: 0 0 4.5rem;
  background: var(--osh-warm-white);
}
.blog-hero {
  position: relative;
  min-height: clamp(18rem, 52vh, 28rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--header-h, var(--site-header-height, 5rem)) + 1.5rem) 0 4.5rem;
}
.blog-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.blog-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.02);
}
.blog-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 28, 36, 0.45) 0%, rgba(8, 28, 36, 0.28) 38%, rgba(8, 28, 36, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 28, 36, 0.55) 0%, rgba(8, 28, 36, 0.15) 62%);
}
.blog-hero__content {
  position: relative;
  z-index: 2;
  max-width: min(44rem, 100%);
  animation: rise-in 0.85s var(--ease, ease) both;
}
.blog-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.78);
}
.blog-hero__crumbs a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}
.blog-hero__crumbs a:hover { text-decoration: underline; }
.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}
.blog-hero__subtitle {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}
.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}
.blog-hero .wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  color: var(--osh-warm-white);
  height: clamp(2.75rem, 6vw, 4.5rem);
}
.blog-article__inner {
  max-width: min(44rem, 100%);
  padding-top: 2.25rem;
}
.blog-article__inner--top { padding-top: calc(var(--header-h, 5rem) + 2rem); }
.blog-article__crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
  color: var(--osh-muted);
}
.blog-article__crumbs a { color: var(--osh-deep-river); }
.blog-article__header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--osh-deep-river);
  margin: 0.35rem 0 0.65rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.blog-article__subtitle {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--osh-text-secondary);
}
.blog-article__prose {
  font-size: 1.05rem;
}
.blog-article__prose > h2:first-child {
  margin-top: 0;
}
.blog-article__prose img,
.blog-figure img {
  max-width: 100%;
  height: auto;
  display: block;
}
.blog-figure {
  margin: 2rem 0;
  border-radius: 0;
  overflow: hidden;
}
.blog-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.blog-related {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--osh-border);
}
.blog-related__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
  color: var(--osh-deep-river);
}
.blog-related__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}
.blog-related__list a {
  color: var(--osh-deep-river);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 70, 82, 0.25);
}
.blog-related__list a:hover {
  border-bottom-color: currentColor;
}
.blog-article__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--osh-border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (max-width: 1100px) {
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-tabs { width: 100%; }
  .blog-tabs__btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 520px) {
  .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .app-grid, .account-wrap { grid-template-columns: 1fr; }
  .context-sidebar, .account-nav { position: static; }
}

/* Atmosphere + organic page layouts */
.content-page { position: relative; isolation: isolate; }
.page-atmosphere { position: absolute; inset: -2rem -1rem auto; height: 28rem; pointer-events: none; z-index: -1; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(48px); opacity: .55;
  animation: osh-drift 22s ease-in-out infinite alternate;
}
.orb--aqua { width: 18rem; height: 18rem; background: radial-gradient(circle, #bfe8ef, transparent 70%); left: -4rem; top: 1rem; }
.orb--sage { width: 14rem; height: 14rem; background: radial-gradient(circle, #c5d8c6, transparent 70%); right: 8%; top: 4rem; animation-duration: 28s; animation-delay: -6s; }
.orb--peach { width: 12rem; height: 12rem; background: radial-gradient(circle, #f7d2bc, transparent 70%); right: -2rem; top: 10rem; animation-duration: 18s; animation-delay: -3s; }

@keyframes osh-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12px, -18px, 0) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

.page-hero {
  display: grid; gap: 1.5rem; margin: 0 0 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .page-hero { grid-template-columns: 1.1fr .9fr; gap: 2rem; }
  .page-hero--calm-quote { grid-template-columns: .85fr 1.15fr; }
  .page-hero--conversion { grid-template-columns: 1fr; }
}
.page-hero__copy .eyebrow {
  display: inline-block; margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .04em;
  text-transform: uppercase; color: var(--osh-forest); font-weight: 600;
}
.page-hero__media {
  margin: 0; border-radius: 1.75rem; overflow: hidden;
  box-shadow: var(--osh-shadow); background: linear-gradient(140deg, var(--osh-soft-aqua), var(--osh-sand));
  aspect-ratio: 4 / 3;
}
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-cta--hero { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.1rem; }

.content-block {
  margin: 1.75rem 0; padding: 1.35rem 1.4rem; border-radius: 1.5rem;
  background: rgba(255,255,255,.72); border: 1px solid var(--osh-border);
}
.content-block--aqua { background: linear-gradient(160deg, rgba(221,241,243,.9), rgba(255,255,255,.85)); }
.content-block--sand { background: linear-gradient(160deg, rgba(232,221,200,.55), rgba(255,255,255,.9)); }
.content-block--sage { background: linear-gradient(160deg, rgba(130,157,131,.12), rgba(255,255,255,.92)); }
.content-block--peach { background: linear-gradient(160deg, rgba(243,179,148,.18), rgba(255,255,255,.92)); }
.content-figure { margin: 1.25rem 0 0; border-radius: 1.35rem; overflow: hidden; }
.content-figure img { width: 100%; height: auto; display: block; }

.content-videos .osh-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .content-videos .osh-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .content-videos .osh-video-grid { grid-template-columns: 1fr; }
}
.osh-video-card h3 {
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--osh-deep-river);
  font-family: var(--font-body, inherit);
  font-weight: 700;
}
.osh-video {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: #123a4a;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 28px rgba(18, 58, 74, 0.12);
}
.osh-video iframe,
.osh-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #000;
}
.osh-video__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #1a4a5c center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.osh-video__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 30, 38, 0.45));
}
.osh-video__poster span {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: #1d5d6c;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}
.osh-video__poster:hover span,
.osh-video__poster:focus-visible span {
  transform: scale(1.06);
}


.related-events {
  margin: 2.5rem 0; padding: 1.5rem; border-radius: 1.75rem;
  background: linear-gradient(165deg, var(--osh-soft-aqua), #fff 55%);
  border: 1px solid var(--osh-border);
}
.related-events__head h2 { margin-bottom: .35rem; }
.related-events__head p { color: var(--osh-text-secondary); margin-bottom: 1rem; }
.event-grid--compact { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.event-grid--compact .event-card h3 { font-size: 1.1rem; margin: 0; font-family: var(--font-display); }
.event-grid--compact .event-card h3 a { color: var(--osh-deep-river); text-decoration: none; }

.content-page--warm-feature .page-hero__media { border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%; }
.content-page--calm-quote .lead { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; }
