
body.rcg-medium-page #primary.rcg-medium-main,
body.rcg-medium-page.ast-plain-container.ast-no-sidebar #primary.rcg-medium-main {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.rcg-medium-page #content > .ast-container {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  display: block;
}

body.rcg-medium-page .rcg-medium-title-hero.header-title-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: clamp(500px, 30vw, 900px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  background-color: #42362f;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--rcg-medium-title-hero-position, center center);
  opacity: .98;
}

body.rcg-medium-page .rcg-medium-title-hero.header-title-wrapper > .e-con-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: inherit;
  margin: 0 auto;
  padding: 0;
}

body.rcg-medium-page .rcg-medium-title-hero .hero-title {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 10px 0 !important;
  border-radius: 0 0 14px 14px;
  background: #c74235;
  background-clip: padding-box;
  box-shadow: 0 0 10px 8px rgba(0, 0, 0, 0.35);
  opacity: .98;
  text-align: center;
}

body.rcg-medium-page .rcg-medium-title-hero .hero-title .elementor-heading-title,
body.rcg-medium-page .rcg-medium-title-hero .hero-title :is(h1,h2) {
  margin: 0;
  color: #fff !important;
  font-family: inherit !important;
  font-size: clamp(1.2rem, 4vw, 2.25rem);
  font-weight: 800 !important;
  line-height: 1.4;
  letter-spacing: .1rem;
  text-align: center;
  text-transform: uppercase;
}

.rcg-medium-page-intro.body-wrapper {
  padding: 44px 25px 56px;
  background: #fffaf7;
}

.rcg-medium-page-intro .rcg-medium-hero-copy h2,
.rcg-medium-page-intro > .rcg-medium-container > h2,
.rcg-medium-page-intro .rcg-medium-container > h2 {
  margin: 0 0 16px;
  color: var(--rcg-heading-color, var(--rcg-red));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
}

.rcg-medium-page-intro .rcg-medium-hero-copy > p:not(.rcg-medium-eyebrow),
.rcg-medium-page-intro .rcg-medium-container > p:not(.rcg-medium-eyebrow),
.rcg-medium-page-intro--detail .rcg-medium-detail-hero-grid > div > p:not(.rcg-medium-eyebrow) {
  max-width: 820px;
  margin: 0;
  color: var(--rcg-muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

@media (max-width: 1024px) {
  body.rcg-medium-page .rcg-medium-title-hero.header-title-wrapper {
    min-height: clamp(280px, 60vw, 500px);
  }

  body.rcg-medium-page .rcg-medium-title-hero .hero-title {
    box-shadow: 0 0 8px 6px rgba(0, 0, 0, 0.35);
  }

  .rcg-medium-page-intro.body-wrapper {
    padding: 36px 26px;
  }
}

@media (max-width: 767px) {
  body.rcg-medium-page .rcg-medium-title-hero.header-title-wrapper {
    background-position: var(--rcg-medium-title-hero-mobile-position, var(--rcg-medium-title-hero-position, center center));
  }

  body.rcg-medium-page .rcg-medium-title-hero .hero-title {
    box-shadow: 0 0 6px 4px rgba(0, 0, 0, 0.35);
  }

  .rcg-medium-page-intro.body-wrapper {
    padding: 28px 16px;
  }

  .rcg-medium-page-intro .rcg-medium-hero-copy h2,
  .rcg-medium-page-intro > .rcg-medium-container > h2,
  .rcg-medium-page-intro .rcg-medium-container > h2 {
    font-size: 1.75rem !important;
  }
}

.rcg-medium-main {
  --rcg-red: #c74235;
  --rcg-red-dark: #a9342a;
  --rcg-ink: #24324a;
  --rcg-heading-font-family: "Libre Baskerville", Georgia, serif;
  --rcg-heading-color: #c74235;
  --rcg-heading-ink-color: #24324a;
  --rcg-medium-card-image-ratio: 1 / 1;
  --rcg-muted: rgba(36, 50, 74, 0.72);
  --rcg-cream: #fffaf7;
  --rcg-sand: #f6eee8;
  --rcg-warm: #fbf4ef;
  --rcg-line: rgba(36, 50, 74, 0.12);
  --rcg-shadow: 0 22px 60px rgba(36, 50, 74, 0.10);
  background: #fffaf7;
  color: var(--rcg-ink);
}

.rcg-medium-main * {
  box-sizing: border-box;
}

/* Body content uses the site's standard body font (Roboto) so the Medium Guide
 * matches other rcg-refresh pages. Set it on the main element only (high
 * specificity beats theme #primary overrides); body paragraphs/list items
 * inherit it. Headings (h1-h4) keep Libre Baskerville via their own
 * --rcg-heading-font-family rules, and links inside headings inherit that. */
body.rcg-medium-page #primary.rcg-medium-main {
  font-family: Roboto, Arial, sans-serif;
}

/* Force every heading on the Medium Guide to use the heading font variable
   (defaults to "Libre Baskerville", Georgia, serif). Without this, h2/h3 without
   their own font-family rule inherit Roboto from the main element above. */
body.rcg-medium-page #primary.rcg-medium-main h1,
body.rcg-medium-page #primary.rcg-medium-main h2,
body.rcg-medium-page #primary.rcg-medium-main h3,
body.rcg-medium-page #primary.rcg-medium-main h4,
body.rcg-medium-page #primary.rcg-medium-main h5,
body.rcg-medium-page #primary.rcg-medium-main h6 {
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
}

.rcg-medium-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.rcg-medium-eyebrow,
.rcg-medium-card__kicker {
  margin: 0 0 12px;
  color: var(--rcg-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.rcg-medium-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 8vw, 110px) 0 clamp(44px, 6vw, 82px);
  background:
    radial-gradient(circle at 8% 12%, rgba(199, 66, 53, 0.16), transparent 34%),
    radial-gradient(circle at 90% 5%, rgba(36, 50, 74, 0.10), transparent 30%),
    linear-gradient(135deg, #fffaf7 0%, #ffffff 47%, #f6eee8 100%);
  border-bottom: 1px solid var(--rcg-line);
}

.rcg-medium-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(199, 66, 53, 0.25);
  border-radius: 999px;
  pointer-events: none;
}

.rcg-medium-hero-layout,
.rcg-medium-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.rcg-medium-hero h1 {
  max-width: 900px;
  margin: 0 0 18px;
  color: var(--rcg-heading-ink-color, var(--rcg-ink));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.rcg-medium-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--rcg-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.7;
}

.rcg-medium-hero-card {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(199, 66, 53, 0.22);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 247, 0.84)),
    repeating-linear-gradient(135deg, rgba(199, 66, 53, 0.04) 0 1px, transparent 1px 11px);
  box-shadow: var(--rcg-shadow);
}

