/* Tradielist Blog — dark theme matching main site (#0A1420 / #0d1b3e + #FF6B00) */
:root {
  --blog-bg: #0A1420;
  --blog-navy: #0d1b3e;
  --blog-surface: rgba(18, 35, 54, 0.72);
  --blog-card: linear-gradient(160deg, rgba(18, 35, 54, 0.95), rgba(10, 20, 32, 0.98));
  --blog-border: rgba(255, 255, 255, 0.08);
  --blog-border-strong: rgba(255, 255, 255, 0.12);
  --blog-text: #FFFFFF;
  --blog-muted: #94A3B8;
  --blog-accent: #FF6B00;
  --blog-accent-dark: #E05D00;
  --blog-radius: 18px;
  --blog-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --blog-max: 1400px;
}

.blog-site {
  background: var(--blog-bg) !important;
  color: var(--blog-text);
  min-height: 100vh;
}

/* Match site header `.nav-container` so logo and content share one left edge */
.blog-site .container {
  max-width: 1400px;
  width: 100%;
  margin-inline: auto;
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

.blog-site .skip-link {
  position: absolute;
  left: -9999px;
}
.blog-site .skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10060;
  background: #122334;
  color: #fff;
  border: 1px solid var(--blog-border-strong);
  padding: 10px 14px;
  border-radius: 10px;
}

.blog-site .nav-links a.is-active,
.blog-site .nav-links a[aria-current="page"] {
  color: var(--blog-accent);
}

/* Hero */
.blog-hero {
  position: relative;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--blog-border);
  background:
    radial-gradient(ellipse 70% 55% at 12% -10%, rgba(255, 107, 0, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(13, 27, 62, 0.9), transparent 50%),
    linear-gradient(180deg, #0d1b3e 0%, #0A1420 100%);
  overflow: hidden;
}
.blog-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.35), transparent);
}
.blog-site .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FFB37A;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.28);
}
.blog-hero h1,
.post-header h1,
.related-head h2,
.blog-empty h2 {
  color: #fff;
  letter-spacing: -0.03em;
}
.blog-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.15;
  max-width: 18ch;
  font-weight: 800;
}
.hero-lead,
.post-dek,
.related-sub {
  margin: 0;
  max-width: 54ch;
  color: var(--blog-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.blog-site main .btn-primary,
.blog-site main a.btn-primary,
.blog-hero .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF6B00, #E05D00);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.blog-site main .btn-primary:hover,
.blog-hero .btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 107, 0, 0.32);
}

/* Listing */
.blog-list-section {
  padding: 48px 0 72px;
  background: var(--blog-bg);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.blog-card {
  background: var(--blog-card);
  border: 1px solid var(--blog-border-strong);
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: var(--blog-shadow);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  border-color: rgba(255, 107, 0, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: #111827;
  overflow: hidden;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blog-accent);
  font-size: 1.8rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 107, 0, 0.18), transparent 55%),
    linear-gradient(160deg, #122334, #0A1420);
}
.blog-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--blog-muted);
  font-weight: 600;
}
.blog-card h2,
.blog-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  color: #fff;
  font-weight: 750;
}
.blog-card h2 a,
.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}
.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--blog-accent);
}
.blog-card p {
  margin: 0;
  color: var(--blog-muted);
  font-size: 0.94rem;
  flex: 1;
}
.blog-card-link {
  margin-top: 8px;
  font-weight: 700;
  color: #FFB37A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
}
.blog-card-link:hover {
  color: #fff;
}

.blog-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--blog-muted);
  border: 1px dashed var(--blog-border-strong);
  border-radius: var(--blog-radius);
  background: rgba(18, 35, 54, 0.45);
}
.blog-empty i {
  font-size: 2rem;
  color: var(--blog-accent);
  margin-bottom: 12px;
}
.blog-empty h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

