/* =========================================================
   RETAINED LEARNINGS — GHOST HOMEPAGE
   ========================================================= */

:root {
  --rl-bg: #061018;
  --rl-bg-deep: #030a10;
  --rl-surface: #0a141c;
  --rl-surface-soft: #0d1821;
  --rl-surface-hover: #101e29;

  --rl-text: #e9e1d2;
  --rl-text-soft: #b4b2ae;
  --rl-text-muted: #818990;

  --rl-gold: #cda35f;
  --rl-gold-light: #e0bd7b;
  --rl-gold-dark: #8b6735;
  --rl-gold-transparent: rgba(205, 163, 95, 0.25);

  --rl-border: rgba(205, 163, 95, 0.2);
  --rl-border-strong: rgba(205, 163, 95, 0.42);

  --rl-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --rl-radius: 4px;
  --rl-header-height: 74px;

  --rl-serif: Georgia, "Times New Roman", Times, serif;
  --rl-sans:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--rl-header-height) - 60px);
}

html[data-theme="light"] {
  --rl-bg: #eee9df;
  --rl-bg-deep: #e4ded2;
  --rl-surface: #f8f4eb;
  --rl-surface-soft: #eee8dc;
  --rl-surface-hover: #e5ddcf;

  --rl-text: #161b1d;
  --rl-text-soft: #4d5354;
  --rl-text-muted: #707474;

  --rl-gold: #9b6b2e;
  --rl-gold-light: #b68543;
  --rl-gold-dark: #714b20;

  --rl-border: rgba(84, 61, 28, 0.2);
  --rl-border-strong: rgba(84, 61, 28, 0.4);

  --rl-shadow: 0 24px 70px rgba(61, 45, 21, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(38, 67, 83, 0.16),
      transparent 31rem
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(161, 114, 48, 0.06),
      transparent 34rem
    ),
    var(--rl-bg);
  color: var(--rl-text);
  font-family: var(--rl-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.rl-menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.rl-site {
  min-height: 100vh;
  color-scheme: dark;
}

html[data-theme="light"] .rl-site {
  color-scheme: light;
}

.rl-shell {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
}

.rl-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Offset in-page anchors below the sticky header. */
#rl-series-section {
  scroll-margin-top: calc(var(--rl-header-height) + 20px);
}

/* =========================================================
   HEADER — NO SCROLL JERK
   ========================================================= */

.rl-header {
  position: sticky;
  top: 0;
  z-index: 100;

  width: 100%;
  height: var(--rl-header-height);

  background: rgba(3, 10, 16, 0.93);
  border-bottom: 1px solid var(--rl-border);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transform: translateZ(0);
  will-change: background-color, box-shadow;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.rl-header.is-scrolled {
  background: rgba(3, 10, 16, 0.97);
  border-bottom-color: var(--rl-border-strong);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] .rl-header {
  background: rgba(248, 244, 235, 0.92);
}

html[data-theme="light"] .rl-header.is-scrolled {
  background: rgba(248, 244, 235, 0.97);
  border-bottom-color: var(--rl-border-strong);
  box-shadow: 0 12px 34px rgba(61, 45, 21, 0.15);
}

.rl-header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 30px;
}

.rl-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  min-width: 210px;
}

.rl-brand-logo {
  width: auto;
  max-width: 230px;
  height: 43px;
  object-fit: contain;
}

