/*
Theme Name: Blocksy OD Web
Theme URI: https://example.com/odweb
Description: Child theme for Blocksy — hero, feed, and paywall-ready member surfaces.
Template: blocksy
Version: 1.7.12
Text Domain: blocksy-odweb
*/

:root {
  --od-bg: #f3f5f9;
  --od-bg-elevated: #ffffff;
  --od-surface: #ffffff;
  --od-surface-2: #eef2f7;
  --od-text: #1f2a37;
  --od-muted: #6b7a90;
  --od-accent: #6d5efc;
  --od-accent-hot: #ff6a3d;
  --od-accent-2: #8b5cf6;
  --od-warn: #f59e0b;
  --od-hero-1: #5b2be0;
  --od-hero-2: #8b3dff;
  --od-hero-3: #c44dff;
  --od-card-radius: 16px;
  --od-font-display: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --od-font-body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--od-font-body);
  background: var(--od-bg);
  color: var(--od-text);
}

/* —— Home hero —— */
.od-hero--home {
  position: relative;
  min-height: clamp(280px, 42vh, 420px);
  display: grid;
  align-items: center;
  justify-items: stretch;
  min-width: 0;
  max-width: 100%;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 3.5rem;
  background:
    radial-gradient(900px 320px at 50% 110%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--od-hero-1) 0%, var(--od-hero-2) 48%, var(--od-hero-3) 100%);
  color: #fff;
  overflow: hidden;
}

.od-hero__glow {
  position: absolute;
  inset: auto 0 -40px 0;
  height: 120px;
  background: radial-gradient(ellipse at center, rgba(255, 180, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.od-hero__inner--center {
  width: min(820px, calc(100% - 2rem));
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.od-brand {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 8px 30px rgba(40, 0, 80, 0.25);
}

.od-hero__lead--center {
  max-width: 36rem;
  margin: 0 auto 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.02rem;
  line-height: 1.55;
}

.od-hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.28rem 0.28rem 1.1rem;
  box-shadow: 0 14px 36px rgba(40, 10, 90, 0.22);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  box-sizing: border-box;
  min-width: 0;
}

.od-hero-search__input {
  flex: 1 1 0%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.94rem;
  color: #1f2a37;
  min-width: 0;
  max-width: 100%;
  width: 0; /* ignore intrinsic <input> min-width inside flex */
  padding: 0.55rem 0.4rem;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.od-hero-search__input::placeholder {
  color: #94a3b8;
}

.od-hero-search__btn,
.od-hero-search button.od-hero-search__btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #7c6ff7, #a78bfa) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(109, 94, 252, 0.32);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.od-hero-search__btn svg {
  display: block;
}

.od-hero-search__btn:hover {
  filter: brightness(1.06);
  transform: scale(1.04);
}

.od-hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
  align-items: center;
}

.od-hero-tags__label {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-right: 0.15rem;
}

.od-hero-tag {
  display: inline-flex;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}

.od-hero-tag:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* Feature cards under hero */
.od-feature-row {
  width: min(1120px, calc(100% - 2rem));
  margin: -1.75rem auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

.od-feature-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 42, 55, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.od-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 42, 55, 0.12);
  color: inherit;
}

.od-feature-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6d5efc, #9b5cf6);
}

.od-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.od-logo-mark {
  display: grid;
  filter: drop-shadow(0 8px 18px rgba(40, 10, 90, 0.28));
}

