/* ── Blog post body ────────────────────────────────────────── */
.post-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}
.post-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}
.post-hero .container { height: 100%; }
.post-hero__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3rem;
}
.post-hero__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.post-hero__category {
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
}
.post-hero__date { color: rgba(240,234,216,0.7); font-size: 0.9rem; }
.post-hero h1 { color: #fff; max-width: 800px; }

/* ── Post layout ───────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
}
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}
.post-body h2 { font-size: 1.8rem; margin: 2.5rem 0 1rem; color: var(--color-text); }
.post-body h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; color: var(--color-text); }
.post-body p { margin-bottom: 1.25rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.5rem; }
.post-body li { margin-bottom: 0.4rem; }
.post-body blockquote {
  border-left: 4px solid var(--color-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--color-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-muted);
}
.post-body img { border-radius: var(--radius); margin: 2rem 0; width: 100%; height: auto; }
.post-body a { color: var(--color-accent); text-decoration: underline; }
.post-body strong { color: var(--color-text); }

/* ── Post body tables ──────────────────────────────────────── */
.post-body table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  font-size: 0.9rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-surface);
}
.post-body table thead tr {
  background: var(--color-accent);
}
.post-body table thead th {
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-bg);
  white-space: nowrap;
  border: none;
}
.post-body table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}
.post-body table tbody tr:last-child {
  border-bottom: none;
}
.post-body table tbody tr:nth-child(even) {
  background: var(--color-surface-2);
}
.post-body table tbody tr:hover {
  background: rgba(196, 122, 43, 0.1);
}
.post-body table td {
  padding: 0.8rem 1.1rem;
  vertical-align: top;
  color: var(--color-text);
}
.post-body table strong {
  color: var(--color-accent);
  font-weight: 600;
}

/* ── Video embed ───────────────────────────────────────────── */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 2rem 0;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-cta {
  margin: -1rem 0 2rem;
  text-align: center;
}
.btn--youtube {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ff0000;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s;
}
.btn--youtube::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent #fff;
}
.btn--youtube:hover { background: #cc0000; }

/* ── Post sidebar ──────────────────────────────────────────── */
.post-sidebar { position: sticky; top: 6rem; }
.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget__title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

/* ── Author bio ────────────────────────────────────────────── */
.author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 3rem 0;
}
.author-bio__avatar {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
}
.author-bio__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}
.author-bio p { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; }

/* ── Post nav ──────────────────────────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}
.post-nav__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  transition: border-color 0.2s;
  text-decoration: none;
}
.post-nav__item:hover { border-color: var(--color-accent); }
.post-nav__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}
.post-nav__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text);
  text-transform: uppercase;
}
.post-nav__item--next { text-align: right; }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .post-nav { grid-template-columns: 1fr; }
}