.rl-brand-monogram {
  color: var(--rl-gold-light);
  font-family: var(--rl-serif);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.rl-brand-copy {
  display: flex;
  flex-direction: column;
  color: var(--rl-text);
  line-height: 1.1;
}

.rl-brand-copy strong {
  font-family: var(--rl-serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.rl-brand-copy small {
  margin-top: 5px;
  color: var(--rl-gold);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.rl-navigation-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1 1 auto;
}

.rl-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 8px;
}

.rl-icon-button,
.rl-account-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--rl-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.rl-icon-button:hover,
.rl-account-button:hover {
  color: var(--rl-gold-light);
  border-color: var(--rl-border);
  background: var(--rl-surface);
}

.rl-icon-button svg {
  width: 19px;
  height: 19px;
}

.rl-account-button svg {
  width: 24px;
  height: 24px;
}

.rl-header-subscribe {
  min-height: 38px;
  padding: 0 19px;
  color: #11171b;
  background: linear-gradient(135deg, var(--rl-gold-light), var(--rl-gold));
  border: 1px solid var(--rl-gold-light);
  border-radius: var(--rl-radius);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.rl-header-subscribe:hover {
  box-shadow: 0 10px 24px rgba(205, 163, 95, 0.22);
  transform: translateY(-1px);
}

.rl-mobile-toggle {
  display: none;
}

/* ==========================================================
   DYNAMIC GHOST NAVIGATION
   ========================================================== */

.rl-primary-nav {
  height: 100%;
}

.rl-primary-nav .rl-nav-list {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rl-primary-nav .rl-nav-list > .rl-nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}

/*
 * Hide prefixed submenu items before JavaScript moves them.
 * Only direct top-level children are hidden.
 */
.rl-js .js-rl-nav-list > .js-rl-nav-item[data-label^="--"],
.rl-js .js-rl-nav-list > .js-rl-nav-item[data-label^="––"],
.rl-js .js-rl-nav-list > .js-rl-nav-item[data-label^="——"] {
  display: none;
}

.rl-primary-nav .rl-nav-list > .rl-nav-item > .rl-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--rl-header-height);
  gap: 7px;
  padding: 0 14px;
  color: var(--rl-text-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.rl-primary-nav .rl-nav-list > .rl-nav-item > .rl-nav-link:hover,
.rl-primary-nav .rl-nav-list > .nav-current > .rl-nav-link,
.rl-primary-nav .rl-nav-list > .has-current-child > .rl-nav-link,
.rl-primary-nav .rl-has-submenu.is-open > .rl-submenu-toggle {
  color: var(--rl-gold-light);
}

.rl-primary-nav .rl-nav-list > .nav-current::after,
.rl-primary-nav .rl-nav-list > .has-current-child::after {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 2px;
  background: var(--rl-gold);
  content: "";
}

.rl-dropdown-chevron {
  display: inline-flex;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.rl-dropdown-chevron svg {
  width: 100%;
  height: 100%;
}

.rl-has-submenu.is-open > .rl-submenu-toggle .rl-dropdown-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */

.rl-submenu {
  position: absolute;
  z-index: 300;
  top: calc(100% - 1px);
  left: 0;
  display: grid;
  min-width: 270px;
  padding: 9px;
  margin: 0;
  list-style: none;
  background: var(--rl-surface);
  border: 1px solid var(--rl-border-strong);
  box-shadow: var(--rl-shadow);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(9px);

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
}

/*
 * Invisible bridge prevents the submenu from disappearing
 * while the pointer moves from the parent into the panel.
 */
.rl-submenu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 10px;
  content: "";
}

.rl-primary-nav .rl-submenu .rl-nav-item {
  display: block;
  border: 0;
}

.rl-primary-nav .rl-submenu .rl-submenu-link {
  display: block;
  min-height: 0;
  padding: 11px 13px;
  color: var(--rl-text-soft);
  background: transparent;
  border-bottom: 1px solid var(--rl-border);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  white-space: normal;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    padding-left 0.2s ease;
}

.rl-primary-nav .rl-submenu .rl-nav-item:last-child .rl-submenu-link {
  border-bottom: 0;
}

.rl-primary-nav .rl-submenu .rl-submenu-link:hover,
.rl-primary-nav .rl-submenu .nav-current .rl-submenu-link {
  padding-left: 17px;
  color: var(--rl-gold-light);
  background: var(--rl-surface-hover);
}

/* Desktop hover and keyboard focus */

@media (min-width: 861px) {
  .rl-has-submenu:hover > .rl-submenu,
  .rl-has-submenu:focus-within > .rl-submenu,
  .rl-has-submenu.is-open > .rl-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .rl-has-submenu:hover > .rl-submenu-toggle .rl-dropdown-chevron,
  .rl-has-submenu:focus-within > .rl-submenu-toggle .rl-dropdown-chevron {
    transform: rotate(180deg);
  }
}

/* =========================================================
   HERO — TYPOGRAPHY AND BUTTONS
   ========================================================= */

.rl-eyebrow {
  display: inline-block;
  color: var(--rl-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rl-hero-title {
  max-width: 610px;
  margin: 13px 0 15px;
  color: var(--rl-text);
  font-family: var(--rl-serif);
  font-size: clamp(48px, 5.3vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.rl-hero-title a {
  transition: color 0.2s ease;
}

.rl-hero-title a:hover {
  color: var(--rl-gold-light);
}

.rl-title-rule {
  display: block;
  width: 70px;
  height: 2px;
  margin: 23px 0 18px;
  background: var(--rl-gold);
}

.rl-hero-excerpt {
  max-width: 510px;
  margin: 0 0 30px;
  color: var(--rl-text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.rl-primary-button,
.rl-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 19px;
  border-radius: var(--rl-radius);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.rl-primary-button {
  gap: 10px;
  color: #11171b;
  background: linear-gradient(135deg, var(--rl-gold-light), var(--rl-gold));
  border: 1px solid var(--rl-gold-light);
}

.rl-primary-button svg {
  width: 17px;
}

.rl-primary-button:hover {
  box-shadow: 0 12px 26px rgba(205, 163, 95, 0.2);
  transform: translateY(-2px);
}

.rl-secondary-button {
  color: var(--rl-text);
  background: transparent;
  border: 1px solid var(--rl-border-strong);
}

.rl-secondary-button:hover {
  color: var(--rl-gold-light);
  background: var(--rl-surface);
  border-color: var(--rl-gold);
}

/* =========================================================
   HERO — FULL-WIDTH IMAGE WITH GRADIENT OVERLAY
   ========================================================= */

.rl-hero {
  position: relative;
  isolation: isolate;

  display: grid;
  grid-template-columns: 1fr;

  width: 100%;
  min-height: clamp(400px, 55vw, 580px);
  margin: 0;

  overflow: hidden;
  background: #030a10;
  border-bottom: 1px solid var(--rl-border-strong);
}

/*
 * Put the content and image in the same grid position.
 * The image stays behind the content.
 */
.rl-hero-copy,
.rl-hero-media {
  grid-column: 1;
  grid-row: 1;
}

/* =========================================================
   HERO BACKGROUND IMAGE
   ========================================================= */

.rl-hero-media {
  position: relative;
  z-index: 0;

  display: block;
  width: 100%;
  min-height: inherit;

  overflow: hidden;
  background: #030a10;
}

.rl-hero-media picture {
  position: absolute;
  inset: 0;

  display: block;
  width: 100%;
  height: 100%;
}

.rl-hero-media img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  /*
   * Change 68% to move the visible image:
   * 50% = center
   * 70% = more of the right side
   * 30% = more of the left side
   */
  object-fit: cover;
  object-position: 68% center;

  transition: transform 0.8s ease;
}

a.rl-hero-media:hover img {
  transform: scale(1.025);
}

/* =========================================================
   BLACK LINEAR GRADIENT OVERLAY
   Dark on the text side, lighter on the image side
   ========================================================= */

.rl-hero-media-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;

  background:
    /*
     * Main left-to-right gradient:
     * very dark on the left and lighter on the right
     */
    linear-gradient(
      90deg,
      rgba(2, 7, 11, 0.98) 0%,
      rgba(2, 7, 11, 0.96) 20%,
      rgba(2, 7, 11, 0.88) 38%,
      rgba(2, 7, 11, 0.66) 52%,
      rgba(2, 7, 11, 0.32) 72%,
      rgba(2, 7, 11, 0.08) 100%
    ),
    /*
     * Subtle top and bottom shading.
     * This helps the hero blend with the website.
     */
    linear-gradient(
        180deg,
        rgba(2, 7, 11, 0.22) 0%,
        transparent 28%,
        transparent 65%,
        rgba(2, 7, 11, 0.55) 100%
      );

  pointer-events: none;
}

/*
 * Keep the overlay dark even when the website's
 * light-mode setting is active.
 */
html[data-theme="light"] .rl-hero-media-overlay {
  background:
    linear-gradient(
      90deg,
      rgba(2, 7, 11, 0.98) 0%,
      rgba(2, 7, 11, 0.96) 20%,
      rgba(2, 7, 11, 0.88) 38%,
      rgba(2, 7, 11, 0.66) 52%,
      rgba(2, 7, 11, 0.32) 72%,
      rgba(2, 7, 11, 0.08) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 7, 11, 0.22) 0%,
      transparent 28%,
      transparent 65%,
      rgba(2, 7, 11, 0.55) 100%
    );
}

/* =========================================================
   HERO TEXT CONTENT
   ========================================================= */

.rl-hero-copy {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
  min-height: inherit;

  /*
   * Aligns hero text with your standard 1240px site container.
   */
  padding-right: max(24px, calc((100vw - 1240px) / 2));
  padding-left: max(24px, calc((100vw - 1240px) / 2));

  overflow: visible;
  background: transparent;

  /*
   * Allows the background media link to work outside
   * the text area.
   */
  pointer-events: none;
}

/* Remove your old decorative copy background */
.rl-hero-copy::before {
  display: none;
}

.rl-hero-copy-inner {
  position: relative;
  z-index: 2;

  width: min(650px, 56vw);
  padding: 90px 0;

  margin: 0;
}

/* Make links and buttons clickable again */
.rl-hero-copy-inner a,
.rl-hero-copy-inner button {
  pointer-events: auto;
}

.rl-hero .rl-eyebrow {
  color: var(--rl-gold-light);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.55);
}

.rl-hero .rl-hero-title {
  max-width: 650px;
  margin: 14px 0 16px;

  color: #f0e7d7;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 0.98;

  text-wrap: balance;
  text-shadow:
    0 3px 16px rgba(0, 0, 0, 0.58),
    0 10px 35px rgba(0, 0, 0, 0.38);
}

.rl-hero .rl-hero-title a {
  color: inherit;
}

.rl-hero .rl-hero-title a:hover {
  color: var(--rl-gold-light);
}

.rl-hero .rl-title-rule {
  width: 82px;
  height: 2px;
  margin: 25px 0 20px;
  background: var(--rl-gold);
}

.rl-hero .rl-hero-excerpt {
  max-width: 540px;
  margin: 0 0 31px;

  color: rgba(244, 239, 231, 0.8);
  font-size: 15px;
  line-height: 1.7;

  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.rl-main {
  padding: 18px 0 0;
}

.rl-main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 30px;
}

.rl-main-content {
  min-width: 0;
}

.rl-content-section {
  padding: 0 0 20px;
}

.rl-content-section + .rl-content-section {
  padding-top: 6px;
}

.rl-section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  margin-bottom: 10px;
}

.rl-section-heading h2 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--rl-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rl-section-heading span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rl-border-strong);
}

/* =========================================================
   POST CARDS
   ========================================================= */

.rl-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rl-post-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: linear-gradient(150deg, var(--rl-surface), rgba(6, 16, 24, 0.72));
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

html[data-theme="light"] .rl-post-card {
  background: linear-gradient(
    150deg,
    var(--rl-surface),
    var(--rl-surface-soft)
  );
}

.rl-post-card:hover {
  border-color: var(--rl-border-strong);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.17);
  transform: translateY(-3px);
}

.rl-post-card-image {
  position: relative;
  display: block;
  height: 164px;
  overflow: hidden;
  background: var(--rl-bg-deep);
  border-bottom: 1px solid var(--rl-border);
}

.rl-post-card-image picture,
.rl-post-card-image img {
  width: 100%;
  height: 100%;
}

.rl-post-card-image img {
  object-fit: cover;
  transition: transform 0.55s ease;
}

.rl-post-card:hover .rl-post-card-image img {
  transform: scale(1.045);
}

.rl-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 20px;
  color: var(--rl-gold);
  background:
    radial-gradient(
      circle at center,
      rgba(205, 163, 95, 0.14),
      transparent 50%
    ),
    var(--rl-bg-deep);
  font-family: var(--rl-serif);
  font-size: 17px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  place-items: center;
}