.od-feature-card--wallet .od-feature-card__icon {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.od-feature-card--unlock .od-feature-card__icon {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
}

.od-feature-card--code .od-feature-card__icon {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.od-feature-card--user .od-feature-card__icon {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.od-feature-card__text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.od-feature-card__text strong {
  font-size: 0.95rem;
}

.od-feature-card__text small {
  color: var(--od-muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .od-feature-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Feed — card scale (~306×327, cover 800×560) */
.od-feed {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.5rem auto 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1rem;
}

@media (max-width: 960px) {
  .od-feed,
  .od-feed--single {
    grid-template-columns: 1fr;
  }
}

.od-section-head {
  margin-bottom: 0.35rem;
}

.od-section-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.od-section-head p {
  margin: 0;
  color: var(--od-muted);
  font-size: 0.9rem;
}

.od-section-head--feed {
  margin-bottom: 0.85rem;
}

/* Feed filter / sort toolbar */
.od-feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 10px rgba(116, 116, 116, 0.08);
}

.od-feed-chips {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
}

.od-feed-chips--tags {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding-left: 0.55rem;
  margin-left: 0.1rem;
  border-left: 1px solid rgba(16, 32, 51, 0.08);
  overflow: visible;
}

.od-feed-chips__scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.od-feed-chip--tag.is-extra {
  display: none;
}

.od-feed-chip--tag.is-extra.is-active {
  display: inline-flex;
}

.od-feed-chips__label {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--od-muted);
  margin-right: 0.15rem;
}

.od-feed-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 7.5rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #475569;
  background: var(--od-surface-2);
  border: 1px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.od-feed-chip:hover {
  color: #4c1d95;
  background: #ede9fe;
  border-color: rgba(109, 94, 252, 0.25);
}

.od-feed-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, #6d5efc, #8b5cf6);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(109, 94, 252, 0.28);
}

.od-feed-chip--tag {
  font-weight: 500;
  background: transparent;
  border: 1px solid rgba(16, 32, 51, 0.1);
}

.od-feed-chip--tag.is-active {
  background: linear-gradient(135deg, #6d5efc, #8b5cf6);
  border-color: transparent;
}

.od-feed-chip--more {
  width: 2rem;
  max-width: 2rem;
  justify-content: center;
  padding-inline: 0;
  letter-spacing: 0.08em;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #64748b;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.12);
}

.od-feed-chip--more[aria-expanded="true"],
.od-feed-more.has-active .od-feed-chip--more {
  color: #fff;
  background: linear-gradient(135deg, #6d5efc, #8b5cf6);
  border-color: transparent;
  box-shadow: 0 6px 14px rgba(109, 94, 252, 0.22);
}

.od-feed-more {
  position: relative;
  flex: 0 0 auto;
}

.od-feed-more__menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  z-index: 30;
  min-width: 11.5rem;
  max-width: min(16rem, 70vw);
  max-height: 14rem;
  overflow: auto;
  padding: 0.35rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.08);
  box-shadow: 0 14px 32px rgba(31, 42, 55, 0.14);
}

.od-feed-more__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--od-text);
  font-size: 0.84rem;
  font-weight: 500;
}

.od-feed-more__item small {
  color: var(--od-muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.od-feed-more__item:hover {
  background: #f3f0ff;
  color: #4c1d95;
}

.od-feed-more__item.is-active {
  background: linear-gradient(135deg, rgba(109, 94, 252, 0.12), rgba(139, 92, 246, 0.1));
  color: #5b21b6;
}

.od-feed-sort {
  margin-left: auto;
  flex: 0 0 auto;
}

.od-feed-sort__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--od-muted);
}

.od-feed-sort select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 9.5rem;
  padding: 0.4rem 1.85rem 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7a90' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 0.7rem center;
  color: var(--od-text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.od-feed-sort select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.od-card__meta-sep {
  opacity: 0.55;
  margin: 0 0.15rem;
}

.od-feed-empty {
  margin-top: 0.75rem;
  text-align: center;
}

.od-feed-empty .od-btn {
  margin-top: 0.35rem;
}

.od-feed-ajax {
  position: relative;
  min-height: 8rem;
  transition: opacity 0.2s ease;
}

.od-feed-ajax.is-loading {
  opacity: 0.45;
  pointer-events: none;
}

.od-feed-ajax.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 4.5rem;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  border: 2px solid rgba(109, 94, 252, 0.25);
  border-top-color: #6d5efc;
  animation: od-feed-spin 0.7s linear infinite;
  z-index: 2;
}

@keyframes od-feed-spin {
  to {
    transform: rotate(360deg);
  }
}

.od-card-grid {
  display: grid;
  gap: 0.85rem;
}

.od-feed--grid {
  align-items: start;
}

.od-main {
  min-width: 0;
}

.od-card-grid--tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .od-card-grid--tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep 2-col tiles on phones; single column only for very narrow */
@media (max-width: 340px) {
  .od-card-grid--tiles {
    grid-template-columns: 1fr;
  }
}

.od-tile {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 0;
  box-shadow: 0 0 10px rgba(116, 116, 116, 0.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 100%;
}

.od-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(116, 116, 116, 0.14);
  color: inherit;
}

