/* Shared card component: all surfaces use the same markup and variants. */
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card[class*="gf-card-style-"]:not(#gridflow-theme-override){box-sizing:border-box;position:relative;display:flex;flex-direction:column;min-width:0;width:100%;height:100%;overflow:hidden;background:var(--gf-card-bg,#fff);color:var(--gf-text,#1f2937);border:1px solid var(--gf-border,#e5e7eb);border-radius:16px;box-shadow:0 7px 24px rgba(15,23,42,.06);text-decoration:none!important;transition:transform .22s cubic-bezier(.2,.65,.3,1),border-color .18s ease,box-shadow .18s ease}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card[class*="gf-card-style-"]:hover:not(#gridflow-theme-override){transform:translateY(-2px);border-color:var(--gf-primary);box-shadow:0 10px 28px rgba(15,23,42,.1)}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card:focus-visible:not(#gridflow-theme-override){outline:3px solid var(--gf-primary,#542f94);outline-offset:3px}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-img:not(#gridflow-theme-override){position:relative;inset:auto;flex-shrink:0;width:100%;min-width:0;height:auto;aspect-ratio:var(--gf-card-image-ratio,16 / 9);margin:0;border-radius:0;overflow:hidden;background:var(--gf-border)}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-img img:not(#gridflow-theme-override){display:block;width:100%;height:100%;object-fit:cover}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-body:not(#gridflow-theme-override){position:relative;z-index:2;display:flex;flex-direction:column;flex:1;min-width:0;padding:20px}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-badge:not(#gridflow-theme-override){align-self:flex-start;width:fit-content;padding:4px 10px;margin:0 0 10px;border-radius:6px;background:rgba(var(--gf-primary-rgb),.09);color:var(--gf-primary);font-size:12px;line-height:1.8;font-weight:700}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-title:not(#gridflow-theme-override){color:var(--gf-text);font-size:17px;font-weight:800;line-height:1.7;margin:0 0 10px;overflow-wrap:anywhere}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-excerpt:not(#gridflow-theme-override){color:var(--gf-text-light,#64748b);font-size:14px;line-height:1.9;margin:0 0 16px;text-align:start}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-meta:not(#gridflow-theme-override){display:flex;flex-wrap:wrap;gap:12px;margin-top:auto;padding-top:12px;border-top:1px solid var(--gf-border);font-size:12px;line-height:1.8;color:var(--gf-text-light,#64748b)}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-meta-item:not(#gridflow-theme-override){display:inline-flex;align-items:center;gap:4px}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-meta svg:not(#gridflow-theme-override){width:14px;height:14px;flex-shrink:0}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card .gf-card-link:not(#gridflow-theme-override){display:block;margin-top:12px;font-size:13px;font-weight:700;color:var(--gf-primary)}

:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-2:not(#gridflow-theme-override){min-height:350px;justify-content:flex-end;background:#111827;color:#fff}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-2 .gf-card-img:not(#gridflow-theme-override){position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-2 .gf-card-img:not(#gridflow-theme-override)::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(2,6,23,.96),rgba(2,6,23,.5),rgba(2,6,23,.12))}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-2 .gf-card-body:not(#gridflow-theme-override){flex:0 1 auto;margin-top:auto}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-2 .gf-card-title:not(#gridflow-theme-override),:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-2 .gf-card-link:not(#gridflow-theme-override){color:#fff}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-2 .gf-card-excerpt:not(#gridflow-theme-override),:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-2 .gf-card-meta:not(#gridflow-theme-override){color:#f1f5f9}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-2 .gf-card-badge:not(#gridflow-theme-override){background:#fff;color:#111827}

:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-6:not(#gridflow-theme-override){min-height:350px;justify-content:flex-end;background:#111827;color:#fff}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-6 .gf-card-img:not(#gridflow-theme-override){position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-6 .gf-card-img:not(#gridflow-theme-override)::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(2,6,23,.96),rgba(2,6,23,.5),rgba(2,6,23,.12))}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-6 .gf-card-body:not(#gridflow-theme-override){flex:0 1 auto;margin-top:auto}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-6 .gf-card-title:not(#gridflow-theme-override),:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-6 .gf-card-link:not(#gridflow-theme-override){color:#fff}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-6 .gf-card-excerpt:not(#gridflow-theme-override),:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-6 .gf-card-meta:not(#gridflow-theme-override){color:#f1f5f9}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-6 .gf-card-badge:not(#gridflow-theme-override){background:#fff;color:#111827}

:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-3:not(#gridflow-theme-override){flex-direction:row;min-height:240px}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-3 .gf-card-img:not(#gridflow-theme-override){width:42%;aspect-ratio:auto}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-4:not(#gridflow-theme-override){border-radius:24px;border-bottom:4px solid var(--gf-primary)}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-4 .gf-card-img:not(#gridflow-theme-override){margin:12px 12px 0;width:calc(100% - 24px);border-radius:16px}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-4 .gf-card-meta:not(#gridflow-theme-override){border-top-style:dashed}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-5:not(#gridflow-theme-override){background:rgba(var(--gf-card-bg-rgb),.8);backdrop-filter:blur(12px)}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-5 .gf-card-img:not(#gridflow-theme-override){margin:12px 12px 0;width:calc(100% - 24px);border-radius:12px}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-7:not(#gridflow-theme-override){border-radius:8px;box-shadow:none;background:var(--gf-card-bg)}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-7:hover:not(#gridflow-theme-override){box-shadow:none;border-color:var(--gf-primary)}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-7 .gf-card-body:not(#gridflow-theme-override){padding:20px;gap:0}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-7 .gf-card-badge:not(#gridflow-theme-override){padding:0;background:none;color:var(--gf-primary);border-radius:0}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-7 .gf-card-title:not(#gridflow-theme-override){font-weight:700}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-7 .gf-card-meta:not(#gridflow-theme-override){border:0;padding-top:8px}
#gf-app .gf-posts-container.list-layout .gf-article-card:not(.gf-card-style-2):not(.gf-card-style-6):not(#gridflow-theme-override){flex-direction:row}
#gf-app .gf-posts-container.list-layout .gf-article-card:not(.gf-card-style-2):not(.gf-card-style-6) .gf-card-img:not(#gridflow-theme-override){width:32%;min-width:0;aspect-ratio:auto;margin:0}
#gf-app .gf-posts-container.gf-archive-style-6.grid-layout:not(#gridflow-theme-override){grid-template-columns:repeat(2,minmax(0,1fr))}
#gf-app .gf-posts-container.gf-archive-style-6.grid-layout>.gf-article-card:first-child:not(#gridflow-theme-override){grid-column:1/-1;min-height:430px}
@media(max-width:640px){
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-3:not(#gridflow-theme-override){flex-direction:column;min-height:0}
:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card.gf-card-style-3 .gf-card-img:not(#gridflow-theme-override){width:100%;aspect-ratio:var(--gf-card-image-ratio,16 / 9)}
#gf-app .gf-posts-container.list-layout .gf-article-card:not(.gf-card-style-2):not(.gf-card-style-6):not(#gridflow-theme-override){flex-direction:column}
#gf-app .gf-posts-container.list-layout .gf-article-card:not(.gf-card-style-2):not(.gf-card-style-6) .gf-card-img:not(#gridflow-theme-override){width:100%;aspect-ratio:var(--gf-card-image-ratio,16 / 9)}
}
@media(prefers-reduced-motion:reduce){:is(#gf-app,.gf-single-related,.gf-latest-instance) .gf-article-card[class*="gf-card-style-"]:not(#gridflow-theme-override){transition:none}}

.gf-single-related-style-3 .gf-single-related-slide:not(#gridflow-theme-override){flex-basis:70%}
.gf-single-related-style-6 .gf-single-related-nav:not(#gridflow-theme-override){display:none}

:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track):not(#gridflow-theme-override){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);grid-template-rows:repeat(3,minmax(160px,auto));grid-auto-rows:auto;gap:18px;direction:ltr;transform:none!important}
:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>*:not(#gridflow-theme-override){direction:rtl;grid-area:auto;min-width:0;display:flex}
:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>:first-child:not(#gridflow-theme-override){grid-column:2;grid-row:1 / span 3;min-height:540px}
:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>:nth-child(2):not(#gridflow-theme-override),:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>:nth-child(3):not(#gridflow-theme-override),:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>:nth-child(4):not(#gridflow-theme-override){grid-column:1;min-height:160px}
:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>.gf-article-card.gf-card-style-6:nth-child(n+2):not(#gridflow-theme-override),:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>:nth-child(n+2)>.gf-article-card.gf-card-style-6:not(#gridflow-theme-override){min-height:160px}
:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>.gf-article-card.gf-card-style-6:nth-child(n+2) .gf-card-excerpt:not(#gridflow-theme-override),:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>:nth-child(n+2) .gf-card-excerpt:not(#gridflow-theme-override){display:none}
:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>.gf-article-card.gf-card-style-6:first-child:not(#gridflow-theme-override){grid-column:2;min-height:540px}
@media(max-width:1024px){:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track):not(#gridflow-theme-override){grid-template-columns:1fr;grid-template-rows:auto}:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>:first-child:not(#gridflow-theme-override),:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>.gf-article-card.gf-card-style-6:first-child:not(#gridflow-theme-override){grid-column:1;grid-row:auto;min-height:380px}:is(#gf-app .gf-posts-container.gf-archive-style-6.grid-layout,.gf-single-related-style-6 .gf-single-related-track,.gf-latest-instance.gf-latest-style-6 .gf-latest-track)>*:not(#gridflow-theme-override){grid-column:1;grid-row:auto}}
@media(max-width:640px){.gf-single-related-style-3 .gf-single-related-slide:not(#gridflow-theme-override){flex-basis:100%}}
