/* =============================================================
   post.css — Guide / blog post pages (/blog/<slug>.html)
   Aeropilot. Used with styles.css, components.css, animations.css.
============================================================= */

/* Posts use the site's standard .container width (1200px), so they line up
   with the navbar and the other pages. */

/* ----- Header: breadcrumb, H1, byline on navy ------------- */
.post-header {
  background: var(--color-navy);
  padding: 120px 0 var(--space-6);  /* clears the fixed navbar */
  color: var(--color-white);
}

.post-header h1 {
  color: var(--color-white);
  margin-bottom: var(--space-3);
  max-width: 22ch;
}

.post-byline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  max-width: none;
}

.post-byline a {
  color: var(--color-gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----- Article body ---------------------------------------- */
.post {
  padding: var(--space-6) 0 var(--space-4);
}

.post h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  margin: var(--space-6) 0 var(--space-3);
}

.post h3 {
  font-size: var(--text-xl);
  margin: var(--space-4) 0 var(--space-2);
}

.post p,
.post li {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--color-text);
  max-width: none;
}

.post p {
  margin-bottom: var(--space-3);
}

.post ul,
.post ol {
  margin: 0 0 var(--space-3) var(--space-4);
  padding: 0;
}

.post ul { list-style: disc; }
.post ol { list-style: decimal; }

.post li + li {
  margin-top: var(--space-1);
}

.post a {
  color: var(--color-sky);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post a:hover {
  color: var(--color-navy);
}

.post blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-2) var(--space-4);
  border-left: 3px solid var(--color-gold);
  color: var(--color-text);
  font-style: italic;
}

/* Answer-first box */
.post-answer {
  padding: var(--space-3) var(--space-4);
  background: var(--color-cloud);
  border-left: 4px solid var(--color-sky);
  border-radius: var(--radius-md);
}

/* Key-facts and other tables */
.post table {
  width: 100%;
  margin: var(--space-4) 0;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.post caption {
  text-align: left;
  font-weight: 600;
  color: var(--color-navy);
  padding-bottom: var(--space-1);
}

.post th,
.post td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.post th {
  color: var(--color-navy);
  font-weight: 600;
}

.post thead th {
  background: var(--color-cloud);
}

/* Wide tables scroll inside themselves on phones, not the page */
@media (max-width: 600px) {
  .post table {
    display: block;
    overflow-x: auto;
  }
}

/* Hub link and sources */
.post-hub {
  margin: var(--space-6) 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.post-hub p {
  margin: 0;
}

.post-sources h2 {
  font-size: var(--text-xl);
}

.post-sources li,
.post-sources p {
  font-size: var(--text-sm);
}


/* Callouts: the short prompts and status boxes inside a post */
.post-callout {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  background: var(--color-cloud);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
}

.post-callout p:last-child {
  margin-bottom: 0;
}

/* One photo near the top of a post */
.post-figure {
  margin: var(--space-4) 0 var(--space-5);
}

.post-figure img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.post-figure figcaption {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
