/*
 * Blog v18: the blog listing (posts page, template "home": synced pattern v18-blog, content/design-port/sections/
 * pg-blog.html) and the blog post (template "single", content/design-port/templates/single-v18.html). Ported from
 * the design's styles/xp.css and styles/bp.css (Claude Design "Blog.html" / "Blog Post.html"), re-targeted to the core
 * blocks (query loops, post title / featured image / time to read, search, categories). Builds on the tc2 rules of
 * tc-v18-port.css (wrapper .dgn-v18-tc): hero, breadcrumb, h1, section headers, section padding.
 */

/* the design's tokens (styles/ds colors_and_type.css), light and dark */
:is(.dgn-v18-xp, .dgn-v18-bpx) { --xp-hl: #E6E7E1; --xp-card: #fff; --xp-soft: #F2F1EC; --xp-ink: #07080A; --xp-mut: #6B7184; --xp-tx2: #4A5163; --xp-hf: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif; --xp-body: "Inter", ui-sans-serif, system-ui, sans-serif; --xp-blue: #2051F9; }
html[data-theme="dark"] :is(.dgn-v18-xp, .dgn-v18-bpx) { --xp-hl: #23272F; --xp-card: #11141B; --xp-soft: #1B1F2A; --xp-ink: #F4F6F8; --xp-mut: #8E94A3; --xp-tx2: #B4BAC6; }
:is(.dgn-v18-xp, .dgn-v18-bpx) a { text-decoration: none; }

/* shared: "Reading time - 7 mins" line, clock icon before it */
:is(.dgn-v18-xp, .dgn-v18-bpx) .mt { display: flex; align-items: center; gap: 4px; margin: 0; font: 400 13px/1 var(--xp-body); color: var(--xp-mut); }
:is(.dgn-v18-xp, .dgn-v18-bpx) .mt::before { content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px; background: currentColor; -webkit-mask: var(--xp-clock) center / contain no-repeat; mask: var(--xp-clock) center / contain no-repeat; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .mt > * { margin: 0 !important; font: inherit !important; color: inherit !important; }
:is(.dgn-v18-xp, .dgn-v18-bpx) { --xp-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); --xp-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E"); --xp-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }

/* post cards: the whole card is the link (title link stretched over the card) */
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-post, .xp-bv) { position: relative; }
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-post, .xp-bv) .xp-t a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-post, .xp-bv) .xp-t a { color: inherit; }

