/* ==========================================================================
   evortotec.eu — canonical chrome stylesheet
   Self-contained: any page can <link> this and render the site's header,
   footer, and blog components correctly WITHOUT needing /styles.css.
   Design DNA extracted from index.html (dark, amber-accent B2B corporate).
   ========================================================================== */

/* ------------------------------------------------------------------ tokens */
:root {
  /* --- Required cross-pipeline tokens (cookie banner, overlays, etc.) --- */
  --bg: #0e0f14;            /* page background (deep charcoal-navy)          */
  --bg-card: #171923;       /* surface / card — one level above --bg         */
  --bg-elevated: #1f2331;   /* elevated surface (hover / active)             */
  --text: #e9ebf1;          /* primary text on --bg                          */
  --text-muted: #b4bacd;    /* secondary / meta text                         */
  --accent: #f4a100;        /* brand amber (primary CTA)                     */
  --accent-fg: #0a0a0a;     /* readable text ON --accent (accent is bright)  */
  --accent-hover: #ffcd39;  /* brighter gold variant for hover               */
  --border: #2a2e3a;        /* rules / dividers                              */
  --radius: 12px;           /* default border-radius                         */

  /* --- Legacy aliases used by the original site markup (kept for parity) - */
  --panel: #171923;
  --muted: #b4bacd;
  --accent-2: #ffcd39;
  --line: #2a2e3a;

  /* --- Typography scale (mirrors index.html) --- */
  --text-sm: 0.92rem;
  --text-base: 1rem;
  --text-md: clamp(1rem, 1.3vw, 1.15rem);
  --text-lg: clamp(1.02rem, 1.5vw, 1.35rem);
  --heading-xs: clamp(1.05rem, 1.8vw, 1.4rem);
  --heading-sm: clamp(1.3rem, 2.5vw, 1.8rem);
  --heading-md: clamp(1.6rem, 3.5vw, 2.4rem);
  --heading-lg: clamp(2rem, 4.4vw, 3.2rem);
  --heading-xl: clamp(2.2rem, 6vw, 4rem);

  /* --- Spacing rhythm --- */
  --section-pad: 4.5rem;
  --container: 1120px;
}

/* -------------------------------------------------------------- reset/base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(820px, calc(100% - 2rem));
}

/* ===================================================================== HEADER
   The primary nav lives in the burger-driven off-canvas .side-menu (as on
   index.html). Nav rules are scoped to their explicit classes — never bare
   `nav` — so in-article <nav class="toc"> / <nav class="breadcrumbs"> can
   never inherit fixed/overlay positioning.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 20, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
}

.site-header .brand img {
  width: 170px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Utility / CTA button — works as <a> or <button> */
.custom-btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 158px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: var(--accent-fg);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(244, 161, 0, 0.35);
  transition: filter 0.2s ease;
}

.custom-btn-small:hover {
  filter: brightness(1.06);
}

#burger-toggle,
#burger {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

#burger-toggle img,
#burger img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

#burger-toggle.is-open {
  opacity: 0;
  pointer-events: none;
}

/* Off-canvas menu overlay */
.side-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: linear-gradient(129.81deg, #000 11.184%, rgba(0, 0, 0, 0.5) 61.965%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.side-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.side-menu .main-nav.fixed {
  position: fixed;
  top: 17px;
  left: 0;
  width: 100%;
  z-index: 35;
}

.side-menu .main-nav-inner {
  display: flex;
  justify-content: flex-end;
}

.side-menu-panel {
  height: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 6rem 1rem 2rem;
}

.side-menu-nav {
  width: min(360px, 90vw);
}

.side-menu-nav a {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 14px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: 0.3s;
}

.side-menu-nav a:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.side-menu-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-header .nav-wrap {
    gap: 0.35rem;
    min-height: 64px;
  }
  .site-header .brand img {
    width: 100%;
    max-width: min(145px, 100%);
  }
  .header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }
}

/* ===================================================================== FOOTER
   Link columns come from footer.columns (variable count). Brand + address are
   structural and stay hardcoded in the template. Overrides styles.css order.
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 2.8rem;
  background: var(--bg);
}

.site-footer .main-footer {
  display: block;
}

.site-footer .main-footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem 3rem;
  padding-bottom: 1.5rem;
}

.site-footer .footer-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-right: auto;
  max-width: 320px;
}

.site-footer .footer-brand img {
  width: 170px;
  height: auto;
}

.site-footer .footer-tagline {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-footer .footer-col {
  min-width: 150px;
}

.site-footer .footer-col-title {
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.site-footer .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer .footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 160ms ease;
}

.site-footer .footer-col a:hover,
.site-footer .footer-col a:focus-visible {
  color: var(--accent-hover);
}

/* Social icons — separate from the link columns */
.site-footer .footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer .social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer .social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer .social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.site-footer .main-footer-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 1.8rem;
  margin-top: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  gap: 1rem;
}

.site-footer .main-footer-address {
  text-align: right;
  max-width: 72ch;
  justify-self: end;
}

@media (max-width: 760px) {
  .site-footer .main-footer-bottom {
    grid-template-columns: 1fr;
  }
  .site-footer .main-footer-address {
    text-align: left;
    justify-self: start;
  }
}

/* ============================================================= BLOG: ARTICLE */
.article-container {
  width: min(800px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.article-container h1 {
  margin: 0 0 1rem;
  font-size: var(--heading-lg);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}

.article-container .meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  align-items: center;
}

.article-container .featured-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 0 0 2rem;
  display: block;
  border: 1px solid var(--border);
}

