/* Articles: blog posts, press releases, webinars (single-post.php,
   single-press-release.php, single-webinar.php). Values follow the old
   Elementor templates: hero with the featured image under a 70% ink overlay,
   280px TOC | article | 280px sidebar, boxes #EDEEFF with #ADB2FF border and
   15px corners, article text 18/30 at #40454D. */

/* ---------- Hero (blog posts) ---------- */
.art-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 500px; padding-block: 80px; background: var(--gd-ink); color: #fff; text-align: center; }
.art-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(16, 23, 32, .7); }
.art-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.art-hero__inner { width: 100%; }
.art-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 0 0 18px; font: 500 18px/28px var(--gd-font); }
.art-hero__meta a { color: #fff; text-decoration: none; }
.art-hero__meta a:hover { text-decoration: underline; }
.art-hero__sep { opacity: .7; }
.art-hero__title { margin: 0 auto; color: #fff; font: 600 44px/66px var(--gd-font); letter-spacing: .32px; } /* Full width, as the live template. */
.art-hero__by { margin: 18px 0 0; font: 500 18px/28px var(--gd-font); }

/* ---------- Layout ---------- */
.art-layout { display: grid; gap: 30px; align-items: start; padding-block: 60px 40px; }
.art-layout--toc { grid-template-columns: 280px minmax(0, 1fr) 307px; } /* Article column 653px, as live. */
.art-layout--side { grid-template-columns: minmax(0, 1fr) 370px; gap: 27px; } /* Main column 883px, as live. */
@media (min-width: 1200px) { .art-layout--side { padding-left: 20px; } }
.art-layout--plain { padding-top: 50px; }
.art-main { min-width: 0; }

/* Boxes (TOC, sidebar) */
.art-box,
.art-toc { padding: 20px; border: 1px solid #adb2ff; border-radius: 15px; background: #edeeff; }
.art-box__text { margin: 0 0 14px; color: var(--gd-muted); font: 500 16px/26px var(--gd-font); }
.art-aside { position: sticky; top: 100px; display: grid; gap: 30px; }
.art-cta .gd-btn { min-height: 44px; }

/* Table of contents */
.art-toc { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; }
.art-toc--empty { visibility: hidden; }
/* Long contents lists scroll inside the box without showing the blue brand scrollbar (looked like a stray line). */
.art-toc { scrollbar-width: none; }
.art-toc::-webkit-scrollbar { display: none; }
.art-toc__title { margin: 0 0 14px; color: var(--gd-ink); font: 700 18px/26px var(--gd-font); text-align: center; }
.art-toc__list { margin: 0; padding: 0; list-style: none; }
.art-toc__list li + li { margin-top: 12px; }
.art-toc__list a { display: block; color: var(--gd-muted); font: 500 16px/24px var(--gd-font); text-decoration: none; }
.art-toc__list a:hover,
.art-toc__list a.is-active { color: var(--gd-blue); }

/* Related boxes (ACF HTML) */
.art-related .related-blogs-title,
.art-related .related-case-study-title { padding-bottom: 16px; color: var(--gd-ink); font: 700 18px/30px var(--gd-font); text-align: center; }
.art-related ul { margin: 0; padding: 0; list-style: none; }
.art-related li + li { margin-top: 15px; }
.art-related a { color: var(--gd-muted); font: 500 16px/26px var(--gd-font); text-decoration: none; }
.art-related a:hover { color: var(--gd-blue); }

/* ---------- Article head (press releases, webinars) ---------- */
.art-kicker { margin: 0 0 8px; color: var(--gd-orange); font: 700 14px/20px var(--gd-font); letter-spacing: 1px; text-transform: uppercase; }
.art-title { margin: 0 0 24px; color: var(--gd-ink); font: 600 40px/52px var(--gd-font); letter-spacing: .32px; }
.art-featured { margin: 0 0 20px; }
.art-featured img { display: block; width: 100%; height: auto; }
.art-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 28px; color: var(--gd-muted); font: 500 16px/24px var(--gd-font); }
.art-meta__sep { color: var(--gd-orange); }
.art-video { position: relative; display: block; width: 100%; margin: 0 0 28px; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #000; cursor: pointer; }
.art-video img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: cover; transition: transform .4s, opacity .3s; } /* Portrait posters: cropped to a banner. */
.art-video:hover img { transform: scale(1.03); opacity: .85; }
.art-video__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--gd-orange); color: #fff; transform: translate(-50%, -50%); box-shadow: 0 0 0 10px rgba(255, 136, 31, .25); }
.art-video:focus-visible { outline: 3px solid var(--gd-blue-2); outline-offset: 3px; }

/* ---------- Summary box ---------- */
.art-summary { margin: 0 0 30px; padding: 20px 24px; border-left: 4px solid var(--gd-blue); border-radius: 0 12px 12px 0; background: #edeeff; color: var(--gd-ink); font: 500 18px/30px var(--gd-font); }
.art-summary p { margin: 0 0 10px; }
.art-summary > :last-child { margin-bottom: 0; }

/* ---------- Article text (editor content) ---------- */
.art-content { color: var(--gd-muted); font: 500 18px/30px var(--gd-font); overflow-wrap: break-word; }
.art-content > :first-child { margin-top: 0; }
.art-content p { margin: 0 0 15px; }
.art-content h2 { margin: 36px 0 16px; color: var(--gd-ink); font: 600 32px/42px var(--gd-font); letter-spacing: .32px; scroll-margin-top: 100px; }
.art-content h3 { margin: 28px 0 12px; color: var(--gd-ink); font: 600 26px/36px var(--gd-font); letter-spacing: .32px; scroll-margin-top: 100px; }
.art-content h4,
.art-content h5,
.art-content h6 { margin: 22px 0 10px; color: var(--gd-ink); font: 700 20px/30px var(--gd-font); }
.art-content a { color: var(--gd-blue); }
.art-content a:hover { color: var(--gd-orange); }
.art-content strong { color: var(--gd-ink); }
.art-content ul,
.art-content ol { margin: 0 0 18px; padding-left: 1.4em; }
.art-content li { margin-bottom: 10px; }
.art-content li::marker { color: var(--gd-blue); }
.art-content img { max-width: 100%; height: auto; }
.art-content figure,
.art-content .wp-caption { max-width: 100%; margin: 20px 0; }
.art-content .wp-caption-text,
.art-content figcaption { margin-top: 8px; color: var(--gd-muted); font-size: 14px; line-height: 22px; text-align: center; }
.art-content .aligncenter { display: block; margin-inline: auto; }
.art-content .alignleft { float: left; margin: 6px 20px 10px 0; }
.art-content .alignright { float: right; margin: 6px 0 10px 20px; }
.art-content table { width: 100%; margin: 0 0 20px; border-collapse: collapse; font-size: 16px; line-height: 26px; }
.art-content th,
.art-content td { padding: 10px 14px; border: 1px solid #adb2ff; text-align: left; vertical-align: top; }
.art-content th { background: #edeeff; color: var(--gd-ink); font-weight: 700; }
.art-content blockquote { margin: 30px 0; padding: 31px 24px; border: 1px solid rgba(16, 23, 32, .1); border-radius: 16px; background: #f3f4fe; }
.art-content blockquote p { margin: 0; color: var(--gd-ink); font-size: 22px; line-height: 34px; }
.art-content .blockquote-link { color: var(--gd-orange); }
.art-content .cta-section { margin: 40px 0; padding: 70px 50px; border-radius: 12px; background: linear-gradient(120deg, #01064f, #353fe8); }
.art-content .cta-content p { margin: 0 !important; padding-bottom: 24px; color: #fff; font-size: 28px; font-weight: 700; line-height: normal; }
.art-content .cta-button { display: inline-block; padding: 10px 18px; border-radius: 8px; background: #ff6f00; color: #fff; font-size: 16px; font-weight: 700; line-height: 24px; text-decoration: none; }
.art-content .cta-button:hover { background: #ff8f00; color: #fff; }
.art-content iframe,
.art-content video { max-width: 100%; }
.art-content::after { content: ""; display: block; clear: both; }

/* Wide tables scroll inside the column on small screens. */
.art-content .gd-table-scroll { overflow-x: auto; }

/* ---------- Author card ---------- */
.art-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 40px; padding: 24px; border: 1px solid #adb2ff; border-radius: 15px; }
.art-author__photo { flex: none; width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.art-author__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 0 8px; }
.art-author__name { color: var(--gd-ink); font: 700 20px/30px var(--gd-font); text-decoration: none; }
.art-author__name:hover { color: var(--gd-blue); }
.art-author__role { position: relative; padding-left: 12px; color: var(--gd-muted); font: 500 16px/24px var(--gd-font); }
.art-author__role::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: 2px; background: var(--gd-orange); }
.art-author__in { display: inline-flex; color: #0a66c2; }
.art-author__bio { margin: 0; color: var(--gd-muted); font: 500 16px/26px var(--gd-font); }
.art-author__bio a { color: var(--gd-blue); }

/* ---------- Contact form at the end ---------- */
.art-contact .section-heading__title { font-size: 42px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.art-layout--toc { grid-template-columns: minmax(0, 1fr) 280px; }
	.art-layout--toc .art-toc { display: none; } /* Hidden on tablet / mobile, as before. */
}
@media (min-width: 1025px) {
	.art-cta--mobile { display: none; } /* Blog posts: desktop shows the form instead. */
}
@media (max-width: 1024px) {
	.art-hero { min-height: 380px; }
	.art-hero__title { font-size: 34px; line-height: 46px; }
	.art-layout--toc,
	.art-layout--side { grid-template-columns: 1fr; }
	.art-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.art-form { display: none; } /* As before: enquiry form only on desktop. */
}
@media (max-width: 767px) {
	.art-hero { min-height: 0; padding-block: 50px; }
	.art-hero__title { font-size: 28px; line-height: 38px; }
	.art-hero__meta,
	.art-hero__by { font-size: 15px; }
	.art-layout { padding-block: 36px 20px; }
	.art-aside { grid-template-columns: 1fr; }
	.art-title { font-size: 26px; line-height: 36px; }
	.art-content { font-size: 16px; line-height: 28px; }
	.art-content h2 { font-size: 26px; line-height: 36px; }
	.art-content h3 { font-size: 21px; line-height: 30px; }
	.art-content .cta-section { padding: 40px 24px; }
	.art-content .alignleft,
	.art-content .alignright { float: none; margin: 10px auto; }
	.art-content table { display: block; overflow-x: auto; }
	.art-author { flex-direction: column; align-items: center; text-align: center; }
	.art-author__head { justify-content: center; }
	.art-contact .section-heading__title { font-size: 28px; }
}

/* Type details as live (letter-spacing / title case). */
.art-layout--toc .art-content { font-weight: 400; } /* Blog post text 400, as live (press releases stay 500). */
.art-content h2, .art-content h3, .art-hero__title, .art-title { text-transform: capitalize; }

/* Blog post content as live (measured on the new and older posts):
   navy headings with 20/10 margins, 10px paragraph gap, semi-bold strong in
   the text colour, 30px space above images, tables 18/30 with a light-blue
   outer border and cell alignment taken from the table itself. */
.art-layout--toc .art-content p { margin-bottom: 10px; }
.art-layout--toc .art-content h2,
.art-layout--toc .art-content h3,
.art-layout--toc .art-content h4,
.art-layout--toc .art-content h5,
.art-layout--toc .art-content h6 { margin: 20px 0 10px; color: #00234c; }
.art-layout--toc .art-content strong,
.art-layout--toc .art-content b { color: inherit; font-weight: 600; }
.art-layout--toc .art-content img { margin-top: 30px; margin-bottom: 20px; }
.art-layout--toc .art-content table { border: 1px solid #adb2ff; font-size: 18px; font-weight: 500; line-height: 30px; }
.art-layout--toc .art-content th,
.art-layout--toc .art-content td { text-align: inherit; }
.art-layout--toc .art-content th { color: var(--gd-muted); }
.art-layout--toc .art-content table a { font-family: var(--gd-font); font-weight: 600; }@media (max-width: 767px) {
	.art-layout--toc .art-content { font-size: 18px; line-height: 30px; } /* Phone, as live. */
	.art-layout--toc .art-content h3 { font-size: 22px; line-height: 32px; }
}

/* Blog details as live: <b> is "bolder" (900 in headings, 700 in text); author box 24 / 18 / 18-28. */
.art-layout--toc .art-content b { font-weight: bolder; }
.art-author__name { font-size: 24px; line-height: 32px; }
.art-author__role { font-size: 18px; line-height: 18px; }
.art-author__bio { font-size: 18px; font-weight: 400; line-height: 28px; }
/* Press releases as live: navy title, 18/30 grey meta, 18/30 quote text, "About" heading in text colour. */
.art-layout--plain .art-title { color: #0f0f44; }
.art-layout--plain .art-meta,
.art-layout--plain .art-meta time,
.art-layout--plain .art-meta span { color: #565353; font-size: 18px; line-height: 30px; }
.art-layout--plain .art-content blockquote p { font-size: 18px; line-height: 30px; }
.art-layout--plain .art-content strong { color: var(--gd-muted); }