﻿/* ---------------------------------------------------------------------------
   Card Machine Queen — blog archive and articles
   Uses the same tokens as the approved homepage (see style.css :root).
   --------------------------------------------------------------------------- */

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
}

.page-hero h1 {
  margin: 0.4rem 0 0.75rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--olive);
}

.page-hero p {
  max-width: 46rem;
  margin: 0;
  font-size: clamp(1.02rem, 2vw, 1.16rem);
  color: var(--muted);
}

/* --- archive grid --------------------------------------------------------- */

.post-grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.post-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--pistachio);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem 1.5rem 1.6rem;
}

.post-card__meta {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.post-card__title {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.18;
  color: var(--olive);
}

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

.post-card__title a:hover,
.post-card__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-card__excerpt {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--muted);
}

.post-card__more {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--orange-text);
}

/* --- Advice Centre ------------------------------------------------------- */

.advice-centre,
.advice-archive,
.advice-search-page {
  background: #fff8f0;
  color: #2b2b2b;
}

.advice-hero,
.advice-topics,
.latest-advice,
.advice-archive-hero,
.advice-archive-results {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4.5rem);
}

.advice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: end;
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(2.75rem, 6vw, 5rem);
}

.advice-hero__copy { max-width: 50rem; }

.advice-hero h1,
.advice-section-heading h2,
.advice-archive-hero h1,
.advice-results-title,
.advice-cta h2 {
  font-family: "Bebas Neue", "DM Sans", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.012em;
  color: #0f0f0f;
}

.advice-hero h1 {
  margin: 0.15rem 0 1rem;
  font-size: clamp(4rem, 9vw, 7.25rem);
  line-height: 0.9;
}

