/* ==========================================================================
   ExtractHelp — Blog: index, article page, cards, drawn covers and the
   article typography. Brand colors only (navy #051C5E, orange #F86219).
   ========================================================================== */

/* Drawn covers ------------------------------------------------------------- */
.pc-cover {
  position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; width: 100%;
  border-radius: inherit; background: linear-gradient(135deg, #051C5E 0%, #123A9E 100%); color: #fff;
}
.pc-cover--v2 { background: linear-gradient(135deg, #051C5E 0%, #0B2A7A 55%, #F86219 140%); }
.pc-cover--v3 { background: radial-gradient(120% 120% at 100% 0%, #1B3FA6 0%, #051C5E 55%, #030F36 100%); }
.pc-cover--img { background: var(--surface-2); }
.pc-cover--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-cover__dots {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1.2px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 20%, transparent 75%);
}
.pc-cover__glow { position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; inset-inline-end: -18%; top: -38%; border-radius: 50%; background: radial-gradient(circle, rgba(248, 98, 25, .55), transparent 65%); transition: transform .6s var(--ease); }
.pc-cover--v3 .pc-cover__glow { inset-inline-end: auto; inset-inline-start: -20%; top: auto; bottom: -45%; }
.pc-cover__tile {
  position: absolute; inset-inline-start: 8%; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 22%; aspect-ratio: 1; border-radius: 24%; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .5s var(--ease);
}
.pc-cover__tile .icon { width: 46%; height: 46%; color: #FFB27F; }
.pc-cover__rows { position: absolute; inset-inline: 38% 8%; top: 50%; transform: translateY(-50%); display: grid; gap: 9%; height: 46%; align-content: center; }
.pc-cover__rows i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, .12)); transform-origin: left center; }
.pc-cover__rows i:nth-child(1) { width: 92%; }
.pc-cover__rows i:nth-child(2) { width: 70%; background: linear-gradient(90deg, #F86219, rgba(248, 98, 25, .25)); }
.pc-cover__rows i:nth-child(3) { width: 84%; }
.pc-cover__rows i:nth-child(4) { width: 56%; }
.pc-cover__label { position: absolute; inset-inline-start: 8%; bottom: 9%; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: .74rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.pc-cover--lg .pc-cover__rows i { height: 16px; border-radius: 9px; }
.pc-cover--lg .pc-cover__label { font-size: .86rem; padding: 6px 14px; }
@media (prefers-reduced-motion: no-preference) {
  .pc-cover__rows i { animation: pc-row 3.6s var(--ease) infinite; }
  .pc-cover__rows i:nth-child(2) { animation-delay: .35s; }
  .pc-cover__rows i:nth-child(3) { animation-delay: .7s; }
  .pc-cover__rows i:nth-child(4) { animation-delay: 1.05s; }
  .post-card:hover .pc-cover__tile { transform: translateY(-50%) rotate(-6deg) scale(1.06); }
  .post-card:hover .pc-cover__glow { transform: scale(1.15) translate(-6%, 6%); }
}
@keyframes pc-row { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.82); opacity: .75; } }
[dir="rtl"] .pc-cover__rows i { transform-origin: right center; }

/* Cards -------------------------------------------------------------------- */
.post-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .76rem; font-weight: 750; }
.post-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.post-card__media { border-radius: 22px 22px 0 0; overflow: hidden; }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; color: var(--muted); font-size: .84rem; }
.post-card__title { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.post-card__title a { color: var(--heading); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.post-card__title a:focus-visible { outline: none; }
.post-card:has(.post-card__title a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; margin-block-start: auto; padding-block-start: 6px; color: var(--accent-text); font-size: .9rem; font-weight: 750; }
.post-card__more .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.post-card:hover .post-card__more .icon { transform: translateX(4px); }
[dir="rtl"] .post-card:hover .post-card__more .icon { transform: translateX(-4px) scaleX(-1); }

.post-card--wide { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.post-card--wide .post-card__media { border-radius: 22px 0 0 22px; }
.post-card--wide .pc-cover { height: 100%; min-height: 320px; aspect-ratio: auto; }
.post-card--wide .post-card__body { justify-content: center; gap: 14px; padding: clamp(24px, 3.5vw, 48px); }
.post-card--wide .post-card__title { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.05rem); line-height: 1.2; }
.post-card--wide .post-card__excerpt { font-size: 1.03rem; -webkit-line-clamp: 4; }
.post-card--wide .post-card__more { margin-block-start: 6px; }
[dir="rtl"] .post-card--wide .post-card__media { border-radius: 0 22px 22px 0; }

/* Index -------------------------------------------------------------------- */
.blog-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-end: clamp(24px, 3vw, 36px); }
.blog-cat {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font-size: .92rem; font-weight: 650; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s;
}
.blog-cat .icon { width: 16px; height: 16px; color: var(--accent); }
.blog-cat span { color: var(--muted); font-size: .8rem; }
.blog-cat:hover { border-color: var(--line-strong); }
.blog-cat.is-active { background: var(--heading); border-color: var(--heading); color: var(--bg); }
.blog-cat.is-active .icon, .blog-cat.is-active span { color: inherit; opacity: .8; }
.blog-rss { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; color: var(--muted); font-size: .88rem; font-weight: 650; text-decoration: none; }
.blog-rss .icon { width: 16px; height: 16px; color: var(--accent); }
.blog-rss:hover { color: var(--heading); }
.blog-featured { margin-block-end: clamp(28px, 4vw, 44px); }
.blog-featured__label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--accent-text); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.blog-featured__label .icon { width: 16px; height: 16px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 22px; }
.blog-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-block-start: 36px; color: var(--muted); font-weight: 650; }
.blog-empty { display: flex; align-items: center; gap: 12px; padding: 28px; border-radius: 20px; background: var(--surface); border: 1px dashed var(--line-strong); color: var(--muted); }
.blog-empty .icon { width: 22px; height: 22px; color: var(--accent); }