.od-tile__media {
  position: relative;
  aspect-ratio: 800 / 560;
  background: #e8edf5;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.od-tile__media img,
.od-tile__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.od-tile__placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 45%),
    linear-gradient(135deg, #c4b5fd, #818cf8 55%, #38bdf8);
}

.od-tile__badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.od-tile__body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.od-tile__body h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #2d3436;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.od-tile__cat {
  color: #59c3ff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: -0.15rem;
}

.od-tile__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-tile__excerpt {
  display: none;
}

.od-tile .od-card__meta {
  margin-top: auto;
  padding-top: 2px;
  font-size: 12px;
  color: #99a2aa;
}

.od-pagination {
  margin: 1.35rem 0 0.25rem;
  display: flex;
  justify-content: center;
}

.od-pagination ul.page-numbers,
.od-pagination .nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
}

.od-pagination .page-numbers li {
  margin: 0;
}

.od-pagination a,
.od-pagination span {
  display: inline-flex;
  min-width: 2.15rem;
  height: 2.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.1);
  box-shadow: 0 4px 12px rgba(31, 42, 55, 0.04);
  color: #1f2a37;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.od-pagination a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(109, 94, 252, 0.12);
  color: #6d5efc;
}

.od-pagination .current {
  background: linear-gradient(135deg, #6d5efc, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(109, 94, 252, 0.28);
}

.od-pagination .dots {
  border: 0;
  background: transparent;
  box-shadow: none;
  min-width: 1.25rem;
}

.od-panel__avatar {
  display: grid;
  place-items: center;
  background: transparent;
}

.od-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 0.95rem;
  padding: 0.85rem;
  border-radius: var(--od-card-radius);
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.06);
  box-shadow: 0 6px 18px rgba(31, 42, 55, 0.04);
  color: var(--od-text);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.od-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 42, 55, 0.1);
  color: inherit;
}

.od-card__thumb {
  width: 148px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--od-surface-2);
}

.od-card__body h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.35;
}

.od-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--od-muted);
  font-size: 0.8rem;
}

.od-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}

.od-badge--paid {
  background: #ff5473;
  color: #fff;
}

.od-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  min-width: 0;
}

.od-side .od-panel {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.06);
  box-shadow: 0 6px 16px rgba(31, 42, 55, 0.04);
  color: var(--od-text);
  min-width: 0;
}

.od-side .od-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.3;
  word-break: break-word;
}

.od-side .od-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--od-muted);
}

.od-panel {
  padding: 1.1rem;
  border-radius: var(--od-card-radius);
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.06);
  box-shadow: 0 6px 18px rgba(31, 42, 55, 0.04);
  color: var(--od-text);
}

.od-panel h3 {
  margin-top: 0;
}

.od-panel--user {
  text-align: center;
}

.od-panel__avatar {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.65rem;
  border-radius: 999px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 10%, transparent 11%),
    linear-gradient(135deg, #38bdf8, #6366f1);
}

.od-side .od-panel__actions {
  display: flex;
  gap: 0.4rem;
  justify-content: stretch;
}

.od-side .od-panel__actions .od-btn {
  flex: 1;
}

.od-side .od-btn {
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 10px;
  white-space: nowrap;
}

.od-btn--block {
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
}

.od-side .od-btn--block {
  display: flex;
}

.od-panel__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* —— Single article (aligned with home feed shell) —— */
.od-feed--single {
  width: min(1120px, calc(100% - 2rem));
  margin-top: 1.25rem;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
}

.od-article {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(16, 32, 51, 0.06);
  box-shadow: 0 6px 18px rgba(31, 42, 55, 0.04);
  padding: 1.25rem 1.35rem 1.5rem;
  min-width: 0;
}

.od-article__status {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
}

.od-article__status.is-locked {
  color: #9a3412;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.od-article__status.is-open {
  color: #047857;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.od-article__header {
  margin-bottom: 0.85rem;
}

.od-article__cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.od-article__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  color: var(--od-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.od-article__meta {
  margin: 0;
}

.od-article__cover {
  margin: 0.85rem 0 1.15rem;
  border-radius: 14px;
  overflow: hidden;
  background: #e8edf5;
}

.od-article__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.od-article__content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
}

.od-article__content > *:first-child {
  margin-top: 0;
}

.od-article__content > *:last-child {
  margin-bottom: 0;
}

