/*
Theme Name: MIL OSI
Theme URI: https://mil-osi.com/
Template: generatepress
Version: 2.0.21-rc5
Author: Multimedia Investments Ltd
Author URI: https://mil-osi.com/
Description: Professional MIL-OSI source-led publishing child theme for restricted and public open source intelligence publishing engines.
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mil-osi
Requires at least: 6.4
Requires PHP: 7.4
*/

/* v2.0.3 hotfix pairs with MIL Core 2.6.3 OSI wall controls. */

/* v2.0.4 refinement: tighter single report sidebar/meta stacking. */
.mil-osi-suite.single-mil_report .mil-sidebar{align-self:start;display:grid!important;gap:14px!important;align-content:start!important;}
.mil-osi-suite.single-mil_report .mil-sidebar .mil-panel{padding:24px!important;min-height:0!important;height:auto!important;}
.mil-osi-suite.single-mil_report .mil-widget-stack{display:grid!important;gap:14px!important;margin-top:0!important;align-content:start!important;}
.mil-osi-suite.single-mil_report .mil-widget-stack .mil-panel{margin:0!important;}
.mil-osi-suite.single-mil_report .mil-meta-table{margin-bottom:14px;}
.mil-osi-suite.single-mil_report .mil-meta-table>div{padding:12px 0!important;}
.mil-osi-suite.single-mil_report .mil-actions{margin-top:14px!important;}

