/* ============================================================
   DynamicSOC — RFC2350 Page
   Inherits CSS variables from landing.css
   ============================================================ */

/* ── Page base ───────────────────────────────────────────────── */
.rfc-page { min-height: 100vh; background: var(--lp-dark); }

/* ── Main layout ─────────────────────────────────────────────── */
.rfc-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  padding: 108px 24px 80px;
  align-items: start;
}

/* ── TOC Sidebar ─────────────────────────────────────────────── */
.rfc-toc {
  position: sticky;
  top: 88px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.rfc-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--lp-muted-2);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lp-border);
}

.rfc-toc-toggle {
  display: none;
  background: none;
  border: 1px solid var(--lp-border);
  color: var(--lp-muted);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: color var(--lp-t), border-color var(--lp-t);
  flex-shrink: 0;
}

.rfc-toc-toggle:hover { color: var(--lp-text); border-color: var(--lp-border-h); }

.rfc-toc-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rfc-toc-link {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  font-size: 13px;
  color: var(--lp-muted);
  border-radius: 0 var(--lp-radius-sm) var(--lp-radius-sm) 0;
  transition: color var(--lp-t), border-color var(--lp-t), background var(--lp-t);
  text-decoration: none;
  line-height: 1.4;
}

.rfc-toc-link:hover {
  color: var(--lp-text);
  background: rgba(255, 255, 255, 0.03);
  border-left-color: var(--lp-border-h);
}

.rfc-toc-link.active {
  color: var(--lp-primary);
  border-left-color: var(--lp-primary);
  background: rgba(230, 22, 103, 0.05);
}

/* ── Page header ─────────────────────────────────────────────── */
.rfc-page-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--lp-border);
  margin-bottom: 0;
}

.rfc-doc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(230, 22, 103, 0.1);
  color: var(--lp-primary);
  border: 1px solid rgba(230, 22, 103, 0.22);
  margin-bottom: 14px;
}

.rfc-page-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin: 0 0 8px;
  font-family: 'Eurostile', 'Exo 2', system-ui, sans-serif;
  background: linear-gradient(135deg, #f1f5f9 40%, #8892a4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rfc-version {
  font-size: 13px;
  color: var(--lp-muted-2);
  margin: 0;
}

/* ── Section content ─────────────────────────────────────────── */
.rfc-content { min-width: 0; }

.rfc-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--lp-border);
}

.rfc-section:last-child { border-bottom: none; }

.rfc-section > h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 22px;
  font-family: 'Eurostile', 'Exo 2', system-ui, sans-serif;
  color: var(--lp-text);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lp-border);
}

/* Content injected via data-i18n-html */
.rfc-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--lp-text);
  font-family: 'Poppins', system-ui, sans-serif;
}

.rfc-section p {
  color: var(--lp-muted);
  line-height: 1.78;
  margin: 0 0 12px;
  font-size: 14.5px;
}

.rfc-section strong { color: var(--lp-text); font-weight: 600; }

.rfc-section em { color: var(--lp-muted-2); font-style: italic; }

.rfc-section a { color: var(--lp-accent); text-decoration: underline; }

.rfc-section ul {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 16px;
}

.rfc-section li {
  padding: 5px 0 5px 22px;
  color: var(--lp-muted);
  font-size: 14.5px;
  position: relative;
  line-height: 1.55;
}

.rfc-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lp-primary);
  font-weight: 700;
  font-size: 12px;
  top: 6px;
}

/* SLA / data table */
.rfc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  border-radius: var(--lp-radius);
  overflow: hidden;
  border: 1px solid var(--lp-border);
}

.rfc-table thead tr {
  background: rgba(230, 22, 103, 0.08);
}

.rfc-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-text);
  border-bottom: 1px solid var(--lp-border);
}

.rfc-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--lp-border);
  color: var(--lp-muted);
  font-size: 14px;
}

.rfc-table tr:last-child td { border-bottom: none; }

.rfc-table td:first-child {
  color: var(--lp-text);
  font-weight: 600;
}

/* Footer note */
.rfc-footer-note {
  font-size: 12px;
  color: var(--lp-muted-2);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rfc-layout {
    grid-template-columns: 1fr;
    padding-top: 88px;
    gap: 0;
  }

  .rfc-toc {
    position: static;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--lp-border);
    border-radius: var(--lp-radius);
    padding: 14px 16px;
    margin-bottom: 32px;
    max-height: none;
    overflow: visible;
  }

  .rfc-toc-toggle { display: flex; }

  .rfc-toc-nav { display: none; margin-top: 10px; }
  .rfc-toc-nav.open { display: flex; }
}

@media (max-width: 640px) {
  .rfc-layout { padding: 88px 16px 60px; }
  .rfc-section > h2 { font-size: 1.2rem; }
  .rfc-section h3  { font-size: 0.95rem; }
  .rfc-table th,
  .rfc-table td    { padding: 9px 12px; font-size: 13px; }
}