.od-article__content h2,
.od-article__content h3 {
  color: var(--od-text);
  line-height: 1.3;
}

.od-article__content a {
  color: #6d5efc;
}

.od-article__content a.od-paybox__but,
.od-article__content a.od-resource__btn,
.entry-content a.od-btn--primary,
.entry-content a.od-btn--secondary {
  color: #fff;
  text-decoration: none;
}

.entry-content a.od-btn--ghost {
  color: var(--od-text);
  text-decoration: none;
}

.entry-content .od-pricing__perks,
.entry-content .od-hub__list ul {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.od-article__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
}

/* Prev / next */
.od-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.od-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  border: 1px solid rgba(16, 32, 51, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.od-post-nav__item:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(109, 94, 252, 0.12);
  color: inherit;
}

.od-post-nav__item--next {
  text-align: right;
  align-items: flex-end;
}

.od-post-nav__item--muted {
  opacity: 0.55;
  cursor: default;
  background: #f1f5f9;
}

.od-post-nav__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--od-muted);
}

.od-post-nav__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--od-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related below article */
.od-related {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(16, 32, 51, 0.08);
}

.od-related__head {
  margin-bottom: 0.85rem;
}

.od-related__head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--od-text);
}

.od-related__head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--od-muted);
}

.od-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.od-related__tile {
  min-height: 0;
}

/* Comments under the article */
.od-comments {
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.06);
  box-shadow: 0 8px 22px rgba(16, 32, 51, 0.05);
}

.od-comments__head {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(16, 32, 51, 0.06);
}

.od-comments__head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--od-text);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.od-comments__head h2 small {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--od-muted);
}

.od-comments__head p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--od-muted);
}

.od-comments__gate {
  text-align: center;
  padding: 1.25rem 0.75rem;
  border-radius: 12px;
  background: #f8fafc;
  margin-bottom: 1rem;
}

.od-comments__gate p {
  margin: 0 0 0.85rem;
  color: var(--od-muted);
}

.od-comments__gate-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.od-comments__as,
.od-comments__hint {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--od-muted);
}

.od-comments__field {
  margin: 0 0 0.75rem;
}

.od-comments__textarea {
  width: 100%;
  min-height: 110px;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 32, 51, 0.12);
  background: #f8fafc;
  color: var(--od-text);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.od-comments__textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.od-comments__form .form-submit {
  margin: 0;
}

.od-comments__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.od-comments__list .children {
  list-style: none;
  margin: 0.75rem 0 0 1.1rem;
  padding: 0;
}

.od-comment {
  margin: 0 0 0.9rem;
}

.od-comment__body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(16, 32, 51, 0.06);
}

.od-comment__avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
}

.od-comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.35rem;
}

.od-comment__author {
  font-size: 0.92rem;
  color: var(--od-text);
}

.od-comment__time {
  font-size: 0.78rem;
  color: var(--od-muted);
}

.od-comment__content {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--od-text);
  word-break: break-word;
}

.od-comment__content p {
  margin: 0 0 0.4rem;
}

.od-comment__pending {
  color: var(--od-warn);
  font-size: 0.85rem;
}

.od-comment__reply {
  margin-top: 0.35rem;
}

.od-comment__reply a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--od-accent);
  text-decoration: none;
}

.od-comments__empty,
.od-comments__closed {
  margin: 0.75rem 0 0;
  color: var(--od-muted);
  font-size: 0.9rem;
}

.od-comments__pager {
  margin-top: 0.75rem;
}

@media (max-width: 900px) {
  .od-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .od-post-nav {
    grid-template-columns: 1fr;
  }

  .od-post-nav__item--next {
    text-align: left;
    align-items: flex-start;
  }

  .od-related__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .od-comments {
    padding: 1rem;
  }
}

/* Sidebar horizontal recommendation cards */
.od-panel--recs {
  padding: 1.1rem 1.1rem 1.15rem;
}

.od-panel--recs .od-rec-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.od-rec {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  border: 1px solid rgba(16, 32, 51, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.od-rec:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 8px 18px rgba(109, 94, 252, 0.12);
  color: inherit;
}

.od-rec__media {
  display: block;
  width: 112px;
  height: 78px;
  border-radius: 11px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8edf5;
}

.od-rec__media img,
.od-rec__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.od-rec__ph {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 45%),
    linear-gradient(135deg, #c4b5fd, #818cf8 55%, #38bdf8);
}

.od-rec__body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.1rem 0.2rem 0.1rem 0;
}

