/* ── SINGLE POST ──────────────────────────── */

/* Hero */
.post-hero {
  position: relative;
  height: 65vh;
  min-height: 440px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: 60px;
}

.post-hero img,
.post-hero .wp-post-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero-no-img {
  position: absolute;
  inset: 0;
  background: var(--black);
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
  z-index: 1;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px 48px;
  color: var(--white);
}

.post-hero-content .post-meta { margin-bottom: 16px; }
.post-hero-content .post-tag { color: var(--accent); }
.post-hero-content .post-date { color: rgba(255,255,255,0.55); margin-left: 0; }

.post-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 760px;
  margin-bottom: 12px;
}

.post-hero-sub {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ── LAYOUT ──────────────────────────────── */
.post-main { padding: 72px 0 96px; }

.post-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  align-items: start;
}

/* ── ARTICLE ─────────────────────────────── */
.post-article { max-width: 680px; }

.post-lede {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}

.entry-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 10px;
}

.entry-content p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: #2a2a2a;
  margin-bottom: 20px;
}

.entry-content ul,
.entry-content ol {
  margin: 16px 0 24px;
  padding-left: 0;
  list-style: none;
}

.entry-content ul li,
.entry-content ol li {
  font-size: 0.92rem;
  color: #2a2a2a;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.7;
}

.entry-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.entry-content ol { counter-reset: ol; }
.entry-content ol li::before {
  content: counter(ol) '.';
  counter-increment: ol;
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
}

.entry-content blockquote {
  margin: 36px 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  font-size: 1.05rem;
  font-style: italic;
  color: #444;
  line-height: 1.65;
}

.entry-content figure { margin: 32px 0; }
.entry-content figure img { width: 100%; height: 380px; object-fit: cover; }
.entry-content figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--mid);
  text-align: center;
  letter-spacing: 0.04em;
}

/* Info box */
.entry-content .info-box,
.wp-block-info {
  background: var(--dim);
  border-left: 2px solid var(--accent);
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 0.88rem;
  color: #333;
  line-height: 1.7;
}

/* Tables */
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin: 24px 0; }
.entry-content th { text-align: left; padding: 10px 14px; background: var(--black); color: var(--white); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.04em; }
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: var(--dim); }

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: border-color var(--t), color var(--t);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* Author */
.post-author {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.author-avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.author-bio { font-size: 0.82rem; color: var(--mid); line-height: 1.6; }

/* Comments */
.comments-section { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.comments-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 28px; letter-spacing: -0.01em; }
.comment-list { list-style: none; }
.comment { padding: 20px 0; border-bottom: 1px solid var(--border); }
.comment-author { font-weight: 600; font-size: 0.85rem; margin-bottom: 3px; }
.comment-date { font-size: 0.72rem; color: var(--mid); margin-bottom: 8px; }
.comment-body p { font-size: 0.86rem; color: #444; line-height: 1.7; }

.comment-form label { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; color: var(--mid); }
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  background: var(--white);
  outline: none;
  margin-bottom: 16px;
  transition: border-color var(--t);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { height: 120px; resize: vertical; }
.comment-form .form-submit input {
  width: auto;
  padding: 11px 24px;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--black);
  margin-bottom: 0;
  transition: background var(--t);
}
.comment-form .form-submit input:hover { background: var(--accent); border-color: var(--accent); }

/* ── SIDEBAR ──────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.sidebar-widget {
  background: var(--white);
  padding: 24px;
}

.sidebar-widget-title {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.sidebar-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-info li {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-info li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-info span { color: var(--mid); }

.sidebar-recent { list-style: none; }
.sidebar-recent li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-recent li:last-child { border-bottom: none; }
.sidebar-recent a { font-size: 0.83rem; font-weight: 500; display: block; margin-bottom: 2px; transition: color var(--t); line-height: 1.35; }
.sidebar-recent a:hover { color: var(--accent); }
.sidebar-recent .rec-date { font-size: 0.7rem; color: var(--mid); }

.sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── POST NAV ─────────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.post-nav-item {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background var(--t);
}

.post-nav-item:hover { background: var(--dim); }
.post-nav-next { text-align: right; border-left: 1px solid var(--border); }

.nav-dir {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; background: none; border: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .post-layout { padding: 0 20px; }
  .post-hero-content { padding: 0 20px 36px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-next { border-left: none; border-top: 1px solid var(--border); text-align: left; }
  .entry-content figure img { height: 220px; }
}