/* ===========================================================================
   Blog single (post.hbs) — dynamic Ghost article
   Banner: title + meta LEFT, feature image RIGHT · Body: content + sticky sidebar
   Content wrapper (.post-content) styles Ghost's dynamic editor HTML.
   Uses site tokens: --primary-brand #000050, --secondary-accent #c0c0c0,
   --text-main #212121, --text-meta #757575, --radius, --font-heading, --font-body.
   =========================================================================== */

/* Reading progress bar ---------------------------------------------------- */
.reading-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #000050, #3a3ab0 60%, #c0c0c0);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.post-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(58, 58, 176, 0.45), transparent 55%),
    linear-gradient(158deg, #0a0a2e 0%, #000050 55%, #12123a 100%);
  padding-top: calc(var(--header-h, 72px) + clamp(1.75rem, 4vw, 3rem));
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.post-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.post-hero__mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.post-hero__flare {
  position: absolute;
  top: -18%;
  right: -8%;
  width: min(55vw, 560px);
  height: min(55vw, 560px);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 32%, transparent 66%);
}

.post-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.25rem);
}

.post-hero__content {
  min-width: 0;
  display: grid;
  gap: clamp(0.65rem, 1.6vw, 0.95rem);
  justify-items: start;
}

.post-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.post-hero__crumbs a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-hero__crumbs a:hover {
  color: #fff;
}

.post-hero__crumbs span {
  color: rgba(192, 192, 192, 0.5);
}

.post-hero__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius, 4px);
  background: rgba(0, 0, 50, 0.35);
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.post-hero__cat:hover {
  border-color: #fff;
  background: rgba(0, 0, 50, 0.55);
}

