/* =============================================================
   Content system — Blog + Bilgi Bankası
   Shares the marketing site's language (Poppins, light surfaces,
   technical grid, navy text, brand gradient, border-based cards,
   flat-premium — no heavy shadows). Only content-specific
   primitives live here; header / footer / buttons / section
   heading come from main.css.

   Reused primitives (one definition, both systems):
     .content-hero        content-page header (list + detail pages)
     .content-hero__meta  optional date / reading-time / difficulty line
     .crumbs              breadcrumb
     .content-search      search control (blog = title/excerpt/keywords only)
     .post-card / .post-grid   article card + responsive grid
     .feature-post        featured article
     .pager               pagination
     .content-empty       empty state
     .article / .article-body / .article-toc   reading layout
     .related             related content
     .content-back        back navigation
     .callout             tip / warning / result / info box
     .shot                screenshot / image presentation
     .steps / .step       instructional numbered steps
     .guide-grid / .guide-card   compact guide cards (knowledge)
     .content-cta         end-of-article call to action
   ============================================================= */

:root {
  --reading-width: 768px;                 /* comfortable article measure (720–820) */
}

/* =============================================================
   Content-page hero — restrained, content-oriented (not a homepage hero)
   ============================================================= */
.content-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.25rem);
  background: var(--surface-warm);
  border-bottom: 1px solid var(--border-subtle);
}
.content-hero .section-heading { margin-bottom: 0; }
.content-hero .section-heading__lead { max-width: 44rem; }

/* the knowledge hero carries the primary search directly under the heading */
.content-hero__search {
  max-width: 620px;
  margin: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem) auto 0;
}

/* breadcrumb sitting inside the content hero, centred above the eyebrow */
.content-hero .crumbs {
  margin-bottom: clamp(.9rem, .7rem + .6vw, 1.35rem);
}
.content-hero .crumbs ol { justify-content: center; }

/* optional meta line under the hero heading (publish date / reading time /
   estimated time / difficulty) — centred, muted, matches the family */
.content-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem 1.25rem;
  margin-top: clamp(1.1rem, .9rem + .7vw, 1.6rem);
  font-size: .82rem;
  color: var(--text-muted);
}
.content-hero__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.content-hero__meta svg { width: 14px; height: 14px; }

/* =============================================================
   Search control — used in the toolbar and (larger) in the KB hero
   ============================================================= */
.content-search { position: relative; display: block; }
.content-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  pointer-events: none;
}
.content-search__icon svg { display: block; width: 18px; height: 18px; }
.content-search__input {
  width: 100%;
  padding: .8rem 1rem .8rem 2.75rem;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--brand-primary);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  -webkit-appearance: none;
          appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.content-search__input::placeholder { color: var(--text-muted); }
.content-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.content-search__input:hover { border-color: rgba(20, 43, 81, .3); }
.content-search__input:focus {
  outline: none;
  border-color: var(--brand-accent-secondary);
  box-shadow: 0 0 0 3px rgba(250, 164, 26, .18);
}
/* larger, more prominent variant for the knowledge hero */
.content-search--lg .content-search__input {
  padding-block: 1.05rem;
  padding-left: 3.1rem;
  font-size: 1rem;
  border-radius: 15px;
}
.content-search--lg .content-search__icon { left: 1.15rem; }
.content-search--lg .content-search__icon svg { width: 20px; height: 20px; }

/* =============================================================
   Blog list — search toolbar, featured, grid, pagination
   (the blog is one simple content stream — no categories)
   ============================================================= */
.content-section {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.content-section--warm { background: var(--surface-warm); }
.content-section--tight { padding-block: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }

/* search-only utility row, centred above the list */
.content-toolbar {
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
}

/* section heading — left-aligned variant for list sub-sections */
.section-heading--left {
  margin-inline: 0;
  max-width: none;
  text-align: left;
}
.section-heading--left .section-heading__accent { margin-inline: 0; }
.section-heading--left .section-heading__lead { margin-inline: 0; }

.subhead {
  margin: 0 0 clamp(1.25rem, 1rem + 1vw, 1.75rem);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.subhead__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--brand-primary);
}
.subhead__link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand-primary);
  border-bottom: 1px solid rgba(244, 117, 33, .4);
  transition: color .2s ease;
}
.subhead__link:hover { color: var(--brand-accent-secondary); }