.rl-post-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 14px 16px 13px;
}

.rl-card-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 6px;
  color: var(--rl-gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rl-card-tag:hover {
  color: var(--rl-gold-light);
}

.rl-post-card h3 {
  margin: 0 0 7px;
  color: var(--rl-text);
  font-family: var(--rl-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.08;
}

.rl-post-card h3 a,
.rl-horizontal-card h3 a {
  transition: color 0.2s ease;
}

.rl-post-card h3 a:hover,
.rl-horizontal-card h3 a:hover {
  color: var(--rl-gold-light);
}

.rl-post-card-body > p {
  display: -webkit-box;
  margin: 0 0 15px;
  overflow: hidden;
  color: var(--rl-text-soft);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rl-post-card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 5px;
}

.rl-author-avatar {
  display: block;
  width: 31px;
  height: 31px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--rl-surface-hover);
  border: 1px solid var(--rl-border);
  border-radius: 50%;
}

.rl-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-author-avatar span {
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--rl-gold);
  font-size: 7px;
  text-align: center;
  place-items: center;
}

.rl-post-card-meta > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.rl-author-name {
  overflow: hidden;
  color: var(--rl-text-soft);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rl-author-name:hover {
  color: var(--rl-gold-light);
}

.rl-post-card-meta > div > span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: var(--rl-text-muted);
  font-size: 8px;
  white-space: nowrap;
}

.rl-post-card-meta i,
.rl-compact-meta i {
  display: block;
  width: 2px;
  height: 2px;
  background: currentColor;
  border-radius: 50%;
}

.rl-section-link-wrap {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

.rl-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rl-gold);
  font-size: 11px;
  transition: color 0.2s ease;
}

.rl-text-link svg {
  width: 15px;
  transition: transform 0.2s ease;
}

.rl-text-link:hover {
  color: var(--rl-gold-light);
}

.rl-text-link:hover svg {
  transform: translateX(3px);
}

.rl-author-profile-info {
  margin-bottom: 10px;
}
.rl-author-profile-info h4 {
  margin-bottom: 0px;
}
.rl-author-profile-info span {
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
   SERIES CARDS
   ========================================================= */

.rl-series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rl-series-card {
  position: relative;
  display: block;
  min-height: 150px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 85% 40%,
      rgba(205, 163, 95, 0.16),
      transparent 35%
    ),
    var(--rl-surface);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}

