/* Weglob design for integrateurdolibarrerp.com: "document chain" identity on top of Kadence. */
:root {
  --ink: #0B1D33;
  --ink-2: #13294A;
  --paper: #F2F4F7;
  --card: #FFFFFF;
  --line: #DCE2EA;
  --blue: #3466FF;
  --blue-2: #6E93FF;
  --green: #12B76A;
  --amber: #F5A524;
  --text: #1B2A3D;
  --muted: #5B6B80;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 18px;
}

html, body.wg { overflow-x: clip; }
body.wg { background: var(--paper); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.wg #masthead, body.wg .weglob-top-banner, body.wg #colophon, body.wg .site-footer { display: none !important; }
body.wg .site { background: transparent; }
body.wg #inner-wrap { padding-top: 0; }
body.wg .content-area { margin-top: 0; }
body.wg.home .content-container, body.wg.blog .content-container, body.wg.search .content-container, body.wg.archive .content-container { max-width: 1240px; padding: 0 24px; }
body.wg a { text-underline-offset: 3px; }
body.wg :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.wg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; background: var(--blue); color: #fff !important; font: 600 15px/1 var(--body); padding: 13px 20px; border-radius: 999px; text-decoration: none !important; border: 0; cursor: pointer; transition: background .2s, transform .2s; will-change: transform; }
.wg-btn:hover { background: #2453E6; }
.wg-btn--sm { padding: 10px 16px; font-size: 14px; }
.wg-btn--lg { padding: 17px 26px; font-size: 16px; }
.wg-btn--light { background: #fff; color: var(--ink) !important; }
.wg-btn--light:hover { background: #E6ECFF; }
.wg-link { color: inherit; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- Reading progress ---------- */
.wg-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001; pointer-events: none; }
.wg-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); transform: scaleX(0); transform-origin: 0 50%; }
body.wg:not(.single) .wg-progress { display: none; }

/* ---------- Nav ---------- */
.wg-nav { position: fixed; z-index: 1000; top: 14px; left: 50%; transform: translateX(-50%); width: min(1180px, calc(100% - 24px)); display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(11, 29, 51, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .1); color: #fff; transition: transform .35s ease, background .3s; }
.wg-nav.is-hidden { transform: translate(-50%, -140%); }
.wg-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; font: 500 16px/1 var(--display); white-space: nowrap; }
.wg-brand b { font-weight: 800; }
.wg-brand__mark { position: relative; width: 26px; height: 22px; flex: none; }
.wg-brand__mark i { position: absolute; width: 9px; height: 9px; border-radius: 2px; background: var(--blue-2); }
.wg-brand__mark i:nth-child(1) { left: 0; bottom: 0; }
.wg-brand__mark i:nth-child(2) { left: 8.5px; top: 0; background: #fff; }
.wg-brand__mark i:nth-child(3) { right: 0; bottom: 0; background: var(--green); }
.wg-nav__links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.wg-nav__links a, .wg-search-btn { color: rgba(255, 255, 255, .82) !important; text-decoration: none !important; font: 500 15px/1 var(--body); padding: 10px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.wg-nav__links a:hover, .wg-search-btn:hover { background: rgba(255, 255, 255, .1); color: #fff !important; }
.wg-search-btn svg { width: 17px; height: 17px; }

/* ---------- Search dialog ---------- */
.wg-search { position: fixed; inset: 0; z-index: 1100; background: rgba(11, 29, 51, .94); display: grid; place-items: center; padding: 24px; color: #fff; }
.wg-search[hidden] { display: none; }
.wg-search form { width: min(720px, 100%); }
.wg-search label { display: block; font: 700 clamp(26px, 4vw, 44px)/1.1 var(--display); margin-bottom: 22px; letter-spacing: -.02em; }
.wg-search__row { display: flex; gap: 10px; }
.wg-search input { flex: 1; min-width: 0; font: 500 18px var(--body); padding: 16px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
.wg-search input::placeholder { color: rgba(255, 255, 255, .5); }
.wg-search__hint { color: rgba(255, 255, 255, .5); font-size: 14px; margin-top: 14px; }
.wg-search__close { position: absolute; top: 20px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: none; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* ---------- Hero ---------- */
.wg-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); min-height: 100svh; background: var(--ink); color: #fff; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding: 96px max(24px, calc(50vw - 600px)) 64px; overflow: hidden; isolation: isolate; }
.wg-hero__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(110, 147, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(110, 147, 255, .09) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 45%, #000 30%, transparent 75%); }
.wg-hero::after { content: ""; position: absolute; z-index: -1; width: 60vmax; height: 60vmax; right: -18vmax; top: -12vmax; background: radial-gradient(circle, rgba(52, 102, 255, .35), transparent 62%); filter: blur(20px); }
.wg-h1 { margin: 0 0 22px; font: 800 min(7.2vw, 11.5svh, 104px)/.92 var(--display); letter-spacing: -.035em; color: #fff; }
.wg-h1__l { display: block; overflow: hidden; padding-bottom: .06em; }
.wg-h1__l > span { display: inline-block; }
.wg-h1__l:nth-child(2) > span { color: var(--blue-2); }
.wg-h1__sub { display: block; margin-top: 18px; font: 500 min(2.2vw, 3.2svh, 26px)/1.2 var(--display); letter-spacing: -.01em; color: rgba(255, 255, 255, .7); }
.wg-hero__lead { max-width: 52ch; color: rgba(255, 255, 255, .78); font-size: min(18px, 2.4svh); margin: 0 0 28px; }
.wg-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.wg-hero__cta .wg-link { color: #fff; }
.wg-hero__scroll { position: absolute; left: 50%; bottom: 18px; width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; transform: translateX(-50%); }
.wg-hero__scroll span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wgScroll 1.8s infinite; }
@keyframes wgScroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* Document chain visual */
.wg-chain { position: relative; height: min(520px, calc(100svh - 170px)); aspect-ratio: 600 / 520; max-width: 100%; justify-self: end; }
.wg-doc { position: absolute; left: 0; top: 50%; width: 62%; transform: translateY(-50%); background: #fff; color: var(--text); border-radius: 16px; padding: min(22px, 2.6svh) 22px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1); font-size: min(14px, 1.9svh); transform-style: preserve-3d; }
.wg-doc__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wg-doc__type { font-weight: 600; color: var(--muted); font-size: .92em; transition: color .3s; }
.wg-badge { font: 600 12px/1 var(--body); padding: 6px 10px; border-radius: 999px; background: #EEF1F5; color: var(--muted); white-space: nowrap; }
.wg-badge[data-s="1"] { background: #E6ECFF; color: var(--blue); }
.wg-badge[data-s="2"] { background: #FFF4DE; color: #A36A00; }
.wg-badge[data-s="3"] { background: #DDF7EA; color: #0A7A47; }
.wg-doc__ref { font: 500 min(22px, 3svh)/1.2 var(--mono); color: var(--ink); margin: 10px 0 2px; letter-spacing: -.02em; }
.wg-doc__client { color: var(--muted); font-size: .92em; margin-bottom: min(14px, 1.8svh); }
.wg-doc__lines { border-top: 1px solid var(--line); }
.wg-line { display: grid; grid-template-columns: 1fr 26px 70px; gap: 8px; padding: min(9px, 1.2svh) 0; border-bottom: 1px solid var(--line); }
.wg-line span:nth-child(2) { color: var(--muted); text-align: center; }
.wg-line b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.wg-doc__tot { margin: min(12px, 1.6svh) 0 0 auto; width: 70%; }
.wg-doc__tot div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; color: var(--muted); }
.wg-doc__tot b { color: var(--text); font-variant-numeric: tabular-nums; }
.wg-doc__ttc { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 7px !important; font-weight: 700; color: var(--ink) !important; font-size: 1.08em; }
.wg-doc__ttc b { margin-left: auto; }
.wg-doc__ttc small { font-size: .7em; color: var(--muted); align-self: flex-end; }
.wg-steps { list-style: none; margin: min(16px, 2svh) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: s; }
.wg-steps li { margin: 0; font-size: 11.5px; font-weight: 600; color: #98A4B5; padding-top: 10px; position: relative; text-align: left; }
.wg-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 4px; background: #E6EAF0; }
.wg-steps li::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; border-radius: 4px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s ease; }
.wg-steps li.is-on { color: var(--ink); }
.wg-steps li.is-on::after { transform: scaleX(1); }
.wg-steps li:last-child.is-on::after { background: var(--green); }
.wg-stamp { position: absolute; right: 18px; top: 46%; font: 800 26px/1 var(--display); color: var(--green); border: 3px solid var(--green); padding: 6px 14px; border-radius: 10px; transform: rotate(-12deg) scale(1.6); opacity: 0; letter-spacing: .02em; }
.wg-tile { position: absolute; right: 0; width: 26%; min-width: 120px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 14px; color: #fff; backdrop-filter: blur(6px); display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; transform: translateY(-50%); }
.wg-tile .wg-ico { width: 20px; height: 20px; color: var(--blue-2); grid-row: span 2; }
.wg-tile span { font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.wg-tile b { font: 700 20px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.wg-tile small { grid-column: 2; font-size: 11px; color: rgba(255, 255, 255, .5); }
.wg-tile--stock { top: 13.5%; }
.wg-tile--compta { top: 50%; }
.wg-tile--bank { top: 86.5%; }
.wg-tile.is-hit { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18, 183, 106, .18); }
.wg-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wg-wires path { fill: none; stroke: rgba(110, 147, 255, .35); stroke-width: 1.5; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.wg-pkt { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px 3px rgba(18, 183, 106, .7); opacity: 0; }

/* ---------- Themes (horizontal) ---------- */
.wg-themes { width: 100vw; margin-left: calc(50% - 50vw); padding: clamp(64px, 10svh, 110px) 0 clamp(40px, 6svh, 64px); background: var(--paper); overflow: hidden; }
.wg-themes__head, .wg-guides-head { max-width: 1192px; margin: 0 auto; padding: 0 24px; }
.wg-themes__head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: 32px; }
.wg-themes__head p, .wg-guides-head p { max-width: 46ch; color: var(--muted); margin: 0; }
.wg-h2 { font: 800 clamp(34px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; color: var(--ink); margin: 0; }
.wg-themes__track { display: flex; gap: 16px; padding: 0 max(24px, calc(50vw - 596px)); width: max-content; }
.wg-theme { position: relative; flex: none; width: clamp(220px, 22vw, 280px); height: clamp(220px, 34svh, 300px); padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: border-color .25s, transform .25s; }
.wg-theme::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(52, 102, 255, .14), transparent 65%); transition: transform .5s; }
.wg-theme:hover { border-color: var(--blue); transform: translateY(-4px); }
.wg-theme:hover::before { transform: scale(1.6); }
.wg-theme .wg-ico { width: 44px; height: 44px; color: var(--blue); }
.wg-theme__name { font: 700 clamp(22px, 2.2vw, 28px)/1.05 var(--display); letter-spacing: -.02em; }
.wg-theme__n { color: var(--muted); font-size: 15px; }
.wg-theme__n b { font: 800 clamp(34px, 3.4vw, 46px)/1 var(--display); color: var(--ink); display: block; letter-spacing: -.03em; }

/* ---------- Guides grid ---------- */
.wg-guides-head { display: flex; justify-content: space-between; align-items: end; gap: 16px 48px; flex-wrap: wrap; padding: clamp(48px, 8svh, 80px) 0 28px; }
.wg-guides-head--page { padding-top: 130px; display: block; }
.wg-guides-head--page .wg-h2 { font-size: clamp(32px, 4.4vw, 56px); margin: 6px 0 10px; }
.wg-crumb a { color: var(--muted); font-size: 14px; }
body.wg #archive-container { gap: 18px; }
body.wg .loop-entry { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: none; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: border-color .25s, transform .3s cubic-bezier(.2, .8, .2, 1); }
body.wg .loop-entry:hover { border-color: var(--ink); transform: translateY(-4px); }
body.wg .loop-entry .entry-content-wrap { padding: 4px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.wg-card-top { display: flex; align-items: center; gap: 10px; padding: 20px 24px 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.wg-card-top .wg-ico { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: #E9EEFF; color: var(--blue); box-sizing: border-box; }
.wg-card-top__m { margin-left: auto; font-weight: 500; }
body.wg .loop-entry .entry-title { font: 700 21px/1.18 var(--display); letter-spacing: -.015em; margin: 0 0 10px; }
body.wg .loop-entry .entry-title a { color: var(--ink); text-decoration: none; }
body.wg .loop-entry .entry-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body.wg .loop-entry .entry-meta { font-size: 13px; color: var(--muted); margin: 0 0 10px; order: -1; }
body.wg .loop-entry .entry-summary { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
body.wg .loop-entry .entry-summary p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
body.wg .loop-entry .entry-footer { margin-top: auto; padding-top: 16px; }
body.wg .loop-entry .post-more-link { font-weight: 600; color: var(--blue); text-decoration: none; font-size: 15px; }
body.wg .loop-entry .post-more-link svg { transition: transform .25s; }
body.wg .loop-entry:hover .post-more-link svg { transform: translateX(4px); }
/* Featured first card on the home */
@media (min-width: 1025px) {
  body.wg.home:not(.paged) #archive-container > .entry-list-item:first-child { grid-column: span 2; }
  body.wg.home:not(.paged) #archive-container > .entry-list-item:first-child .loop-entry { background: var(--ink); border-color: var(--ink); }
  body.wg.home:not(.paged) #archive-container > .entry-list-item:first-child .entry-title { font-size: 34px; max-width: 22ch; }
  body.wg.home:not(.paged) #archive-container > .entry-list-item:first-child .entry-title a { color: #fff; }
  body.wg.home:not(.paged) #archive-container > .entry-list-item:first-child .entry-summary, body.wg.home:not(.paged) #archive-container > .entry-list-item:first-child .entry-meta, body.wg.home:not(.paged) #archive-container > .entry-list-item:first-child .wg-card-top { color: rgba(255, 255, 255, .7); }
  body.wg.home:not(.paged) #archive-container > .entry-list-item:first-child .wg-card-top .wg-ico { background: rgba(110, 147, 255, .18); color: var(--blue-2); }
  body.wg.home:not(.paged) #archive-container > .entry-list-item:first-child .post-more-link { color: var(--blue-2); }
}
/* Pagination */
body.wg .pagination { margin: 48px 0 24px; }
body.wg .pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
body.wg .pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
body.wg .pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
body.wg .pagination a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Single ---------- */
body.wg.single .content-container { max-width: 1180px; padding: 0 24px; }
body.wg.single #inner-wrap { padding-top: 110px; }
body.wg.single .single-entry { background: transparent; box-shadow: none; }
body.wg.single .single-entry .entry-content-wrap { padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 64px; }
body.wg.single .entry-header { grid-column: 1 / -1; margin: 0 0 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
body.wg.single .kadence-breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
body.wg.single .kadence-breadcrumbs a { color: var(--muted); }
.wg-single-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.wg-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #E9EEFF; color: var(--blue) !important; text-decoration: none !important; font-weight: 600; }
.wg-chip .wg-ico { width: 20px; height: 20px; }
body.wg.single .entry-header .entry-title { font: 800 clamp(34px, 5vw, 62px)/1.02 var(--display); letter-spacing: -.03em; color: var(--ink); max-width: 20ch; margin: 0 0 16px; }
body.wg.single .entry-header .entry-meta { color: var(--muted); font-size: 14px; }
body.wg.single .entry-content { font-size: 18px; line-height: 1.75; color: var(--text); max-width: 70ch; }
body.wg.single .entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
body.wg.single .entry-content h2 { font: 700 clamp(26px, 3vw, 34px)/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); margin: 2.2em 0 .7em; scroll-margin-top: 100px; }
body.wg.single .entry-content h3 { font: 700 22px/1.25 var(--display); color: var(--ink); margin: 1.8em 0 .6em; scroll-margin-top: 100px; }
body.wg.single .entry-content a { color: var(--blue); }
body.wg.single .entry-content ul, body.wg.single .entry-content ol { padding-left: 1.3em; }
body.wg.single .entry-content li { margin-bottom: .4em; }
body.wg.single .entry-content li::marker { color: var(--blue); }
body.wg.single .entry-content blockquote { border-left: 4px solid var(--blue); background: #fff; padding: 18px 24px; border-radius: 0 14px 14px 0; font-style: normal; }
body.wg.single .entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
body.wg.single .entry-content th { background: var(--ink); color: #fff; text-align: left; }
body.wg.single .entry-content th, body.wg.single .entry-content td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
body.wg.single .entry-content pre, body.wg.single .entry-content code { font-family: var(--mono); font-size: .88em; }
body.wg.single .entry-content pre { background: var(--ink); color: #E6ECFF; padding: 18px 20px; border-radius: 12px; overflow-x: auto; }
body.wg.single .entry-content img { border-radius: 14px; }
body.wg.single .entry-footer { grid-column: 1; }
.wg-toc { display: none; }
@media (min-width: 1100px) {
  body.wg.single .single-entry .entry-content-wrap { grid-template-columns: minmax(0, 1fr) 270px; }
  body.wg.single .entry-content { grid-column: 1; grid-row: 3; }
  .wg-toc { display: block; grid-column: 2; grid-row: 3 / span 2; align-self: start; position: sticky; top: 100px; max-height: calc(100svh - 120px); overflow: auto; font-size: 14.5px; }
  .wg-toc__t { font: 700 15px var(--display); color: var(--ink); margin: 0 0 12px; }
  .wg-toc ol { list-style: none; margin: 0 0 24px; padding: 0; border-left: 2px solid var(--line); }
  .wg-toc li { margin: 0; }
  .wg-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .2s, border-color .2s; }
  .wg-toc a:hover { color: var(--ink); }
  .wg-toc a.is-on { color: var(--ink); border-left-color: var(--blue); font-weight: 600; }
  .wg-toc__cta { background: var(--ink); color: #fff; border-radius: 16px; padding: 18px; }
  .wg-toc__cta p { margin: 0 0 12px; font: 600 16px/1.3 var(--display); }
}
.wg-endcta { margin: 48px 0 8px !important; padding: clamp(24px, 4vw, 40px); border-radius: 22px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.wg-endcta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(52, 102, 255, .45), transparent 65%); }
.wg-endcta__k { color: var(--blue-2); font-weight: 600; margin: 0 0 6px !important; }
.wg-endcta__t { font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 20px !important; max-width: 24ch; }
body.wg.single .entry-content .wg-endcta a { color: #fff; }
/* Related posts */
body.wg .entry-related { background: transparent; margin-top: 40px; }
body.wg .entry-related-title { font: 800 clamp(26px, 3vw, 36px)/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
body.wg .post-navigation a { color: var(--ink); }

/* ---------- Footer ---------- */
.wg-foot { background: var(--ink); color: #fff; margin-top: 80px; padding: clamp(64px, 10svh, 110px) max(24px, calc(50vw - 596px)) 0; overflow: hidden; position: relative; }
.wg-foot__cta { max-width: 760px; }
.wg-foot__big { font: 800 clamp(36px, 6vw, 80px)/.98 var(--display); letter-spacing: -.035em; margin: 0 0 20px; }
.wg-foot__cta p:not(.wg-foot__big) { color: rgba(255, 255, 255, .72); max-width: 52ch; margin: 0 0 28px; }
.wg-foot__row { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-top: 64px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .6); }
.wg-foot__row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.wg-foot__row a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.wg-foot__row a:hover { color: #fff; text-decoration: underline; }
.wg-foot__row p { margin: 0; }
.wg-foot__word { font: 800 min(24vw, 360px)/.78 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(110, 147, 255, .35); white-space: nowrap; margin: 10px 0 -0.08em; user-select: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .wg-hero { grid-template-columns: 1fr; padding-top: 104px; align-content: start; gap: 28px; min-height: auto; padding-bottom: 72px; }
  .wg-h1 { font-size: min(13.5vw, 9svh, 96px); }
  .wg-h1__sub { font-size: min(5vw, 24px); }
  .wg-chain { justify-self: center; width: min(560px, 100%); height: auto; }
  .wg-hero__scroll { display: none; }
}
@media (max-width: 760px) {
  body.wg { font-size: 16px; }
  .wg-nav { top: 10px; gap: 8px; padding-left: 12px; }
  .wg-nav__links a { display: none; }
  .wg-search-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wg-search-btn { padding: 10px; }
  .wg-brand { font-size: 14.5px; }
  .wg-hero { padding: 92px 18px 56px; }
  .wg-hero__lead { font-size: 16px; }
  .wg-chain { aspect-ratio: auto; height: auto; display: flex; flex-direction: column; gap: 10px; }
  .wg-doc { position: relative; width: 100%; top: auto; transform: none; font-size: 13.5px; }
  .wg-doc__lines .wg-line:nth-child(3) { display: none; }
  .wg-tile { position: relative; inset: auto; transform: none; width: auto; min-width: 0; padding: 10px 12px; }
  .wg-chain { display: grid; grid-template-columns: repeat(3, 1fr); }
  .wg-doc { grid-column: 1 / -1; }
  .wg-tile { grid-template-columns: 1fr; }
  .wg-tile .wg-ico { display: none; }
  .wg-tile b { font-size: 17px; }
  .wg-wires, .wg-pkt { display: none; }
  .wg-stamp { top: 40%; font-size: 22px; }
  .wg-themes__track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .wg-themes__track::-webkit-scrollbar { display: none; }
  .wg-theme { scroll-snap-align: start; width: 72vw; height: 200px; }
  body.wg .loop-entry .entry-content-wrap { padding: 4px 20px 20px; }
  .wg-card-top { padding: 18px 20px 10px; }
  body.wg.single #inner-wrap { padding-top: 88px; }
  body.wg.single .entry-content { font-size: 17px; }
  .wg-foot__word { font-size: 26vw; }
}

/* ---------- Motion fallbacks ---------- */
@media (prefers-reduced-motion: reduce) {
  .wg-hero__scroll span { animation: none; }
  body.wg .loop-entry, .wg-theme { transition: none; }
}

/* Pre-hide hero until the intro runs (fallback: wg-ready after 3 s) */
.wg-js:not(.wg-ready) .wg-hero__copy, .wg-js:not(.wg-ready) .wg-chain { opacity: 0; }

/* v2 fixes */
body.wg .loop-entry .entry-header { margin: 0 0 8px; }
body.wg .loop-entry .entry-summary { margin: 0; }
body.wg .loop-entry .post-more-link { text-transform: none; letter-spacing: 0; }
@media (min-width: 1001px) {
  .wg-themes { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px 0 48px; }
  .wg-theme { height: clamp(260px, calc(100svh - 360px), 420px); width: clamp(240px, 24vw, 320px); }
  .wg-theme .wg-ico { width: 56px; height: 56px; }
}
.wg-btn--sm { white-space: nowrap; }
@media (min-width: 1001px) { .wg-theme { height: clamp(240px, calc(100svh - 420px), 360px); } }
@media (max-width: 760px) { .wg-hero { padding-top: 100px; } .wg-nav .wg-btn--sm { padding: 10px 14px; font-size: 13.5px; } }
@media (max-width: 380px) { .wg-brand__txt { font-size: 13px; } }
/* Single hero (Kadence title-above layout) */
body.wg.single .entry-hero { background: transparent; padding-top: 96px; }
body.wg.single .entry-hero-container-inner { background: transparent !important; }
body.wg.single .entry-hero .entry-header { text-align: left; max-width: 1132px; margin: 0 auto; padding: 24px 0 28px; border-bottom: 1px solid var(--line); }
body.wg.single .entry-hero .entry-title { margin-left: 0; max-width: 22ch; }
body.wg.single .entry-taxonomies, body.wg.single .entry-tags { display: none; }
body.wg.single #inner-wrap { padding-top: 28px; }
body.wg.single .kadence-breadcrumbs { text-align: left; }
.wg-stamp { right: auto; left: 8%; top: 64%; }
@media (max-width: 760px) { body.wg.single .entry-hero { padding-top: 80px; } body.wg.single #inner-wrap { padding-top: 16px; } .wg-stamp { left: 6%; top: 58%; } }
body.wg.single .entry-hero .site-container, body.wg.single .entry-hero .hero-container { max-width: 1180px; padding-left: 24px; padding-right: 24px; }
body.wg.single .entry-hero .entry-header { max-width: none; align-items: flex-start; justify-content: flex-start; text-align: left; }
body.wg.single .entry-hero .kadence-breadcrumbs, body.wg.single .entry-hero .entry-title { text-align: left; margin-left: 0; margin-right: 0; }
body.wg.search .search-archive-title, body.wg.search .archive-title, body.wg.archive .page-header, body.wg.search .page-header, body.wg.blog.paged .page-header { display: none; }

/* Footer word: fully visible */
.wg-foot__word { font-size: min(18vw, 300px); line-height: 1; text-align: center; margin: 24px 0 0; padding-bottom: .1em; letter-spacing: -.05em; }
@media (max-width: 760px) { .wg-foot__word { font-size: 18vw; } }
/* Search overlay: covers the nav, centered close icon */
.wg-search { background: var(--ink); z-index: 1200; }
body.wg-searching .wg-nav { visibility: hidden; }
.wg-search__close { display: grid; place-items: center; padding: 0; top: 18px; right: 18px; transition: background .2s, border-color .2s; }
.wg-search__close:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.wg-search__close svg { width: 22px; height: 22px; }
body.wg a { text-underline-offset: .28em; text-decoration-skip-ink: auto; }
.wg-search form { max-width: 100%; min-width: 0; }
.wg-search label { font-size: clamp(24px, 6.4vw, 44px); overflow-wrap: anywhere; }
@media (max-width: 560px) { .wg-search__row { flex-direction: column; } .wg-search__row .wg-btn { width: 100%; } }

/* Descender-safe mask (16/11) */
.wg-h1__l { padding: 0 .08em .26em; margin: 0 -.08em -.26em; }

/* Small phones: the CTA always stays inside the pill (16/11) */
@media (max-width: 400px) {
  .wg-nav { gap: 4px; padding-left: 12px; }
  .wg-brand > span:not(.wg-brand__mark) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wg-nav__links { flex: none; }
  .wg-search-btn { padding: 10px !important; }
}
