/* ============================================================
   RG Single Post — Styles
   ============================================================ */
:root {
  --rg-navy:        #0C1C2C;
  --rg-navy-soft:   #102537;
  --rg-white:       #FCFCFC;
  --rg-teal:        #447474;
  --rg-teal-bright: #5A9090;
  --rg-stone:       #A49C94;
  --rg-light:       #F4F4F4;
  --rg-charcoal:    #2B3640;
  --rg-line:        rgba(164,156,148,.28);
  --rg-line-light:  rgba(12,28,44,.12);
  --rg-maxw:        1180px;
}

/* Shared wrap util (matches parent .wrap if not already defined) */
.rg-single-main .wrap,
.rg-post-nav .wrap,
.rg-single-cta-wrap .wrap,
.rg-single-hero .wrap {
  max-width: var(--rg-maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── shared label ─────────────────────────────────────────── */
.rg-label {
  font-size: 11px;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: var(--rg-teal);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rg-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rg-teal);
  flex-shrink: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.rg-single-hero {
  position: relative;
  overflow: hidden;
}

/* Featured-image variant */
.rg-single-hero--image {
  background-size: cover;
  background-position: center;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}
.rg-single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,28,44,.18) 0%,
    rgba(12,28,44,.72) 60%,
    rgba(12,28,44,.88) 100%
  );
}

/* Navy-only variant (no featured image) */
.rg-single-hero--navy {
  background: var(--rg-navy);
  background-image:
    radial-gradient(90% 80% at 90% 0%, rgba(68,116,116,.26), transparent 55%),
    radial-gradient(70% 60% at 0% 110%, rgba(164,156,148,.10), transparent 60%);
}

.rg-single-hero__inner {
  position: relative;
  z-index: 2;
  padding: 80px 28px 64px;
  width: 100%;
}

/* Post title in hero */
.rg-single-title {
  color: var(--rg-white);
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -.02em;
  max-width: 22ch;
  margin-bottom: 22px;
}

/* Meta row */
.rg-single-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(252,252,252,.70);
  font-size: .88rem;
  letter-spacing: .02em;
  margin-bottom: 40px;
}
.rg-single-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: 5px;
}
.rg-single-meta__date,
.rg-single-meta__read {
  display: flex;
  align-items: center;
  gap: 5px;
}
.rg-single-meta__sep { opacity: .4; }

/* ============================================================
   CONTENT LAYOUT
   ============================================================ */
.rg-single-main {
  padding: 64px 0 80px;
}

.rg-single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* ── Entry body typography ─────────────────────────────────── */
.rg-entry-body {
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--rg-charcoal);
}

.rg-entry-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 400;
  color: var(--rg-navy);
  margin: 2.2em 0 .7em;
  letter-spacing: -.01em;
  line-height: 1.22;
}
.rg-entry-body h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  color: var(--rg-navy);
  margin: 1.8em 0 .6em;
  line-height: 1.28;
}
.rg-entry-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rg-navy);
  letter-spacing: .03em;
  margin: 1.4em 0 .5em;
}

.rg-entry-body p { margin-bottom: 1.4em; }
.rg-entry-body p:last-child { margin-bottom: 0; }

.rg-entry-body a {
  color: var(--rg-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.rg-entry-body a:hover { color: var(--rg-navy); }

.rg-entry-body strong { color: var(--rg-navy); font-weight: 600; }

.rg-entry-body ul,
.rg-entry-body ol {
  margin: 0 0 1.4em 1.6em;
  padding: 0;
}
.rg-entry-body li { margin-bottom: .45em; }

.rg-entry-body blockquote {
  margin: 2em 0;
  padding: 22px 28px 22px 32px;
  border-left: 3px solid var(--rg-teal);
  background: var(--rg-light);
  border-radius: 0 3px 3px 0;
  font-size: 1.12rem;
  color: var(--rg-navy);
  font-weight: 300;
  line-height: 1.65;
}
.rg-entry-body blockquote p { margin: 0; }
.rg-entry-body blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: .86rem;
  color: var(--rg-stone);
  font-style: normal;
  letter-spacing: .04em;
}

.rg-entry-body figure { margin: 2em 0; }
.rg-entry-body figure img {
  width: 100%;
  border-radius: 3px;
}
.rg-entry-body figcaption {
  margin-top: 10px;
  font-size: .82rem;
  color: var(--rg-stone);
  text-align: center;
  font-style: italic;
}

.rg-entry-body hr {
  border: none;
  border-top: 1px solid var(--rg-line);
  margin: 2.4em 0;
}

/* ── Tags ──────────────────────────────────────────────────── */
.rg-single-tags {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rg-line-light);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.rg-single-tags__label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rg-stone);
  font-weight: 700;
  margin-right: 4px;
}
.rg-tag-chip {
  display: inline-block;
  border: 1px solid var(--rg-line);
  border-radius: 2px;
  padding: 6px 14px;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--rg-navy);
  background: var(--rg-white);
  transition: background .2s, border-color .2s, color .2s;
  text-decoration: none;
}
.rg-tag-chip:hover {
  background: var(--rg-navy);
  border-color: var(--rg-navy);
  color: var(--rg-white);
}