.advice-hero__copy > p:not(.eyebrow) {
  max-width: 46rem;
  margin: 0;
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.advice-hero__copy > p:not(.eyebrow) + p { margin-top: 0.8rem; }

.advice-search {
  padding: 1.35rem;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: var(--radius);
  background: #f5f0e8;
  box-shadow: 0 16px 40px rgba(15, 15, 15, 0.08);
}

.advice-search label {
  display: block;
  margin-bottom: 0.65rem;
  color: #0f0f0f;
  font-size: 0.85rem;
  font-weight: 800;
}

.advice-search__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.advice-search input[type="search"] {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(15, 15, 15, 0.28);
  border-radius: 10px;
  background: #fff;
  color: #0f0f0f;
}

.advice-search button {
  min-height: 50px;
  padding: 0.75rem 1.15rem;
  border: 2px solid #f47c20;
  border-radius: 10px;
  background: #f47c20;
  color: #0f0f0f;
  font-weight: 800;
  cursor: pointer;
}

.advice-search input[type="search"]:focus-visible,
.advice-search button:focus-visible,
.advice-topic-card:focus-visible {
  outline: 3px solid #0f0f0f;
  outline-offset: 4px;
}

.advice-search button:hover { background: #fd5a32; border-color: #fd5a32; }

.advice-topics {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3.75rem, 8vw, 7rem);
  border-radius: clamp(1.25rem, 3vw, 2.5rem);
  background: #f5f0e8;
}

.advice-section-heading { max-width: 48rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }

.advice-section-heading h2 {
  margin: 0.1rem 0 0;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.95;
}

.advice-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.advice-topic-card {
  position: relative;
  display: flex;
  min-height: 22rem;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: var(--radius);
  background: #fff8f0;
  color: #2b2b2b;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(15, 15, 15, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.advice-topic-card::after {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -4rem;
  width: 10rem;
  height: 10rem;
  border: 1.2rem solid rgba(244, 124, 32, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.advice-topic-card:hover,
.advice-topic-card:focus-visible {
  transform: translateY(-4px);
  border-color: #f47c20;
  box-shadow: 0 20px 44px rgba(15, 15, 15, 0.11);
}

.advice-topic-card__icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.35rem;
  place-items: center;
  border-radius: 14px;
  background: #f47c20;
  color: #0f0f0f;
}

.advice-topic-card__icon svg { width: 1.8rem; height: 1.8rem; }

.advice-topic-card__count {
  margin-bottom: 0.5rem;
  color: #556b5b;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.advice-topic-card h3 {
  margin: 0 0 0.8rem;
  font-family: "Bebas Neue", "DM Sans", Arial, sans-serif;
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1;
  color: #0f0f0f;
}

.advice-topic-card p { margin: 0 0 1.5rem; line-height: 1.6; }

.advice-topic-card__link {
  margin-top: auto;
  color: #0f0f0f;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #f47c20;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.latest-advice { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }

.advice-post-grid { max-width: none; margin: 0; padding: 0; }

.advice-archive-hero {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.advice-breadcrumb { margin: 0 0 2rem; color: #556b5b; font-size: 0.86rem; }
.advice-breadcrumb a { text-underline-offset: 3px; }

.advice-archive-hero h1 {
  max-width: 58rem;
  margin: 0.2rem 0 1rem;
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  line-height: 0.92;
}

.advice-archive-description { max-width: 50rem; font-size: clamp(1.04rem, 1.6vw, 1.18rem); line-height: 1.7; }
.advice-archive-description p { margin: 0; }

.advice-archive-results { padding-bottom: clamp(4rem, 8vw, 7rem); }

.advice-results-title {
  margin: 0 0 2rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.advice-empty {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: var(--radius);
  background: #f5f0e8;
  text-align: center;
}

.advice-empty p:last-child { margin-bottom: 0; }
.advice-empty .button { margin-top: 0.75rem; }

.advice-archive-hero .advice-search { max-width: 46rem; margin-top: 2rem; }

.advice-cta {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4.5rem);
  background: #26372b;
  color: #f5f0e8;
}

.advice-cta__inner { max-width: 52rem; margin: 0 auto; text-align: center; }

.advice-cta h2 {
  margin: 0.2rem 0 1rem;
  color: #fff8f0;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
}

.advice-cta p:not(.eyebrow) { max-width: 48rem; margin: 0 auto; font-size: 1.08rem; line-height: 1.7; }
.advice-cta .eyebrow { color: #f5f0e8; }
.advice-cta .button { margin-top: 1.6rem; color: #0f0f0f; }

@media (max-width: 960px) {
  .advice-hero { grid-template-columns: 1fr; align-items: start; }
  .advice-search { max-width: 44rem; }
  .advice-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .advice-hero h1 { font-size: clamp(3.8rem, 21vw, 5.5rem); }
  .advice-search__controls { grid-template-columns: 1fr; }
  .advice-topic-grid { grid-template-columns: 1fr; }
  .advice-topic-card { min-height: 0; }
  .advice-topic-card__link { margin-top: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .advice-topic-card { transition: none; }
  .advice-topic-card:hover,
  .advice-topic-card:focus-visible { transform: none; }
}

/* --- single article ------------------------------------------------------- */

.article {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem);
}

.breadcrumbs {
  margin: 0 0 1.5rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--olive);
}

.article__header {
  max-width: 46rem;
  margin: 0 auto 2rem;
}

.article__header h1 {
  margin: 0.5rem 0 1rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.04;
  color: var(--olive);
}

.article__meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.article__meta strong {
  color: var(--olive);
}

.article__featured {
  max-width: 62rem;
  margin: 0 auto 2.5rem;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article__featured img {
  display: block;
  width: 100%;
  height: auto;
}

/* --- reading column ------------------------------------------------------- */

.article-content {
  max-width: 44rem;
  margin: 0 auto;
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--ink);
}

.article-content > * + * {
  margin-top: 1.15rem;
}

.article-content h2 {
  margin: 2.9rem 0 0.9rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 400;
  line-height: 1.14;
  color: var(--olive);
}

.article-content h3 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--olive);
}

.article-content h4 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--olive);
}

.article-content a {
  color: var(--orange-text);
  text-underline-offset: 3px;
}

.article-content ul,
.article-content ol {
  padding-left: 1.3rem;
}

.article-content li + li {
  margin-top: 0.5rem;
}

.article-content img {
  height: auto;
  border-radius: var(--radius);
}

.article-content blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 4px solid var(--sage);
  font-style: italic;
  color: var(--muted);
}

/* Tables scroll rather than break the reading column on a phone. */
.article-content .table-scroll {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.article-content thead th {
  background: var(--pistachio);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive);
}

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

/* --- callout boxes -------------------------------------------------------- */

.cmq-box {
  margin: 2rem 0;
  padding: 1.5rem 1.6rem;
  background: var(--almond);
  border: 1px solid var(--line);
  border-left: 5px solid var(--sage);
  border-radius: var(--radius);
}

.cmq-box > * + * {
  margin-top: 0.85rem;
}

.cmq-box h2,
.cmq-box h3 {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.42rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--olive);
}

.cmq-box p {
  margin: 0;
}