.rl-series-card:hover {
  border-color: var(--rl-border-strong);
  transform: translateY(-2px);
}

.rl-series-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  object-fit: cover;
  transition:
    opacity 0.3s ease,
    transform 0.5s ease;
}

.rl-series-card:hover > img {
  opacity: 0.67;
  transform: scale(1.04);
}

.rl-series-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 12, 18, 0.97) 0,
      rgba(4, 12, 18, 0.72) 54%,
      rgba(4, 12, 18, 0.18) 100%
    ),
    linear-gradient(0deg, rgba(4, 12, 18, 0.5), transparent);
}

.rl-series-card-content {
  position: relative;
  z-index: 1;
  max-width: 72%;
  padding: 22px 20px;
}

.rl-series-card h3 {
  margin: 0 0 5px;
  color: var(--rl-text);
  font-family: var(--rl-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.rl-series-card p {
  margin: 0 0 12px;
  color: var(--rl-text-soft);
  font-size: 11px;
  line-height: 1.55;
}

.rl-series-count {
  color: var(--rl-gold);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.rl-sidebar {
  position: sticky;
  top: calc(var(--rl-header-height) + 18px);
  display: grid;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--rl-border);
}

.rl-sidebar-card {
  padding: 16px;
  background: linear-gradient(
    145deg,
    rgba(11, 22, 30, 0.72),
    rgba(6, 15, 22, 0.56)
  );
  border: 1px solid rgba(205, 163, 95, 0.12);
}

html[data-theme="light"] .rl-sidebar-card {
  background: linear-gradient(
    145deg,
    var(--rl-surface),
    var(--rl-surface-soft)
  );
}

.rl-sidebar-card h2 {
  margin: 0 0 7px;
  color: var(--rl-gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.rl-sidebar-card > p {
  margin: 0 0 11px;
  color: var(--rl-text-soft);
  font-size: 12px;
  line-height: 1.65;
}

.rl-sidebar-card > small {
  display: block;
  margin-top: 7px;
  color: var(--rl-text-muted);
  font-size: 8px;
}

.rl-subscribe-fields {
  display: flex;
  width: 100%;
}

.rl-subscribe-fields input {
  min-width: 0;
  height: 36px;
  flex: 1 1 auto;
  padding: 0 10px;
  color: var(--rl-text);
  outline: none;
  background: var(--rl-bg-deep);
  border: 1px solid var(--rl-border-strong);
  border-right: 0;
  border-radius: var(--rl-radius) 0 0 var(--rl-radius);
  font-size: 9px;
  transition: border-color 0.2s ease;
}

.rl-subscribe-fields input::placeholder {
  color: var(--rl-text-muted);
}

.rl-subscribe-fields input:focus {
  border-color: var(--rl-gold);
}

.rl-subscribe-fields button {
  height: 36px;
  padding: 0 12px;
  color: #10161a;
  background: linear-gradient(135deg, var(--rl-gold-light), var(--rl-gold));
  border: 1px solid var(--rl-gold);
  border-radius: 0 var(--rl-radius) var(--rl-radius) 0;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
}

.rl-button-loading,
.rl-form-message {
  display: none;
}

.rl-subscribe-form.loading .rl-button-label {
  display: none;
}

.rl-subscribe-form.loading .rl-button-loading {
  display: inline;
}

.rl-subscribe-form.success .rl-form-success,
.rl-subscribe-form.error .rl-form-error {
  display: block;
}

.rl-form-message {
  margin: 8px 0 0 !important;
  font-size: 9px !important;
  line-height: 1.45 !important;
}

.rl-form-success {
  color: #87b995 !important;
}

.rl-form-error {
  color: #dc8f85 !important;
}

.rl-author-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 12px;
}

.rl-author-profile-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--rl-border-strong);
  border-radius: 50%;
  filter: grayscale(1);
}

.rl-author-profile h3 {
  margin: 0 0 2px;
  font-family: var(--rl-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.25;
}

.rl-author-profile h3 a:hover {
  color: var(--rl-gold-light);
}

.rl-author-profile span {
  color: var(--rl-text-muted);
  font-size: 9px;
}

.rl-author-post-count {
  color: var(--rl-text-muted) !important;
  font-size: 9px !important;
}

.rl-author-links {
  margin-top: 13px;
}

.rl-author-links > span {
  display: block;
  margin-bottom: 7px;
  color: var(--rl-gold);
  font-size: 10px;
}

.rl-author-links > div {
  display: flex;
  gap: 7px;
}

.rl-author-links a {
  display: grid;
  width: 28px;
  height: 28px;
  color: var(--rl-gold);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);
  place-items: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.rl-author-links a:hover {
  background: var(--rl-surface-hover);
  border-color: var(--rl-border-strong);
}

.rl-author-links svg {
  width: 14px;
}

/* =========================================================
   TAG-WISE SECTIONS
   ========================================================= */

.rl-tag-sections {
  padding-top: 40px;
}

.rl-tag-section {
  padding: 42px 0;
  border-top: 1px solid var(--rl-border);
}

.rl-tag-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.rl-tag-section-header > div {
  max-width: 700px;
}

.rl-tag-section-header span {
  color: var(--rl-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rl-tag-section-header h2 {
  margin: 4px 0 4px;
  font-family: var(--rl-serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.1;
}

.rl-tag-section-header p {
  max-width: 620px;
  margin: 0;
  color: var(--rl-text-soft);
  font-size: 12px;
}

.rl-tag-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.rl-horizontal-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: var(--rl-surface);
  border: 1px solid var(--rl-border);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.rl-horizontal-card:hover {
  border-color: var(--rl-border-strong);
  transform: translateY(-3px);
}

.rl-horizontal-card-image {
  display: block;
  height: 180px;
  overflow: hidden;
  background: var(--rl-bg-deep);
}

.rl-horizontal-card-image picture,
.rl-horizontal-card-image img {
  width: 100%;
  height: 100%;
}

.rl-horizontal-card-image img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

.rl-horizontal-card:hover .rl-horizontal-card-image img {
  transform: scale(1.045);
}

.rl-horizontal-card-content {
  display: flex;
  min-height: 230px;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 17px;
}

.rl-horizontal-card h3 {
  margin: 0 0 8px;
  font-family: var(--rl-serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.12;
}

.rl-horizontal-card-top > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--rl-text-soft);
  font-size: 11px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rl-compact-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--rl-text-muted);
  font-size: 9px;
}

.rl-compact-meta a:hover {
  color: var(--rl-gold-light);
}

/* =========================================================
   CTA
   ========================================================= */

.rl-cta {
  position: relative;
  display: grid;
  min-height: 380px;
  margin-top: 30px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at center,
      rgba(205, 163, 95, 0.14),
      transparent 45%
    ),
    linear-gradient(135deg, var(--rl-surface), var(--rl-bg-deep));
  border: 1px solid var(--rl-border-strong);
  place-items: center;
}

.rl-cta::before {
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(205, 163, 95, 0.1);
  content: "";
  pointer-events: none;
}

.rl-cta-decoration {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(205, 163, 95, 0.08);
  border-radius: 50%;
}

.rl-cta-decoration::before,
.rl-cta-decoration::after {
  position: absolute;
  inset: 35px;
  border: 1px solid rgba(205, 163, 95, 0.07);
  border-radius: 50%;
  content: "";
}

.rl-cta-decoration::after {
  inset: 80px;
}

.rl-cta-decoration-left {
  bottom: -170px;
  left: -120px;
}

.rl-cta-decoration-right {
  top: -180px;
  right: -120px;
}

.rl-cta-content {
  position: relative;
  z-index: 1;
  max-width: 730px;
  padding: 70px 30px;
  text-align: center;
}

.rl-cta h2 {
  margin: 10px 0 14px;
  font-family: var(--rl-serif);
  font-size: clamp(38px, 5vw, 57px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.rl-cta p {
  max-width: 580px;
  margin: 0 auto 25px;
  color: var(--rl-text-soft);
  font-size: 13px;
}

.rl-cta-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.rl-footer {
  margin-top: 70px;
  padding: 55px 0 0;
  background: var(--rl-bg-deep);
  border-top: 1px solid var(--rl-border-strong);
}

.rl-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1.1fr;
  gap: 48px;
  padding-bottom: 45px;
}

.rl-footer-brand {
  min-width: 0;
}

.rl-footer-about > p,
.rl-footer-newsletter > p {
  max-width: 330px;
  margin: 17px 0 0;
  color: var(--rl-text-soft);
  font-size: 11px;
  line-height: 1.75;
}

.rl-footer-column h3,
.rl-footer-newsletter h3 {
  margin: 3px 0 14px;
  color: var(--rl-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rl-footer-column ul,
.rl-footer-column .nav {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rl-footer-column a {
  color: var(--rl-text-soft);
  font-size: 11px;
  transition: color 0.2s ease;
}

.rl-footer-column a:hover {
  color: var(--rl-gold-light);
}

.rl-footer-newsletter > p {
  margin: 0 0 13px;
}

.rl-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 63px;
  color: var(--rl-text-muted);
  border-top: 1px solid var(--rl-border);
  font-size: 9px;
}

.rl-footer-bottom p {
  margin: 0;
}

.rl-footer-bottom a {
  color: var(--rl-gold);
}

/* =========================================================
   ANIMATION
   ========================================================= */

.rl-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.rl-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .rl-reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   HORIZONTAL LOOP GRID AND PAGINATION
   ========================================================= */

.rl-horizontal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.rl-horizontal-card-grid .rl-horizontal-card {
  width: 100%;
  height: 100%;
  margin: 0;
}

.rl-horizontal-card-grid .rl-horizontal-card-content {
  height: 100%;
}

/*
 * The subscription form appears inside the first grid.
 * This allows it to occupy one grid column like a card.
 */
.rl-horizontal-card-grid > .subscribe-form,
.rl-horizontal-card-grid > .subscribe-section,
.rl-horizontal-card-grid > .members-form {
  width: 100%;
  height: 100%;
}

.pagination-section {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 34px;
}

.pagination-next {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pagination-button-loading {
  display: none;
}

.posts-loading .pagination-button-label {
  display: none;
}

.posts-loading .pagination-button-loading {
  display: inline;
}

.posts-loading .pagination-button {
  cursor: wait;
  opacity: 0.65;
  pointer-events: none;
}
.global-button.pagination-button::before {
  background-color: var(--rl-gold-light);
  border: 1px solid var(--rl-gold);
}

/* =========================================================
   FOOTER SOCIAL ACCOUNTS
   ========================================================= */

.rl-footer-socials {
  display: block;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rl-border);
}

.rl-footer-socials-title {
  display: block;
  margin-bottom: 11px;
  color: var(--rl-text-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rl-footer-socials-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rl-footer-social-link {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;

  color: var(--rl-gold);
  background: rgba(205, 163, 95, 0.04);
  border: 1px solid var(--rl-border);
  border-radius: var(--rl-radius);

  place-items: center;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.rl-footer-social-link:hover {
  color: #10161a;
  background: linear-gradient(135deg, var(--rl-gold-light), var(--rl-gold));
  border-color: var(--rl-gold-light);
  box-shadow: 0 9px 22px rgba(205, 163, 95, 0.18);
  transform: translateY(-2px);
}

.rl-footer-social-link:focus-visible {
  outline: 2px solid var(--rl-gold-light);
  outline-offset: 3px;
}

.rl-footer-social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
}

/*
 * Some social icon partials use filled paths.
 */
.rl-footer-social-link svg path,
.rl-footer-social-link svg circle,
.rl-footer-social-link svg rect,
.rl-footer-social-link svg polygon {
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
}

/*
 * Support icons that use fill="none".
 */
.rl-footer-social-link svg[fill="none"],
.rl-footer-social-link svg[fill="none"] path,
.rl-footer-social-link svg[fill="none"] circle {
  fill: none;
}

/* Light mode */
html[data-theme="light"] .rl-footer-social-link {
  background: rgba(155, 107, 46, 0.04);
}

html[data-theme="light"] .rl-footer-social-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rl-gold-light), var(--rl-gold));
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .rl-header-inner {
    gap: 18px;
  }

  .rl-brand {
    min-width: 170px;
  }

  .rl-brand-copy small {
    display: none;
  }

  .rl-primary-nav .rl-nav-list > .rl-nav-item > .rl-nav-link {
    padding-inline: 9px;
    font-size: 10px;
  }

  .rl-main-layout {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 20px;
  }
}

@media (max-width: 1020px) {
  .rl-header-subscribe {
    display: none;
  }

  .rl-main-layout {
    grid-template-columns: 1fr;
  }

  .rl-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 0 0;
    border-top: 1px solid var(--rl-border);
    border-left: 0;
  }

  .rl-horizontal-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rl-hero {
    min-height: 400px;
  }

  .rl-hero-copy-inner {
    width: min(610px, 66vw);
  }

  .rl-hero .rl-hero-title {
    font-size: clamp(45px, 7vw, 65px);
  }

  .rl-hero-media img {
    object-position: 64% center;
  }

  .rl-hero-media-overlay,
  html[data-theme="light"] .rl-hero-media-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(2, 7, 11, 0.97) 0%,
        rgba(2, 7, 11, 0.92) 30%,
        rgba(2, 7, 11, 0.72) 55%,
        rgba(2, 7, 11, 0.22) 100%
      ),
      linear-gradient(
        180deg,
        rgba(2, 7, 11, 0.15) 0%,
        transparent 45%,
        rgba(2, 7, 11, 0.6) 100%
      );
  }
}

@media (max-width: 860px) {
  :root {
    --rl-header-height: 66px;
  }

  .rl-shell {
    width: min(100% - 32px, 1240px);
  }

  .rl-mobile-toggle {
    position: relative;
    display: flex;
    width: 40px;
    height: 40px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .rl-mobile-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--rl-text);
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }

  .rl-mobile-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .rl-mobile-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .rl-mobile-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .rl-navigation-area {
    position: fixed;
    top: var(--rl-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    min-height: calc(100dvh - var(--rl-header-height));
    padding: 20px 24px 50px;
    overflow-y: auto;
    background: rgba(3, 10, 16, 0.99);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s ease;
  }

  html[data-theme="light"] .rl-navigation-area {
    background: rgba(248, 244, 235, 0.99);
  }

  .rl-navigation-area.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .rl-primary-nav {
    height: auto;
  }

  .rl-primary-nav .rl-nav-list {
    display: grid;
    height: auto;
    gap: 0;
  }

  .rl-primary-nav .rl-nav-list > .rl-nav-item {
    display: block;
    border-bottom: 1px solid var(--rl-border);
  }

  .rl-primary-nav .rl-nav-list > .rl-nav-item > .rl-nav-link {
    width: 100%;
    min-height: 55px;
    justify-content: space-between;
    padding: 0;
    font-size: 13px;
    text-align: left;
  }

  .rl-primary-nav .rl-nav-list > .nav-current::after,
  .rl-primary-nav .rl-nav-list > .has-current-child::after {
    right: auto;
    left: 0;
    width: 35px;
  }

  .rl-submenu {
    position: static;
    display: grid;
    min-width: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition:
      max-height 0.35s ease,
      padding-bottom 0.35s ease;
  }

  .rl-submenu::before {
    display: none;
  }

  .rl-has-submenu.is-open > .rl-submenu {
    max-height: 800px;
    padding-bottom: 10px;
  }

  .rl-primary-nav .rl-submenu .rl-submenu-link {
    padding: 12px 10px 12px 18px;
    background: rgba(205, 163, 95, 0.04);
  }

  .rl-primary-nav .rl-submenu .rl-submenu-link:hover {
    padding-left: 22px;
  }

  .rl-header-actions {
    margin-left: 3px;
  }

  .rl-icon-button[data-theme-toggle] {
    display: none;
  }

  .rl-post-grid,
  .rl-tag-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rl-post-card:nth-child(3),
  .rl-horizontal-card:nth-child(3) {
    grid-column: span 2;
  }

  .rl-footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rl-hero {
    min-height: 400px;
  }

  .rl-hero-copy {
    align-items: flex-end;
    justify-content: flex-start;
    padding-right: 24px;
    padding-left: 24px;
  }

  .rl-hero-copy-inner {
    width: 100%;
    max-width: 650px;
    padding: 80px 0 55px;
  }

  .rl-hero-media {
    min-height: inherit;
  }

  .rl-hero-media img {
    object-position: 62% center;
  }

  .rl-hero-media-overlay,
  html[data-theme="light"] .rl-hero-media-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(2, 7, 11, 0.12) 0%,
        rgba(2, 7, 11, 0.25) 26%,
        rgba(2, 7, 11, 0.72) 56%,
        rgba(2, 7, 11, 0.97) 100%
      ),
      linear-gradient(90deg, rgba(2, 7, 11, 0.74) 0%, rgba(2, 7, 11, 0.22) 100%);
  }

  .rl-hero .rl-hero-title {
    font-size: clamp(42px, 9vw, 60px);
  }
}