/* ---- one article card ---- */
.post-grid {
  display: grid;
  gap: clamp(1.1rem, .8rem + 1.4vw, 1.75rem);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 991.98px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(20, 43, 81, .09);
  border-radius: 20px;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}
.post-card:hover { transform: translateY(-4px); border-color: rgba(20, 43, 81, .16); }
.post-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-muted);
}
.post-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-card__body {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.15rem, .9rem + .7vw, 1.5rem);
  flex: 1;
}
.post-card__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--brand-primary);
}
.post-card__title a { text-decoration: none; }
.post-card__title a::after {         /* whole card clickable via the title link */
  content: "";
  position: absolute;
  inset: 0;
}
.post-card__title a:focus-visible {
  outline: none;
}
.post-card:has(a:focus-visible) {
  outline: 2px solid rgba(20, 43, 81, .4);
  outline-offset: 3px;
}
.post-card__summary {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-body);
}
.post-card__meta {
  margin-top: auto;                     /* meta + CTA sit as one bottom cluster */
  padding-top: .65rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: var(--text-muted);
}
.post-card__meta span { display: inline-flex; align-items: center; gap: .3rem; }
.post-card__meta svg { width: 13px; height: 13px; }

/* CTA — approved compact primary button, centred at the card foot.
   It is a decorative <span> (aria-hidden); the real link is the card title,
   whose ::after overlay covers the whole card, so clicking the button navigates. */
.post-card__foot {
  margin-top: auto;                     /* keeps the CTA pinned to the card foot */
  padding-top: .85rem;
  display: flex;
  justify-content: center;
}
.post-card__cta {
  padding: .55rem 1.15rem;
  font-size: .8125rem;
  pointer-events: none;                 /* clicks fall through to the card overlay link */
}
.post-card:hover .post-card__cta::after { left: 130%; }   /* drive the shine from the card hover */
@media (prefers-reduced-motion: reduce) {
  .post-card:hover .post-card__cta::after { left: -70%; }
  .feature-post:hover { transform: none; }
}

/* ---- featured article — balanced 55 / 45, clean premium container ---- */
.feature-post {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.25rem, .8rem + 2vw, 2.75rem);
  align-items: center;
  margin-bottom: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  padding: clamp(1.1rem, .7rem + 1.7vw, 1.65rem);
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: clamp(24px, 1.1rem + 1.6vw, 28px);
  position: relative;
  isolation: isolate;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}