.cmq-box--short {
  background: var(--champagne);
  border-left-color: var(--orange);
}

.cmq-box--keypoints {
  background: var(--pistachio);
  border-left-color: var(--olive);
}

.cmq-box--sources {
  font-size: 0.92rem;
  color: var(--muted);
}

.cmq-box--readnext {
  background: var(--taupe);
  border-left-color: var(--olive);
}

.cmq-box--readnext a {
  display: block;
  margin-top: 0.5rem;
  font-weight: 800;
}

.cmq-box--cta {
  background: var(--olive);
  border: 0;
  color: var(--almond);
  text-align: left;
}

.cmq-box--cta h2,
.cmq-box--cta h3 {
  color: var(--almond);
}

.cmq-box--cta a {
  display: inline-block;
  margin: 0.75rem 0.6rem 0 0;
  padding: 0.7rem 1.3rem;
  background: var(--orange);
  border-radius: 999px;
  color: var(--button-ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
}

.cmq-box--cta a:hover,
.cmq-box--cta a:focus-visible {
  background: var(--orange-hover);
}

.cmq-box--cta .cmq-cta-secondary {
  padding-right: 0;
  padding-left: 0;
  background: transparent;
  color: var(--almond);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cmq-box--cta .cmq-cta-secondary:hover,
.cmq-box--cta .cmq-cta-secondary:focus-visible {
  background: transparent;
}

.cmq-cta-reassurance {
  font-size: 0.88rem;
  font-weight: 700;
}

.cmq-checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cmq-checks li {
  position: relative;
  padding-left: 1.9rem;
  font-weight: 700;
}

.cmq-checks li + li {
  margin-top: 0.6rem;
}

.cmq-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--orange);
  border-radius: 50%;
  color: var(--accessible-olive);
  font-size: 0.8rem;
  font-weight: 900;
}

.cmq-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cmq-step;
}

.cmq-steps li {
  position: relative;
  padding-left: 2.6rem;
  font-weight: 700;
  counter-increment: cmq-step;
}

.cmq-steps li + li {
  margin-top: 0.9rem;
}

.cmq-steps li::before {
  content: counter(cmq-step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--orange);
  border-radius: 50%;
  color: var(--accessible-olive);
  font-size: 0.86rem;
  font-weight: 900;
}

/* --- FAQ accordions ------------------------------------------------------- */

.article-content details {
  padding: 0.9rem 1.2rem;
  background: var(--almond);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-content details + details {
  margin-top: 0.7rem;
}

.article-content summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--olive);
}

.article-content summary:focus-visible {
  outline: 3px solid var(--accessible-olive);
  outline-offset: 3px;
}

.article-content details[open] summary {
  margin-bottom: 0.7rem;
}

/* --- author box ----------------------------------------------------------- */

.author-box {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  max-width: 44rem;
  margin: 3rem auto 0;
  padding: 1.3rem 1.5rem;
  background: var(--almond);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
}

.author-box img {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 2px solid var(--sage);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.author-box__label {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.author-box__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--olive);
}

.author-box__role {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.author-box--top {
  margin: 0 auto 2.2rem;
}

/* --- article footer CTA --------------------------------------------------- */

.article-cta {
  max-width: 44rem;
  margin: 2rem auto 0;
  padding: 1.8rem;
  background: var(--champagne);
  border-radius: var(--radius);
  text-align: center;
}

.article-cta h2 {
  margin: 0 0 0.6rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--olive);
}

.article-cta p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* --- related posts -------------------------------------------------------- */

.related {
  max-width: 1180px;
  margin: 3.5rem auto 0;
}

.related h2 {
  margin: 0 0 1.2rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--olive);
}

.related .post-grid {
  padding: 0;
}

/* --- article layout with sticky sidebar ------------------------------------ */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem);
  align-items: start;
}

.article-layout .article {
  max-width: none;
  margin: 0;
  padding: 0;
}

.article-sidebar {
  min-width: 0;
  align-self: stretch;
}

.sidebar-sticky {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  overscroll-behavior-y: auto;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--soft-sage) transparent;
}

.sidebar-card {
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-card__label {
  margin: 0 0 0.9rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--orange-text);
}

.sidebar-card__label--light {
  color: var(--almond);
}

.share-links {
  display: flex;
  gap: 0.6rem;
}

.share-links__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  color: var(--accessible-olive);
  transition: opacity 150ms ease, transform 150ms ease;
}

