/* ─── Page shell ─────────────────────────────────────────────────────────── */
.amplify-article-page {
  background: #f0efe9;
}

.amplify-article-page #content,
.amplify-article-page #primary,
.amplify-article-page .site-main {
  margin: 0;
  padding: 0;
}

.amplify-post-main {
  background: #f0efe9;
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.amplify-article-page .site-main.amplify-post-main,
.amplify-article-archive .site-main.amplify-archive-main {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.amplify-post-shell {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.amplify-post-hero {
  padding: clamp(6.5rem, 9vw, 9rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

.amplify-post-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

.amplify-post-hero-inner--no-image {
  grid-template-columns: 1fr;
  max-width: 700px;
}

.amplify-post-hero-image {
  border-radius: 1.35rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #d8d6cf;
}

.amplify-post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Breadcrumb */
.amplify-post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 1rem;
}

.amplify-post-breadcrumb a {
  color: #6b6b6b;
  text-decoration: none;
}

.amplify-post-breadcrumb a:hover {
  color: #1a1a1a;
}

.amplify-post-breadcrumb-sep {
  color: #9a9a9a;
  font-weight: 400;
}

/* Title */
.amplify-post-title {
  margin: 0 0 0.75rem;
  color: #0d1b3e;
  font-family: "Buzz Sans", sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
  font-weight: 760;
  line-height: 1.07;
  letter-spacing: -0.01em;
}

/* Excerpt */
.amplify-post-excerpt {
  margin: 0 0 1.1rem;
  color: #3a3a3a;
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.65;
  max-width: 58ch;
}

/* Tags / category pills */
.amplify-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.amplify-post-tag {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid rgba(13, 27, 62, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-family: "Buzz Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #0d1b3e;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.amplify-post-tag:hover {
  background: rgba(13, 27, 62, 0.07);
  border-color: rgba(13, 27, 62, 0.55);
}

/* Dateline row */
.amplify-post-dateline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(13, 27, 62, 0.12);
  flex-wrap: wrap;
}

.amplify-post-date {
  color: #6b6b6b;
  font-size: 1rem;
}

/* Social share */
.amplify-post-share {
  display: flex;
  gap: 0.45rem;
}

.amplify-post-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.45rem;
  background: #e3e1da;
  color: #3a3a3a;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.amplify-post-share-btn svg {
  width: 1rem;
  height: 1rem;
}

.amplify-post-share-btn:hover {
  background: #0d1b3e;
  color: #fff;
}

/* ─── Body: content + TOC ────────────────────────────────────────────────── */
.amplify-post-body {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}

.amplify-post-body-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

/* Content area */
.amplify-post-content {
  color: #1a1a1a;
}

.amplify-post-content p,
.amplify-post-content li,
.amplify-post-content blockquote,
.amplify-post-content figcaption {
  color: #2a2a2a;
  font-family: "Roboto", sans-serif;
  font-size: clamp(1rem, 1.18vw, 1.1rem);
  line-height: 1.75;
}

.amplify-post-content h2,
.amplify-post-content h3,
.amplify-post-content h4 {
  color: #0d1b3e;
  font-family: "Buzz Sans", sans-serif;
  font-weight: 720;
  line-height: 1.15;
  margin-top: 2em;
  margin-bottom: 0.55em;
}

.amplify-post-content h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
}

.amplify-post-content h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.amplify-post-content a {
  color: #1e5cba;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.amplify-post-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.9rem;
  margin: 1.25rem 0 1.5rem;
}

.amplify-post-content ul,
.amplify-post-content ol {
  padding-left: 1.4rem;
}

.amplify-post-content li + li {
  margin-top: 0.4rem;
}

.amplify-post-content blockquote {
  border-left: 3px solid #f5b942;
  margin: 1.5rem 0;
  padding: 0.6rem 0 0.6rem 1.25rem;
  color: #444;
  font-style: italic;
}

/* Key Points block — authors add class="amplify-key-points" to a div/block */
.amplify-key-points {
  background: #152b1e;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem 1.4rem;
  margin: 1.5rem 0 2rem;
  color: #fff;
}

.amplify-key-points__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Buzz Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.amplify-key-points__title svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.amplify-key-points.is-open .amplify-key-points__title svg {
  transform: rotate(180deg);
}

.amplify-key-points__body {
  margin-top: 1rem;
}

.amplify-key-points__body ul {
  padding-left: 1.25rem;
}

.amplify-key-points__body li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.65;
  font-family: "Roboto", sans-serif;
}

.amplify-key-points__body li + li {
  margin-top: 0.5rem;
}

/* ─── TOC Sidebar ────────────────────────────────────────────────────────── */
.amplify-post-toc-sidebar {
  position: sticky;
  top: 13rem;
}

.amplify-post-toc-card {
  background: #e8e5dc;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem 1.5rem;
}

.amplify-post-toc-heading {
  margin: 0 0 1rem;
  font-family: "Buzz Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d1b3e;
}

.amplify-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amplify-toc-item {
  border-radius: 0.5rem;
}

.amplify-toc-item + .amplify-toc-item {
  margin-top: 0.15rem;
}

.amplify-toc-item--sub {
  padding-left: 0.85rem;
}

.amplify-toc-link {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #3a3a3a;
  text-decoration: none;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.amplify-toc-link:hover {
  background: rgba(13, 27, 62, 0.08);
  color: #0d1b3e;
}

.amplify-toc-link.is-active {
  background: #fff;
  color: #0d1b3e;
  font-weight: 600;
}

/* ─── Related Posts ──────────────────────────────────────────────────────── */
.amplify-post-related {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  background: #eae8e1;
}

.amplify-post-related-header {
  text-align: center;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.amplify-post-related-overline {
  display: block;
  font-family: "Buzz Sans", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 0.5rem;
}

.amplify-post-related-heading {
  margin: 0;
  color: #0d1b3e;
  font-family: "Buzz Sans", sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 750;
  line-height: 1.1;
}

.amplify-post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.amplify-post-related-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.amplify-post-related-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.amplify-post-related-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #d8d6cf;
  overflow: hidden;
}

.amplify-post-related-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.amplify-post-related-card:hover .amplify-post-related-media img {
  transform: scale(1.03);
}

.amplify-post-related-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.amplify-post-related-meta {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.amplify-post-related-body h3 {
  margin: 0;
  font-family: "Buzz Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 680;
  flex: 1;
}

.amplify-post-related-body h3 a {
  color: #1a1a1a;
  text-decoration: none;
}

.amplify-post-related-body h3 a:hover {
  color: #0d1b3e;
}

.amplify-post-related-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0.42rem 0.95rem;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  font-family: "Buzz Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.15s ease, color 0.15s ease;
}

.amplify-post-related-cta:hover {
  background: #1a1a1a;
  color: #fff;
}

/* ─── Archive ────────────────────────────────────────────────────────────── */
.amplify-archive-main {
  background: #f0efe9;
  padding-bottom: clamp(3.2rem, 5.6vw, 5rem);
}

.amplify-archive-header {
  padding: clamp(6.5rem, 9vw, 9rem) 0 clamp(2rem, 3.5vw, 3rem);
}

.amplify-archive-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
  margin-bottom: 1rem;
}

.amplify-archive-breadcrumb a {
  color: #6b6b6b;
  text-decoration: none;
}

.amplify-archive-breadcrumb a:hover {
  color: #1a1a1a;
}

.amplify-archive-breadcrumb-sep {
  color: #9a9a9a;
  font-weight: 400;
}

.amplify-archive-title {
  margin: 0 0 0.6rem;
  color: #0d1b3e;
  font-family: "Buzz Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 760;
  line-height: 1.07;
}

.amplify-archive-desc {
  margin: 0;
  color: #5a5a5a;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  max-width: 56ch;
}

.amplify-archive-grid {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.amplify-archive-card {
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.amplify-archive-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.amplify-archive-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #d8d6cf;
  overflow: hidden;
}

.amplify-archive-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.amplify-archive-card:hover .amplify-archive-card-media img {
  transform: scale(1.03);
}

.amplify-archive-card-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.amplify-archive-card-type {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #6b6b6b;
  font-weight: 700;
}

.amplify-archive-card h2 {
  margin: 0;
  font-family: "Buzz Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 680;
  line-height: 1.28;
  flex: 1;
}

.amplify-archive-card h2 a {
  color: #1a1a1a;
  text-decoration: none;
}

.amplify-archive-card h2 a:hover {
  color: #0d1b3e;
}

.amplify-archive-card-meta {
  color: #6b6b6b;
  font-size: 0.82rem;
}

.amplify-archive-card-excerpt {
  color: #3a3a3a;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.amplify-archive-card-cta {
  margin-top: auto;
  padding-top: 0.25rem;
}

.amplify-archive-card-cta a {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border: 1.5px solid #1a1a1a;
  border-radius: 999px;
  font-family: "Buzz Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.amplify-archive-card-cta a:hover {
  background: #1a1a1a;
  color: #fff;
}

.amplify-archive-pagination {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
}

.amplify-archive-pagination .page-numbers {
  display: inline-flex;
  min-width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 0.75rem;
  margin: 0 0.18rem;
  text-decoration: none;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.amplify-archive-pagination .page-numbers.current {
  border-color: #f5b942;
  background: rgba(245, 185, 66, 0.14);
  color: #0d1b3e;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .amplify-post-body-inner {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

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

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

@media (max-width: 900px) {
  .amplify-post-hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .amplify-post-hero-image {
    aspect-ratio: 16 / 9;
  }

  .amplify-post-body-inner {
    grid-template-columns: 1fr;
  }

  .amplify-post-toc-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 767px) {
  .amplify-post-hero {
    padding-top: 6rem;
  }

  .amplify-post-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

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

  .amplify-archive-grid {
    grid-template-columns: 1fr;
  }
}