@media (max-width: 640px) {
  .rl-shell {
    width: min(100% - 24px, 1240px);
  }

  .rl-brand {
    min-width: 0;
  }

  .rl-brand-logo {
    max-width: 175px;
    height: 37px;
  }

  .rl-brand-copy {
    display: none;
  }

  .rl-header-actions {
    gap: 1px;
  }

  .rl-icon-button {
    display: none;
  }

  .rl-account-button {
    width: 34px;
    height: 34px;
  }

  .rl-main {
    padding-top: 13px;
  }

  .rl-post-grid,
  .rl-tag-post-grid,
  .rl-series-grid,
  .rl-sidebar,
  .rl-horizontal-card-grid {
    grid-template-columns: 1fr;
  }

  .rl-post-card:nth-child(3),
  .rl-horizontal-card:nth-child(3) {
    grid-column: auto;
  }

  .rl-post-card-image {
    height: 205px;
  }

  .rl-horizontal-card-image {
    height: 220px;
  }

  .rl-post-card h3 {
    font-size: 24px;
  }

  .rl-series-card {
    min-height: 180px;
  }

  .rl-sidebar {
    gap: 13px;
  }

  .rl-tag-sections {
    padding-top: 20px;
  }

  .rl-tag-section {
    padding: 35px 0;
  }

  .rl-tag-section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .rl-horizontal-card-content {
    min-height: 215px;
  }

  .rl-horizontal-card-grid {
    gap: 16px;
  }

  .rl-cta {
    min-height: 420px;
  }

  .rl-cta-content {
    padding: 60px 18px;
  }

  .rl-cta h2 {
    font-size: clamp(37px, 12vw, 50px);
  }

  .rl-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .rl-primary-button,
  .rl-secondary-button {
    width: 100%;
  }

  .rl-footer {
    margin-top: 50px;
  }

  .rl-footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rl-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .rl-footer-socials {
    margin-top: 20px;
    padding-top: 16px;
  }

  .rl-footer-social-link {
    width: 40px;
    height: 40px;
  }

  .rl-footer-social-link svg {
    width: 18px;
    height: 18px;
  }

  .rl-hero {
    min-height: 330px;
  }

  .rl-hero-copy {
    padding-right: 18px;
    padding-left: 18px;
  }

  .rl-hero-copy-inner {
    padding: 56px 0 42px;
  }

  .rl-hero .rl-hero-title {
    margin-top: 10px;
    font-size: clamp(39px, 12vw, 53px);
    line-height: 1;
  }

  .rl-hero .rl-hero-excerpt {
    margin-bottom: 24px;
    font-size: 13px;
    line-height: 1.65;
  }

  .rl-hero-media img {
    object-position: 65% center;
  }

  .rl-hero .rl-primary-button {
    width: auto;
  }
}