.feature-post:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 43, 81, .16);
}
@media (max-width: 767.98px) {
  .feature-post { grid-template-columns: 1fr; }
}
.feature-post__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-muted);
}
.feature-post__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.feature-post__body { display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.feature-post__title a { text-decoration: none; transition: color .2s ease; }
.feature-post__title a:hover { color: var(--brand-accent-secondary); }
.content-featured-label {
  display: block;
  margin: clamp(1.5rem, 1rem + 1.5vw, 2.25rem) 0 .9rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.feature-post__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.3rem, 1.05rem + 1.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.02em;
  color: var(--brand-primary);
}
.feature-post__text {
  font-size: .975rem;
  line-height: 1.65;
  color: var(--text-body);
}
.feature-post__meta {
  display: flex;
  gap: .9rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.feature-post__action { margin-top: .4rem; }

/* hide the editorial featured block while the reader is filtering / searching */
.is-filtering .feature-post,
.is-filtering .content-featured-label { display: none; }

/* =============================================================
   Media fallback — clean, non-breaking (never a broken-image icon,
   never a dashed box). Shown only on a real load failure.
   ============================================================= */
.media-ph {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
  background:
    linear-gradient(180deg, rgba(20, 43, 81, .03), rgba(20, 43, 81, .05)),
    var(--surface-muted);
}
.media-ph::before {                       /* faint technical grid, matches the site */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right,  rgba(20, 43, 81, .05) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(to bottom, rgba(20, 43, 81, .04) 0 1px, transparent 1px 34px);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(120% 120% at 50% 40%, #000, transparent 75%);
}
.media-ph svg { position: relative; width: 26px; height: 26px; opacity: .5; }
.media-ph span {
  position: relative;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.is-empty > img { display: none; }
.is-empty .media-ph { display: flex; }

/* =============================================================
   Pagination — restrained, uses the site's button / border language
   ============================================================= */
.pager {
  margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.is-filtering .pager { display: none; }
.pager__btn {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 .55rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.pager__btn:hover:not(:disabled):not(.is-current) {
  border-color: rgba(20, 43, 81, .28);
  background: #fafbfc;
}
.pager__btn:focus-visible {
  outline: 2px solid rgba(20, 43, 81, .4);
  outline-offset: 2px;
}
.pager__btn:disabled { opacity: .38; cursor: not-allowed; }
.pager__btn.is-current {
  color: #fff;
  border-color: transparent;
  background-image: var(--brand-gradient);
  text-shadow: 0 1px 2px rgba(90, 34, 0, .35);
  cursor: default;
}
.pager__btn svg { width: 15px; height: 15px; }

/* =============================================================
   Empty state — search returns nothing
   ============================================================= */
.content-empty {
  margin-top: 1.5rem;
  padding: clamp(2rem, 1.6rem + 2vw, 3rem);
  text-align: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-warm);
}
.content-empty__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto .9rem;
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--brand-primary);
}
.content-empty__icon svg { width: 22px; height: 22px; }
.content-empty__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: .35rem;
}
.content-empty__text { font-size: .9rem; color: var(--text-body); }

/* =============================================================
   Breadcrumb
   ============================================================= */
.crumbs { font-size: .8125rem; color: var(--text-muted); }
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem .5rem;
}
.crumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.crumbs li + li::before {
  content: "/";
  color: rgba(20, 43, 81, .3);
}
.crumbs a {
  color: var(--text-muted);
  transition: color .2s ease;
}
.crumbs a:hover { color: var(--brand-primary); }
.crumbs [aria-current="page"] { color: var(--brand-primary); font-weight: 500; }

/* =============================================================
   Back navigation
   ============================================================= */
.content-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand-primary);
  transition: color .18s ease;
}
.content-back svg { display: block; width: 16px; height: 16px; transition: transform .18s ease; }
.content-back:hover { color: #0c1c38; }
.content-back:hover svg { transform: translateX(-3px); }
.content-back:focus-visible {
  outline: 2px solid rgba(20, 43, 81, .4);
  outline-offset: 3px;
  border-radius: 4px;
}
.content-back-row { margin: clamp(2rem, 1.6rem + 2vw, 3rem) 0 0; }

/* =============================================================
   Article detail — reading layout with optional sticky TOC
   (the header is the shared .content-hero; this is everything below it)
   ============================================================= */
.article {
  padding-block: clamp(2rem, 1.6rem + 2.4vw, 3.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.article-cover {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 8;
  border-radius: clamp(16px, 1rem + 1vw, 22px);
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
}
.article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.article-shell {
  max-width: 1180px;
  margin: clamp(2rem, 1.6rem + 2vw, 3rem) auto 0;
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 1120px) {
  .article-shell {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
  }
}

.article-body {
  max-width: var(--reading-width);
  margin-inline: auto;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text-body);
}
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 {
  margin-top: 2.1em;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: var(--brand-primary);
  scroll-margin-top: calc(var(--site-header-h) + 1.25rem);
}
.article-body h3 {
  margin-top: 1.8em;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand-primary);
  scroll-margin-top: calc(var(--site-header-h) + 1.25rem);
}
.article-body h2 + p, .article-body h3 + p { margin-top: .7em; }
.article-body strong { font-weight: 600; color: var(--brand-primary); }
.article-body a {
  color: var(--accent-ink);                /* accessible flat fallback */
  background-image: var(--brand-gradient); /* brand gradient where supported */
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  border-bottom: 1px solid rgba(244, 117, 33, .4);
  transition: border-color .2s ease;
}
.article-body a:hover { border-bottom-color: rgba(244, 117, 33, .85); }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: .5em; }
.article-body li::marker { color: var(--brand-accent-secondary); }
.article-body blockquote {
  margin-inline: 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid transparent;
  border-image: var(--brand-gradient) 1;
  background: var(--surface-warm);
  border-radius: 0 12px 12px 0;
  color: var(--brand-primary);
  font-size: 1.05rem;
}
.article-body figure { margin-inline: 0; }
.article-body figcaption {
  margin-top: .55rem;
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin-block: 2em;
}

