/*
 * Posts: cards, category chips, the product box and related posts (inc/posts-hub.php).
 * Uses the tokens in og-tokens.css; card shape matches the store's .ogs-card.
 */

.ogp-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
@media(max-width:1024px){.ogp-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.ogp-cards{grid-template-columns:1fr}}

.ogp-card{display:flex;flex-direction:column;border:1px solid var(--og-border);border-radius:18px;background:var(--og-surface-navy);overflow:hidden;text-decoration:none!important;transition:border-color .15s,transform .15s,box-shadow .15s}
.ogp-card:hover{border-color:var(--og-link);transform:translateY(-3px);box-shadow:0 10px 30px rgba(74,168,255,.12)}
.ogp-card:focus-visible{outline:2px solid var(--og-link);outline-offset:3px}
.ogp-card .im{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#16305a,#1e4a86);overflow:hidden}
.ogp-card .im img{width:100%!important;height:100%!important;object-fit:cover;display:block;margin:0!important;border-radius:0!important}
.ogp-card .bd{display:flex;flex-direction:column;gap:10px;padding:18px;flex:1}
.ogp-card .chip{align-self:flex-start;font-size:11px;letter-spacing:.04em;padding:3px 10px;border-radius:6px;border:1px solid rgba(74,168,255,.35);background:var(--og-primary-soft);color:#9fd0ff}
.ogp-card .tt{font-family:var(--og-font-display);font-size:18px;line-height:1.35;color:var(--og-text)}
.ogp-card .ds{font-size:14px;line-height:1.55;color:var(--og-text-2)}
.ogp-card .mt{display:flex;gap:16px;font-size:12.5px;color:var(--og-muted);margin-top:auto;padding-top:10px;border-top:1px solid var(--og-border)}
.ogp-card .go{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border:1px solid rgba(74,168,255,.35);border-radius:10px;background:rgba(74,168,255,.08);color:#9fd0ff;font-size:13.5px;font-weight:600}
.ogp-card:hover .go{background:var(--og-link);color:#06101f}
.ogp-card .go i{font-style:normal}
.ogp-none{color:var(--og-muted)}

.ogp-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
.ogp-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border:1px solid var(--og-border-strong);border-radius:999px;color:var(--og-text-2)!important;font-size:14px;text-decoration:none!important;transition:border-color .15s,background .15s}
.ogp-chip span{font-size:12px;color:var(--og-muted)}
.ogp-chip:hover{border-color:var(--og-link)}
.ogp-chip.on{background:var(--og-primary);border-color:var(--og-primary);color:var(--og-on-primary)!important}
.ogp-chip.on span{color:var(--og-on-primary)}

.ogp-pager{display:flex;justify-content:space-between;gap:16px;margin-top:32px}
.ogp-pager a{padding:10px 16px;border:1px solid var(--og-border-strong);border-radius:10px;color:var(--og-link)!important;text-decoration:none!important}

.ogp-buy{margin:40px 0 0;padding:24px;border:1px solid rgba(74,168,255,.35);border-radius:20px;background:var(--og-surface)}
.ogp-buy h2,.ogp-related h2{font-family:var(--og-font-display);font-size:22px;color:var(--og-text);margin:0 0 16px}
.ogp-buy .ogs-card{max-width:340px;margin-left:auto;margin-right:auto}
.ogp-buy h2{text-align:center}

.ogp-related{margin:48px 0 0}

.ogp-archive-title{font-family:var(--og-font-display);font-weight:700;font-size:var(--og-fs-h1);line-height:1.2;color:var(--og-text);text-align:center;margin:0}
.ogp-archive-desc{max-width:680px;margin:14px auto 0;text-align:center;color:var(--og-text-2);font-size:16px;line-height:1.6}
.ogp-archive-desc p{margin:0}

/* Sections on hub pages ([ogn_posts heading="1"]) and the /og-plugins/ showcase (inc/plugins-showcase.php). */
.ogp-section,.ogx{margin:56px 0 0}
.ogp-section h2,.ogx h2{font-family:var(--og-font-display);font-size:var(--og-fs-h2);color:var(--og-text);margin:0 0 20px}
.ogp-section h2 a{color:inherit!important;text-decoration:none!important}
.ogp-section h2 a:hover{color:var(--og-link)!important}
.ogx-core{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start;padding:32px;border:1px solid rgba(74,168,255,.35);border-radius:24px;background:var(--og-surface)}
.ogx-core-tx>p{color:var(--og-text-2);font-size:16px;line-height:1.6;margin:0 0 24px;max-width:720px}
.ogx-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ogx-tile{position:relative;display:flex;flex-direction:column;gap:8px;padding:18px 44px 18px 18px;border:1px solid var(--og-border);border-radius:16px;background:var(--og-surface-navy);text-decoration:none!important;transition:border-color .15s,transform .15s}
.ogx-tile:hover{border-color:var(--og-link);transform:translateY(-2px)}
.ogx-tile:focus-visible{outline:2px solid var(--og-link);outline-offset:3px}
.ogx-tile .tt{font-family:var(--og-font-display);font-size:15px;line-height:1.35;color:var(--og-text)}
.ogx-tile .ds{font-size:13.5px;line-height:1.55;color:var(--og-text-2)}
.ogx-tile i{position:absolute;top:18px;right:18px;font-style:normal;color:var(--og-link)}
.ogx-family{margin-top:40px}
@media(max-width:960px){.ogx-core{grid-template-columns:1fr;padding:22px}.ogx-core-card .ogs-card{max-width:360px}}
@media(max-width:620px){.ogx-tiles{grid-template-columns:1fr}}
/* On plain pages (e.g. /og-plugins/) these sections sit in the same centred column as the [ogps_hub] above them. */
body.page .ogx,body.page .ogp-section{box-sizing:border-box;max-width:1280px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
body.page .ogx{margin-top:0}
body.page .ogp-section:last-child,body.page .ogp-section:has(+ :not(.ogp-section)){margin-bottom:80px}

/* Legal hub ([ogn_legal_hub], inc/legal-hub.php). */
.ogl{box-sizing:border-box;max-width:960px;margin:0 auto;padding:64px 24px 80px}
.ogl .ogp-archive-title{margin-bottom:32px}
.ogl-list{grid-template-columns:1fr}
.ogl-card time{font-size:12.5px;color:var(--og-muted)}

/* Guides archives: full width with 30px margins, and a side menu (inc/guides-nav.php, 27 Nov 2026). */
body.ogn-guides .elementor-location-archive>.e-con-boxed{padding-left:0!important;padding-right:0!important}
body.ogn-guides .elementor-location-archive>.e-con-boxed>.e-con-inner{max-width:none!important;padding-left:30px!important;padding-right:30px!important}
.ogg-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:32px;align-items:start}
.ogg-main{min-width:0}
.ogn-guides .ogg-main .ogp-cards{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}
.ogg-side{position:sticky;top:110px;max-height:calc(100vh - 130px);overflow:auto;border:1px solid var(--og-border);border-radius:18px;background:var(--og-surface-navy);padding:14px 12px;scrollbar-width:thin}
.ogg-toggle{display:none;cursor:pointer;font-weight:600;list-style:none}
.ogg-toggle::-webkit-details-marker{display:none}
.ogg-side nav{display:flex;flex-direction:column;gap:2px}
.ogg-list{list-style:none;margin:0;padding:0}
.ogg-list li{margin:0}
.ogg-d1,.ogg-d2,.ogg-posts{padding-left:12px;margin:2px 0 6px 8px;border-left:1px solid var(--og-border)}
.ogg-group>summary{display:flex;align-items:center;gap:6px;cursor:pointer;list-style:none;border-radius:10px}
.ogg-group>summary::-webkit-details-marker{display:none}
.ogg-group>summary::before{content:"";flex:0 0 auto;width:7px;height:7px;margin-left:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);opacity:.6;transition:transform .15s}
.ogg-group[open]>summary::before{transform:rotate(45deg)}
.ogg-all,.ogg-head,.ogg-item{display:block;flex:1;padding:7px 10px;border-radius:10px;color:inherit!important;text-decoration:none!important;font-size:14px;line-height:1.3}
.ogg-all,.ogg-head{font-weight:600}
.ogg-post{font-size:13px;opacity:.85}
.ogg-all:hover,.ogg-head:hover,.ogg-item:hover{background:var(--og-primary-soft);color:var(--og-link)!important}
.ogg-all.on,.ogg-head.on,.ogg-item.on{background:var(--og-primary-soft);color:var(--og-link)!important;box-shadow:inset 3px 0 0 var(--og-link)}
.ogg-all:focus-visible,.ogg-head:focus-visible,.ogg-item:focus-visible,.ogg-toggle:focus-visible{outline:2px solid var(--og-link);outline-offset:2px}
@media(max-width:1024px){
body.ogn-guides .elementor-location-archive>.e-con-boxed>.e-con-inner{padding-left:16px!important;padding-right:16px!important}
.ogg-layout{grid-template-columns:1fr;gap:20px}
.ogg-side{position:static;max-height:none}
.ogg-toggle{display:block;padding:6px 8px}
.ogg-wrap[open]>.ogg-toggle{margin-bottom:8px}
}
/* Guide posts: the same menu, a left column on wide screens, folded above the article otherwise. */
@media(min-width:1200px){
body.ogn-guide-single .elementor-location-single{position:relative;padding-left:330px}
.ogg-single-wrap{position:absolute;left:30px;top:40px;bottom:40px;width:290px}
}
@media(max-width:1199px){
.ogg-single-wrap{margin:0 0 24px}
.ogg-single-wrap .ogg-side{position:static;max-height:none}
.ogg-single-wrap .ogg-toggle{display:block;padding:6px 8px}
.ogg-single-wrap .ogg-wrap[open]>.ogg-toggle{margin-bottom:8px}
}

/* OG Media video posts (category og-media, 28 Nov 2026): the video is the hero, so the featured image (its poster) is not shown a second time. */
.elementor-location-single.category-og-media .elementor-widget-theme-post-featured-image{display:none}
.category-og-media .wp-block-video.og-media-video{margin:0 0 28px}
.category-og-media .wp-block-video.og-media-video video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:18px;border:1px solid var(--og-border);background:#000}

/* Meet the Jellybeans: captions under each sticker instead of over it. */
.wp-block-gallery.og-jellybeans figure.wp-block-image { flex-direction: column; background: none; }
.wp-block-gallery.og-jellybeans figure.wp-block-image img { height: auto; object-fit: contain; }
.wp-block-gallery.og-jellybeans figure.wp-block-image figcaption {
  position: static; background: none; max-height: none; padding: 6px 0 0; margin: 0;
  font-size: 15px; font-weight: 600; text-align: center; color: var(--og-text, #fff); text-shadow: none;
}
.wp-block-gallery.og-jellybeans figure.wp-block-image figcaption a { color: inherit; text-decoration: none; }
.wp-block-gallery.og-jellybeans figure.wp-block-image figcaption a:hover { color: var(--og-accent, #4cc9ff); }