.od-rec__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.od-rec__cat {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--od-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-rec__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--od-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.od-rec__meta {
  font-size: 0.75rem;
  color: var(--od-muted);
}

.od-panel--recs > h3 {
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
}

.od-panel--recs > p {
  margin-bottom: 0.95rem;
}

.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 10px;
  padding: 0.65rem 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.od-btn--primary {
  background: linear-gradient(135deg, #6d5efc, #8b5cf6);
  color: #fff;
}

.od-btn--secondary {
  background: #1f2a37;
  color: #fff;
}

.od-btn--ghost {
  background: transparent;
  color: inherit;
  border-color: rgba(31, 42, 55, 0.18);
}

.od-btn--pay {
  background: linear-gradient(135deg, #ff7a45, #ff4d4f);
  color: #fff;
  min-width: 10rem;
}

.od-mobile-tabbar {
  display: none;
}

/* The child theme prints its own footer. Hide Blocksy's copyright row. */
.ct-footer {
  display: none !important;
}

/* —— Mobile layout —— */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  .od-hero--home {
    min-height: 0;
    padding: 1.35rem 0 2.25rem;
    overflow-x: clip;
    max-width: 100%;
  }

  /* Blocksy header search modal / field must not exceed viewport */
  .ct-header,
  #header,
  .ct-search-results,
  .ct-header [data-id="search"] {
    max-width: 100%;
  }

  .ct-search-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .ct-search-form input[type="search"],
  .ct-search-form input[type="text"] {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .od-hero__inner--center {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-inline: 1rem;
  }

  .od-brand-row {
    gap: 0.55rem;
    margin-bottom: 0.15rem;
    max-width: 100%;
  }

  .od-logo-mark svg {
    width: 36px;
    height: 36px;
  }

  .od-brand {
    font-size: 1.65rem;
    margin-bottom: 0.45rem;
  }

  .od-hero__lead--center {
    margin: 0 auto 0.95rem;
    font-size: 0.88rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
  }

  .od-hero-search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.22rem 0.22rem 0.22rem 0.85rem;
    box-sizing: border-box;
  }

  .od-hero-search__input {
    font-size: 16px; /* avoid iOS zoom; also keeps layout stable */
    padding: 0.48rem 0.3rem;
    min-width: 0;
    flex: 1 1 0%;
    width: 0; /* flex child: ignore intrinsic input min-width */
  }

  .od-hero-search__btn,
  .od-hero-search button.od-hero-search__btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important;
  }

  .od-hero-tags {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.35rem;
    margin-top: 0.75rem;
    padding-bottom: 0.15rem;
    max-width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
  }

  .od-hero-tags::-webkit-scrollbar {
    display: none;
  }

  .od-hero-tag,
  .od-hero-tags__label {
    flex: 0 0 auto;
  }

  .od-feature-row {
    width: min(100%, calc(100% - 1.25rem));
    margin: -1.1rem auto 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .od-feature-card {
    padding: 0.7rem 0.75rem;
    gap: 0.55rem;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(31, 42, 55, 0.07);
  }

  .od-feature-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .od-feature-card__icon svg {
    width: 16px;
    height: 16px;
  }

  .od-feature-card__text strong {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .od-feature-card__text small {
    font-size: 0.68rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .od-feed {
    width: min(100%, calc(100% - 1.25rem));
    margin: 0.25rem auto 2.5rem;
    gap: 0.85rem;
  }

  .od-section-head h2 {
    font-size: 1.1rem;
  }

  .od-section-head p {
    font-size: 0.82rem;
  }

  .od-main {
    min-width: 0;
  }

  .od-feed-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0.7rem;
    gap: 0.55rem;
    overflow: visible;
  }

  .od-feed-chips[role="tablist"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .od-feed-chips[role="tablist"] .od-feed-chip {
    justify-content: center;
    max-width: none;
  }

  .od-feed-chips--tags {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    width: 100%;
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
    gap: 0.4rem;
  }

  .od-feed-chips__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.05rem;
  }

  .od-feed-chips__scroll::-webkit-scrollbar {
    display: none;
  }

  .od-feed-chip--tag.is-extra {
    display: inline-flex;
  }

  .od-feed-chip {
    max-width: none;
    font-size: 0.78rem;
    padding: 0.32rem 0.7rem;
  }

  .od-feed-more {
    display: none;
  }

  .od-feed-sort {
    margin-left: 0;
    width: 100%;
  }

  .od-feed-sort__label {
    display: flex;
    width: 100%;
  }

  .od-feed-sort__label span {
    display: none;
  }

  .od-feed-sort select {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 2.4rem;
    font-size: 16px;
  }

  .od-card-grid--tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .od-tile {
    border-radius: 10px;
  }

  .od-tile__body {
    padding: 0.65rem 0.7rem 0.75rem;
    gap: 0.35rem;
  }

  .od-tile__body h3 {
    font-size: 13px;
    min-height: 0;
    -webkit-line-clamp: 2;
  }

  .od-tile__cat,
  .od-tile .od-card__meta {
    font-size: 11px;
  }

  .od-feed--single {
    margin-top: 0.75rem;
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .od-article {
    padding: 1rem 0.95rem 1.15rem;
    border-radius: 14px;
  }

  .od-article__title {
    font-size: 1.35rem;
  }

  .od-article__content {
    font-size: 0.98rem;
  }

  .od-rec {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .od-rec__media {
    width: 96px;
    height: 68px;
  }

  .od-side {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .od-side .od-panel {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
  }

  .od-side .od-panel--user {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "avatar name"
      "avatar text"
      "btn btn";
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    text-align: left;
    align-items: center;
  }

  .od-side .od-panel--user .od-panel__avatar {
    grid-area: avatar;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .od-side .od-panel--user h3 {
    grid-area: name;
    margin: 0;
  }

  .od-side .od-panel--user p {
    grid-area: text;
    margin: 0;
  }

  .od-side .od-panel--user .od-btn,
  .od-side .od-panel--user .od-panel__actions {
    grid-area: btn;
    margin-top: 0.45rem;
  }

  .od-home-pricing {
    margin: 0 0 1.25rem;
    padding: 1.75rem 0 2rem;
  }

  .od-home-pricing__inner {
    width: min(100%, calc(100% - 1.25rem));
  }

  .od-home-pricing .od-pricing__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1rem 0 0;
  }

  .od-home-pricing .od-pricing__card {
    padding: 1.05rem 1rem 1rem;
  }

  .od-home-pricing .od-pricing__perks {
    gap: 0.28rem;
    margin-bottom: 0.55rem;
  }

  .od-home-pricing .od-pricing__perks li {
    font-size: 0.8rem;
  }

  .od-card {
    grid-template-columns: 100px 1fr;
  }

  .od-card__thumb {
    width: 100px;
    height: 84px;
  }

  .od-mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    padding: 0.45rem 0.2rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid rgba(16, 32, 51, 0.08);
    box-shadow: 0 -8px 24px rgba(31, 42, 55, 0.06);
  }

  .od-mobile-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    min-width: 0;
    min-height: 3.35rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.1;
    padding: 0.15rem 0.2rem;
  }

  .od-mobile-tabbar__icon {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.75rem;
    color: inherit;
  }

  .od-mobile-tabbar__icon svg {
    display: block;
    width: 24px;
    height: 24px;
  }

  .od-tab-avatar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
    box-shadow: 0 0 0 1.5px currentColor;
  }

  .od-mobile-tabbar__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .od-mobile-tabbar a.is-active,
  .od-mobile-tabbar a:hover {
    color: #6d5efc;
  }

  .od-mobile-tabbar a.is-active .od-mobile-tabbar__icon {
    color: #6d5efc;
  }

  #categories {
    scroll-margin-top: 4.5rem;
    scroll-margin-bottom: 5.5rem;
  }


  html {
    scroll-padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  html body {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  #plans,
  #posts-pay,
  #od-feed {
    scroll-margin-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  /* Soften admin-bar overlap on small screens when logged in */
  body.admin-bar .od-mobile-tabbar {
    z-index: 99998;
  }
}

@media (max-width: 380px) {
  .od-feature-card__text small {
    display: none;
  }

  .od-card-grid--tiles {
    gap: 0.5rem;
  }

  .od-tile__body h3 {
    font-size: 12px;
  }
}

/* Homepage membership pricing */
.od-home-pricing {
  position: relative;
  margin: 0 0 3.5rem;
  padding: 2.75rem 0 3rem;
  background:
    radial-gradient(900px 280px at 15% 0%, rgba(124, 111, 247, 0.14), transparent 60%),
    radial-gradient(700px 240px at 90% 30%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f4ff 0%, #f3f5f9 100%);
  border-top: 1px solid rgba(124, 58, 237, 0.08);
}

.od-home-pricing__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.od-home-pricing .od-eyebrow {
  display: inline-flex;
  margin: 0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(124, 111, 247, 0.12);
  color: #6d5efc;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.od-home-pricing .od-pricing__card--featured .od-btn--primary {
  background: linear-gradient(135deg, #6d5efc, #9b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(109, 94, 252, 0.28);
}

.od-home-pricing .od-pricing__card--featured .od-btn--primary:hover {
  filter: brightness(1.05);
}

/* Sidebar categories (below Redeem) */
.od-panel--cats .od-home-cats__list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  max-height: min(28rem, 55vh);
  overflow: auto;
  padding-right: 0.15rem;
}

.od-panel--cats .od-home-cats__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(16, 32, 51, 0.06);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.od-panel--cats .od-home-cats__link:hover {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.35);
  color: inherit;
}

.od-panel--cats .od-home-cats__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--od-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-panel--cats .od-home-cats__count {
  flex: 0 0 auto;
  min-width: 1.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.od-panel--cats .od-home-cats__more {
  margin-top: 0.75rem;
}

.od-panel--cats .od-home-cats__more .od-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.od-panel--cats .od-home-cats__empty {
  margin: 0.35rem 0 0;
  color: var(--od-muted);
  font-size: 0.88rem;
}

/* Shared inner pages */
.od-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 1.25rem auto 2.5rem;
}

.od-page__head {
  margin-bottom: 1rem;
}

.od-page__head .od-eyebrow {
  display: inline-flex;
  margin: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(109, 94, 252, 0.12);
  color: #6d5efc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.od-page__head h1 {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--od-text);
}

.od-page__lead {
  margin: 0;
  max-width: 40rem;
  color: var(--od-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.od-page__body {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(16, 32, 51, 0.06);
  box-shadow: 0 6px 18px rgba(31, 42, 55, 0.04);
  padding: 1.25rem 1.35rem 1.5rem;
}

.od-page__body.is-plain {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.od-page .od-pagination {
  margin-top: 1.25rem;
}

.od-cat-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.od-cat-index .od-home-cats__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(16, 32, 51, 0.06);
  box-shadow: 0 6px 16px rgba(31, 42, 55, 0.04);
  text-decoration: none;
  color: inherit;
}

.od-cat-index .od-home-cats__link:hover {
  border-color: rgba(109, 94, 252, 0.35);
  color: inherit;
}

.od-cat-index .od-home-cats__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-cat-index .od-home-cats__count {
  flex: 0 0 auto;
  min-width: 1.6rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(109, 94, 252, 0.12);
  color: #6d5efc;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.od-page .od-home-cats__more {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .od-page {
    width: min(1120px, calc(100% - 1.25rem));
    margin-top: 0.85rem;
  }

  .od-page__body {
    padding: 1rem 0.95rem 1.15rem;
  }

  .od-cat-index {
    grid-template-columns: 1fr;
  }
}

/* Site footer: friends + contact + legal */
.od-site-footer {
  margin: 2rem 0 0;
  padding: 1.75rem 1rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: #0f172a;
  color: #cbd5e1;
}

.od-site-footer__inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.35rem;
}

.od-site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem 1.75rem;
  align-items: start;
}

.od-site-footer__title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.od-site-footer__muted {
  margin: 0 0 0.75rem;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
}

.od-friend-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.od-friend-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease, color 0.15s ease;
}

.od-friend-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.od-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.od-contact-list li {
  display: grid;
  gap: 0.12rem;
}

.od-contact-list__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.od-contact-list a {
  color: #93c5fd;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.od-contact-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.od-site-footer__bottom {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.od-site-footer__brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.od-site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font-size: 0.88rem;
}

.od-site-footer__nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.od-site-footer__nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.od-site-footer__sep {
  opacity: 0.45;
}

.od-site-footer__note {
  font-size: 0.78rem;
  color: #94a3b8;
  max-width: 36rem;
}

@media (max-width: 768px) {
  .od-site-footer {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }

  .od-site-footer__grid {
    grid-template-columns: 1fr;
  }
}