.rcg-medium-hero-card h2 {
  margin: 0 0 14px;
  color: var(--rcg-heading-ink-color, var(--rcg-ink));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.rcg-medium-hero-card p {
  font-size: 16px;
}

.rcg-medium-hero-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.rcg-medium-hero-card__links a,
.rcg-medium-jump-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(199, 66, 53, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--rcg-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.rcg-medium-hero-card__links a:hover,
.rcg-medium-hero-card__links a:focus,
.rcg-medium-jump-nav a:hover,
.rcg-medium-jump-nav a:focus {
  background: var(--rcg-red);
  color: #fff;
}

.rcg-medium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Geometry and type here are deliberately identical to `.rcg-refresh .rcg-btn`
 * in rcg-refresh-global.css.
 *
 * Two button systems were competing. In the page hero the markup carries both
 * classes, and `.rcg-refresh .rcg-btn` (two classes) outranks
 * `.rcg-medium-button` (one), so the global values won and those buttons matched
 * the rest of the site. Everywhere else on the Medium Guide — medium cards, the
 * guide modal — only `.rcg-medium-button` is applied, so those buttons rendered
 * as 999px pills with double the letter-spacing. Same page, two button shapes,
 * depending on whether `.rcg-btn` happened to be present.
 *
 * Matching the baseline resolves that and also defuses a trap: previously, any
 * edit that raised this rule's specificity would have silently turned the hero
 * buttons into pills. Keep these values in sync with `.rcg-btn`. */
.rcg-medium-button,
.rcg-medium-button:visited,
.rcg-accordion__button,
.rcg-accordion__button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid var(--rcg-red);
  border-radius: 8px;
  background: var(--rcg-red);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.rcg-medium-button:hover,
.rcg-medium-button:focus,
.rcg-accordion__button:hover,
.rcg-accordion__button:focus {
  transform: translateY(-1px);
  background: var(--rcg-red-dark);
  color: #fff;
}

body.rcg-medium-page .rcg-medium-main a.rcg-medium-button:not(.rcg-medium-button--ghost),
body.rcg-medium-page .rcg-medium-main a.rcg-medium-button:not(.rcg-medium-button--ghost):visited,
body.rcg-medium-page .rcg-medium-main a.rcg-medium-button:not(.rcg-medium-button--ghost):active {
  background: var(--rcg-red) !important;
  border-color: var(--rcg-red) !important;
  color: #fff !important;
}

body.rcg-medium-page .rcg-medium-main a.rcg-medium-button:not(.rcg-medium-button--ghost):hover,
body.rcg-medium-page .rcg-medium-main a.rcg-medium-button:not(.rcg-medium-button--ghost):focus {
  background: var(--rcg-red-dark) !important;
  border-color: var(--rcg-red-dark) !important;
  color: #fff !important;
}

.rcg-medium-button--ghost,
.rcg-medium-button--ghost:visited {
  background: transparent;
  color: var(--rcg-red);
}

.rcg-medium-button--ghost:hover,
.rcg-medium-button--ghost:focus {
  background: rgba(199, 66, 53, 0.08);
  color: var(--rcg-red-dark);
}

.rcg-medium-intro-strip {
  padding: clamp(28px, 5vw, 52px) 0;
  background: #fff;
  border-bottom: 1px solid var(--rcg-line);
}

.rcg-medium-intro-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.rcg-medium-intro-grid h2 {
  margin: 0;
  color: var(--rcg-heading-ink-color, var(--rcg-ink));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.07;
}

.rcg-medium-intro-grid > p {
  margin: 0;
  color: var(--rcg-muted);
  font-size: 17px;
  line-height: 1.75;
}

.rcg-medium-jump-nav {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.rcg-medium-section {
  padding: clamp(32px, 5vw, 72px) 0;
}

.rcg-medium-section--warm,
.rcg-medium-section--guide-notes {
  background: var(--rcg-sand);
  border-top: 1px solid var(--rcg-line);
  border-bottom: 1px solid var(--rcg-line);
}

.rcg-medium-section--library {
  background:
    linear-gradient(180deg, #fffaf7 0%, #fff 44%, #fffaf7 100%);
}

.rcg-medium-section-head {
  max-width: 760px;
  margin: 0 0 32px;
}

.rcg-medium-section-head--centered {
  max-width: 830px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.rcg-medium-section-head h2,
.rcg-medium-two-col h2,
.rcg-medium-detail-copy h2,
.rcg-medium-family__head h3 {
  margin: 0 0 12px;
  color: var(--rcg-heading-ink-color, var(--rcg-ink));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.rcg-medium-section-head p,
.rcg-medium-two-col p,
.rcg-medium-detail-copy p,
.rcg-medium-aside p,
.rcg-purchase-type-card p,
.rcg-medium-card p,
.rcg-medium-family__head p,
.rcg-medium-note-card p {
  color: var(--rcg-muted);
  font-size: 16px;
  line-height: 1.7;
}

.rcg-medium-note-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rcg-medium-note-card,
.rcg-medium-aside,
.rcg-purchase-type-card,
.rcg-medium-card {
  border: 1px solid var(--rcg-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(36, 50, 74, 0.07);
}

.rcg-medium-note-card,
.rcg-medium-aside,
.rcg-purchase-type-card {
  padding: 26px;
}

.rcg-medium-note-card--small span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(199, 66, 53, 0.10);
  color: var(--rcg-red);
  font-size: 12px;
  font-weight: 900;
}

.rcg-medium-note-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--rcg-heading-ink-color, var(--rcg-ink));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: 24px;
  line-height: 1.1;
}

.rcg-purchase-type-grid,
.rcg-medium-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rcg-medium-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rcg-medium-family {
  position: relative;
  padding: clamp(34px, 6vw, 62px) 0;
  border-top: 1px solid rgba(36, 50, 74, 0.10);
}

.rcg-medium-family:first-child {
  border-top: 0;
  padding-top: 0;
}

.rcg-medium-family__head {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 42px);
  margin-bottom: 24px;
  align-items: end;
}

.rcg-medium-family__head .rcg-medium-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.rcg-medium-family__head h3,
.rcg-medium-family__head p {
  margin-bottom: 0;
}

.rcg-medium-grid--editorial {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rcg-medium-card {
  position: relative;
  display: flex;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.rcg-medium-card:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 66, 53, 0.28);
  box-shadow: 0 26px 66px rgba(36, 50, 74, 0.13);
}

.rcg-medium-card--featured {
  grid-column: span 2;
  min-height: 280px;
}

.rcg-medium-card__visual {
  position: relative;
  display: block;
  flex: 0 0 38%;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, rgba(199, 66, 53, 0.20), transparent 33%),
    linear-gradient(145deg, #f4e4dc, #fffaf7 55%, #e9d4c9);
  text-decoration: none;
}

.rcg-medium-grid:not(.rcg-medium-grid--editorial) .rcg-medium-card,
.rcg-medium-grid--compact .rcg-medium-card {
  flex-direction: column;
}

.rcg-medium-grid:not(.rcg-medium-grid--editorial) .rcg-medium-card__visual,
.rcg-medium-grid--compact .rcg-medium-card__visual {
  flex-basis: auto;
  min-height: 0;
  aspect-ratio: var(--rcg-medium-card-image-ratio, 1 / 1);
}

.rcg-medium-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.rcg-medium-card:hover .rcg-medium-card__visual img {
  transform: scale(1.04);
}

.rcg-medium-card__mark {
  position: absolute;
  inset: auto 18px 16px auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(199, 66, 53, 0.26);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  color: var(--rcg-red);
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: 30px;
  font-weight: 700;
}

.rcg-medium-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(20px, 3vw, 28px);
}

.rcg-medium-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--rcg-red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rcg-medium-card h3,
.rcg-purchase-type-card h3,
.rcg-medium-aside h3 {
  margin: 0 0 10px;
  color: var(--rcg-heading-ink-color, var(--rcg-ink));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
}

.rcg-medium-card h3 a {
  color: var(--rcg-ink);
  text-decoration: none;
}

.rcg-medium-card p {
  margin: 0 0 20px;
}

.rcg-medium-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: auto;
}

.rcg-purchase-type-card a,
.rcg-medium-card__link,
.rcg-medium-card__archive,
.rcg-medium-aside a {
  color: var(--rcg-red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(199, 66, 53, 0.28);
}

.rcg-medium-card__archive {
  color: rgba(36, 50, 74, 0.66);
  border-bottom-color: rgba(36, 50, 74, 0.20);
}

.rcg-purchase-type-card a:hover,
.rcg-medium-card__link:hover,
.rcg-medium-card__archive:hover,
.rcg-medium-aside a:hover {
  color: var(--rcg-red-dark);
  border-bottom-color: currentColor;
}

.rcg-medium-two-col,
.rcg-medium-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.rcg-medium-detail-image {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(36, 50, 74, 0.18);
}

.rcg-medium-detail-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.rcg-medium-detail-image figcaption {
  padding: 10px 16px 14px;
  color: rgba(36, 50, 74, 0.66);
  font-size: 13px;
  text-align: center;
}

.rcg-medium-detail-copy {
  max-width: 760px;
}

.rcg-medium-detail-copy h2:not(:first-child) {
  margin-top: 34px;
}

.rcg-medium-aside {
  position: sticky;
  top: 110px;
}


.rcg-medium-ajax-detail[hidden] {
  display: none !important;
}

.rcg-medium-ajax-detail {
  position: relative;
  background: #fffaf7;
  border-top: 1px solid var(--rcg-line);
  border-bottom: 1px solid var(--rcg-line);
}

.rcg-medium-ajax-detail.is-loading {
  min-height: 220px;
}

.rcg-medium-ajax-detail.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 250, 247, 0.72);
  pointer-events: none;
}