.post-hero__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.post-hero__excerpt {
  margin: 0;
  max-width: 46ch;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: clamp(0.92rem, 1.7vw, 1.08rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin-top: 0.35rem;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.post-hero__meta a {
  color: #fff;
  text-decoration: none;
  transition: color 0.15s ease;
}

.post-hero__meta a:hover {
  color: var(--secondary-accent, #c0c0c0);
}

.post-hero__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.post-hero__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.post-hero__meta time,
.post-hero__read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.post-hero__meta .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.75;
}

.post-hero__dot {
  color: rgba(192, 192, 192, 0.45);
}

/* Feature image */
.post-hero__figure {
  position: relative;
  margin: 0;
  min-width: 0;
}

.post-hero__figure::before {
  content: "";
  position: absolute;
  inset: auto -0.6rem -0.6rem auto;
  width: 62%;
  height: 62%;
  border: 1px solid rgba(192, 192, 192, 0.35);
  border-radius: calc(var(--radius, 4px) + 6px);
  z-index: -1;
}

.post-hero__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Feature images are branded 16:9 promo cards — contain shows the whole card
     (title + badges) without cropping; the dark fill blends with the hero. */
  object-fit: contain;
  background:
    radial-gradient(circle at 30% 20%, rgba(58, 58, 176, 0.35), transparent 60%),
    linear-gradient(158deg, #0a0a2e 0%, #000050 55%, #12123a 100%);
  border-radius: calc(var(--radius, 4px) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

.post-hero__figure figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ── Body layout ──────────────────────────────────────────────────────── */
.post-body {
  padding-block: clamp(2.5rem, 6vw, 4.25rem);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(16rem, 26vw, 20.5rem);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.post-main {
  min-width: 0;
}

/* ── Content wrapper — Ghost dynamic HTML (.post-content) ─────────────────
   Every element the Koenig editor can output is styled here. */
.post-content {
  font-family: var(--font-body, "Roboto", sans-serif);
  color: var(--text-main, #212121);
  font-size: clamp(1rem, 1.5vw, 1.125rem); /* 18px */
  line-height: 1.75;
}

.post-content > :first-child,
.post-content > :first-child > :first-child {
  margin-top: 0 !important;
}

/* Imported Blogger content often wraps the lead embed in an inline <span>;
   neutralise its baseline gap so the first player/video sits flush at the top. */
.post-content > span:first-child {
  display: block;
}

.post-content p {
  margin: 0 0 1.2rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  font-family: var(--font-heading, "Oswald", sans-serif);
  color: var(--primary-brand, #000050);
  letter-spacing: 0.02em;
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-h, 72px) + 1rem);
}

.post-content h2 {
  margin: 2.25rem 0 0.85rem;
  padding-bottom: 0.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.5rem); /* 24px */
  font-weight: 600;
  text-transform: uppercase;
}

.post-content h3 {
  margin: 1.9rem 0 0.65rem;
  font-size: clamp(1.1rem, 1.9vw, 1.25rem); /* 20px */
  font-weight: 600;
}

.post-content h4 {
  margin: 1.5rem 0 0.55rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem); /* 18px */
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary-brand, #000050) 82%, #555);
}

.post-content a {
  color: var(--primary-brand, #000050);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: color 0.15s ease;
}

.post-content a:hover {
  color: #00006a;
  text-decoration-thickness: 2px;
}

.post-content strong {
  font-weight: 500;
  color: color-mix(in srgb, var(--primary-brand, #000050) 88%, #333);
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.5rem;
}

.post-content li {
  line-height: 1.7;
}

.post-content ul li::marker {
  color: var(--primary-brand, #000050);
}

.post-content ol li::marker {
  color: var(--primary-brand, #000050);
  font-weight: 700;
}

.post-content blockquote {
  margin: 1.6rem 0;
  padding: 0.85rem 1.35rem;
  border-left: 4px solid var(--primary-brand, #000050);
  border-radius: 0 var(--radius, 4px) var(--radius, 4px) 0;
  background: linear-gradient(120deg, rgba(0, 0, 80, 0.05), rgba(0, 0, 80, 0.01));
  color: color-mix(in srgb, var(--text-main, #212121) 90%, #000);
  font-size: 1.05em;
  font-style: italic;
}

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

.post-content hr {
  margin: 2.25rem 0;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 80, 0.28) 50%, transparent);
}

.post-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius, 4px);
}

.post-content figure {
  margin: 1.75rem 0;
}

.post-content figure img {
  width: 100%;
  border: 1px solid rgba(192, 192, 192, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 80, 0.1);
}

.post-content figcaption {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-meta, #757575);
  text-align: center;
}

.post-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(0, 0, 80, 0.07);
  color: #00006a;
}

.post-content pre {
  margin: 1.6rem 0;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  border-radius: var(--radius, 4px);
  background: #0d0d2b;
  color: #eaecf5;
  font-size: 0.9rem;
  line-height: 1.6;
}

.post-content pre code {
  padding: 0;
  background: none;
  color: inherit;
}

.post-content table {
  width: 100%;
  margin: 1.6rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
  overflow: hidden;
  border-radius: var(--radius, 4px);
  border: 1px solid rgba(192, 192, 192, 0.6);
}

.post-content th,
.post-content td {
  padding: 0.7rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid rgba(192, 192, 192, 0.45);
}

.post-content thead th {
  background: var(--primary-brand, #000050);
  color: #fff;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.post-content tbody tr:nth-child(even) {
  background: rgba(0, 0, 80, 0.03);
}

.post-content tbody tr:last-child td {
  border-bottom: 0;
}

/* Ghost Koenig cards */
.post-content .kg-card {
  margin: 1.75rem 0;
}

.post-content .kg-image {
  margin-inline: auto;
}

.post-content .kg-width-wide {
  width: min(100%, 58rem);
  max-width: none;
}

.post-content .kg-width-full {
  width: 100%;
}

.post-content .kg-gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Embeds / iframes (Koenig + raw / imported HTML) ───────────────────────
   Video embeds (YouTube/Vimeo) get a 16:9 frame.
   Audio embeds (Spotify etc.) stay in normal flow at their natural height —
   never force aspect-ratio 16:9 on .kg-embed-card globally. */
.post-content .kg-embed-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.75rem 0;
}

.post-content .post-embed,
.post-content .kg-embed-card:has(iframe[src*="youtube"]),
.post-content .kg-embed-card:has(iframe[src*="youtu.be"]),
.post-content .kg-embed-card:has(iframe[src*="youtube-nocookie"]),
.post-content .kg-embed-card:has(iframe[src*="vimeo"]) {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius, 4px);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(160deg, #0a0a2e 0%, #000050 55%, #12123a 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 80, 0.18);
}

/* Classic padding-bottom wrappers keep their intrinsic ratio; just contain. */
.post-content .post-embed--legacy {
  aspect-ratio: auto;
  height: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 80, 0.18);
  border-radius: var(--radius, 4px);
  overflow: hidden;
  margin: 1.75rem 0;
}

.post-content iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  border-radius: var(--radius, 4px);
  margin: 1.75rem auto;
}

/* Video iframes inside a 16:9 frame — fill the frame */
.post-content .post-embed iframe,
.post-content .post-embed--legacy iframe,
.post-content .kg-embed-card:has(iframe[src*="youtube"]) iframe,
.post-content .kg-embed-card:has(iframe[src*="youtu.be"]) iframe,
.post-content .kg-embed-card:has(iframe[src*="youtube-nocookie"]) iframe,
.post-content .kg-embed-card:has(iframe[src*="vimeo"]) iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0 !important;
  border: 0;
  border-radius: inherit;
  aspect-ratio: auto;
  box-shadow: none;
}

/* Bare YouTube/Vimeo iframes (not yet wrapped) — 16:9 in normal flow */
.post-content iframe[src*="youtube"],
.post-content iframe[src*="youtu.be"],
.post-content iframe[src*="youtube-nocookie"],
.post-content iframe[src*="vimeo"] {
  aspect-ratio: 16 / 9;
  height: auto !important;
  box-shadow: 0 14px 34px rgba(0, 0, 80, 0.18);
}

.post-content .post-embed iframe[src*="youtube"],
.post-content .post-embed iframe[src*="youtu.be"],
.post-content .post-embed iframe[src*="youtube-nocookie"],
.post-content .post-embed iframe[src*="vimeo"],
.post-content .post-embed--legacy iframe[src*="youtube"],
.post-content .post-embed--legacy iframe[src*="youtu.be"],
.post-content .post-embed--legacy iframe[src*="youtube-nocookie"],
.post-content .post-embed--legacy iframe[src*="vimeo"],
.post-content .kg-embed-card:has(iframe[src*="youtube"]) iframe,
.post-content .kg-embed-card:has(iframe[src*="youtu.be"]) iframe,
.post-content .kg-embed-card:has(iframe[src*="youtube-nocookie"]) iframe,
.post-content .kg-embed-card:has(iframe[src*="vimeo"]) iframe {
  aspect-ratio: auto;
  height: 100% !important;
  box-shadow: none;
}

/* Spotify / podcast — compact player height; never stretch to 16:9 */
.post-content .kg-embed-card:has(iframe[src*="spotify"]),
.post-content .kg-embed-card:has(iframe[src*="soundcloud"]),
.post-content .kg-embed-card:has(iframe[src*="anchor.fm"]) {
  aspect-ratio: auto;
  overflow: visible;
  background: none;
  box-shadow: none;
}

.post-content .kg-embed-card:has(iframe[src*="spotify"]) iframe,
.post-content .kg-embed-card:has(iframe[src*="soundcloud"]) iframe,
.post-content .kg-embed-card:has(iframe[src*="anchor.fm"]) iframe,
.post-content iframe[src*="spotify"],
.post-content iframe[src*="soundcloud"],
.post-content iframe[src*="anchor.fm"],
.post-content iframe[src*="creators.spotify"],
.post-content iframe[src*="/embed/episodes/"] {
  position: static !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100%;
  height: unset !important; /* honor iframe height attr (e.g. 102px) */
  min-height: unset;
  aspect-ratio: auto;
  margin: 0 !important;
  border-radius: var(--radius, 4px);
  box-shadow: 0 10px 26px rgba(0, 0, 80, 0.08);
}

/* Full episode players when Ghost omits a height attr */
.post-content iframe[src*="open.spotify.com/embed"]:not([height]),
.post-content iframe[src*="/embed/episode"]:not([height]) {
  height: 152px !important;
}

.post-content .kg-bookmark-card {
  margin: 1.75rem 0;
}

.post-content .kg-bookmark-container {
  display: flex;
  min-height: 0;
  border: 1px solid rgba(192, 192, 192, 0.6);
  border-radius: var(--radius, 4px);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main, #212121);
  box-shadow: 0 10px 26px rgba(0, 0, 80, 0.08);
}

.post-content .kg-bookmark-content {
  padding: 1rem 1.25rem;
}

.post-content .kg-bookmark-title {
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-weight: 600;
  color: var(--primary-brand, #000050);
}

.post-content .kg-callout-card {
  margin: 1.6rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius, 4px);
  background: rgba(0, 0, 80, 0.05);
  border-left: 4px solid var(--primary-brand, #000050);
}

/* ── Post footer bits ─────────────────────────────────────────────────── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 80, 0.1);
}

.post-tags__label {
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-meta, #757575);
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(0, 0, 80, 0.2);
  border-radius: 999px;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-brand, #000050);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.post-tag:hover {
  background: var(--primary-brand, #000050);
  border-color: var(--primary-brand, #000050);
  color: #fff;
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.post-share__label {
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-meta, #757575);
  margin-right: 0.2rem;
}

.post-share a {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 80, 0.18);
  color: var(--primary-brand, #000050);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.post-share a:hover {
  background: var(--primary-brand, #000050);
  color: #fff;
  transform: translateY(-2px);
}

.post-share svg {
  width: 1.05rem;
  height: 1.05rem;
}

.post-author-card {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(192, 192, 192, 0.6);
  border-radius: var(--radius, 4px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95), transparent 55%),
    linear-gradient(158deg, #ffffff 0%, #f6f8fc 60%, #eef2f8 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 80, 0.07);
}

.post-author-card__avatar {
  width: 3.75rem;
  height: 3.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(192, 192, 192, 0.7);
}

.post-author-card__name {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-brand, #000050);
}

.post-author-card__name a {
  color: inherit;
  text-decoration: none;
}

.post-author-card__bio {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-meta, #757575);
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.post-aside {
  min-width: 0;
}

.post-aside__sticky {
  position: sticky;
  top: calc(var(--header-h, 72px) + 1rem);
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
}

.post-aside__card {
  padding: clamp(1.1rem, 2vw, 1.4rem);
  border: 1px solid rgba(192, 192, 192, 0.6);
  border-radius: var(--radius, 4px);
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.96), transparent 55%),
    linear-gradient(158deg, #ffffff 0%, #f7f9fc 60%, #eef2f8 100%);
  box-shadow: 0 10px 26px rgba(0, 0, 80, 0.06);
}

.post-aside__title {
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-brand, #000050);
  border-bottom: 1px solid rgba(0, 0, 80, 0.1);
}

/* author widget */
.post-aside__author {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.5rem;
}

.post-aside__author-avatar {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(192, 192, 192, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 80, 0.12);
}

.post-aside__author-name {
  margin: 0;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-brand, #000050);
}

.post-aside__author-name a {
  color: inherit;
  text-decoration: none;
}

.post-aside__author-bio {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-meta, #757575);
}

/* recent posts */
.post-aside__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.post-aside__list a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.post-aside__thumb {
  width: 3.4rem;
  height: 3.4rem;
  flex-shrink: 0;
  border-radius: var(--radius, 4px);
  object-fit: cover;
  border: 1px solid rgba(192, 192, 192, 0.55);
}

.post-aside__item-title {
  display: block;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--primary-brand, #000050);
  transition: color 0.15s ease;
}

.post-aside__list a:hover .post-aside__item-title {
  color: #00006a;
}

.post-aside__item-date {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--text-meta, #757575);
}

/* CTA card */
.post-aside__cta {
  padding: clamp(1.25rem, 2.4vw, 1.6rem);
  border-radius: var(--radius, 4px);
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(158deg, #0a0a2e 0%, #000050 55%, #12123a 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 80, 0.22);
}

.post-aside__cta-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-aside__cta-text {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.post-aside__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius, 4px);
  background: #fff;
  color: var(--primary-brand, #000050);
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-aside__cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
}

/* ── Related posts ────────────────────────────────────────────────────── */
.post-related {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.post-related__head {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.post-related__head h2 {
  display: inline-block;
  margin: 0;
  padding-bottom: 0.8rem;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-brand, #000050);
}

.post-related__head h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 0.8rem;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 90, 0.35) 12%, rgba(0, 0, 50, 0.96) 50%, rgba(0, 0, 90, 0.35) 88%, transparent 100%);
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.5vw, 1.75rem);
}

.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(192, 192, 192, 0.6);
  border-radius: var(--radius, 4px);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 80, 0.07);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary-accent, #c0c0c0);
  box-shadow: 0 18px 38px rgba(0, 0, 80, 0.14);
}

.related-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8edf5;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-card:hover .related-card__media img {
  transform: scale(1.05);
}

.related-card__ph {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%),
    linear-gradient(155deg, #1a1a5a, #000050);
}

.related-card__cat {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius, 4px);
  background: rgba(0, 0, 50, 0.88);
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(2px);
}

