
/* ─── Variables ─────────────────────────────────────────────────── */
.rcd { --accent: #f97316; --accent2: #ea580c; --muted: #9ca3af; }

/* ─── Navbar ────────────────────────────────────────────────────── */
.rcd-navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(2,6,23,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.rcd-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.rcd-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rcd-nav-logo { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12); padding: 4px; object-fit: contain; background: rgba(15,23,42,.5); }
.rcd-nav-name { font-size: .92rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.rcd-nav-links { display: flex; align-items: center; gap: 6px; }
.rcd-nav-link { padding: 7px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; text-decoration: none; color: rgba(255,255,255,.7); transition: color .15s; }
.rcd-nav-link:hover { color: #fff; text-decoration: none; }
.rcd-nav-cta { padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 800; background: var(--accent); color: #0b1120; text-decoration: none; transition: opacity .15s; }
.rcd-nav-cta:hover { opacity: .88; text-decoration: none; }

/* ─── Breadcrumb ────────────────────────────────────────────────── */
.rcd-breadcrumb {
  max-width: 780px; margin: 0 auto; padding: 20px 20px 0;
  font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .4rem;
}
.rcd-breadcrumb a { color: rgba(249,115,22,.85); text-decoration: none; }
.rcd-breadcrumb a:hover { color: var(--accent); }

/* ─── Article ───────────────────────────────────────────────────── */
.rcd-article { max-width: 780px; margin: 0 auto; padding: 28px 20px 80px; }
.rcd-article-header { margin-bottom: 28px; }
.rcd-cat-badge {
  display: inline-flex; align-items: center;
  padding: 4px 11px; border-radius: 999px; font-size: .73rem; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase;
  background: rgba(249,115,22,.1); color: var(--accent);
  border: 1px solid rgba(249,115,22,.22); margin-bottom: 14px;
}
.rcd-article-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -.03em;
  color: #f1f5f9; margin: 0 0 12px;
}
.rcd-article-summary {
  font-size: 1.05rem; color: rgba(156,163,175,.9);
  line-height: 1.6; margin: 0 0 16px;
}
.rcd-article-meta {
  font-size: .82rem; color: rgba(156,163,175,.55);
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.rcd-cover {
  width: 100%; border-radius: 14px; margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,.08);
  aspect-ratio: 16/9; object-fit: cover;
}
.rcd-cover-placeholder {
  width: 100%; border-radius: 14px; margin-bottom: 32px;
  border: 1px solid rgba(255,255,255,.08);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(15,23,42,.9) 0%, rgba(30,41,59,.7) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.rcd-divider {
  border: none; border-top: 1px solid rgba(255,255,255,.08);
  margin: 28px 0;
}

/* ─── Body content ──────────────────────────────────────────────── */
.rcd-body { font-size: .97rem; line-height: 1.72; color: rgba(226,232,240,.8); }
.rcd-body .ndh-rc-h2 {
  margin: 2rem 0 .75rem; padding-left: .7rem;
  border-left: 3px solid rgba(255,136,64,.9);
  font-size: 1.3rem; font-weight: 900; color: rgba(255,255,255,.97); line-height: 1.2;
}
.rcd-body .ndh-rc-h3 {
  margin: 1.5rem 0 .55rem; font-size: 1.1rem;
  font-weight: 800; color: rgba(255,255,255,.92);
}
.rcd-body .ndh-rc-h4 {
  margin: 1.1rem 0 .4rem; font-size: 1rem;
  font-weight: 700; color: rgba(226,232,240,.85);
}
.rcd-body .ndh-rc-p { margin: .3rem 0 .75rem; }
.rcd-body .ndh-rc-ul { margin: .4rem 0 .85rem; padding-left: 1.3rem; }
.rcd-body .ndh-rc-ul li { margin: .25rem 0; }
.rcd-body strong { color: rgba(255,255,255,.92); font-weight: 700; }
.rcd-body .ndh-rc-h2:first-child,
.rcd-body .ndh-rc-h3:first-child { margin-top: 0; }

/* ─── Tables ────────────────────────────────────────────────────── */
.resource-table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.resource-table {
  width: 100%; border-collapse: collapse;
  font-size: .92rem; color: rgba(226,232,240,.85);
  min-width: 360px;
}
.resource-table thead tr {
  background: rgba(249,115,22,.10);
  border-bottom: 2px solid rgba(249,115,22,.28);
}
.resource-table th {
  padding: .65rem 1rem; font-weight: 700;
  color: rgba(255,255,255,.95); white-space: nowrap;
  letter-spacing: .02em;
}
.resource-table td {
  padding: .55rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.resource-table tbody tr:last-child td { border-bottom: none; }
.resource-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,.025);
}
.resource-table tbody tr:hover {
  background: rgba(249,115,22,.05);
}

/* ─── Inline images ─────────────────────────────────────────────── */
.resource-inline-figure {
  margin: 2rem 0; text-align: center;
}
.resource-inline-figure img {
  max-width: 100%; display: block; margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(249,115,22,.18);
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.04);
}
.resource-inline-figure figcaption {
  margin-top: .55rem; font-size: .82rem; font-style: italic;
  color: rgba(156,163,175,.65); text-align: center;
}
.resource-inline-img {
  max-width: 100%; height: auto;
  border-radius: 8px; vertical-align: middle;
  border: 1px solid rgba(255,255,255,.1);
}

/* ─── Back link ─────────────────────────────────────────────────── */
.rcd-back {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 2.5rem; font-size: .88rem; font-weight: 700;
  color: rgba(249,115,22,.85); text-decoration: none;
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(249,115,22,.25); background: rgba(249,115,22,.06);
  transition: all .15s;
}
.rcd-back:hover { color: var(--accent); border-color: rgba(249,115,22,.5); background: rgba(249,115,22,.1); text-decoration: none; }

/* ─── Footer ────────────────────────────────────────────────────── */
.rcd-footer {
  text-align: center; padding: 20px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: rgba(156,163,175,.5); font-size: .78rem;
}
.rcd-footer a { color: rgba(249,115,22,.75); text-decoration: none; }
.rcd-footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .rcd-nav-links .rcd-nav-link { display: none; }
}

.rcd-article { overflow-wrap:anywhere; min-width:0; box-sizing:border-box; }
.rcd-body img { height:auto; }
.rcd-body a { color:#fb923c; }

.rcd-preview-body { margin:0; background:#020617; color:#e2e8f0; font-family:system-ui; }
.rcd-preview-body .rcd-article { padding-bottom:32px; }

/* ─── Rich content ──────────────────────────────────────────────── */
.rcd-body::after { content:""; display:block; clear:both; }
.rcd-body em { font-style:italic; }
.rcd-body .ndh-rc-ol { margin:.4rem 0 .85rem; padding-left:1.5rem; }
.rcd-body .ndh-rc-ol li { margin:.25rem 0; }
.rcd-body li > .ndh-rc-p { margin:.1rem 0; }
.rcd-body .ndh-rc-quote {
  margin:1.4rem 0; padding:.65rem 1.1rem;
  border-left:3px solid rgba(249,115,22,.55);
  background:rgba(249,115,22,.06);
  border-radius:0 10px 10px 0;
  color:rgba(226,232,240,.9);
}
.rcd-body .ndh-rc-quote .ndh-rc-p:last-child { margin-bottom:0; }
.rcd-body .ndh-rc-hr { border:none; border-top:1px solid rgba(255,255,255,.1); margin:2rem 0; clear:both; }
.rcd-body .resource-table-wrap { clear:both; }
.resource-table .is-align-center { text-align:center; }
.resource-table .is-align-right { text-align:right; }
.resource-table td > .ndh-rc-p, .resource-table th > .ndh-rc-p { margin:0; }
.resource-inline-figure img { height:auto; }
.resource-inline-figure.is-size-medium img { max-width:min(100%, 520px); }
.resource-inline-figure.is-size-small img { max-width:min(100%, 300px); }
@media (min-width: 641px) {
  .resource-inline-figure.is-align-left:not(.is-size-full) { float:left; max-width:50%; margin:.35rem 1.5rem 1rem 0; }
  .resource-inline-figure.is-align-right:not(.is-size-full) { float:right; max-width:50%; margin:.35rem 0 1rem 1.5rem; }
  .resource-inline-figure.is-align-left:not(.is-size-full) figcaption,
  .resource-inline-figure.is-align-right:not(.is-size-full) figcaption { text-align:left; }
}
