/* x: page styles, moved from the old plugin template. Menu and footer rules removed (they live in base.css). */
:root {
  --rsg-black:    #000000;
  --rsg-ink:      #1A1E2D;
  --rsg-white:    #FFFFFF;
  --rsg-paper:    #F2F2F2;
  --rsg-red:      #BE3431;
  --rsg-red-soft: #D55F5B;
  --rsg-grey-700: #595959;
  --rsg-grey-500: #888888;
  --rsg-grey-200: #D0D0D0;
  --rsg-grey-100: #E3E3E3;
  --font: "Red Hat Display", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font) !important; font-weight: 300;
  color: var(--rsg-black); background: var(--rsg-white);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* NAV */

/* ============================================================
   NAV: MOBILE RESPONSIVE
   ============================================================ */

/* HERO */
.rsg-post-hero {
  background: var(--rsg-black);
  padding: 100px 56px 0;
  position: relative; overflow: hidden;
}
.rsg-post-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
}
.rsg-post-hero-left { padding-bottom: 56px; }
.rsg-post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.rsg-post-cat-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rsg-red); }
.rsg-post-cat-tag + .rsg-post-cat-tag::before { content: '·'; margin-right: 8px; color: rgba(255,255,255,0.2); }
.rsg-post-hero-title { font-size: clamp(26px, 3.5vw, 46px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; color: var(--rsg-white); margin-bottom: 28px; }
.rsg-post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rsg-post-author { display: flex; align-items: center; gap: 10px; }
.rsg-post-author-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--rsg-ink); flex-shrink: 0; }
.rsg-post-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rsg-post-author-name { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.rsg-post-meta-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.15); }
.rsg-post-date-label { font-size: 12px; font-weight: 400; color: rgba(255,255,255,0.4); }
.rsg-post-hero-image { width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative; align-self: end; }
.rsg-post-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.rsg-post-hero-no-image { padding-bottom: 56px; }

/* BREADCRUMB */
.rsg-breadcrumb { background: var(--rsg-ink); border-bottom: 1px solid rgba(255,255,255,0.07); padding: 14px 56px; }
.rsg-breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); }
.rsg-breadcrumb a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.rsg-breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.rsg-breadcrumb-sep { color: rgba(255,255,255,0.15); }
.rsg-breadcrumb-current { color: rgba(255,255,255,0.6); }

/* POST BODY */
.rsg-post-body-section { background: var(--rsg-white); padding: 72px 56px; }
.rsg-post-body-inner { max-width: 780px; margin: 0 auto; }

/* CONTENT TYPOGRAPHY */
.rsg-post-content { font-size: 17px; font-weight: 300; line-height: 1.8; color: #2a2a2a; }
.rsg-post-content p { margin-bottom: 24px; }
.rsg-post-content p:last-child { margin-bottom: 0; }
.rsg-post-content h1,
.rsg-post-content h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.2; color: var(--rsg-black); margin: 48px 0 16px; }
.rsg-post-content h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--rsg-black); margin: 36px 0 14px; }
.rsg-post-content h4,
.rsg-post-content h5,
.rsg-post-content h6 { font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.4; color: var(--rsg-black); margin: 28px 0 10px; }
.rsg-post-content h2::before { content: ''; display: block; width: 32px; height: 3px; background: var(--rsg-red); margin-bottom: 16px; }
.rsg-post-content ul,
.rsg-post-content ol { padding-left: 24px; margin-bottom: 24px; }
.rsg-post-content ul { list-style: none; padding-left: 0; }
.rsg-post-content ul li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.rsg-post-content ul li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--rsg-red); border-radius: 50%; }
.rsg-post-content ol li { margin-bottom: 10px; padding-left: 6px; }
.rsg-post-content ol li::marker { color: var(--rsg-red); font-weight: 700; }
.rsg-post-content strong,
.rsg-post-content b { font-weight: 700; color: var(--rsg-black); }
.rsg-post-content em,
.rsg-post-content i { font-style: italic; }
.rsg-post-content a { color: var(--rsg-red); text-decoration: underline; text-decoration-color: rgba(190,52,49,0.3); transition: text-decoration-color 0.2s; }
.rsg-post-content a:hover { text-decoration-color: var(--rsg-red); }
.rsg-post-content blockquote { border-left: 4px solid var(--rsg-red); padding: 20px 28px; background: var(--rsg-paper); margin: 32px 0; }
.rsg-post-content blockquote p { font-size: 18px; font-weight: 400; font-style: italic; color: var(--rsg-ink); margin: 0; line-height: 1.65; }
.rsg-post-content figure { margin: 32px 0; }
.rsg-post-content figure img { width: 100%; border-radius: 0; }
.rsg-post-content figcaption { font-size: 12px; font-weight: 400; color: var(--rsg-grey-500); margin-top: 10px; text-align: center; }
.rsg-post-content img { max-width: 100%; height: auto; margin: 24px 0; }
.rsg-post-content hr { border: none; border-top: 1px solid var(--rsg-grey-100); margin: 40px 0; }
.rsg-post-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 15px; }
.rsg-post-content th { background: var(--rsg-black); color: var(--rsg-white); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 11px; padding: 12px 16px; text-align: left; }
.rsg-post-content td { padding: 12px 16px; border-bottom: 1px solid var(--rsg-grey-100); vertical-align: top; }
.rsg-post-content tr:nth-child(even) td { background: var(--rsg-paper); }
.rsg-post-content code { font-family: 'Courier New', monospace; font-size: 14px; background: var(--rsg-paper); padding: 2px 8px; color: var(--rsg-red); }
.rsg-post-content pre { background: var(--rsg-ink); padding: 24px; overflow-x: auto; margin-bottom: 24px; }
.rsg-post-content pre code { background: none; color: rgba(255,255,255,0.8); padding: 0; }