/* Article page ------------------------------------------------------------- */
.post-progress { position: fixed; inset-inline: 0; top: 0; z-index: 60; height: 3px; pointer-events: none; }
.post-progress span { display: block; height: 100%; width: 100%; background: var(--grad-accent); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .post-progress span { transform-origin: right center; }

.post-head { position: relative; overflow: hidden; isolation: isolate; background: var(--hero-bg); color: var(--hero-text); }
.post-head__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.post-head__inner { max-width: calc(940px + var(--gutter) * 2); padding-block: clamp(24px, 3.5vw, 44px) clamp(120px, 12vw, 170px); }
.post-head .breadcrumbs ol { color: var(--hero-muted); }
.post-head .breadcrumbs a { color: var(--hero-muted); }
.post-head .breadcrumbs a:hover { color: #fff; }
.post-head .breadcrumbs li + li::before { color: rgba(255, 255, 255, .3); }
.post-head .breadcrumbs [aria-current] { display: inline-block; max-width: min(42ch, 62vw); overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.post-head__cat { display: inline-flex; align-items: center; gap: 8px; margin-block-end: 16px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: .86rem; font-weight: 700; text-decoration: none; }
.post-head__cat .icon { display: grid; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: var(--grad-accent); color: #fff; }
.post-head__cat:hover { border-color: #fff; }
.post-head h1 { margin: 0 0 18px; color: #fff; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.12; max-width: 20em; }
.post-head__lead { margin: 0 0 26px; max-width: 40em; color: var(--hero-muted); font-size: clamp(1.04rem, .98rem + .3vw, 1.18rem); }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.post-author { display: inline-flex; align-items: center; gap: 10px; }
.post-author img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgba(5, 28, 94, .35); }
.post-author span { display: grid; line-height: 1.25; }
.post-author small { color: var(--hero-muted); font-size: .76rem; }
.post-author b { color: #fff; font-size: .95rem; }
.post-head__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--hero-muted); font-size: .9rem; }
.post-head__facts > span { display: inline-flex; align-items: center; gap: 7px; }
.post-head__facts .icon { width: 16px; height: 16px; color: #FFA066; }

.post-cover-wrap { max-width: calc(1080px + var(--gutter) * 2); margin-block-start: calc(clamp(96px, 10vw, 140px) * -1); position: relative; }
.post-cover-wrap .pc-cover { border-radius: 26px; box-shadow: var(--shadow-float); aspect-ratio: 5 / 2; }

.post-layout { display: grid; grid-template-columns: 250px minmax(0, 740px); justify-content: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.post-layout--single { grid-template-columns: minmax(0, 740px); }
.post-aside { position: sticky; top: calc(var(--header-h) + 28px); align-self: start; display: grid; gap: 22px; }
.post-toc { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.post-toc summary { display: flex; align-items: center; gap: 8px; color: var(--heading); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; list-style: none; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary .icon { width: 16px; height: 16px; color: var(--accent); }
.post-toc ol { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.post-toc li { counter-increment: toc; }
.post-toc a { position: relative; display: block; padding: 7px 10px 7px 30px; border-radius: 10px; color: var(--muted); font-size: .88rem; line-height: 1.4; text-decoration: none; transition: background-color .15s, color .15s; }
.post-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; inset-inline-start: 8px; top: 8px; color: var(--line-strong); font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.post-toc a:hover { background: var(--bg-soft); color: var(--heading); }
.post-toc a.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.post-toc a.is-active::before { color: var(--accent); }
[dir="rtl"] .post-toc a { padding: 7px 30px 7px 10px; }

.post-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 34px; padding: 18px 20px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); }
.post-share p { margin: 0; color: var(--heading); font-weight: 750; }
.post-share > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-share--aside { display: grid; gap: 10px; margin: 0; padding: 0; background: none; border: 0; }
.post-share--aside p { color: var(--muted); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.post-share__btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--heading);
  cursor: pointer; transition: transform .15s var(--ease), border-color .15s, color .15s;
}
.post-share__btn .icon { width: 18px; height: 18px; }
.post-share__btn:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-text); }
.post-share__note { color: var(--success); font-size: .86rem; font-weight: 650; }
.post-share__note:empty { display: none; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 40px; padding-block-start: 22px; border-block-start: 1px solid var(--line); }
.post-tags b { color: var(--heading); font-size: .9rem; }
.post-tags ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.post-tags li { padding: 4px 12px; border-radius: 999px; background: var(--navy-soft); color: var(--heading); font-size: .82rem; font-weight: 650; }
.post-back { display: inline-flex; align-items: center; gap: 8px; margin-block-start: 28px; font-weight: 700; text-decoration: none; }
.post-back .icon { width: 16px; height: 16px; }

/* Article typography -------------------------------------------------------- */
.post-body { color: var(--text); font-size: 1.07rem; line-height: 1.78; overflow-wrap: break-word; }
.post-body > * { margin-block: 0 1.15em; }
.post-body > :first-child { margin-block-start: 0; }
.post-body > p:first-child { font-size: 1.16rem; color: var(--heading); }
.post-body h2 { margin-block: 2.1em .7em; font-size: clamp(1.5rem, 1.25rem + .9vw, 1.95rem); line-height: 1.22; scroll-margin-top: calc(var(--header-h) + 24px); }
.post-body h2::before { content: ""; display: block; width: 44px; height: 4px; margin-block-end: 16px; border-radius: 4px; background: var(--grad-accent); }
.post-body h3 { margin-block: 1.7em .55em; font-size: 1.24rem; line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 24px); }
.post-body h4 { margin-block: 1.4em .5em; font-size: 1.06rem; }
.post-body a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body strong { color: var(--heading); }
.post-body ul, .post-body ol { padding-inline-start: 1.3em; }
.post-body li { margin-block: .4em; padding-inline-start: .2em; }
.post-body ul li::marker { color: var(--accent); }
.post-body ol li::marker { color: var(--accent-text); font-weight: 800; }
.post-body blockquote {
  position: relative; margin-inline: 0; padding: 22px 24px 22px 26px; border-radius: 18px; border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent); background: var(--bg-soft); font-size: 1rem;
}
.post-body blockquote > :last-child { margin-block-end: 0; }
.post-body blockquote > * { margin-block: 0 .6em; }
.post-body blockquote ul { margin-block-end: 0; }
.post-body hr { height: 1px; border: 0; background: var(--line); margin-block: 2.2em; }
.post-body code { padding: .12em .4em; border-radius: 6px; background: var(--surface-2); color: var(--heading); font-family: var(--font-mono); font-size: .88em; }
.post-body pre { overflow-x: auto; padding: 18px 20px; border-radius: 16px; background: #030F36; color: #E6EBF8; font-size: .9rem; line-height: 1.6; }
.post-body pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.post-body figure { margin-inline: 0; }
.post-body figure img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.post-body figcaption { margin-block-start: 8px; color: var(--muted); font-size: .88rem; text-align: center; }
.post-body em { font-style: italic; }
.post-body .post-note { padding: 14px 18px; border-radius: 14px; background: var(--navy-soft); color: var(--muted); font-size: .94rem; }
.post-table { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.post-table:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.post-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .93rem; line-height: 1.5; }
.post-table th, .post-table td { padding: 12px 16px; border-block-end: 1px solid var(--line); text-align: start; vertical-align: top; }
.post-table thead th { background: var(--hero-bg); color: #fff; font-size: .8rem; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.post-table tbody th { color: var(--heading); font-weight: 700; }
.post-table tbody tr:last-child > * { border-block-end: 0; }
.post-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-soft) 70%, transparent); }

/* Homepage section ------------------------------------------------------------ */
.home-blog .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .post-layout { grid-template-columns: minmax(0, 740px); }
  .post-aside { position: static; }
  .post-toc { padding: 14px 16px; }
  .post-share--aside { display: none; }
  .home-blog .blog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
}
@media (max-width: 860px) {
  .post-card--wide { grid-template-columns: minmax(0, 1fr); }
  .post-card--wide .post-card__media { border-radius: 22px 22px 0 0; }
  .post-card--wide .pc-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .blog-rss { margin-inline-start: 0; }
}
@media (max-width: 640px) {
  .post-cover-wrap .pc-cover { aspect-ratio: 16 / 10; border-radius: 20px; }
  .post-body { font-size: 1.02rem; }
  .post-head__inner { padding-block-end: 110px; }
  .post-cover-wrap { margin-block-start: -86px; }
}

