/* Forex Daily — Default Page template.
   Header (breadcrumbs/title) + 66.66/33.33 content/sidebar grid.
   Colors from --fxd-*, layout/spacing/type from --fdt-* (see
   assets/css/variables.css). Grid pattern matches single-post.css. */

.single-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--fdt-space-4) var(--fdt-space-3) var(--fdt-space-5);
}

/* ── Header ─────────────────────────────────────────────────── */

.single-page__breadcrumbs {
  font-size: 12px;
  color: var(--fxd-text-muted);
  margin-bottom: var(--fdt-space-3);
}
.single-page__breadcrumbs a { color: var(--fxd-text-muted); font-size: 12px; text-decoration: none; }
.single-page__breadcrumbs a:hover { color: var(--fxd-primary); }

.single-page__title {
  font-size: clamp(28px, 4vw, 28px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--fxd-text);
  margin: 0 0 var(--fdt-space-3);
}

.single-page__meta {
  display: flex;
  align-items: center;
  gap: var(--fdt-space-2);
  padding: var(--fdt-space-2) 0;
  border-top: 1px solid var(--fxd-border);
  border-bottom: 1px solid var(--fxd-border);
  margin-bottom: var(--fdt-space-4);
  color: var(--fxd-text-muted);
  font-size: 12px;
}
.single-page__avatar { border-radius: 50%; display: block; width: 22px; height: 22px; }
.single-page__meta-text strong { color: var(--fxd-text); }
.single-page__meta-dot { opacity: .6; }
.single-page__meta-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.single-page__meta-date svg { width: 15px; height: 15px; }

/* ── Layout: 66.66% content / 33.33% sidebar ───────────────────── */

.single-page__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--fdt-space-4);
  align-items: start;
}

.single-page__content {
  min-width: 0;
  font-size: 16px;
  color: var(--fxd-text);
}
.single-page__content img { max-width: 100%; height: auto; border-radius: var(--fdt-radius-md); }

.single-page__sidebar {
  min-width: 0;
  position: sticky;
  top: 75px;
  display: flex;
  flex-direction: column;
  gap: var(--fdt-space-3);
}

.fordai-toc {
	background: var(--fxd-surface);
    border-radius: var(--fdt-radius-md);
}

@media (max-width: 900px) {
  .single-page__layout {
    grid-template-columns: 1fr;
  }
  .single-page__sidebar { position: static; }
}

/* ── Blank template (template-blank.php) — full-width, no sidebar ──
   Same header/content classes as the default grid above, just
   without the .single-page__layout wrapper, so .single-page__content
   is free to run the full container width instead of 66.66%. */

.single-page--blank .single-page__content {
  max-width: 900px;
  margin: 0 auto;
}

/* ── Sidebar widgets ────────────────────────────────────────── */

.single-page__widget {
  background: var(--fxd-surface);
  border: 1px solid var(--fxd-border);
  border-radius: var(--fdt-radius-md);
  box-shadow: var(--fdt-shadow-sm);
  padding: var(--fdt-space-3);
}
.single-page__widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fxd-text);
  margin: 0 0 var(--fdt-space-2);
}
.single-page__sidebar-empty {
  font-size: 13px;
  color: var(--fxd-text-muted);
  font-style: italic;
}
