/* Blog (design_handoff_genesis_ai_blog): listing, article and its blocks, CTA band; also the 404 and generic pages. */

/* ---- Heroes ---- */
.gai-blog-hero { position: relative; background: var(--ga-navy); overflow: hidden; }
.gai-blog-hero__in { position: relative; max-width: 1200px; margin: 0 auto; padding: 56px 32px 64px; display: flex; flex-direction: column; gap: 16px; }
.gai-blog-hero--listing .gai-blog-hero__in { padding: 72px 32px 88px; gap: 24px; }
.gai-blog-hero--post .gai-blog-hero__in { padding: 48px 32px 56px; gap: 18px; }
.gai-blog-hero h1 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; font-weight: 400; letter-spacing: -0.03em; color: #fff; text-wrap: balance; }
.gai-blog-hero h1 strong { font-weight: 700; letter-spacing: -0.035em; }
.gai-blog-hero--post h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; font-weight: 700; max-width: 880px; }
.gai-blog-hero__intro { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); max-width: 560px; text-wrap: pretty; }
.gai-blog-hero__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, 0.72); }
.gai-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--ga-cyan); }
.gai-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.gai-crumbs a { color: rgba(255, 255, 255, 0.6); text-decoration: none; }
.gai-crumbs a:hover { color: #fff; text-decoration: none; }
.gai-crumbs__here { color: #fff; }
.gai-crumbs__title { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gai-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--ga-cyan); display: flex; align-items: center; gap: 12px; }
.gai-eyebrow span { width: 32px; height: 2px; background: var(--ga-cyan); flex: none; }
.gai-eyebrow--blue { color: var(--ga-blue); }
.gai-search { display: flex; align-items: center; gap: 10px; max-width: 480px; width: 100%; margin-top: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 0 18px; height: 48px; color: rgba(255, 255, 255, 0.7); }
.gai-search svg { flex: none; }
.gai-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: inherit; font-size: 15px; color: #fff; }
.gai-search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.gai-search:focus-within { border-color: var(--ga-cyan); }
.gai-blog-hero .gai-circuit { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 35%, #000 60%); mask-image: linear-gradient(90deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 35%, #000 60%); }
html[dir="rtl"] .gai-blog-hero .gai-circuit { -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 35%, #000 60%); mask-image: linear-gradient(270deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 35%, #000 60%); }

/* ---- Listing ---- */
.gai-blog { background: #F0F2F9; }
.gai-blog__in { max-width: 1200px; margin: 0 auto; padding: 80px 32px 96px; display: flex; flex-direction: column; gap: 32px; }
.gai-blog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.gai-blog__titles { display: flex; flex-direction: column; gap: 16px; }
.gai-blog__titles h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; font-weight: 400; letter-spacing: -0.025em; color: var(--ga-navy); }
.gai-blog__titles h2 strong { font-weight: 700; }
.gai-blog__all { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.gai-seg { display: flex; align-items: center; gap: 2px; padding: 3px; background: #fff; border: 1px solid var(--border-default); border-radius: 999px; font-size: 13px; font-weight: 600; }
.gai-seg button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 999px; color: var(--text-secondary); }
.gai-seg button[aria-pressed="true"] { background: var(--ga-navy); color: #fff; }
.gai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gai-chips button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ga-navy); border: 1px solid var(--border-default); }
.gai-chips button span { font-size: 12px; opacity: 0.7; }
.gai-chips button[aria-pressed="true"] { background: var(--ga-navy); color: #fff; border-color: var(--ga-navy); }
.gai-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.gai-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; color: inherit; text-decoration: none; transition: border-color .16s cubic-bezier(0.2, 0, 0, 1); }
.gai-card:hover { border-color: var(--ga-blue); text-decoration: none; color: inherit; }
.gai-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #1C2940; }
.gai-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.gai-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gai-card__meta time { font-size: 13px; color: var(--text-muted); }
.gai-tag { font-size: 12px; font-weight: 600; color: var(--ga-blue); background: var(--ga-cyan-light); border-radius: 999px; padding: 4px 10px; }
.gai-card__title { font-size: 18px; line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; color: var(--ga-navy); text-wrap: pretty; }
.gai-card__excerpt { font-size: 15px; line-height: 1.6; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gai-card__more { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: 15px; font-weight: 600; color: var(--ga-blue); }
.gai-blog__empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 24px; background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-lg); text-align: center; }
.gai-blog__empty p { font-size: 16px; color: var(--text-secondary); }
.gai-blog__empty button { all: unset; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ga-blue); }

/* ---- Article ---- */
.gai-post { background: #fff; }
.gai-post__in { max-width: 1200px; margin: 0 auto; padding: 56px 32px 96px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.gai-article { flex: 1 1 600px; min-width: 0; max-width: 800px; display: flex; flex-direction: column; gap: 20px; }
.gai-article__cover { width: 100%; height: auto; aspect-ratio: 1170 / 705; object-fit: cover; margin-bottom: 20px; border-radius: var(--radius-xl); box-shadow: var(--shadow-card); background: #2D3C58; }
.gai-article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border-default); }
.gai-article__back { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.gai-article__share { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ga-navy); padding: 9px 16px; border: 1px solid var(--border-default); border-radius: 999px; text-decoration: none; }
.gai-article__share:hover { border-color: var(--ga-blue); color: var(--ga-blue); text-decoration: none; }
.gai-post__aside { flex: 0 1 300px; min-width: 260px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.gai-toc { display: flex; flex-direction: column; gap: 2px; padding: 24px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: #F6F7F9; }
.gai-toc p { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.gai-toc a { font-size: 14px; line-height: 1.45; color: var(--text-secondary); text-decoration: none; padding: 6px 0; }
.gai-toc a:hover { color: var(--ga-blue); text-decoration: none; }
.gai-promo { display: flex; flex-direction: column; gap: 16px; padding: 28px 24px; border-radius: var(--radius-lg); background: #1C2940; }
.gai-promo img { height: 18px; width: auto; align-self: flex-start; }
.gai-promo p { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.gai-promo a { align-self: flex-start; display: flex; align-items: center; gap: 8px; background: var(--ga-cyan); color: var(--ga-navy); font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 999px; text-decoration: none; }
.gai-promo a:hover { background: #fff; color: var(--ga-navy); text-decoration: none; }

/* Article blocks (block editor content). Scoped to :is(.gai-prose, .is-root-container) so the same rules style the
   article and the block editor canvas (inc/blog-admin.php loads this file as an editor style for posts). */
:is(.gai-prose, .is-root-container) { display: flex; flex-direction: column; gap: 20px; }
:is(.gai-prose, .is-root-container) > * { margin: 0; }
:is(.gai-prose, .is-root-container) p { font-size: 17px; line-height: 1.75; color: var(--text-primary); text-wrap: pretty; }
:is(.gai-prose, .is-root-container) p.is-style-lead { font-size: 20px; line-height: 1.55; font-weight: 500; color: var(--ga-navy); }
:is(.gai-prose, .is-root-container) strong { font-weight: 600; color: var(--ga-navy); }
:is(.gai-prose, .is-root-container) code { font-family: ui-monospace, Menlo, monospace; font-size: 0.88em; background: #F0F2F9; border: 1px solid var(--border-default); border-radius: 6px; padding: 1px 6px; }
:is(.gai-prose, .is-root-container) h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; color: var(--ga-navy); margin-top: 20px; scroll-margin-top: 96px; text-wrap: balance; }
:is(.gai-prose, .is-root-container) h3 { font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ga-navy); margin-top: 8px; }
:is(.gai-prose, .is-root-container) ul { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; }
:is(.gai-prose, .is-root-container) ul li { width: 100%; box-sizing: border-box; position: relative; padding-inline-start: 20px; font-size: 17px; line-height: 1.65; color: var(--text-primary); }
:is(.gai-prose, .is-root-container) ul li::before { content: ''; position: absolute; inset-inline-start: 0; top: 11px; width: 6px; height: 6px; border-radius: 999px; background: var(--ga-cyan); }
:is(.gai-prose, .is-root-container) ol { padding-inline-start: 22px; font-size: 17px; line-height: 1.65; }
:is(.gai-prose, .is-root-container) .wp-block-image { margin: 8px 0; }
:is(.gai-prose, .is-root-container) .wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-default); box-shadow: var(--shadow-card); }
:is(.gai-prose, .is-root-container) .wp-block-image figcaption { font-size: 14px; color: var(--text-muted); margin-top: 8px; text-align: center; }
:is(.gai-prose, .is-root-container) .wp-block-table { overflow-x: auto; border: 1px solid var(--border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
:is(.gai-prose, .is-root-container) .wp-block-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.5; table-layout: auto; }
:is(.gai-prose, .is-root-container) .wp-block-table th { text-align: start; padding: 14px 20px; background: var(--ga-navy); color: #fff; font-weight: 600; border: 0; }
:is(.gai-prose, .is-root-container) .wp-block-table td { text-align: start; padding: 14px 20px; color: var(--text-secondary); border: 0; border-top: 1px solid var(--border-default); vertical-align: top; }
:is(.gai-prose, .is-root-container) .wp-block-table td:first-child { font-weight: 600; color: var(--ga-navy); }
:is(.gai-prose, .is-root-container) .wp-block-table tbody tr:nth-child(even) { background: #F6F7F9; }
:is(.gai-prose, .is-root-container) .wp-block-table thead { border: 0; }
:is(.gai-prose, .is-root-container) .wp-block-quote { margin: 12px 0; padding: 32px; background: #1C2940; border: 0; border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 16px; }
:is(.gai-prose, .is-root-container) .wp-block-quote p { font-size: 19px; line-height: 1.6; color: #fff; }
:is(.gai-prose, .is-root-container) .wp-block-quote strong { color: #fff; }
:is(.gai-prose, .is-root-container) .wp-block-quote cite { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ga-cyan); }
:is(.gai-prose, .is-root-container) .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
:is(.gai-prose, .is-root-container) .wp-block-button__link { display: flex; align-items: center; gap: 8px; background: var(--ga-blue); color: #fff; font-weight: 600; font-size: 15px; line-height: normal; padding: 12px 24px; border-radius: 999px; text-decoration: none; }
:is(.gai-prose, .is-root-container) .wp-block-button__link::after { content: ''; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
html[dir="rtl"] :is(.gai-prose, .is-root-container) .wp-block-button__link::after { transform: scaleX(-1); }
:is(.gai-prose, .is-root-container) .wp-block-button__link:hover { background: var(--ga-blue-hover); color: #fff; text-decoration: none; }
:is(.gai-prose, .is-root-container) .wp-block-embed iframe { max-width: 100%; }

/* ---- CTA band ---- */
.gai-blog-cta { background: #fff; }
.gai-blog-cta__in { max-width: 1200px; margin: 0 auto; padding: 88px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.gai-blog-cta h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.1; font-weight: 400; letter-spacing: -0.025em; color: var(--ga-navy); max-width: 620px; text-wrap: balance; }
.gai-blog-cta h2 strong { font-weight: 700; }
.gai-blog-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gai-btn--outline { color: var(--ga-navy); border: 1px solid #C9D0E0; }
.gai-btn--outline:hover { background: #F6F7F9; color: var(--ga-navy); }

/* ---- 404 and generic pages ---- */
.gai-blog-hero > .gai-blog-hero__in > h1:only-child { font-weight: 700; }
.gai-404 { display: flex; justify-content: flex-start; }