/* hero: text left, latest article card right */
.dgn-v18-xp > section.tc2-hero .tc2-hero-g:not(#_a) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 590px); gap: 72px; align-items: center; }
.dgn-v18-xp .xp-bv-q, .dgn-v18-xp .xp-bv-l { margin: 0; padding: 0; list-style: none; }
.dgn-v18-xp .xp-bv { display: grid; border: 1px solid var(--xp-hl); border-radius: 24px; overflow: hidden; background: var(--xp-card); box-shadow: 0 40px 80px -48px rgba(16, 24, 60, .35); }
.dgn-v18-xp .xp-bv .im { margin: 0; aspect-ratio: 1920 / 1008 !important; height: auto !important; background: var(--xp-soft); overflow: hidden; }
.dgn-v18-xp .xp-bv .im img { width: 100%; height: 100% !important; object-fit: contain !important; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.dgn-v18-xp .xp-bv:hover .im img { transform: scale(1.02); }
.dgn-v18-xp .xp-bv .tx { display: grid; gap: 12px; padding: 22px 24px 26px; }
.dgn-v18-xp .xp-bv .tx > * { margin: 0; }
.dgn-v18-xp .xp-bv .xp-t:not(#_a) { margin: 0; font: 600 22px/1.25 var(--xp-hf) !important; letter-spacing: -.02em !important; color: var(--xp-ink); }
.dgn-v18-xp .xp-tag:not(#_a) { justify-self: start; margin: 0; padding: 6px 10px; border-radius: 999px; background: var(--xp-blue); color: #fff; font: 600 11px/1 var(--xp-body); letter-spacing: .08em; text-transform: uppercase; }

/* search: a pill with the magnifier inside (the design filters as you type; here it searches the articles) */
.dgn-v18-xp .xp-search:not(#_a) { max-width: 220px; margin: 28px 0 0; }
.dgn-v18-xp .xp-search .wp-block-search__inside-wrapper { position: relative; display: flex; align-items: center; padding: 0 16px 0 42px; border: 1px solid var(--xp-hl); border-radius: 999px; background: var(--xp-card); }
.dgn-v18-xp .xp-search .wp-block-search__inside-wrapper::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--xp-mut); -webkit-mask: var(--xp-search) center / contain no-repeat; mask: var(--xp-search) center / contain no-repeat; }
.dgn-v18-xp .xp-search .wp-block-search__inside-wrapper:focus-within { border-color: #0B0D12; }
html[data-theme="dark"] .dgn-v18-xp .xp-search .wp-block-search__inside-wrapper:focus-within { border-color: #7C9BFF; }
.dgn-v18-xp .xp-search input.wp-block-search__input { flex: 1; min-width: 0; height: auto; padding: 14px 0; border: 0; border-radius: 0; background: none; font: 400 15px/1 var(--xp-body); color: var(--xp-ink); outline: none; box-shadow: none; }
.dgn-v18-xp .xp-search input.wp-block-search__input::placeholder { color: var(--xp-mut); opacity: 1; }

/* article grid */
.dgn-v18-xp > section.xp-posts-s .tc2-sh:not(#_a) { margin-bottom: 60px; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-q, :is(.dgn-v18-xp, .dgn-v18-bpx) .xp-q > * { margin-top: 0; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-posts:not(#_a) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-posts > li { margin: 0; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post { display: flex; flex-direction: column; gap: 14px; height: 100%; box-sizing: border-box; padding: 12px 12px 22px; border: 1px solid var(--xp-hl); border-radius: 22px; background: var(--xp-card); transition: border-color .3s, box-shadow .3s; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post:hover { border-color: #0B0D12; box-shadow: 0 24px 48px -32px rgba(16, 24, 60, .35); }
html[data-theme="dark"] :is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post:hover { border-color: #7C9BFF; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post > * { margin: 0 !important; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post .im { aspect-ratio: 1920 / 1008; border-radius: 14px; overflow: hidden; background: var(--xp-soft); }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post .im img { width: 100%; height: 100% !important; object-fit: contain; object-position: center; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post:hover .im img { transform: scale(1.02); }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post :is(.mt, .xp-t, .xp-go) { margin: 0 10px !important; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post .xp-t:not(#_a) { font: 600 19px/1.35 var(--xp-hf) !important; letter-spacing: -.015em !important; color: var(--xp-ink); text-wrap: pretty; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-go:not(#_a) { display: inline-flex; align-items: center; gap: 6px; margin-top: auto !important; font: 600 13px/1 var(--xp-body); color: var(--xp-ink); }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-go::after { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--xp-arrow) center / contain no-repeat; mask: var(--xp-arrow) center / contain no-repeat; transition: transform .35s; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-post:hover .xp-go::after { transform: rotate(45deg); }
.dgn-v18-xp .xp-empty { font: 400 16px/1.5 var(--xp-body); color: var(--xp-mut); }

/* "Load older articles": the v18 pill button */
.dgn-v18-xp .xp-more:not(#_a) { display: flex; justify-content: center; gap: 12px; margin: 40px 0 0; }
.dgn-v18-xp .xp-more a { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 6px 0 22px; border-radius: 999px; background: var(--xp-blue); color: #fff; font: 600 15px/1 var(--xp-hf); letter-spacing: -.01em; box-shadow: 0 10px 24px -12px rgba(32, 81, 249, .8); transition: background .3s; }
.dgn-v18-xp .xp-more a::after { content: ""; width: 36px; height: 36px; border-radius: 50%; background: #fff var(--xp-arrow-b) center / 16px no-repeat; transition: transform .35s; }
.dgn-v18-xp .xp-more a:hover { background: #1A43D6; }
.dgn-v18-xp .xp-more a:hover::after { transform: rotate(45deg); }
.dgn-v18-xp { --xp-arrow-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232051F9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3C/svg%3E"); }

/* topics: the categories as pills */
.dgn-v18-xp > section.xp-topics-s .tc2-sh:not(#_a) { margin-bottom: 56px; }
.dgn-v18-xp ul.xp-cats:not(#_a) { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dgn-v18-xp .xp-cats li { margin: 0; }
.dgn-v18-xp .xp-cats a { display: block; padding: 10px 16px; border: 1px solid var(--xp-hl); border-radius: 999px; font: 500 14px/1 var(--xp-body); color: var(--xp-ink); transition: background .25s, color .25s, border-color .25s; }
.dgn-v18-xp .xp-cats a:hover { background: #0B0D12; border-color: #0B0D12; color: #fff; }
html[data-theme="dark"] .dgn-v18-xp .xp-cats a:hover { background: var(--xp-blue); border-color: var(--xp-blue); }

@media (max-width: 1000px) {
	.dgn-v18-xp > section.tc2-hero .tc2-hero-g:not(#_a) { grid-template-columns: minmax(0, 1fr); gap: 48px; }
	:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-posts:not(#_a) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-posts:not(#_a) { grid-template-columns: minmax(0, 1fr); }
	.dgn-v18-xp .xp-search:not(#_a) { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
	:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-post, .xp-bv) .im img, :is(.dgn-v18-xp, .dgn-v18-bpx) .xp-go::after { transition: none; }
}

/* ---- Blog post (template "single", .dgn-v18-bpx): the design's styles/bp.css and the xp-lg-hero / xp-meta / xp-toc
   rules of styles/xp.css */
.dgn-v18-bpx { --bp-in: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect x='2' y='9' width='4' height='12'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E"); --bp-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4l16 16M20 4L4 20'/%3E%3C/svg%3E"); --bp-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); --bp-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E"); --bp-cal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.dgn-v18-bpx .bp-prog { position: fixed; left: 0; right: 0; top: 0; z-index: 200; height: 3px; pointer-events: none; }
.dgn-v18-bpx .bp-prog i { display: block; height: 100%; background: var(--xp-blue); transform-origin: left; transform: scaleX(var(--bp-p, 0)); }
.dgn-v18-bpx > section.tc2-hero.bp-hero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f) { min-height: 0 !important; justify-content: flex-start !important; padding: 40px 0 48px !important; }
.dgn-v18-bpx .bp-hl { max-width: 920px; }
.dgn-v18-bpx .bp-bc { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 0 22px; font: 500 14px/1.4 var(--xp-body); color: var(--xp-mut); }
.dgn-v18-bpx .bp-bc p { margin: 0; }
.dgn-v18-bpx .bp-bc a { color: var(--xp-mut); }
.dgn-v18-bpx .bp-bc a:hover { color: var(--xp-ink); }
.dgn-v18-bpx .bp-bc span { margin: 0 10px; color: var(--xp-hl); }
.dgn-v18-bpx .bp-bc .bp-cat, .dgn-v18-bpx .bp-bc .bp-cat a { margin: 0; font-weight: 600; color: var(--xp-ink); pointer-events: none; }
.dgn-v18-bpx .bp-hl .bp-h1:not(#_a):not(#_b) { margin: 0 0 20px; font-size: clamp(34px, 3.8vw, 58px) !important; line-height: 1.06 !important; text-wrap: balance; }
.dgn-v18-bpx .xp-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; font: 500 14px/1 var(--xp-body); color: var(--xp-mut); }
.dgn-v18-bpx .xp-meta > * { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: inherit; color: inherit; }
.dgn-v18-bpx .xp-meta > *::before { content: ""; width: 15px; height: 15px; background: currentColor; -webkit-mask: var(--bp-user) center / contain no-repeat; mask: var(--bp-user) center / contain no-repeat; }
.dgn-v18-bpx .xp-meta > .xp-m-dt::before { -webkit-mask-image: var(--bp-cal); mask-image: var(--bp-cal); }
.dgn-v18-bpx .xp-meta > .xp-m-rd::before { -webkit-mask-image: var(--xp-clock); mask-image: var(--xp-clock); }
.dgn-v18-bpx .bp-cover { margin: 40px 0 0; aspect-ratio: 1920 / 1008; border-radius: 24px; overflow: hidden; background: var(--xp-soft); border: 1px solid var(--xp-hl); }
.dgn-v18-bpx .bp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dgn-v18-bpx .bp-g { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.dgn-v18-bpx .bp-side { position: sticky; top: calc(var(--hd, 76px) + 32px); display: grid; gap: 28px; }
.dgn-v18-bpx .xp-toc { display: grid; gap: 2px; }
.dgn-v18-bpx .xp-toc[hidden] { display: none; }
.dgn-v18-bpx .xp-toc .tc2-ey { margin-bottom: 14px; }
.dgn-v18-bpx .xp-toc a { padding: 9px 0 9px 14px; border-left: 2px solid var(--xp-hl); font: 500 14px/1.35 var(--xp-body); color: var(--xp-mut); transition: color .25s, border-color .25s; }
.dgn-v18-bpx .xp-toc a:hover { color: var(--xp-ink); }
.dgn-v18-bpx .xp-toc a.on { color: var(--xp-ink); border-left-color: var(--xp-blue); }
.dgn-v18-bpx .bp-share { display: flex; align-items: center; gap: 8px; padding-top: 20px; border-top: 1px solid var(--xp-hl); }
.dgn-v18-bpx .bp-share span { margin-right: 6px; font: 600 12px/1 var(--xp-body); letter-spacing: .12em; text-transform: uppercase; color: var(--xp-ink); }
.dgn-v18-bpx .bp-share :is(a, button) { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--xp-hl); border-radius: 50%; background: var(--xp-card); color: var(--xp-ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.dgn-v18-bpx .bp-share :is(a, button)::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--bp-in) center / contain no-repeat; mask: var(--bp-in) center / contain no-repeat; }
.dgn-v18-bpx .bp-share .bp-sh-x::before { -webkit-mask-image: var(--bp-x); mask-image: var(--bp-x); }
.dgn-v18-bpx .bp-share .bp-sh-cp::before { -webkit-mask-image: var(--bp-link); mask-image: var(--bp-link); }
.dgn-v18-bpx .bp-share :is(a, button):hover, .dgn-v18-bpx .bp-share button.ok { background: #0B0D12; border-color: #0B0D12; color: #fff; }
html[data-theme="dark"] .dgn-v18-bpx .bp-share :is(a, button):hover, html[data-theme="dark"] .dgn-v18-bpx .bp-share button.ok { background: var(--xp-blue); border-color: var(--xp-blue); }
.dgn-v18-bpx .bp-doc { max-width: 760px; min-width: 0; }
.dgn-v18-bpx .bp-tldr { display: grid; gap: 14px; margin-bottom: 40px; padding: 28px 30px; border-radius: 20px; background: var(--xp-soft); }
.dgn-v18-bpx .bp-tldr .tc2-ey { margin: 0; }
.dgn-v18-bpx .bp-tldr p:not(.tc2-ey) { margin: 0; font: 400 17px/1.7 var(--xp-body); color: var(--xp-ink); text-wrap: pretty; }
.dgn-v18-bpx .bp-prose :is(p, li) { font: 400 17px/1.75 var(--xp-body); color: var(--xp-tx2); text-wrap: pretty; }
.dgn-v18-bpx .bp-prose > p { margin: 0 0 18px; }
.dgn-v18-bpx .bp-prose :is(b, strong) { color: var(--xp-ink); font-weight: 600; }
.dgn-v18-bpx .bp-prose > h2 { margin: 56px 0 18px; padding-top: 32px; border-top: 1px solid var(--xp-hl); font: 600 clamp(26px, 2.4vw, 34px)/1.15 var(--xp-hf); letter-spacing: -.03em; color: var(--xp-ink); scroll-margin-top: calc(var(--hd, 76px) + 24px); text-wrap: balance; }
.dgn-v18-bpx .bp-prose > h2:first-child { margin-top: 0; }
.dgn-v18-bpx .bp-prose > h3 { margin: 32px 0 12px; font: 600 21px/1.3 var(--xp-hf); letter-spacing: -.02em; color: var(--xp-ink); }
.dgn-v18-bpx .bp-prose > :is(ul, ol) { margin: 0 0 22px; padding-left: 22px; display: grid; gap: 8px; }
.dgn-v18-bpx .bp-prose li::marker { color: var(--xp-blue); font-weight: 600; }
.dgn-v18-bpx .bp-prose a { color: var(--xp-blue); text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="dark"] .dgn-v18-bpx .bp-prose a { color: #7C9BFF; }
.dgn-v18-bpx .bp-prose > :is(figure, .wp-block-image) { margin: 8px 0 28px; border-radius: 20px; overflow: hidden; }
.dgn-v18-bpx .bp-prose img { display: block; max-width: 100% !important; height: auto !important; }
.dgn-v18-bpx .bp-prose :is(figure, a, table, pre, iframe) { max-width: 100%; }
.dgn-v18-bpx .bp-prose :is(table, pre) { display: block; overflow-x: auto; }
.dgn-v18-bpx .xp-all { margin: 0; }
.dgn-v18-bpx .xp-all a { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--xp-ink); color: var(--xp-card); font: 600 15px/1 var(--xp-body); transition: background .25s; }
.dgn-v18-bpx .xp-all a:hover { background: var(--xp-blue); color: #fff; }
@media (max-width: 1000px) {
	.dgn-v18-bpx .bp-g { grid-template-columns: minmax(0, 1fr); }
	.dgn-v18-bpx .bp-side { position: relative; top: 0; }
	.dgn-v18-bpx .bp-side .xp-toc { display: none; }
}

/* the design sizes win over the sitewide paragraph size (16px): "Latest" tag 11px, "Reading time - 7 mins" one 13px line */
:is(.dgn-v18-xp, .dgn-v18-bpx) .xp-tag:not(#_a):not(#_b) { font-size: 11px !important; line-height: 1 !important; }
:is(.dgn-v18-xp, .dgn-v18-bpx) .mt:not(#_a) { gap: 6px; font: 500 13px/1 var(--xp-body); color: var(--xp-mut); }
:is(.dgn-v18-xp, .dgn-v18-bpx) .mt > *:not(#_a):not(#_b) { margin: 0; font: inherit !important; color: inherit; }

/* ---- Blogs bug sheet (tester's expected results) ---- */

/* the design's pill button (styles dg-pc): "Load older articles" and "View all articles" are blue; on hover the button
   lifts 2px, a dark fill grows from the arrow chip and the arrow turns from up-right to right (BUG_001, 013, 015) */
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-more, .xp-all) a:not(#_a) { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 14px; min-height: 48px; height: auto; padding: 5px 5px 5px 22px; border: 0; border-radius: 999px; background: var(--xp-blue); color: #fff; font: 600 15px/1 var(--xp-hf); letter-spacing: -.005em; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 6px 18px -8px rgba(32, 81, 249, .6); transition: color .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s cubic-bezier(.2, .7, .2, 1), transform .4s cubic-bezier(.2, .7, .2, 1); }
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-more, .xp-all) a:not(#_a)::before { content: ""; position: absolute; z-index: -1; right: 4px; top: 50%; width: 36px; height: 36px; border-radius: 50%; background: #07080A; transform: translateY(-50%) scale(0); transition: transform .55s cubic-bezier(.7, 0, .2, 1); }
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-more, .xp-all) a:not(#_a)::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; -webkit-mask: none; mask: none; transform: rotate(-45deg); transition: transform .45s cubic-bezier(.7, 0, .2, 1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232051F9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); background-position: center; background-size: 16px; background-repeat: no-repeat; }
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-more, .xp-all) a:not(#_a):is(:hover, :focus-visible) { background: var(--xp-blue); color: #fff; transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 14px 32px -12px rgba(32, 81, 249, .7); }
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-more, .xp-all) a:not(#_a):is(:hover, :focus-visible)::before { transform: translateY(-50%) scale(9); }
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-more, .xp-all) a:not(#_a):is(:hover, :focus-visible)::after { transform: rotate(0); }
:is(.dgn-v18-xp, .dgn-v18-bpx) :is(.xp-more, .xp-all) a:not(#_a):active { transform: translateY(0) scale(.98); }

/* the list loads older articles onto the same page (assets/home-v18.js): no "Newer articles" link (BUG_002, 003) */
.dgn-v18-xp .xp-more .wp-block-query-pagination-previous { display: none !important; }
.dgn-v18-xp .xp-more a.is-loading { pointer-events: none; opacity: .7; }

/* category chips: one smooth change of fill, border and text together (BUG_004) */
.dgn-v18-xp .xp-cats a:not(#_a) { transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.dgn-v18-xp .xp-cats a:not(#_a):hover, .dgn-v18-xp .xp-cats a:not(#_a):focus-visible { background-color: #0B0D12; border-color: #0B0D12; color: #fff !important; }
html[data-theme="dark"] .dgn-v18-xp .xp-cats a:not(#_a):hover { background-color: var(--xp-blue); border-color: var(--xp-blue); }

/* share icons in one row; on hover the icon stays visible, white on the dark circle (BUG_010, 011) */
.dgn-v18-bpx .bp-share:not(#_a) { flex-direction: row !important; flex-wrap: wrap; align-items: center; }
.dgn-v18-bpx .bp-share :is(a, button):not(#_a) { flex: none; text-decoration: none; }
.dgn-v18-bpx .bp-share :is(a, button):not(#_a)::before { content: "" !important; display: block !important; position: static !important; width: 16px !important; height: 16px !important; background: currentColor !important; opacity: 1 !important; transform: none !important; }
.dgn-v18-bpx .bp-share :is(a, button):not(#_a):is(:hover, :focus-visible) { color: #fff !important; }

/* FAQs inside an article: one question per row, and a smooth open and close (BUG_008, 009, 020) */
.dgn-v18-bpx .bp-prose .is-layout-grid:has(> details):not(#_a) { display: block !important; }
.dgn-v18-bpx .bp-prose details { interpolate-size: allow-keywords; }
.dgn-v18-bpx .bp-prose details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s ease allow-discrete; }
.dgn-v18-bpx .bp-prose details[open]::details-content { block-size: auto; }

/* the article's own "contact us" banner image is not part of the design (BUG_012) */
.dgn-v18-bpx .bp-prose :is(figure, p, .wp-block-image):has(> a[href*="connect-diginnovators-now"] > img) { display: none !important; }

/* "View all articles" on the right of "More from the blog." (BUG_014); on phones under the cards (BUG_021) */
.dgn-v18-bpx #related .tc2-sh--row:not(#_a) { display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.dgn-v18-bpx #related .xp-all:not(#_a) { flex: none; width: auto; margin: 0 !important; }
@media (max-width: 760px) {
	.dgn-v18-bpx #related > .dg-wrap:not(#_a) { display: flex !important; flex-direction: column; }
	.dgn-v18-bpx #related .tc2-sh--row:not(#_a) { display: contents !important; }
	.dgn-v18-bpx #related .xp-all:not(#_a) { order: 10; align-self: flex-start; margin: 32px 0 0 !important; }
}

/* breadcrumb on one line on phones: the first category only, cut with an ellipsis if long (BUG_018) */
.dgn-v18-bpx .bp-bc .bp-cat > :not(a:first-child) { display: none; }
@media (max-width: 600px) {
	.dgn-v18-bpx .bp-bc:not(#_a) { flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
	.dgn-v18-bpx .bp-bc .bp-cat:not(#_a) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* tablets and phones: less space between sections (BUG_006, 007, 019, 023) */
@media (max-width: 1023px) {
	main .dgn-v18-xp > section#posts:not(#top):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) { padding-bottom: 40px !important; }
	main .dgn-v18-xp > section#topics:not(#top):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) { padding-top: 40px !important; }
	main .dgn-v18-bpx > section#top.bp-hero:not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) { padding-bottom: 24px !important; }
	main .dgn-v18-bpx > section#article:not(#top):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) { padding-top: 16px !important; padding-bottom: 40px !important; }
	main .dgn-v18-bpx > section#related:not(#top):not(#_a):not(#_b):not(#_c):not(#_d):not(#_e):not(#_f):not(#_g):not(#_h):not(#_i):not(#_j) { padding-top: 40px !important; }
	.dgn-v18-bpx .bp-g:not(#_a) { gap: 24px; }
	.dgn-v18-bpx .bp-share:not(#_a) { padding-top: 0; border-top: 0; }
}
