/* What Ghost needs beyond the site's stylesheet (site.css, generated from the site's build) and the blog's own
   (blog.css): the cards of Ghost's editor, the card without a picture, the empty index. Colours, radii and shadows are the site's tokens (src/styles/tokens.css); derived colours are
   color-mix() of tokens. No dark surface anywhere (owner, 3 December 2026): code and call-outs sit on concrete. */

/* ---------- Post card without a feature image: the site's badge on the card's own tint ---------- */
.post-card-placeholder { background: linear-gradient(135deg, var(--jfk-concrete-100), var(--jfk-navy-100)); }
.post-card-placeholder img { width: auto; height: 6rem; }

/* ---------- Static cards (the empty index): their accent bar is always shown, like the course box ---------- */
.blog-empty::before { transform: scaleX(1); }

/* ---------- A post with no earlier and no later post: no empty landmark, no gap for it ---------- */
.post-body footer > nav:empty { display: none; }

/* ---------- The text of a post or page, as Ghost's editor writes it (inside .prose-jfk) ---------- */
.gh-content > :first-child { margin-top: 0; }
.gh-content img, .gh-content video { max-width: 100%; height: auto; }
.gh-content figure { margin-inline: 0; }
.gh-content figcaption { color: var(--jfk-muted); font-size: 0.9375rem; text-align: left; }
.gh-content figcaption a { font-weight: 600; }
.gh-content blockquote {
  margin-inline: 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--jfk-cyan-500);
  color: var(--jfk-navy-900);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
}
.gh-content blockquote.kg-blockquote-alt { padding: 0; border-left: 0; font-size: 1.35rem; text-align: center; }
.gh-content hr { height: 1px; margin-block: 2.5rem; border: 0; background: var(--jfk-line); }
.gh-content pre {
  overflow-x: auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--jfk-line);
  border-radius: var(--jfk-radius-md);
  background: var(--jfk-concrete-100);
  color: var(--jfk-ink);
  font-size: 0.9rem;
  line-height: 1.6;
}
.gh-content :not(pre) > code { padding: 0.15em 0.4em; border-radius: 6px; background: var(--jfk-concrete-100); font-size: 0.9em; }
.gh-content h2, .gh-content h3, .gh-content h4 { scroll-margin-top: 0.75rem; }

/* Ghost's image widths. The text column is 70 characters wide with the course box beside it, so a "wide" or "full"
   image takes the column's whole width and never slides under the box. (Ghost requires both classes of a theme.) */
.gh-content .kg-width-wide, .gh-content .kg-width-full { width: 100%; max-width: 100%; }
.gh-content .kg-image-card img, .gh-content .kg-gallery-image img { border-radius: var(--jfk-radius-lg); }
.gh-content .kg-card { margin-block: 2.25rem; }
.gh-content .kg-embed-card { display: flex; flex-direction: column; align-items: center; }
.gh-content .kg-embed-card iframe { max-width: 100%; border: 0; border-radius: var(--jfk-radius-md); }
.gh-content iframe[src*="youtube"], .gh-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Ghost's cards are drawn by Ghost's own stylesheet, in the accent colour set in Ghost (the Book Now green). The rules
   below only stop the article's link style (.prose-jfk a: green, underlined) from reaching into them, and give them
   the site's corners. */
.prose-jfk.gh-content .kg-card a.kg-btn, .prose-jfk.gh-content .kg-card a.kg-btn:hover {
  min-height: 2.75rem;
  padding: 0.875rem 1.625rem;
  border-radius: var(--jfk-radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.prose-jfk.gh-content .kg-card a.kg-btn-accent, .prose-jfk.gh-content .kg-card a.kg-btn-accent:hover { background: var(--jfk-book-600); color: var(--jfk-white); }
.prose-jfk.gh-content .kg-card a.kg-btn-accent:hover { background: color-mix(in srgb, var(--jfk-book-600) 80%, var(--jfk-navy-950)); }
.prose-jfk.gh-content a.kg-bookmark-container, .prose-jfk.gh-content a.kg-bookmark-container:hover {
  border-color: var(--jfk-line);
  border-radius: var(--jfk-radius-md);
  color: var(--jfk-ink);
  font-family: inherit;
  font-weight: 400;
  text-decoration: none;
}
.prose-jfk.gh-content .kg-callout-card, .prose-jfk.gh-content .kg-toggle-card, .prose-jfk.gh-content .kg-file-card-container, .prose-jfk.gh-content .kg-product-card-container {
  border-radius: var(--jfk-radius-md);
  font-family: inherit;
}
.prose-jfk.gh-content .kg-callout-card { color: var(--jfk-ink); }
.prose-jfk.gh-content .kg-callout-card a, .prose-jfk.gh-content .kg-toggle-card a { color: var(--jfk-cyan-700); }
.prose-jfk.gh-content a.kg-file-card-container, .prose-jfk.gh-content a.kg-file-card-container:hover { color: var(--jfk-ink); font-weight: 400; text-decoration: none; }
/* Ghost's "call to action" card: the booking panel of the site's posts (blog.css .post-cta), a concrete panel with an
   edge in the post's course colour (the text's wrapper carries the sign class), its words as a heading and one button. */
.prose-jfk.gh-content .kg-cta-card {
  position: relative;
  margin-block: 2.75rem;
  overflow: hidden;
  padding: 1.75rem 1.5rem 1.75rem 1.9rem;
  border: 1px solid var(--jfk-line);
  border-radius: var(--jfk-radius-lg);
  background: var(--jfk-concrete-50);
  font-family: inherit;
}
.prose-jfk.gh-content .kg-cta-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--sign, var(--jfk-cyan-500)); }
@media (min-width: 640px) { .prose-jfk.gh-content .kg-cta-card { padding: 2rem 2.25rem 2rem 2.5rem; } }
@media (forced-colors: active) { .prose-jfk.gh-content .kg-cta-card::before { forced-color-adjust: none; } }
.prose-jfk.gh-content .kg-cta-card .kg-cta-content { margin: 0; padding: 0; }
.prose-jfk.gh-content .kg-cta-card .kg-cta-content-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 0; }
.prose-jfk.gh-content .kg-cta-card .kg-cta-text {
  color: var(--jfk-navy-900);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-stretch: var(--jfk-stretch-heading);
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.prose-jfk.gh-content .kg-cta-card a.kg-cta-button, .prose-jfk.gh-content .kg-cta-card a.kg-cta-button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 2.75rem;
  padding: 0.875rem 1.625rem;
  border-radius: var(--jfk-radius-pill);
  background: var(--jfk-book-600);
  color: var(--jfk-white);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.prose-jfk.gh-content .kg-cta-card a.kg-cta-button:hover { background: color-mix(in srgb, var(--jfk-book-600) 80%, var(--jfk-navy-950)); }

/* The diamond bullets of the article's lists do not belong inside a card's own lists. */
.gh-content .kg-card ul > li { padding-left: 0; }
.gh-content .kg-card ul > li::before { content: none; }

@media print {
  .gh-content .kg-embed-card, .gh-content .kg-video-card, .gh-content .kg-audio-card { display: none; }
}