.related-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: clamp(0.9rem, 2vw, 1.15rem);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), transparent 50%),
    linear-gradient(160deg, #ffffff 0%, #f4f6fb 55%, #e9edf6 100%);
}

.related-card__date {
  margin: 0;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-meta, #757575);
}

.related-card__title {
  margin: 0;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--primary-brand, #000050);
}

.related-card__excerpt {
  margin: 0;
  flex: 1;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-meta, #757575);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

.related-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-brand, #000050);
}

.related-card__link .material-symbols-outlined {
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}

.related-card:hover .related-card__link .material-symbols-outlined {
  transform: translateX(3px);
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .post-hero__inner {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 5vw, 2.25rem);
  }

  .post-hero__figure {
    order: -1;
  }

  .post-hero__figure::before {
    display: none;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-aside__sticky {
    position: static;
  }

  .post-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .post-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .related-card,
  .related-card__media img,
  .post-share a,
  .post-aside__cta-btn,
  .reading-progress {
    transition: none;
  }
}

.blog-card-grid {
  align-items: stretch;
}

/* ── Blog index — equal-height cards, fixed media, aligned CTA ───────── */
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(192, 192, 192, 0.6);
  border-radius: var(--radius, 4px);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 80, 0.07);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--secondary-accent, #c0c0c0);
  box-shadow: 0 18px 38px rgba(0, 0, 80, 0.14);
}