/* Hero: a floating stack of the latest articles (blog index) ------------------- */
.vz--articles { height: 440px; }
.vz-ar__card { position: absolute; width: 300px; overflow: hidden; border-radius: 18px; background: var(--surface); color: var(--text); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); }
.vz-ar__card .pc-cover { aspect-ratio: 2 / 1; border-radius: 0; }
.vz-ar__card .pc-cover__label { display: none; }
.vz-ar__body { display: grid; justify-items: start; gap: 6px; padding: 12px 14px 14px; }
.vz-ar__body b { display: -webkit-box; overflow: hidden; color: var(--heading); font-size: .86rem; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vz-ar__body small { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .72rem; }
.vz-ar__body small .icon { width: 12px; height: 12px; }
.vz-ar__body .post-chip { padding: 2px 8px; font-size: .66rem; }
.vz-ar__c1 { z-index: 1; top: 8px; inset-inline-start: 0; transform: rotate(-5deg); }
.vz-ar__c2 { z-index: 2; top: 72px; inset-inline-start: 25%; transform: rotate(2deg); }
.vz-ar__c3 { z-index: 3; top: 150px; inset-inline-end: 0; transform: rotate(-1deg); }
.vz--articles .vz-float--a { bottom: 22px; inset-inline-start: 2%; }
.vz--articles .vz-float--b { top: 4px; inset-inline-end: 2%; z-index: 4; }
@media (prefers-reduced-motion: no-preference) {
  :root:not(.motion-paused) .vz-ar__c1 { animation: vz-ar-a 7s var(--ease) infinite; }
  :root:not(.motion-paused) .vz-ar__c2 { animation: vz-ar-b 8s var(--ease) infinite; }
  :root:not(.motion-paused) .vz-ar__c3 { animation: vz-ar-c 9s var(--ease) infinite; }
}
@keyframes vz-ar-a { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }
@keyframes vz-ar-b { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-12px); } }
@keyframes vz-ar-c { 0%, 100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-8px); } }
@media (max-width: 640px) {
  .vz--articles { height: 360px; }
  .vz-ar__card { width: 230px; }
  .vz-ar__c2 { inset-inline-start: 12%; top: 64px; }
  .vz-ar__c3 { top: 130px; }
  .vz--articles .vz-float { display: none; }
}

/* "Related articles" on service pages (only there, at the owner's request) ----------- */
/* Scoped to the section's own grid: the blog index page also has a "page-blog" body class. */
.page-blog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1080px) { .page-blog__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); } }