/* ---- table of contents ---- */
.article-toc {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--surface-warm);
  overflow: hidden;
}
@media (min-width: 1120px) {
  .article-toc {
    position: sticky;
    top: calc(var(--site-header-h) + 1.5rem);
  }
}
.article-toc > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .85rem 1.1rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-primary);
  cursor: pointer;
  list-style: none;
}
.article-toc > summary::-webkit-details-marker { display: none; }
.article-toc__chev { transition: transform .2s ease; }
.article-toc[open] .article-toc__chev { transform: rotate(180deg); }
.article-toc__list {
  list-style: none;
  margin: 0;
  padding: .35rem .6rem .7rem;
  border-top: 1px solid var(--border-subtle);
}
.article-toc__list a {
  display: block;
  padding: .45rem .6rem;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--text-body);
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
.article-toc__list a:hover { color: var(--brand-primary); }   /* white surface — no fill on hover */
.article-toc__list a.is-active {
  color: var(--brand-primary);
  font-weight: 600;
  border-image: var(--brand-gradient) 1;   /* thin brand-gradient left accent, not flat orange, no fill */
}
@media (min-width: 1120px) {
  .article-toc > summary { pointer-events: none; }
  .article-toc__chev { display: none; }
  .article-toc[open] .article-toc__list,
  .article-toc .article-toc__list { display: block; }
}

/* =============================================================
   Callouts — tip / warning / result / info box
   ============================================================= */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid;
  border-radius: 14px;
}
.article-body .callout { margin-top: 1.6em; }
.callout__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
}
.callout__icon svg { width: 17px; height: 17px; }
.callout__title {
  margin-bottom: .2rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand-primary);
}
.callout__body { font-size: .95rem; line-height: 1.62; color: var(--text-body); }
.callout__body > * + * { margin-top: .5em; }

.callout--tip { background: rgba(250, 164, 26, .07); border-color: rgba(250, 164, 26, .3); }
.callout--tip .callout__icon { background-image: var(--brand-gradient); color: #fff; }

.callout--warning { background: #fdf6ef; border-color: rgba(221, 100, 18, .32); }
.callout--warning .callout__icon { background: rgba(221, 100, 18, .13); color: #c2531b; }

.callout--success { background: #f1f8f3; border-color: rgba(31, 122, 77, .28); }
.callout--success .callout__icon { background: rgba(31, 122, 77, .13); color: #1f7a4d; }

.callout--info { background: var(--surface-warm); border-color: var(--border-subtle); }
.callout--info .callout__icon { background: var(--surface-muted); color: var(--brand-primary); }

/* =============================================================
   Screenshot / image presentation — clean light frame, graceful fallback
   ============================================================= */
.shot { margin-block: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.article-body .shot { margin-top: 1.6em; }
.shot__frame {
  display: block;
  position: relative;
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 16 / 9;
}
.shot__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot__cap {
  margin-top: .55rem;
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
}

/* =============================================================
   Instructional steps — numbered, alternating number tiles
   (same gradient / navy alternation the homepage process uses)
   ============================================================= */
.steps {
  max-width: var(--reading-width);
  margin: clamp(1.5rem, 1.1rem + 2vw, 2.25rem) auto 0;
  display: grid;
  gap: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
}
.step {
  position: relative;
  padding-left: 3.5rem;
  scroll-margin-top: calc(var(--site-header-h) + 1.25rem);
}
.step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 13px;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.step:nth-child(odd) .step__num {
  background-image: var(--brand-gradient);
  color: #fff;
  text-shadow: 0 1px 2px rgba(90, 34, 0, .35);
}
.step:nth-child(even) .step__num {
  background: var(--surface-muted);
  color: var(--brand-primary);
  border: 1px solid var(--border-subtle);
}
.article-body .step__title,
.step__title {
  margin: 0 0 .5rem;                      /* overrides .article-body h2 top margin */
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--brand-primary);
  padding-top: .15rem;
  scroll-margin-top: calc(var(--site-header-h) + 1.25rem);
}
.step__body { font-size: 1.0125rem; line-height: 1.72; color: var(--text-body); }
.step__body > * + * { margin-top: .9em; }
.step__body ul, .step__body ol { padding-left: 1.3em; }
.step__body li + li { margin-top: .4em; }
.step__body li::marker { color: var(--brand-accent-secondary); }
@media (max-width: 479.98px) {
  .step { padding-left: 0; padding-top: 3.25rem; }
  .step__num { width: 2.3rem; height: 2.3rem; }
}

/* prerequisites / expected-result light list */
.spec-list {
  max-width: var(--reading-width);
  margin: 1.25rem auto 0;
  display: grid;
  gap: .55rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface-warm);
  list-style: none;
}
.spec-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem;
  font-size: .95rem;
  color: var(--text-body);
}
.spec-list svg { width: 16px; height: 16px; color: var(--brand-accent-secondary); margin-top: .2rem; }

/* =============================================================
   End-of-article CTA — light, echoes the homepage CTA panel
   ============================================================= */
.content-cta {
  --cc-radius: clamp(18px, 1rem + 1vw, 24px);
  position: relative;
  isolation: isolate;
  max-width: 960px;
  margin: clamp(2.5rem, 2rem + 2.4vw, 3.75rem) auto 0;
  padding: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  border: 1px solid rgba(20, 43, 81, .1);
  border-radius: var(--cc-radius);
  background-image:
    radial-gradient(95% 130% at 6% 0%, rgba(250, 164, 26, .08) 0%, rgba(250, 164, 26, 0) 45%),
    linear-gradient(180deg, #fff 55%, var(--surface-warm) 100%);
  text-align: center;
}
.content-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--cc-radius);
  right: var(--cc-radius);
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--brand-gradient);
}
.content-cta__eyebrow {
  display: block;
  margin-bottom: .5rem;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.content-cta__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--brand-primary);
}
.content-cta__text {
  max-width: 40rem;
  margin: .6rem auto 0;
  font-size: .975rem;
  line-height: 1.62;
  color: var(--text-body);
}
.content-cta__action { margin-top: 1.25rem; }

