/* GridFlow-owned controls only; embedded third-party controls keep their own design. */
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary):not(#gridflow-theme-override){--gf-motion-fast:140ms;--gf-motion-normal:220ms;--gf-ease:cubic-bezier(.2,.65,.3,1);isolation:isolate;font-family:inherit;letter-spacing:normal;text-transform:none}
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary) :is(button:is([class*="gf-"],[id^="gf-"]),.gf-sl-btn,.gf-cta-btn,.gf-ai-summary__button):not(#gridflow-theme-override){
 box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px;
 font-family:inherit!important;font-style:normal!important;font-weight:700!important;letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;text-indent:0!important;font-size:var(--gf-button-size,13px)!important;line-height:1.5!important;text-shadow:none!important;
 min-height:44px!important;min-width:44px!important;width:var(--gf-button-width,auto)!important;height:var(--gf-button-height,auto)!important;margin:var(--gf-button-margin,0)!important;padding:var(--gf-button-pad,8px 12px)!important;
 border:1px solid var(--gf-button-border,var(--gf-border,#e5e7eb))!important;border-radius:var(--gf-button-radius,var(--gf-radius-sm,12px))!important;
 background:var(--gf-button-bg,var(--gf-card-bg,#fff))!important;color:var(--gf-button-fg,var(--gf-text,#1f2937))!important;box-shadow:var(--gf-button-shadow,none)!important;cursor:pointer!important;
 transition:background-color var(--gf-motion-fast,140ms) ease,border-color var(--gf-motion-fast,140ms) ease,color var(--gf-motion-fast,140ms) ease,transform var(--gf-motion-fast,140ms) var(--gf-ease,ease)!important;
}
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary) :is(button:is([class*="gf-"],[id^="gf-"]),.gf-sl-btn,.gf-cta-btn,.gf-ai-summary__button):not(#gridflow-theme-override)::before,
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary) :is(button:is([class*="gf-"],[id^="gf-"]),.gf-sl-btn,.gf-cta-btn,.gf-ai-summary__button):not(#gridflow-theme-override)::after{content:none;box-shadow:none}
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary) :is(button:is([class*="gf-"],[id^="gf-"]),a[class*="gf-"]):focus-visible:not(#gridflow-theme-override){outline:3px solid var(--gf-primary,var(--gf-ai-primary,#0ea5e9))!important;outline-offset:3px!important}
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper) :is(h1,h2,h3,h4,p,span,a,div)[class*="gf-"]:not(#gridflow-theme-override){font-family:inherit;letter-spacing:normal;text-transform:none}
:is(#gf-app,.gf-single-wrapper,.gf-comments-wrapper) :is(input[id^="gf-"],textarea[id^="gf-"]):not(#gridflow-theme-override){box-sizing:border-box!important;font-family:inherit!important;font-size:14px!important;line-height:1.8!important;letter-spacing:normal!important;text-transform:none!important;box-shadow:none!important;background:var(--gf-card-bg,#fff)!important;color:var(--gf-text,#1f2937)!important;border:1px solid var(--gf-border,#e5e7eb)!important;border-radius:var(--gf-radius-sm,12px)!important;min-height:44px!important;max-width:100%!important}
#gf-app .gf-search-main #gf-search-input:not(#gridflow-theme-override){padding:10px 44px 10px 16px!important;border:0!important;background:transparent!important}
:is(#gf-app,.gf-single-wrapper,.gf-comments-wrapper) :is(input[id^="gf-"],textarea[id^="gf-"]):focus-visible:not(#gridflow-theme-override){outline:2px solid var(--gf-primary)!important;outline-offset:2px!important}
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper) button:is([class*="gf-"],[id^="gf-"]):disabled:not(#gridflow-theme-override){opacity:.45!important;cursor:not-allowed!important;transform:none!important}
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary) [hidden][hidden]:not(#gridflow-theme-override){display:none!important}
#gf-app .gf-view-btn.active:not(#gridflow-theme-override){--gf-button-bg:var(--gf-primary);--gf-button-fg:var(--gf-on-primary,#fff);--gf-button-border:var(--gf-primary)}
#gf-app .gf-sl-btn:not(#gridflow-theme-override){--gf-button-bg:var(--gf-primary);--gf-button-fg:var(--gf-on-primary,#fff);--gf-button-border:var(--gf-primary);--gf-button-pad:12px 20px;--gf-button-size:14px}
#gf-app .gf-cta-btn:not(#gridflow-theme-override){--gf-button-bg:var(--gf-cta-button-bg);--gf-button-fg:var(--gf-cta-button-text);--gf-button-pad:12px 28px;--gf-button-size:14px}
.gf-comments-wrapper #gf-submit-cmt:not(#gridflow-theme-override){--gf-button-bg:var(--gf-primary);--gf-button-fg:var(--gf-on-primary,#fff)}
.gf-single-wrapper .gf-single-video-trigger:not(#gridflow-theme-override){--gf-button-width:78px;--gf-button-height:78px;--gf-button-radius:999px;--gf-button-pad:0;--gf-button-bg:var(--gf-primary);--gf-button-fg:var(--gf-on-primary,#fff)}
.gf-single-wrapper .gf-single-video-close:not(#gridflow-theme-override){--gf-button-width:44px;--gf-button-height:44px;--gf-button-pad:0;--gf-button-radius:999px;--gf-button-bg:#111827;--gf-button-fg:#fff;--gf-button-size:24px}
.gf-single-wrapper :is(.gf-related-prev,.gf-related-next):not(#gridflow-theme-override),.gf-latest-instance .gf-latest-nav:not(#gridflow-theme-override){--gf-button-width:44px;--gf-button-height:44px;--gf-button-pad:0}
@media(hover:hover) and (pointer:fine){
 :is(#gf-app,.gf-single-wrapper,.gf-latest-instance) :is(.gf-view-btn,.gf-blog-theme-switch,.gf-single-theme-switch,.gf-latest-nav,.gf-related-prev,.gf-related-next):hover:not(#gridflow-theme-override){--gf-button-border:var(--gf-primary);transform:translateY(-1px)}
 :is(#gf-app,.gf-single-wrapper,.gf-latest-instance) .gf-article-card[class*="gf-card-style-"]:hover:not(#gridflow-theme-override){transform:translateY(-2px)}
 #gf-app .gf-sl-btn:hover:not(#gridflow-theme-override),.gf-ai-summary a.gf-ai-summary__button:hover:not(#gridflow-theme-override){transform:translateY(-1px)}
}
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary) :is(button:is([class*="gf-"],[id^="gf-"]),.gf-sl-btn,.gf-ai-summary__button):active:not(#gridflow-theme-override){filter:brightness(.97)}
:is(#gf-app,.gf-single-wrapper,.gf-latest-instance) .gf-article-card[class*="gf-card-style-"]:not(#gridflow-theme-override){transition:transform var(--gf-motion-normal) var(--gf-ease),border-color var(--gf-motion-fast) ease,box-shadow var(--gf-motion-normal) ease}
.gf-single-wrapper .gf-single-head:not(#gridflow-theme-override){display:flex;flex-direction:column;align-items:stretch;gap:16px;width:100%;max-width:none;margin:0 auto 32px;text-align:right}
.gf-single-wrapper .gf-single-title:not(#gridflow-theme-override){width:100%;max-width:none;margin:0;font-size:clamp(1.45rem,2.4vw,2.3rem);line-height:1.7;letter-spacing:normal;font-weight:800;text-wrap:pretty;text-align:right;overflow-wrap:anywhere}
.gf-single-wrapper .gf-single-meta:not(#gridflow-theme-override){justify-content:flex-start;gap:12px 20px;margin:0;line-height:1.8}
.gf-single-wrapper .gf-single-hero:not(#gridflow-theme-override){border-radius:var(--gf-radius,20px);border:1px solid var(--gf-border);box-shadow:0 12px 32px rgba(15,23,42,.08);margin-bottom:32px}
@media(prefers-reduced-motion:reduce){
 :is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary):not(#gridflow-theme-override):not(#gridflow-motion-override),:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary) *:not(#gridflow-theme-override):not(#gridflow-motion-override),:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary) *:not(#gridflow-theme-override):not(#gridflow-motion-override)::before,:is(#gf-app,.gf-single-wrapper,.gf-latest-instance,.gf-comments-wrapper,.gf-ai-summary) *:not(#gridflow-theme-override):not(#gridflow-motion-override)::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 :is(#gf-app,.gf-single-wrapper,.gf-latest-instance) .gf-article-card:hover:not(#gridflow-theme-override):not(#gridflow-motion-override),#gf-app .gf-sl-btn:hover:not(#gridflow-theme-override):not(#gridflow-motion-override),.gf-ai-summary .gf-ai-summary__button:hover:not(#gridflow-theme-override):not(#gridflow-motion-override){transform:none!important}
}

/* Single header shares one RTL alignment and has room for the theme switch. */
.gf-single-wrapper .gf-breadcrumbs:not(#gridflow-theme-override){width:100%;max-width:none;margin:0 auto 24px;gap:6px;line-height:1.9;overflow-wrap:anywhere;min-width:0}
.gf-single-wrapper .gf-single-head .gf-single-cat:not(#gridflow-theme-override){align-self:flex-start;width:fit-content;margin:0;max-width:100%}
.gf-single-wrapper.gf-single-theme-mode-toggle:not(#gridflow-theme-override){padding-top:76px}
.gf-single-wrapper .gf-single-card-title:not(#gridflow-theme-override)::before{content:none}
/* Popular posts: one full-row link and uncropped original-ratio imagery. */
#gf-app .gf-popular-list:not(#gridflow-theme-override){display:grid;gap:12px;list-style:none;padding:0;margin:0}
#gf-app .gf-popular-list li:not(#gridflow-theme-override){border:0;padding:0;margin:0;min-width:0}
#gf-app .gf-popular-item:not(#gridflow-theme-override){display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;align-items:center;min-width:0;padding:10px;border:1px solid var(--gf-border);border-radius:12px;background:var(--gf-card-bg);color:var(--gf-text);text-decoration:none;transition:background-color 140ms ease,border-color 140ms ease}
#gf-app .gf-popular-item:hover:not(#gridflow-theme-override){background:var(--gf-bg);border-color:var(--gf-primary)}
#gf-app .gf-popular-item:focus-visible:not(#gridflow-theme-override){outline:3px solid var(--gf-primary);outline-offset:3px}
#gf-app .gf-popular-image:not(#gridflow-theme-override){display:flex;align-items:center;justify-content:center;width:96px;height:76px;min-width:0;overflow:hidden;border-radius:8px;background:var(--gf-bg);padding:4px;box-sizing:border-box}
#gf-app .gf-popular-image img.gf-popular-thumb:not(#gridflow-theme-override){display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center;border:0!important;border-radius:4px!important;box-shadow:none!important;margin:0!important}
#gf-app .gf-popular-image svg:not(#gridflow-theme-override){width:28px;height:28px;color:var(--gf-text-light)}
#gf-app .gf-popular-copy:not(#gridflow-theme-override){display:flex;flex-direction:column;gap:8px;min-width:0}
#gf-app .gf-popular-link:not(#gridflow-theme-override){font-size:14px;font-weight:700;line-height:1.8;color:var(--gf-text);overflow-wrap:anywhere}
#gf-app .gf-popular-date:not(#gridflow-theme-override){font-size:12px;line-height:1.6;color:var(--gf-text-light)}
@media(max-width:640px){
 .gf-single-wrapper .gf-single-head:not(#gridflow-theme-override){gap:12px;margin-bottom:24px}
 .gf-single-wrapper .gf-single-meta:not(#gridflow-theme-override){gap:8px 14px;justify-content:flex-start}
 #gf-app .gf-popular-item:not(#gridflow-theme-override){grid-template-columns:88px minmax(0,1fr)}
 #gf-app .gf-popular-image:not(#gridflow-theme-override){width:88px;height:70px}
}