.rcg-medium-ajax-detail__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.rcg-medium-detail-fragment .rcg-medium-page-intro--detail {
  background: #fff;
}

.rcg-medium-card.is-active {
  border-color: rgba(199, 66, 53, 0.46);
  box-shadow: 0 26px 66px rgba(199, 66, 53, 0.16);
}

.rcg-medium-type-link[aria-current="true"] {
  color: var(--rcg-red-dark);
}

.rcg-medium-hero-card__links .rcg-medium-type-link[aria-current="true"],
.rcg-medium-card__link[aria-current="true"] {
  background: var(--rcg-red);
  color: #fff;
  border-color: var(--rcg-red);
}

.rcg-medium-admin-list {
  display: grid;
  gap: 12px;
}

.rcg-medium-admin-item {
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #fff;
}

.rcg-medium-admin-item summary {
  cursor: pointer;
  padding: 14px 16px;
}

.rcg-medium-admin-item .form-table {
  margin: 0 16px 18px;
}

body.rcg-medium-card-layout-square .rcg-medium-grid--editorial .rcg-medium-card {
  flex-direction: column;
  min-height: 100%;
}

body.rcg-medium-card-layout-square .rcg-medium-grid--editorial .rcg-medium-card--featured {
  min-height: 0;
}

body.rcg-medium-card-layout-square .rcg-medium-grid--editorial .rcg-medium-card__visual {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--rcg-medium-card-image-ratio, 1 / 1);
}

body.rcg-medium-card-layout-square .rcg-medium-grid--editorial .rcg-medium-card__body {
  min-height: 0;
}

body.rcg-medium-card-layout-split .rcg-medium-grid--editorial .rcg-medium-card__visual {
  aspect-ratio: auto;
}

.rcg-medium-main h1,
.rcg-medium-main h2,
.rcg-medium-main h3,
.rcg-medium-page :where(.rcg-medium-page-intro, .rcg-medium-section, .rcg-medium-card, .rcg-medium-detail-fragment) h1,
.rcg-medium-page :where(.rcg-medium-page-intro, .rcg-medium-section, .rcg-medium-card, .rcg-medium-detail-fragment) h2,
.rcg-medium-page :where(.rcg-medium-page-intro, .rcg-medium-section, .rcg-medium-card, .rcg-medium-detail-fragment) h3 {
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
}