/* WhatsApp support button — the project's secondary button with a green glyph,
   never a louder standalone green pill */
.btn-wa__icon {
  display: inline-flex;
  color: #25d366;
}
.btn-wa__icon svg { display: block; width: 18px; height: 18px; }

/* =============================================================
   Related content
   ============================================================= */
.related {
  max-width: 1180px;
  margin: clamp(2.5rem, 2rem + 3vw, 4rem) auto 0;
}
.related__grid {
  display: grid;
  gap: clamp(1.1rem, .8rem + 1.4vw, 1.75rem);
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 991.98px) { .related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .related__grid { grid-template-columns: 1fr; } }

/* =============================================================
   Knowledge base — categories, guide list, recent
   ============================================================= */
.kb-cats {
  display: grid;
  gap: clamp(.85rem, .6rem + 1vw, 1.25rem);
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 991.98px) { .kb-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479.98px) { .kb-cats { grid-template-columns: 1fr; } }

.kb-cat {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.1rem, .9rem + .7vw, 1.45rem);
  background: #fff;
  border: 1px solid rgba(20, 43, 81, .09);
  border-radius: 18px;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease;
}
.kb-cat:hover { transform: translateY(-4px); border-color: rgba(20, 43, 81, .16); }
.kb-cat:focus-visible { outline: 2px solid rgba(20, 43, 81, .4); outline-offset: 3px; }
.kb-cat__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.kb-cat__icon svg { width: 20px; height: 20px; }
.kb-cat:nth-child(odd) .kb-cat__icon { background-image: var(--brand-gradient); color: #fff; }
.kb-cat:nth-child(even) .kb-cat__icon { background: var(--surface-muted); color: var(--brand-primary); }
.kb-cat__title {
  font-family: "Poppins", system-ui, sans-serif;
  font-size: .98rem;
  font-weight: 600;
  color: var(--brand-primary);
}
.kb-cat__count { font-size: .76rem; color: var(--text-muted); }
.kb-cat__desc { font-size: .84rem; line-height: 1.55; color: var(--text-body); }

/* ---- guides — compact premium 2-column card grid ---- */
.guide-grid {
  display: grid;
  gap: clamp(.75rem, .5rem + .8vw, 1.1rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 767.98px) { .guide-grid { grid-template-columns: 1fr; } }

.guide-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .85rem;
  align-items: start;
  padding: clamp(.9rem, .75rem + .5vw, 1.15rem);
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 17px;
  text-decoration: none;
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), border-color .28s ease, background .28s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 43, 81, .18);
  background: linear-gradient(135deg, rgba(250, 164, 26, .035), #fff 35%);
}
.guide-card:focus-visible { outline: 2px solid rgba(20, 43, 81, .4); outline-offset: 3px; }
.guide-card__icon {
  margin-top: .1rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.guide-card__icon svg { width: 18px; height: 18px; }
.guide-card:nth-child(odd) .guide-card__icon { background-image: var(--brand-gradient); color: #fff; }
.guide-card:nth-child(even) .guide-card__icon { background: var(--surface-muted); color: var(--brand-primary); }
.guide-card__body { min-width: 0; display: flex; flex-direction: column; gap: .28rem; }
.guide-card__title {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: .925rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--brand-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card__arrow {
  margin-top: .15rem;
  color: var(--text-muted);
  transition: transform .2s ease, color .2s ease;
}
.guide-card__arrow svg { width: 17px; height: 17px; display: block; }
.guide-card:hover .guide-card__arrow { transform: translateX(3px); color: var(--brand-accent-secondary); }
.guide-card__desc {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card__cat {
  margin-top: .15rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
}
.guide-card__cat::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-image: var(--brand-gradient);
}

/* active-filter indicator above the guide list */
.filter-note {
  display: none;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: var(--text-body);
}
.is-filtering .filter-note { display: flex; }
.filter-note__clear {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .7rem;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-primary);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
}
.filter-note__clear:hover { border-color: rgba(20, 43, 81, .28); }
.filter-note__clear:focus-visible { outline: 2px solid rgba(20, 43, 81, .4); outline-offset: 2px; }

/* ---- recent guides — clean two-column list ---- */
.kb-recent {
  display: grid;
  gap: 0 clamp(1.5rem, 1rem + 3vw, 3.5rem);
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 700px) { .kb-recent { grid-template-columns: 1fr; } }
.kb-recent li {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .8rem .1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.kb-recent__date { flex: none; font-size: .76rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.kb-recent a {
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brand-primary);
  transition: color .2s ease;
}
.kb-recent a:hover { color: var(--brand-accent-secondary); }

/* =============================================================
   Help CTA (knowledge detail) reuses .content-cta
   ============================================================= */

/* =============================================================
   Category chips (blog + KB listing) + server pagination
   ============================================================= */
.content-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .55rem;
  margin: 1.25rem 0 1.6rem;
}
.content-cat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .44rem .9rem;
  border: 1px solid var(--border-strong, #d4d8e0);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-primary);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.content-cat span {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted, #6b7280);
}
.content-cat:hover { border-color: rgba(20, 43, 81, .3); }
.content-cat.is-active {
  background-image: linear-gradient(135deg, #F47521 0%, #FAA41A 100%);
  border-color: transparent;
  color: #fff;
}
.content-cat.is-active span { color: rgba(255, 255, 255, .85); }

.content-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin-top: clamp(2rem, 1.6rem + 1.6vw, 3rem);
}
.content-pagination a,
.content-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 .75rem;
  border: 1px solid var(--border-strong, #d4d8e0);
  border-radius: 10px;
  background: #fff;
  color: var(--brand-primary);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.content-pagination a:hover { border-color: rgba(20, 43, 81, .3); transform: translateY(-1px); }
.content-pagination .is-active {
  background-image: linear-gradient(135deg, #F47521 0%, #FAA41A 100%);
  border-color: transparent;
  color: #fff;
}
@media (max-width: 575.98px) {
  .content-pagination a,
  .content-pagination span { min-width: 38px; min-height: 40px; }
}

/* =============================================================
   Article detail (DB-backed) — auto TOC + single-column fallback
   ============================================================= */
/* an article with no generated TOC keeps the same centred reading measure
   as the frozen prototype instead of dropping into the 250px TOC column */
.article-shell--solo { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1120px) {
  .article-shell--solo { grid-template-columns: minmax(0, 1fr); }
}
/* related-guides + back-row that follow a solo (TOC-less) article keep the
   same centred reading measure as the body above them */
.article:has(.article-shell--solo) > .container > .subhead,
.article:has(.article-shell--solo) > .container > .guide-grid,
.article:has(.article-shell--solo) > .container > .content-back-row {
  max-width: var(--reading-width);
  margin-inline: auto;
}

.article-toc__chev svg { display: block; width: 16px; height: 16px; }

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .post-card:hover,
  .feature-post:hover,
  .kb-cat:hover,
  .guide-card:hover { transform: none; }
  .content-back:hover svg,
  .guide-card:hover .guide-card__arrow { transform: none; }
  .content-pagination a:hover { transform: none; }
}