/* =========================================================
   GHOST PORTAL TRANSPARENT BACKGROUND FIX
   ========================================================= */

#ghost-portal-root {
  color-scheme: light !important;
}

#ghost-portal-root iframe {
  color-scheme: light !important;
  background: transparent !important;
  background-color: transparent !important;
}

/* =========================================================
   CUSTOM TAG PAGE
   ========================================================= */

.rl-tag-page {
  min-height: 100vh;
  color: var(--rl-text);
}

/* =========================================================
   TAG HERO
   ========================================================= */

.rl-tag-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(430px, 50vw, 620px);
  overflow: hidden;
  background: var(--rl-bg-deep);
  border-bottom: 1px solid var(--rl-border-strong);
}

.rl-tag-hero-media {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.rl-tag-hero-media picture,
.rl-tag-hero-media img {
  width: 100%;
  height: 100%;
}

.rl-tag-hero-media img {
  object-fit: cover;
  object-position: center;
}

.rl-tag-hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 13, 0.52), rgba(2, 8, 13, 0.12)),
    linear-gradient(
      180deg,
      rgba(2, 8, 13, 0.2) 0%,
      rgba(2, 8, 13, 0.08) 42%,
      rgba(2, 8, 13, 0.78) 100%
    );
}

.rl-tag-hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: inherit;
}