.blog-card:focus-visible {
  outline: 2px solid var(--primary-brand, #000050);
  outline-offset: 2px;
}

.blog-card__media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e8edf5;
}

.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.04);
}

.blog-card__ph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), transparent 55%),
    linear-gradient(155deg, #1a1a5a, #000050);
}

.blog-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius, 4px);
  background: rgba(0, 0, 50, 0.88);
  backdrop-filter: blur(2px);
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.blog-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 0;
  padding: var(--space-card, 1.2rem);
  padding-bottom: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), transparent 50%),
    linear-gradient(160deg, #ffffff 0%, #f4f6fb 55%, #e9edf6 100%);
}

.blog-card__date {
  margin: 0;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: var(--text-tiny, 0.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-meta, #757575);
}

.blog-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 0;
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: var(--text-h3-lg, clamp(1.16rem, 2.25vw, 1.4rem));
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--primary-brand, #000050);
}

.blog-card__excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
  min-height: 0;
  max-height: calc(1.5em * 3);
  margin: 0;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: var(--text-body-sm, 0.9rem);
  line-height: 1.5;
  color: var(--text-meta, #757575);
}

.blog-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-brand, #000050);
}

.blog-card__more .material-symbols-outlined {
  font-size: 0.82rem;
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-card__more .material-symbols-outlined {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card__media img,
  .blog-card__more .material-symbols-outlined {
    transition: none;
  }

  .blog-card:hover {
    transform: none;
  }

  .blog-card:hover .blog-card__media img,
  .blog-card:hover .blog-card__more .material-symbols-outlined {
    transform: none;
  }
}

/* ── Blog index — pagination + empty state ────────────────────────────── */
.blog-empty {
  margin: 0;
  padding: clamp(2rem, 6vw, 3.5rem) 0;
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 1.05rem;
  color: var(--text-meta, #757575);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.pagination .newer-posts,
.pagination .older-posts {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--primary-brand, #000050);
  border-radius: var(--radius, 4px);
  font-family: var(--font-heading, "Oswald", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-brand, #000050);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pagination .newer-posts:hover,
.pagination .older-posts:hover {
  background: var(--primary-brand, #000050);
  color: #fff;
  transform: translateY(-1px);
}

.pagination .page-number {
  font-family: var(--font-body, "Roboto", sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-meta, #757575);
}

@media (prefers-reduced-motion: reduce) {
  .pagination .newer-posts:hover,
  .pagination .older-posts:hover {
    transform: none;
  }
}