@media (max-width: 1080px) {
  .rcg-purchase-type-grid,
  .rcg-medium-grid,
  .rcg-medium-grid--compact,
  .rcg-medium-grid--editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rcg-medium-card--featured {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {
  .rcg-medium-container {
    width: min(100% - 28px, 1180px);
  }

  .rcg-medium-hero-layout,
  .rcg-medium-two-col,
  .rcg-medium-detail-layout,
  .rcg-medium-detail-hero-grid,
  .rcg-medium-intro-grid,
  .rcg-medium-family__head {
    grid-template-columns: 1fr;
  }

  .rcg-medium-hero-card {
    padding: 22px;
  }

  .rcg-medium-note-row {
    grid-template-columns: 1fr;
  }

  .rcg-medium-aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .rcg-medium-hero {
    padding-top: 46px;
  }

  .rcg-medium-hero h1 {
    font-size: 42px;
  }

  .rcg-purchase-type-grid,
  .rcg-medium-grid,
  .rcg-medium-grid--compact,
  .rcg-medium-grid--editorial {
    grid-template-columns: 1fr;
  }

  .rcg-medium-card,
  .rcg-medium-card--featured {
    grid-column: auto;
    flex-direction: column;
  }

  .rcg-medium-card__visual {
    flex-basis: auto;
    min-height: 0;
    aspect-ratio: var(--rcg-medium-card-image-ratio, 1 / 1);
  }
}

/* v0.2.25: cleaner Mediums library layout */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-section--library {
  background: #fff;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-section-head--centered {
  margin-bottom: clamp(30px, 5vw, 58px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-family {
  padding: clamp(34px, 5vw, 58px) 0;
  border-top: 1px solid rgba(36, 50, 74, 0.10);
  background: transparent;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-family:first-of-type {
  padding-top: 0;
  border-top: 0;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-family__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(280px, 0.55fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: end;
  margin-bottom: clamp(18px, 3vw, 30px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-family__title .rcg-medium-eyebrow {
  margin-bottom: 10px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-family__head h3 {
  margin-bottom: 0;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-family__summary {
  display: grid;
  gap: 12px;
  justify-items: start;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-family__summary p {
  margin: 0;
  max-width: 650px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-family__count {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(36, 50, 74, 0.12);
  border-radius: 999px;
  background: #fffaf7;
  color: rgba(36, 50, 74, 0.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-grid--editorial {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(18px, 2.6vw, 30px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-grid--editorial .rcg-medium-card,
body.rcg-medium-page.rcg-mediums-index-page.rcg-medium-card-layout-gallery .rcg-medium-grid--editorial .rcg-medium-card,
body.rcg-medium-page.rcg-mediums-index-page.rcg-medium-card-layout-square .rcg-medium-grid--editorial .rcg-medium-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(36, 50, 74, 0.08);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 66, 53, 0.25);
  box-shadow: 0 24px 60px rgba(36, 50, 74, 0.12);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card--featured {
  grid-column: auto;
  min-height: 100%;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-grid--editorial .rcg-medium-card__visual,
body.rcg-medium-page.rcg-mediums-index-page.rcg-medium-card-layout-gallery .rcg-medium-grid--editorial .rcg-medium-card__visual,
body.rcg-medium-page.rcg-mediums-index-page.rcg-medium-card-layout-square .rcg-medium-grid--editorial .rcg-medium-card__visual {
  flex: 0 0 auto;
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--rcg-medium-card-image-ratio, 1 / 1);
  border-bottom: 1px solid rgba(36, 50, 74, 0.08);
  background: #fbf7f3;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card:hover .rcg-medium-card__visual img {
  transform: scale(1.025);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: clamp(18px, 2.5vw, 24px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__meta {
  justify-content: flex-start;
  margin-bottom: 10px;
  color: var(--rcg-red);
  font-size: 10px;
  letter-spacing: 0.16em;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card h3 {
  margin-bottom: 10px;
  font-size: clamp(21px, 2vw, 27px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card p {
  margin-bottom: 20px;
  color: rgba(36, 50, 74, 0.72);
  font-size: 15px;
  line-height: 1.62;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(36, 50, 74, 0.08);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__link,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__archive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid rgba(199, 66, 53, 0.28);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__link {
  background: var(--rcg-red);
  border-color: var(--rcg-red);
  color: #fff;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__archive {
  background: #fff;
  color: rgba(36, 50, 74, 0.72);
  border-color: rgba(36, 50, 74, 0.16);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__link:hover,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__link:focus {
  background: var(--rcg-red-dark);
  border-color: var(--rcg-red-dark);
  color: #fff;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__archive:hover,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__archive:focus {
  border-color: rgba(199, 66, 53, 0.38);
  color: var(--rcg-red-dark);
}

body.rcg-medium-page.rcg-mediums-index-page.rcg-medium-card-layout-split .rcg-medium-grid--editorial .rcg-medium-card {
  flex-direction: row;
}

body.rcg-medium-page.rcg-mediums-index-page.rcg-medium-card-layout-split .rcg-medium-grid--editorial .rcg-medium-card__visual {
  flex: 0 0 42%;
  min-height: 100%;
  aspect-ratio: auto;
}

@media (max-width: 780px) {
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-family__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__link,
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-card__archive {
    width: 100%;
  }

  body.rcg-medium-page.rcg-mediums-index-page.rcg-medium-card-layout-split .rcg-medium-grid--editorial .rcg-medium-card {
    flex-direction: column;
  }

  body.rcg-medium-page.rcg-mediums-index-page.rcg-medium-card-layout-split .rcg-medium-grid--editorial .rcg-medium-card__visual {
    flex: 0 0 auto;
    min-height: 0;
    aspect-ratio: var(--rcg-medium-card-image-ratio, 1 / 1);
  }
}

/* Preserve the manually designed Elementor hero title typography on the Mediums page. */
body.rcg-medium-page .rcg-medium-title-hero .hero-title .elementor-heading-title,
body.rcg-medium-page .rcg-medium-title-hero .hero-title :is(h1, h2, h3) {
  font-family: inherit !important;
}

/* v0.2.28: compact learning browser for /mediums/ */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-section--learning-browser {
  padding: clamp(44px, 6vw, 86px) 0 clamp(56px, 7vw, 110px);
  background:
    radial-gradient(circle at top left, rgba(199, 66, 53, 0.08), transparent 34%),
    linear-gradient(180deg, #fffaf7 0%, #ffffff 58%);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-head {
  max-width: 980px;
  margin: 0 0 clamp(28px, 4vw, 46px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-head h2 {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--rcg-heading-color, var(--rcg-red));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-head > p:not(.rcg-medium-eyebrow) {
  max-width: 840px;
  margin: 0;
  color: rgba(36, 50, 74, 0.72);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.75;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-browser {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__nav {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(36, 50, 74, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(36, 50, 74, 0.08);
  backdrop-filter: blur(8px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__select-label {
  display: block;
  margin: 0 0 8px;
  color: rgba(36, 50, 74, 0.68);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__select {
  display: none;
  width: 100%;
  min-height: 48px;
  margin: 0 0 14px;
  padding: 12px 44px 12px 14px;
  border: 1px solid rgba(36, 50, 74, 0.22);
  border-radius: 14px;
  background-color: #fff;
  color: var(--rcg-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2324324a' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(36, 50, 74, 0.10);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__quick-link,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__type {
  text-decoration: none !important;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__quick-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(199, 66, 53, 0.24);
  border-radius: 999px;
  background: #fffaf7;
  color: var(--rcg-red-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__groups {
  display: grid;
  gap: 18px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__group h3 {
  margin: 0 0 8px;
  color: rgba(36, 50, 74, 0.52);
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__types {
  display: grid;
  gap: 4px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__type {
  position: relative;
  display: block;
  width: 100%;
  padding: 7px 10px 7px 0;
  border-radius: 10px;
  color: rgba(36, 50, 74, 0.64);
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__type:hover,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__type:focus,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__quick-link:hover,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__quick-link:focus {
  color: var(--rcg-red-dark);
  transform: translateX(5px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__type[aria-current="true"] {
  color: var(--rcg-ink);
  opacity: 1;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__type[aria-current="true"]::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--rcg-red);
  vertical-align: middle;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__quick-link[aria-current="true"] {
  background: var(--rcg-red);
  border-color: var(--rcg-red);
  color: #fff;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__panel.rcg-medium-ajax-detail {
  min-height: 620px;
  overflow: hidden;
  border: 3px solid rgba(36, 50, 74, 0.92);
  border-radius: 34px;
  background: #f8f4ef;
  box-shadow: 0 26px 70px rgba(36, 50, 74, 0.13);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__panel.rcg-medium-ajax-detail.is-loading::before {
  z-index: 3;
  background: rgba(248, 244, 239, 0.72);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 48px);
  min-height: 620px;
  padding: clamp(24px, 4vw, 42px);
  align-items: center;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: clamp(16px, 3vw, 30px);
  border-radius: 24px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(36, 50, 74, 0.08), 0 18px 46px rgba(36, 50, 74, 0.08);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__media img {
  display: block;
  width: 100%;
  max-height: 470px;
  object-fit: contain;
  object-position: center;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__content h2 {
  margin: 0 0 14px;
  color: var(--rcg-heading-color, var(--rcg-red));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: clamp(2.25rem, 4.7vw, 4.6rem);
  font-weight: 800;
  line-height: 0.96;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__intro {
  max-width: 760px;
  margin: 0 0 clamp(20px, 3vw, 30px);
  color: rgba(36, 50, 74, 0.82);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 650;
  line-height: 1.48;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__notes {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__notes article {
  padding: 14px 0 0;
  border-top: 1px solid rgba(36, 50, 74, 0.12);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__notes span {
  display: block;
  margin-bottom: 5px;
  color: var(--rcg-red-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__notes p {
  margin: 0;
  color: rgba(36, 50, 74, 0.72);
  font-size: 15px;
  line-height: 1.58;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1024px) {
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-browser {
    grid-template-columns: 1fr;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__nav {
    position: static;
    max-height: none;
    overflow: visible;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__select {
    display: block;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__quick {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__groups {
    display: none;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__media {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-section--learning-browser {
    padding-top: 34px;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__panel.rcg-medium-ajax-detail {
    min-height: 0;
    border-width: 2px;
    border-radius: 24px;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail {
    padding: 18px;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__media {
    min-height: 220px;
    padding: 14px;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__content h2 {
    font-size: clamp(2rem, 11vw, 3.15rem);
  }
}

/* Compact medium browser refinement: joined sidebar + guide panel */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-head {
  margin-bottom: clamp(24px, 4vw, 38px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-browser {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(199, 66, 53, 0.18);
  border-radius: 32px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.95) 29%, #f8f4ef 29%, #f8f4ef 100%);
  box-shadow: 0 24px 68px rgba(36, 50, 74, 0.10);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__nav {
  top: 24px;
  max-height: calc(100vh - 48px);
  padding: clamp(18px, 2.5vw, 26px);
  border: 0;
  border-right: 1px solid rgba(36, 50, 74, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  backdrop-filter: none;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__quick {
  padding-bottom: 20px;
  border-bottom-color: rgba(199, 66, 53, 0.14);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__group + .rcg-medium-browser__group {
  padding-top: 4px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__type {
  padding-left: 10px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__type:hover,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__type:focus {
  background: rgba(199, 66, 53, 0.06);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__panel.rcg-medium-ajax-detail {
  min-height: 620px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail {
  min-height: 620px;
  padding: clamp(26px, 4.2vw, 54px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__media {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(36, 50, 74, 0.08), 0 16px 42px rgba(36, 50, 74, 0.08);
}

@media (max-width: 1024px) {
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-browser {
    grid-template-columns: 1fr;
    border-radius: 26px;
    background: #f8f4ef;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__nav {
    border-right: 0;
    border-bottom: 1px solid rgba(36, 50, 74, 0.12);
    background: rgba(255, 255, 255, 0.96);
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__panel.rcg-medium-ajax-detail {
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 640px) {
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-browser {
    border-radius: 22px;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__panel.rcg-medium-ajax-detail {
    border-width: 0;
    border-radius: 0;
  }
}

/* v0.2.35: medium browser discovery extension and unified sidebar refinement */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-browser{
  overflow:visible;
  background:#f8f4ef;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__panel.rcg-medium-ajax-detail,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-ajax-detail__inner{
  overflow:visible;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__nav{
  background:transparent;
  border-right-color:rgba(36,50,74,.10);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__select{
  background-color:rgba(255,255,255,.72);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__quick-link{
  background:rgba(255,255,255,.58);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail{
  align-items:start;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__media{
  position:-webkit-sticky;
  position:sticky;
  top:calc(var(--wp-admin--admin-bar--height, 0px) + 96px);
  align-self:start;
  height:max-content;
  z-index:1;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery{
  margin-top:clamp(38px,6vw,74px);
  padding-top:clamp(32px,5vw,58px);
  border-top:1px solid rgba(36,50,74,.12);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__head{
  max-width:850px;
  margin:0 0 clamp(24px,4vw,38px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__head h2{
  margin:0 0 12px;
  color:var(--rcg-heading-color, #c74235);
  font-family:var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size:clamp(2rem,4vw,3.35rem);
  line-height:1.08;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__head p:not(.rcg-medium-eyebrow){
  margin:0;
  color:rgba(36,50,74,.72);
  font-size:clamp(16px,1.8vw,18px);
  line-height:1.72;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families{
  display:grid;
  gap:clamp(24px,4vw,42px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-family{
  padding:clamp(18px,3vw,28px);
  border:1px solid rgba(36,50,74,.10);
  border-radius:28px;
  background:linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,250,247,.84));
}

/* Stacked rather than a two-column grid: the heading and its description read
   as a unit, and the previous side-by-side layout left the description floating
   in a column of its own away from the cards it introduced. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-family__head{
  display:block;
  margin-bottom:18px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-family__head p{
  margin:6px 0 0;
  max-width:80ch;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-family__head span,
/* Kicker ("Guide extension") hidden for now — the family heading above the grid
   already establishes the context, so the label was repetition on every card. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__kicker{
  display:none;
  margin:0 0 7px;
  color:var(--rcg-red);
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  line-height:1.2;
  text-transform:uppercase;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-family__head h3{
  margin:0;
  color:var(--rcg-heading-ink-color, var(--rcg-ink));
  font-family:var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size:clamp(24px,3vw,36px);
  line-height:1.08;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-family__head p{
  margin:0;
  color:rgba(36,50,74,.68);
  line-height:1.65;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card{
  display:grid;
  grid-template-rows:auto 1fr;
  overflow:hidden;
  border:1px solid rgba(36,50,74,.10);
  border-radius:22px;
  background:#fff;
  box-shadow:0 14px 36px rgba(36,50,74,.06);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__media{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:170px;
  aspect-ratio:1 / .68;
  overflow:hidden;
  background:#f8f4ef;
  text-decoration:none !important;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .22s ease;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card:hover .rcg-medium-discovery-card__media img{
  transform:scale(1.035);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__media span{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:999px;
  background:#fff;
  color:var(--rcg-red);
  font-family:var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size:30px;
  font-weight:800;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__body{
  display:flex;
  flex-direction:column;
  padding:18px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card h4{
  margin:0 0 8px;
  color:var(--rcg-heading-ink-color, var(--rcg-ink));
  font-family:var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size:clamp(21px,2vw,28px);
  line-height:1.08;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card h4 a{
  color:inherit;
  text-decoration:none !important;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card p{
  margin:0 0 14px;
  color:rgba(36,50,74,.72);
  font-size:14px;
  line-height:1.58;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__look{
  margin:auto 0 16px;
  padding:12px 0 0;
  border-top:1px solid rgba(36,50,74,.10);
  color:rgba(36,50,74,.70);
  font-size:13px;
  line-height:1.55;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__look strong{
  color:var(--rcg-red-dark);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  margin-top:auto;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__actions a{
  color:var(--rcg-red);
  font-size:12px;
  font-weight:900;
  letter-spacing:.06em;
  text-decoration:none !important;
  text-transform:uppercase;
}

/* The muted treatment is for a *secondary* link, so it must not apply when the
   card has only one action. A lone link is both :first-child and :last-child, so
   the bare :last-child selector was greying out the only call to action on the
   card — which is what turned the Collector Archive's "View archive" grey. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__actions a:last-child:not(:first-child){
  color:rgba(36,50,74,.68);
}

/* A card with a single action states it in the primary colour.
 *
 * !important is deliberate. The muted colour on the live page survived an
 * equal-specificity override during testing and could not be traced to any
 * matching rule — it resolves as an inherited value from an ancestor rather
 * than a declaration on the link, so out-specifying it is not reliable. The rest
 * of this stylesheet already uses !important for the same class of
 * theme-override problem. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__actions a:only-child{
  color:var(--rcg-red, #c74235) !important;
  /* -webkit-text-fill-color overrides `color` for text rendering entirely, so a
     colour declaration alone cannot win against it. On the live page an inline
     `color: #c74235 !important` on the element still rendered muted, which points
     at a fill-colour set outside this plugin. Resetting it here makes the red
     declaration above effective either way. */
  -webkit-text-fill-color:var(--rcg-red, #c74235) !important;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__actions a:hover{
  color:var(--rcg-red-dark);
}

@media (max-width:1024px){
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__media{
    position:relative;
    top:auto;
  }
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__nav{
    background:transparent;
  }
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-family__head{
    grid-template-columns:1fr;
  }
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width:640px){
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-grid{
    grid-template-columns:1fr;
  }
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card__media{
    min-height:190px;
  }
}


/* v0.2.40: keep the selected medium image sticky inside the readable guide column. */
@media (min-width: 1025px) {
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__panel.rcg-medium-ajax-detail,
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-ajax-detail__inner,
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail {
    overflow: visible;
  }

  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail {
    align-items: start;
  }
}

@media (max-width: 1024px) {
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail__media {
    position: static;
    top: auto;
  }
}

/* v0.2.89: align the /mediums/ generated page with the lighter RCG styled-page system. */
body.rcg-medium-page,
body.rcg-medium-page #content,
body.rcg-medium-page .site-content,
body.rcg-medium-page #primary.rcg-medium-main,
body.rcg-medium-page .rcg-medium-main,
body.rcg-medium-page .rcg-refresh {
  background: #fff;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-section--library,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-section--learning-browser {
  background:
    radial-gradient(circle at 8% 12%, rgba(199, 66, 53, 0.035), transparent 34rem),
    radial-gradient(circle at 92% 24%, rgba(36, 50, 74, 0.035), transparent 30rem),
    #fff;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-browser {
  background:
    radial-gradient(circle at 100% 0%, rgba(199, 66, 53, 0.035), transparent 26rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 100%);
  border-color: rgba(36, 50, 74, 0.10);
  box-shadow: 0 22px 60px rgba(36, 50, 74, 0.075);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__nav {
  background: rgba(255, 255, 255, 0.78);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser__panel.rcg-medium-ajax-detail {
  background: transparent;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-browser-detail.rcg-card {
  background: #fff;
  border-color: rgba(36, 50, 74, 0.10);
  box-shadow: 0 18px 52px rgba(36, 50, 74, 0.07);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-refresh .rcg-medium-browser-detail.rcg-card::before {
  content: none;
  display: none;
}

@media (max-width: 1024px) {
  body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-learning-browser {
    background:
      radial-gradient(circle at 100% 0%, rgba(199, 66, 53, 0.035), transparent 22rem),
      #fff;
  }
}

/* v0.3.23: link-only Nudes collection card on /mediums/. */
.rcg-nudes-collection-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 30px 0 0;
  padding: clamp(22px, 3vw, 34px);
  background: #fff7f5;
  border: 1px solid rgba(199, 66, 53, 0.18);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(36, 50, 74, 0.055);
}

.rcg-nudes-collection-card h2 {
  margin: 0;
  color: var(--rcg-red, #c74235);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  letter-spacing: -0.035em;
}

.rcg-nudes-collection-card p:not(.rcg-eyebrow) {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--rcg-text, #4b5563);
  line-height: 1.72;
}

.rcg-nudes-collection-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.rcg-nudes-collection-card__count {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  color: var(--rcg-ink, #233044);
  border: 1px solid rgba(36, 50, 74, 0.12);
  font-weight: 800;
  font-size: 0.9rem;
}

.rcg-nudes-age-gate {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(250, 247, 242, 0.90);
  backdrop-filter: blur(4px);
}

body.rcg-nudes-age-confirmed .rcg-nudes-age-gate {
  display: none;
}

.rcg-nudes-age-gate__card {
  width: min(100%, 560px);
  padding: clamp(26px, 5vw, 44px);
  background: #fffdf9;
  border: 1px solid rgba(36, 50, 74, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(36, 50, 74, 0.16);
}

.rcg-nudes-age-gate__eyebrow {
  margin: 0 0 12px;
  color: #778397;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rcg-nudes-age-gate__card h2 {
  margin: 0;
  color: var(--rcg-ink, #233044);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.rcg-nudes-age-gate__card p:not(.rcg-nudes-age-gate__eyebrow) {
  margin: 16px 0 0;
  color: var(--rcg-text, #4b5563);
  font-size: 1.02rem;
  line-height: 1.65;
}

.rcg-nudes-age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.rcg-nudes-age-gate__actions button.rcg-originals-medium-button {
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}

@media (max-width: 767px) {
  .rcg-nudes-collection-card {
    grid-template-columns: 1fr;
  }

  .rcg-nudes-collection-card__actions {
    justify-content: flex-start;
  }
}

/* v0.3.39: Nudes & Foods artist-story section. */
.rcg-nudes-foods-section .rcg-nudes-foods {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
}

.rcg-nudes-foods__collection {
  padding: clamp(18px, 3vw, 28px);
  background: #fff;
  border: 1px solid rgba(199, 66, 53, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(36, 50, 74, 0.07);
}

.rcg-nudes-foods__preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.rcg-nudes-foods-card {
  overflow: hidden;
  border: 1px solid rgba(36, 50, 74, 0.10);
  border-radius: 18px;
  background: #fffaf8;
}

.rcg-nudes-foods-card__media {
  display: block;
  aspect-ratio: 4 / 5;
  background: #f6ece8;
}

.rcg-nudes-foods-card__image,
.rcg-nudes-foods-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rcg-nudes-foods-card__title {
  margin: 0;
  padding: 12px 13px 14px;
  color: var(--rcg-ink, #233044);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
  line-height: 1.35;
}

.rcg-nudes-foods-card__title a {
  color: inherit;
  text-decoration: none;
}

.rcg-nudes-foods-card__title a:hover,
.rcg-nudes-foods-card__title a:focus {
  color: var(--rcg-red, #c74235);
}

.rcg-nudes-foods__empty {
  margin: 0 0 18px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7f5;
  color: var(--rcg-text, #4b5563);
}

.rcg-nudes-foods__empty p {
  margin: 0;
}

.rcg-nudes-foods__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .rcg-nudes-foods-section .rcg-nudes-foods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rcg-nudes-foods__preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rcg-nudes-foods__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .rcg-nudes-foods__preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Medium guide modal (card click -> detail popup with example artwork)
   ========================================================================== */
.rcg-medium-guide-modal[hidden] {
  display: none !important;
}

.rcg-medium-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 42px);
}

.rcg-medium-guide-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
}

.rcg-medium-guide-modal__dialog {
  position: relative;
  z-index: 1;
  overflow: auto;
  width: min(1080px, 100%);
  max-height: min(88vh, 920px);
  border: 1px solid rgba(199, 66, 53, 0.2);
  border-radius: 24px;
  background: #fffaf7;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.32);
  outline: none;
}

.rcg-medium-guide-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(36, 50, 74, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--rcg-ink, #24324a);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(36, 50, 74, 0.12);
}

.rcg-medium-guide-modal__close:hover,
.rcg-medium-guide-modal__close:focus {
  background: #fff;
  color: #c74235;
}

body.rcg-medium-guide-modal-open {
  overflow: hidden;
}

/* Inner content: the /artwork/originals/ "Want to learn more" layout —
   split hero (copy left, framed example right) over a white detail section.
   v0.7.07 replaced the stacked hero-image + accordion body with this. */
.rcg-medium-guide-modal .rcg-medium-modal-body {
  background: transparent;
}

.rcg-medium-guide-modal .body-wrapper,
.rcg-medium-guide-modal .rcg-medium-page-intro {
  padding: 0;
  margin: 0;
}

.rcg-medium-guide-modal .rcg-medium-page-intro--detail {
  padding: clamp(42px, 5vw, 62px) clamp(26px, 5vw, 46px) clamp(26px, 5vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 250, 247, 0.98), #ffffff 58%, rgba(246, 238, 232, 0.72));
}

.rcg-medium-guide-modal .rcg-medium-container {
  max-width: none;
  margin: 0;
}

.rcg-medium-guide-modal .rcg-medium-detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.rcg-medium-guide-modal .rcg-medium-page-intro--detail h2 {
  margin: 0 0 12px;
  color: var(--rcg-heading-ink-color, var(--rcg-ink, #24324a));
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.04;
}

.rcg-medium-guide-modal .rcg-medium-page-intro--detail > .rcg-medium-container > div > p:not(.rcg-medium-eyebrow) {
  max-width: 700px;
  margin: 0;
  color: rgba(36, 50, 74, 0.76);
  font-size: 1.03rem;
  line-height: 1.7;
}

.rcg-medium-guide-modal .rcg-medium-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: clamp(4px, 1.2vw, 10px);
  padding-top: clamp(16px, 2.4vw, 22px);
  border-top: 1px solid rgba(36, 50, 74, 0.10);
}

/* Primary CTA left, secondary actions right, on one calm row. */
.rcg-medium-guide-modal .rcg-medium-actions > .rcg-medium-button:first-child {
  margin-right: auto;
}

/* Pills, mirroring the /artwork/originals/ guide modal treatment; the base
   .rcg-medium-button is a squared 8px-radius block button. */
.rcg-medium-guide-modal .rcg-medium-button {
  min-height: 42px;
  padding: 0.66rem 1.15rem;
  border-radius: 999px;
}

.rcg-medium-guide-modal .rcg-medium-button--quiet,
.rcg-medium-guide-modal .rcg-medium-button--quiet:visited {
  border-color: rgba(36, 50, 74, 0.14);
  background: rgba(255, 250, 247, 0.6);
  color: rgba(36, 50, 74, 0.78);
}

.rcg-medium-guide-modal .rcg-medium-button--quiet:hover,
.rcg-medium-guide-modal .rcg-medium-button--quiet:focus {
  border-color: rgba(36, 50, 74, 0.3);
  background: #fff;
  color: rgba(36, 50, 74, 0.92);
}

.rcg-medium-guide-modal .rcg-medium-detail-image {
  overflow: hidden;
  align-self: center;
  margin: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(36, 50, 74, 0.12);
}

.rcg-medium-guide-modal .rcg-medium-detail-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.rcg-medium-guide-modal .rcg-medium-detail-image figcaption {
  padding: 10px 14px;
  color: rgba(36, 50, 74, 0.68);
  font-size: 0.86rem;
  font-weight: 700;
}

.rcg-medium-guide-modal .rcg-medium-section {
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
}

.rcg-medium-guide-modal .rcg-medium-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: clamp(20px, 4vw, 38px);
  align-items: start;
}

.rcg-medium-guide-modal .rcg-medium-detail-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.18;
}

.rcg-medium-guide-modal .rcg-medium-detail-copy p,
.rcg-medium-guide-modal .rcg-medium-aside p {
  margin: 0 0 18px;
  color: rgba(36, 50, 74, 0.74);
  line-height: 1.7;
}

.rcg-medium-guide-modal .rcg-medium-aside {
  padding: 18px;
  border: 1px solid rgba(199, 66, 53, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 247, 0.88);
}

.rcg-medium-guide-modal .rcg-medium-aside h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.rcg-medium-guide-modal .rcg-medium-aside a {
  color: #a9342a;
  font-weight: 800;
  text-decoration: none !important;
}

@media (max-width: 760px) {
  .rcg-medium-guide-modal .rcg-medium-detail-hero-grid,
  .rcg-medium-guide-modal .rcg-medium-detail-layout {
    grid-template-columns: 1fr;
  }

  .rcg-medium-guide-modal .rcg-medium-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rcg-medium-guide-modal .rcg-medium-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .rcg-medium-guide-modal__close {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
  .rcg-medium-guide-modal .rcg-medium-page-intro--detail {
    padding: 34px 18px 22px;
  }
}


/* v0.6.7: let the generated /mediums/ page use the full browser width.
 * The learning content keeps its intentional inner max-width through
 * .rcg-medium-container; only Astra's outer page shell is reset here. */
body.rcg-medium-page.rcg-mediums-index-page #content.site-content,
body.rcg-medium-page.rcg-mediums-index-page #content.site-content > .ast-container,
body.rcg-medium-page.rcg-mediums-index-page #primary.rcg-medium-main {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.rcg-medium-page.rcg-mediums-index-page #content.site-content > .ast-container {
  display: block !important;
}

body.rcg-medium-page.rcg-mediums-index-page #primary.rcg-medium-main > .rcg-hero,
body.rcg-medium-page.rcg-mediums-index-page #primary.rcg-medium-main > .rcg-section {
  width: 100% !important;
  max-width: none !important;
}

/* ===== Medium comparison chart ===== */
.rcg-medium-compare__head {
  max-width: 760px;
  margin: 0 0 clamp(20px, 3vw, 30px);
}
.rcg-medium-compare__wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--rcg-line, rgba(36, 50, 74, 0.12));
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(36, 50, 74, 0.06);
}
.rcg-medium-compare {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.92rem;
}
.rcg-medium-compare th,
.rcg-medium-compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--rcg-line, rgba(36, 50, 74, 0.10));
  vertical-align: top;
}
.rcg-medium-compare thead th {
  background: var(--rcg-warm, #fbf4ef);
  color: var(--rcg-heading-ink-color, #24324a);
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.rcg-medium-compare tbody tr:last-child td { border-bottom: 0; }
.rcg-medium-compare__medium {
  font-family: var(--rcg-heading-font-family, "Libre Baskerville", Georgia, serif);
  font-weight: 700;
  color: var(--rcg-heading-color, #c74235);
  white-space: nowrap;
}
.rcg-medium-compare tbody tr:hover { background: rgba(199, 66, 53, 0.03); }

/* Card layout on narrow screens */
@media (max-width: 860px) {
  .rcg-medium-compare thead { display: none; }
  .rcg-medium-compare,
  .rcg-medium-compare tbody,
  .rcg-medium-compare tr,
  .rcg-medium-compare td { display: block; width: 100%; }
  .rcg-medium-compare__wrap { border-radius: 14px; }
  .rcg-medium-compare tr {
    border-bottom: 1px solid var(--rcg-line, rgba(36, 50, 74, 0.12));
    padding: 12px 16px;
  }
  .rcg-medium-compare td {
    border: 0;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    text-align: right;
  }
  .rcg-medium-compare td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--rcg-heading-ink-color, #24324a);
    text-align: left;
  }
  .rcg-medium-compare__medium {
    font-size: 1.05rem;
    text-align: left;
  }
  .rcg-medium-compare__medium::before { display: none; }
}

/* ===== Subgroup: parent header + child cards (subtle grouping) ===== */
.rcg-medium-discovery-subgroup {
  grid-column: 1 / -1;
  margin: 6px 0 10px;
}
.rcg-medium-discovery-subgroup__head {
  margin-bottom: 14px;
  padding-left: clamp(10px, 1.5vw, 16px);
  border-left: 3px solid rgba(199, 66, 53, 0.12);
}
.rcg-medium-discovery-subgroup__title {
  margin: 0 0 4px;
  color: var(--rcg-heading-ink-color, #24324a);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
}
.rcg-medium-discovery-subgroup__desc {
  margin: 0;
  max-width: 640px;
  color: var(--rcg-muted, rgba(36, 50, 74, 0.72));
  font-size: 0.9rem;
  line-height: 1.6;
}

/* v0.6.42's dedicated modal CTA/footer rules were removed in v0.7.07 when the
   modal body moved to the originals "Want to learn more" structure; the
   actions now render inline in the hero via .rcg-medium-actions. */

/* v0.6.47 Age-gated medium card (Collector Study Collection).
 *
 * The media area is hidden rather than left to fall back to an initial-letter
 * badge. Two reasons: an empty 200px panel with a bare "N" read as unfinished
 * next to siblings that show real artwork, and — more importantly — a preview
 * thumbnail from an age-gated collection must never appear on the public Medium
 * Guide, which is exactly the content the gate withholds. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card--gated .rcg-medium-discovery-card__media {
  display: none;
}

/* With no media panel the body needs the padding the image used to provide. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card--gated .rcg-medium-discovery-card__body {
  padding-top: clamp(18px, 2vw, 24px);
}

/* Single action, aligned with the card like every other action link, rather than
   pushed to the opposite edge by a second link that pointed to the same URL. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-card--gated .rcg-medium-discovery-card__actions {
  justify-content: flex-start;
}
/* End v0.6.47 Age-gated medium card. */

/* v0.6.49 Medium subgroup band (parent medium with child mediums).
 *
 * Subgroups now render after the standalone cards in their family, so a
 * full-width band no longer breaks a row of cards in half. Given the band is
 * always on its own row, it can carry a light surface to read as a deliberate
 * grouping rather than a gap in the grid. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup {
  padding: clamp(14px, 1.6vw, 20px);
  border: 1px solid rgba(36, 50, 74, 0.08);
  border-radius: 16px;
  background: rgba(255, 250, 247, 0.6);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup__title a {
  color: inherit;
  text-decoration: none;
}
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup__title a:hover,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup__title a:focus {
  color: var(--rcg-red);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup__actions {
  margin: 8px 0 0;
}
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup__actions a {
  color: var(--rcg-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
/* End v0.6.49 Medium subgroup band. */

/* v0.7.07 Medium Discovery family polish.
 *
 * 1) No red top border on medium cards. The live site carries an accent bar
 *    injected from outside this plugin (it resolves on elements with no
 *    matching rule here, the same class of theme interference the action-link
 *    colour fought in v0.6.47), so this both resets the border and removes any
 *    pseudo-element the injector may be using.
 * 2) A lone family card (Tapestry, Collector Study Collection) keeps normal
 *    card width instead of the v0.6.50 full-row span, which stretched a single
 *    medium across three tracks and made its cover image enormous.
 * 3) Parent subgroups (Ceramic, Oil Pastel, Acrylic) lay their children out as
 *    a compact row of smaller capped-width cards, so the band reads as a
 *    sub-index beneath the standalone medium cards rather than a second
 *    full-size grid. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families .rcg-medium-discovery-family,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families .rcg-medium-discovery-subgroup,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families .rcg-medium-discovery-card {
  border-top-color: rgba(36, 50, 74, 0.10) !important;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families .rcg-medium-discovery-family::before,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families .rcg-medium-discovery-family::after,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families .rcg-medium-discovery-subgroup::before,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families .rcg-medium-discovery-subgroup::after,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families .rcg-medium-discovery-card::before,
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery__families .rcg-medium-discovery-card::after {
  content: none !important;
  display: none !important;
}

/* (2) lone card keeps standard track width. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-grid > .rcg-medium-discovery-card:only-child {
  grid-column: auto;
}

/* (3) Compact subgroup: horizontal head, smaller child cards, four per row. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 12px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup__title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup__desc {
  flex: 1 1 100%;
  max-width: none;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup__actions {
  margin: 0;
  white-space: nowrap;
}

/* Children grid: capped auto-fit tracks rather than a fixed column count, so
 * the row fills at any child count — Ceramic's four children sit four-up while
 * Oil Pastel and Acrylic's two children each form a tidy pair without leaving
 * dead tracks, and the cards stay compact at every count. */
body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup .rcg-medium-discovery-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 300px));
  gap: 12px;
  justify-content: start;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup .rcg-medium-discovery-card {
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(36, 50, 74, 0.05);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup .rcg-medium-discovery-card__media {
  min-height: 0;
  aspect-ratio: 1 / 0.62;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup .rcg-medium-discovery-card__body {
  padding: 14px;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup .rcg-medium-discovery-card h4 {
  margin: 0 0 6px;
  font-size: clamp(17px, 1.5vw, 21px);
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup .rcg-medium-discovery-card p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup .rcg-medium-discovery-card__look {
  margin: 0 0 10px;
  padding-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
}

body.rcg-medium-page.rcg-mediums-index-page .rcg-medium-discovery-subgroup .rcg-medium-discovery-card__actions {
  gap: 6px 12px;
}
/* End v0.7.07 Medium Discovery family polish. */