.share-links__item svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.share-links__item:hover,
.share-links__item:focus-visible {
  opacity: 0.9;
  transform: translateY(-1px);
}

.share-links__item:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.share-links__item--facebook {
  color: #fff;
  background: #1877f2;
}

.share-links__item--x {
  color: #fff;
  background: #000;
}

.share-links__item--linkedin {
  color: #fff;
  background: #0a66c2;
}

.sidebar-cta {
  background: var(--orange);
}

.sidebar-cta__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--almond);
  font-weight: 800;
  text-decoration: none;
}

.sidebar-cta__row + .sidebar-cta__row {
  margin-top: 0.7rem;
}

.sidebar-cta__row svg {
  flex: 0 0 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}

.sidebar-cta__row:hover,
.sidebar-cta__row:focus-visible {
  text-decoration: underline;
}

.sidebar-author__row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sidebar-author__row img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.sidebar-author__name {
  margin: 0;
  font-weight: 900;
  color: var(--olive);
}

.sidebar-author__role {
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.sidebar-related__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.sidebar-related__item + .sidebar-related__item {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.sidebar-related__item img {
  flex: 0 0 72px;
  width: 72px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.sidebar-related__item span {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--olive);
}

.sidebar-related__item:hover span,
.sidebar-related__item:focus-visible span {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-sticky {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    scrollbar-gutter: auto;
  }
}

.top-bar {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem clamp(1rem, 4vw, 3rem);
  background: var(--champagne);
}

.top-bar .social-links a {
  background: transparent;
  color: var(--olive);
  width: 1.9rem;
  height: 1.9rem;
}

.top-bar .social-links a:hover,
.top-bar .social-links a:focus-visible {
  color: var(--orange-text);
}

/* --- footer social icons --------------------------------------------------- */

.social-links {
  display: flex;
  gap: 0.7rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--olive);
  color: var(--almond);
  transition: background 150ms ease;
}

.social-links svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--orange);
}

/* --- pagination ----------------------------------------------------------- */

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.pagination .page-numbers {
  padding: 0.55rem 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--olive);
  font-weight: 800;
  text-decoration: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--button-ink);
}

/* --- simple content pages (privacy, cookies, 404) ------------------------- */

.simple-page {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem);
  font-size: 1.04rem;
  line-height: 1.75;
}

.simple-page h1 {
  margin: 0 0 1.2rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.06;
  color: var(--olive);
}

.simple-page h2 {
  margin: 2.2rem 0 0.7rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--olive);
}

.simple-page > * + * {
  margin-top: 1.1rem;
}

/* --- form states ---------------------------------------------------------- */

.form-status {
  margin: 0 0 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
}

.form-status--ok {
  background: var(--pistachio);
  border-left: 5px solid var(--olive);
  color: var(--olive);
}

.form-status--error {
  background: var(--champagne-cream);
  border-left: 5px solid var(--orange);
  color: var(--orange-text);
}

@media (prefers-reduced-motion: reduce) {
  .post-card {
    transition: none;
  }
}

/* Honeypot field: present for bots, invisible and unreachable for people. */
.cmq-hp {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}

/* --- definition and callout cards ----------------------------------------
   cmq-box--box is the general-purpose card used for defined terms and
   at-a-glance summaries inside an article. */

.cmq-box--box {
  background: var(--paper);
  border-left-color: var(--sage);
}

.cmq-box--box > h3 {
  margin: 0 0 0.4rem;
  font-size: 1.06rem;
  font-weight: 900;
  color: var(--olive);
}

.cmq-box--box > ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* --- numbered cards ------------------------------------------------------- */

.cmq-box--numbered {
  position: relative;
  padding-left: 4.6rem;
  background: var(--almond);
  border-left-color: var(--orange);
}

.cmq-box__num {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  color: var(--almond);
  font-size: 0.86rem;
  font-weight: 900;
}

.cmq-box--numbered h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--olive);
}

/* --- statistics band ------------------------------------------------------ */

.cmq-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin: 2rem 0;
}

.cmq-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.4rem 1.5rem;
  background: var(--pistachio);
  border-radius: var(--radius);
  text-align: center;
}

.cmq-stat__figure {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--olive);
}

.cmq-stat__label {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--muted);
}

/* --- article lede and notes ----------------------------------------------- */

.article-content .article-lede {
  font-size: 1.16rem;
  line-height: 1.65;
  color: var(--olive);
}

.article-content .article-note {
  font-size: 0.86rem;
  color: var(--muted);
}