/* v2.0.6 refinement: compact sidebar stacking and app-style taxonomy chips beside single-entry dates. */
.mil-osi-suite.single .mil-report-layout,
.mil-osi-suite.page .mil-report-layout{align-items:start!important;}
.mil-osi-suite.single .mil-sidebar,
.mil-osi-suite.page .mil-sidebar{align-self:start!important;display:grid!important;gap:14px!important;align-content:start!important;grid-auto-rows:max-content!important;}
.mil-osi-suite.single .mil-widget-stack,
.mil-osi-suite.page .mil-widget-stack{margin-top:0!important;gap:14px!important;}
.mil-entry-meta-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:.75rem 0 1.15rem;}
.mil-entry-meta-line .mil-meta{margin:0;}
.mil-entry-taxonomies{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;}
.mil-entry-taxonomies a{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#eaf7ff;color:#0f4773;text-decoration:none;font-size:.82rem;font-weight:750;border:1px solid #c2e3f7;line-height:1.1;}


/* v2.0.12 refinement: MIL Personnel Network app-style sidebar block. */
.mil-personnel-network{background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(238,247,253,.96))!important;}
.mil-personnel-network h3{margin-top:.35rem!important;margin-bottom:1rem!important;}
.mil-network-links{display:grid;gap:10px;margin-top:12px;}
.mil-network-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-radius:16px;background:#eef7fd;border:1px solid #c8e2f4;color:#0f3f67!important;text-decoration:none!important;font-weight:850;box-shadow:0 8px 20px rgba(13,46,84,.06);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;}
.mil-network-link:hover,.mil-network-link:focus{transform:translateY(-1px);box-shadow:0 14px 30px rgba(13,46,84,.10);border-color:#8fc6e8;color:#0a2945!important;}

/* v2.0.13 refinement: compact right-column flow after the MIL Personnel Network block. */
.mil-osi-suite .mil-sidebar{align-self:start!important;display:grid!important;gap:10px!important;align-content:start!important;grid-auto-rows:max-content!important;}
.mil-osi-suite .mil-sidebar > *{margin-top:0!important;margin-bottom:0!important;}
.mil-osi-suite .mil-widget-stack{display:grid!important;gap:10px!important;margin-top:0!important;align-content:start!important;grid-auto-rows:max-content!important;}
.mil-osi-suite .mil-widget-stack > *{margin-top:0!important;margin-bottom:0!important;}
.mil-osi-suite .mil-personnel-network{margin-bottom:0!important;}
.mil-osi-suite .mil-home-split{align-items:start!important;}
.mil-osi-suite .mil-panel.widget{margin-top:0!important;margin-bottom:0!important;}

/* v2.0.14 refinement: standard post right-sidebar details panel renamed and rendered as the OSI Meta Block. */
.mil-osi-suite .mil-meta-block .mil-actions{margin-top:14px!important;}

/* v2.0.16 refinement: cap sidebar Meta Block description output in PHP to 30 words. */

/* v2.0.19-rc3 refinement: OSI fallback featured image URL support for front-page lists, single posts, and single reports. */
.mil-osi-suite .mil-latest-item{display:block;}
.mil-osi-suite .mil-latest-item.image-left{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:start;}
.mil-osi-suite .mil-latest-item.image-top .mil-thumb{margin:0 0 12px;}
.mil-osi-suite .mil-thumb-small img{width:96px;height:96px;object-fit:cover;border-radius:16px;}
.mil-osi-suite .mil-thumb.mil-aspect-16x9 img{aspect-ratio:16/9;object-fit:cover;}
.mil-osi-suite .mil-thumb.mil-aspect-4x3 img{aspect-ratio:4/3;object-fit:cover;}
.mil-osi-suite .mil-thumb.mil-aspect-1x1 img{aspect-ratio:1/1;object-fit:cover;}
.mil-osi-suite .mil-thumb.mil-aspect-natural img{aspect-ratio:auto;object-fit:contain;}
.mil-osi-suite .mil-single-thumb-top{margin:0 0 22px;}
.mil-osi-suite .mil-single-thumb-left{float:left;width:150px;max-width:38%;margin:6px 22px 14px 0;}
.mil-osi-suite .mil-single-thumb-left img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:18px;}
.mil-osi-suite .entry-content:after{content:"";display:block;clear:both;}
@media(max-width:700px){.mil-osi-suite .mil-latest-item.image-left{grid-template-columns:1fr}.mil-osi-suite .mil-thumb-small img{width:100%;height:auto}.mil-osi-suite .mil-single-thumb-left{float:none;width:100%;max-width:100%;margin:0 0 18px}.mil-osi-suite .mil-single-thumb-left img{aspect-ratio:16/9;}}
/* v2.0.20-rc4 refinement: contain wide imported tables inside the article column. */
.mil-osi-suite .mil-report-layout,
.mil-osi-suite .mil-story-layout{grid-template-columns:minmax(0,1fr) 360px;align-items:start;}
.mil-osi-suite .mil-report-content,
.mil-osi-suite .mil-card.mil-report-content{min-width:0;max-width:100%;}
.mil-osi-suite .entry-content{max-width:100%;min-width:0;overflow-x:auto;overflow-y:visible;-webkit-overflow-scrolling:touch;}
.mil-osi-suite .entry-content table{width:max-content;max-width:none;min-width:100%;border-collapse:collapse;table-layout:auto;}
.mil-osi-suite .entry-content th,
.mil-osi-suite .entry-content td{vertical-align:top;word-break:normal;overflow-wrap:normal;}
.mil-osi-suite .entry-content::-webkit-scrollbar{height:10px;}
.mil-osi-suite .entry-content::-webkit-scrollbar-thumb{background:#b9dcf4;border-radius:999px;}
.mil-osi-suite .entry-content::-webkit-scrollbar-track{background:#eef7fd;border-radius:999px;}
@media(max-width:1080px){.mil-osi-suite .mil-report-layout,.mil-osi-suite .mil-story-layout{grid-template-columns:1fr;}}

/* v2.0.21-rc5 refinement: keep small left featured images as true floated thumbnails, while wide imported tables scroll within the article column. */
.mil-osi-suite .entry-content{overflow:visible!important;}
.mil-osi-suite .entry-content table{display:block!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch!important;}
.mil-osi-suite .entry-content table::-webkit-scrollbar{height:10px;}
.mil-osi-suite .entry-content table::-webkit-scrollbar-thumb{background:#b9dcf4;border-radius:999px;}
.mil-osi-suite .entry-content table::-webkit-scrollbar-track{background:#eef7fd;border-radius:999px;}
