/* ============================================================
   WAGate.app — blog (cards, cover art, /blog/, /blog/<slug>)

   Mobile-first like wg.css, whose primitives (.wg scope, buttons,
   eyebrows, .wg-pageband) it builds on. Post covers are generated,
   icon-led art per category — the site uses no stock photography.
   ============================================================ */

/* ---- Cover art -------------------------------------------------- */
.wgb-cover {
  position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
  width: 100%; height: 190px; flex: 0 0 auto;
  --cv-bg: linear-gradient(135deg, #EEF8EE, #CFEACB); --cv-fg: #2F8F49; --cv-ring: rgba(47, 143, 73, .18); --cv-tile: rgba(255, 255, 255, .75);
  background: var(--cv-bg);
}
.wgb-cover--guides   { --cv-bg: linear-gradient(135deg, #EEF8EE, #CFEACB); --cv-fg: #2F8F49; --cv-ring: rgba(47, 143, 73, .18); --cv-tile: rgba(255, 255, 255, .75); }
.wgb-cover--product  { --cv-bg: linear-gradient(135deg, #202328, #2E3B31); --cv-fg: #73CF73; --cv-ring: rgba(115, 207, 115, .2); --cv-tile: rgba(255, 255, 255, .08); }
.wgb-cover--ai       { --cv-bg: linear-gradient(135deg, #16241A, #24462A); --cv-fg: #A6E3A6; --cv-ring: rgba(166, 227, 166, .16); --cv-tile: rgba(255, 255, 255, .07); }
.wgb-cover--mkt      { --cv-bg: linear-gradient(135deg, #3A693A, #2F5B33); --cv-fg: #FFFFFF; --cv-ring: rgba(255, 255, 255, .16); --cv-tile: rgba(255, 255, 255, .12); }
.wgb-cover--commerce { --cv-bg: linear-gradient(135deg, #F6F8F5, #E2E9E0); --cv-fg: #3A693A; --cv-ring: rgba(58, 105, 58, .14); --cv-tile: #FFFFFF; }
.wgb-cover--api      { --cv-bg: linear-gradient(135deg, #D9F2D6, #9ED69A); --cv-fg: #2F5B33; --cv-ring: rgba(47, 91, 51, .16); --cv-tile: rgba(255, 255, 255, .6); }
.wgb-cover-ring, .wgb-cover-disc { position: absolute; border-radius: 50%; pointer-events: none; }
.wgb-cover-ring { border: 1.5px solid var(--cv-ring); }
.wgb-cover-ring.a { width: 140%; aspect-ratio: 1; inset-inline-end: -45%; top: 30%; }
.wgb-cover-ring.b { width: 90%; aspect-ratio: 1; inset-inline-end: -12%; top: 45%; }
.wgb-cover-disc { width: 55%; aspect-ratio: 1; inset-inline-start: -14%; top: -40%; background: var(--cv-ring); }
.wgb-cover-tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 86px; height: 86px; border-radius: 26px; background: var(--cv-tile); color: var(--cv-fg);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .45);
}
.wgb-cover-cat {
  position: absolute; inset-inline-start: 16px; top: 16px;
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px;
  background: #fff; color: var(--wg-green-text);
  font-family: var(--wg-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
[dir="rtl"] .wgb-cover-cat { letter-spacing: 0; }
.wgb-cover--lg { height: 210px; }
.wgb-cover--lg .wgb-cover-tile { width: 110px; height: 110px; border-radius: 32px; }
.wgb-cover--hero { height: 210px; border-radius: 18px; }
.wgb-cover--hero .wgb-cover-tile { width: 110px; height: 110px; border-radius: 32px; }
.wgb-cover--thumb { width: 84px; height: 72px; border-radius: 14px; }
.wgb-cover--thumb .wgb-cover-tile { width: 40px; height: 40px; border-radius: 12px; box-shadow: none; }

/* ---- Card ------------------------------------------------------- */
.wgb-card {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  border-radius: 22px; background: #fff; color: var(--wg-ink);
  box-shadow: 0 24px 60px -30px rgba(32, 35, 40, .28), 0 2px 8px rgba(32, 35, 40, .05);
  transition: transform .25s, box-shadow .25s;
}
.wgb-card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(32, 35, 40, .35), 0 2px 8px rgba(32, 35, 40, .05); }
.wgb-card .wgb-cover { height: 170px; }
.wgb-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; padding: 20px 20px 22px; }
.wgb-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  font-family: var(--wg-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .03em; color: var(--wg-body);
}
[dir="rtl"] .wgb-meta { letter-spacing: 0; }
.wgb-card-t { font-family: var(--wg-display); font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--wg-ink); }
.wgb-card-d { font-size: 15px; line-height: 1.6; color: var(--wg-body); }
.wgb-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px;
  font-family: var(--wg-display); font-weight: 600; font-size: 15px; color: var(--wg-green-text);
}
.wgb-more svg { width: 16px; height: 16px; }
@media (min-width: 601px) {
  .wgb-card .wgb-cover { height: 210px; }
  .wgb-card-body { padding: 24px 26px 26px; }
  .wgb-card-t { font-size: 20px; }
}

/* ---- Blog index ------------------------------------------------- */
.wgb-main { background: var(--wg-surface); padding: 28px 20px 56px; }
.wgb-main-in { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.wgb-toolbar { display: flex; flex-direction: column-reverse; gap: 16px; }
.wgb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wgb-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--wg-line); color: var(--wg-nav);
  font-family: var(--wg-display); font-weight: 500; font-size: 14px; white-space: nowrap;
}
.wgb-chip:hover { border-color: var(--wg-green-text); color: var(--wg-green-text); }
.wgb-chip[aria-current] {
  background: linear-gradient(90deg, var(--wg-brand-aa), var(--wg-brand-aa-dark)); border-color: var(--wg-brand-aa-dark); color: #fff;
}
.wgb-chip small { font-family: var(--wg-mono); font-size: 11px; opacity: .75; }
.wgb-search {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 8px 0 18px;
  border-radius: 999px; background: #fff; border: 1px solid var(--wg-line); color: var(--wg-body);
}
.wgb-search:focus-within { border-color: var(--wg-green-text); }
.wgb-search svg { width: 18px; height: 18px; }
.wgb-search input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0; border: 0; outline: none; background: transparent;
  font-family: var(--wg-text); font-size: 16px; color: var(--wg-ink);
}
.wgb-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.wgb-search button {
  display: none; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--wg-tint); color: var(--wg-green-text); font-family: var(--wg-display); font-weight: 600; font-size: 14px;
}
.wgb-search:focus-within button { display: inline-flex; align-items: center; }

.wgb-featured {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; color: var(--wg-ink);
  box-shadow: 0 24px 60px -30px rgba(32, 35, 40, .28), 0 2px 8px rgba(32, 35, 40, .05);
}
.wgb-featured .wgb-cover { height: 200px; }
.wgb-featured-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px 24px; }
.wgb-featured-pill {
  display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px;
  background: linear-gradient(90deg, var(--wg-brand-aa), var(--wg-brand-aa-dark)); color: #fff;
  font-family: var(--wg-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
[dir="rtl"] .wgb-featured-pill { letter-spacing: 0; }
.wgb-featured-t { font-family: var(--wg-display); font-weight: 700; font-size: 23px; line-height: 1.25; letter-spacing: -.015em; }
.wgb-featured-d { font-size: 15px; line-height: 1.6; color: var(--wg-body); }
.wgb-author { display: flex; align-items: center; gap: 12px; }
.wgb-author-av {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(90deg, var(--wg-brand-aa), var(--wg-brand-aa-dark)); color: #fff;
}
.wgb-author-av svg { width: 19px; height: 19px; }
.wgb-author b { display: block; font-family: var(--wg-display); font-weight: 600; font-size: 15px; color: var(--wg-ink); }
.wgb-author small { font-size: 13px; color: var(--wg-body); }

.wgb-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.wgb-empty {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 20px; text-align: center;
  border-radius: 22px; background: #fff; border: 1px dashed var(--wg-line-2); color: var(--wg-body);
}
.wgb-empty b { font-family: var(--wg-display); font-size: 18px; color: var(--wg-ink); }

.wgb-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.wgb-pager a, .wgb-pager span {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--wg-display); font-weight: 600; font-size: 15px;
}
.wgb-pager a { background: #fff; border: 1px solid var(--wg-line); color: var(--wg-nav); }
.wgb-pager a:hover { border-color: var(--wg-green-text); color: var(--wg-green-text); }
.wgb-pager [aria-current] { background: linear-gradient(90deg, var(--wg-brand-aa), var(--wg-brand-aa-dark)); color: #fff; }
.wgb-pager .arrow { border: 0; background: transparent; }
.wgb-pager svg { width: 18px; height: 18px; }
[dir="rtl"] .wgb-pager svg { transform: scaleX(-1); }

@media (min-width: 601px) {
  .wgb-main { padding: 56px 32px 88px; }
  .wgb-main-in { gap: 32px; }
  .wgb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .wgb-featured .wgb-cover { height: 280px; }
  .wgb-featured-body { padding: 32px; gap: 16px; }
  .wgb-featured-t { font-size: 28px; }
  .wgb-featured-d { font-size: 16.5px; line-height: 1.7; }
}
@media (min-width: 1024px) {
  .wgb-main { padding: 90px 40px 110px; }
  .wgb-main-in { gap: 40px; }
  .wgb-toolbar { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .wgb-search { width: 300px; flex: 0 0 auto; min-height: 48px; }
  .wgb-search input { height: 46px; font-size: 15px; }
  .wgb-chip { min-height: 42px; }
  .wgb-featured { flex-direction: row; border-radius: 26px; }
  .wgb-featured .wgb-cover { width: 52%; height: auto; min-height: 400px; }
  .wgb-featured .wgb-cover-tile { width: 150px; height: 150px; border-radius: 44px; }
  .wgb-featured .wgb-cover-tile svg { width: 64px; height: 64px; }
  .wgb-featured-body { justify-content: center; gap: 18px; padding: 48px 52px; }
  .wgb-featured-t { font-size: 34px; line-height: 1.2; }
  .wgb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
}

/* ---- Article ---------------------------------------------------- */
.wgb-pill-dark {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  background: rgba(115, 207, 115, .18); color: #A6E3A6;
  font-family: var(--wg-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.wgb-pill-dark:hover { color: #fff; }
[dir="rtl"] .wgb-pill-dark { letter-spacing: 0; }
.wg-pageband .wgb-post-h1 { font-size: clamp(28px, 7.6vw, 46px); line-height: 1.18; max-width: 980px; }
.wgb-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 14px; color: var(--wg-on-dark); }
.wgb-byline b { font-family: var(--wg-display); font-weight: 600; color: #fff; }
.wgb-byline .wgb-author-av { width: 36px; height: 36px; }
.wgb-byline .wgb-read { display: inline-flex; align-items: center; gap: 6px; }
.wgb-byline svg { width: 15px; height: 15px; }
@media (max-width: 600px) { .wgb-byline > span[aria-hidden] { display: none; } }

.wgb-article-wrap { background: #fff; padding: 28px 20px 56px; }
.wgb-article-in { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.wgb-article { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.wgb-dek { font-family: var(--wg-display); font-weight: 400; font-size: 19px; line-height: 1.55; color: var(--wg-ink); }
.wgb-body { display: flex; flex-direction: column; gap: 22px; }
.wgb-body p { font-size: 17px; line-height: 1.75; color: var(--wg-nav); }
.wgb-body a { color: var(--wg-green-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wgb-body a:hover { color: var(--wg-brand-dark); }
.wgb-body b { color: var(--wg-ink); }
.wgb-body h2 {
  margin-top: 10px; font-family: var(--wg-display); font-weight: 700; font-size: 24px; line-height: 1.25; letter-spacing: -.015em; color: var(--wg-ink);
}
.wgb-quote { display: flex; flex-direction: column; gap: 14px; margin: 6px 0; padding: 24px 22px; border-radius: 22px; background: var(--wg-tint); color: var(--wg-green); }
.wgb-quote svg { width: 34px; height: 34px; }
[dir="rtl"] .wgb-quote svg { transform: scaleX(-1); }
.wgb-quote blockquote { font-family: var(--wg-display); font-weight: 500; font-size: 19px; line-height: 1.5; color: var(--wg-ink); }
.wgb-list { display: flex; flex-direction: column; gap: 12px; }
.wgb-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 17px; line-height: 1.65; color: var(--wg-nav); }
.wgb-list .wg-cround { width: 26px; height: 26px; margin-top: 1px; }
.wgb-list .wg-cround svg { width: 14px; height: 14px; }
.wgb-steps { display: flex; flex-direction: column; gap: 12px; }
.wgb-steps li {
  display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--wg-line);
  font-size: 16px; line-height: 1.55; color: var(--wg-ink);
}
.wgb-step-n {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(90deg, var(--wg-brand-aa), var(--wg-brand-aa-dark)); color: #fff;
  font-family: var(--wg-display); font-weight: 700; font-size: 15px;
}

.wgb-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--wg-line); }
.wgb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wgb-tag {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 8px; background: #F1F3EF; color: var(--wg-nav);
  font-family: var(--wg-mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
[dir="rtl"] .wgb-tag { letter-spacing: 0; }
.wgb-share { display: flex; align-items: center; gap: 10px; }
.wgb-share-t { margin-inline-end: 4px; font-family: var(--wg-display); font-weight: 600; font-size: 14px; color: var(--wg-ink); }
.wgb-share a, .wgb-share button {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--wg-line); background: #fff; color: var(--wg-nav); font-family: var(--wg-display); font-weight: 700; font-size: 15px;
}
.wgb-share a:hover, .wgb-share button:hover { border-color: var(--wg-green-text); color: var(--wg-green-text); }
.wgb-share svg { width: 18px; height: 18px; }
.wgb-share .wa { color: var(--wg-green); }
.wgb-share button.done { background: var(--wg-tint); border-color: #BFDDBF; color: var(--wg-green-text); }

.wgb-authorbox { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; border-radius: 22px; background: var(--wg-surface); }
.wgb-authorbox .wgb-author-av { width: 60px; height: 60px; }
.wgb-authorbox .wgb-author-av svg { width: 30px; height: 30px; }
.wgb-authorbox-t { display: flex; flex-direction: column; gap: 6px; }
.wgb-authorbox small {
  font-family: var(--wg-mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--wg-green-text);
}
[dir="rtl"] .wgb-authorbox small { letter-spacing: 0; }
.wgb-authorbox b { font-family: var(--wg-display); font-weight: 600; font-size: 19px; color: var(--wg-ink); }
.wgb-authorbox p { font-size: 15px; line-height: 1.6; color: var(--wg-body); }

.wgb-cta {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 30px 24px; border-radius: 26px; background: linear-gradient(135deg, #1F3A24 0%, #2F5B33 60%, #3A693A 100%); color: #fff;
}
.wgb-cta::before, .wgb-cta::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.wgb-cta::before { width: 280px; height: 280px; inset-inline-end: -80px; top: -110px; border: 1.5px solid rgba(255, 255, 255, .12); }
.wgb-cta::after { width: 200px; height: 200px; inset-inline-end: 40px; bottom: -120px; background: rgba(115, 207, 115, .12); }
.wgb-cta-t { position: relative; display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.wgb-cta h2 { font-family: var(--wg-display); font-weight: 700; font-size: 24px; line-height: 1.25; color: #fff; }
.wgb-cta p { font-size: 16px; line-height: 1.6; color: var(--wg-on-dark); }
.wgb-cta .wg-btn { position: relative; width: 100%; }
.wgb-cta :focus-visible { outline-color: #fff; }

.wgb-related-t { margin-top: 12px; font-family: var(--wg-display); font-weight: 700; font-size: 24px; letter-spacing: -.015em; color: var(--wg-ink); }
.wgb-related { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

/* Sidebar */
.wgb-aside { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.wgb-w-t {
  margin-bottom: 14px; font-family: var(--wg-mono); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wg-ink);
}
[dir="rtl"] .wgb-w-t { letter-spacing: 0; }
.wgb-promo {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 28px; border-radius: 22px; background: var(--wg-tint);
}
.wgb-promo::before { content: ""; position: absolute; inset-inline-end: -60px; top: -70px; width: 200px; height: 200px; border-radius: 50%; border: 1.5px solid rgba(47, 143, 73, .18); }
.wgb-promo h3 { position: relative; font-family: var(--wg-display); font-weight: 600; font-size: 20px; color: var(--wg-ink); }
.wgb-promo p { position: relative; font-size: 14.5px; line-height: 1.6; color: var(--wg-body); }
.wgb-promo .wg-btn { min-height: 46px; padding: 10px 22px; font-size: 15px; }
.wgb-cats { display: flex; flex-direction: column; }
.wgb-cats a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px;
  border-bottom: 1px solid var(--wg-line); font-size: 15.5px; color: var(--wg-nav);
}
.wgb-cats a:hover { color: var(--wg-green-text); }
.wgb-cats a span:last-child { display: inline-flex; align-items: center; gap: 8px; font-family: var(--wg-mono); font-size: 12px; color: var(--wg-body); }
.wgb-cats svg { width: 16px; height: 16px; }
[dir="rtl"] .wgb-cats svg { transform: scaleX(-1); }
.wgb-recent { display: flex; flex-direction: column; gap: 16px; }
.wgb-recent a { display: flex; align-items: center; gap: 14px; }
.wgb-recent-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wgb-recent-t b { font-family: var(--wg-display); font-weight: 500; font-size: 15px; line-height: 1.4; color: var(--wg-ink); }
.wgb-recent a:hover b { color: var(--wg-green-text); }
.wgb-recent-t .wgb-meta { font-size: 11px; }
.wgb-news { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; border-radius: 22px; background: var(--wg-surface); border: 1px solid var(--wg-line); }
.wgb-news h3 { font-family: var(--wg-display); font-weight: 600; font-size: 20px; color: var(--wg-ink); }
.wgb-news p { font-size: 14.5px; line-height: 1.6; color: var(--wg-body); }
.wgb-news .wgb-search { padding: 0 18px; }
.wgb-aside .wgb-search { width: 100%; }
.wgb-news .wg-btn { width: 100%; min-height: 50px; }

@media (min-width: 601px) {
  .wgb-article-wrap { padding: 56px 32px 88px; }
  .wgb-dek { font-size: 21px; }
  .wgb-body p, .wgb-list li { font-size: 18px; line-height: 1.8; }
  .wgb-body h2 { font-size: 28px; margin-top: 14px; }
  .wgb-quote { padding: 30px 36px; }
  .wgb-quote blockquote { font-size: 22px; }
  .wgb-steps li { font-size: 17px; }
  .wgb-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .wgb-authorbox { flex-direction: row; align-items: center; gap: 20px; padding: 28px 30px; }
  .wgb-cta { flex-direction: row; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 44px; }
  .wgb-cta .wg-btn { width: auto; flex: 0 0 auto; }
  .wgb-cta h2 { font-size: 27px; }
  .wgb-related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .wgb-related-t { font-size: 28px; margin-top: 16px; }
  .wgb-cover--hero { height: 340px; border-radius: 24px; }
  .wgb-cover--hero .wgb-cover-tile { width: 160px; height: 160px; border-radius: 46px; }
  .wgb-cover--hero .wgb-cover-tile svg { width: 72px; height: 72px; }
}
@media (min-width: 1024px) {
  .wgb-article-wrap { padding: 90px 40px 110px; }
  .wgb-article-in { flex-direction: row; align-items: flex-start; gap: 80px; }
  .wgb-article { flex: 1 1 760px; gap: 24px; }
  .wgb-aside { flex: 0 0 360px; gap: 40px; position: sticky; top: calc(var(--wg-head-h) + 24px); }
  .wgb-cover--hero { height: 400px; }
  .wgb-dek { font-size: 22px; }
}
@media (max-width: 1023px) {
  /* Phones/tablets: the sidebar follows the article; search + recent posts would only repeat the band. */
  .wgb-aside .wgb-search, .wgb-aside .wgb-recent-w, .wgb-aside .wgb-promo, .wgb-aside .wgb-tags-w { display: none; }
  .wgb-cats { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .wgb-cats a {
    min-height: 40px; padding: 0 16px; border: 1px solid var(--wg-line); border-radius: 999px;
    font-family: var(--wg-display); font-weight: 500; font-size: 14px;
  }
  .wgb-cats a span:last-child { display: none; }
}