/* SHARE + TAG BAR */
.rsg-post-meta-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--rsg-grey-100); }
.rsg-post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rsg-post-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--rsg-paper); border: 1px solid var(--rsg-grey-100); color: var(--rsg-grey-700); padding: 5px 10px; }
.rsg-back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rsg-red); transition: gap 0.2s; }
.rsg-back-link:hover { gap: 12px; }

/* RELATED POSTS */
.rsg-related-section { background: var(--rsg-paper); padding: 72px 56px; }
.rsg-related-inner { max-width: 1200px; margin: 0 auto; }
.rsg-related-label { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rsg-red); margin-bottom: 8px; }
.rsg-related-headline { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; color: var(--rsg-black); margin-bottom: 40px; }
.rsg-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.rsg-related-card { background: var(--rsg-white); display: flex; flex-direction: column; transition: background 0.2s; }
.rsg-related-card:hover { background: #f8f8f8; }
.rsg-related-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--rsg-ink); }
.rsg-related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.rsg-related-card:hover .rsg-related-thumb img { transform: scale(1.03); }
.rsg-related-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.rsg-related-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.rsg-related-cat { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rsg-red); margin-bottom: 8px; }
.rsg-related-title { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; color: var(--rsg-black); flex: 1; }
.rsg-related-date { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rsg-grey-500); margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rsg-grey-100); }

/* CTA STRIP */
.rsg-cta-strip { background: var(--rsg-black); padding: 80px 56px; text-align: center; position: relative; overflow: hidden; }
.rsg-grid-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px); background-size: 64px 64px; }
.rsg-cta-headline { font-size: clamp(24px, 3vw, 40px); font-weight: 900; color: var(--rsg-white); letter-spacing: -0.02em; margin-bottom: 16px; position: relative; z-index: 2; }
.rsg-cta-sub { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.5); max-width: 420px; margin: 0 auto 32px; line-height: 1.65; position: relative; z-index: 2; }
.rsg-btn-primary { display: inline-block; background: var(--rsg-red); color: #fff; padding: 16px 36px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s; position: relative; z-index: 2; }
.rsg-btn-primary:hover { background: var(--rsg-red-soft); }

/* FOOTER */

/* RESPONSIVE */
@media (max-width: 1024px) {
  .rsg-post-hero { padding: 100px 24px 0; }
  .rsg-post-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .rsg-post-hero-left { padding-bottom: 0; }
  .rsg-post-hero-image { aspect-ratio: 16/9; }
  .rsg-breadcrumb { padding: 14px 24px; }
  .rsg-post-body-section { padding: 56px 24px; }
  .rsg-related-section { padding: 56px 24px; }
  .rsg-related-grid { grid-template-columns: 1fr 1fr; }
  .rsg-cta-strip { padding: 64px 24px; }}
@media (max-width: 640px) {
  .rsg-post-hero { padding: 84px 16px 0; }
  .rsg-breadcrumb { padding: 12px 16px; }
  .rsg-post-body-section { padding: 40px 16px; }
  .rsg-post-content { font-size: 16px; }
  .rsg-related-section { padding: 48px 16px; }
  .rsg-related-grid { grid-template-columns: 1fr; }
  .rsg-cta-strip { padding: 56px 16px; }}