.rl-tag-hero-inner {
  width: min(100%, 760px);
  text-align: center;
}

.rl-tag-hero-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--rl-gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.rl-tag-hero h1 {
  margin: 0;
  color: #f2e8d8;
  font-family: var(--rl-serif, Georgia, serif);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-shadow:
    0 4px 18px rgba(0, 0, 0, 0.68),
    0 14px 42px rgba(0, 0, 0, 0.4);
}

.rl-tag-hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  margin: 30px auto 0;
}

.rl-tag-hero-ornament span,
.rl-tag-section-ornament span {
  display: block;
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, transparent, rgba(205, 163, 95, 0.78));
}

.rl-tag-hero-ornament span:last-child,
.rl-tag-section-ornament span:last-child {
  background: linear-gradient(90deg, rgba(205, 163, 95, 0.78), transparent);
}

.rl-tag-hero-ornament i,
.rl-tag-section-ornament i {
  position: relative;
  display: block;
  width: 11px;
  height: 11px;
  margin-inline: 12px;
  border: 1px solid var(--rl-gold);
  transform: rotate(45deg);
}

.rl-tag-hero-ornament i::after,
.rl-tag-section-ornament i::after {
  position: absolute;
  inset: 3px;
  background: var(--rl-gold);
  content: "";
}

/* =========================================================
   INTRODUCTION
   ========================================================= */

.rl-tag-intro {
  padding-top: clamp(45px, 7vw, 78px);
  padding-bottom: clamp(45px, 7vw, 72px);
}

.rl-tag-container {
  width: min(100% - 48px, 1080px);
  margin-inline: auto;
}

.rl-tag-intro .rl-tag-container {
  max-width: 880px;
  text-align: center;
}

.rl-tag-intro h2 {
  margin: 0 0 18px;
  color: var(--rl-text);
  font-family: var(--rl-serif, Georgia, serif);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.05;
}

.rl-tag-intro p {
  max-width: 820px;
  margin: 0 auto;
  color: var(--rl-text-soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.rl-tag-section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  margin: 40px auto 0;
}

/* =========================================================
   POSTS
   ========================================================= */

.rl-tag-posts {
  padding-bottom: clamp(70px, 10vw, 30px);
}

.rl-tag-section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.rl-tag-section-heading h2 {
  flex: 0 0 auto;
  margin: 0;
  color: var(--rl-gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.rl-tag-section-heading > span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rl-border-strong);
}

.rl-tag-post-list {
  display: grid;
  row-gap: 10px;
  border-top: 1px solid var(--rl-border);
}

.rl-tag-post-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  min-height: 245px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rl-surface), rgba(6, 16, 24, 0.72));
  border: 1px solid var(--rl-border);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

html[data-theme="light"] .rl-tag-post-card {
  background: linear-gradient(
    135deg,
    var(--rl-surface),
    var(--rl-surface-soft)
  );
}

.rl-tag-post-card:hover {
  position: relative;
  z-index: 2;
  border-color: var(--rl-border-strong);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.rl-tag-post-image {
  position: relative;
  display: block;
  min-height: 245px;
  max-height: 400px;
  overflow: hidden;
  background: var(--rl-bg-deep);
}

.rl-tag-post-image picture,
.rl-tag-post-image img {
  width: 100%;
  height: 100%;
}

.rl-tag-post-image img {
  object-fit: cover;
  transition: transform 0.55s ease;
}

.rl-tag-post-card:hover .rl-tag-post-image img {
  transform: scale(1.04);
}

.rl-tag-image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 245px;
  padding: 25px;
  color: var(--rl-gold);
  background:
    radial-gradient(
      circle at center,
      rgba(205, 163, 95, 0.13),
      transparent 52%
    ),
    var(--rl-bg-deep);
  font-family: var(--rl-serif, Georgia, serif);
  font-size: 18px;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  place-items: center;
}

