/**
 * Enterprise news shell — layout, header, boxes, responsive.
 * Tokens: --cm-* from child theme news.css / style.css
 */

*, *::before, *::after { box-sizing: border-box; }

.rn-enterprise {
  /* Editorial type scale — readable Persian */
  --rn-fs-body: 19.5px;
  --rn-fs-meta: 1.0625rem;   /* 17px */
  --rn-fs-ui: 1.1875rem;     /* 19px */
  --rn-fs-card: 1.3125rem;   /* 21px */
  --rn-fs-section: clamp(1.55rem, 2.2vw, 1.85rem);
  --rn-fs-hero: clamp(1.75rem, 3vw, 2.25rem);
  --rn-fs-widget: 1.25rem;
  --rn-fs-badge: 0.875rem;
  --rn-fs-nav: var(--rn-fs-ui); /* برندها در news.css می‌توانند override کنند */
  --rn-space-1: 4px;
  --rn-space-2: 8px;
  --rn-space-3: 12px;
  --rn-space-4: 16px;
  --rn-space-5: 24px;
  --rn-space-6: 32px;
  --rn-space-7: 40px;
  --rn-space-8: 48px;
  --rn-radius: var(--cm-radius, 10px);
  --rn-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 14px rgb(0 0 0 / 0.03);
  --rn-shadow-hover: 0 4px 18px rgb(0 0 0 / 0.08);
  --rn-ease: 220ms ease;

  margin: 0;
  background: var(--cm-bg, #f5f5f5) !important;
  color: var(--cm-text, #121212);
  font-family: var(--cm-font, Vazirmatn, Tahoma, sans-serif);
  font-size: var(--rn-fs-body);
  font-weight: 400;
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.rn-enterprise h1,
.rn-enterprise h2,
.rn-enterprise h3,
.rn-enterprise h4,
.rn-enterprise h5,
.rn-enterprise h6,
.rn-enterprise .rn-site-title,
.rn-enterprise .rn-section-title,
.rn-enterprise .rn-slide-title,
.rn-enterprise .rn-card-title,
.rn-enterprise .rn-article-title,
.rn-enterprise .rn-top2-title,
.rn-enterprise .rn-footer-title,
.rn-enterprise .rn-widget-title {
  font-family: var(--cm-font, Vazirmatn, Tahoma, sans-serif);
  font-weight: 700;
  letter-spacing: -0.015em;
}
body.rn-enterprise.home,
body.rn-enterprise.blog {
  background: var(--cm-bg, #f5f5f5) !important;
}

.rn-enterprise img { max-width: 100%; height: auto; display: block; }
.rn-enterprise a { color: var(--cm-accent, #c62828); text-decoration: none; }
.rn-enterprise a:hover { filter: brightness(0.92); }
.rn-enterprise a:focus-visible,
.rn-enterprise button:focus-visible,
.rn-enterprise input:focus-visible {
  outline: 2px solid var(--cm-accent, #c62828);
  outline-offset: 2px;
}

.screen-reader-text,
.rn-skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
.rn-skip-link:focus {
  position: fixed;
  top: 8px; right: 8px;
  z-index: 9999;
  width: auto; height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--cm-surface, #fff);
  color: var(--cm-text);
  box-shadow: var(--cm-shadow, 0 2px 10px rgba(0,0,0,.08));
  border-radius: var(--cm-radius, 8px);
}

.rn-container {
  width: min(100% - 2rem, 1360px);
  margin-inline: auto;
}
.rn-main {
  width: 100%;
  max-width: none;
}
.rn-header .custom-logo,
.rn-brand .custom-logo {
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Neutralize ColorMag column layout (prevents empty 30% sidebar gap) */
body.rn-enterprise .cm-content,
body.rn-enterprise .cm-row,
body.rn-enterprise #content,
body.rn-enterprise .site-content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}
body.rn-enterprise .cm-primary,
body.rn-enterprise #primary,
body.rn-enterprise .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding-inline: 0 !important;
}
body.rn-enterprise .cm-secondary,
body.rn-enterprise #secondary,
body.rn-enterprise .widget-area {
  display: none !important;
}
@media screen and (min-width: 992px) {
  body.rn-enterprise .cm-primary {
    width: 100% !important;
  }
}

/* Header — editorial sticky masthead */
.rn-header {
  background: var(--cm-surface, #fff);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--cm-text) 8%, transparent);
  transition: box-shadow var(--rn-ease, 220ms ease);
}
.rn-header.rn-header-scrolled {
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.07);
}
.rn-header-top {
  background: color-mix(in srgb, var(--cm-text, #121212) 94%, #000);
  font-size: var(--rn-fs-meta);
  color: rgba(255, 255, 255, 0.78);
}
.rn-header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--rn-space-4, 16px);
  padding: 0.35rem 0;
  min-height: 28px;
}
.rn-date { white-space: nowrap; opacity: 0.95; }
.rn-tagline {
  opacity: 0.75;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.rn-live-pill { display: none; }

.rn-header-brand {
  background: var(--cm-surface, #fff);
}
.rn-header-brand-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(220px, 420px) auto;
  align-items: center;
  gap: var(--rn-space-5, 24px);
  padding: 0.7rem 0;
}
.rn-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
}
.rn-brand-tag {
  margin: 0;
  font-size: var(--rn-fs-meta);
  color: var(--cm-muted, #6b6b6b);
  line-height: 1.35;
  max-width: 36ch;
}
.rn-site-title {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: var(--cm-text);
  line-height: 1.15;
}
.custom-logo-link img,
.rn-brand-logo img { max-height: 48px; width: auto; }

.rn-search {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--cm-text) 12%, transparent);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--cm-bg, #f5f5f5) 70%, #fff);
  transition: border-color var(--rn-ease), box-shadow var(--rn-ease), background var(--rn-ease);
}
.rn-search:focus-within {
  border-color: color-mix(in srgb, var(--cm-accent) 55%, transparent);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cm-accent) 16%, transparent);
}
.rn-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline-start: 0.75rem;
  color: var(--cm-muted, #6b6b6b);
  flex-shrink: 0;
}
.rn-search input {
  flex: 1;
  border: 0;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: transparent;
  color: var(--cm-text);
  min-width: 0;
  outline: none;
}
.rn-search button {
  border: 0;
  background: transparent;
  color: var(--cm-accent, #b71c1c);
  padding: 0 0.9rem;
  cursor: pointer;
  min-height: 44px;
  font-weight: 700;
  font-size: var(--rn-fs-meta);
}
.rn-search button:hover { filter: brightness(0.9); }
.rn-header-actions {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.rn-search-toggle,
.rn-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--cm-text) 5%, transparent);
  color: var(--cm-text);
  cursor: pointer;
}
.rn-nav-toggle {
  flex-direction: column;
  gap: 5px;
}
.rn-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Nav — transparent so brand dark/light header shows through */
.rn-nav {
  background: transparent;
  border-top: 1px solid color-mix(in srgb, var(--cm-text) 6%, transparent);
}
.rn-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.25rem;
}
.rn-menu > li { position: relative; }
.rn-menu a {
  display: flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  color: var(--cm-text);
  font-weight: 700;
  font-size: var(--rn-fs-nav, var(--rn-fs-ui, 1rem));
  filter: none !important;
  border-bottom: 2px solid transparent;
  transition: color var(--rn-ease), border-color var(--rn-ease), background var(--rn-ease);
  min-height: 44px;
  line-height: 1.25;
}
.rn-menu a:hover {
  color: var(--cm-accent, #b71c1c);
  background: transparent;
}
.rn-menu .current-menu-item > a,
.rn-menu .current_page_item > a,
.rn-menu a[aria-current="page"] {
  color: var(--cm-accent, #b71c1c);
  border-bottom-color: var(--cm-accent, #b71c1c);
  background: transparent;
  font-weight: 700;
}

.rn-main { padding: var(--rn-space-5, 24px) 0 var(--rn-space-8, 48px); }

/* Editorial strip — thin signal line */
.rn-editorial-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0 0 var(--rn-space-5, 24px);
  padding: 0.45rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--cm-text) 8%, transparent);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-size: var(--rn-fs-meta);
  color: var(--cm-muted, #6b6b6b);
  line-height: 1.5;
}
.rn-editorial-label {
  font-weight: 700;
  color: var(--cm-text);
  font-size: var(--rn-fs-meta);
}
.rn-editorial-sep { opacity: 0.35; }
.rn-editorial-copy { flex: 1 1 12rem; }
.rn-editorial-link {
  margin-inline-start: auto;
  font-weight: 700;
  color: var(--cm-accent, #b71c1c) !important;
  text-decoration: none;
  padding: 0.2rem 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--cm-accent) 40%, transparent);
}
.rn-editorial-link:hover {
  background: transparent;
  border-bottom-color: var(--cm-accent);
}

/* Home top row */
.rn-top-row {
  display: grid;
  gap: var(--rn-space-5, 24px);
  margin-bottom: var(--rn-space-6, 32px);
}
.rn-top-ratio-70-30 { grid-template-columns: 1fr; }
.rn-top-no-side { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .rn-top-ratio-70-30:not(.rn-top-no-side) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    align-items: stretch;
  }
}