/* ============================================================
   ASIDE / SIDEBAR
   ============================================================ */
.rg-single-aside {
  position: sticky;
  top: 100px;
}
.rg-aside-card {
  background: var(--rg-navy);
  border-radius: 4px;
  padding: 32px 28px;
  color: rgba(252,252,252,.78);
}
.rg-aside-card .rg-label {
  color: var(--rg-teal-bright);
}
.rg-aside-card .rg-label::before {
  background: var(--rg-teal-bright);
}
.rg-aside-card p {
  font-size: .94rem;
  line-height: 1.65;
  margin-bottom: 22px;
}
.rg-aside-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  font-size: .9rem;
  color: var(--rg-teal-bright);
  text-decoration: none;
  transition: color .2s;
}
.rg-aside-phone svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.rg-aside-phone:hover { color: var(--rg-white); }

/* ── Shared buttons ────────────────────────────────────────── */
.rg-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .22s, border-color .22s, color .22s;
  white-space: nowrap;
}
.rg-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.rg-btn--dark  { background: var(--rg-white); color: var(--rg-navy); width: 100%; justify-content: center; }
.rg-btn--dark:hover  { background: var(--rg-teal); color: var(--rg-white); }
.rg-btn--teal  { background: var(--rg-teal); color: var(--rg-white); }
.rg-btn--teal:hover  { background: #56908f; }
.rg-btn--ghost { border-color: rgba(252,252,252,.32); color: var(--rg-white); }
.rg-btn--ghost:hover { border-color: var(--rg-white); background: rgba(252,252,252,.06); }

/* ============================================================
   PREV / NEXT NAVIGATION
   ============================================================ */
.rg-post-nav {
  background: var(--rg-light);
  border-top: 1px solid var(--rg-line-light);
  padding: 48px 0;
}

.rg-post-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rg-post-nav__card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--rg-white);
  border: 1px solid var(--rg-line-light);
  border-radius: 4px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .22s, transform .22s;
  min-height: 100px;
}
.rg-post-nav__card:hover {
  box-shadow: 0 6px 24px rgba(12,28,44,.09);
  transform: translateY(-2px);
}
.rg-post-nav__card--empty {
  pointer-events: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.rg-post-nav__card--next {
  flex-direction: row-reverse;
  text-align: right;
}

.rg-post-nav__thumb {
  width: 80px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--rg-light);
}
.rg-post-nav__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rg-post-nav__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.rg-post-nav__dir {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rg-teal);
  font-weight: 700;
}
.rg-post-nav__dir svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.rg-post-nav__card--next .rg-post-nav__dir {
  justify-content: flex-end;
}

.rg-post-nav__cat {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rg-stone);
  font-weight: 600;
}

.rg-post-nav__title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--rg-navy);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .rg-single-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rg-single-aside {
    position: static;
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .rg-single-hero--image { min-height: 340px; }
  .rg-single-hero__inner { padding: 60px 20px 48px; }
  .rg-post-nav__inner { grid-template-columns: 1fr; }
  .rg-post-nav__card--empty { display: none; }
  .rg-single-cta { padding: 38px 24px; }
  .rg-entry-body { font-size: 1rem; }
  .rg-single-main { padding: 44px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