/* Reading typography */
.article-container .content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.article-container .content h2 {
  font-size: var(--heading-md);
  line-height: 1.25;
  margin: 2.4rem 0 1rem;
  color: var(--text);
}

.article-container .content h3 {
  font-size: var(--heading-sm);
  line-height: 1.3;
  margin: 2rem 0 0.8rem;
  color: var(--text);
}

.article-container .content h4 {
  font-size: var(--heading-xs);
  line-height: 1.35;
  margin: 1.6rem 0 0.6rem;
  color: var(--text);
}

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

.article-container .content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-container .content a:hover {
  color: var(--accent-hover);
}

.article-container .content ul,
.article-container .content ol {
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.article-container .content li {
  margin-bottom: 0.5rem;
}

.article-container .content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  margin: 1.6rem 0;
  border: 1px solid var(--border);
}

.article-container .content blockquote {
  margin: 1.6rem 0;
  padding: 0.6rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
}

.article-container .content pre {
  background: #0b0c10;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 1.6rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.article-container .content code {
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.article-container .content pre code {
  background: none;
  padding: 0;
}

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

.article-container .content th,
.article-container .content td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.article-container .content th {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

/* --------------------------------------------------- TOC (nav.toc) reset+card
   These <nav> elements sit INSIDE articles. Explicitly neutralise any global
   nav positioning so the TOC never renders as a fixed overlay. */
nav.toc,
.toc {
  position: static;
  z-index: auto;
  width: auto;
  top: auto;
  left: auto;
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin: 0 0 2rem;
}

nav.toc .toc-title,
.toc .toc-title {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

nav.toc ul,
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

nav.toc a,
.toc a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

nav.toc a:hover,
.toc a:hover {
  color: var(--accent);
}

/* --------------------------------------------- breadcrumbs (nav.breadcrumbs) */
nav.breadcrumbs,
.breadcrumbs {
  position: static;
  z-index: auto;
  width: auto;
  top: auto;
  left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

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

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

.breadcrumbs .sep {
  opacity: 0.5;
}

/* ------------------------------------------------------------ tags (pills) */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.6rem 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* --------------------------------------------- share buttons (inline row) */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-btn-x  { background: #000000; }
.share-btn-fb { background: #1877F2; }
.share-btn-li { background: #0A66C2; }
.share-btn-wa { background: #25D366; }
.share-btn-tg { background: #229ED9; }

/* ------------------------------------------- share popover (BBC-style top) */
.share-popover-wrap {
  position: relative;
  display: inline-block;
}

.share-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.share-toggle:hover {
  border-color: var(--accent);
}

.share-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  z-index: 40;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.share-popover[hidden] {
  display: none;
}

.share-pop-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.share-pop-item:hover {
  background: var(--bg-elevated);
}

.share-pop-item svg,
.share-pop-item .share-pop-ico {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #fff;
  fill: #fff;
  background: var(--brand, var(--bg-elevated));
}

.share-pop-x  { --brand: #000000; }
.share-pop-fb { --brand: #1877F2; }
.share-pop-li { --brand: #0A66C2; }
.share-pop-wa { --brand: #25D366; }
.share-pop-tg { --brand: #229ED9; }

/* ------------------------------------------------------- related posts */
.related-posts {
  margin: 3rem 0 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.related-posts h2,
.related-posts h3 {
  font-size: var(--heading-sm);
  margin: 0 0 1.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.related-card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.related-card .related-card-body {
  padding: 16px 18px;
}

.related-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
}

@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================== BLOG LISTING (/blog/) */
.blog-header {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 2.5rem 1.5rem 0;
  text-align: left;
}

.blog-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--text);
}

.blog-header .blog-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Category pill nav */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  padding: 0 1.5rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cat-chip:hover {
  color: var(--text);
  border-color: var(--accent);
}

.cat-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}

@media (max-width: 640px) {
  .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .categories::-webkit-scrollbar {
    display: none;
  }
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Blog list card */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.post-card-image {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--bg-elevated);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

/* Fallback placeholder when a post has no featured image */
.post-card-image-fallback {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 161, 0, 0.28), transparent 42%),
    linear-gradient(135deg, #171923 0%, #1f2331 55%, #12141b 100%);
}

.post-card-image-fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 127, 127, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 127, 127, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}

.post-card-image-fallback .ph-cat {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cat-link {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.cat-link:hover {
  color: var(--accent-hover);
}

.post-card-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text);
}

.post-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.post-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------------- pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 1rem auto 3.5rem;
  padding: 0 1.5rem;
}

/* Defensive: some legacy templates wrap numbers in <ul><li> */
.pagination ul,
.pagination ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents;
}

.pagination li {
  list-style: none;
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pagination a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.pagination .current,
.pagination [aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* --------------------------------------------------------- responsive misc */
@media (max-width: 768px) {
  .article-container {
    padding: 1.5rem 0 3rem;
  }
  .site-footer .main-footer-top {
    gap: 1.6rem 2rem;
  }
}
/* pbn-component-safe */
.share-popover{background:var(--bg-elevated,#1e293b);border:1px solid var(--border,rgba(127,127,127,.25));border-radius:var(--radius,10px);box-shadow:0 12px 32px rgba(0,0,0,.4);}
.share-pop-item{color:var(--text,inherit);}
.footer-social a{color:var(--text-muted,currentColor);}
.footer-social a svg{fill:currentColor;}