.rn-home { padding-bottom: 0.5rem; }
.rn-home-body { display: block; }
.rn-home-body.rn-has-sidebar {
  display: grid;
  gap: var(--rn-space-6, 32px);
  width: 100%;
}
.rn-home-main { min-width: 0; width: 100%; }
.rn-sidebar { min-width: 0; }
@media (min-width: 1024px) {
  .rn-home-body.rn-has-sidebar {
    grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
    align-items: start;
    gap: var(--rn-space-6, 32px);
  }
  .rn-home-body.rn-has-sidebar .rn-sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

/* Branded media placeholder (no featured image) */
.rn-thumb-ph {
  display: flex;
  align-items: flex-end;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--cm-radius, 8px);
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--cm-accent, #c62828) 75%, #111) 0%,
      color-mix(in srgb, var(--cm-text, #1a1a1a) 85%, #000) 100%);
  color: #fff;
  padding: 0.75rem;
  box-sizing: border-box;
}
.rn-thumb-ph-label {
  font-size: var(--rn-fs-meta);
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rn-slide .rn-thumb-ph { aspect-ratio: 16/9; border-radius: 0; min-height: 220px; }
.rn-top2-thumb .rn-thumb-ph,
.rn-thumb .rn-thumb-ph { aspect-ratio: 16/10; min-height: 0; padding: 0.35rem; }
.rn-thumb .rn-thumb-ph { aspect-ratio: 1; }
.rn-thumb .rn-thumb-ph-label { font-size: var(--rn-fs-meta); -webkit-line-clamp: 2; }
.rn-poster .rn-thumb-ph { aspect-ratio: 2/3; }
.rn-op-large .rn-thumb-ph,
.rn-op-small .rn-thumb-ph,
.rn-mosaic .rn-thumb-ph,
.rn-gallery-grid .rn-thumb-ph,
.rn-card-thumb .rn-thumb-ph { width: 100%; }

.rn-op-large h3,
.rn-op-small h4,
.rn-mosaic h3,
.rn-gallery-grid h3 {
  margin: 0.5rem 0 0;
  color: var(--cm-text);
  font-size: var(--rn-fs-card);
  line-height: 1.4;
}
.rn-op-large a,
.rn-op-small a,
.rn-mosaic a,
.rn-gallery-grid a { display: block; color: inherit; }

/* Sections — light editorial headers, no heavy portal boxes */
.rn-section {
  margin-bottom: var(--rn-space-6, 32px);
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.rn-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rn-space-4, 16px);
  margin: 0 0 var(--rn-space-4, 16px);
  padding: 0 0 var(--rn-space-3, 12px);
  background: transparent;
  border-bottom: 1px solid color-mix(in srgb, var(--cm-text) 10%, transparent);
  border-radius: 0;
}
.rn-section-title {
  margin: 0;
  font-size: var(--rn-fs-section);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.rn-section-title::before {
  content: "";
  width: 3px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--cm-accent, #b71c1c);
  flex: 0 0 auto;
}
.rn-section-title a { color: var(--cm-text); filter: none; }
.rn-section-title a:hover { color: var(--cm-accent, #b71c1c); }
.rn-section-more {
  font-size: var(--rn-fs-meta);
  font-weight: 700;
  color: var(--cm-muted, #6b6b6b);
  padding: 0.35rem 0;
  border-radius: 0;
  background: transparent;
  filter: none;
  white-space: nowrap;
}
.rn-section-more:hover {
  color: var(--cm-accent, #b71c1c);
  background: transparent;
}

/* Hero slider — editorial visual weight */
.rn-hero-slider {
  position: relative;
  border-radius: var(--rn-radius, 10px);
  overflow: hidden;
  background: #121212;
  box-shadow: var(--rn-shadow);
  height: 100%;
}
.rn-slide { display: none; }
.rn-slide.is-active { display: block; }
.rn-slide-link { display: block; color: #fff; position: relative; filter: none; }
.rn-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.rn-slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.25rem 1.15rem;
  background: linear-gradient(to top, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.28) 55%, transparent 100%);
}
.rn-slide-title {
  margin: 0.4rem 0 0.25rem;
  font-size: var(--rn-fs-hero);
  color: #fff;
  line-height: 1.35;
  max-width: 34ch;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rn-slide-caption time,
.rn-slide-caption .rn-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--rn-fs-meta);
}
.rn-cat-badge {
  display: inline-block;
  background: var(--cm-accent, #b71c1c);
  color: #fff;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  font-size: var(--rn-fs-badge);
  font-weight: 700;
}
.rn-slider-controls {
  position: absolute;
  inset-inline-end: 0.65rem;
  bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  background: rgb(0 0 0 / 0.35);
  border-radius: 8px;
  border: 0;
  backdrop-filter: blur(4px);
  z-index: 2;
}
.rn-slider-prev, .rn-slider-next {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
}
.rn-slider-prev:hover, .rn-slider-next:hover {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}
.rn-slider-dots { display: flex; gap: 0.3rem; align-items: center; padding-inline: 0.2rem; }
.rn-slider-dots button {
  width: 7px;
  height: 7px;
  min-width: 7px;
  min-height: 7px;
  border-radius: 50%;
  border: 0;
  background: rgb(255 255 255 / 0.4);
  padding: 0;
  cursor: pointer;
}
.rn-slider-dots button[aria-selected="true"] {
  background: #fff;
  width: 8px;
  height: 8px;
}

/* Top2 — stacked editorial side cards */
.rn-top2-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--rn-space-3, 12px);
  height: 100%;
  align-content: stretch;
}
.rn-top2-item { min-height: 0; }
.rn-top2-link {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--cm-text) !important;
  background: var(--cm-surface, #fff);
  padding: 0.55rem;
  border-radius: var(--rn-radius, 10px);
  border: 1px solid color-mix(in srgb, var(--cm-text) 8%, transparent);
  box-shadow: var(--rn-shadow);
  filter: none !important;
  transition: border-color var(--rn-ease), box-shadow var(--rn-ease);
  height: 100%;
}
.rn-top2-link:hover {
  border-color: color-mix(in srgb, var(--cm-accent) 28%, transparent);
  box-shadow: var(--rn-shadow-hover);
}
.rn-top2-thumb {
  overflow: hidden;
  border-radius: 8px;
  align-self: stretch;
}
.rn-top2-thumb img {
  width: 100%;
  height: 100%;
  min-height: 70px;
  aspect-ratio: 100 / 70;
  object-fit: cover;
  border-radius: 8px;
  transition: transform var(--rn-ease);
}
.rn-top2-link:hover .rn-top2-thumb img { transform: scale(1.02); }
.rn-top2-title {
  font-weight: 700;
  font-size: var(--rn-fs-card);
  line-height: 1.4;
  color: var(--cm-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rn-top2-link:hover .rn-top2-title { color: var(--cm-accent, #b71c1c); }
.rn-top2-link .rn-meta { color: var(--cm-muted, #6b6b6b); font-size: var(--rn-fs-meta); }

/* Boxes — full-width magazine grids */
.rn-box {
  width: 100%;
  min-width: 0;
}
.rn-one-plus-three {
  display: grid;
  gap: var(--rn-space-5, 24px);
  width: 100%;
  min-width: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .rn-one-plus-three {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: var(--rn-space-5, 24px);
    align-items: stretch;
  }
}
.rn-op-large,
.rn-op-small {
  min-width: 0;
  width: 100%;
}
/* سه خبر کناری: پشتهٔ افقی خوانا، نه ۳ ستون فشرده */
.rn-op-small {
  display: grid;
  gap: var(--rn-space-3, 12px);
  grid-template-columns: 1fr;
  align-content: start;
}
.rn-op-large img, .rn-op-small img,
.rn-mosaic img, .rn-gallery-grid img {
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--rn-radius, 10px) var(--rn-radius, 10px) 0 0;
  width: 100%;
  height: auto;
  background: color-mix(in srgb, var(--cm-text) 8%, transparent);
  transition: transform var(--rn-ease);
}
.rn-op-large a:hover img,
.rn-op-small a:hover img,
.rn-mosaic a:hover img,
.rn-gallery-grid a:hover img {
  transform: scale(1.02);
}
.rn-op-large,
.rn-op-small article,
.rn-mosaic article,
.rn-gallery-grid article {
  background: var(--cm-surface, #fff);
  border-radius: var(--rn-radius, 10px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cm-text) 8%, transparent);
  box-shadow: var(--rn-shadow);
  min-width: 0;
}
.rn-op-large h3,
.rn-op-small h4,
.rn-mosaic h3,
.rn-gallery-grid h3 {
  margin: 0;
  padding: 0.75rem 1rem 0.35rem;
  color: var(--cm-text);
  font-size: var(--rn-fs-card);
  line-height: 1.45;
}
.rn-op-large .rn-meta {
  padding: 0 1rem 0.85rem;
}
.rn-op-large a,
.rn-op-small a,
.rn-mosaic a,
.rn-gallery-grid a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.rn-op-small article {
  overflow: visible;
}
.rn-op-small article a {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  min-height: 96px;
}
.rn-op-small-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.rn-op-small article a > img,
.rn-op-small article a .rn-thumb-ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  margin: 0;
}
.rn-op-small h4 {
  padding: 0;
  font-size: var(--rn-fs-card);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rn-op-small .rn-lead {
  padding: 0;
  margin-top: 0.25rem;
}

.rn-mosaic {
  display: grid;
  gap: var(--cm-gap, 1rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
}
.rn-mosaic-lg { grid-column: 1 / -1; }
.rn-mosaic img { aspect-ratio: 3/2; object-fit: cover; border-radius: 0; width: 100%; }
.rn-mosaic-lg img { aspect-ratio: 16/9; }
.rn-gallery-grid {
  display: grid;
  gap: var(--cm-gap, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.rn-gallery-grid img { aspect-ratio: 4/3; object-fit: cover; border-radius: 0; width: 100%; }
.rn-horizontal-cards .rn-card-h {
  grid-template-columns: minmax(140px, 180px) 1fr;
  min-height: 120px;
}
.rn-horizontal-cards .rn-card-body { padding: 0.9rem 1rem; }
.rn-horizontal-cards .rn-card-title { font-size: var(--rn-fs-card); margin: 0.25rem 0; }
.rn-one-plus-three .rn-op-large img { aspect-ratio: 16/9; }
.rn-one-plus-three .rn-op-small img { aspect-ratio: 4/3; border-radius: 8px; }

.rn-cinema-posters {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 180px);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}
.rn-poster img { aspect-ratio: 2/3; object-fit: cover; border-radius: var(--cm-radius, 4px); width: 100%; }
.rn-poster a { display: block; color: var(--cm-text); }
.rn-poster-title { margin: 0.5rem 0 0; font-size: 1rem; line-height: 1.4; font-weight: 700; }

.rn-thumb-list { list-style: none; margin: 0; padding: 0; }
.rn-thumb-list li + li { border-top: 1px solid color-mix(in srgb, var(--cm-text) 7%, transparent); }
.rn-thumb-list a {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.7rem;
  padding: 0.7rem 0;
  color: var(--cm-text);
  align-items: center;
  font-size: var(--rn-fs-ui);
  line-height: 1.4;
  font-weight: 600;
}
.rn-thumb-list a:hover { color: var(--cm-accent, #b71c1c); }
.rn-thumb {
  overflow: hidden;
  border-radius: 6px;
}
.rn-thumb img {
  width: 100%;
  aspect-ratio: 80 / 60;
  object-fit: cover;
  border-radius: 6px;
  transition: transform var(--rn-ease);
}
.rn-thumb-list a:hover .rn-thumb img { transform: scale(1.02); }
.rn-thumb-list .rn-thumb-title,
.rn-thumb-list a > span:not(.rn-thumb) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rn-breaking-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cm-accent);
  color: #fff;
  padding: 0.55rem 1rem;
  overflow: hidden;
  font-size: var(--rn-fs-ui, 0.9375rem);
}
.rn-ticker-label { font-weight: 800; white-space: nowrap; }
.rn-ticker-track { display: flex; gap: 1.5rem; overflow-x: auto; }
.rn-ticker-track a { color: #fff; white-space: nowrap; }

.rn-stat-grid {
  display: grid;
  gap: var(--cm-gap, 1rem);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.rn-stat-card {
  background: var(--cm-surface, #fff);
  border-radius: var(--cm-radius, 8px);
  padding: 1rem;
  box-shadow: var(--cm-shadow, none);
}
.rn-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--cm-accent); display: block; }
.rn-stat-label { display: block; font-size: var(--rn-fs-meta); color: var(--cm-muted); margin-top: 0.15rem; font-weight: 600; }
.rn-stat-card h3 { margin: 0.5rem 0 0.25rem; font-size: var(--rn-fs-card); line-height: 1.4; }
.rn-stat-card time { font-size: var(--rn-fs-meta); color: var(--cm-muted); }
.rn-stat-card a { display: block; color: var(--cm-text); }

/* Cards */
.rn-grid { display: grid; gap: var(--cm-gap, 1rem); }
.rn-grid-2 { grid-template-columns: 1fr; }
.rn-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 768px) { .rn-grid-2 { grid-template-columns: repeat(2, 1fr); } }

.rn-horizontal-cards {
  display: grid;
  gap: var(--rn-space-4, 16px);
  width: 100%;
  min-width: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .rn-horizontal-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rn-space-5, 24px); }
}
.rn-card {
  background: var(--cm-surface, #fff);
  border-radius: var(--rn-radius, 10px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--cm-text) 8%, transparent);
  box-shadow: var(--rn-shadow);
  transition: box-shadow var(--rn-ease), border-color var(--rn-ease);
}
.rn-card:hover {
  box-shadow: var(--rn-shadow-hover);
  border-color: color-mix(in srgb, var(--cm-accent) 22%, transparent);
}
.rn-card-thumb { overflow: hidden; }
.rn-card-thumb img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  transition: transform var(--rn-ease);
}
.rn-card:hover .rn-card-thumb img { transform: scale(1.02); }
.rn-card-body { padding: 0.85rem 1rem 1rem; }
.rn-card-title { margin: 0.35rem 0; font-size: var(--rn-fs-card); line-height: 1.45; }
.rn-card-title a { color: var(--cm-text); filter: none; }
.rn-card-title a:hover { color: var(--cm-accent, #b71c1c); }
.rn-card-excerpt,
.rn-lead {
  margin: 0.4rem 0 0;
  font-size: var(--rn-fs-ui);
  line-height: 1.7;
  color: var(--cm-muted, #6b6b6b);
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rn-lead-sm {
  -webkit-line-clamp: 2;
  font-size: var(--rn-fs-meta);
  line-height: 1.55;
  margin-top: 0.3rem;
}
.rn-lead-hero {
  color: rgba(255, 255, 255, 0.88);
  -webkit-line-clamp: 2;
  font-size: var(--rn-fs-ui);
  margin: 0.35rem 0 0.45rem;
  max-width: 42ch;
}
.rn-op-large .rn-lead,
.rn-mosaic-lg .rn-lead {
  padding: 0 0.75rem 0.35rem;
  margin-top: 0;
}
.rn-op-small .rn-lead,
.rn-mosaic-sm .rn-lead {
  padding: 0 0.75rem 0.65rem;
  margin-top: 0;
}
.rn-slide-caption .rn-meta {
  color: rgba(255, 255, 255, 0.78);
}
.rn-top2-text .rn-lead {
  margin: 0.25rem 0 0.2rem;
}
.rn-card-h {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 0;
}
.rn-card-h .rn-card-thumb img { height: 100%; min-height: 110px; object-fit: cover; }
.rn-section .rn-card {
  border: 1px solid color-mix(in srgb, var(--cm-text) 8%, transparent);
  box-shadow: var(--rn-shadow);
  background: var(--cm-surface, #fff);
}
.rn-section .rn-card:hover {
  box-shadow: var(--rn-shadow-hover);
}

/* ========== Single article — magazine news layout ========== */
.rn-single {
  padding-block: 1rem 2.75rem;
}
.rn-single-layout {
  display: block;
}
.rn-single-has-sidebar .rn-single-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .rn-single-has-sidebar .rn-single-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: var(--rn-space-6, 32px);
  }
  .rn-single-has-sidebar .rn-sidebar {
    position: sticky;
    top: 5.5rem;
  }
}
.rn-single-main {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  font-size: 17px;
  min-width: 0;
}
.rn-single:not(.rn-single-has-sidebar) .rn-single-main {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.rn-article {
  background: var(--cm-surface, #fff);
  border-radius: var(--rn-radius, 10px);
  padding: clamp(1.25rem, 2.6vw, 2rem);
  box-shadow: var(--rn-shadow);
  border: 1px solid color-mix(in srgb, var(--cm-text, #1a1a1a) 8%, transparent);
}
.rn-article-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cm-text, #1a1a1a) 10%, transparent);
}
.rn-article-head .rn-cat-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.28rem 0.7rem;
  font-size: var(--rn-fs-badge);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--cm-accent, #b71c1c);
  border-radius: 6px;
  text-decoration: none;
}
.rn-article-head .rn-cat-badge:hover {
  filter: brightness(0.92);
  color: #fff;
}
.rn-article-title {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  margin: 0 0 0.75rem;
  line-height: 1.3;
  color: var(--cm-text, #121212);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rn-article-dek {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--cm-muted, #6b6b6b);
  font-weight: 500;
  max-width: 46ch;
}
.rn-article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.85rem;
}
.rn-meta-read {
  font-size: var(--rn-fs-meta);
  color: var(--cm-muted, #6b6b6b);
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--cm-text) 5%, transparent);
}
.rn-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.rn-share-label {
  font-size: var(--rn-fs-meta);
  font-weight: 700;
  color: var(--cm-muted, #6b6b6b);
  margin-inline-end: 0.15rem;
}
.rn-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--cm-text) 12%, transparent);
  background: color-mix(in srgb, var(--cm-bg, #f5f5f5) 80%, #fff);
  color: var(--cm-text) !important;
  font-size: var(--rn-fs-meta);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  filter: none !important;
}
.rn-share-btn:hover {
  border-color: color-mix(in srgb, var(--cm-accent) 40%, transparent);
  color: var(--cm-accent) !important;
}
.rn-share-btn.is-copied {
  background: color-mix(in srgb, var(--cm-accent) 12%, #fff);
  border-color: var(--cm-accent);
  color: var(--cm-accent) !important;
}
.rn-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  font-size: var(--rn-fs-meta);
  color: var(--cm-muted, #667);
  line-height: 1.4;
}
.rn-meta a { color: inherit; font-weight: 600; }
.rn-meta a:hover { color: var(--cm-accent, #c62828); }
.rn-meta-sep { opacity: 0.45; }

.rn-article-featured {
  margin: 0 0 1.5rem;
  border-radius: calc(var(--cm-radius, 12px) * 0.85);
  overflow: hidden;
  background: color-mix(in srgb, var(--cm-text, #1a1a1a) 6%, transparent);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
}
.rn-article-featured img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  height: auto;
  display: block;
}
.rn-article-featured-cap {
  margin: 0;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: var(--cm-muted, #667);
  background: color-mix(in srgb, var(--cm-text, #1a1a1a) 4%, var(--cm-surface, #fff));
  border-top: 1px solid color-mix(in srgb, var(--cm-text, #1a1a1a) 8%, transparent);
}

/* Magazine prose */
body.rn-enterprise .rn-entry-content.entry-content,
body.rn-enterprise .single .rn-entry-content,
.rn-single-main .rn-entry-content {
  max-width: none;
  font-size: 1.0625em;
  line-height: 1.95;
  color: var(--cm-text, #1a1a1a);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.rn-entry-content > *:first-child { margin-top: 0; }
.rn-entry-content > *:last-child { margin-bottom: 0; }

.rn-entry-content > p:first-of-type {
  font-size: 1.08em;
  line-height: 1.85;
  color: color-mix(in srgb, var(--cm-text, #1a1a1a) 92%, #000);
}

.rn-entry-content p,
.rn-entry-content li {
  font-size: 1em;
}
.rn-entry-content p {
  margin: 0 0 1.2rem;
}
.rn-entry-content h2,
.rn-entry-content h3,
.rn-entry-content h4 {
  color: var(--cm-text, #1a1a1a);
  line-height: 1.35;
  font-weight: 800;
  margin: 1.85rem 0 0.8rem;
}
.rn-entry-content h2 {
  font-size: clamp(1.28em, 2vw, 1.45em);
  padding-bottom: 0.4rem;
  border-bottom: 3px solid color-mix(in srgb, var(--cm-accent, #c62828) 55%, transparent);
}
.rn-entry-content h3 { font-size: clamp(1.12em, 1.5vw, 1.28em); }
.rn-entry-content h4 { font-size: 1.05em; font-weight: 700; }

.rn-entry-content a {
  color: var(--cm-accent, #c62828);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.rn-entry-content a:hover { filter: brightness(0.9); }
.rn-entry-content a:focus-visible {
  outline: 2px solid var(--cm-accent, #c62828);
  outline-offset: 2px;
}

.rn-entry-content ul,
.rn-entry-content ol {
  margin: 0 0 1.2rem;
  padding-inline-start: 1.4rem;
}
.rn-entry-content li { margin: 0.4rem 0; }
.rn-entry-content li::marker { color: var(--cm-accent, #c62828); }
.rn-entry-content ul ul,
.rn-entry-content ol ol,
.rn-entry-content ul ol,
.rn-entry-content ol ul {
  margin-bottom: 0.25rem;
}

.rn-entry-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-right: 4px solid var(--cm-accent, #c62828);
  background: color-mix(in srgb, var(--cm-accent, #c62828) 8%, var(--cm-bg, #f3f4f6));
  border-radius: calc(var(--cm-radius, 8px) * 0.6);
  font-size: 1.04em;
  color: color-mix(in srgb, var(--cm-text, #1a1a1a) 92%, transparent);
}
.rn-entry-content blockquote p:last-child { margin-bottom: 0; }

.rn-entry-content hr {
  border: 0;
  height: 1px;
  margin: 1.85rem 0;
  background: color-mix(in srgb, var(--cm-text, #1a1a1a) 14%, transparent);
}

.rn-entry-content img,
.rn-entry-content .wp-block-image img,
.rn-entry-content .alignnone,
.rn-entry-content .aligncenter,
.rn-entry-content .alignwide {
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--cm-radius, 8px) * 0.75);
}
.rn-entry-content figure,
.rn-entry-content .wp-caption,
.rn-entry-content .wp-block-image {
  margin: 1.45rem 0;
  max-width: 100%;
}
.rn-entry-content figcaption,
.rn-entry-content .wp-caption-text,
.rn-entry-content .wp-element-caption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  color: var(--cm-muted, #667);
  text-align: center;
  line-height: 1.5;
}
.rn-entry-content .alignleft {
  float: left;
  margin: 0.35rem 1rem 0.85rem 0;
  max-width: min(100%, 280px);
}
.rn-entry-content .alignright {
  float: right;
  margin: 0.35rem 0 0.85rem 1rem;
  max-width: min(100%, 280px);
}
.rn-entry-content .aligncenter {
  display: block;
  margin-inline: auto;
}

.rn-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95em;
}
.rn-entry-content .rn-table-wrap,
.rn-entry-content figure.wp-block-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
}
.rn-entry-content th,
.rn-entry-content td {
  border: 1px solid color-mix(in srgb, var(--cm-text, #1a1a1a) 14%, transparent);
  padding: 0.55rem 0.7rem;
  text-align: right;
  vertical-align: top;
}
.rn-entry-content th {
  background: color-mix(in srgb, var(--cm-accent, #c62828) 10%, var(--cm-surface, #fff));
  font-weight: 700;
}

.rn-entry-content code,
.rn-entry-content kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--cm-text, #1a1a1a) 7%, var(--cm-surface, #fff));
}
.rn-entry-content pre {
  margin: 1.25rem 0;
  padding: 0.95rem 1rem;
  overflow-x: auto;
  border-radius: var(--cm-radius, 8px);
  background: color-mix(in srgb, var(--cm-text, #1a1a1a) 92%, #000);
  color: #f5f5f5;
  font-size: 0.9em;
  line-height: 1.6;
}
.rn-entry-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.rn-entry-content iframe,
.rn-entry-content video,
.rn-entry-content .wp-block-embed__wrapper,
.rn-entry-content .wp-block-video video {
  max-width: 100%;
}
.rn-entry-content .wp-block-embed,
.rn-entry-content .wp-block-video {
  margin: 1.35rem 0;
}
.rn-entry-content .wp-block-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  min-height: 200px;
  border: 0;
  border-radius: calc(var(--cm-radius, 8px) * 0.75);
}

.rn-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px dashed color-mix(in srgb, var(--cm-text, #1a1a1a) 14%, transparent);
}
.rn-article-tags-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--cm-muted, #667);
}
.rn-article-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rn-article-tags a {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.8rem;
  color: var(--cm-text, #1a1a1a);
  background: color-mix(in srgb, var(--cm-bg, #eef1f4) 80%, var(--cm-surface, #fff));
  border: 1px solid color-mix(in srgb, var(--cm-text, #1a1a1a) 10%, transparent);
  border-radius: 999px;
  text-decoration: none;
}
.rn-article-tags a:hover {
  border-color: var(--cm-accent, #c62828);
  color: var(--cm-accent, #c62828);
}

@media (max-width: 640px) {
  .rn-article { padding: 1rem; border-radius: calc(var(--cm-radius, 12px) * 0.75); }
  .rn-entry-content .alignleft,
  .rn-entry-content .alignright {
    float: none;
    display: block;
    margin: 0.85rem auto;
    max-width: 100%;
  }
}

.rn-author-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: start;
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  background: color-mix(in srgb, var(--cm-bg, #f5f5f5) 70%, var(--cm-surface, #fff));
  border: 1px solid color-mix(in srgb, var(--cm-text, #1a1a1a) 8%, transparent);
  border-radius: var(--rn-radius, 10px);
}
.rn-author-label {
  margin: 0 0 0.15rem;
  font-size: var(--rn-fs-meta);
  color: var(--cm-muted, #6b6b6b);
  font-weight: 600;
}
.rn-author-box .rn-widget-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  border: 0;
  padding: 0;
}
.rn-author-box p {
  margin: 0 0 0.55rem;
  color: var(--cm-muted, #667);
  font-size: 0.95rem;
  line-height: 1.65;
}
.rn-author-more {
  font-weight: 700;
  font-size: var(--rn-fs-meta);
}
.rn-author-avatar img {
  border-radius: 50%;
  display: block;
}

.rn-related {
  margin-top: 2rem;
  padding: 1.35rem;
  background: var(--cm-surface, #fff);
  border-radius: var(--rn-radius, 10px);
  border: 1px solid color-mix(in srgb, var(--cm-text, #1a1a1a) 8%, transparent);
  box-shadow: var(--rn-shadow);
}
.rn-related .rn-section-title {
  margin: 0 0 1.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cm-text) 10%, transparent);
  font-size: var(--rn-fs-section);
}
.rn-comments {
  margin-top: 1.5rem;
  padding: 1.35rem;
  background: var(--cm-surface, #fff);
  border-radius: var(--rn-radius, 10px);
  border: 1px solid color-mix(in srgb, var(--cm-text, #1a1a1a) 8%, transparent);
}

.rn-single .rn-sidebar .rn-widget {
  margin-bottom: 1rem;
}
.rn-single .rn-sidebar .rn-widget:last-child {
  margin-bottom: 0;
}
.rn-widget-more {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: var(--rn-fs-meta);
  font-weight: 700;
  color: var(--cm-accent, #b71c1c) !important;
}
.rn-cat-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.rn-cat-cloud a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--cm-bg, #f5f5f5) 85%, #fff);
  border: 1px solid color-mix(in srgb, var(--cm-text) 8%, transparent);
  color: var(--cm-text) !important;
  font-size: var(--rn-fs-meta);
  font-weight: 600;
  filter: none !important;
}
.rn-cat-cloud a:hover {
  border-color: color-mix(in srgb, var(--cm-accent) 35%, transparent);
  color: var(--cm-accent) !important;
}
.rn-widget-cta-text {
  margin: 0 0 0.75rem;
  font-size: var(--rn-fs-meta);
  line-height: 1.6;
  color: var(--cm-muted, #6b6b6b);
}
.rn-widget-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  background: var(--cm-accent, #b71c1c);
  color: #fff !important;
  font-weight: 700;
  font-size: var(--rn-fs-meta);
  filter: none !important;
}
.rn-widget-cta-btn:hover {
  filter: brightness(0.94) !important;
  color: #fff !important;
}

.rn-breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.85rem;
  color: var(--cm-muted);
}
.rn-breadcrumbs a { color: var(--cm-muted); }

/* Sidebar / widgets */
.rn-sidebar .rn-widget {
  background: var(--cm-surface, #fff);
  border-radius: var(--rn-radius, 10px);
  padding: var(--rn-space-4, 16px);
  margin-bottom: var(--rn-space-4, 16px);
  border: 1px solid color-mix(in srgb, var(--cm-text) 8%, transparent);
  box-shadow: var(--rn-shadow);
}
.rn-widget-title {
  margin: 0 0 var(--rn-space-3, 12px);
  font-size: var(--rn-fs-widget);
  border-right: 3px solid var(--cm-accent, #b71c1c);
  padding-right: 0.55rem;
  line-height: 1.35;
}
.rn-sidebar .rn-thumb-list li:nth-child(n + 7) { display: none; }

/* Footer — dark minimal end-matter */
.rn-footer {
  background: #161616;
  color: #f5f5f5;
  margin-top: var(--rn-space-8, 48px);
  position: relative;
}
.rn-footer-accent {
  height: 3px;
  background: var(--cm-accent, #b71c1c);
}
.rn-footer a { color: #fff; filter: none; }
.rn-footer a:hover { color: color-mix(in srgb, var(--cm-accent, #b71c1c) 40%, #fff); }
.rn-footer-grid {
  display: grid;
  gap: var(--rn-space-6, 32px);
  padding: var(--rn-space-7, 40px) 0 var(--rn-space-5, 24px);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.rn-footer-logo {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}
.rn-footer-logo-img {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.rn-footer-logo-img img {
  max-height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}
.rn-footer-desc {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  font-size: 0.92rem;
}
.rn-footer-home {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--cm-accent, #b71c1c) 50%, #fff) !important;
}
.rn-footer-title {
  font-size: 1rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-block;
  color: #ffffff !important;
  font-weight: 700;
}
.rn-footer h2,
.rn-footer h3,
.rn-footer .rn-footer-title {
  color: #ffffff !important;
}
.rn-footer-links { list-style: none; margin: 0; padding: 0; }
.rn-footer-links li + li { margin-top: 0.45rem; }
.rn-footer-links a {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 500;
}
.rn-footer-links a:hover { color: #fff !important; }
.rn-footer-follow-text {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.55;
}
.rn-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1rem 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,.62);
  background: rgb(0 0 0 / 0.25);
}
.rn-footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  align-items: center;
}
.rn-footer-bottom p { margin: 0; }
.rn-footer-bottom-note { opacity: 0.8; }
.rn-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.rn-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.1);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  min-height: 44px;
}
.rn-social-link:hover {
  background: var(--cm-accent, #b71c1c);
  border-color: transparent;
}

/* Mobile / tablet */
@media (max-width: 767px) {
  .rn-header-brand-inner {
    grid-template-columns: 1fr auto;
    gap: var(--rn-space-3, 12px);
  }
  .rn-header-actions { display: flex; }
  .rn-search-toggle,
  .rn-nav-toggle { display: flex; }
  .rn-search {
    display: none;
    grid-column: 1 / -1;
    max-width: none;
    border-radius: 10px;
  }
  .rn-header-brand-inner.is-search-open .rn-search { display: flex; }
  .rn-brand-tag { display: none; }
  .rn-tagline { display: none; }
  .rn-nav {
    display: none;
    border-top: 1px solid color-mix(in srgb, var(--cm-text) 8%, transparent);
    background: var(--cm-surface, #fff);
    max-height: min(70vh, 480px);
    overflow-y: auto;
  }
  .rn-nav.is-open { display: block; }
  body.rn-nav-open { overflow: hidden; }
  .rn-menu { flex-direction: column; gap: 0; }
  .rn-menu a {
    border-bottom: 1px solid color-mix(in srgb, var(--cm-text) 7%, transparent);
    border-radius: 0;
    min-height: 48px;
  }
  .rn-menu .current-menu-item > a,
  .rn-menu .current_page_item > a {
    border-bottom-color: color-mix(in srgb, var(--cm-text) 7%, transparent);
    box-shadow: inset -3px 0 0 var(--cm-accent, #b71c1c);
  }
  .rn-top2-link { grid-template-columns: 88px 1fr; }
  .rn-card-h { grid-template-columns: 1fr; }
  .rn-section { margin-bottom: var(--rn-space-5, 24px); }
  .rn-section-head {
    margin: 0 0 var(--rn-space-3, 12px);
    padding: 0 0 var(--rn-space-2, 8px);
  }
  .rn-slider-controls {
    inset-inline: auto 0.5rem;
    bottom: 0.5rem;
  }
  .rn-home-body.rn-has-sidebar { gap: var(--rn-space-5, 24px); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .rn-home-body.rn-has-sidebar {
    grid-template-columns: 1fr;
  }
  .rn-top-ratio-70-30:not(.rn-top-no-side) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  }
}

html { overflow-x: clip; }
body.rn-enterprise { overflow-x: clip; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === Layout languages (shared polish v2.1.2) === */

/* Cinema — poster-first, wide hero, horizontal top2 */
body.rooyesh-layout-cinema .rn-hero-slider img,
body.rooyesh-layout-cinema .rn-slide img {
  aspect-ratio: 21 / 9;
}
body.rooyesh-layout-cinema .rn-slide-caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
  padding: 1.5rem 1.25rem 1.25rem;
}
body.rooyesh-layout-cinema .rn-top-row.rn-top-ratio-100-0 {
  grid-template-columns: 1fr;
}
body.rooyesh-layout-cinema .rn-top-secondary .rn-top2-stack {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 200px);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}
body.rooyesh-layout-cinema .rn-top-secondary .rn-top2-link {
  grid-template-columns: 1fr;
  scroll-snap-align: start;
  padding: 0;
  overflow: hidden;
}
body.rooyesh-layout-cinema .rn-top-secondary .rn-top2-thumb img {
  aspect-ratio: 2 / 3;
  width: 100%;
}
body.rooyesh-layout-cinema .rn-top-secondary .rn-top2-text {
  padding: 0.5rem;
}
body.rooyesh-layout-cinema .rn-home-body.rn-has-sidebar {
  display: block;
}
body.rooyesh-layout-cinema .rn-poster {
  scroll-snap-align: start;
}
@media (hover: hover) {
  body.rooyesh-layout-cinema .rn-poster img {
    transition: transform 0.25s ease;
  }
  body.rooyesh-layout-cinema .rn-poster:hover img {
    transform: scale(1.03);
  }
}

/* Neon — dark shell integration + accent glow */
body.rooyesh-layout-neon.rn-enterprise {
  background: var(--cm-bg);
  color: var(--cm-text);
}
body.rooyesh-layout-neon .rn-header {
  background: var(--cm-header-dark, #111);
  box-shadow: 0 0 24px color-mix(in srgb, var(--cm-accent) 35%, transparent);
}
body.rooyesh-layout-neon .rn-header-top {
  background: color-mix(in srgb, var(--cm-header-dark, #111) 88%, #000);
  color: rgba(255, 255, 255, 0.85);
}
body.rooyesh-layout-neon .rn-header-brand {
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.rooyesh-layout-neon .rn-header .rn-site-title,
body.rooyesh-layout-neon .rn-brand-tag,
body.rooyesh-layout-neon .rn-nav-toggle,
body.rooyesh-layout-neon .rn-search-toggle,
body.rooyesh-layout-neon .rn-search input {
  color: #fff;
}
body.rooyesh-layout-neon .rn-search-toggle,
body.rooyesh-layout-neon .rn-nav-toggle {
  background: rgba(255, 255, 255, 0.08);
}
body.rooyesh-layout-neon .rn-search {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}
body.rooyesh-layout-neon .rn-nav {
  background: color-mix(in srgb, var(--cm-accent) 82%, #000);
}
body.rooyesh-layout-neon .rn-card,
body.rooyesh-layout-neon .rn-top2-link,
body.rooyesh-layout-neon .rn-sidebar .rn-widget,
body.rooyesh-layout-neon .rn-section {
  background: var(--cm-surface, #242424);
  border: 1px solid color-mix(in srgb, var(--cm-accent) 35%, transparent);
  box-shadow: 0 0 20px color-mix(in srgb, var(--cm-accent) 18%, transparent);
}
body.rooyesh-layout-neon .rn-section-head {
  background: color-mix(in srgb, var(--cm-accent) 16%, #1a1a1a);
  border-bottom-color: color-mix(in srgb, var(--cm-accent) 35%, transparent);
}
body.rooyesh-layout-neon .rn-section-title a,
body.rooyesh-layout-neon .rn-card-title a,
body.rooyesh-layout-neon .rn-top2-title {
  color: var(--cm-text);
}
body.rooyesh-layout-neon .rn-section-title a:hover,
body.rooyesh-layout-neon .rn-card-title a:hover {
  color: var(--cm-accent);
  text-shadow: 0 0 12px color-mix(in srgb, var(--cm-accent) 45%, transparent);
}
body.rooyesh-layout-neon .rn-slider-controls {
  background: var(--cm-surface, #242424);
  border-top: 1px solid color-mix(in srgb, var(--cm-accent) 25%, transparent);
}
body.rooyesh-layout-neon .rn-section-head {
  border-bottom-color: color-mix(in srgb, var(--cm-accent) 40%, transparent);
}

/* Stats — number-forward cards and section markers */
body.rooyesh-layout-stats .rn-section-head::before {
  content: "◆";
  color: var(--cm-accent);
  font-size: 0.75em;
  margin-left: 0.35rem;
}
body.rooyesh-layout-stats .rn-stat-num {
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1;
}
body.rooyesh-layout-stats .rn-stat-card {
  border-right: 3px solid var(--cm-accent);
}
body.rooyesh-layout-stats .rn-stat-card time {
  font-variant-numeric: tabular-nums;
}
body.rooyesh-layout-stats .rn-header {
  border-bottom-width: 2px;
}

/* Soft — gentle magazine (editorial light) */
body.rooyesh-layout-soft .rn-card,
body.rooyesh-layout-soft .rn-top2-link {
  box-shadow: var(--rn-shadow);
  border-radius: var(--rn-radius, 10px);
}
body.rooyesh-layout-soft .rn-hero-slider {
  border-radius: var(--rn-radius, 10px);
}
body.rooyesh-layout-soft .rn-section {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}
body.rooyesh-layout-soft .rn-section-head {
  border-bottom-width: 1px;
  border-bottom-color: color-mix(in srgb, var(--cm-text) 10%, transparent);
  background: transparent;
}

/* Breaking — urgent, sharp edges + ticker emphasis */
body.rooyesh-layout-breaking .rn-header {
  border-bottom-width: 4px;
}
body.rooyesh-layout-breaking .rn-card,
body.rooyesh-layout-breaking .rn-top2-link,
body.rooyesh-layout-breaking .rn-hero-slider {
  border-radius: 0;
  box-shadow: none;
}
body.rooyesh-layout-breaking .rn-breaking-ticker {
  border-radius: 0;
}
body.rooyesh-layout-breaking .rn-ticker-label {
  background: rgba(0, 0, 0, 0.15);
  padding: 0.15rem 0.5rem;
}
body.rooyesh-layout-breaking .rn-section-head {
  border-bottom-width: 3px;
  border-bottom-color: var(--cm-accent);
}

/* Broadsheet — newspaper formal, four-column top2 */
body.rooyesh-layout-broadsheet .rn-hero-slider,
body.rooyesh-layout-broadsheet .rn-card,
body.rooyesh-layout-broadsheet .rn-top2-link {
  border-radius: 0;
  box-shadow: none;
}
@media (min-width: 768px) {
  body.rooyesh-layout-broadsheet .rn-top-secondary .rn-top2-stack {
    grid-template-columns: repeat(4, 1fr);
  }
}
body.rooyesh-layout-broadsheet .rn-section-title {
  font-weight: 800;
}

/* Tech — bordered cards, pill nav */
body.rooyesh-layout-tech .rn-menu a {
  border-radius: 6px;
  margin: 0 2px;
}
body.rooyesh-layout-tech .rn-menu a:hover,
body.rooyesh-layout-tech .rn-menu a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}
body.rooyesh-layout-tech .rn-card,
body.rooyesh-layout-tech .rn-top2-link,
body.rooyesh-layout-tech .rn-sidebar .rn-widget {
  border: 1px solid color-mix(in srgb, var(--cm-accent) 18%, transparent);
  box-shadow: var(--cm-shadow, none);
  border-radius: var(--cm-radius, 8px);
}

/* Gallery — wide hero, image grids, full width */
body.rooyesh-layout-gallery .rn-hero-slider img,
body.rooyesh-layout-gallery .rn-slide img {
  aspect-ratio: 21 / 9;
}
body.rooyesh-layout-gallery .rn-gallery-grid img {
  aspect-ratio: 4 / 3;
}
body.rooyesh-layout-gallery .rn-home-body.rn-has-sidebar {
  display: block;
}

/* Bulletin — notice-board framing */
body.rooyesh-layout-bulletin .rn-hero-slider {
  border: 1px solid color-mix(in srgb, var(--cm-accent) 25%, transparent);
}
body.rooyesh-layout-bulletin .rn-card {
  border: 1px solid color-mix(in srgb, var(--cm-text) 10%, transparent);
  box-shadow: none;
}
body.rooyesh-layout-bulletin .rn-top-row.rn-top-no-side {
  grid-template-columns: 1fr;
}

/* Literary — reading column, double rule sections */
body.rooyesh-layout-literary .rn-single:not(.rn-single-has-sidebar) .rn-single-main {
  width: min(100%, 42rem);
}
body.rooyesh-layout-literary .rn-section-head {
  border-bottom-style: double;
  border-bottom-width: 3px;
}
body.rooyesh-layout-literary .rn-card-title {
  font-weight: 600;
  line-height: 1.5;
}
body.rooyesh-layout-literary .rn-article-title {
  letter-spacing: -0.02em;
}