/* Single post */
.post-article {
  background: var(--blog-bg);
}
.post-header {
  padding: 36px 0 28px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--blog-muted);
  margin-bottom: 22px;
}
.breadcrumb a {
  color: var(--blog-muted);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb a:hover {
  color: var(--blog-accent);
}

/* Split hero: copy left / cover right */
.post-header-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.post-header--split .post-header-grid {
  grid-template-columns: 1fr;
}
.post-header-copy {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-header h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.15;
  max-width: 100%;
  font-weight: 800;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-header--split .post-header h1 {
  max-width: 100%;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--blog-muted);
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.post-meta i {
  color: var(--blog-accent);
  margin-right: 6px;
}
.post-header .post-dek {
  max-width: 100%;
  color: #CBD5E1;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-cover {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 55, 0.95);
  background: #070F18;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  aspect-ratio: 4 / 3;
  max-height: 380px;
}
.post-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body-wrap {
  padding: 8px 0 48px;
  background: var(--blog-bg);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.post-body {
  /* Same `.container` bounds as header/hero — no narrower centered column */
  margin-inline: auto;
  padding-top: 8px;
  padding-bottom: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #CBD5E1;
  font-size: 1.125rem;
  line-height: 1.75;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.prose {
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.prose > *:first-child {
  margin-top: 0;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  color: #fff;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 1.75em 0 0.65em;
  font-weight: 750;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.prose h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}
.prose h3 {
  font-size: clamp(1.2rem, 2vw, 1.4rem);
}
.prose h4 {
  font-size: 1.1rem;
  color: #E2E8F0;
}
.prose p {
  margin: 0 0 1.25em;
  color: #CBD5E1;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
.prose ul,
.prose ol {
  margin: 0 0 1.35em;
  padding-left: 1.35em;
  color: #CBD5E1;
}
.prose li {
  margin: 0.35em 0;
  padding-left: 0.2em;
}
.prose li::marker {
  color: var(--blog-accent);
}
.prose strong,
.prose b {
  color: #F8FAFC;
  font-weight: 700;
}
.prose em,
.prose i {
  color: #E2E8F0;
}
.prose a {
  color: #FFB37A;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 179, 122, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.prose a:hover {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}
.prose img,
.prose .blog-inline-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1.8em auto;
  border: 1px solid var(--blog-border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--blog-accent);
  background: transparent;
  color: #E2E8F0;
  border-radius: 0;
  font-size: 1.05em;
}
.prose hr {
  border: 0;
  height: 1px;
  margin: 2.2em 0;
  background: linear-gradient(90deg, transparent, var(--blog-border-strong), transparent);
}

.post-cta {
  margin-bottom: 56px;
}
.post-cta-card {
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 107, 0, 0.16), transparent 55%),
    linear-gradient(135deg, #0d1b3e, #122334);
  color: #fff;
  border-radius: var(--blog-radius);
  padding: 28px 28px 30px;
  border: 1px solid var(--blog-border-strong);
  box-shadow: var(--blog-shadow);
}
.post-cta-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  color: #fff;
}
.post-cta-card p {
  margin: 0;
  color: var(--blog-muted);
  max-width: 48ch;
}
.post-cta-card .btn-primary {
  margin-top: 16px;
}

.related-section {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 107, 0, 0.08), transparent 55%),
    #070F18;
  border-top: 1px solid var(--blog-border);
  padding: 56px 0 72px;
}
.related-head {
  margin-bottom: 28px;
}
.related-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}
.related-empty {
  color: var(--blog-muted);
}
.related-empty a {
  color: #FFB37A;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .blog-site .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (min-width: 961px) {
  .post-header--split .post-header-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: center;
  }
  .post-cover {
    max-height: none;
    aspect-ratio: 5 / 4;
  }
}
@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-body {
    font-size: 1.0625rem;
    line-height: 1.7;
  }
  .post-header--split .post-header-grid {
    gap: 22px;
  }
  .post-cover {
    max-width: 520px;
    width: 100%;
    justify-self: start;
  }
}
@media (max-width: 768px) {
  .blog-site .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero {
    padding: 36px 0 28px;
  }
  .post-header h1,
  .post-header--split .post-header h1 {
    max-width: none;
  }
  .post-cover {
    max-width: none;
    aspect-ratio: 16 / 10;
    max-height: 260px;
  }
  .post-body-wrap {
    padding: 4px 0 36px;
  }
}