.rl-tag-post-content {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: clamp(25px, 4vw, 44px);
}

.rl-tag-post-label {
  align-self: flex-start;
  margin-bottom: 9px;
  color: var(--rl-gold-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rl-tag-post-label:hover {
  color: var(--rl-gold);
}

.rl-tag-post-card h3 {
  margin: 0 0 10px;
  color: var(--rl-text);
  font-family: var(--rl-serif, Georgia, serif);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.05;
}

.rl-tag-post-card h3 a {
  transition: color 0.2s ease;
}

.rl-tag-post-card h3 a:hover {
  color: var(--rl-gold-light);
}

.rl-tag-post-content > p {
  display: -webkit-box;
  margin: 0 0 19px;
  overflow: hidden;
  color: var(--rl-text-soft);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rl-tag-post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--rl-text-muted);
  font-size: 13px;
}

.rl-tag-post-meta i {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--rl-gold);
  border-radius: 50%;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 860px) {
  .rl-tag-hero {
    min-height: 500px;
  }

  .rl-tag-container {
    width: min(100% - 34px, 760px);
  }

  .rl-tag-post-card {
    grid-template-columns: minmax(230px, 0.82fr) minmax(0, 1.18fr);
  }

  .rl-tag-post-content {
    padding: 25px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
  .rl-tag-hero {
    min-height: 420px;
  }

  .rl-tag-hero-media img {
    object-position: center;
  }

  .rl-tag-hero h1 {
    font-size: clamp(46px, 14vw, 65px);
  }

  .rl-tag-hero-ornament {
    width: 190px;
    margin-top: 24px;
  }

  .rl-tag-container {
    width: min(100% - 28px, 560px);
  }

  .rl-tag-intro {
    padding-top: 42px;
    padding-bottom: 45px;
  }

  .rl-tag-intro h2 {
    font-size: clamp(35px, 10vw, 47px);
  }

  .rl-tag-intro p {
    font-size: 17px;
  }

  .rl-tag-section-ornament {
    width: 190px;
    margin-top: 30px;
  }

  .rl-tag-post-card {
    grid-template-columns: 1fr;
  }

  .rl-tag-post-image,
  .rl-tag-image-placeholder {
    min-height: 225px;
  }

  .rl-tag-post-content {
    padding: 24px 21px 27px;
  }

  .rl-tag-post-card h3 {
    font-size: 24px;
  }

  .rl-tag-post-content > p {
    font-size: 16px;
  }
}

/* =========================================================
   HOMEPAGE ABOUT SECTION
   ========================================================= */

.rl-home-about {
  position: relative;
  padding: clamp(42px, 6vw, 65px) 0;
  color: var(--rl-text);
  border-bottom: 1px solid var(--rl-border-one);
}

.rl-home-about-inner {
  width: min(100%, 940px);
}

.rl-home-about h2 {
  margin: 0;
  color: var(--rl-text);
  font-family: var(--rl-serif, Georgia, serif);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.rl-home-about-ornament {
  display: flex;
  align-items: center;
  width: 105px;
  margin: 13px 0 22px;
}

.rl-home-about-ornament span {
  display: block;
  height: 1px;
  flex: 1 1 auto;
  background: linear-gradient(90deg, transparent, rgba(205, 163, 95, 0.75));
}

.rl-home-about-ornament span:last-child {
  background: linear-gradient(90deg, rgba(205, 163, 95, 0.75), transparent);
}

.rl-home-about-ornament i {
  position: relative;
  display: block;
  width: 7px;
  height: 7px;
  margin-inline: 6px;
  border: 1px solid var(--rl-gold, #cda35f);
  transform: rotate(45deg);
}

.rl-home-about-ornament i::after {
  position: absolute;
  inset: 2px;
  background: var(--rl-gold, #cda35f);
  content: "";
}

.rl-home-about-content {
  max-width: 790px;
  color: var(--rl-text);
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
}

.rl-home-about-content > p {
  margin: 0;
}

.rl-home-about-content > p + p {
  margin-top: 16px;
}

/* Ghost Button card becomes a text link */

.rl-home-about-content .kg-button-card {
  margin: 20px 0 0;
  text-align: left;
}

.rl-home-about-content .kg-button-card.kg-align-center,
.rl-home-about-content .kg-button-card.kg-align-left,
.rl-home-about-content .kg-button-card.kg-align-right {
  text-align: left;
}

.rl-home-about-content .kg-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  padding: 0;
  color: var(--rl-gold, #cda35f);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.rl-home-about-content .kg-btn::after {
  content: "→";
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.rl-home-about-content .kg-btn:hover {
  gap: 12px;
  color: var(--rl-gold-light, #e1b966);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.rl-home-about-content .kg-btn:hover::after {
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .rl-home-about {
    padding: 38px 0;
  }

  .rl-home-about h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .rl-home-about-content {
    font-size: 15px;
    line-height: 1.6;
  }

  .rl-home-about-content .kg-button-card {
    margin-top: 18px;
  }
}

/* About section Ghost button as a simple text link */
.rl-home-about-content .kg-button-card {
  margin: 20px 0 0;
  text-align: left !important;
}

.rl-home-about-content .kg-button-card.kg-align-center,
.rl-home-about-content .kg-button-card.kg-align-left,
.rl-home-about-content .kg-button-card.kg-align-right {
  text-align: left !important;
}

.rl-home-about-content .kg-button-card .kg-btn.kg-btn-accent {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;

  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  color: var(--rl-gold, #cda35f) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;

  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

.rl-home-about-content .kg-button-card .kg-btn.kg-btn-accent::after {
  content: "→";
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.rl-home-about-content .kg-button-card .kg-btn.kg-btn-accent:hover {
  gap: 12px;
  color: var(--rl-gold-light, #e1b966) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.rl-home-about-content .kg-button-card .kg-btn.kg-btn-accent:hover::after {
  transform: translateX(3px);
}
